Skip to content

Commit

Permalink
refact
Browse files Browse the repository at this point in the history
  • Loading branch information
sdfsdhgjkbmnmxc committed Sep 9, 2020

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 71fadb7 commit d7240f5
Showing 50 changed files with 100 additions and 100 deletions.
4 changes: 2 additions & 2 deletions client_activity.go
Original file line number Diff line number Diff line change
@@ -2,9 +2,9 @@ package tdproto

type ClientActivity struct {
BaseEvent
Params ClientActivityParams `json:"params"`
Params clientActivityParams `json:"params"`
}

type ClientActivityParams struct {
type clientActivityParams struct {
Afk bool `json:"afk"`
}
4 changes: 2 additions & 2 deletions client_call_buzz.go
Original file line number Diff line number Diff line change
@@ -2,10 +2,10 @@ package tdproto

type ClientCallBuzz struct {
BaseEvent
Params ClientCallBuzzParams `json:"params"`
Params clientCallBuzzParams `json:"params"`
}

type ClientCallBuzzParams struct {
type clientCallBuzzParams struct {
Jid JID `json:"jid"`
Members []JID `json:"members"`
}
4 changes: 2 additions & 2 deletions client_call_buzzcancel.go
Original file line number Diff line number Diff line change
@@ -2,9 +2,9 @@ package tdproto

type ClientCallBuzzCancel struct {
BaseEvent
Params ClientCallBuzzCancelParams `json:"params"`
Params clientCallBuzzCancelParams `json:"params"`
}

type ClientCallBuzzCancelParams struct {
type clientCallBuzzCancelParams struct {
Jid JID `json:"jid"`
}
4 changes: 2 additions & 2 deletions client_call_leave.go
Original file line number Diff line number Diff line change
@@ -2,10 +2,10 @@ package tdproto

type ClientCallLeave struct {
BaseEvent
Params ClientCallLeaveParams `json:"params"`
Params clientCallLeaveParams `json:"params"`
}

type ClientCallLeaveParams struct {
type clientCallLeaveParams struct {
Jid JID `json:"jid"`
Reason string `json:"reason"`
LeaveWithoutClosing bool `json:"test_not_in_room,omitempty"`
4 changes: 2 additions & 2 deletions client_call_muteall.go
Original file line number Diff line number Diff line change
@@ -2,9 +2,9 @@ package tdproto

type ClientCallMuteAll struct {
BaseEvent
Params ClientCallMuteAllParams `json:"params"`
Params clientCallMuteAllParams `json:"params"`
}

type ClientCallMuteAllParams struct {
type clientCallMuteAllParams struct {
Jid JID `json:"jid"`
}
4 changes: 2 additions & 2 deletions client_call_offer.go
Original file line number Diff line number Diff line change
@@ -2,10 +2,10 @@ package tdproto

type ClientCallOffer struct {
BaseEvent
Params ClientCallOfferParams `json:"params"`
Params clientCallOfferParams `json:"params"`
}

type ClientCallOfferParams struct {
type clientCallOfferParams struct {
Jid JID `json:"jid"`
Muted bool `json:"muted"`
Trickle bool `json:"trickle"`
4 changes: 2 additions & 2 deletions client_call_reject.go
Original file line number Diff line number Diff line change
@@ -2,10 +2,10 @@ package tdproto

type ClientCallReject struct {
BaseEvent
Params ClientCallRejectParams `json:"params"`
Params clientCallRejectParams `json:"params"`
}

type ClientCallRejectParams struct {
type clientCallRejectParams struct {
Jid JID `json:"jid"`
Reason string `json:"reason"`
}
4 changes: 2 additions & 2 deletions client_call_sound.go
Original file line number Diff line number Diff line change
@@ -2,10 +2,10 @@ package tdproto

type ClientCallSound struct {
BaseEvent
Params ClientCallSoundParams `json:"params"`
Params clientCallSoundParams `json:"params"`
}

type ClientCallSoundParams struct {
type clientCallSoundParams struct {
Jid JID `json:"jid"`
Muted bool `json:"muted"`
}
4 changes: 2 additions & 2 deletions client_call_trickle.go
Original file line number Diff line number Diff line change
@@ -2,10 +2,10 @@ package tdproto

type ClientCallTrickle struct {
BaseEvent
Params ClientCallTrickleParams `json:"params"`
Params clientCallTrickleParams `json:"params"`
}

type ClientCallTrickleParams struct {
type clientCallTrickleParams struct {
Jid JID `json:"jid"`
Candidate string `json:"candidate"`
SdpMid string `json:"sdp_mid"`
4 changes: 2 additions & 2 deletions client_chat_composing.go
Original file line number Diff line number Diff line change
@@ -2,10 +2,10 @@ package tdproto

type ClientChatComposing struct {
BaseEvent
Params ClientChatComposingParams `json:"params"`
Params clientChatComposingParams `json:"params"`
}

type ClientChatComposingParams struct {
type clientChatComposingParams struct {
Jid JID `json:"jid"`
IsAudio bool `json:"is_audio"`
Composing bool `json:"composing"`
4 changes: 2 additions & 2 deletions client_chat_lastread.go
Original file line number Diff line number Diff line change
@@ -2,10 +2,10 @@ package tdproto

type ClientChatLastread struct {
BaseEvent
Params ClientChatLastreadParams `json:"params"`
Params clientChatLastreadParams `json:"params"`
}

type ClientChatLastreadParams struct {
type clientChatLastreadParams struct {
Jid JID `json:"jid"`
LastReadMessageId *string `json:"last_read_message_id"`
}
4 changes: 2 additions & 2 deletions client_confirm.go
Original file line number Diff line number Diff line change
@@ -8,9 +8,9 @@ func NewClientConfirm(confirmId string) (r ClientConfirm) {

type ClientConfirm struct {
BaseEvent
Params ClientConfirmParams `json:"params"`
Params clientConfirmParams `json:"params"`
}

type ClientConfirmParams struct {
type clientConfirmParams struct {
ConfirmId string `json:"confirm_id"`
}
4 changes: 2 additions & 2 deletions client_message_deleted.go
Original file line number Diff line number Diff line change
@@ -9,9 +9,9 @@ func NewClientMessageDeleted(messageId string) (r ClientMessageDeleted) {

type ClientMessageDeleted struct {
BaseEvent
Params ClientMessageDeletedParams `json:"params"`
Params clientMessageDeletedParams `json:"params"`
}

type ClientMessageDeletedParams struct {
type clientMessageDeletedParams struct {
MessageId string `json:"message_id,omitempty"`
}
4 changes: 2 additions & 2 deletions server_call_answer.go
Original file line number Diff line number Diff line change
@@ -12,10 +12,10 @@ func NewServerCallAnswer(jid JID, sdp string, onliners []CallOnliner, uid string

type ServerCallAnswer struct {
BaseEvent
Params ServerCallAnswerParams `json:"params"`
Params serverCallAnswerParams `json:"params"`
}

type ServerCallAnswerParams struct {
type serverCallAnswerParams struct {
Jid JID `json:"jid"`
Candidates []serverCallAnswerCandidate `json:"candidates"`
Onliners []CallOnliner `json:"onliners"`
4 changes: 2 additions & 2 deletions server_call_buzz.go
Original file line number Diff line number Diff line change
@@ -17,10 +17,10 @@ func NewServerCallBuzz(chat JID, teamUid, displayName string, icons *IconData, u

type ServerCallBuzz struct {
BaseEvent
Params ServerCallBuzzParams `json:"params"`
Params serverCallBuzzParams `json:"params"`
}

type ServerCallBuzzParams struct {
type serverCallBuzzParams struct {
Jid JID `json:"jid"`
Team string `json:"team"`
DisplayName string `json:"display_name"`
4 changes: 2 additions & 2 deletions server_call_buzzcancel.go
Original file line number Diff line number Diff line change
@@ -10,10 +10,10 @@ func NewServerCallBuzzcancel(chat *JID, teamUid string, uid string) (r ServerCal

type ServerCallBuzzcancel struct {
BaseEvent
Params ServerCallBuzzcancelParams `json:"params"`
Params serverCallBuzzcancelParams `json:"params"`
}

type ServerCallBuzzcancelParams struct {
type serverCallBuzzcancelParams struct {
Jid JID `json:"jid"`
Team string `json:"team"`
Uid string `json:"uid"`
4 changes: 2 additions & 2 deletions server_call_checkfingerprint.go
Original file line number Diff line number Diff line change
@@ -8,9 +8,9 @@ func NewServerCallCheckFingerprint(fingerprint string) (r ServerCallCheckFingerp

type ServerCallCheckFingerprint struct {
BaseEvent
Params ServerCallCheckFingerprintParams `json:"params"`
Params serverCallCheckFingerprintParams `json:"params"`
}

type ServerCallCheckFingerprintParams struct {
type serverCallCheckFingerprintParams struct {
Fingerprint string `json:"fingerprint"`
}
4 changes: 2 additions & 2 deletions server_call_leave.go
Original file line number Diff line number Diff line change
@@ -9,10 +9,10 @@ func NewServerCallLeave(jid JID, uid string) (r ServerCallLeave) {

type ServerCallLeave struct {
BaseEvent
Params ServerCallLeaveParams `json:"params"`
Params serverCallLeaveParams `json:"params"`
}

type ServerCallLeaveParams struct {
type serverCallLeaveParams struct {
Jid JID `json:"jid"`
Uid string `json:"uid"`
}
4 changes: 2 additions & 2 deletions server_call_muteall.go
Original file line number Diff line number Diff line change
@@ -10,10 +10,10 @@ func NewServerCallMuteall(jid JID, muted bool, error string) (r ServerCallMuteal

type ServerCallMuteall struct {
BaseEvent
Params ServerCallMuteallParams `json:"params"`
Params serverCallMuteallParams `json:"params"`
}

type ServerCallMuteallParams struct {
type serverCallMuteallParams struct {
Jid JID `json:"jid"`
Muted bool `json:"muted"`
Error string `json:"reason"`
4 changes: 2 additions & 2 deletions server_call_reject.go
Original file line number Diff line number Diff line change
@@ -10,10 +10,10 @@ func NewServerCallReject(jid JID, reason string, uid string) (r ServerCallReject

type ServerCallReject struct {
BaseEvent
Params ServerCallRejectParams `json:"params"`
Params serverCallRejectParams `json:"params"`
}

type ServerCallRejectParams struct {
type serverCallRejectParams struct {
Jid JID `json:"jid"`
Reason string `json:"reason"`
Uid string `json:"uid"`
4 changes: 2 additions & 2 deletions server_call_restart.go
Original file line number Diff line number Diff line change
@@ -10,10 +10,10 @@ func NewServerCallRestart(chat *JID, teamUid string, uid string) (r ServerCallRe

type ServerCallRestart struct {
BaseEvent
Params ServerCallRestartParams `json:"params"`
Params serverCallRestartParams `json:"params"`
}

type ServerCallRestartParams struct {
type serverCallRestartParams struct {
Jid JID `json:"jid"`
Team string `json:"team"`
Uid string `json:"uid"`
4 changes: 2 additions & 2 deletions server_call_sound.go
Original file line number Diff line number Diff line change
@@ -9,10 +9,10 @@ func NewServerCallSound(jid JID, muted bool) (r ServerCallSound) {

type ServerCallSound struct {
BaseEvent
Params ServerCallSoundParams `json:"params"`
Params serverCallSoundParams `json:"params"`
}

type ServerCallSoundParams struct {
type serverCallSoundParams struct {
Jid JID `json:"jid"`
Muted bool `json:"muted"`
}
4 changes: 2 additions & 2 deletions server_call_state.go
Original file line number Diff line number Diff line change
@@ -26,10 +26,10 @@ func NewServerCallState(chat HasJid, startCall, finishCall *time.Time, onliners

type ServerCallState struct {
BaseEvent
Params ServerCallStateParams `json:"params"`
Params serverCallStateParams `json:"params"`
}

type ServerCallStateParams struct {
type serverCallStateParams struct {
Jid JID `json:"jid"`
Onliners []CallOnliner `json:"onliners"`
Start *string `json:"start"`
4 changes: 2 additions & 2 deletions server_call_talking.go
Original file line number Diff line number Diff line change
@@ -11,10 +11,10 @@ func NewServerCallTalking(talking bool, chat, actor *JID) (r ServerCallTalking)

type ServerCallTalking struct {
BaseEvent
Params ServerCallTalkingParams `json:"params"`
Params serverCallTalkingParams `json:"params"`
}

type ServerCallTalkingParams struct {
type serverCallTalkingParams struct {
Jid JID `json:"jid"`
Actor JID `json:"actor"`
Talking bool `json:"talking"`
4 changes: 2 additions & 2 deletions server_chat_composing.go
Original file line number Diff line number Diff line change
@@ -12,10 +12,10 @@ func NewServerChatComposing(composing, isAudio bool, chat, actor *JID) (r Server

type ServerChatComposing struct {
BaseEvent
Params ServerChatComposingParams `json:"params"`
Params serverChatComposingParams `json:"params"`
}

type ServerChatComposingParams struct {
type serverChatComposingParams struct {
Jid JID `json:"jid"`
Actor JID `json:"actor"`
Composing bool `json:"composing"`
4 changes: 2 additions & 2 deletions server_chat_deleted.go
Original file line number Diff line number Diff line change
@@ -13,10 +13,10 @@ func NewServerChatDeleted(chat DeletedChat, teamUnread *TeamUnread, badge uint)

type ServerChatDeleted struct {
BaseEvent
Params ServerChatDeletedParams `json:"params"`
Params serverChatDeletedParams `json:"params"`
}

type ServerChatDeletedParams struct {
type serverChatDeletedParams struct {
Chats []DeletedChat `json:"chats"`
TeamUnread *TeamUnread `json:"team_unread"`
Badge uint `json:"badge"`
4 changes: 2 additions & 2 deletions server_chat_draft.go
Original file line number Diff line number Diff line change
@@ -10,10 +10,10 @@ func NewServerChatDraft(jid *JID, draft string, draftNum int64) (r ServerChatDra

type ServerChatDraft struct {
BaseEvent
Params ServerChatDraftParams `json:"params"`
Params serverChatDraftParams `json:"params"`
}

type ServerChatDraftParams struct {
type serverChatDraftParams struct {
Jid *JID `json:"jid"`
Draft string `json:"draft"`
DraftNum int64 `json:"draft_num"`
4 changes: 2 additions & 2 deletions server_chat_lastread.go
Original file line number Diff line number Diff line change
@@ -10,10 +10,10 @@ func NewServerChatLastread(counters ChatCounters, teamUnread *TeamUnread, badge

type ServerChatLastread struct {
BaseEvent
Params ServerChatLastreadParams `json:"params"`
Params serverChatLastreadParams `json:"params"`
}

type ServerChatLastreadParams struct {
type serverChatLastreadParams struct {
Chats []ChatCounters `json:"chats"`
TeamUnread *TeamUnread `json:"team_unread"`
Badge uint `json:"badge"`
4 changes: 2 additions & 2 deletions server_chat_updated.go
Original file line number Diff line number Diff line change
@@ -10,10 +10,10 @@ func NewServerChatUpdated(chat Chat, teamUnread *TeamUnread, badge uint) (r Serv

type ServerChatUpdated struct {
BaseEvent
Params ServerChatUpdatedParams `json:"params"`
Params serverChatUpdatedParams `json:"params"`
}

type ServerChatUpdatedParams struct {
type serverChatUpdatedParams struct {
Chats []Chat `json:"chats"`
TeamUnread *TeamUnread `json:"team_unread"`
Badge uint `json:"badge"`
4 changes: 2 additions & 2 deletions server_confirm.go
Original file line number Diff line number Diff line change
@@ -8,9 +8,9 @@ func NewServerConfirm(v string) (r ServerConfirm) {

type ServerConfirm struct {
BaseEvent
Params ServerConfirmParams `json:"params"`
Params serverConfirmParams `json:"params"`
}

type ServerConfirmParams struct {
type serverConfirmParams struct {
ConfirmId string `json:"confirm_id"`
}
4 changes: 2 additions & 2 deletions server_contact_updated.go
Original file line number Diff line number Diff line change
@@ -8,9 +8,9 @@ func NewServerContactUpdated(contacts ...Contact) (r ServerContactUpdated) {

type ServerContactUpdated struct {
BaseEvent
Params ServerContactUpdatedParams `json:"params"`
Params serverContactUpdatedParams `json:"params"`
}

type ServerContactUpdatedParams struct {
type serverContactUpdatedParams struct {
Contacts []Contact `json:"contacts"`
}
Loading

0 comments on commit d7240f5

Please sign in to comment.