Ejemplo n.º 1
0
 public DialogSimpleViewModel(Models.Dialog dialog)
 {
     Id              = dialog.Id;
     Title           = dialog.Title;
     CreatingTime    = dialog.CreatingTime;
     LastMessageTime = dialog.LastMessageTime;
 }
Ejemplo n.º 2
0
        public async Task <MessageResponse> Open(string slackKey, Models.Dialog dialog, string triggerId)
        {
            var response = await ClientConstants
                           .SlackApiHost
                           .AppendPathSegment(DIALOG_OPEN_PATH)
                           .SetQueryParam("token", slackKey)
                           .SetQueryParam("trigger_id", triggerId)
                           .SetQueryParam("dialog", JsonConvert.SerializeObject(dialog))
                           .GetJsonAsync <MessageResponse>();

            responseVerifier.VerifyDialogResponse(response);

            return(response);
        }