2019-09-19 04:56:43 +02:00
|
|
|
//
|
|
|
|
// FeedlyStream.swift
|
|
|
|
// Account
|
|
|
|
//
|
|
|
|
// Created by Kiel Gillard on 19/9/19.
|
|
|
|
// Copyright © 2019 Ranchero Software, LLC. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
struct FeedlyStream: Decodable {
|
2020-01-17 06:47:21 +01:00
|
|
|
let id: String
|
2019-10-18 23:21:02 +02:00
|
|
|
|
|
|
|
/// Of the most recent entry for this stream (regardless of continuation, newerThan, etc).
|
2020-01-17 06:47:21 +01:00
|
|
|
let updated: Date?
|
2019-10-18 23:21:02 +02:00
|
|
|
|
2020-01-17 06:47:21 +01:00
|
|
|
/// the continuation id to pass to the next stream call, for pagination.
|
2019-10-18 23:21:02 +02:00
|
|
|
/// This id guarantees that no entry will be duplicated in a stream (meaning, there is no need to de-duplicate entries returned by this call).
|
|
|
|
/// If this value is not returned, it means the end of the stream has been reached.
|
2020-01-17 06:47:21 +01:00
|
|
|
let continuation: String?
|
|
|
|
let items: [FeedlyEntry]
|
2019-09-19 04:56:43 +02:00
|
|
|
|
|
|
|
var isStreamEnd: Bool {
|
|
|
|
return continuation == nil
|
|
|
|
}
|
|
|
|
}
|