Copyright | (c) Alexandre Moreno 2019 |
---|---|
License | BSD3 |
Maintainer | alexmorenocano@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- data Events = Events {
- destination :: Id User
- events :: [Event]
- data Event
- = EventMessage { }
- | EventFollow { }
- | EventUnfollow {
- source :: Source
- timestamp :: EpochMilli
- | EventJoin { }
- | EventLeave {
- source :: Source
- timestamp :: EpochMilli
- | EventMemberJoined {
- replyToken :: ReplyToken
- source :: Source
- timestamp :: EpochMilli
- joined :: Members
- | EventMemberLeft { }
- | EventPostback { }
- | EventBeacon {
- replyToken :: ReplyToken
- source :: Source
- timestamp :: EpochMilli
- beacon :: Beacon
- | EventAccountLink { }
- | EventThings {
- replyToken :: ReplyToken
- source :: Source
- timestamp :: EpochMilli
- things :: Things
- data Message
- newtype EpochMilli = EpochMilli {}
- data Source
- = SourceUser (Id User)
- | SourceGroup (Id Group) (Maybe (Id User))
- | SourceRoom (Id Room) (Maybe (Id User))
- data Members = Members {}
- data Postback = Postback Text PostbackDateTime
- data Beacon = Beacon {}
- data BeaconEvent
- data Things = Things {
- deviceId :: Text
- eventType :: ThingsEvent
- data ThingsEvent
- data AccountLink = AccountLink {
- nonce :: Text
- result :: AccountLinkResult
- data AccountLinkResult
Documentation
Events | |
|
Instances
Eq Events Source # | |
Show Events Source # | |
Generic Events Source # | |
FromJSON Events Source # | |
type Rep Events Source # | |
Defined in Line.Bot.Webhook.Events type Rep Events = D1 (MetaData "Events" "Line.Bot.Webhook.Events" "line-bot-sdk-0.3.0.0-9O57BGTvzGGIPepbqe52qA" False) (C1 (MetaCons "Events" PrefixI True) (S1 (MetaSel (Just "destination") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Id User)) :*: S1 (MetaSel (Just "events") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Event]))) |
Events generated on the LINE Platform.
EventMessage | |
| |
EventFollow | |
| |
EventUnfollow | |
| |
EventJoin | |
| |
EventLeave | |
| |
EventMemberJoined | |
| |
EventMemberLeft | |
EventPostback | |
| |
EventBeacon | |
| |
EventAccountLink | |
| |
EventThings | |
|
Instances
Text | |
Image | |
| |
Video | |
| |
Audio | |
| |
File | |
Location | |
Sticker | |
newtype EpochMilli Source #
EpochMilli | |
|
Instances
SourceUser (Id User) | |
SourceGroup (Id Group) (Maybe (Id User)) | |
SourceRoom (Id Room) (Maybe (Id User)) |
Instances
Eq Beacon Source # | |
Show Beacon Source # | |
Generic Beacon Source # | |
FromJSON Beacon Source # | |
type Rep Beacon Source # | |
Defined in Line.Bot.Webhook.Events type Rep Beacon = D1 (MetaData "Beacon" "Line.Bot.Webhook.Events" "line-bot-sdk-0.3.0.0-9O57BGTvzGGIPepbqe52qA" False) (C1 (MetaCons "Beacon" PrefixI True) (S1 (MetaSel (Just "hwid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: (S1 (MetaSel (Just "eventType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 BeaconEvent) :*: S1 (MetaSel (Just "dm") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))) |
data BeaconEvent Source #
Instances
Things | |
|
Instances
Eq Things Source # | |
Show Things Source # | |
Generic Things Source # | |
FromJSON Things Source # | |
type Rep Things Source # | |
Defined in Line.Bot.Webhook.Events type Rep Things = D1 (MetaData "Things" "Line.Bot.Webhook.Events" "line-bot-sdk-0.3.0.0-9O57BGTvzGGIPepbqe52qA" False) (C1 (MetaCons "Things" PrefixI True) (S1 (MetaSel (Just "deviceId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "eventType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ThingsEvent))) |
data ThingsEvent Source #
Instances
data AccountLink Source #
Instances
data AccountLinkResult Source #
Instances
Eq AccountLinkResult Source # | |
Defined in Line.Bot.Webhook.Events (==) :: AccountLinkResult -> AccountLinkResult -> Bool # (/=) :: AccountLinkResult -> AccountLinkResult -> Bool # | |
Show AccountLinkResult Source # | |
Defined in Line.Bot.Webhook.Events showsPrec :: Int -> AccountLinkResult -> ShowS # show :: AccountLinkResult -> String # showList :: [AccountLinkResult] -> ShowS # | |
Generic AccountLinkResult Source # | |
Defined in Line.Bot.Webhook.Events type Rep AccountLinkResult :: Type -> Type # from :: AccountLinkResult -> Rep AccountLinkResult x # to :: Rep AccountLinkResult x -> AccountLinkResult # | |
FromJSON AccountLinkResult Source # | |
Defined in Line.Bot.Webhook.Events parseJSON :: Value -> Parser AccountLinkResult # parseJSONList :: Value -> Parser [AccountLinkResult] # | |
type Rep AccountLinkResult Source # | |