Class DeepSeekUserBalanceResponse
java.lang.Object
de.entwicklertraining.api.base.ApiResponse<DeepSeekUserBalanceRequest>
de.entwicklertraining.deepseek4j.DeepSeekResponse<DeepSeekUserBalanceRequest>
de.entwicklertraining.deepseek4j.user.balance.DeepSeekUserBalanceResponse
Represents a response from the DeepSeek User Balance API.
Provides methods to access the user's balance information.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents balance information for a specific currency. -
Field Summary
Fields inherited from class de.entwicklertraining.deepseek4j.DeepSeekResponse
json -
Constructor Summary
ConstructorsConstructorDescriptionDeepSeekUserBalanceResponse(org.json.JSONObject json, DeepSeekUserBalanceRequest request) Constructs a DeepSeekUserBalanceResponse. -
Method Summary
Modifier and TypeMethodDescriptionGets the list of balance information for different currencies.booleanGets whether the user's balance is sufficient for API calls.Methods inherited from class de.entwicklertraining.deepseek4j.DeepSeekResponse
getJson, getRequest
-
Constructor Details
-
DeepSeekUserBalanceResponse
Constructs a DeepSeekUserBalanceResponse.- Parameters:
json- The raw JSON response object.request- The original request that led to this response.
-
-
Method Details
-
isAvailable
public boolean isAvailable()Gets whether the user's balance is sufficient for API calls.- Returns:
- true if the balance is available, false otherwise.
-
getBalanceInfos
Gets the list of balance information for different currencies.- Returns:
- A list of BalanceInfo objects, or an empty list if not present or invalid.
-