public class Request
extends Object
An object used to deserialize a request into JSON format and send it to the server.
-
Constructor Summary
Constructors
-
Method Summary
@Nullable com.google.gson.JsonObject
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Request
public Request(@NotNull
@NotNull String apiName,
@NotNull
@NotNull String apiVersion,
@NotNull
@NotNull String id,
@NotNull
@NotNull String type,
@Nullable
@Nullable com.google.gson.JsonObject payload)
-
Method Details
-
getApiName
@NotNull
public @NotNull String getApiName()
-
getApiVersion
@NotNull
public @NotNull String getApiVersion()
-
getId
@NotNull
public @NotNull String getId()
-
getType
@NotNull
public @NotNull String getType()
-
getPayload
@Nullable
public @Nullable com.google.gson.JsonObject getPayload()