-
Notifications
You must be signed in to change notification settings - Fork 9
/
StateEntitySchemaPageRequest.swift
53 lines (43 loc) · 1.72 KB
/
StateEntitySchemaPageRequest.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
//
// StateEntitySchemaPageRequest.swift
//
// Generated by openapi-generator
// https://openapi-generator.tech
//
import Foundation
#if canImport(AnyCodable)
import AnyCodable
#endif
@available(*, deprecated, renamed: "GatewayAPI.StateEntitySchemaPageRequest")
public typealias StateEntitySchemaPageRequest = GatewayAPI.StateEntitySchemaPageRequest
extension GatewayAPI {
public struct StateEntitySchemaPageRequest: 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 init(atLedgerState: LedgerStateSelector? = nil, cursor: String? = nil, limitPerPage: Int? = nil, address: String) {
self.atLedgerState = atLedgerState
self.cursor = cursor
self.limitPerPage = limitPerPage
self.address = address
}
public enum CodingKeys: String, CodingKey, CaseIterable {
case atLedgerState = "at_ledger_state"
case cursor
case limitPerPage = "limit_per_page"
case address
}
// 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)
}
}
}