Common: add @Keep-Annotations to Streaming Entities

This commit is contained in:
Felix 2019-04-25 19:52:27 +02:00
parent e4f0cf9bcf
commit 9e66eb50e7
6 changed files with 23 additions and 13 deletions

View file

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

View file

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

View file

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

View file

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

View file

@ -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 = "",

View file

@ -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 = "",