add ingnore unknown properties to stream entities

This commit is contained in:
Felix 2017-12-27 09:43:33 +01:00
parent c45084a44b
commit 9191c6145e
5 changed files with 10 additions and 5 deletions

View file

@ -1,10 +1,11 @@
package de.nicidienase.chaosflix.common.entities.streaming
import android.arch.persistence.room.Entity
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import java.util.ArrayList
@Entity(tableName = "group")
@JsonIgnoreProperties(ignoreUnknown = true)
data class Group(
var group: String,
var rooms: MutableList<Room>){

View file

@ -1,7 +1,9 @@
package de.nicidienase.chaosflix.common.entities.streaming
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import kotlin.collections.ArrayList
@JsonIgnoreProperties(ignoreUnknown = true)
class LiveConference(
var conference: String,
var slug: String,

View file

@ -2,6 +2,7 @@ package de.nicidienase.chaosflix.common.entities.streaming
import android.os.Parcel
import android.os.Parcelable
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import java.util.ArrayList
@ -9,6 +10,7 @@ import java.util.ArrayList
* Created by felix on 23.03.17.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
data class Room (var slug: String,
var schedulename: String,
var thumb: String,

View file

@ -2,13 +2,11 @@ package de.nicidienase.chaosflix.common.entities.streaming
import android.os.Parcel
import android.os.Parcelable
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
import kotlin.collections.HashMap
/**
* Created by felix on 23.03.17.
*/
@JsonIgnoreProperties(ignoreUnknown = true)
data class Stream(
var slug: String,
var display: String,

View file

@ -2,7 +2,9 @@ package de.nicidienase.chaosflix.common.entities.streaming
import android.os.Parcel
import android.os.Parcelable
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
@JsonIgnoreProperties(ignoreUnknown = true)
data class StreamUrl(var display: String,
var tech: String,
var url: String) : Parcelable {