Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
TD.Data.BackgroundType
Synopsis
- data BackgroundType
- = BackgroundTypeWallpaper { }
- | BackgroundTypePattern { }
- | BackgroundTypeFill { }
- | BackgroundTypeChatTheme {
- theme_name :: Maybe Text
Documentation
data BackgroundType Source #
Describes the type of background
Constructors
BackgroundTypeWallpaper | A wallpaper in JPEG format |
BackgroundTypePattern | A PNG or TGV (gzipped subset of SVG with MIME type "application/x-tgwallpattern") pattern to be combined with the background fill chosen by the user |
Fields
| |
BackgroundTypeFill | A filled background |
Fields
| |
BackgroundTypeChatTheme | A background from a chat theme; can be used only as a chat background in channels |
Fields
|
Instances
FromJSON BackgroundType Source # | |
Defined in TD.Data.BackgroundType Methods parseJSON :: Value -> Parser BackgroundType # parseJSONList :: Value -> Parser [BackgroundType] # | |
ToJSON BackgroundType Source # | |
Defined in TD.Data.BackgroundType Methods toJSON :: BackgroundType -> Value # toEncoding :: BackgroundType -> Encoding # toJSONList :: [BackgroundType] -> Value # toEncodingList :: [BackgroundType] -> Encoding # | |
Show BackgroundType Source # | |
Defined in TD.Data.BackgroundType Methods showsPrec :: Int -> BackgroundType -> ShowS # show :: BackgroundType -> String # showList :: [BackgroundType] -> ShowS # | |
Eq BackgroundType Source # | |
Defined in TD.Data.BackgroundType Methods (==) :: BackgroundType -> BackgroundType -> Bool # (/=) :: BackgroundType -> BackgroundType -> Bool # | |
ShortShow BackgroundType Source # | |
Defined in TD.Data.BackgroundType Methods shortShow :: BackgroundType -> String Source # |