Class FBObject

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

public class FBObject extends java.lang.Object
This is a base class for all FaceBook Objects
  • Constructor Summary

    Constructors
    Constructor
    Description
    Empty Contructor
    This contructor initialize it's attributes from the given Hashtable
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    copy(Hashtable props)
    copies the relevant values from the given hashtable
    boolean
    equals(java.lang.Object obj)
    Simple getter
    Simple getter
    int
    void
    Simple setter

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • 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(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object