Table of Contents

Enum ApiResponseCode

Namespace
Tudormobile.OpenTrivia
Assembly
Tudormobile.OpenTrivia.dll

Contains the response codes returned by the API.

public enum ApiResponseCode

Fields

InvalidParameter = 2

Contains an invalid parameter. Arguements passed in aren't valid.

NoResults = 1

Could not return results. The API doesn't have enough questions for your query.

RateLimit = 5

Too many requests have occurred. Each IP can only access the API once every 5 seconds.

Success = 0

Returned results successfully.

TokenEmpty = 4

Token has returned all possible questions for the specified query. Resetting the Token is necessary.

TokenNotFound = 3

Token does not exist.

Unknown = -1

Indicates that the value is unknown or not specified.

Use this value when the actual value cannot be determined or is not applicable. This is typically used as a default or sentinel value to represent an undefined state.