42 lines
1.0 KiB
Swift
42 lines
1.0 KiB
Swift
//
|
|
// AddPushNotificationDeviceTokenGraphQLRequest.swift
|
|
// PayCash
|
|
//
|
|
// 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 variables: Variables
|
|
let operationName = "updatePushNotificationDeviceToken"
|
|
let query: String = #"""
|
|
mutation updatePushNotificationDeviceToken(
|
|
$deviceToken: String!,
|
|
$deviceType: DeviceTypeEnum,
|
|
$eosAccounts: [String]!,
|
|
$langCode: Lang!
|
|
) {
|
|
updatePushNotificationDeviceToken(
|
|
deviceToken: $deviceToken,
|
|
deviceType: $deviceType,
|
|
eosAccounts: $eosAccounts,
|
|
langCode: $langCode
|
|
) {
|
|
errors
|
|
}
|
|
}
|
|
"""#
|
|
}
|