public async Task StartAsync(IDialogContext context) { if (context == null) { throw new ArgumentNullException(nameof(context)); } //Set the Last Dialog in Conversation Data context.UserData.SetValue(Strings.LastDialogKey, Strings.LastDialogThumbnailCard); var message = context.MakeMessage(); var attachment = GetThumbnailCard(); message.Attachments.Add(attachment); message.Attachments.Add(TemplateUtility.GetChoiceOptionCard()); await context.PostAsync((message)); context.Done <object>(null); }
public async Task StartAsync(IDialogContext context) { if (context == null) { throw new ArgumentNullException(nameof(context)); } //Set the Last Dialog in Conversation Data context.UserData.SetValue(Strings.LastDialogKey, Strings.LastDialogConnectorCard); var message = context.MakeMessage(); var attachment = GetO365ConnectorCardAttachment(context); message.Attachments.Add(attachment); if (!O365ConnectorCardChoice.Equals(Strings.cmdO365ConnectorCardActionableMessages)) { message.Attachments.Add(TemplateUtility.GetChoiceOptionCard()); } await context.PostAsync((message)); context.Done <object>(null); }