aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java/moe/yuuta/workmode/access/DumpResult.kt
diff options
context:
space:
mode:
authorYuutaW <17158086+trumeet@users.noreply.github.com>2019-03-30 16:19:07 -0700
committerYuutaW <17158086+Trumeet@users.noreply.github.com>2019-03-30 16:19:07 -0700
commit06fbdcac173aea88cb4d02c4806866c83e720307 (patch)
treedce2416bfd2d991c23cf79e7820c2cbadc1d59fb /app/src/main/java/moe/yuuta/workmode/access/DumpResult.kt
parentb0d7fdf0cb31c54d47dcfbc5b39190ee39890bfa (diff)
downloadWorkMode-06fbdcac173aea88cb4d02c4806866c83e720307.tar
WorkMode-06fbdcac173aea88cb4d02c4806866c83e720307.tar.gz
WorkMode-06fbdcac173aea88cb4d02c4806866c83e720307.tar.bz2
WorkMode-06fbdcac173aea88cb4d02c4806866c83e720307.zip
feat(app/ci): implement multi user support
Signed-off-by: YuutaW <17158086+Trumeet@users.noreply.github.com>
Diffstat (limited to 'app/src/main/java/moe/yuuta/workmode/access/DumpResult.kt')
-rw-r--r--app/src/main/java/moe/yuuta/workmode/access/DumpResult.kt29
1 files changed, 27 insertions, 2 deletions
diff --git a/app/src/main/java/moe/yuuta/workmode/access/DumpResult.kt b/app/src/main/java/moe/yuuta/workmode/access/DumpResult.kt
index d4a9d79..e544e7d 100644
--- a/app/src/main/java/moe/yuuta/workmode/access/DumpResult.kt
+++ b/app/src/main/java/moe/yuuta/workmode/access/DumpResult.kt
@@ -1,7 +1,32 @@
package moe.yuuta.workmode.access
import android.os.Bundle
+import android.os.Parcel
+import android.os.Parcelable
data class DumpResult(val isSuspended: Boolean,
- val appExtras: Bundle?,
- val launcherExtras: Bundle?) \ No newline at end of file
+ val launcherExtras: Bundle?) : Parcelable {
+ constructor(parcel: Parcel) : this(
+ parcel.readByte() != 0.toByte(),
+ parcel.readBundle(Bundle::class.java.classLoader)
+ )
+
+ override fun writeToParcel(parcel: Parcel, flags: Int) {
+ parcel.writeByte(if (isSuspended) 1 else 0)
+ parcel.writeBundle(launcherExtras)
+ }
+
+ override fun describeContents(): Int {
+ return 0
+ }
+
+ companion object CREATOR : Parcelable.Creator<DumpResult> {
+ override fun createFromParcel(parcel: Parcel): DumpResult {
+ return DumpResult(parcel)
+ }
+
+ override fun newArray(size: Int): Array<DumpResult?> {
+ return arrayOfNulls(size)
+ }
+ }
+} \ No newline at end of file