// // StateDeviceRequest.swift // // // Created by Juraldinio on 29.08.2022. // import Foundation struct StateDeviceRequest: Encodable { struct Variables: Encodable { let uid: String } // MARK: - GraphQL let variables: Variables let operationName = "device" let query: String = #""" query device( $uid: String! ) { device(uid: $uid) { availableAccounts, isTrustedNow } } """#.trimCompact() } struct StateDeviceResponse: GraphQLResponse { static let node = "device" let availableAccounts: Int let isTrustedNow: Bool }