Per-stream visibility: isPublic field, Room migration 6→7, publish toggle in CreatePlan
This commit is contained in:
@@ -10,6 +10,7 @@ data class StreamPlan(
|
||||
val destinations: List<StreamDestination> = emptyList(),
|
||||
val executionMode: String = "IN_GAME",
|
||||
val gameId: String = "",
|
||||
val isPublic: Boolean = true,
|
||||
) : Parcelable {
|
||||
|
||||
constructor(parcel: Parcel) : this(
|
||||
@@ -19,6 +20,7 @@ data class StreamPlan(
|
||||
destinations = parcel.createTypedArrayList(StreamDestination.CREATOR) ?: emptyList(),
|
||||
executionMode = if (parcel.dataAvail() > 0) parcel.readString() ?: "IN_GAME" else "IN_GAME",
|
||||
gameId = if (parcel.dataAvail() > 0) parcel.readString() ?: "" else "",
|
||||
isPublic = if (parcel.dataAvail() > 0) parcel.readInt() == 1 else true,
|
||||
)
|
||||
|
||||
override fun writeToParcel(parcel: Parcel, flags: Int) {
|
||||
@@ -28,6 +30,7 @@ data class StreamPlan(
|
||||
parcel.writeTypedList(destinations)
|
||||
parcel.writeString(executionMode)
|
||||
parcel.writeString(gameId)
|
||||
parcel.writeInt(if (isPublic) 1 else 0)
|
||||
}
|
||||
|
||||
override fun describeContents(): Int = 0
|
||||
|
||||
Reference in New Issue
Block a user