Copyright | (c) Alexandre Moreno 2019-2021 |
---|---|
License | BSD-3-Clause |
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
- = MessageText { }
- | MessageImage { }
- | MessageVideo { }
- | MessageAudio { }
- | MessageFile { }
- | MessageLocation { }
- | MessageSticker { }
- data ContentProvider = ContentProvider {}
- newtype EpochMilli = EpochMilli {}
- data Source = forall a. Source (Id a)
- data MessageSource
- = MessageSourceUser (Id 'User)
- | MessageSourceGroup (Id 'Group) (Id 'User)
- | MessageSourceRoom (Id 'Room) (Id 'User)
- newtype Members = Members {}
- data Postback = Postback Text (Maybe 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
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.7.2-F2yyxMh5BFY9DcEGbfR99r" '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
Instances
data ContentProvider Source #
Instances
newtype EpochMilli Source #
EpochMilli | |
|
Instances
data MessageSource Source #
MessageSourceUser (Id 'User) | |
MessageSourceGroup (Id 'Group) (Id 'User) | |
MessageSourceRoom (Id 'Room) (Id 'User) |
Instances
Show MessageSource Source # | |
Defined in Line.Bot.Webhook.Events showsPrec :: Int -> MessageSource -> ShowS # show :: MessageSource -> String # showList :: [MessageSource] -> ShowS # | |
ToJSON MessageSource Source # | |
Defined in Line.Bot.Webhook.Events toJSON :: MessageSource -> Value # toEncoding :: MessageSource -> Encoding # toJSONList :: [MessageSource] -> Value # toEncodingList :: [MessageSource] -> Encoding # | |
FromJSON MessageSource Source # | |
Defined in Line.Bot.Webhook.Events parseJSON :: Value -> Parser MessageSource # parseJSONList :: Value -> Parser [MessageSource] # |
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.7.2-F2yyxMh5BFY9DcEGbfR99r" '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.7.2-F2yyxMh5BFY9DcEGbfR99r" '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 # | |