/// <summary> /// Initializes a new instance of the <see cref="WebMessagingGeneric" /> class. /// </summary> /// <param name="Title">Text to show in the title..</param> /// <param name="Description">Text to show in the description..</param> /// <param name="Image">URL of an image..</param> /// <param name="Actions">Actions to be taken..</param> /// <param name="Components">An array of component objects..</param> public WebMessagingGeneric(string Title = null, string Description = null, string Image = null, ContentActions Actions = null, List <ButtonComponent> Components = null) { this.Title = Title; this.Description = Description; this.Image = Image; this.Actions = Actions; this.Components = Components; }
/// <summary> /// Initializes a new instance of the <see cref="ListItemComponent" /> class. /// </summary> /// <param name="Id">An ID assigned to this list item..</param> /// <param name="Rmid">An ID of the rich message instance..</param> /// <param name="Type">The type of list item to render..</param> /// <param name="Image">URL of an image..</param> /// <param name="Title">The main headline of the list item..</param> /// <param name="Description">Text to show in the list item description..</param> /// <param name="Actions">The list item actions (Deprecated)..</param> public ListItemComponent(string Id = null, string Rmid = null, TypeEnum?Type = null, string Image = null, string Title = null, string Description = null, ContentActions Actions = null) { this.Id = Id; this.Rmid = Rmid; this.Type = Type; this.Image = Image; this.Title = Title; this.Description = Description; this.Actions = Actions; }
/// <summary> /// Initializes a new instance of the <see cref="ButtonComponent" /> class. /// </summary> /// <param name="Title">Text to show inside the button..</param> /// <param name="Actions">The button actions (Deprecated)..</param> public ButtonComponent(string Title = null, ContentActions Actions = null) { this.Title = Title; this.Actions = Actions; }
/// <summary> /// Initializes a new instance of the <see cref="ContentList" /> class. /// </summary> /// <param name="Id">A unique ID assigned to this rich message content..</param> /// <param name="ListType">The type of list this instance represents..</param> /// <param name="Title">Text to show in the title..</param> /// <param name="Description">Text to show in the description..</param> /// <param name="SubmitLabel">Label for Submit button..</param> /// <param name="Actions">The list actions (Deprecated)..</param> /// <param name="Components">An array of component objects..</param> public ContentList(string Id = null, ListTypeEnum?ListType = null, string Title = null, string Description = null, string SubmitLabel = null, ContentActions Actions = null, List <ListItemComponent> Components = null) { this.Id = Id; this.ListType = ListType; this.Title = Title; this.Description = Description; this.SubmitLabel = SubmitLabel; this.Actions = Actions; this.Components = Components; }