mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-04-27 23:40:33 +05:30
Jackson IgnoreUnknown
This commit is contained in:
parent
07425b0ac3
commit
0cb0e5b048
@ -11,8 +11,8 @@
|
||||
"type": "SINGLE",
|
||||
"filters": [],
|
||||
"attributes": [],
|
||||
"versionCode": 2,
|
||||
"versionName": "0.2",
|
||||
"versionCode": 3,
|
||||
"versionName": "0.2.1",
|
||||
"outputFile": "app-release.apk"
|
||||
}
|
||||
],
|
||||
|
@ -1,5 +1,8 @@
|
||||
package com.github.libretube.obj
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class PipedStream(
|
||||
var url: String?,
|
||||
var format: String?,
|
||||
|
@ -1,5 +1,8 @@
|
||||
package com.github.libretube.obj
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class Playlist(
|
||||
var name: String? = null,
|
||||
var thumbnailUrl: String? = null,
|
||||
|
@ -1,5 +1,8 @@
|
||||
package com.github.libretube.obj
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class SearchItem(
|
||||
var url: String?,
|
||||
var thumbnail: String?,
|
||||
|
@ -1,7 +1,8 @@
|
||||
package com.github.libretube.obj
|
||||
|
||||
import com.github.libretube.obj.StreamItem
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class SearchResult(
|
||||
val items: List<SearchItem>? = listOf(),
|
||||
val nextpage: String? ="",
|
||||
|
@ -1,5 +1,8 @@
|
||||
package com.github.libretube.obj
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class StreamItem(
|
||||
var url: String?,
|
||||
var title: String?,
|
||||
@ -12,7 +15,7 @@ data class StreamItem(
|
||||
var views: Long?,
|
||||
var uploaderVerified: Boolean?,
|
||||
var uploaded: Long?,
|
||||
var shortDescription: String?
|
||||
|
||||
){
|
||||
constructor() : this("","","","","","","",0,0,null,0,"")
|
||||
constructor() : this("","","","","","","",0,0,null,0)
|
||||
}
|
||||
|
@ -1,7 +1,8 @@
|
||||
package com.github.libretube.obj
|
||||
|
||||
import com.github.libretube.obj.Subtitle
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class Streams(
|
||||
val title: String?,
|
||||
val description: String?,
|
||||
|
@ -1,5 +1,8 @@
|
||||
package com.github.libretube.obj
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class Subscribed(
|
||||
var subscribed: Boolean? = null
|
||||
)
|
||||
|
@ -1,5 +1,8 @@
|
||||
package com.github.libretube.obj
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class Subscription(
|
||||
var url: String? = null,
|
||||
var name: String? = null,
|
||||
|
@ -1,5 +1,8 @@
|
||||
package com.github.libretube.obj
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class Subtitle(
|
||||
val url: String?,
|
||||
val mimeType: String?,
|
||||
|
@ -1,5 +1,8 @@
|
||||
package com.github.libretube.obj
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
data class Token(
|
||||
var token: String? = null,
|
||||
var error: String? = null
|
||||
|
Loading…
x
Reference in New Issue
Block a user