Esempio n. 1
0
 /// <summary>
 /// Initializes a new instance of the AnimationCard class.
 /// </summary>
 /// <param name="title">Title of this card</param>
 /// <param name="subtitle">Subtitle of this card</param>
 /// <param name="text">Text of this card</param>
 /// <param name="image">Thumbnail placeholder</param>
 /// <param name="media">Media URLs for this card</param>
 /// <param name="buttons">Actions on this card</param>
 /// <param name="shareable">This content may be shared with others
 /// (default:true)</param>
 /// <param name="autoloop">Should the client loop playback at end of
 /// content (default:true)</param>
 /// <param name="autostart">Should the client automatically start
 /// playback of media in this card (default:true)</param>
 /// <param name="aspect">Aspect ratio of thumbnail/media placeholder,
 /// allowed values are "16:9" and "4:3"</param>
 /// <param name="value">Supplementary parameter for this card</param>
 public AnimationCard(string title = default(string), string subtitle = default(string), string text = default(string), ThumbnailUrl image = default(ThumbnailUrl), IList <MediaUrl> media = default(IList <MediaUrl>), IList <CardAction> buttons = default(IList <CardAction>), bool?shareable = default(bool?), bool?autoloop = default(bool?), bool?autostart = default(bool?), string aspect = default(string), object value = default(object))
 {
     Title     = title;
     Subtitle  = subtitle;
     Text      = text;
     Image     = image;
     Media     = media;
     Buttons   = buttons;
     Shareable = shareable;
     Autoloop  = autoloop;
     Autostart = autostart;
     Aspect    = aspect;
     Value     = value;
     CustomInit();
 }
Esempio n. 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="VideoCard"/> class.
 /// </summary>
 /// <param name="title">Title of this card.</param>
 /// <param name="subtitle">Subtitle of this card.</param>
 /// <param name="text">Text of this card.</param>
 /// <param name="image">Thumbnail placeholder.</param>
 /// <param name="media">Media URLs for this card. When this field
 /// contains more than one URL, each URL is an alternative format of
 /// the same content.</param>
 /// <param name="buttons">Actions on this card.</param>
 /// <param name="shareable">This content may be shared with others
 /// (default:true).</param>
 /// <param name="autoloop">Should the client loop playback at end of
 /// content (default:true).</param>
 /// <param name="autostart">Should the client automatically start
 /// playback of media in this card (default:true).</param>
 /// <param name="aspect">Aspect ratio of thumbnail/media placeholder.
 /// Allowed values are "16:9" and "4:3".</param>
 /// <param name="duration">Describes the length of the media content
 /// without requiring a receiver to open the content. Formatted as an
 /// ISO 8601 Duration field.</param>
 /// <param name="value">Supplementary parameter for this card.</param>
 public VideoCard(string title = default, string subtitle = default, string text = default, ThumbnailUrl image = default, IList <MediaUrl> media = default, IList <CardAction> buttons = default, bool?shareable = default, bool?autoloop = default, bool?autostart = default, string aspect = default, object value = default, string duration = default)
 {
     Title     = title;
     Subtitle  = subtitle;
     Text      = text;
     Image     = image;
     Media     = media;
     Buttons   = buttons;
     Shareable = shareable;
     Autoloop  = autoloop;
     Autostart = autostart;
     Aspect    = aspect;
     Duration  = duration;
     Value     = value;
     CustomInit();
 }