diff options
Diffstat (limited to 'vendor/github.com/mattermost/platform/model/push_notification.go')
-rw-r--r-- | vendor/github.com/mattermost/platform/model/push_notification.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/vendor/github.com/mattermost/platform/model/push_notification.go b/vendor/github.com/mattermost/platform/model/push_notification.go index 42feca2e..666dd8f7 100644 --- a/vendor/github.com/mattermost/platform/model/push_notification.go +++ b/vendor/github.com/mattermost/platform/model/push_notification.go @@ -11,7 +11,10 @@ import ( const ( PUSH_NOTIFY_APPLE = "apple" PUSH_NOTIFY_ANDROID = "android" - MHPNS = "https://push.mattermost.com" + + CATEGORY_DM = "DIRECT_MESSAGE" + + MHPNS = "https://push.mattermost.com" ) type PushNotification struct { @@ -23,6 +26,8 @@ type PushNotification struct { Message string `json:"message"` Badge int `json:"badge"` ContentAvailable int `json:"cont_ava"` + ChannelId string `json:"channel_id"` + ChannelName string `json:"channel_name"` } func (me *PushNotification) ToJson() string { |