Public Member Functions | |
int | describeContents () |
int | toInt () |
JsonNode | toJsonNode () |
String | toString () |
VersionResult (Integer major, Integer minor, Integer patch) | |
VersionResult (JsonNode node) | |
void | writeToParcel (Parcel parcel, int flags) |
Public Attributes | |
final Integer | major |
final Integer | minor |
final Integer | patch |
Static Public Attributes | |
static final Parcelable.Creator < VersionResult > | CREATOR |
static final String | MAJOR = "major" |
static final String | MINOR = "minor" |
static final String | PATCH = "patch" |
Protected Member Functions | |
VersionResult (Parcel parcel) | |
Static Package Functions | |
static List< VersionResult > | getJSONRPCVersionResultList (JsonNode node, String key) |
Note: This class is used as result only.
This class was generated automatically from XBMC's JSON-RPC introspect.
Definition at line 479 of file JSONRPC.java.
org.xbmc.android.jsonrpc.api.call.JSONRPC.Version.VersionResult.VersionResult | ( | Integer | major, |
Integer | minor, | ||
Integer | patch | ||
) | [inline] |
major | |
minor | |
patch |
Definition at line 496 of file JSONRPC.java.
org.xbmc.android.jsonrpc.api.call.JSONRPC.Version.VersionResult.VersionResult | ( | JsonNode | node | ) | [inline] |
Construct from JSON object.
node | JSON object representing a VersionResult object |
Definition at line 522 of file JSONRPC.java.
org.xbmc.android.jsonrpc.api.call.JSONRPC.Version.VersionResult.VersionResult | ( | Parcel | parcel | ) | [inline, protected] |
Construct via parcel.
Definition at line 569 of file JSONRPC.java.
Implements android.os.Parcelable.
Definition at line 590 of file JSONRPC.java.
static List<VersionResult> org.xbmc.android.jsonrpc.api.call.JSONRPC.Version.VersionResult.getJSONRPCVersionResultList | ( | JsonNode | node, |
String | key | ||
) | [inline, static, package] |
Extracts a list of VersionResult objects from a JSON array.
node | ObjectNode containing the list of objects. |
key | Key pointing to the node where the list is stored. |
Definition at line 542 of file JSONRPC.java.
Returns a comparable integer by multiplying and adding the version parts.
Example: 2.19.625
becomes 20190625
Definition at line 514 of file JSONRPC.java.
JsonNode org.xbmc.android.jsonrpc.api.call.JSONRPC.Version.VersionResult.toJsonNode | ( | ) | [inline, virtual] |
Returns a JSON-serialized version of this object.
Implements org.xbmc.android.jsonrpc.api.JsonSerializable.
Definition at line 529 of file JSONRPC.java.
String org.xbmc.android.jsonrpc.api.call.JSONRPC.Version.VersionResult.toString | ( | ) | [inline] |
Definition at line 503 of file JSONRPC.java.
void org.xbmc.android.jsonrpc.api.call.JSONRPC.Version.VersionResult.writeToParcel | ( | Parcel | parcel, |
int | flags | ||
) | [inline] |
Flatten this object into a Parcel.
parcel | the Parcel in which the object should be written. |
flags | additional flags about how the object should be written. |
Implements android.os.Parcelable.
Definition at line 560 of file JSONRPC.java.
final Parcelable.Creator<VersionResult> org.xbmc.android.jsonrpc.api.call.JSONRPC.Version.VersionResult.CREATOR [static] |
new Parcelable.Creator<VersionResult>() { @Override public VersionResult createFromParcel(Parcel parcel) { return new VersionResult(parcel); } @Override public VersionResult[] newArray(int n) { return new VersionResult[n]; } }
Generates instances of this Parcelable class from a Parcel.
Definition at line 578 of file JSONRPC.java.
final String org.xbmc.android.jsonrpc.api.call.JSONRPC.Version.VersionResult.MAJOR = "major" [static] |
Definition at line 482 of file JSONRPC.java.
Definition at line 487 of file JSONRPC.java.
final String org.xbmc.android.jsonrpc.api.call.JSONRPC.Version.VersionResult.MINOR = "minor" [static] |
Definition at line 483 of file JSONRPC.java.
Definition at line 488 of file JSONRPC.java.
final String org.xbmc.android.jsonrpc.api.call.JSONRPC.Version.VersionResult.PATCH = "patch" [static] |
Definition at line 484 of file JSONRPC.java.
Definition at line 489 of file JSONRPC.java.