Revert "Open up Conversation and GroupConversation."
This reverts commit 97d0b84f9460efacb47198a3d02bcba64e81204c.
Norberto Lopes
8 years ago
17 | 17 |
|
18 | 18 |
// Channel contains information about the channel
|
19 | 19 |
type Channel struct {
|
20 | |
GroupConversation
|
|
20 |
groupConversation
|
21 | 21 |
IsChannel bool `json:"is_channel"`
|
22 | 22 |
IsGeneral bool `json:"is_general"`
|
23 | 23 |
IsMember bool `json:"is_member"`
|
0 | 0 |
package slack
|
1 | 1 |
|
2 | 2 |
// Conversation is the foundation for IM and BaseGroupConversation
|
3 | |
type Conversation struct {
|
|
3 |
type conversation struct {
|
4 | 4 |
ID string `json:"id"`
|
5 | 5 |
Created JSONTime `json:"created"`
|
6 | 6 |
IsOpen bool `json:"is_open"`
|
|
11 | 11 |
}
|
12 | 12 |
|
13 | 13 |
// GroupConversation is the foundation for Group and Channel
|
14 | |
type GroupConversation struct {
|
15 | |
Conversation
|
|
14 |
type groupConversation struct {
|
|
15 |
conversation
|
16 | 16 |
Name string `json:"name"`
|
17 | 17 |
Creator string `json:"creator"`
|
18 | 18 |
IsArchived bool `json:"is_archived"`
|
7 | 7 |
|
8 | 8 |
// Group contains all the information for a group
|
9 | 9 |
type Group struct {
|
10 | |
GroupConversation
|
|
10 |
groupConversation
|
11 | 11 |
IsGroup bool `json:"is_group"`
|
12 | 12 |
}
|
13 | 13 |
|
21 | 21 |
|
22 | 22 |
// IM contains information related to the Direct Message channel
|
23 | 23 |
type IM struct {
|
24 | |
Conversation
|
|
24 |
conversation
|
25 | 25 |
IsIM bool `json:"is_im"`
|
26 | 26 |
User string `json:"user"`
|
27 | 27 |
IsUserDeleted bool `json:"is_user_deleted"`
|