-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProfile.java
More file actions
38 lines (26 loc) · 887 Bytes
/
Copy pathProfile.java
File metadata and controls
38 lines (26 loc) · 887 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package com.example.wagbaapplication;
import androidx.annotation.NonNull;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
@Entity(tableName = "profile_table")
public class Profile {
@PrimaryKey
@NonNull
@ColumnInfo(name = "id")
private String mid;
@ColumnInfo(name = "name")
private String mname;
@ColumnInfo(name = "phoneNb")
private String mphonenb;
public Profile(@NonNull String mid, String mname, String mphonenb) {
this.mid = mid;
this.mname = mname;
this.mphonenb = mphonenb;
}
public String getMid(){return this.mid;}
public void setMname(String name){this.mname = name;}
public String getMname(){return this.mname;}
public void setMphonenb(String phonenb){this.mphonenb = phonenb;}
public String getMphonenb(){return this.mphonenb;}
}