Class
ChatGptRateLimitWindow
Represents a rate limit window.
Inheritance
- Object
- ChatGptRateLimitWindow
Constructors
public ChatGptRateLimitWindow(Nullable<Double> usedPercent, Nullable<Int64> limitWindowSeconds, Nullable<Int64> resetAfterSeconds, Nullable<Int64> resetAt, JsonObject raw, JsonObject additional) #Initializes a new rate limit window.
Parameters
- usedPercent System.Nullable{System.Double}
- limitWindowSeconds System.Nullable{System.Int64}
- resetAfterSeconds System.Nullable{System.Int64}
- resetAt System.Nullable{System.Int64}
- raw IntelligenceX.Json.JsonObject
- additional IntelligenceX.Json.JsonObject
Methods
public static ChatGptRateLimitWindow FromJson(JsonObject obj) #Returns:
ChatGptRateLimitWindowParses a rate limit window from JSON.
Parameters
- obj IntelligenceX.Json.JsonObject
- Source JSON object.
Returns
The parsed window or null.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public Nullable<Double> UsedPercent { get; } #Gets the percentage of usage consumed.
public Nullable<Int64> LimitWindowSeconds { get; } #Gets the window length in seconds.
public Nullable<Int64> ResetAfterSeconds { get; } #Gets the seconds remaining until reset.
public Nullable<Int64> ResetAtUnixSeconds { get; } #Gets the reset time in Unix seconds.
public JsonObject Raw { get; } #Gets the raw JSON object.
public JsonObject Additional { get; } #Gets unrecognized fields from the payload.