-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f0064d0
commit 841c0c6
Showing
6 changed files
with
54 additions
and
0 deletions.
There are no files selected for viewing
6 changes: 6 additions & 0 deletions
6
android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/PlayPurchase.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
package net.mullvad.mullvadvpn.model | ||
|
||
import android.os.Parcelable | ||
import kotlinx.parcelize.Parcelize | ||
|
||
@Parcelize data class PlayPurchase(val productId: String, val purchaseToken: String) : Parcelable |
10 changes: 10 additions & 0 deletions
10
android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/PlayPurchaseInitError.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package net.mullvad.mullvadvpn.model | ||
|
||
import android.os.Parcelable | ||
import kotlinx.parcelize.Parcelize | ||
|
||
@Parcelize | ||
enum class PlayPurchaseInitError : Parcelable { | ||
// TODO: Add more errors here. | ||
OtherError | ||
} |
12 changes: 12 additions & 0 deletions
12
android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/PlayPurchaseInitResult.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package net.mullvad.mullvadvpn.model | ||
|
||
import android.os.Parcelable | ||
import kotlinx.parcelize.Parcelize | ||
|
||
sealed class PlayPurchaseInitResult : Parcelable { | ||
@Parcelize data class Ok(val transactionId: String) : PlayPurchaseInitResult() | ||
|
||
@Parcelize | ||
data class Error(val error: PlayPurchaseInitError) : | ||
PlayPurchaseInitResult() | ||
} |
10 changes: 10 additions & 0 deletions
10
android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/PlayPurchaseVerifyError.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package net.mullvad.mullvadvpn.model | ||
|
||
import android.os.Parcelable | ||
import kotlinx.parcelize.Parcelize | ||
|
||
@Parcelize | ||
enum class PlayPurchaseVerifyError : Parcelable { | ||
// TODO: Add more errors here. | ||
OtherError | ||
} |
11 changes: 11 additions & 0 deletions
11
android/lib/model/src/main/kotlin/net/mullvad/mullvadvpn/model/PlayPurchaseVerifyResult.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
package net.mullvad.mullvadvpn.model | ||
|
||
import android.os.Parcelable | ||
import kotlinx.parcelize.Parcelize | ||
|
||
sealed class PlayPurchaseVerifyResult : Parcelable { | ||
@Parcelize data object Ok : PlayPurchaseVerifyResult() | ||
|
||
@Parcelize | ||
data class Error(val error: PlayPurchaseVerifyError) : PlayPurchaseVerifyResult() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters