-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
meetings in GetCalendarTasks response #163
Merged
egor-goncharov
merged 4 commits into
master
from
eg/api-calendar-improvements-259220315
Jan 27, 2025
Merged
Changes from 3 commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
поехало форматирование немного
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
пофиксил