|
|
|
@ -14,12 +14,6 @@ class MangaPage(
|
|
|
|
* @see MangaParser.getPageUrl
|
|
|
|
* @see MangaParser.getPageUrl
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
val url: String,
|
|
|
|
val url: String,
|
|
|
|
/**
|
|
|
|
|
|
|
|
* Absolute link to the chapter or website home page.
|
|
|
|
|
|
|
|
* Used in Referer header
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
@Deprecated("Referer header should be added based on source domain")
|
|
|
|
|
|
|
|
val referer: String,
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|
* Absolute url of the small page image if exists, null otherwise
|
|
|
|
* Absolute url of the small page image if exists, null otherwise
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
@ -35,7 +29,6 @@ class MangaPage(
|
|
|
|
|
|
|
|
|
|
|
|
if (id != other.id) return false
|
|
|
|
if (id != other.id) return false
|
|
|
|
if (url != other.url) return false
|
|
|
|
if (url != other.url) return false
|
|
|
|
if (referer != other.referer) return false
|
|
|
|
|
|
|
|
if (preview != other.preview) return false
|
|
|
|
if (preview != other.preview) return false
|
|
|
|
return source == other.source
|
|
|
|
return source == other.source
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@ -43,9 +36,12 @@ class MangaPage(
|
|
|
|
override fun hashCode(): Int {
|
|
|
|
override fun hashCode(): Int {
|
|
|
|
var result = id.hashCode()
|
|
|
|
var result = id.hashCode()
|
|
|
|
result = 31 * result + url.hashCode()
|
|
|
|
result = 31 * result + url.hashCode()
|
|
|
|
result = 31 * result + referer.hashCode()
|
|
|
|
|
|
|
|
result = 31 * result + (preview?.hashCode() ?: 0)
|
|
|
|
result = 31 * result + (preview?.hashCode() ?: 0)
|
|
|
|
result = 31 * result + source.hashCode()
|
|
|
|
result = 31 * result + source.hashCode()
|
|
|
|
return result
|
|
|
|
return result
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
override fun toString(): String {
|
|
|
|
|
|
|
|
return "MangaPage($id [$url] - $source)"
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|