/// <summary>
 /// Initializes a new instance of the MessagingExtensionAction class.
 /// </summary>
 /// <param name="data">User input data. Free payload with key-value
 /// pairs.</param>
 /// <param name="context">Current user context, i.e., the current
 /// theme</param>
 /// <param name="commandId">Id of the command assigned by Bot</param>
 /// <param name="commandContext">The context from which the command
 /// originates. Possible values include: 'message', 'compose',
 /// 'commandbox'</param>
 /// <param name="botMessagePreviewAction">Bot message preview action
 /// taken by user. Possible values include: 'edit', 'send'</param>
 /// <param name="messagePayload">Message content sent as part of the
 /// command request.</param>
 public MessagingExtensionAction(object data = default(object), TaskModuleRequestContext context = default(TaskModuleRequestContext), string commandId = default(string), string commandContext = default(string), string botMessagePreviewAction = default(string), IList <Activity> botActivityPreview = default(IList <Activity>), MessageActionsPayload messagePayload = default(MessageActionsPayload))
     : base(data, context)
 {
     CommandId               = commandId;
     CommandContext          = commandContext;
     BotMessagePreviewAction = botMessagePreviewAction;
     BotActivityPreview      = botActivityPreview;
     MessagePayload          = messagePayload;
     CustomInit();
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="TaskModuleRequest"/> class.
 /// </summary>
 /// <param name="data">User input data. Free payload with key-value
 /// pairs.</param>
 /// <param name="context">Current user context, i.e., the current theme.</param>
 public TaskModuleRequest(object data = default(object), TaskModuleRequestContext context = default(TaskModuleRequestContext))
 {
     Data    = data;
     Context = context;
     CustomInit();
 }