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