public DialogSimpleViewModel(Models.Dialog dialog) { Id = dialog.Id; Title = dialog.Title; CreatingTime = dialog.CreatingTime; LastMessageTime = dialog.LastMessageTime; }
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); }