Ejemplo n.º 1
0
 /// <summary>
 /// Initializes a new instance of the MessagingExtensionResult class.
 /// </summary>
 /// <param name="attachmentLayout">Hint for how to deal with multiple
 /// attachments. Possible values include: 'list', 'grid'</param>
 /// <param name="type">The type of the result. Possible values include:
 /// 'result', 'auth', 'config', 'message', 'botMessagePreview'</param>
 /// <param name="attachments">(Only when type is result)
 /// Attachments</param>
 /// <param name="suggestedActions">The message extension suggested actions.</param>
 /// <param name="text">(Only when type is message) Text</param>
 /// <param name="activityPreview">(Only when type is botMessagePreview) Message activity to preview</param>
 public MessagingExtensionResult(string attachmentLayout = default(string), string type = default(string), IList <MessagingExtensionAttachment> attachments = default(IList <MessagingExtensionAttachment>), MessagingExtensionSuggestedAction suggestedActions = default(MessagingExtensionSuggestedAction), string text = default(string), Activity activityPreview = default(Activity))
 {
     AttachmentLayout = attachmentLayout;
     Type             = type;
     Attachments      = attachments;
     SuggestedActions = suggestedActions;
     Text             = text;
     ActivityPreview  = activityPreview;
     CustomInit();
 }