/// <summary> /// Пожаловаться на капчу /// </summary> /// <param name="reportIncorrect">Модель данных</param> /// <returns></returns> public ReportIncorrectResp ReportIncorrectImageCaptcha(ReportIncorrect reportIncorrect) { var response = _request.Post(_link + Method.ReportIncorrectImageCaptcha, Converts.JsonSerializer(reportIncorrect)); return(Converts.JsonDeserializ <ReportIncorrectResp>(response)); }
/// <summary> /// Получение баланса /// </summary> /// <returns></returns> public BalanceResp GetBalance() { var response = _request.Post(_link + Method.GetBalance, Converts.JsonSerializer(new GetBalance())); return(Converts.JsonDeserializ <BalanceResp>(response)); }
/// <summary> /// Получить информацию о загрузке очереди /// </summary> /// <param name="getTaskResult">Модель данных</param> /// <returns></returns> public QueueStatsResp GetQueueStats(GetQueueStats getQueueStatus) { var response = _request.Post(_link + Method.GetQueueStats, Converts.JsonSerializer(getQueueStatus)); return(Converts.JsonDeserializ <QueueStatsResp>(response)); }
/// <summary> /// Получить результат задачи /// </summary> /// <param name="getTaskResult">Модель данных</param> /// <returns></returns> private TaskResultResp GetTaskResult(GetTaskResult getTaskResult) { var response = _request.Post(_link + Method.GetTaskResult, Converts.JsonSerializer(getTaskResult)); return(Converts.JsonDeserializ <TaskResultResp>(response)); }
/// <summary> /// Cоздание задачи /// </summary> /// <param name="createTask">Модель данных</param> /// <returns></returns> private CreateTaskResp CreateTask(CreateTask createTask) { var response = _request.Post(_link + Method.CreateTask, Converts.JsonSerializer(createTask)); return(Converts.JsonDeserializ <CreateTaskResp>(response)); }
/// <summary> /// Тестовый метод для отладки /// </summary> /// <param name="test">Модель данных</param> /// <returns></returns> private string Test(Test test) { var response = _request.Post(_link + Method.Test, Converts.JsonSerializer(test)); return(response); }
/// <summary> /// Отправить средства другому пользователю /// </summary> /// <param name="sendFunds">Модель данных</param> /// <returns></returns> public SendFundsResp SendFunds(SendFunds sendFunds) { var response = _request.Post(_link + Method.SendFunds, Converts.JsonSerializer(sendFunds)); return(Converts.JsonDeserializ <SendFundsResp>(response)); }
/// <summary> /// Получить статистику трат аккаунта /// </summary> /// <param name="spendingStats">Модель данных</param> /// <returns></returns> public SpendingStatsResp GetSpendingStats(SpendingStats spendingStats) { var response = _request.Post(_link + Method.GetSpendingStats, Converts.JsonSerializer(spendingStats)); return(Converts.JsonDeserializ <SpendingStatsResp>(response)); }