-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fb797fb
commit 1cf9f77
Showing
1 changed file
with
31 additions
and
31 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,45 @@ | ||
package slack | ||
|
||
type Config struct { | ||
Ok bool | ||
Error string | ||
Self User | ||
Ok bool | ||
Error string | ||
Self User | ||
Channels []Channel | ||
Url string | ||
Users []User | ||
Url string | ||
Users []User | ||
} | ||
|
||
type User struct { | ||
Id string | ||
Name string | ||
RealName string `json:"real_name"` | ||
Deleted bool | ||
IsAdmin bool `json:"is_admin"` | ||
IsOwner bool `json:"is_owner"` | ||
Id string | ||
Name string | ||
RealName string `json:"real_name"` | ||
Deleted bool | ||
IsAdmin bool `json:"is_admin"` | ||
IsOwner bool `json:"is_owner"` | ||
IsPrimaryOwner bool `json:"is_primary_owner"` | ||
IsBot bool `json:"is_bot"` | ||
Profile UserProfile | ||
IsBot bool `json:"is_bot"` | ||
Profile UserProfile | ||
} | ||
|
||
type Channel struct { | ||
Id string | ||
Name string | ||
IsChannel bool `json:"is_channel"` | ||
IsIm bool `json:"is_im"` | ||
User string | ||
Created int | ||
Creator string | ||
IsArchived bool `json:"is_archived"` | ||
IsGeneral bool `json:"is_general"` | ||
IsMember bool `json:"is_member"` | ||
Members []string | ||
Id string | ||
Name string | ||
IsChannel bool `json:"is_channel"` | ||
IsIm bool `json:"is_im"` | ||
User string | ||
Created int | ||
Creator string | ||
IsArchived bool `json:"is_archived"` | ||
IsGeneral bool `json:"is_general"` | ||
IsMember bool `json:"is_member"` | ||
Members []string | ||
} | ||
|
||
type UserProfile struct { | ||
FirstName string `json:"first_name"` | ||
LastName string `json:"last_name"` | ||
RealName string `json:"real_name"` | ||
Title string | ||
RealNameNormalized string `json:"real_name_normalized"` | ||
Email string `json:"email"` | ||
} | ||
FirstName string `json:"first_name"` | ||
LastName string `json:"last_name"` | ||
RealName string `json:"real_name"` | ||
Title string | ||
RealNameNormalized string `json:"real_name_normalized"` | ||
Email string `json:"email"` | ||
} |