microsoft/teams.net

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
next/core-activitybuilder

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

36lines · 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.Entities;
7
8public 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>))]
26public 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}