Klasse From

Alle implementierten Schnittstellen:
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.
Siehe auch:
  • Konstruktordetails

    • From

      public From()
  • Methodendetails

    • getAsUser

      public User getAsUser()
      returns the from field as object
      Gibt zurück:
      the from field as User
    • getAsPage

      public Page getAsPage()
      returns the from field as object
      Gibt zurück:
      the from field as Page
    • convert

      protected void convert(JsonMapper jsonMapper)
    • setUser

      public void setUser(User user)
    • setPage

      public void setPage(Page page)