コード例 #1
0
ファイル: InkBunnyClient.cs プロジェクト: Athari/InkBunny.Api
        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
ファイル: InkBunnyClient.cs プロジェクト: Athari/InkBunny.Api
        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;
        }