Created
July 7, 2014 10:30
-
-
Save philandstuff/7906029f1e821c6629cb to your computer and use it in GitHub Desktop.
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 { | |
public enum Gender { MALE, FEMALE }; | |
public static class Name { | |
private String _first, _last; | |
public String getFirst() { return _first; } | |
public String getLast() { return _last; } | |
public void setFirst(String s) { _first = s; } | |
public void setLast(String s) { _last = s; } | |
} | |
private Gender _gender; | |
private Name _name; | |
private boolean _isVerified; | |
private byte[] _userImage; | |
public Name getName() { return _name; } | |
public boolean isVerified() { return _isVerified; } | |
public Gender getGender() { return _gender; } | |
public byte[] getUserImage() { return _userImage; } | |
public void setName(Name n) { _name = n; } | |
public void setVerified(boolean b) { _isVerified = b; } | |
public void setGender(Gender g) { _gender = g; } | |
public void setUserImage(byte[] b) { _userImage = b; } | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment