-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class Profile implements Parcelable
This class represents a basic Facebook profile.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classProfile.Companion
-
Method Summary
Modifier and Type Method Description final StringgetId()Getter for the id of the profile. final StringgetFirstName()Getter for the first name of the profile. final StringgetMiddleName()Getter for the middle name of the profile. final StringgetLastName()Getter for the last name of the profile. final StringgetName()Getter for the name of the profile. final UrigetLinkUri()Getter for the link of the profile. final UrigetPictureUri()Getter for the picture URI of the profile final UrigetProfilePictureUri(Integer width, Integer height)Getter for the Uri of the profile picture. Booleanequals(Object other)IntegerhashCode()final JSONObjecttoJSONObject()IntegerdescribeContents()UnitwriteToParcel(Parcel dest, Integer flags)-
-
Constructor Detail
-
Profile
Profile(String id, String firstName, String middleName, String lastName, String name, Uri linkUri, Uri pictureUri)
Constructor.- Parameters:
id- The id of the profile.firstName- The first name of the profile.middleName- The middle name of the profile.lastName- The last name of the profile.name- The name of the profile.linkUri- The link for this profile.
-
Profile
Profile(String id, String firstName, String middleName, String lastName, String name, Uri linkUri)
Constructor.- Parameters:
id- The id of the profile.firstName- The first name of the profile.middleName- The middle name of the profile.lastName- The last name of the profile.name- The name of the profile.linkUri- The link for this profile.
-
-
Method Detail
-
getFirstName
final String getFirstName()
Getter for the first name of the profile.
-
getMiddleName
final String getMiddleName()
Getter for the middle name of the profile.
-
getLastName
final String getLastName()
Getter for the last name of the profile.
-
getLinkUri
final Uri getLinkUri()
Getter for the link of the profile.
-
getPictureUri
final Uri getPictureUri()
Getter for the picture URI of the profile
-
getProfilePictureUri
final Uri getProfilePictureUri(Integer width, Integer height)
Getter for the Uri of the profile picture.
- Parameters:
width- The desired width for the profile picture.height- The desired height for the profile picture.
-
toJSONObject
final JSONObject toJSONObject()
-
describeContents
Integer describeContents()
-
writeToParcel
Unit writeToParcel(Parcel dest, Integer flags)
-
-
-
-