line-bot-sdk-0.5.0.2: Haskell SDK for LINE Messaging API

Copyright(c) Alexandre Moreno 2019
LicenseBSD3
Maintaineralexmorenocano@gmail.com
Stabilityexperimental
Safe HaskellNone
LanguageHaskell2010

Line.Bot.Webhook.Events

Description

 
Synopsis

Documentation

data Events Source #

Constructors

Events 

Fields

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

data Event Source #

Events generated on the LINE Platform.

Instances
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.5.0.2-Ephb0hoif6sA1vi1Kfq0BS" 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 "source") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Source) :*: 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
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.5.0.2-Ephb0hoif6sA1vi1Kfq0BS" 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
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.5.0.2-Ephb0hoif6sA1vi1Kfq0BS" 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

Source (Id a) 
Instances
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
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.5.0.2-Ephb0hoif6sA1vi1Kfq0BS" True) (C1 (MetaCons "Members" PrefixI True) (S1 (MetaSel (Just "members") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Source])))

data Postback Source #

Constructors

Postback Text PostbackDateTime 
Instances
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
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.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 #

Constructors

Enter 
Leave 
Banner 
Instances
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.5.0.2-Ephb0hoif6sA1vi1Kfq0BS" 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
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.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 #

Constructors

Link 
Unlink 
Instances
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.5.0.2-Ephb0hoif6sA1vi1Kfq0BS" False) (C1 (MetaCons "Link" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Unlink" PrefixI False) (U1 :: Type -> Type))

data AccountLink Source #

Constructors

AccountLink 

data AccountLinkResult Source #

Constructors

Ok 
Failed 
Instances
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.5.0.2-Ephb0hoif6sA1vi1Kfq0BS" False) (C1 (MetaCons "Ok" PrefixI False) (U1 :: Type -> Type) :+: C1 (MetaCons "Failed" PrefixI False) (U1 :: Type -> Type))