mirror of
https://github.com/NiciDieNase/chaosflix
synced 2024-11-27 06:30:29 +00:00
make some fields in Dto-Classes nullable to be more robust
This commit is contained in:
parent
55e1d18cb0
commit
02f55a0cba
6 changed files with 16 additions and 16 deletions
|
@ -8,12 +8,12 @@ import de.nicidienase.chaosflix.common.util.ConferenceUtil
|
|||
data class ConferenceDto(
|
||||
@SerializedName("acronym") var acronym: String = "",
|
||||
@SerializedName("aspect_ratio") var aspectRatio: String = "",
|
||||
@SerializedName("updated_at") var updatedAt: String = "",
|
||||
@SerializedName("updated_at") var updatedAt: String? = "",
|
||||
@SerializedName("title") var title: String = "",
|
||||
@SerializedName("schedule_url") var scheduleUrl: String?,
|
||||
@SerializedName("slug") var slug: String = "",
|
||||
@SerializedName("event_last_released_at") var lastReleaseAt: String? = "",
|
||||
@SerializedName("webgen_location") var webgenLocation: String = "",
|
||||
@SerializedName("webgen_location") var webgenLocation: String? = "",
|
||||
@SerializedName("logo_url") var logoUrl: String = "",
|
||||
@SerializedName("images_url") var imagesUrl: String = "",
|
||||
@SerializedName("recordings_url") var recordingsUrl: String = "",
|
||||
|
|
|
@ -15,17 +15,17 @@ data class EventDto(
|
|||
var link: String? = "",
|
||||
var description: String?,
|
||||
@SerializedName("original_language")
|
||||
var originalLanguage: String = "",
|
||||
var originalLanguage: String? = "",
|
||||
var persons: Array<String>?,
|
||||
var tags: Array<String>?,
|
||||
var date: String? = "",
|
||||
@SerializedName("release_date")
|
||||
var releaseDate: String = "",
|
||||
var releaseDate: String? = "",
|
||||
@SerializedName("updated_at")
|
||||
var updatedAt: String = "",
|
||||
var updatedAt: String? = "",
|
||||
var length: Long = 0,
|
||||
@SerializedName("thumb_url")
|
||||
var thumbUrl: String = "",
|
||||
var thumbUrl: String? = "",
|
||||
@SerializedName("poster_url")
|
||||
var posterUrl: String = "",
|
||||
@SerializedName("frontend_link")
|
||||
|
|
|
@ -18,14 +18,14 @@ data class RecordingDto(
|
|||
var width: Int = 0,
|
||||
var height: Int = 0,
|
||||
@SerializedName("updated_at")
|
||||
var updatedAt: String = "",
|
||||
var updatedAt: String? = "",
|
||||
@SerializedName("recording_url")
|
||||
var recordingUrl: String = "",
|
||||
var url: String = "",
|
||||
@SerializedName("event_url")
|
||||
var eventUrl: String = "",
|
||||
@SerializedName("conference_url")
|
||||
var conferenceUrl: String = ""
|
||||
var conferenceUrl: String? = ""
|
||||
) {
|
||||
val recordingID: Long
|
||||
get() {
|
||||
|
|
|
@ -54,13 +54,13 @@ data class Conference(
|
|||
aspectRatio = con.aspectRatio,
|
||||
title = con.title,
|
||||
slug = con.slug,
|
||||
webgenLocation = con.webgenLocation,
|
||||
webgenLocation = con.webgenLocation ?: "",
|
||||
scheduleUrl = con.scheduleUrl,
|
||||
logoUrl = con.logoUrl,
|
||||
imagesUrl = con.imagesUrl,
|
||||
recordingsUrl = con.recordingsUrl,
|
||||
url = con.url,
|
||||
updatedAt = con.updatedAt,
|
||||
updatedAt = con.updatedAt ?: "",
|
||||
tagsUsefull = con.tagsUsefull,
|
||||
lastReleasedAt = con.lastReleaseAt ?: "")
|
||||
|
||||
|
|
|
@ -94,12 +94,12 @@ data class Event(
|
|||
slug = event.slug,
|
||||
link = event.link,
|
||||
description = event.description,
|
||||
originalLanguage = event.originalLanguage,
|
||||
originalLanguage = event.originalLanguage ?: "",
|
||||
date = event.date,
|
||||
releaseDate = event.releaseDate,
|
||||
updatedAt = event.updatedAt,
|
||||
releaseDate = event.releaseDate ?: "",
|
||||
updatedAt = event.updatedAt ?: "",
|
||||
length = event.length,
|
||||
thumbUrl = event.thumbUrl,
|
||||
thumbUrl = event.thumbUrl ?: "",
|
||||
frontendLink = event.frontendLink,
|
||||
url = event.url,
|
||||
conferenceUrl = event.conferenceUrl,
|
||||
|
|
|
@ -76,11 +76,11 @@ data class Recording(
|
|||
isHighQuality = rec.isHighQuality,
|
||||
width = rec.width,
|
||||
height = rec.height,
|
||||
updatedAt = rec.updatedAt,
|
||||
updatedAt = rec.updatedAt ?: "",
|
||||
recordingUrl = rec.recordingUrl,
|
||||
url = rec.url,
|
||||
eventUrl = rec.eventUrl,
|
||||
conferenceUrl = rec.conferenceUrl,
|
||||
conferenceUrl = rec.conferenceUrl ?: "",
|
||||
backendId = rec.recordingID)
|
||||
|
||||
override fun writeToParcel(parcel: Parcel, flags: Int) {
|
||||
|
|
Loading…
Reference in a new issue