Skip to content

Commit

Permalink
Merge pull request #132 from tada-team/add-ivcs-structs
Browse files Browse the repository at this point in the history
feat: add vcs attributes in meetings request/responses
  • Loading branch information
WCStudio2017 authored Oct 6, 2022
2 parents 0d47404 + 78b156e commit a7f36a2
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
11 changes: 11 additions & 0 deletions meetings.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,18 @@ type Meeting struct {
IsRequired bool `json:"is_required,omitempty"`
CanEdit bool `json:"can_edit,omitempty"`
MeetingMembers []MeetingMember `json:"meeting_members,omitempty"`
VCSEnabled bool `json:"vcs_enabled,omitempty"`
IVCSInfo *IVCSInfo `json:"ivcs_info,omitempty"`
Chat
}

type IVCSInfo struct {
ConferenceID string `json:"conference_id,omitempty"`

GuestJoinToken string `json:"guest_join_token,omitempty"`
ModeratorJoinToken string `json:"moderator_join_token,omitempty"`
}

type MeetingsGetRequest struct {
TeamUuid string `json:"team_uuid"`
DateFrom string `json:"date_from"`
Expand Down Expand Up @@ -56,6 +65,7 @@ type MeetingsCreateRequest struct {
Members []MeetingsMemberCreateParams `json:"members"`
IsPublic bool `json:"is_public,omitempty"`
IsOutside *bool `json:"is_outside,omitempty"`
VCSEnabled bool `json:"vcs_enabled,omitempty"`
}

type Freq struct {
Expand All @@ -79,6 +89,7 @@ type MeetingsUpdateRequest struct {
RemoveMembers []JID `json:"remove_members,omitempty"`
NotificationsEnabled *bool `json:"notifications_enabled,omitempty"`
CountersEnabled *bool `json:"counters_enabled,omitempty"`
VCSEnabled *bool `json:"vcs_enabled,omitempty"`
}

type MeetingsDeleteRequestParams struct {
Expand Down
7 changes: 7 additions & 0 deletions tdapi/ivcs.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package tdapi

// IVCSAuthResponse result of auth in IVCS
type IVCSAuthResponse struct {
// SessionID IVA user session ID
SessionID string `json:"session_id,omitempty"`
}

0 comments on commit a7f36a2

Please sign in to comment.