Created
December 23, 2015 15:12
-
-
Save e10dokup/3c45feab02a7c85d66a6 to your computer and use it in GitHub Desktop.
User.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class User extends BaseObservable{ | |
private static final String TAG = User.class.getSimpleName(); | |
private final User self = this; | |
private String mFirstName; | |
private String mLastName; | |
public User(String firstName, String lastName) { | |
mFirstName = firstName; | |
mLastName = lastName; | |
} | |
@Bindable | |
public String getFirstName() { | |
return mFirstName; | |
} | |
public void setFirstName(String firstName) { | |
mFirstName = firstName; | |
notifyPropertyChanged(BR.firstName); | |
} | |
@Bindable | |
public String getLastName() { | |
return mLastName; | |
} | |
public void setLastName(String lastName) { | |
mLastName = lastName; | |
notifyPropertyChanged(BR.lastName); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment