microsoft/teams.net

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
dev

Branches

Tags

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

Clone

HTTPS

Download ZIP

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

36lines · modepreview

// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

using System.Text.Json.Serialization;

namespace Microsoft.Teams.Api.Entities;

public class StreamInfoEntity : Entity
{
    [JsonPropertyName("streamId")]
    [JsonPropertyOrder(3)]
    public string? StreamId { get; set; }

    [JsonPropertyName("streamType")]
    [JsonPropertyOrder(4)]
    public StreamType? StreamType { get; set; }

    [JsonPropertyName("streamSequence")]
    [JsonPropertyOrder(5)]
    public int? StreamSequence { get; set; }

    public StreamInfoEntity() : base("streaminfo") { }
}

[JsonConverter(typeof(JsonConverter<StreamType>))]
public class StreamType(string value) : Common.StringEnum(value)
{
    public static readonly StreamType Informative = new("informative");
    public bool IsInformative => Informative.Equals(Value);

    public static readonly StreamType Streaming = new("streaming");
    public bool IsStreaming => Streaming.Equals(Value);

    public static readonly StreamType Final = new("final");
    public bool IsFinal => Final.Equals(Value);
}