diff options
author | Wim <wim@42.be> | 2018-01-08 22:41:38 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-01-08 22:41:38 +0100 |
commit | 4a96a977c0e86e22edcda40730779279334685be (patch) | |
tree | fea5efa54d17af2d3cadb4d4d5a42f57e9bb7fbe /vendor/github.com/matterbridge/slack/history.go | |
parent | 9a95293bdf74a4d02827018649b6ea0ffdef74ba (diff) | |
download | matterbridge-msglm-4a96a977c0e86e22edcda40730779279334685be.tar.gz matterbridge-msglm-4a96a977c0e86e22edcda40730779279334685be.tar.bz2 matterbridge-msglm-4a96a977c0e86e22edcda40730779279334685be.zip |
Update vendor (slack)
Diffstat (limited to 'vendor/github.com/matterbridge/slack/history.go')
-rw-r--r-- | vendor/github.com/matterbridge/slack/history.go | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/vendor/github.com/matterbridge/slack/history.go b/vendor/github.com/matterbridge/slack/history.go deleted file mode 100644 index 87b2e1ed..00000000 --- a/vendor/github.com/matterbridge/slack/history.go +++ /dev/null @@ -1,36 +0,0 @@ -package slack - -const ( - DEFAULT_HISTORY_LATEST = "" - DEFAULT_HISTORY_OLDEST = "0" - DEFAULT_HISTORY_COUNT = 100 - DEFAULT_HISTORY_INCLUSIVE = false - DEFAULT_HISTORY_UNREADS = false -) - -// HistoryParameters contains all the necessary information to help in the retrieval of history for Channels/Groups/DMs -type HistoryParameters struct { - Latest string - Oldest string - Count int - Inclusive bool - Unreads bool -} - -// History contains message history information needed to navigate a Channel / Group / DM history -type History struct { - Latest string `json:"latest"` - Messages []Message `json:"messages"` - HasMore bool `json:"has_more"` -} - -// NewHistoryParameters provides an instance of HistoryParameters with all the sane default values set -func NewHistoryParameters() HistoryParameters { - return HistoryParameters{ - Latest: DEFAULT_HISTORY_LATEST, - Oldest: DEFAULT_HISTORY_OLDEST, - Count: DEFAULT_HISTORY_COUNT, - Inclusive: DEFAULT_HISTORY_INCLUSIVE, - Unreads: DEFAULT_HISTORY_UNREADS, - } -} |