-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PIA-1845: Add Dedicated IP native endpoint #45
PIA-1845: Add Dedicated IP native endpoint #45
Conversation
8d210f3
to
e54ef61
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job , Said!
I just posted a question about one of the use cases, but they PR looks very good 👍
} | ||
|
||
extension SignupInformationDataCoverter: JSONToStringCoverterType {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍
} | ||
|
||
private func makeConfiguration(dipTokens: [String]) -> RenewDedicatedIPRequestConfiguration { | ||
var configuration = RenewDedicatedIPRequestConfiguration() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a question: if this is the GetDedicatedIPsUseCase
, why do we execute the request with the RenewDedicatedIPRequestConfiguration
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch! Will update it. Thank you!
@@ -32,7 +32,7 @@ extension Client { | |||
public var accountProvider: AccountProvider = AccountFactory.makeDefaultAccountProvider() | |||
|
|||
/// Provides methods for handling the available VPN servers. | |||
public var serverProvider: ServerProvider = DefaultServerProvider() | |||
public var serverProvider: ServerProvider = ServerProviderFactory.makeDefaultServerProvider() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very cool!
5c65b83
to
b0ff627
Compare
b0ff627
to
574f6b4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great job @kp-said-rehouni! 🚀
Summary
This PR migrates the renew dedicated IP and get dedicated ip servers to Swift native.
It also adds unit tests for the use cases.