microsoft/teams.net

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
samples/migration-bot

Branches

Tags

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

Clone

HTTPS

Download ZIP

Libraries/Microsoft.Teams.Api/Memberships/MembershipSourceType.cs

18lines · modecode

1using System.Text.Json.Serialization;
2
3using Microsoft.Teams.Common;
4
5namespace Microsoft.Teams.Api.Memberships;
6
7/// <summary>
8/// The type of roster the user is a member of
9/// </summary>
10[JsonConverter(typeof(JsonConverter<MembershipSourceType>))]
11public class MembershipSourceType(string value) : StringEnum(value)
12{
13 public static readonly MembershipSourceType Channel = new("channel");
14 public bool IsChannel => Channel.Equals(Value);
15
16 public static readonly MembershipSourceType Team = new("team");
17 public bool IsTeam => Team.Equals(Value);
18}