2017-11-20 00:40:02 +01:00
|
|
|
//
|
|
|
|
// TodayFeedDelegate.swift
|
2018-08-29 07:18:24 +02:00
|
|
|
// NetNewsWire
|
2017-11-20 00:40:02 +01:00
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 11/19/17.
|
|
|
|
// Copyright © 2017 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
2019-09-18 03:26:49 +02:00
|
|
|
import RSCore
|
2018-07-24 03:29:08 +02:00
|
|
|
import Articles
|
2017-11-20 00:40:02 +01:00
|
|
|
import Account
|
|
|
|
|
|
|
|
struct TodayFeedDelegate: SmartFeedDelegate {
|
|
|
|
|
|
|
|
let nameForDisplay = NSLocalizedString("Today", comment: "Today pseudo-feed title")
|
2019-07-06 05:06:31 +02:00
|
|
|
let fetchType = FetchType.today
|
2019-09-18 03:26:49 +02:00
|
|
|
var smallIcon: RSImage? = AppAssets.todayFeedImage
|
|
|
|
|
2017-11-20 00:40:02 +01:00
|
|
|
func fetchUnreadCount(for account: Account, callback: @escaping (Int) -> Void) {
|
|
|
|
account.fetchUnreadCountForToday(callback)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|