Files
raspberry/iOS/Wallet/Sources/Account/Model/AddPushNotificationDeviceTokenGraphQLRequest.swift
T
2022-07-21 09:41:07 +03:00

45 lines
1.2 KiB
Swift

//
// AddPushNotificationDeviceTokenGraphQLRequest.swift
// Wallet
//
// Created by Saveliy Stavitsky on 7/30/21.
// Copyright © 2021 AM. All rights reserved.
//
import Foundation
struct UpdatePushNotificationDeviceTokenGraphQLRequest: Encodable {
struct ResponseData: Decodable { }
struct Variables: Encodable {
let deviceToken: String
let deviceType: String
let eosAccounts: [String]
let langCode: String
let application: String
}
let variables: Variables
let operationName = "updatePushNotificationDeviceToken"
let query: String = #"""
mutation updatePushNotificationDeviceToken(
$deviceToken: String!,
$deviceType: DeviceTypeEnum,
$eosAccounts: [String]!,
$langCode: Lang!
$application: ApplicationEnum
) {
updatePushNotificationDeviceToken(
deviceToken: $deviceToken,
deviceType: $deviceType,
eosAccounts: $eosAccounts,
langCode: $langCode,
application: $application
) {
errors
}
}
"""#
}