Skip to content

Commit

Permalink
Merge pull request #78 from tada-team/wp-socket
Browse files Browse the repository at this point in the history
feat(billing):add server_workplace_updated
  • Loading branch information
igo95862 authored Feb 10, 2022
2 parents 15cf348 + 27d1f70 commit 3193d24
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions server_workplace_updated.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
package tdproto

func NewServerWorkplaceUpdated(workplaces []UserInfo) (r ServerWorkplaceUpdated) {
r.Name = r.GetName()
r.Params.Workplaces = workplaces
return r
}

// ServerWorkplaceUpdated Workplace created or updated
type ServerWorkplaceUpdated struct {
BaseEvent
Params serverWorkplaceUpdatedParams `json:"params"`
}

func (p ServerWorkplaceUpdated) GetName() string { return "server.workplace.updated" }

// Params of the server.workplace.updated event
type serverWorkplaceUpdatedParams struct {
// Workplaces info
Workplaces []UserInfo `json:"workplaces"`
}

0 comments on commit 3193d24

Please sign in to comment.