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 classA GraphQL response with basic Object data type. -
Constructor Summary
ConstructorsConstructorDescriptionGHGraphQLResponse(T data, List<org.kohsuke.github.internal.graphql.response.GHGraphQLResponse.GraphQLError> errors) -
Method Summary
-
Constructor Details
-
Method Details
-
isSuccessful
public boolean isSuccessful()- Returns:
- request is succeeded. True when error list is empty.
-
getData
- Returns:
- GraphQL success response
-
getErrorMessages
- Returns:
- GraphQL error messages from Github Response. Empty list when no errors occurred.
-