microsoft/teams.net

Public

mirrored from https://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v2.0.0-preview.6

Branches

Tags

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

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.Api/Entities/StreamInfoEntity.cs

33lines · modecode

1using System.Text.Json.Serialization;
2
3namespace Microsoft.Teams.Api.Entities;
4
5public class StreamInfoEntity : Entity
6{
7 [JsonPropertyName("streamId")]
8 [JsonPropertyOrder(3)]
9 public string? StreamId { get; set; }
10
11 [JsonPropertyName("streamType")]
12 [JsonPropertyOrder(4)]
13 public StreamType? StreamType { get; set; }
14
15 [JsonPropertyName("streamSequence")]
16 [JsonPropertyOrder(5)]
17 public int? StreamSequence { get; set; }
18
19 public StreamInfoEntity() : base("streaminfo") { }
20}
21
22[JsonConverter(typeof(JsonConverter<StreamType>))]
23public class StreamType(string value) : Common.StringEnum(value)
24{
25 public static readonly StreamType Informative = new("informative");
26 public bool IsInformative => Informative.Equals(Value);
27
28 public static readonly StreamType Streaming = new("streaming");
29 public bool IsStreaming => Streaming.Equals(Value);
30
31 public static readonly StreamType Final = new("final");
32 public bool IsFinal => Final.Equals(Value);
33}