forked from shadowfacts/Tusker
33 lines
759 B
Swift
33 lines
759 B
Swift
//
|
|
// TimlineState.swift
|
|
// Tusker
|
|
//
|
|
// Created by Shadowfacts on 12/13/22.
|
|
// Copyright © 2022 Shadowfacts. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import CoreData
|
|
import Pachyderm
|
|
|
|
@objc(TimelineState)
|
|
public final class TimelineState: NSManagedObject {
|
|
|
|
@nonobjc public class func fetchRequest() -> NSFetchRequest<TimelineState> {
|
|
return NSFetchRequest<TimelineState>(entityName: "TimelineState")
|
|
}
|
|
|
|
@NSManaged private var timelineKind: String
|
|
@NSManaged public var centerStatusID: String?
|
|
@NSManaged private var statuses: NSOrderedSet
|
|
|
|
var timeline: Timeline {
|
|
get { fromTimelineKind(timelineKind) }
|
|
}
|
|
|
|
var statusMOs: [StatusMO] {
|
|
statuses.array as! [StatusMO]
|
|
}
|
|
|
|
}
|