This commit is contained in:
@@ -96,24 +96,6 @@ class SelfossModel {
|
||||
params = null
|
||||
)
|
||||
|
||||
fun update(sourceStat: SourceStats) {
|
||||
if (this.id != sourceStat.id || this.title != sourceStat.title) {
|
||||
throw Exception()
|
||||
}
|
||||
this.unread = sourceStat.unread
|
||||
}
|
||||
|
||||
fun update(sourceDetail: SourceDetail) {
|
||||
if (this.id != sourceDetail.id || this.title != sourceDetail.title) {
|
||||
throw Exception()
|
||||
}
|
||||
this.tags = sourceDetail.tags
|
||||
this.spout = sourceDetail.spout
|
||||
this.error = sourceDetail.error
|
||||
this.icon = sourceDetail.icon
|
||||
this.params = sourceDetail.params
|
||||
}
|
||||
|
||||
fun update(source: Source) {
|
||||
if (this.id != source.id || this.title != source.title) {
|
||||
throw Exception()
|
||||
|
Reference in New Issue
Block a user