Class From

All Implemented Interfaces:
Serializable

public class From extends NamedFacebookType
From type is used as replacement for the case we need a user or a page. Because these both types have different fields we have this special handling. Because the minimal intersection of page and user are id and name, so the From object extends the and as fast access name and id are available.
See Also:
  • Constructor Details

    • From

      public From()
  • Method Details

    • getAsUser

      public User getAsUser()
      returns the from field as object
      Returns:
      the from field as User
    • getAsPage

      public Page getAsPage()
      returns the from field as object
      Returns:
      the from field as Page
    • convert

      protected void convert(JsonMapper jsonMapper)
    • setUser

      public void setUser(User user)
    • setPage

      public void setPage(Page page)