Class FBObject

java.lang.Object
com.codename1.facebook.FBObject
Direct Known Subclasses:
Album, Page, Photo, Post, User

public class FBObject extends Object
This is a base class for all FaceBook Objects
  • Constructor Details

    • FBObject

      public FBObject()
      Empty Contructor
    • FBObject

      public FBObject(Hashtable props)

      This contructor initialize it's attributes from the given Hashtable

      Parameters
      • props: an Hashtable which contains the Object data
  • Method Details

    • getId

      public String getId()

      Simple getter

      Returns

      the facebook object id

    • setId

      public void setId(String id)

      Simple setter

      Parameters
      • id: the Object Id, each facebook element had an id
    • getName

      public String getName()

      Simple getter

      Returns

      the FB Object name

    • copy

      public void copy(Hashtable props)

      copies the relevant values from the given hashtable

      Parameters
      • props: an hashtable to copy from
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object