Skip to content

Commit

Permalink
server.upload.updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdhgjkbmnmxc committed Oct 27, 2020
1 parent 3cc2cef commit 34e23e7
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions server_upload_updated.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package tdproto

func NewServerUploadUpdated(uploads ...Upload) (r ServerUploadUpdated) {
r.Name = r.GetName()
r.Params.Uploads = uploads
return r
}

type ServerUploadUpdated struct {
BaseEvent
Params serverUploadUpdatedParams `json:"params"`
}

func (p ServerUploadUpdated) GetName() string { return "server.upload.updated" }

type serverUploadUpdatedParams struct {
Uploads []Upload `json:"uploads"`
}

0 comments on commit 34e23e7

Please sign in to comment.