API Reference
Class
ChatGptCreditsSnapshot
Represents a credits snapshot for a ChatGPT account.
Inheritance
- Object
- ChatGptCreditsSnapshot
Usage
Explore 3 API references to this type
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by 2
- Method ChatGptCreditsSnapshot.FromJson
- Property ChatGptUsageSnapshot.Credits
Accepted by parameters 1
- Constructor ChatGptUsageSnapshot.ChatGptUsageSnapshot
Constructors
public ChatGptCreditsSnapshot(Boolean hasCredits, Boolean unlimited, Double? balance, Int32[]? approxLocalMessages, Int32[]? approxCloudMessages, JsonObject raw, JsonObject? additional) #Initializes a new credits snapshot.
Parameters
- hasCredits System.Boolean
- unlimited System.Boolean
- balance System.Double?
- approxLocalMessages System.Int32[]?
- approxCloudMessages System.Int32[]?
- raw IntelligenceX.Json.JsonObject
- additional IntelligenceX.Json.JsonObject?
Methods
public static ChatGptCreditsSnapshot? FromJson(JsonObject? obj) #Returns:
ChatGptCreditsSnapshot?Parses a credits snapshot from JSON.
Parameters
- obj IntelligenceX.Json.JsonObject?
- Source JSON object.
Returns
The parsed snapshot or null.
Inherited Methods
public virtual Boolean Equals(Object? obj) #Returns:
BooleanInherited from Object
Parameters
- obj Object?
Properties
public Boolean HasCredits { get; } #Gets a value indicating whether the account has credits.
public Boolean Unlimited { get; } #Gets a value indicating whether credits are unlimited.
public Int32[]? ApproxLocalMessages { get; } #Gets approximate local message counts.
public Int32[]? ApproxCloudMessages { get; } #Gets approximate cloud message counts.
public JsonObject? Additional { get; } #Gets unrecognized fields from the payload.