Diarkis C++Client Library API Document
Diarkis::DiarkisSessionResponseEventArgs Struct Reference

Arguments of the callback event called when received Session response. More...

#include <eventArgs.h>

Public Member Functions

bool IsSuccess () const
 Get whether the command was successful or not. More...
 
uint16_t GetErrorCode () const
 Get error code. More...
 
const Diarkis::StdStringGetErrorMessage () const
 Gets the contents of the error. More...
 
 DiarkisSessionResponseEventArgs (bool isSuccess_, uint16_t errorCode, const Diarkis::StdString &errorString)
 
 DiarkisSessionResponseEventArgs (DiarkisSessionResponseEventArgs &)=delete
 
 DiarkisSessionResponseEventArgs (DiarkisSessionResponseEventArgs &&)=delete
 

Detailed Description

Arguments of the callback event called when received Session response.

Constructor & Destructor Documentation

◆ DiarkisSessionResponseEventArgs() [1/3]

Diarkis::DiarkisSessionResponseEventArgs::DiarkisSessionResponseEventArgs ( bool  isSuccess_,
uint16_t  errorCode,
const Diarkis::StdString errorString 
)

◆ DiarkisSessionResponseEventArgs() [2/3]

Diarkis::DiarkisSessionResponseEventArgs::DiarkisSessionResponseEventArgs ( DiarkisSessionResponseEventArgs )
delete

◆ DiarkisSessionResponseEventArgs() [3/3]

Diarkis::DiarkisSessionResponseEventArgs::DiarkisSessionResponseEventArgs ( DiarkisSessionResponseEventArgs &&  )
delete

Member Function Documentation

◆ IsSuccess()

bool Diarkis::DiarkisSessionResponseEventArgs::IsSuccess ( ) const

Get whether the command was successful or not.

true=success false=failure

Here is the caller graph for this function:

◆ GetErrorCode()

uint16_t Diarkis::DiarkisSessionResponseEventArgs::GetErrorCode ( ) const

Get error code.

Return 0 if IsSuccess()=true.

Here is the caller graph for this function:

◆ GetErrorMessage()

const Diarkis::StdString& Diarkis::DiarkisSessionResponseEventArgs::GetErrorMessage ( ) const

Gets the contents of the error.

Here is the caller graph for this function:

The documentation for this struct was generated from the following file: