Copyright | (c) Alexandre Moreno 2019 |
---|---|
License | BSD3 |
Maintainer | alexmorenocano@gmail.com |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- newtype ChannelToken = ChannelToken {}
- newtype ChannelSecret = ChannelSecret {}
- newtype ChannelId = ChannelId {
- unChannelId :: Text
- data ChatType
- data Id :: ChatType -> * where
- type MessageId = Text
- newtype URL = URL Text
- data Message
- = MessageText {
- text :: Text
- quickReply :: Maybe QuickReply
- | MessageSticker {
- packageId :: Text
- stickerId :: Text
- quickReply :: Maybe QuickReply
- | MessageImage { }
- | MessageVideo { }
- | MessageAudio { }
- | MessageLocation { }
- | MessageFlex {
- altText :: Text
- contents :: Value
- quickReply :: Maybe QuickReply
- = MessageText {
- newtype ReplyToken = ReplyToken Text
- newtype LinkToken = LinkToken {}
- data ReplyMessageBody = ReplyMessageBody ReplyToken [Message]
- data PushMessageBody = PushMessageBody (Id a) [Message]
- data MulticastMessageBody = MulticastMessageBody [Id User] [Message]
- data Profile = Profile {
- displayName :: Text
- userId :: Id User
- pictureUrl :: URL
- statusMessage :: Maybe Text
- newtype QuickReply = QuickReply {
- items :: [QuickReplyButton]
- data QuickReplyButton = QuickReplyButton {}
- data Action
- = ActionPostback {
- label :: Text
- postbackData :: Text
- displayText :: Text
- | ActionMessage { }
- | ActionUri { }
- | ActionCamera { }
- | ActionCameraRoll { }
- | ActionLocation { }
- = ActionPostback {
- data ClientCredentials = ClientCredentials {}
- data ShortLivedChannelToken = ShortLivedChannelToken {}
- newtype LineDate = LineDate {
- unLineDate :: Day
- data MessageCount = MessageCount {}
- newtype MessageQuota = MessageQuota {
- totalUsage :: Int
- data MemberIds = MemberIds {}
Documentation
newtype ChannelToken Source #
Instances
newtype ChannelSecret Source #
Instances
IsString ChannelSecret Source # | |
Defined in Line.Bot.Types fromString :: String -> ChannelSecret # | |
ToHttpApiData ChannelSecret Source # | |
Defined in Line.Bot.Types toUrlPiece :: ChannelSecret -> Text # toEncodedUrlPiece :: ChannelSecret -> Builder # toHeader :: ChannelSecret -> ByteString # toQueryParam :: ChannelSecret -> Text # |
Instances
Eq ChannelId Source # | |
Show ChannelId Source # | |
IsString ChannelId Source # | |
Defined in Line.Bot.Types fromString :: String -> ChannelId # | |
Generic ChannelId Source # | |
ToHttpApiData ChannelId Source # | |
Defined in Line.Bot.Types toUrlPiece :: ChannelId -> Text # toEncodedUrlPiece :: ChannelId -> Builder # toHeader :: ChannelId -> ByteString # toQueryParam :: ChannelId -> Text # | |
type Rep ChannelId Source # | |
Defined in Line.Bot.Types |
data Id :: ChatType -> * where Source #
ID of a chat user, group or room
Instances
Eq (Id a) Source # | |
Show (Id a) Source # | |
IsString (Id User) Source # | |
Defined in Line.Bot.Types fromString :: String -> Id User # | |
IsString (Id Group) Source # | |
Defined in Line.Bot.Types fromString :: String -> Id Group # | |
IsString (Id Room) Source # | |
Defined in Line.Bot.Types fromString :: String -> Id Room # | |
ToJSON (Id a) Source # | |
Defined in Line.Bot.Types | |
FromJSON (Id User) Source # | |
FromJSON (Id Group) Source # | |
FromJSON (Id Room) Source # | |
ToHttpApiData (Id a) Source # | |
Defined in Line.Bot.Types toUrlPiece :: Id a -> Text # toEncodedUrlPiece :: Id a -> Builder # toHeader :: Id a -> ByteString # toQueryParam :: Id a -> Text # | |
FromHttpApiData (Id User) Source # | |
Defined in Line.Bot.Types | |
FromHttpApiData (Id Group) Source # | |
Defined in Line.Bot.Types | |
FromHttpApiData (Id Room) Source # | |
Defined in Line.Bot.Types |
Instances
newtype ReplyToken Source #
Instances
data ReplyMessageBody Source #
Instances
data PushMessageBody Source #
PushMessageBody (Id a) [Message] |
Instances
Show PushMessageBody Source # | |
Defined in Line.Bot.Types showsPrec :: Int -> PushMessageBody -> ShowS # show :: PushMessageBody -> String # showList :: [PushMessageBody] -> ShowS # | |
ToJSON PushMessageBody Source # | |
Defined in Line.Bot.Types toJSON :: PushMessageBody -> Value # toEncoding :: PushMessageBody -> Encoding # toJSONList :: [PushMessageBody] -> Value # toEncodingList :: [PushMessageBody] -> Encoding # |
data MulticastMessageBody Source #
Instances
Profile | |
|
Instances
Eq Profile Source # | |
Show Profile Source # | |
Generic Profile Source # | |
FromJSON Profile Source # | |
type Rep Profile Source # | |
Defined in Line.Bot.Types type Rep Profile = D1 (MetaData "Profile" "Line.Bot.Types" "line-bot-sdk-0.5.1.0-22iMU4wVhfi5csuPFunNg" False) (C1 (MetaCons "Profile" PrefixI True) ((S1 (MetaSel (Just "displayName") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "userId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Id User))) :*: (S1 (MetaSel (Just "pictureUrl") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 URL) :*: S1 (MetaSel (Just "statusMessage") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))) |
newtype QuickReply Source #
Instances
Eq QuickReply Source # | |
Defined in Line.Bot.Types (==) :: QuickReply -> QuickReply -> Bool # (/=) :: QuickReply -> QuickReply -> Bool # | |
Show QuickReply Source # | |
Defined in Line.Bot.Types showsPrec :: Int -> QuickReply -> ShowS # show :: QuickReply -> String # showList :: [QuickReply] -> ShowS # | |
Generic QuickReply Source # | |
Defined in Line.Bot.Types type Rep QuickReply :: Type -> Type # from :: QuickReply -> Rep QuickReply x # to :: Rep QuickReply x -> QuickReply # | |
ToJSON QuickReply Source # | |
Defined in Line.Bot.Types toJSON :: QuickReply -> Value # toEncoding :: QuickReply -> Encoding # toJSONList :: [QuickReply] -> Value # toEncodingList :: [QuickReply] -> Encoding # | |
type Rep QuickReply Source # | |
Defined in Line.Bot.Types type Rep QuickReply = D1 (MetaData "QuickReply" "Line.Bot.Types" "line-bot-sdk-0.5.1.0-22iMU4wVhfi5csuPFunNg" True) (C1 (MetaCons "QuickReply" PrefixI True) (S1 (MetaSel (Just "items") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [QuickReplyButton]))) |
data QuickReplyButton Source #
Instances
Eq QuickReplyButton Source # | |
Defined in Line.Bot.Types (==) :: QuickReplyButton -> QuickReplyButton -> Bool # (/=) :: QuickReplyButton -> QuickReplyButton -> Bool # | |
Show QuickReplyButton Source # | |
Defined in Line.Bot.Types showsPrec :: Int -> QuickReplyButton -> ShowS # show :: QuickReplyButton -> String # showList :: [QuickReplyButton] -> ShowS # | |
ToJSON QuickReplyButton Source # | |
Defined in Line.Bot.Types toJSON :: QuickReplyButton -> Value # toEncoding :: QuickReplyButton -> Encoding # toJSONList :: [QuickReplyButton] -> Value # toEncodingList :: [QuickReplyButton] -> Encoding # |
ActionPostback | |
| |
ActionMessage | |
ActionUri | |
ActionCamera | |
ActionCameraRoll | |
ActionLocation | |
Instances
data ClientCredentials Source #
Instances
ToForm ClientCredentials Source # | |
Defined in Line.Bot.Types toForm :: ClientCredentials -> Form # |
data ShortLivedChannelToken Source #
Instances
Eq ShortLivedChannelToken Source # | |
Defined in Line.Bot.Types | |
Show ShortLivedChannelToken Source # | |
Defined in Line.Bot.Types showsPrec :: Int -> ShortLivedChannelToken -> ShowS # show :: ShortLivedChannelToken -> String # showList :: [ShortLivedChannelToken] -> ShowS # | |
Generic ShortLivedChannelToken Source # | |
Defined in Line.Bot.Types type Rep ShortLivedChannelToken :: Type -> Type # | |
FromJSON ShortLivedChannelToken Source # | |
Defined in Line.Bot.Types | |
type Rep ShortLivedChannelToken Source # | |
Defined in Line.Bot.Types type Rep ShortLivedChannelToken = D1 (MetaData "ShortLivedChannelToken" "Line.Bot.Types" "line-bot-sdk-0.5.1.0-22iMU4wVhfi5csuPFunNg" False) (C1 (MetaCons "ShortLivedChannelToken" PrefixI True) (S1 (MetaSel (Just "accessToken") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 ChannelToken) :*: S1 (MetaSel (Just "expiresIn") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))) |
Instances
Eq LineDate Source # | |
Show LineDate Source # | |
ToHttpApiData LineDate Source # | |
Defined in Line.Bot.Types toUrlPiece :: LineDate -> Text # toEncodedUrlPiece :: LineDate -> Builder # toHeader :: LineDate -> ByteString # toQueryParam :: LineDate -> Text # |
data MessageCount Source #
Instances
Eq MessageCount Source # | |
Defined in Line.Bot.Types (==) :: MessageCount -> MessageCount -> Bool # (/=) :: MessageCount -> MessageCount -> Bool # | |
Show MessageCount Source # | |
Defined in Line.Bot.Types showsPrec :: Int -> MessageCount -> ShowS # show :: MessageCount -> String # showList :: [MessageCount] -> ShowS # | |
FromJSON MessageCount Source # | |
Defined in Line.Bot.Types parseJSON :: Value -> Parser MessageCount # parseJSONList :: Value -> Parser [MessageCount] # |
newtype MessageQuota Source #
Instances
Eq MessageQuota Source # | |
Defined in Line.Bot.Types (==) :: MessageQuota -> MessageQuota -> Bool # (/=) :: MessageQuota -> MessageQuota -> Bool # | |
Show MessageQuota Source # | |
Defined in Line.Bot.Types showsPrec :: Int -> MessageQuota -> ShowS # show :: MessageQuota -> String # showList :: [MessageQuota] -> ShowS # | |
Generic MessageQuota Source # | |
Defined in Line.Bot.Types type Rep MessageQuota :: Type -> Type # from :: MessageQuota -> Rep MessageQuota x # to :: Rep MessageQuota x -> MessageQuota # | |
FromJSON MessageQuota Source # | |
Defined in Line.Bot.Types parseJSON :: Value -> Parser MessageQuota # parseJSONList :: Value -> Parser [MessageQuota] # | |
type Rep MessageQuota Source # | |
Defined in Line.Bot.Types type Rep MessageQuota = D1 (MetaData "MessageQuota" "Line.Bot.Types" "line-bot-sdk-0.5.1.0-22iMU4wVhfi5csuPFunNg" True) (C1 (MetaCons "MessageQuota" PrefixI True) (S1 (MetaSel (Just "totalUsage") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int))) |
Instances
Eq MemberIds Source # | |
Show MemberIds Source # | |
Generic MemberIds Source # | |
FromJSON MemberIds Source # | |
type Rep MemberIds Source # | |
Defined in Line.Bot.Types type Rep MemberIds = D1 (MetaData "MemberIds" "Line.Bot.Types" "line-bot-sdk-0.5.1.0-22iMU4wVhfi5csuPFunNg" False) (C1 (MetaCons "MemberIds" PrefixI True) (S1 (MetaSel (Just "memberIds") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Id User]) :*: S1 (MetaSel (Just "next") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe String)))) |