Skip to content

Commit

Permalink
Merge pull request #144 from tada-team/meetings-cell-events
Browse files Browse the repository at this point in the history
Meetings cell events
  • Loading branch information
melkayalenka authored Nov 30, 2022
2 parents 6e5e121 + 1aeff2c commit 6f8e73e
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
9 changes: 9 additions & 0 deletions meetings.go
Original file line number Diff line number Diff line change
Expand Up @@ -159,3 +159,12 @@ type MeetingsGetFrequencyDescriptionParams struct {
FreqDays *string `json:"freq_days,omitempty"`
RepeatabilityType MeetingRepeatabilityType `json:"repeatability_type"`
}

type MeetingsUpdateCellRequest struct {
MeetingId string `json:"meeting_id"`
TeamUuid string `json:"team_uuid"`
Duration int32 `json:"duration"`
IsOutside bool `json:"is_outside"`
CellStartOldDate string `json:"cell_start_old_date"`
CellStartNewDate string `json:"cell_start_new_date"`
}
27 changes: 27 additions & 0 deletions server_meetingcell_updated.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package tdproto

func NewServerMeetingCellUpdated(meetingID string, startAtOld, startAtNew ISODateTimeString, duration int32) (r ServerMeetingCellUpdated) {
r.Name = r.GetName()
r.Params.MeetingID = meetingID
r.Params.StartAtOld = startAtOld
r.Params.StartAtNew = startAtNew
r.Params.Duration = duration
return r
}

// Meeting Cell updated
type ServerMeetingCellUpdated struct {
BaseEvent
Params serverMeetingCellUpdatedParams `json:"params"`
}

func (p ServerMeetingCellUpdated) GetName() string { return "server.meetingcell.updated" }

// Params of the server.meetingcell.updated event
type serverMeetingCellUpdatedParams struct {
// Meeting Cell info
MeetingID string `json:"meeting_id"`
StartAtOld ISODateTimeString `json:"start_at_old"`
StartAtNew ISODateTimeString `json:"start_at_new"`
Duration int32 `json:"duration"`
}

0 comments on commit 6f8e73e

Please sign in to comment.