Exemplo n.º 1
0
 public Task Approve(
     [Summary("The ID value of the campaign to be commented upon")]
     long campaignId,
     [Remainder]
     [Summary("The content of the comment")]
     string content)
 => PromotionsService.AddCommentAsync(campaignId, PromotionSentiment.Approve, content);
Exemplo n.º 2
0
        public async Task AbstainAsync(
            [Summary("The ID value of the campaign to be commented upon")]
            long campaignId,
            [Remainder]
            [Summary("The content of the comment")]
            string content)
        {
            await PromotionsService.AddCommentAsync(campaignId, PromotionSentiment.Abstain, content);

            await Context.AddConfirmation();
        }
Exemplo n.º 3
0
 public Task Approve(
     [Summary("The ID value of the campaign to be commented upon")]
     long campaignId)
 => PromotionsService.AddCommentAsync(campaignId, PromotionSentiment.Approve, DefaultApprovalMessage);