Package com.restfb.types
Class Page.Settings
- java.lang.Object
-
- com.restfb.types.AbstractFacebookType
-
- com.restfb.types.Page.Settings
-
- All Implemented Interfaces:
Serializable
- Enclosing class:
- Page
public static class Page.Settings extends AbstractFacebookType
Represents the Page Settings Graph API type.- Since:
- 1.10.0
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Settings()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getSetting()
String
getValue()
boolean
getValueAsBoolean()
convert the value field in a boolean and return it.JsonObject
getValueAsJsonObject()
Takes the value and converts it into a json object if possible.void
setSetting(String setting)
void
setValue(String value)
-
Methods inherited from class com.restfb.types.AbstractFacebookType
equals, hashCode, toString
-
-
-
-
Constructor Detail
-
Settings
public Settings()
-
-
Method Detail
-
getValueAsBoolean
public boolean getValueAsBoolean()
convert the value field in a boolean and return it.Every value that's not the String "true" (case is ignored) is
false
!- Returns:
- the value field as boolean.
-
getValueAsJsonObject
public JsonObject getValueAsJsonObject()
Takes the value and converts it into a json object if possible.May throw a JsonException
- Returns:
-
getSetting
public String getSetting()
-
setSetting
public void setSetting(String setting)
-
-