# 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 Summary

  Constructors
  Constructor
  Description
  `FBObject()`
  Empty Contructor
  `FBObject(Hashtable props)`
  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(Object obj)`
  `String`
  `getId()`
  Simple getter
  `String`
  `getName()`
  Simple getter
  `int`
  `hashCode()`
  `void`
  `setId(String id)`
  Simple setter

  ### Methods inherited from class 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(Object obj)
    Overrides:
      `equals` in class `Object`

  - ### hashCode

    public int hashCode()
    Overrides:
      `hashCode` in class `Object`