-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAccount.java
More file actions
47 lines (35 loc) · 910 Bytes
/
Account.java
File metadata and controls
47 lines (35 loc) · 910 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
39
40
41
42
43
44
45
46
47
package com.example.project2part3;
import androidx.room.ColumnInfo;
import androidx.room.Entity;
import androidx.room.PrimaryKey;
@Entity(tableName = "accounts")
public class Account {
@PrimaryKey(autoGenerate = true)
private int id;
@ColumnInfo(name = "username")
private String musername;
@ColumnInfo(name = "password")
private String mpassword;
public Account(String musername, String mpassword){
this.musername = musername;
this.mpassword = mpassword;
}
public int getId(){
return id;
}
public void setId(int id){
this.id = id;
}
public String getMusername(){
return musername;
}
public void setMusername(String user){
musername = user;
}
public String getMpassword(){
return mpassword;
}
public void setMpassword(String pass){
mpassword = pass;
}
}