mirror of https://github.com/oxen-io/session-ios
				
				
				
			
			You cannot select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
	
	
		
			32 lines
		
	
	
		
			873 B
		
	
	
	
		
			Swift
		
	
			
		
		
	
	
			32 lines
		
	
	
		
			873 B
		
	
	
	
		
			Swift
		
	
| // Copyright © 2022 Rangeproof Pty Ltd. All rights reserved.
 | |
| 
 | |
| import Foundation
 | |
| 
 | |
| extension SnodeAPI {
 | |
|     public struct GetServiceNodesRequest: Encodable {
 | |
|         enum CodingKeys: String, CodingKey {
 | |
|             case activeOnly = "active_only"
 | |
|             case limit
 | |
|             case fields
 | |
|         }
 | |
|         
 | |
|         let activeOnly: Bool
 | |
|         let limit: Int?
 | |
|         let fields: Fields
 | |
|         
 | |
|         public struct Fields: Encodable {
 | |
|             enum CodingKeys: String, CodingKey {
 | |
|                 case publicIp = "public_ip"
 | |
|                 case storagePort = "storage_port"
 | |
|                 case pubkeyEd25519 = "pubkey_ed25519"
 | |
|                 case pubkeyX25519 = "pubkey_x25519"
 | |
|             }
 | |
|             
 | |
|             let publicIp: Bool
 | |
|             let storagePort: Bool
 | |
|             let pubkeyEd25519: Bool
 | |
|             let pubkeyX25519: Bool
 | |
|         }
 | |
|     }
 | |
| }
 |