Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
c1a4c286
Commit
c1a4c286
authored
Apr 22, 2022
by
霍志良
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:MMKV引入
parent
da7d4f2b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
51 additions
and
0 deletions
+51
-0
DynamicDraftBean.kt
m-dynamic/src/main/java/com/yidianling/dynamic/bean/DynamicDraftBean.kt
+51
-0
No files found.
m-dynamic/src/main/java/com/yidianling/dynamic/bean/DynamicDraftBean.kt
0 → 100644
View file @
c1a4c286
package
com.yidianling.dynamic.bean
import
android.os.Parcel
import
android.os.Parcelable
import
com.ydl.ydlcommon.ui.ParcelableImage
class
DynamicDraftBean
(
var
title
:
String
?=
null
,
var
content
:
String
?=
null
,
var
topicid
:
String
?=
null
,
var
topicTitle
:
String
?=
null
,
var
isExpertSeen
:
Boolean
?=
false
,
var
isUserAnonymous
:
Boolean
?=
false
,
var
publishTrendImgs
:
List
<
ParcelableImage
>
?=
null
)
:
Parcelable
{
constructor
(
parcel
:
Parcel
)
:
this
(
parcel
.
readString
(),
parcel
.
readString
(),
parcel
.
readString
(),
parcel
.
readString
(),
parcel
.
readValue
(
Boolean
::
class
.
java
.
classLoader
)
as
?
Boolean
,
parcel
.
readValue
(
Boolean
::
class
.
java
.
classLoader
)
as
?
Boolean
,
parcel
.
createTypedArrayList
(
ParcelableImage
.
CREATOR
)
)
{
}
override
fun
writeToParcel
(
parcel
:
Parcel
,
flags
:
Int
)
{
parcel
.
writeString
(
title
)
parcel
.
writeString
(
content
)
parcel
.
writeString
(
topicid
)
parcel
.
writeString
(
topicTitle
)
parcel
.
writeValue
(
isExpertSeen
)
parcel
.
writeValue
(
isUserAnonymous
)
parcel
.
writeTypedList
(
publishTrendImgs
)
}
override
fun
describeContents
():
Int
{
return
0
}
companion
object
CREATOR
:
Parcelable
.
Creator
<
DynamicDraftBean
>
{
override
fun
createFromParcel
(
parcel
:
Parcel
):
DynamicDraftBean
{
return
DynamicDraftBean
(
parcel
)
}
override
fun
newArray
(
size
:
Int
):
Array
<
DynamicDraftBean
?>
{
return
arrayOfNulls
(
size
)
}
}
}
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment