diff --git a/client_activity.go b/client_activity.go index 307bca9..2acfeca 100644 --- a/client_activity.go +++ b/client_activity.go @@ -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"` } diff --git a/client_call_buzz.go b/client_call_buzz.go index 75156a3..e04150f 100644 --- a/client_call_buzz.go +++ b/client_call_buzz.go @@ -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"` } diff --git a/client_call_buzzcancel.go b/client_call_buzzcancel.go index 1c3ed2e..1930bb1 100644 --- a/client_call_buzzcancel.go +++ b/client_call_buzzcancel.go @@ -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"` } diff --git a/client_call_leave.go b/client_call_leave.go index ba8f43f..7fe4ec4 100644 --- a/client_call_leave.go +++ b/client_call_leave.go @@ -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"` diff --git a/client_call_muteall.go b/client_call_muteall.go index 1f646e2..a8f8baa 100644 --- a/client_call_muteall.go +++ b/client_call_muteall.go @@ -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"` } diff --git a/client_call_offer.go b/client_call_offer.go index e264707..ba33d25 100644 --- a/client_call_offer.go +++ b/client_call_offer.go @@ -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"` diff --git a/client_call_reject.go b/client_call_reject.go index d2c8f29..5221198 100644 --- a/client_call_reject.go +++ b/client_call_reject.go @@ -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"` } diff --git a/client_call_sound.go b/client_call_sound.go index bc27f3c..25f4cea 100644 --- a/client_call_sound.go +++ b/client_call_sound.go @@ -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"` } diff --git a/client_call_trickle.go b/client_call_trickle.go index 928513a..b2a31f0 100644 --- a/client_call_trickle.go +++ b/client_call_trickle.go @@ -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"` diff --git a/client_chat_composing.go b/client_chat_composing.go index 57f7f79..d4ac840 100644 --- a/client_chat_composing.go +++ b/client_chat_composing.go @@ -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"` diff --git a/client_chat_lastread.go b/client_chat_lastread.go index 0e04412..9372777 100644 --- a/client_chat_lastread.go +++ b/client_chat_lastread.go @@ -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"` } diff --git a/client_confirm.go b/client_confirm.go index 8c80fe4..b112c64 100644 --- a/client_confirm.go +++ b/client_confirm.go @@ -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"` } diff --git a/client_message_deleted.go b/client_message_deleted.go index 497f9ae..c9eb5f6 100644 --- a/client_message_deleted.go +++ b/client_message_deleted.go @@ -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"` } diff --git a/server_call_answer.go b/server_call_answer.go index 33c9ca4..e29776e 100644 --- a/server_call_answer.go +++ b/server_call_answer.go @@ -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"` diff --git a/server_call_buzz.go b/server_call_buzz.go index 82ca52a..86acfad 100644 --- a/server_call_buzz.go +++ b/server_call_buzz.go @@ -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"` diff --git a/server_call_buzzcancel.go b/server_call_buzzcancel.go index b9f9bdd..593e02a 100644 --- a/server_call_buzzcancel.go +++ b/server_call_buzzcancel.go @@ -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"` diff --git a/server_call_checkfingerprint.go b/server_call_checkfingerprint.go index 7d0a006..1393937 100644 --- a/server_call_checkfingerprint.go +++ b/server_call_checkfingerprint.go @@ -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"` } diff --git a/server_call_leave.go b/server_call_leave.go index 916cd89..10b7a46 100644 --- a/server_call_leave.go +++ b/server_call_leave.go @@ -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"` } diff --git a/server_call_muteall.go b/server_call_muteall.go index 043187c..10ece23 100644 --- a/server_call_muteall.go +++ b/server_call_muteall.go @@ -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"` diff --git a/server_call_reject.go b/server_call_reject.go index 9afdafb..f0b6da3 100644 --- a/server_call_reject.go +++ b/server_call_reject.go @@ -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"` diff --git a/server_call_restart.go b/server_call_restart.go index 7ea8865..825e9a5 100644 --- a/server_call_restart.go +++ b/server_call_restart.go @@ -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"` diff --git a/server_call_sound.go b/server_call_sound.go index 6584dbb..c0ccc2e 100644 --- a/server_call_sound.go +++ b/server_call_sound.go @@ -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"` } diff --git a/server_call_state.go b/server_call_state.go index 88a78c6..61c28eb 100644 --- a/server_call_state.go +++ b/server_call_state.go @@ -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"` diff --git a/server_call_talking.go b/server_call_talking.go index 0fbc18c..73ebf93 100644 --- a/server_call_talking.go +++ b/server_call_talking.go @@ -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"` diff --git a/server_chat_composing.go b/server_chat_composing.go index 8623cd3..4913471 100644 --- a/server_chat_composing.go +++ b/server_chat_composing.go @@ -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"` diff --git a/server_chat_deleted.go b/server_chat_deleted.go index 7e66fb9..e46415a 100644 --- a/server_chat_deleted.go +++ b/server_chat_deleted.go @@ -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"` diff --git a/server_chat_draft.go b/server_chat_draft.go index 927ef6c..79e1b6a 100644 --- a/server_chat_draft.go +++ b/server_chat_draft.go @@ -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"` diff --git a/server_chat_lastread.go b/server_chat_lastread.go index 443cf3b..138dad1 100644 --- a/server_chat_lastread.go +++ b/server_chat_lastread.go @@ -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"` diff --git a/server_chat_updated.go b/server_chat_updated.go index 3978726..140f5d4 100644 --- a/server_chat_updated.go +++ b/server_chat_updated.go @@ -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"` diff --git a/server_confirm.go b/server_confirm.go index 7613e26..0d2e03c 100644 --- a/server_confirm.go +++ b/server_confirm.go @@ -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"` } diff --git a/server_contact_updated.go b/server_contact_updated.go index 224fddf..9cc68ff 100644 --- a/server_contact_updated.go +++ b/server_contact_updated.go @@ -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"` } diff --git a/server_debug.go b/server_debug.go index 9f7331c..0a8f6dd 100644 --- a/server_debug.go +++ b/server_debug.go @@ -8,9 +8,9 @@ func NewServerDebug(text string) (r ServerDebug) { type ServerDebug struct { BaseEvent - Params ServerDebugParams `json:"params"` + Params serverDebugParams `json:"params"` } -type ServerDebugParams struct { +type serverDebugParams struct { Text string `json:"text"` } diff --git a/server_login.go b/server_login.go index 64802e8..b0d8f93 100644 --- a/server_login.go +++ b/server_login.go @@ -8,9 +8,9 @@ func NewServerLogin(deviceName string) (r ServerLogin) { type ServerLogin struct { BaseEvent - Params ServerLoginParams `json:"params"` + Params serverLoginParams `json:"params"` } -type ServerLoginParams struct { +type serverLoginParams struct { DeviceName string `json:"device_name"` } diff --git a/server_message_received.go b/server_message_received.go index 5fccc1e..0c06361 100644 --- a/server_message_received.go +++ b/server_message_received.go @@ -17,9 +17,9 @@ func NewServerMessageReceived(messages []ReceivedMessage) (r ServerMessageReceiv type ServerMessageReceived struct { BaseEvent - Params ServerMessageReceivedParams `json:"params"` + Params serverMessageReceivedParams `json:"params"` } -type ServerMessageReceivedParams struct { +type serverMessageReceivedParams struct { Messages []ReceivedMessage `json:"messages"` } diff --git a/server_message_updated.go b/server_message_updated.go index 5444a36..6477785 100644 --- a/server_message_updated.go +++ b/server_message_updated.go @@ -28,10 +28,10 @@ func NewServerMessageUpdated(messages []Message, delayed bool, counters *ChatCou type ServerMessageUpdated struct { BaseEvent - Params ServerMessageUpdatedParams `json:"params"` + Params serverMessageUpdatedParams `json:"params"` } -type ServerMessageUpdatedParams struct { +type serverMessageUpdatedParams struct { Messages []Message `json:"messages"` Delayed bool `json:"delayed"` ChatCounters []ChatCounters `json:"chat_counters"` // TODO: omitempty diff --git a/server_online.go b/server_online.go index eb95172..8b82813 100644 --- a/server_online.go +++ b/server_online.go @@ -10,10 +10,10 @@ func NewServerOnline(contacts []OnlineContact, calls []OnlineCall) (r ServerOnli type ServerOnline struct { BaseEvent - Params ServerOnlineParams `json:"params"` + Params serverOnlineParams `json:"params"` } -type ServerOnlineParams struct { +type serverOnlineParams struct { Contacts *[]OnlineContact `json:"contacts"` Calls *[]OnlineCall `json:"calls"` } diff --git a/server_panic.go b/server_panic.go index 09da150..bed99ed 100644 --- a/server_panic.go +++ b/server_panic.go @@ -8,10 +8,10 @@ func NewServerPanic(code string) (r ServerPanic) { type ServerPanic struct { BaseEvent - Params ServerPanicParams `json:"params"` + Params serverPanicParams `json:"params"` } -type ServerPanicParams struct { +type serverPanicParams struct { Code string `json:"code"` Debug string `json:"debug,omitempty"` } diff --git a/server_processing.go b/server_processing.go index 1b8a8d9..7aa6c81 100644 --- a/server_processing.go +++ b/server_processing.go @@ -12,10 +12,10 @@ func NewServerProcessing(num, total int, action, message string, hasError bool) type ServerProcessing struct { BaseEvent - Params ServerProcessingParams `json:"params"` + Params serverProcessingParams `json:"params"` } -type ServerProcessingParams struct { +type serverProcessingParams struct { Action string `json:"action"` Message string `json:"message"` HasError bool `json:"has_error"` diff --git a/server_remind_deleted.go b/server_remind_deleted.go index 0a103f4..6fd270c 100644 --- a/server_remind_deleted.go +++ b/server_remind_deleted.go @@ -10,9 +10,9 @@ func NewServerRemindDeleted(uid string) (r ServerRemindDeleted) { type ServerRemindDeleted struct { BaseEvent - Params ServerRemindDeletedParams `json:"params"` + Params serverRemindDeletedParams `json:"params"` } -type ServerRemindDeletedParams struct { +type serverRemindDeletedParams struct { Remind []DeletedRemind `json:"reminds"` } diff --git a/server_remind_fired.go b/server_remind_fired.go index 879b2bf..7e570be 100644 --- a/server_remind_fired.go +++ b/server_remind_fired.go @@ -8,9 +8,9 @@ func NewServerRemindFired(remind Remind) (r ServerRemindFired) { type ServerRemindFired struct { BaseEvent - Params ServerRemindFiredParams `json:"params"` + Params serverRemindFiredParams `json:"params"` } -type ServerRemindFiredParams struct { +type serverRemindFiredParams struct { Reminds []Remind `json:"reminds"` } diff --git a/server_remind_updated.go b/server_remind_updated.go index b4b6c80..f73d143 100644 --- a/server_remind_updated.go +++ b/server_remind_updated.go @@ -8,9 +8,9 @@ func NewServerRemindUpdated(remind Remind) (r ServerRemindUpdated) { type ServerRemindUpdated struct { BaseEvent - Params ServerRemindUpdatedParams `json:"params"` + Params serverRemindUpdatedParams `json:"params"` } -type ServerRemindUpdatedParams struct { +type serverRemindUpdatedParams struct { Reminds []Remind `json:"reminds"` } diff --git a/server_section_deleted.go b/server_section_deleted.go index 7fdceff..0b0f381 100644 --- a/server_section_deleted.go +++ b/server_section_deleted.go @@ -10,10 +10,10 @@ func NewServerSectionDeleted(ct ChatType, section DeletedSection) (r ServerSecti type ServerSectionDeleted struct { BaseEvent - Params ServerSectionDeletedParams `json:"params"` + Params serverSectionDeletedParams `json:"params"` } -type ServerSectionDeletedParams struct { +type serverSectionDeletedParams struct { ChatType ChatType `json:"chat_type"` Gentime int64 `json:"gentime"` Sections []DeletedSection `json:"sections"` diff --git a/server_section_updated.go b/server_section_updated.go index f1284a7..2d08259 100644 --- a/server_section_updated.go +++ b/server_section_updated.go @@ -10,10 +10,10 @@ func NewServerSectionUpdated(ct ChatType, sections ...Section) (r ServerSectionU type ServerSectionUpdated struct { BaseEvent - Params ServerSectionUpdatedParams `json:"params"` + Params serverSectionUpdatedParams `json:"params"` } -type ServerSectionUpdatedParams struct { +type serverSectionUpdatedParams struct { ChatType ChatType `json:"chat_type"` Gentime int64 `json:"gentime"` Sections []Section `json:"sections"` diff --git a/server_tag_deleted.go b/server_tag_deleted.go index 1a0d8bb..59f5458 100644 --- a/server_tag_deleted.go +++ b/server_tag_deleted.go @@ -8,9 +8,9 @@ func NewServerTagDeleted(tags ...DeletedTag) (r ServerTagDeleted) { type ServerTagDeleted struct { BaseEvent - Params ServerTagDeletedParams `json:"params"` + Params serverTagDeletedParams `json:"params"` } -type ServerTagDeletedParams struct { +type serverTagDeletedParams struct { Tags []DeletedTag `json:"tags"` } diff --git a/server_tag_updated.go b/server_tag_updated.go index 19e0400..5a1c8f6 100644 --- a/server_tag_updated.go +++ b/server_tag_updated.go @@ -8,9 +8,9 @@ func NewServerTagUpdated(tags ...Tag) (r ServerTagUpdated) { type ServerTagUpdated struct { BaseEvent - Params ServerTagUpdatedParams `json:"params"` + Params serverTagUpdatedParams `json:"params"` } -type ServerTagUpdatedParams struct { +type serverTagUpdatedParams struct { Tags []Tag `json:"tags"` } diff --git a/server_team_counters.go b/server_team_counters.go index 54aa72b..8b3a3a3 100644 --- a/server_team_counters.go +++ b/server_team_counters.go @@ -11,10 +11,10 @@ func NewServerTeamCounters(counters []TeamCounter, badge uint) ServerTeamCounter type ServerTeamCounters struct { BaseEvent - Params ServerTeamCountersParams `json:"params"` + Params serverTeamCountersParams `json:"params"` } -type ServerTeamCountersParams struct { +type serverTeamCountersParams struct { Teams []TeamCounter `json:"teams"` Badge uint `json:"badge"` } diff --git a/server_team_deleted.go b/server_team_deleted.go index c910c85..43eb8c6 100644 --- a/server_team_deleted.go +++ b/server_team_deleted.go @@ -12,9 +12,9 @@ func NewServerTeamDeleted(uid string, gentime int64) (r ServerTeamDeleted) { type ServerTeamDeleted struct { BaseEvent - Params ServerTeamDeletedParams `json:"params"` + Params serverTeamDeletedParams `json:"params"` } -type ServerTeamDeletedParams struct { +type serverTeamDeletedParams struct { Teams []DeletedTeam `json:"teams"` } diff --git a/server_team_updated.go b/server_team_updated.go index 7084aaa..40074af 100644 --- a/server_team_updated.go +++ b/server_team_updated.go @@ -8,9 +8,9 @@ func NewServerTeamUpdated(team Team) (r ServerTeamUpdated) { type ServerTeamUpdated struct { BaseEvent - Params ServerTeamUpdatedParams `json:"params"` + Params serverTeamUpdatedParams `json:"params"` } -type ServerTeamUpdatedParams struct { +type serverTeamUpdatedParams struct { Teams []Team `json:"teams"` } diff --git a/server_time.go b/server_time.go index bfbc0ae..4fd2491 100644 --- a/server_time.go +++ b/server_time.go @@ -10,9 +10,9 @@ func NewServerTime() (r ServerTime) { type ServerTime struct { BaseEvent - Params ServerTimeParams `json:"params"` + Params serverTimeParams `json:"params"` } -type ServerTimeParams struct { +type serverTimeParams struct { Time string `json:"time"` } diff --git a/server_warning.go b/server_warning.go index 76c6c71..7187f8f 100644 --- a/server_warning.go +++ b/server_warning.go @@ -9,10 +9,10 @@ func NewServerWarning(message, orig string) (r ServerWarning) { type ServerWarning struct { BaseEvent - Params ServerWarningParams `json:"params"` + Params serverWarningParams `json:"params"` } -type ServerWarningParams struct { +type serverWarningParams struct { Message string `json:"message"` Orig interface{} `json:"orig"` }