Last active
April 26, 2017 23:08
-
-
Save smaugho/4d7dff8cb31323b2bc9706ed3247e719 to your computer and use it in GitHub Desktop.
User Model
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
@ServerModel( | |
baseUrl = "http://www.example.com", | |
get = "user/me" | |
) | |
@LocalDBModel | |
public class User { | |
@NotEmpty String firstName; | |
@NotEmpty String lastName; | |
@Email String email; | |
String image; | |
Address_ address; | |
public String fullName() { | |
return firstName + " " + lastName; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment