mirror of
https://github.com/k0shk0sh/FastHub.git
synced 2026-01-25 14:47:05 +00:00
Rename KParcelable to KotlinParcelable
This commit is contained in:
parent
3b2aa6d634
commit
d648cb901d
@ -1,7 +1,7 @@
|
||||
package com.fastaccess.data.dao
|
||||
|
||||
import android.os.Parcel
|
||||
import com.fastaccess.helper.KParcelable
|
||||
import com.fastaccess.helper.KotlinParcelable
|
||||
import com.fastaccess.helper.parcelableCreator
|
||||
import com.fastaccess.helper.readBoolean
|
||||
import com.fastaccess.helper.writeBoolean
|
||||
@ -16,7 +16,7 @@ data class EditRepoFileModel(val login: String,
|
||||
val sha: String?,
|
||||
val contentUrl: String?,
|
||||
val fileName: String?,
|
||||
val isEdit: Boolean) : KParcelable {
|
||||
val isEdit: Boolean) : KotlinParcelable {
|
||||
constructor(parcel: Parcel) : this(
|
||||
parcel.readString(),
|
||||
parcel.readString(),
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
package com.fastaccess.data.dao
|
||||
|
||||
import android.os.Parcel
|
||||
import com.fastaccess.helper.KParcelable
|
||||
import com.fastaccess.helper.KotlinParcelable
|
||||
import com.fastaccess.helper.parcelableCreator
|
||||
|
||||
data class TrendingModel(
|
||||
@ -10,7 +10,7 @@ data class TrendingModel(
|
||||
val language: String? = null,
|
||||
val stars: String? = null,
|
||||
val forks: String? = null,
|
||||
val todayStars: String? = null) : KParcelable {
|
||||
val todayStars: String? = null) : KotlinParcelable {
|
||||
companion object {
|
||||
@JvmField val CREATOR = parcelableCreator(::TrendingModel)
|
||||
}
|
||||
|
||||
@ -1,14 +1,14 @@
|
||||
package com.fastaccess.data.dao.wiki
|
||||
|
||||
import android.os.Parcel
|
||||
import com.fastaccess.helper.KParcelable
|
||||
import com.fastaccess.helper.KotlinParcelable
|
||||
import com.fastaccess.helper.parcelableCreator
|
||||
|
||||
/**
|
||||
* Created by Kosh on 13 Jun 2017, 8:06 PM
|
||||
*/
|
||||
data class WikiContentModel(val content: String? = null, private val footer: String? = null,
|
||||
val sidebar: ArrayList<WikiSideBarModel>) : KParcelable {
|
||||
val sidebar: ArrayList<WikiSideBarModel>) : KotlinParcelable {
|
||||
companion object {
|
||||
@JvmField val CREATOR = parcelableCreator(::WikiContentModel)
|
||||
}
|
||||
|
||||
@ -1,13 +1,13 @@
|
||||
package com.fastaccess.data.dao.wiki
|
||||
|
||||
import android.os.Parcel
|
||||
import com.fastaccess.helper.KParcelable
|
||||
import com.fastaccess.helper.KotlinParcelable
|
||||
import com.fastaccess.helper.parcelableCreator
|
||||
|
||||
/**
|
||||
* Created by Kosh on 13 Jun 2017, 8:03 PM
|
||||
*/
|
||||
data class WikiSideBarModel(val title: String? = null, val link: String? = null) : KParcelable {
|
||||
data class WikiSideBarModel(val title: String? = null, val link: String? = null) : KotlinParcelable {
|
||||
companion object {
|
||||
@JvmField val CREATOR = parcelableCreator(::WikiSideBarModel)
|
||||
}
|
||||
|
||||
@ -3,7 +3,7 @@ package com.fastaccess.helper
|
||||
import android.os.Parcel
|
||||
import android.os.Parcelable
|
||||
|
||||
interface KParcelable : Parcelable {
|
||||
interface KotlinParcelable : Parcelable {
|
||||
override fun describeContents() = 0
|
||||
override fun writeToParcel(dest: Parcel, flags: Int)
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user