summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2022-10-21 13:29:47 +0200
committerAndrej Mihajlov <and@mullvad.net>2022-10-21 15:53:34 +0200
commit27931a896166b4102d7fca69846268c738a88149 (patch)
treec187957c41d49098f6acbf927feb0a11bcd88e36
parent576f57925d32249391620cb8c5f1a2966dff2bb5 (diff)
downloadmullvadvpn-27931a896166b4102d7fca69846268c738a88149.tar.xz
mullvadvpn-27931a896166b4102d7fca69846268c738a88149.zip
REST: clean up access levels
-rw-r--r--ios/MullvadREST/RESTAPIProxy.swift12
-rw-r--r--ios/MullvadREST/RESTAuthenticationProxy.swift4
2 files changed, 8 insertions, 8 deletions
diff --git a/ios/MullvadREST/RESTAPIProxy.swift b/ios/MullvadREST/RESTAPIProxy.swift
index f9462dfbf7..2cf3ee4c86 100644
--- a/ios/MullvadREST/RESTAPIProxy.swift
+++ b/ios/MullvadREST/RESTAPIProxy.swift
@@ -216,7 +216,7 @@ extension REST {
case newContent(_ etag: String?, _ value: ServerRelaysResponse)
}
- fileprivate struct CreateApplePaymentRequest: Encodable {
+ private struct CreateApplePaymentRequest: Encodable {
let receiptString: Data
}
@@ -250,16 +250,16 @@ extension REST {
}
}
- fileprivate struct CreateApplePaymentRawResponse: Decodable {
+ private struct CreateApplePaymentRawResponse: Decodable {
let timeAdded: Int
let newExpiry: Date
}
public struct ProblemReportRequest: Encodable {
- let address: String
- let message: String
- let log: String
- let metadata: [String: String]
+ public let address: String
+ public let message: String
+ public let log: String
+ public let metadata: [String: String]
public init(address: String, message: String, log: String, metadata: [String: String]) {
self.address = address
diff --git a/ios/MullvadREST/RESTAuthenticationProxy.swift b/ios/MullvadREST/RESTAuthenticationProxy.swift
index cbf6d835f3..fb899aa2c1 100644
--- a/ios/MullvadREST/RESTAuthenticationProxy.swift
+++ b/ios/MullvadREST/RESTAuthenticationProxy.swift
@@ -57,12 +57,12 @@ extension REST {
}
}
- public struct AccessTokenData: Decodable {
+ struct AccessTokenData: Decodable {
let accessToken: String
let expiry: Date
}
- fileprivate struct AccessTokenRequest: Encodable {
+ private struct AccessTokenRequest: Encodable {
let accountNumber: String
}
}