Class RestResponse
Definition
- Assembly:
- Tizen.AIAvatar.dll
Represents the response from a REST API call, containing information such as status, content, and potential error messages.
public class RestResponse
- Inheritance
-
objectRestResponse
Properties
View SourceContent
The content of the response as a string, typically containing the body of the HTTP response.
Declaration
public string Content { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
ErrorMessage
The error message if the request failed, providing details about what went wrong.
Declaration
public string ErrorMessage { get; set; }
Property Value
| Type | Description |
|---|---|
| string |
IsSuccessful
Indicates whether the request was successful.
Declaration
public bool IsSuccessful { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
RawBytes
The raw bytes of the response, which can be useful for handling non-text data or binary responses.
Declaration
public byte[] RawBytes { get; set; }
Property Value
| Type | Description |
|---|---|
| byte[] |
StatusCode
The HTTP status code returned by the server, providing information about the response status.
Declaration
public HttpStatusCode StatusCode { get; set; }
Property Value
| Type | Description |
|---|---|
| HttpStatusCode |