-
Notifications
You must be signed in to change notification settings - Fork 9
/
StateNonFungibleLocationRequest.swift
48 lines (38 loc) · 1.55 KB
/
StateNonFungibleLocationRequest.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
//
// StateNonFungibleLocationRequest.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
#if canImport(AnyCodable)
import AnyCodable
#endif
@available(*, deprecated, renamed: "GatewayAPI.StateNonFungibleLocationRequest")
public typealias StateNonFungibleLocationRequest = GatewayAPI.StateNonFungibleLocationRequest
extension GatewayAPI {
public struct StateNonFungibleLocationRequest: Codable, Hashable {
public private(set) var atLedgerState: LedgerStateSelector?
/** Bech32m-encoded human readable version of the address. */
public private(set) var resourceAddress: String
/** limited to max 100 items. */
public private(set) var nonFungibleIds: [String]
public init(atLedgerState: LedgerStateSelector? = nil, resourceAddress: String, nonFungibleIds: [String]) {
self.atLedgerState = atLedgerState
self.resourceAddress = resourceAddress
self.nonFungibleIds = nonFungibleIds
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case atLedgerState = "at_ledger_state"
case resourceAddress = "resource_address"
case nonFungibleIds = "non_fungible_ids"
}
// Encodable protocol methods
public func encode(to encoder: Encoder) throws {
var container = encoder.container(keyedBy: CodingKeys.self)
try container.encodeIfPresent(atLedgerState, forKey: .atLedgerState)
try container.encode(resourceAddress, forKey: .resourceAddress)
try container.encode(nonFungibleIds, forKey: .nonFungibleIds)
}
}
}