TcrSdk-Windows V1.0
Public Member Functions | List of all members
AsyncCallback Class Referenceabstract

This interface defines a general async task callback schema. More...

#include <async_callback.h>

Public Member Functions

virtual void OnSuccess (const std::string &result)=0
 This is called when the async task is executed successfully.
 
virtual void OnFailure (const TcrCode &code, const std::string &msg)=0
 This is called when the async task is executed failed.
 

Detailed Description

This interface defines a general async task callback schema.

Member Function Documentation

◆ OnFailure()

virtual void OnFailure ( const TcrCode code,
const std::string &  msg 
)
pure virtual

This is called when the async task is executed failed.

Parameters
codeThe error code of the task execution.
msgThe error message of the task execution.

◆ OnSuccess()

virtual void OnSuccess ( const std::string &  result)
pure virtual

This is called when the async task is executed successfully.

Parameters
resultThe result of the task execution.

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