class MAGES::JARIA::JariaRequest

Overview

Class to handle JARIA request. More…

class JariaRequest
{
public:
    // properties

    Action OnResponseReceived;

    // methods

    static async Task PrepareRequest(
        string input,
        UserAuthenticationModule uam,
        Dictionary additionalParamas = null
    );

    static async Task> HandleJsonResponseAsync(HttpResponseMessage response);
};

Detailed Documentation

Class to handle JARIA request.

Properties

Action OnResponseReceived

Gets or sets functions to be called when the response is received from JARIA.

Methods

static async Task PrepareRequest(
    string input,
    UserAuthenticationModule uam,
    Dictionary additionalParamas = null
)

Prepares the request to JARIA.

Parameters:

input

User input.

uam

the user authentication module.

additionalParamas

Additional request parameters.

Returns:

Return an http response.

static async Task> HandleJsonResponseAsync(HttpResponseMessage response)

Handles the JSON response from JARIA.

Parameters:

response

The response.

Returns:

A dictionary.