Module org.kohsuke.github.api
Class GHGraphQLResponse<T>
java.lang.Object
org.kohsuke.github.internal.graphql.response.GHGraphQLResponse<T>
- Type Parameters:
T
- the type of data
- Direct Known Subclasses:
GHGraphQLResponse.ObjectResponse
A response of GraphQL.
This class is used to parse the response of GraphQL.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
A GraphQL response with basic Object data type. -
Constructor Summary
ConstructorsConstructorDescriptionGHGraphQLResponse
(T data, List<org.kohsuke.github.internal.graphql.response.GHGraphQLResponse.GraphQLError> errors) GHGraphQLResponse constructor -
Method Summary
Modifier and TypeMethodDescriptiongetData()
Get response data.Get response error message.boolean
Is response succesful.
-
Constructor Details
-
Method Details
-
isSuccessful
public boolean isSuccessful()Is response succesful.- Returns:
- request is succeeded. True when error list is empty.
-
getData
Get response data.- Returns:
- GraphQL success response
-
getErrorMessages
Get response error message.- Returns:
- GraphQL error messages from Github Response. Empty list when no errors occurred.
-