Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data BackgroundType
- = BackgroundTypeWallpaper { }
- | BackgroundTypePattern { }
- | BackgroundTypeFill { }
- | BackgroundTypeChatTheme {
- theme_name :: Maybe Text
Documentation
data BackgroundType Source #
Describes the type of background
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 |
| |
BackgroundTypeFill | A filled background |
| |
BackgroundTypeChatTheme | A background from a chat theme; can be used only as a chat background in channels |
|
Instances
FromJSON BackgroundType Source # | |
Defined in TD.Data.BackgroundType parseJSON :: Value -> Parser BackgroundType # parseJSONList :: Value -> Parser [BackgroundType] # | |
ToJSON BackgroundType Source # | |
Defined in TD.Data.BackgroundType toJSON :: BackgroundType -> Value # toEncoding :: BackgroundType -> Encoding # toJSONList :: [BackgroundType] -> Value # toEncodingList :: [BackgroundType] -> Encoding # | |
Show BackgroundType Source # | |
Defined in TD.Data.BackgroundType showsPrec :: Int -> BackgroundType -> ShowS # show :: BackgroundType -> String # showList :: [BackgroundType] -> ShowS # | |
Eq BackgroundType Source # | |
Defined in TD.Data.BackgroundType (==) :: BackgroundType -> BackgroundType -> Bool # (/=) :: BackgroundType -> BackgroundType -> Bool # | |
ShortShow BackgroundType Source # | |
Defined in TD.Data.BackgroundType shortShow :: BackgroundType -> String Source # |