Skip to content

Commit

Permalink
fix: correct wrong property name
Browse files Browse the repository at this point in the history
  • Loading branch information
mytlogos committed Feb 23, 2022
1 parent 58baf05 commit f0cd8b9
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class RoomConverter @JvmOverloads constructor(private val loadedData: LoadData =
release.title,
release.url,
release.releaseDate,
release.isLocked
release.locked
)
}

Expand All @@ -204,7 +204,7 @@ class RoomConverter @JvmOverloads constructor(private val loadedData: LoadData =
release.title,
release.url,
release.releaseDate,
release.isLocked
release.locked
)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,21 @@ import org.joda.time.DateTime
/**
* API Model for EpisodeRelease.
*/
class ClientEpisodeRelease(val episodeId: Int, val tocId: Int, val title: String, val url: String, val isLocked: Boolean, val releaseDate: DateTime) {
class ClientEpisodeRelease(
val episodeId: Int,
val tocId: Int,
val title: String,
val url: String,
val locked: Boolean,
val releaseDate: DateTime,
) {

override fun toString(): String {
return "ClientRelease{" +
"id=" + episodeId +
", title='" + title + '\'' +
", url='" + url + '\'' +
", locked='" + isLocked + '\'' +
", locked='" + locked + '\'' +
", releaseDate=" + releaseDate +
", tocId=" + tocId +
'}'
Expand All @@ -23,7 +30,7 @@ class ClientEpisodeRelease(val episodeId: Int, val tocId: Int, val title: String
if (o == null || javaClass != o.javaClass) return false
val that = o as ClientEpisodeRelease
if (episodeId != that.episodeId) return false
if (isLocked != that.isLocked) return false
if (locked != that.locked) return false
if (title != that.title) return false
if (url != that.url) return false
return releaseDate == that.releaseDate
Expand All @@ -33,7 +40,7 @@ class ClientEpisodeRelease(val episodeId: Int, val tocId: Int, val title: String
var result = episodeId
result = 31 * result + title.hashCode()
result = 31 * result + url.hashCode()
result = 31 * result + if (isLocked) 1 else 0
result = 31 * result + if (locked) 1 else 0
result = 31 * result + releaseDate.hashCode()
return result
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,6 @@ data class ClientRelease(
val episodeId: Int,
val title: String,
val url: String,
val isLocked: Boolean,
val locked: Boolean,
val releaseDate: DateTime
)

0 comments on commit f0cd8b9

Please sign in to comment.