upstream changes
upstream changes
This commit is contained in:
@@ -18,7 +18,7 @@ data class UpdateItem(
|
||||
val originalName: String,
|
||||
val fileSize: Int,
|
||||
val preRelease: Int,
|
||||
val downloadLink: String
|
||||
val downloadLink: String,
|
||||
) : Parcelable {
|
||||
|
||||
fun isMandatory(): Boolean = mandatory == 1
|
||||
@@ -29,7 +29,25 @@ data class UpdateItem(
|
||||
return Gson().toJson(this)
|
||||
}
|
||||
|
||||
companion object {
|
||||
val EMPTY = UpdateItem(
|
||||
id = 0,
|
||||
versionName = "1.0.0",
|
||||
versionCode = 2,
|
||||
mandatory = 1,
|
||||
changelog = "Some kind of simple changelog",
|
||||
enabled = 1,
|
||||
fileName = "bruhmeme.apk",
|
||||
date = System.currentTimeMillis(),
|
||||
extension = "",
|
||||
originalName = "",
|
||||
fileSize = 0,
|
||||
preRelease = 0,
|
||||
downloadLink = "https://c4.kemono.party/data/98/8c/988cf166f1ee9cd318e2407e6bfbabf60bffa53ed229ea0b2434009f1598e039.png?f=JessieGym002b4pt.png"
|
||||
)
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Parcelize
|
||||
data class UpdateActualUrl(val url: String) : Parcelable
|
||||
data class UpdateActualUrl(val url: String) : Parcelable
|
||||
|
||||
Reference in New Issue
Block a user