blob: 2fcaabb08aac8f8b88f6d7cbce2a6c865b573c6c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
/*
* Copyright © 2020. Daniel Schaal <daniel@schaal.email>
*
* This file is part of ocreader.
*
* ocreader is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ocreader is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Foobar. If not, see <http://www.gnu.org/licenses/>.
*/
package email.schaal.ocreader.database.model
import android.content.Context
import androidx.annotation.DrawableRes
import io.realm.Realm
interface TreeItem {
fun treeItemId() : Long?
fun treeItemName(context: Context): String
@DrawableRes fun getIcon(): Int
fun getCount(realm: Realm): Int
fun getFeeds(realm: Realm, onlyUnread: Boolean = false): List<Feed>
fun getItems(realm: Realm, onlyUnread: Boolean = false): List<Item>
}
|