Initial commit
This commit is contained in:
commit
6072b2ba29
844 changed files with 220532 additions and 0 deletions
25
app/src/main/java/com/aryan/reader/data/PurchaseEntities.kt
Normal file
25
app/src/main/java/com/aryan/reader/data/PurchaseEntities.kt
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
package com.aryan.reader.data
|
||||
|
||||
/**
|
||||
* Agnostic representation of a purchase to decouple MainViewModel from Billing Library.
|
||||
*/
|
||||
data class PurchaseEntity(
|
||||
val orderId: String?,
|
||||
val products: List<String>,
|
||||
val purchaseToken: String,
|
||||
val purchaseTime: Long,
|
||||
val isAcknowledged: Boolean,
|
||||
val isAutoRenewing: Boolean
|
||||
)
|
||||
|
||||
/**
|
||||
* Agnostic representation of product details.
|
||||
*/
|
||||
data class ProductDetailsEntity(
|
||||
val productId: String,
|
||||
val name: String,
|
||||
val description: String,
|
||||
val formattedPrice: String,
|
||||
val currencyCode: String,
|
||||
val priceAmountMicros: Long
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue