@Immutable @ThreadSafe @LevelUpApi(contract=INTERNAL) public final class JSONObjectRequestBody extends StringRequestBody
JSONObject
request body.Parcelable.ClassLoaderCreator<T>, Parcelable.Creator<T>
Modifier and Type | Field and Description |
---|---|
static Parcelable.Creator<JSONObjectRequestBody> |
CREATOR
Part of the
Parcelable contract. |
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
Constructor and Description |
---|
JSONObjectRequestBody(JSONObject object) |
JSONObjectRequestBody(Parcel parcel)
Parcelable constructor. |
Modifier and Type | Method and Description |
---|---|
String |
getContentType() |
describeContents, equals, getContentLength, hashCode, toString, writeToOutputStream, writeToParcel
public static final Parcelable.Creator<JSONObjectRequestBody> CREATOR
Parcelable
contract.public JSONObjectRequestBody(JSONObject object)
object
- the JSONObject
to send.public JSONObjectRequestBody(Parcel parcel)
Parcelable
constructor.parcel
- the source parcelpublic String getContentType()