com.restfb.types
Class FacebookType

java.lang.Object
  extended by com.restfb.types.FacebookType
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
Checkin, Comment, NamedFacebookType, Note

public class FacebookType
extends Object
implements Serializable

Base class which encapsulates behavior and properties common to most Graph API types.

Since:
1.5
Author:
Mark Allen
See Also:
Serialized Form

Nested Class Summary
static class FacebookType.Metadata
          Represents Facebook Object metadata, available by including the metadata=1 URL parameter in an API request.
 
Constructor Summary
FacebookType()
           
 
Method Summary
 boolean equals(Object that)
           
 String getId()
          This object's unique Facebook ID.
 FacebookType.Metadata getMetadata()
          This object's metadata, available by including the metadata=1 URL parameter in an API request.
 String getType()
          This object's type metadata, available by including the metadata=1 URL parameter in an API request.
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FacebookType

public FacebookType()
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class Object
See Also:
Object.hashCode()

equals

public boolean equals(Object that)
Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()

getId

public String getId()
This object's unique Facebook ID.

Returns:
This object's unique Facebook ID.

getMetadata

public FacebookType.Metadata getMetadata()
This object's metadata, available by including the metadata=1 URL parameter in an API request.

Returns:
This object's metadata, available by including the metadata=1 URL parameter in an API request.

getType

public String getType()
This object's type metadata, available by including the metadata=1 URL parameter in an API request.

Returns:
This object's type metadata, available by including the metadata=1 URL parameter in an API request.


RestFB 1.6.8. Copyright © 2010-2011 Mark Allen. All Rights Reserved.