Skip to content
Snippets Groups Projects
Commit cada7d5f authored by Taras's avatar Taras
Browse files

Remove unused models

parent b48222ad
No related branches found
No related tags found
No related merge requests found
package org.futo.circles.subscriptions
import com.android.billingclient.api.BillingClient
sealed class BillingResult<out T> {
data class Success<out T>(val data: T) : BillingResult<T>()
data class Failure(@BillingClient.BillingResponseCode val code: Int) : BillingResult<Nothing>()
object FeatureNotSupported : BillingResult<Nothing>()
object NotConnected : BillingResult<Nothing>()
}
fun <T> BillingResult<T>.unwrap(): T? = (this as? BillingResult.Success)?.data
\ No newline at end of file
package org.futo.circles.subscriptions
import com.android.billingclient.api.ProductDetails
import org.futo.circles.core.list.IdEntity
data class SubscriptionData(
val details: ProductDetails
) : IdEntity<String> {
override val id: String = details.productId
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment