Android SDK Version
  • java.lang.Object
    • com.facebook.ads.NativeAdBase.Rating
Enclosing class:

public static class NativeAdBase.Rating
extends java.lang.Object
Rating info.
Since:
4.6
Method Summary
Modifier and TypeMethod and Description
static NativeAdBase.RatingfromJSONObject(JSONObject dataObject)
Parses a Rating from the given JSON object.
doublegetScale()
Gets the rating scale.
doublegetValue()
Gets the rating value.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Method Detail

getValue

public double getValue()
Gets the rating value.
Returns:
the rating value

getScale

public double getScale()
Gets the rating scale.
Returns:
the rating scale

fromJSONObject

public static NativeAdBase.Rating fromJSONObject(JSONObject dataObject)
Parses a Rating from the given JSON object.
Parameters:
dataObject - the json object
Returns:
parsed Rating or null if failed