TelegramApi/TelegramResponse.mq5

22 lines
612 B
MQL5
Raw Permalink Normal View History

2025-05-30 16:28:38 +02:00
class TelegramResponse
{
protected:
string lastError;
char result[];
string headers;
public:
void TelegramResponse() {
lastError = NULL;
}
void setLastError(string _lastError) { lastError = _lastError; }
string getLastError() { return lastError; }
void setResult(const char &_result[]) { ArrayCopy(result, _result); }
void getResult(char &_result[]) { ArrayCopy(_result, result); }
void setHeaders(string _headers) { headers = _headers; }
string getHeaders() { return headers; }
};