/// <summary> /// Initializes a new instance of the <see cref="NotificationTemplateHeader" /> class. /// </summary> /// <param name="Type">Template header type. (required).</param> /// <param name="Text">Header text. For WhatsApp, ignored..</param> /// <param name="Media">Media template header image..</param> /// <param name="Parameters">Template parameters for placeholders in template..</param> public NotificationTemplateHeader(TypeEnum?Type = null, string Text = null, ContentAttachment Media = null, List <NotificationTemplateParameter> Parameters = null) { this.Type = Type; this.Text = Text; this.Media = Media; this.Parameters = Parameters; }
/// <summary> /// Initializes a new instance of the <see cref="MessageContent" /> class. /// </summary> /// <param name="ContentType">Type of this content element. (required).</param> /// <param name="Location">Location content..</param> /// <param name="Attachment">Attachment content..</param> /// <param name="QuickReply">Quick reply content..</param> /// <param name="ButtonResponse">Button response content..</param> /// <param name="Generic">Generic content (Deprecated)..</param> /// <param name="List">List content (Deprecated)..</param> /// <param name="Template">Template notification content..</param> /// <param name="Reactions">A set of reactions to a message..</param> /// <param name="Mention">Mention content..</param> /// <param name="Postback">Structured message postback (Deprecated)..</param> /// <param name="Story">Ephemeral story content..</param> /// <param name="Card">Card content.</param> /// <param name="Carousel">Carousel content.</param> public MessageContent(ContentTypeEnum?ContentType = null, ContentLocation Location = null, ContentAttachment Attachment = null, ContentQuickReply QuickReply = null, ContentButtonResponse ButtonResponse = null, ContentGeneric Generic = null, ContentList List = null, ContentNotificationTemplate Template = null, List <ContentReaction> Reactions = null, MessagingRecipient Mention = null, ContentPostback Postback = null, ContentStory Story = null, ContentCard Card = null, ContentCarousel Carousel = null) { this.ContentType = ContentType; this.Location = Location; this.Attachment = Attachment; this.QuickReply = QuickReply; this.ButtonResponse = ButtonResponse; this.Generic = Generic; this.List = List; this.Template = Template; this.Reactions = Reactions; this.Mention = Mention; this.Postback = Postback; this.Story = Story; this.Card = Card; this.Carousel = Carousel; }
/// <summary> /// Initializes a new instance of the <see cref="OpenMessageContent" /> class. /// </summary> /// <param name="ContentType">Type of this content element. If contentType = \"Attachment\" only one item is allowed. (required).</param> /// <param name="Attachment">Attachment content..</param> public OpenMessageContent(ContentTypeEnum?ContentType = null, ContentAttachment Attachment = null) { this.ContentType = ContentType; this.Attachment = Attachment; }