예제 #1
0
        public async Task DeleteSubmissionAsync(int submissionId)
        {
            var request  = new BasicSubmissionRequest(submissionId);
            var response = await RequestAsync <BaseResponse>("delsubmission", new KeyValueCollection(request) {
                ["sid"] = Session.SessionId,
            });

            response.EnsureSuccess();
        }
예제 #2
0
        public async Task GetSubmissionFavingUsersAsync(Submission submission)
        {
            var request  = new BasicSubmissionRequest(submission.Id);
            var response = await RequestAsync <FavingUsersResponse>("submissionfavingusers", new KeyValueCollection(request) {
                ["sid"] = Session.SessionId,
            });

            response.EnsureSuccess();
            submission.FavingUsers = response.FavingUsers;
        }