Class RestClient

    Definition

    Namespace:
    Tizen.AIAvatar
    Assembly:
    Tizen.AIAvatar.dll

    A class that provides methods to execute REST requests and handle responses.

    public class RestClient : IRestClient, IDisposable
    Inheritance
    object
    RestClient
    Implements
    IRestClient
    IDisposable

    Constructors

    View Source

    RestClient(HttpClient)

    Initializes a new instance of the RestClient class with the specified HttpClient.

    Declaration
    public RestClient(HttpClient httpClient)
    Parameters
    Type Name Description
    HttpClient httpClient

    The HttpClient instance to use for sending HTTP requests.

    Methods

    View Source

    Dispose()

    Disposes of the resources used by the RestClient.

    Declaration
    public void Dispose()
    View Source

    Dispose(bool)

    Disposes of the resources used by the RestClient.

    Declaration
    protected virtual void Dispose(bool disposing)
    Parameters
    Type Name Description
    bool disposing
    View Source

    ExecuteAsync(RestRequest)

    Executes a REST request asynchronously and returns the response.

    Declaration
    public Task<RestResponse> ExecuteAsync(RestRequest request)
    Parameters
    Type Name Description
    RestRequest request

    The RestRequest object containing details of the request.

    Returns
    Type Description
    Task<><RestResponse>

    A RestResponse object representing the result of the request.

    Implements

    IRestClient
    IDisposable

    Extension Methods

    EXamlExtensions.LoadFromEXamlByRelativePath<T>(T, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, string)
    Extensions.LoadFromXaml<TXaml>(TXaml, Type)
    Extensions.LoadFromXamlFile<TXaml>(TXaml, string)
    • View Source
    Back to top Copyright © 2016-2025 Samsung
    Generated by DocFX