| Copyright | (c) Christina Wuest 2021 |
|---|---|
| License | BSD-style |
| Maintainer | tina@wuest.me |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Web.TwitchAPI.PubSub
Description
Messages sent over Twitch's PubSub interface.
Documentation
data RequestType Source #
Instances
| Show RequestType Source # | |
Defined in Web.TwitchAPI.PubSub Methods showsPrec :: Int -> RequestType -> ShowS # show :: RequestType -> String # showList :: [RequestType] -> ShowS # | |
| Eq RequestType Source # | |
Defined in Web.TwitchAPI.PubSub | |
Constructors
| Request | |
Fields
| |
data RequestError Source #
Constructors
| BadMessage | |
| BadAuth | |
| ServerFail | |
| BadTopic | |
| None |
Instances
| Read RequestError Source # | |
Defined in Web.TwitchAPI.PubSub Methods readsPrec :: Int -> ReadS RequestError # readList :: ReadS [RequestError] # | |
| Show RequestError Source # | |
Defined in Web.TwitchAPI.PubSub Methods showsPrec :: Int -> RequestError -> ShowS # show :: RequestError -> String # showList :: [RequestError] -> ShowS # | |
| Eq RequestError Source # | |
Defined in Web.TwitchAPI.PubSub | |
Constructors
| Response | |
Fields | |
data RewardImages Source #
Instances
Instances
| FromJSON UserInfo Source # | |
Defined in Web.TwitchAPI.PubSub | |
| ToJSON UserInfo Source # | |
| Generic UserInfo Source # | |
| Show UserInfo Source # | |
| Eq UserInfo Source # | |
| type Rep UserInfo Source # | |
Defined in Web.TwitchAPI.PubSub type Rep UserInfo = D1 ('MetaData "UserInfo" "Web.TwitchAPI.PubSub" "twitchapi-0.0.5-632iisKiBd93KOHiuUWcSY" 'False) (C1 ('MetaCons "UserInfo" 'PrefixI 'True) (S1 ('MetaSel ('Just "userId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: (S1 ('MetaSel ('Just "userName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 String) :*: S1 ('MetaSel ('Just "displayName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe String))))) | |
data RewardStatus Source #
Constructors
| Fulfilled | |
| Unfulfilled |
Instances
| ToJSON RewardStatus Source # | |
Defined in Web.TwitchAPI.PubSub Methods toJSON :: RewardStatus -> Value # toEncoding :: RewardStatus -> Encoding # toJSONList :: [RewardStatus] -> Value # toEncodingList :: [RewardStatus] -> Encoding # omitField :: RewardStatus -> Bool # | |
| Generic RewardStatus Source # | |
Defined in Web.TwitchAPI.PubSub Associated Types type Rep RewardStatus :: Type -> Type # | |
| Read RewardStatus Source # | |
Defined in Web.TwitchAPI.PubSub Methods readsPrec :: Int -> ReadS RewardStatus # readList :: ReadS [RewardStatus] # | |
| Show RewardStatus Source # | |
Defined in Web.TwitchAPI.PubSub Methods showsPrec :: Int -> RewardStatus -> ShowS # show :: RewardStatus -> String # showList :: [RewardStatus] -> ShowS # | |
| Eq RewardStatus Source # | |
Defined in Web.TwitchAPI.PubSub | |
| type Rep RewardStatus Source # | |
data BadgeUnlock Source #
Constructors
| BadgeUnlock | |
Fields | |
Instances
data SubscriptionTier Source #
Instances
Constructors
| EmoteSpec | |
Fields
| |
Instances
| FromJSON EmoteSpec Source # | |
Defined in Web.TwitchAPI.PubSub | |
| ToJSON EmoteSpec Source # | |
| Generic EmoteSpec Source # | |
| Show EmoteSpec Source # | |
| Eq EmoteSpec Source # | |
| type Rep EmoteSpec Source # | |
Defined in Web.TwitchAPI.PubSub type Rep EmoteSpec = D1 ('MetaData "EmoteSpec" "Web.TwitchAPI.PubSub" "twitchapi-0.0.5-632iisKiBd93KOHiuUWcSY" 'False) (C1 ('MetaCons "EmoteSpec" 'PrefixI 'True) (S1 ('MetaSel ('Just "emoteStart") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: (S1 ('MetaSel ('Just "emoteLength") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer) :*: S1 ('MetaSel ('Just "emoteId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Integer)))) | |
data SubscriptionMessage Source #
Constructors
| SubscriptionMessage | |
Fields | |
Instances
Constructors
Instances
parseBitsV2 :: Object -> MessageParser Source #