Per-stream visibility: isPublic field, Room migration 6→7, publish toggle in CreatePlan

This commit is contained in:
2026-03-03 21:37:20 +01:00
parent ec1b84994b
commit b235eabd40
9 changed files with 57 additions and 6 deletions

View File

@@ -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