public static final class SDIServerUtil.OauthConsumer
extends java.lang.Object
implements java.io.Serializable, android.os.Parcelable
SDIServerUtil.OauthConsumer
class represents the details of the oauth consumer for this
device. requests.
The SDIServerUtil.OauthConsumer
class should replace the Pair
returned from SDIApplicationModel.#getOauthConsumerTuple()
to improve readability
and reduce errors.Modifier and Type | Field and Description |
---|---|
static android.os.Parcelable.Creator<SDIServerUtil.OauthConsumer> |
CREATOR |
Constructor and Description |
---|
OauthConsumer(android.util.Pair<java.lang.String,java.lang.String> keySecret) |
OauthConsumer(java.lang.String key,
java.lang.String secret) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents()
Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
|
java.lang.String |
getKey() |
java.lang.String |
getSecret() |
android.util.Pair<java.lang.String,java.lang.String> |
toTuple()
Convert the oauth consumer object to a tuple containing (key, secret).
|
void |
writeToParcel(android.os.Parcel dest,
int flags)
Flatten this object in to a Parcel.
|
public static final android.os.Parcelable.Creator<SDIServerUtil.OauthConsumer> CREATOR
public OauthConsumer(android.util.Pair<java.lang.String,java.lang.String> keySecret)
public OauthConsumer(java.lang.String key, java.lang.String secret)
public java.lang.String getKey()
public java.lang.String getSecret()
public android.util.Pair<java.lang.String,java.lang.String> toTuple()
SDIServerUtil.OauthConsumer
class replaces the Pair
returned from SDIApplicationModel.#getOauthConsumerTuple()
. For methods that
still require a tuple to be sent through, this method provides that bridge.public int describeContents()
android.os.Parcelable
describeContents
in interface android.os.Parcelable
public void writeToParcel(android.os.Parcel dest, int flags)
android.os.Parcelable
writeToParcel
in interface android.os.Parcelable
dest
- The Parcel in which the object should be written.flags
- Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE
.