-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from simplygoodsoftware/eg/api-calendar-impro…
…vements-259220315 meetings in GetCalendarTasks response
- Loading branch information
Showing
11 changed files
with
123 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System; | ||
using Newtonsoft.Json; | ||
using Pyrus.ApiClient.JsonConverters; | ||
|
||
namespace PyrusApiClient | ||
{ | ||
public class Meeting | ||
{ | ||
[JsonProperty("id")] | ||
public int Id { get; set; } | ||
|
||
[JsonProperty("type")] | ||
public MeetingType Type { get; set; } | ||
|
||
[JsonProperty("start_time")] | ||
[JsonConverter(typeof(DateTimeJsonConverter), Constants.DateTimeFormat)] | ||
public DateTime? StartTime { get; set; } | ||
|
||
[JsonProperty("duration")] | ||
public int? Duration { get; set; } | ||
|
||
[JsonProperty("join_parameters")] | ||
public MeetingJoinParameters JoinParameters { get; set; } | ||
|
||
[JsonProperty("creator_id")] | ||
public int CreatorId { get; set; } | ||
|
||
[JsonProperty("task_id")] | ||
public int TaskId { get; set; } | ||
|
||
[JsonProperty("shared_calendar_event_id")] | ||
public string SharedCalendarEventId { get; set; } | ||
|
||
[JsonProperty("shared_to_email")] | ||
public bool SharedToEmail { get; set; } | ||
|
||
[JsonProperty("deleted")] | ||
public bool Deleted { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace PyrusApiClient | ||
{ | ||
public class MeetingJoinParameters | ||
{ | ||
[JsonProperty("url")] | ||
public string Url { get; } | ||
|
||
[JsonProperty("external_id")] | ||
public string ExternalId { get; set; } | ||
|
||
[JsonProperty("password")] | ||
public string Password { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using System.Runtime.Serialization; | ||
using Newtonsoft.Json; | ||
using Newtonsoft.Json.Converters; | ||
|
||
namespace PyrusApiClient | ||
{ | ||
[JsonConverter(typeof(StringEnumConverter))] | ||
public enum MeetingType | ||
{ | ||
[EnumMember(Value = "none")] | ||
None, | ||
|
||
[EnumMember(Value = "zoom")] | ||
Zoom, | ||
|
||
[EnumMember(Value = "offline")] | ||
Offline, | ||
|
||
[EnumMember(Value = "google_meet")] | ||
GoogleMeet, | ||
|
||
[EnumMember(Value = "yandex_telemost")] | ||
YandexTelemost, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters