Android SDK Version
All Implemented Interfaces:
android.os.Parcelable


public final class Profile
 implements Parcelable
This class represents a basic Facebook profile.
Nested Class Summary
Modifier and TypeClassDescription
public classProfile.Companion
Field Summary
Modifier and TypeFieldDescription
private final Stringid
private final StringfirstName
private final StringmiddleName
private final StringlastName
private final Stringname
private final UrilinkUri
private final UripictureUri
Constructor Summary
ConstructorDescription
Profile(String id, String firstName, String middleName, String lastName, String name, Uri linkUri, Uri pictureUri)Constructor.
Profile(String id, String firstName, String middleName, String lastName, String name, Uri linkUri)Constructor.
Method Summary
Modifier and TypeMethodDescription
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)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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

getId

 final StringgetId()
Getter for the id of the profile.

getFirstName

 final StringgetFirstName()
Getter for the first name of the profile.

getMiddleName

 final StringgetMiddleName()
Getter for the middle name of the profile.

getLastName

 final StringgetLastName()
Getter for the last name of the profile.

getName

 final StringgetName()
Getter for the name of the profile.

getLinkUri

 final UrigetLinkUri()
Getter for the link of the profile.

getPictureUri

 final UrigetPictureUri()
Getter for the picture URI of the profile

getProfilePictureUri

 final UrigetProfilePictureUri(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.

equals

Booleanequals(Object other)

hashCode

IntegerhashCode()

toJSONObject

 final JSONObjecttoJSONObject()

describeContents

IntegerdescribeContents()

writeToParcel

UnitwriteToParcel(Parcel dest, Integer flags)