-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9b1696c
commit f137373
Showing
28 changed files
with
2,160 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
module/src/main/java/com/heyongrui/module/data/dto/QDailyArticleDto.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
package com.heyongrui.module.data.dto | ||
|
||
import android.os.Parcel | ||
import android.os.Parcelable | ||
import java.io.Serializable | ||
|
||
data class QDailyArticleDto( | ||
val feeds: List<Feed>, | ||
val has_more: Boolean, | ||
val last_key: String | ||
) : Parcelable, Serializable { | ||
constructor(parcel: Parcel) : this( | ||
parcel.createTypedArrayList(Feed), | ||
parcel.readByte() != 0.toByte(), | ||
parcel.readString()) { | ||
} | ||
|
||
override fun writeToParcel(parcel: Parcel, flags: Int) { | ||
parcel.writeTypedList(feeds) | ||
parcel.writeByte(if (has_more) 1 else 0) | ||
parcel.writeString(last_key) | ||
} | ||
|
||
override fun describeContents(): Int { | ||
return 0 | ||
} | ||
|
||
companion object CREATOR : Parcelable.Creator<QDailyArticleDto> { | ||
private const val serialVersionUID = 5928979654148925074L | ||
|
||
override fun createFromParcel(parcel: Parcel): QDailyArticleDto { | ||
return QDailyArticleDto(parcel) | ||
} | ||
|
||
override fun newArray(size: Int): Array<QDailyArticleDto?> { | ||
return arrayOfNulls(size) | ||
} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
module/src/main/java/com/heyongrui/module/data/dto/QDailyColumnDto.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
package com.heyongrui.module.data.dto | ||
|
||
import android.os.Parcel | ||
import android.os.Parcelable | ||
import java.io.Serializable | ||
|
||
data class QDailyColumnDto( | ||
var columns: List<Column>, | ||
// var columns_ad: List<Any>, | ||
var has_more: Boolean, | ||
var last_key: String | ||
) : Parcelable, Serializable { | ||
constructor(parcel: Parcel) : this( | ||
parcel.createTypedArrayList(Column), | ||
parcel.readByte() != 0.toByte(), | ||
parcel.readString()) { | ||
} | ||
|
||
override fun writeToParcel(parcel: Parcel, flags: Int) { | ||
parcel.writeTypedList(columns) | ||
parcel.writeByte(if (has_more) 1 else 0) | ||
parcel.writeString(last_key) | ||
} | ||
|
||
override fun describeContents(): Int { | ||
return 0 | ||
} | ||
|
||
companion object CREATOR : Parcelable.Creator<QDailyColumnDto> { | ||
private const val serialVersionUID = 592852979308925424L | ||
|
||
override fun createFromParcel(parcel: Parcel): QDailyColumnDto { | ||
return QDailyColumnDto(parcel) | ||
} | ||
|
||
override fun newArray(size: Int): Array<QDailyColumnDto?> { | ||
return arrayOfNulls(size) | ||
} | ||
} | ||
} |
Oops, something went wrong.