microsoft/teams.net
Publicmirrored from https://github.com/microsoft/teams.netAvailable
Libraries/Microsoft.Teams.Api/Activities/Events/MeetingStartActivity.cs
65lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. All rights reserved. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using System.Text.Json.Serialization; |
| 5 | |
| 6 | using Microsoft.Teams.Common; |
| 7 | |
| 8 | namespace Microsoft.Teams.Api.Activities.Events; |
| 9 | |
| 10 | public partial class Name : StringEnum |
| 11 | { |
| 12 | public static readonly Name MeetingStart = new("application/vnd.microsoft.meetingStart"); |
| 13 | public bool IsMeetingStart => MeetingStart.Equals(Value); |
| 14 | } |
| 15 | |
| 16 | public class MeetingStartActivity() : EventActivity(Name.MeetingStart) |
| 17 | { |
| 18 | /// <summary> |
| 19 | /// A value that is associated with the activity. |
| 20 | /// </summary> |
| 21 | [JsonPropertyName("value")] |
| 22 | [JsonPropertyOrder(32)] |
| 23 | public required MeetingStartActivityValue Value { get; set; } |
| 24 | } |
| 25 | |
| 26 | /// <summary> |
| 27 | /// A value that is associated with the activity. |
| 28 | /// </summary> |
| 29 | public class MeetingStartActivityValue |
| 30 | { |
| 31 | /// <summary> |
| 32 | /// The meeting's Id, encoded as a BASE64 string. |
| 33 | /// </summary> |
| 34 | [JsonPropertyName("Id")] |
| 35 | [JsonPropertyOrder(0)] |
| 36 | public required string Id { get; set; } |
| 37 | |
| 38 | /// <summary> |
| 39 | /// The meeting's type. |
| 40 | /// </summary> |
| 41 | [JsonPropertyName("MeetingType")] |
| 42 | [JsonPropertyOrder(1)] |
| 43 | public required string MeetingType { get; set; } |
| 44 | |
| 45 | /// <summary> |
| 46 | /// The URL used to join the meeting. |
| 47 | /// </summary> |
| 48 | [JsonPropertyName("JoinUrl")] |
| 49 | [JsonPropertyOrder(2)] |
| 50 | public required string JoinUrl { get; set; } |
| 51 | |
| 52 | /// <summary> |
| 53 | /// The title of the meeting. |
| 54 | /// </summary> |
| 55 | [JsonPropertyName("Title")] |
| 56 | [JsonPropertyOrder(3)] |
| 57 | public required string Title { get; set; } |
| 58 | |
| 59 | /// <summary> |
| 60 | /// Timestamp for meeting start, in UTC. |
| 61 | /// </summary> |
| 62 | [JsonPropertyName("StartTime")] |
| 63 | [JsonPropertyOrder(4)] |
| 64 | public required DateTime StartTime { get; set; } |
| 65 | } |