76 lines
1.5 KiB
Java
76 lines
1.5 KiB
Java
package com.smarthomies.realtimetalk.models.db;
|
|
|
|
import com.google.gson.annotations.SerializedName;
|
|
|
|
import io.realm.RealmObject;
|
|
import io.realm.annotations.PrimaryKey;
|
|
|
|
/**
|
|
* Created by ensar on 01/11/16.
|
|
*/
|
|
public class User extends RealmObject{
|
|
public static final String TAG = User.class.getSimpleName();
|
|
|
|
public static final String PRIMARY_KEY = "username";
|
|
|
|
@PrimaryKey
|
|
private int id;
|
|
@SerializedName("first_name")
|
|
private String firstName;
|
|
@SerializedName("last_name")
|
|
private String lastName;
|
|
@SerializedName("email")
|
|
private String email;
|
|
@SerializedName("profile_picture")
|
|
private String imageUrl;
|
|
private String username;
|
|
|
|
public int getId() {
|
|
return id;
|
|
}
|
|
|
|
public void setId(int id) {
|
|
this.id = id;
|
|
}
|
|
|
|
public String getFirstName() {
|
|
return firstName;
|
|
}
|
|
|
|
public void setFirstName(String firstName) {
|
|
this.firstName = firstName;
|
|
}
|
|
|
|
public String getLastName() {
|
|
return lastName;
|
|
}
|
|
|
|
public void setLastName(String lastName) {
|
|
this.lastName = lastName;
|
|
}
|
|
|
|
public String getEmail() {
|
|
return email;
|
|
}
|
|
|
|
public void setEmail(String email) {
|
|
this.email = email;
|
|
}
|
|
|
|
public String getImageUrl() {
|
|
return imageUrl;
|
|
}
|
|
|
|
public void setImageUrl(String imageUrl) {
|
|
this.imageUrl = imageUrl;
|
|
}
|
|
|
|
public String getUsername() {
|
|
return username;
|
|
}
|
|
|
|
public void setUsername(String username) {
|
|
this.username = username;
|
|
}
|
|
}
|