-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add RTM event: mobile_in_app_notification
- Loading branch information
Yusuke Komatsu
committed
Jan 22, 2020
1 parent
d06c2a2
commit 2427d30
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package slack | ||
|
||
// MobileInAppNotificationEvent represents the update event for Mobile App Notification. | ||
type MobileInAppNotificationEvent struct { | ||
Type string `json:"type"` | ||
Title string `json:"title"` | ||
Subtitle string `json:"subtitle"` | ||
Timestamp string `json:"ts"` | ||
Channel string `json:"channel"` | ||
AvatarImage string `json:"avatarImage"` | ||
IsShared bool `json:"is_shared"` | ||
ChannelName string `json:"channel_name"` | ||
AuthorID string `json:"author_id"` | ||
AuthorDisplayName string `json:"author_display_name"` | ||
MessageText string `json:"msg_text"` | ||
PushID string `json:"push_id"` | ||
NotifcationID string `json:"notif_id"` | ||
MobileLaunchURI string `json:"mobileLaunchUri"` | ||
EventTimestamp string `json:"event_ts"` | ||
} |