Update: 2026-05-15 22:43:32
This commit is contained in:
@@ -7,7 +7,10 @@ import retrofit2.http.POST
|
||||
import okhttp3.Interceptor
|
||||
import okhttp3.OkHttpClient
|
||||
|
||||
import androidx.annotation.Keep
|
||||
|
||||
// Data models for the API
|
||||
@Keep
|
||||
data class RideLogRequest(
|
||||
val platform: String,
|
||||
val price: Double,
|
||||
@@ -23,6 +26,7 @@ data class RideLogRequest(
|
||||
val longitude: Double? = null
|
||||
)
|
||||
|
||||
@Keep
|
||||
data class LocationPoint(
|
||||
val latitude: Double,
|
||||
val longitude: Double,
|
||||
@@ -30,17 +34,22 @@ data class LocationPoint(
|
||||
val timestamp: Long
|
||||
)
|
||||
|
||||
@Keep
|
||||
data class BulkLocationRequest(
|
||||
val fingerprint: String,
|
||||
val locations: List<LocationPoint>
|
||||
)
|
||||
|
||||
@Keep
|
||||
data class ApiResponse(
|
||||
val success: Boolean,
|
||||
val message: String
|
||||
)
|
||||
|
||||
@Keep
|
||||
data class CheckSubscriptionRequest(val fingerprint: String)
|
||||
|
||||
@Keep
|
||||
data class CheckSubscriptionResponse(
|
||||
val success: Boolean,
|
||||
val plan: String?,
|
||||
@@ -50,12 +59,14 @@ data class CheckSubscriptionResponse(
|
||||
val can_accept: Boolean?
|
||||
)
|
||||
|
||||
@Keep
|
||||
data class ActivateSubscriptionRequest(
|
||||
val fingerprint: String,
|
||||
val plan: String,
|
||||
val payment_ref: String?
|
||||
)
|
||||
|
||||
@Keep
|
||||
data class ActivateSubscriptionResponse(
|
||||
val success: Boolean,
|
||||
val message: String?,
|
||||
|
||||
Reference in New Issue
Block a user