microsoft/teams.net
Publicmirrored from https://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Api/Entities/StreamInfoEntity.cs
33lines · modecode
| 1 | using System.Text.Json.Serialization; |
| 2 | |
| 3 | namespace Microsoft.Teams.Api.Entities; |
| 4 | |
| 5 | public 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>))] |
| 23 | public 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 | } |