microsoft/teams.net

Public

mirrored fromhttps://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
docs/update-release-process

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.Api/Cards/AudioCard.cs

70lines · modecode

1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the MIT License.
3
4using System.Text.Json.Serialization;
5
6namespace Microsoft.Teams.Api.Cards;
7
8/// <summary>
9/// An animation card (Ex: gif or short video clip)
10/// </summary>
11public class AudioCard : Card
12{
13 /// <summary>
14 /// Thumbnail placeholder
15 /// </summary>
16 [JsonPropertyName("image")]
17 [JsonPropertyOrder(4)]
18 public ThumbnailUrl? Image { get; set; }
19
20 /// <summary>
21 /// Media URLs for this card. When this field contains more than one URL, each URL is an
22 /// alternative format of the same content.
23 /// </summary>
24 [JsonPropertyName("media")]
25 [JsonPropertyOrder(5)]
26 public IList<MediaUrl>? Media { get; set; }
27
28 /// <summary>
29 /// This content may be shared with others (default:true)
30 /// </summary>
31 [JsonPropertyName("shareable")]
32 [JsonPropertyOrder(6)]
33 public bool? Shareable { get; set; }
34
35 /// <summary>
36 /// Should the client loop playback at end of content (default:true)
37 /// </summary>
38 [JsonPropertyName("autoloop")]
39 [JsonPropertyOrder(7)]
40 public bool? AutoLoop { get; set; }
41
42 /// <summary>
43 /// Should the client automatically start playback of media in this card (default:true)
44 /// </summary>
45 [JsonPropertyName("autostart")]
46 [JsonPropertyOrder(8)]
47 public bool? AutoStart { get; set; }
48
49 /// <summary>
50 /// Aspect ratio of thumbnail/media placeholder. Allowed values are "16:9" and "4:3"
51 /// </summary>
52 [JsonPropertyName("aspect")]
53 [JsonPropertyOrder(9)]
54 public AspectRatio? Aspect { get; set; }
55
56 /// <summary>
57 /// Describes the length of the media content without requiring a receiver to open the content.
58 /// Formatted as an ISO 8601 Duration field.
59 /// </summary>
60 [JsonPropertyName("duration")]
61 [JsonPropertyOrder(10)]
62 public string? Duration { get; set; }
63
64 /// <summary>
65 /// Supplementary parameter for this card
66 /// </summary>
67 [JsonPropertyName("value")]
68 [JsonPropertyOrder(11)]
69 public object? Value { get; set; }
70}