microsoft/teams.net
Publicmirrored fromhttps://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Api/Memberships/MembershipType.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 users relationship to the current channel |
| 9 | /// </summary> |
| 10 | [JsonConverter(typeof(JsonConverter<MembershipType>))] |
| 11 | public class MembershipType(string value) : StringEnum(value) |
| 12 | { |
| 13 | public static readonly MembershipType Direct = new("direct"); |
| 14 | public bool IsDirect => Direct.Equals(Value); |
| 15 | |
| 16 | public static readonly MembershipType Transitive = new("transitive"); |
| 17 | public bool IsTransitive => Transitive.Equals(Value); |
| 18 | } |