Class
ChatGptUsageSnapshot
Represents a usage snapshot returned by ChatGPT usage endpoints.
Inheritance
- Object
- ChatGptUsageSnapshot
Constructors
public ChatGptUsageSnapshot(String userId, String accountId, String email, String planType, ChatGptRateLimitStatus rateLimit, ChatGptRateLimitStatus codeReviewRateLimit, ChatGptCreditsSnapshot credits, JsonObject raw, JsonObject additional) #Initializes a new usage snapshot.
Parameters
- userId System.String
- accountId System.String
- email System.String
- planType System.String
- rateLimit IntelligenceX.OpenAI.Usage.ChatGptRateLimitStatus
- codeReviewRateLimit IntelligenceX.OpenAI.Usage.ChatGptRateLimitStatus
- credits IntelligenceX.OpenAI.Usage.ChatGptCreditsSnapshot
- raw IntelligenceX.Json.JsonObject
- additional IntelligenceX.Json.JsonObject
Methods
public static ChatGptUsageSnapshot FromJson(JsonObject obj) #Returns:
ChatGptUsageSnapshotCreates a snapshot from a JSON object.
Parameters
- obj IntelligenceX.Json.JsonObject
- Source JSON object.
Returns
The parsed snapshot.
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object
Properties
public String UserId { get; } #Gets the user id.
public String AccountId { get; } #Gets the account id.
public String Email { get; } #Gets the account email.
public String PlanType { get; } #Gets the plan type identifier.
public ChatGptRateLimitStatus RateLimit { get; } #Gets the main rate limit status.
public ChatGptRateLimitStatus CodeReviewRateLimit { get; } #Gets the code review rate limit status.
public ChatGptCreditsSnapshot Credits { get; } #Gets the credits snapshot.
public JsonObject Raw { get; } #Gets the raw JSON object.
public JsonObject Additional { get; } #Gets unrecognized fields from the payload.