-
- 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 class
Profile.Companion
-
Method Summary
Modifier and Type Method Description final String
getId()
Getter for the id of the profile. final String
getFirstName()
Getter for the first name of the profile. final String
getMiddleName()
Getter for the middle name of the profile. final String
getLastName()
Getter for the last name of the profile. final String
getName()
Getter for the name of the profile. final Uri
getLinkUri()
Getter for the link of the profile. final Uri
getPictureUri()
Getter for the picture URI of the profile final Uri
getProfilePictureUri(Integer width, Integer height)
Getter for the Uri of the profile picture. Boolean
equals(Object other)
Integer
hashCode()
final JSONObject
toJSONObject()
Integer
describeContents()
Unit
writeToParcel(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)
-
-
-
-