-
Notifications
You must be signed in to change notification settings - Fork 0
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 #144 from tada-team/meetings-cell-events
Meetings cell events
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 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
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,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"` | ||
} |