line-bot-sdk-0.7.2: Haskell SDK for LINE Messaging API
Copyright(c) Alexandre Moreno 2019-2021
LicenseBSD-3-Clause
Maintaineralexmorenocano@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Line.Bot.Webhook.Events

Description

 
Synopsis

Documentation

data Events Source #

Constructors

Events 

Fields

Instances

Instances details
Show Events Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Generic Events Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Associated Types

type Rep Events :: Type -> Type #

Methods

from :: Events -> Rep Events x #

to :: Rep Events x -> Events #

FromJSON Events Source # 
Instance details

Defined in Line.Bot.Webhook.Events

type Rep Events Source # 
Instance details

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])))

data Event Source #

Events generated on the LINE Platform.

Instances

Instances details
Show Event Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Methods

showsPrec :: Int -> Event -> ShowS #

show :: Event -> String #

showList :: [Event] -> ShowS #

Generic Event Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Associated Types

type Rep Event :: Type -> Type #

Methods

from :: Event -> Rep Event x #

to :: Rep Event x -> Event #

FromJSON Event Source # 
Instance details

Defined in Line.Bot.Webhook.Events

type Rep Event Source # 
Instance details

Defined in Line.Bot.Webhook.Events

type Rep Event = D1 ('MetaData "Event" "Line.Bot.Webhook.Events" "line-bot-sdk-0.7.2-F2yyxMh5BFY9DcEGbfR99r" 'False) (((C1 ('MetaCons "EventMessage" 'PrefixI 'True) ((S1 ('MetaSel ('Just "replyToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyToken) :*: S1 ('MetaSel ('Just "message") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Message)) :*: (S1 ('MetaSel ('Just "messageSource") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageSource) :*: S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochMilli))) :+: C1 ('MetaCons "EventFollow" 'PrefixI 'True) (S1 ('MetaSel ('Just "replyToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyToken) :*: (S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Source) :*: S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochMilli)))) :+: (C1 ('MetaCons "EventUnfollow" 'PrefixI 'True) (S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Source) :*: S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochMilli)) :+: (C1 ('MetaCons "EventJoin" 'PrefixI 'True) (S1 ('MetaSel ('Just "replyToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyToken) :*: (S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Source) :*: S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochMilli))) :+: C1 ('MetaCons "EventLeave" 'PrefixI 'True) (S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Source) :*: S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochMilli))))) :+: ((C1 ('MetaCons "EventMemberJoined" 'PrefixI 'True) ((S1 ('MetaSel ('Just "replyToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyToken) :*: S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Source)) :*: (S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochMilli) :*: S1 ('MetaSel ('Just "joined") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Members))) :+: (C1 ('MetaCons "EventMemberLeft" 'PrefixI 'True) (S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Source) :*: (S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochMilli) :*: S1 ('MetaSel ('Just "left") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Members))) :+: C1 ('MetaCons "EventPostback" 'PrefixI 'True) ((S1 ('MetaSel ('Just "replyToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyToken) :*: S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Source)) :*: (S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochMilli) :*: S1 ('MetaSel ('Just "postback") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Postback))))) :+: (C1 ('MetaCons "EventBeacon" 'PrefixI 'True) ((S1 ('MetaSel ('Just "replyToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyToken) :*: S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Source)) :*: (S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochMilli) :*: S1 ('MetaSel ('Just "beacon") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Beacon))) :+: (C1 ('MetaCons "EventAccountLink" 'PrefixI 'True) ((S1 ('MetaSel ('Just "replyToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyToken) :*: S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Source)) :*: (S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochMilli) :*: S1 ('MetaSel ('Just "link") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 AccountLink))) :+: C1 ('MetaCons "EventThings" 'PrefixI 'True) ((S1 ('MetaSel ('Just "replyToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ReplyToken) :*: S1 ('MetaSel ('Just "source") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Source)) :*: (S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 EpochMilli) :*: S1 ('MetaSel ('Just "things") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Things)))))))

data Message Source #

Instances

Instances details
Eq Message Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Methods

(==) :: Message -> Message -> Bool #

