Safe Haskell | Safe-Inferred |
---|---|
Language | GHC2021 |
Synopsis
- data DeviceToken
- = DeviceTokenFirebaseCloudMessaging { }
- | DeviceTokenApplePush { }
- | DeviceTokenApplePushVoIP {
- device_token :: Maybe Text
- is_app_sandbox :: Maybe Bool
- encrypt :: Maybe Bool
- | DeviceTokenWindowsPush { }
- | DeviceTokenMicrosoftPush {
- channel_uri :: Maybe Text
- | DeviceTokenMicrosoftPushVoIP {
- channel_uri :: Maybe Text
- | DeviceTokenWebPush { }
- | DeviceTokenSimplePush { }
- | DeviceTokenUbuntuPush { }
- | DeviceTokenBlackBerryPush { }
- | DeviceTokenTizenPush { }
- | DeviceTokenHuaweiPush { }
Documentation
data DeviceToken Source #
Represents a data needed to subscribe for push notifications through registerDevice method. To use specific push notification service, the correct application platform must be specified and a valid server authentication data must be uploaded at https://my.telegram.org
DeviceTokenFirebaseCloudMessaging | A token for Firebase Cloud Messaging |
DeviceTokenApplePush | A token for Apple Push Notification service |
| |
DeviceTokenApplePushVoIP | A token for Apple Push Notification service VoIP notifications |
| |
DeviceTokenWindowsPush | A token for Windows Push Notification Services |
| |
DeviceTokenMicrosoftPush | A token for Microsoft Push Notification Service |
| |
DeviceTokenMicrosoftPushVoIP | A token for Microsoft Push Notification Service VoIP channel |
| |
DeviceTokenWebPush | A token for web Push API |
| |
DeviceTokenSimplePush | A token for Simple Push API for Firefox OS |
DeviceTokenUbuntuPush | A token for Ubuntu Push Client service |
DeviceTokenBlackBerryPush | A token for BlackBerry Push Service |
DeviceTokenTizenPush | A token for Tizen Push Service |
DeviceTokenHuaweiPush | A token for HUAWEI Push Service |
Instances
FromJSON DeviceToken Source # | |
Defined in TD.Data.DeviceToken parseJSON :: Value -> Parser DeviceToken # parseJSONList :: Value -> Parser [DeviceToken] # | |
ToJSON DeviceToken Source # | |
Defined in TD.Data.DeviceToken toJSON :: DeviceToken -> Value # toEncoding :: DeviceToken -> Encoding # toJSONList :: [DeviceToken] -> Value # toEncodingList :: [DeviceToken] -> Encoding # | |
Show DeviceToken Source # | |
Defined in TD.Data.DeviceToken showsPrec :: Int -> DeviceToken -> ShowS # show :: DeviceToken -> String # showList :: [DeviceToken] -> ShowS # | |
Eq DeviceToken Source # | |
Defined in TD.Data.DeviceToken (==) :: DeviceToken -> DeviceToken -> Bool # (/=) :: DeviceToken -> DeviceToken -> Bool # | |
ShortShow DeviceToken Source # | |
Defined in TD.Data.DeviceToken shortShow :: DeviceToken -> String Source # |