mirror of
https://github.com/NiciDieNase/chaosflix
synced 2024-11-23 04:43:07 +00:00
Common: add @Keep-Annotations to Streaming Entities
This commit is contained in:
parent
e4f0cf9bcf
commit
9e66eb50e7
6 changed files with 23 additions and 13 deletions
|
@ -1,22 +1,22 @@
|
|||
package de.nicidienase.chaosflix.common.mediadata.entities.streaming
|
||||
|
||||
import android.arch.persistence.room.Entity
|
||||
import android.support.annotation.Keep
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
import java.util.*
|
||||
|
||||
import java.util.ArrayList
|
||||
|
||||
@Keep
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class Group(
|
||||
var group: String,
|
||||
var rooms: MutableList<Room>){
|
||||
var group: String,
|
||||
var rooms: MutableList<Room>) {
|
||||
|
||||
|
||||
companion object {
|
||||
val dummyObject: Group
|
||||
get() {
|
||||
val dummy = Group("Dummy Group", ArrayList<Room>())
|
||||
dummy.rooms.add(Room.dummyObject)
|
||||
return dummy
|
||||
}
|
||||
}
|
||||
companion object {
|
||||
val dummyObject: Group
|
||||
get() {
|
||||
val dummy = Group("Dummy Group", ArrayList<Room>())
|
||||
dummy.rooms.add(Room.dummyObject)
|
||||
return dummy
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,10 @@
|
|||
package de.nicidienase.chaosflix.common.mediadata.entities.streaming
|
||||
|
||||
import android.support.annotation.Keep
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
import kotlin.collections.ArrayList
|
||||
|
||||
@Keep
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
class LiveConference(
|
||||
var conference: String,
|
||||
|
|
|
@ -2,10 +2,12 @@ package de.nicidienase.chaosflix.common.mediadata.entities.streaming
|
|||
|
||||
import android.os.Parcel
|
||||
import android.os.Parcelable
|
||||
import android.support.annotation.Keep
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
import java.util.*
|
||||
import kotlin.collections.HashMap
|
||||
|
||||
@Keep
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class Room(var slug: String,
|
||||
var schedulename: String,
|
||||
|
|
|
@ -2,11 +2,13 @@ package de.nicidienase.chaosflix.common.mediadata.entities.streaming
|
|||
|
||||
import android.os.Parcel
|
||||
import android.os.Parcelable
|
||||
import android.support.annotation.Keep
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
import okhttp3.internal.connection.StreamAllocation
|
||||
|
||||
import kotlin.collections.HashMap
|
||||
|
||||
@Keep
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class Stream(
|
||||
var slug: String,
|
||||
|
|
|
@ -2,9 +2,11 @@ package de.nicidienase.chaosflix.common.mediadata.entities.streaming
|
|||
|
||||
import android.os.Parcel
|
||||
import android.os.Parcelable
|
||||
import android.support.annotation.Keep
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
import com.google.gson.annotations.SerializedName
|
||||
|
||||
@Keep
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class StreamEvent(var title: String = "",
|
||||
var speaker: String = "",
|
||||
|
|
|
@ -2,8 +2,10 @@ package de.nicidienase.chaosflix.common.mediadata.entities.streaming
|
|||
|
||||
import android.os.Parcel
|
||||
import android.os.Parcelable
|
||||
import android.support.annotation.Keep
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
|
||||
@Keep
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class StreamUrl(var display: String = "",
|
||||
var tech: String = "",
|
||||
|
|
Loading…
Reference in a new issue