(/=) :: Message -> Message -> Bool #

Show Message Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Generic Message Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Associated Types

type Rep Message :: Type -> Type #

Methods

from :: Message -> Rep Message x #

to :: Rep Message x -> Message #

FromJSON Message Source # 
Instance details

Defined in Line.Bot.Webhook.Events

type Rep Message Source # 
Instance details

Defined in Line.Bot.Webhook.Events

type Rep Message = D1 ('MetaData "Message" "Line.Bot.Webhook.Events" "line-bot-sdk-0.7.2-F2yyxMh5BFY9DcEGbfR99r" 'False) ((C1 ('MetaCons "MessageText" 'PrefixI 'True) (S1 ('MetaSel ('Just "messageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageId) :*: S1 ('MetaSel ('Just "text") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :+: (C1 ('MetaCons "MessageImage" 'PrefixI 'True) (S1 ('MetaSel ('Just "messageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageId) :*: S1 ('MetaSel ('Just "contentProvider") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ContentProvider)) :+: C1 ('MetaCons "MessageVideo" 'PrefixI 'True) (S1 ('MetaSel ('Just "messageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageId) :*: (S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "contentProvider") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ContentProvider))))) :+: ((C1 ('MetaCons "MessageAudio" 'PrefixI 'True) (S1 ('MetaSel ('Just "messageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageId) :*: (S1 ('MetaSel ('Just "duration") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "contentProvider") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 ContentProvider))) :+: C1 ('MetaCons "MessageFile" 'PrefixI 'True) (S1 ('MetaSel ('Just "messageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageId) :*: (S1 ('MetaSel ('Just "fileSize") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Int) :*: S1 ('MetaSel ('Just "fileName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) :+: (C1 ('MetaCons "MessageLocation" 'PrefixI 'True) ((S1 ('MetaSel ('Just "messageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageId) :*: S1 ('MetaSel ('Just "title") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "address") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: (S1 ('MetaSel ('Just "latitude") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double) :*: S1 ('MetaSel ('Just "longitude") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Double)))) :+: C1 ('MetaCons "MessageSticker" 'PrefixI 'True) (S1 ('MetaSel ('Just "messageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 MessageId) :*: (S1 ('MetaSel ('Just "packageId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "stickerId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text))))))

data ContentProvider Source #

Instances

Instances details
Eq ContentProvider Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Show ContentProvider Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Generic ContentProvider Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Associated Types

type Rep ContentProvider :: Type -> Type #

FromJSON ContentProvider Source # 
Instance details

Defined in Line.Bot.Webhook.Events

type Rep ContentProvider Source # 
Instance details

Defined in Line.Bot.Webhook.Events

type Rep ContentProvider = D1 ('MetaData "ContentProvider" "Line.Bot.Webhook.Events" "line-bot-sdk-0.7.2-F2yyxMh5BFY9DcEGbfR99r" 'False) (C1 ('MetaCons "ContentProvider" 'PrefixI 'True) (S1 ('MetaSel ('Just "originalContentUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe URL)) :*: S1 ('MetaSel ('Just "previewImageUrl") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe URL))))

data Source Source #

Constructors

forall a. Source (Id a) 

Instances

Instances details
Show Source Source # 
Instance details

Defined in Line.Bot.Webhook.Events

ToJSON Source Source # 
Instance details

Defined in Line.Bot.Webhook.Events

FromJSON Source Source # 
Instance details

Defined in Line.Bot.Webhook.Events

newtype Members Source #

Constructors

Members 

Fields

Instances

Instances details
Show Members Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Generic Members Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Associated Types

type Rep Members :: Type -> Type #

Methods

from :: Members -> Rep Members x #

to :: Rep Members x -> Members #

FromJSON Members Source # 
Instance details

Defined in Line.Bot.Webhook.Events

type Rep Members Source # 
Instance details

Defined in Line.Bot.Webhook.Events

type Rep Members = D1 ('MetaData "Members" "Line.Bot.Webhook.Events" "line-bot-sdk-0.7.2-F2yyxMh5BFY9DcEGbfR99r" 'True) (C1 ('MetaCons "Members" 'PrefixI 'True) (S1 ('MetaSel ('Just "members") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 [Source])))

data Postback Source #

Constructors

Postback Text (Maybe PostbackDateTime) 

Instances

Instances details
Eq Postback Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Show Postback Source # 
Instance details

Defined in Line.Bot.Webhook.Events

FromJSON Postback Source # 
Instance details

Defined in Line.Bot.Webhook.Events

data Beacon Source #

Constructors

Beacon 

Instances

Instances details
Eq Beacon Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Methods

(==) :: Beacon -> Beacon -> Bool #

(/=) :: Beacon -> Beacon -> Bool #

Show Beacon Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Generic Beacon Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Associated Types

type Rep Beacon :: Type -> Type #

Methods

from :: Beacon -> Rep Beacon x #

to :: Rep Beacon x -> Beacon #

FromJSON Beacon Source # 
Instance details

Defined in Line.Bot.Webhook.Events

type Rep Beacon Source # 
Instance details

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 #

Constructors

Enter 
Leave 
Banner 

Instances

Instances details
Eq BeaconEvent Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Ord BeaconEvent Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Read BeaconEvent Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Show BeaconEvent Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Generic BeaconEvent Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Associated Types

type Rep BeaconEvent :: Type -> Type #

FromJSON BeaconEvent Source # 
Instance details

Defined in Line.Bot.Webhook.Events

type Rep BeaconEvent Source # 
Instance details

Defined in Line.Bot.Webhook.Events

type Rep BeaconEvent = D1 ('MetaData "BeaconEvent" "Line.Bot.Webhook.Events" "line-bot-sdk-0.7.2-F2yyxMh5BFY9DcEGbfR99r" 'False) (C1 ('MetaCons "Enter" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "Leave" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Banner" 'PrefixI 'False) (U1 :: Type -> Type)))

data Things Source #

Constructors

Things 

Instances

Instances details
Eq Things Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Methods

(==) :: Things -> Things -> Bool #

(/=) :: Things -> Things -> Bool #

Show Things Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Generic Things Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Associated Types

type Rep Things :: Type -> Type #

Methods

from :: Things -> Rep Things x #

to :: Rep Things x -> Things #

FromJSON Things Source # 
Instance details

Defined in Line.Bot.Webhook.Events

type Rep Things Source # 
Instance details

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 #

Constructors

Link 
Unlink 

Instances

Instances details
Eq ThingsEvent Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Ord ThingsEvent Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Read ThingsEvent Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Show ThingsEvent Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Generic ThingsEvent Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Associated Types

type Rep ThingsEvent :: Type -> Type #

FromJSON ThingsEvent Source # 
Instance details

Defined in Line.Bot.Webhook.Events

type Rep ThingsEvent Source # 
Instance details

Defined in Line.Bot.Webhook.Events

type Rep ThingsEvent = D1 ('MetaData "ThingsEvent" "Line.Bot.Webhook.Events" "line-bot-sdk-0.7.2-F2yyxMh5BFY9DcEGbfR99r" 'False) (C1 ('MetaCons "Link" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Unlink" 'PrefixI 'False) (U1 :: Type -> Type))

data AccountLink Source #

Constructors

AccountLink 

Instances

data AccountLinkResult Source #

Constructors

Ok 
Failed 

Instances

Instances details
Eq AccountLinkResult Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Show AccountLinkResult Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Generic AccountLinkResult Source # 
Instance details

Defined in Line.Bot.Webhook.Events

Associated Types

type Rep AccountLinkResult :: Type -> Type #

FromJSON AccountLinkResult Source # 
Instance details

Defined in Line.Bot.Webhook.Events

type Rep AccountLinkResult Source # 
Instance details

Defined in Line.Bot.Webhook.Events

type Rep AccountLinkResult = D1 ('MetaData "AccountLinkResult" "Line.Bot.Webhook.Events" "line-bot-sdk-0.7.2-F2yyxMh5BFY9DcEGbfR99r" 'False) (C1 ('MetaCons "Ok" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "Failed" 'PrefixI 'False) (U1 :: Type -> Type))