IntelligenceX

API Reference

Class

ChatGptCreditsSnapshot

Namespace IntelligenceX.OpenAI.Usage
Assembly IntelligenceX
Modifiers sealed

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

Accepted by parameters 1

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 requiredposition: 0
unlimited System.Boolean requiredposition: 1
balance System.Double? requiredposition: 2
approxLocalMessages System.Int32[]? requiredposition: 3
approxCloudMessages System.Int32[]? requiredposition: 4
raw IntelligenceX.Json.JsonObject requiredposition: 5
additional IntelligenceX.Json.JsonObject? requiredposition: 6

Methods

public static ChatGptCreditsSnapshot? FromJson(JsonObject? obj) #
Returns: ChatGptCreditsSnapshot?

Parses a credits snapshot from JSON.

Parameters

obj IntelligenceX.Json.JsonObject? requiredposition: 0
Source JSON object.

Returns

The parsed snapshot or null.

public JsonObject ToJson() #
Returns: JsonObject

Serializes the credits snapshot to a JSON 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 Double? Balance { get; } #

Gets the credits balance, when available.

public Int32[]? ApproxLocalMessages { get; } #

Gets approximate local message counts.

public Int32[]? ApproxCloudMessages { get; } #

Gets approximate cloud message counts.

public JsonObject Raw { get; } #

Gets the raw JSON object.

public JsonObject? Additional { get; } #

Gets unrecognized fields from the payload.