예제 #1
0
        /// <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));
        }
예제 #2
0
        /// <summary>
        /// Получение баланса
        /// </summary>
        /// <returns></returns>
        public BalanceResp GetBalance()
        {
            var response = _request.Post(_link + Method.GetBalance, Converts.JsonSerializer(new GetBalance()));

            return(Converts.JsonDeserializ <BalanceResp>(response));
        }
예제 #3
0
        /// <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));
        }
예제 #4
0
        /// <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));
        }
예제 #5
0
        /// <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));
        }
예제 #6
0
        /// <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);
        }
예제 #7
0
        /// <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));
        }
예제 #8
0
        /// <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));
        }