microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Api/Memberships/MembershipSourceType.cs
18lines · modecode
| 1 | using System.Text.Json.Serialization; |
| 2 | |
| 3 | using Microsoft.Teams.Common; |
| 4 | |
| 5 | namespace 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>))] |
| 11 | public 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 | } |