-
public final class ResourceEvent.GraphqlGraphQL requests parameters
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classResourceEvent.Graphql.Companion
-
Field Summary
Fields Modifier and Type Field Description private final ResourceEvent.OperationTypeoperationTypeprivate final StringoperationNameprivate Stringpayloadprivate Stringvariablesprivate final LongerrorCountprivate final List<ResourceEvent.Error>errors
-
Constructor Summary
Constructors Constructor Description ResourceEvent.Graphql(ResourceEvent.OperationType operationType, String operationName, String payload, String variables, Long errorCount, List<ResourceEvent.Error> errors)
-
Method Summary
Modifier and Type Method Description final ResourceEvent.OperationTypegetOperationType()final StringgetOperationName()final StringgetPayload()final UnitsetPayload(String payload)final StringgetVariables()final UnitsetVariables(String variables)final LonggetErrorCount()final List<ResourceEvent.Error>getErrors()final JsonElementtoJson()-
-
Constructor Detail
-
ResourceEvent.Graphql
ResourceEvent.Graphql(ResourceEvent.OperationType operationType, String operationName, String payload, String variables, Long errorCount, List<ResourceEvent.Error> errors)
- Parameters:
operationType- Type of the GraphQL operationoperationName- Name of the GraphQL operationpayload- Content of the GraphQL operationvariables- String representation of the operation variableserrorCount- Number of GraphQL errors in the responseerrors- Array of GraphQL errors from the response
-
-
Method Detail
-
getOperationType
final ResourceEvent.OperationType getOperationType()
-
getOperationName
final String getOperationName()
-
getPayload
final String getPayload()
-
setPayload
final Unit setPayload(String payload)
- Parameters:
payload- Content of the GraphQL operation
-
getVariables
final String getVariables()
-
setVariables
final Unit setVariables(String variables)
- Parameters:
variables- String representation of the operation variables
-
getErrorCount
final Long getErrorCount()
-
getErrors
final List<ResourceEvent.Error> getErrors()
-
toJson
final JsonElement toJson()
-
-
-
-