TcrSdk-Windows V1.0
async_callback.h
Go to the documentation of this file.
1#ifndef TCRSDK_ASYNC_CALLBACK_H_
2#define TCRSDK_ASYNC_CALLBACK_H_
3
4#include <string>
5#include "tcr_code.h"
6
11public:
17 virtual void OnSuccess(const std::string& result) = 0;
18
25 virtual void OnFailure(const TcrCode& code, const std::string& msg) = 0;
26};
27
28#endif
This interface defines a general async task callback schema.
Definition async_callback.h:10
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.
TcrCode
This interface defines common codes of TcrSdk.
Definition tcr_code.h:9