microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Api/Entities/StreamInfoEntity.cs
36lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using System.Text.Json.Serialization; |
| 5 | |
| 6 | namespace Microsoft.Teams.Api.Entities; |
| 7 | |
| 8 | public class StreamInfoEntity : Entity |
| 9 | { |
| 10 | [JsonPropertyName("streamId")] |
| 11 | [JsonPropertyOrder(3)] |
| 12 | public string? StreamId { get; set; } |
| 13 | |
| 14 | [JsonPropertyName("streamType")] |
| 15 | [JsonPropertyOrder(4)] |
| 16 | public StreamType? StreamType { get; set; } |
| 17 | |
| 18 | [JsonPropertyName("streamSequence")] |
| 19 | [JsonPropertyOrder(5)] |
| 20 | public int? StreamSequence { get; set; } |
| 21 | |
| 22 | public StreamInfoEntity() : base("streaminfo") { } |
| 23 | } |
| 24 | |
| 25 | [JsonConverter(typeof(JsonConverter<StreamType>))] |
| 26 | public class StreamType(string value) : Common.StringEnum(value) |
| 27 | { |
| 28 | public static readonly StreamType Informative = new("informative"); |
| 29 | public bool IsInformative => Informative.Equals(Value); |
| 30 | |
| 31 | public static readonly StreamType Streaming = new("streaming"); |
| 32 | public bool IsStreaming => Streaming.Equals(Value); |
| 33 | |
| 34 | public static readonly StreamType Final = new("final"); |
| 35 | public bool IsFinal => Final.Equals(Value); |
| 36 | } |