Enum ApiResponseCode
- Namespace
- Tudormobile.OpenTrivia
- Assembly
- Tudormobile.OpenTrivia.dll
Contains the response codes returned by the API.
public enum ApiResponseCode
Fields
InvalidParameter = 2Contains an invalid parameter. Arguements passed in aren't valid.
NoResults = 1Could not return results. The API doesn't have enough questions for your query.
RateLimit = 5Too many requests have occurred. Each IP can only access the API once every 5 seconds.
Success = 0Returned results successfully.
TokenEmpty = 4Token has returned all possible questions for the specified query. Resetting the Token is necessary.
TokenNotFound = 3Token does not exist.
Unknown = -1Indicates 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.