| Copyright | (c) Alexandre Moreno 2019 |
|---|---|
| License | BSD3 |
| Maintainer | alexmorenocano@gmail.com |
| Stability | experimental |
| Safe Haskell | None |
| Language | Haskell2010 |
Line.Bot.Webhook.Events
Description
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
- = MessageText { }
- | MessageImage { }
- | MessageVideo { }
- | MessageAudio { }
- | MessageFile { }
- | MessageLocation { }
- | MessageSticker { }
- data ContentProvider = ContentProvider {}
- newtype EpochMilli = EpochMilli {}
- data Source = Source (Id a)
- newtype 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
Constructors
| Events | |
Fields
| |
Instances
| 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.5.0.2-Ephb0hoif6sA1vi1Kfq0BS" 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.
Constructors
| EventMessage | |
Fields
| |
| EventFollow | |
Fields
| |
| EventUnfollow | |
Fields
| |
| EventJoin | |
Fields
| |
| EventLeave | |
Fields
| |
| EventMemberJoined | |
Fields
| |
| EventMemberLeft | |
| EventPostback | |
Fields
| |
| EventBeacon | |
Fields
| |
| EventAccountLink | |
Fields
| |
| EventThings | |
Fields
| |
Instances
Constructors
| MessageText | |
| MessageImage | |
Fields | |
| MessageVideo | |
Fields | |
| MessageAudio | |
Fields | |
| MessageFile | |
| MessageLocation | |
| MessageSticker | |
Instances
data ContentProvider Source #
Constructors
| ContentProvider | |
Fields | |
Instances
newtype EpochMilli Source #
Constructors
| EpochMilli | |
Fields
| |
Instances
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.5.0.2-Ephb0hoif6sA1vi1Kfq0BS" 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
Constructors
| Things | |
Fields
| |
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.5.0.2-Ephb0hoif6sA1vi1Kfq0BS" 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 #
Constructors
| AccountLink | |
Fields
| |
Instances
| Eq AccountLink Source # | |
Defined in Line.Bot.Webhook.Events | |
| Show AccountLink Source # | |
Defined in Line.Bot.Webhook.Events Methods showsPrec :: Int -> AccountLink -> ShowS # show :: AccountLink -> String # showList :: [AccountLink] -> ShowS # | |
| Generic AccountLink Source # | |
Defined in Line.Bot.Webhook.Events Associated Types type Rep AccountLink :: Type -> Type # | |
| FromJSON AccountLink Source # | |
Defined in Line.Bot.Webhook.Events | |
| type Rep AccountLink Source # | |
Defined in Line.Bot.Webhook.Events type Rep AccountLink = D1 (MetaData "AccountLink" "Line.Bot.Webhook.Events" "line-bot-sdk-0.5.0.2-Ephb0hoif6sA1vi1Kfq0BS" False) (C1 (MetaCons "AccountLink" PrefixI True) (S1 (MetaSel (Just "nonce") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "result") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 AccountLinkResult))) | |
data AccountLinkResult Source #
Instances
| Eq AccountLinkResult Source # | |
Defined in Line.Bot.Webhook.Events Methods (==) :: AccountLinkResult -> AccountLinkResult -> Bool # (/=) :: AccountLinkResult -> AccountLinkResult -> Bool # | |
| Show AccountLinkResult Source # | |
Defined in Line.Bot.Webhook.Events Methods showsPrec :: Int -> AccountLinkResult -> ShowS # show :: AccountLinkResult -> String # showList :: [AccountLinkResult] -> ShowS # | |
| Generic AccountLinkResult Source # | |
Defined in Line.Bot.Webhook.Events Associated Types type Rep AccountLinkResult :: Type -> Type # Methods from :: AccountLinkResult -> Rep AccountLinkResult x # to :: Rep AccountLinkResult x -> AccountLinkResult # | |
| FromJSON AccountLinkResult Source # | |
Defined in Line.Bot.Webhook.Events Methods parseJSON :: Value -> Parser AccountLinkResult # parseJSONList :: Value -> Parser [AccountLinkResult] # | |
| type Rep AccountLinkResult Source # | |