-
Notifications
You must be signed in to change notification settings - Fork 9
/
StateEntityFungiblesPageRequest.swift
61 lines (51 loc) · 2.28 KB
/
StateEntityFungiblesPageRequest.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
49
50
51
52
53
54
55
56
57
58
59
60
61
//
// StateEntityFungiblesPageRequest.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
#if canImport(AnyCodable)
import AnyCodable
#endif
@available(*, deprecated, renamed: "GatewayAPI.StateEntityFungiblesPageRequest")
public typealias StateEntityFungiblesPageRequest = GatewayAPI.StateEntityFungiblesPageRequest
extension GatewayAPI {
public struct StateEntityFungiblesPageRequest: Codable, Hashable {
public private(set) var atLedgerState: LedgerStateSelector?
/** This cursor allows forward pagination, by providing the cursor from the previous request. */
public private(set) var cursor: String?
/** The page size requested. */
public private(set) var limitPerPage: Int?
/** Bech32m-encoded human readable version of the address. */
public private(set) var address: String
public private(set) var aggregationLevel: ResourceAggregationLevel?
public private(set) var optIns: StateEntityFungiblesPageRequestOptIns?
public init(atLedgerState: LedgerStateSelector? = nil, cursor: String? = nil, limitPerPage: Int? = nil, address: String, aggregationLevel: ResourceAggregationLevel? = nil, optIns: StateEntityFungiblesPageRequestOptIns? = nil) {
self.atLedgerState = atLedgerState
self.cursor = cursor
self.limitPerPage = limitPerPage
self.address = address
self.aggregationLevel = aggregationLevel
self.optIns = optIns
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case atLedgerState = "at_ledger_state"
case cursor
case limitPerPage = "limit_per_page"
case address
case aggregationLevel = "aggregation_level"
case optIns = "opt_ins"
}
// 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.encodeIfPresent(cursor, forKey: .cursor)
try container.encodeIfPresent(limitPerPage, forKey: .limitPerPage)
try container.encode(address, forKey: .address)
try container.encodeIfPresent(aggregationLevel, forKey: .aggregationLevel)
try container.encodeIfPresent(optIns, forKey: .optIns)
}
}
}