Codebase list golang-github-nlopes-slack / 97d0b84
Open up Conversation and GroupConversation. Alexandre Bourget 8 years ago
4 changed file(s) with 6 addition(s) and 6 deletion(s). Raw diff Collapse all Expand all
1717
1818 // Channel contains information about the channel
1919 type Channel struct {
20 groupConversation
20 GroupConversation
2121 IsChannel bool `json:"is_channel"`
2222 IsGeneral bool `json:"is_general"`
2323 IsMember bool `json:"is_member"`
00 package slack
11
22 // Conversation is the foundation for IM and BaseGroupConversation
3 type conversation struct {
3 type Conversation struct {
44 ID string `json:"id"`
55 Created JSONTime `json:"created"`
66 IsOpen bool `json:"is_open"`
1111 }
1212
1313 // GroupConversation is the foundation for Group and Channel
14 type groupConversation struct {
15 conversation
14 type GroupConversation struct {
15 Conversation
1616 Name string `json:"name"`
1717 Creator string `json:"creator"`
1818 IsArchived bool `json:"is_archived"`
77
88 // Group contains all the information for a group
99 type Group struct {
10 groupConversation
10 GroupConversation
1111 IsGroup bool `json:"is_group"`
1212 }
1313
2121
2222 // IM contains information related to the Direct Message channel
2323 type IM struct {
24 conversation
24 Conversation
2525 IsIM bool `json:"is_im"`
2626 User string `json:"user"`
2727 IsUserDeleted bool `json:"is_user_deleted"`