public class FacebookUser extends java.lang.Object implements IPutIntoJson<org.json.JSONObject>
| Constructor and Description |
|---|
FacebookUser(java.lang.String facebookId,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String email,
java.lang.String bio,
java.lang.String cityName,
Gender gender,
java.lang.Integer numberOfFriends,
java.util.Collection<java.lang.String> likes,
java.lang.String birthday)
Creates a Facebook user data object to send to Appboy's servers.
|
| Modifier and Type | Method and Description |
|---|---|
org.json.JSONObject |
forJsonPut() |
public FacebookUser(java.lang.String facebookId,
java.lang.String firstName,
java.lang.String lastName,
java.lang.String email,
java.lang.String bio,
java.lang.String cityName,
Gender gender,
java.lang.Integer numberOfFriends,
java.util.Collection<java.lang.String> likes,
java.lang.String birthday)
facebookId - The user's Facebook IdfirstName - The user's first namelastName - The user's last nameemail - The user's email addressbio - The user's biographycityName - The name of the city that the user comes from. Usually comes from requesting "Location" and
grabbing the name field from the returned Graph Search object.gender - The user's gendernumberOfFriends - Number of Facebook friends the user haslikes - A list of string literal values for the names of the likes of this user.birthday - The date of birth of the user in MM/DD/YYYY format. This is the same format that the
GraphUser object provides the birthday in.public org.json.JSONObject forJsonPut()
forJsonPut in interface IPutIntoJson<org.json.JSONObject>