2022-12-30 18:20:54 +01:00
|
|
|
//
|
|
|
|
// https://mczachurski.dev
|
2023-01-11 13:16:43 +01:00
|
|
|
// Copyright © 2023 Marcin Czachurski and the repository contributors.
|
2023-03-28 10:35:38 +02:00
|
|
|
// Licensed under the Apache License 2.0.
|
2022-12-30 18:20:54 +01:00
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import CoreData
|
|
|
|
|
|
|
|
extension AccountData {
|
|
|
|
|
|
|
|
@nonobjc public class func fetchRequest() -> NSFetchRequest<AccountData> {
|
|
|
|
return NSFetchRequest<AccountData>(entityName: "AccountData")
|
|
|
|
}
|
|
|
|
|
2022-12-31 16:31:05 +01:00
|
|
|
@NSManaged public var accessToken: String?
|
2023-01-29 19:11:44 +01:00
|
|
|
@NSManaged public var refreshToken: String?
|
2023-01-05 21:08:19 +01:00
|
|
|
@NSManaged public var acct: String
|
2022-12-30 18:20:54 +01:00
|
|
|
@NSManaged public var avatar: URL?
|
2022-12-31 16:31:05 +01:00
|
|
|
@NSManaged public var avatarData: Data?
|
2023-01-11 13:16:43 +01:00
|
|
|
@NSManaged public var clientId: String
|
|
|
|
@NSManaged public var clientSecret: String
|
|
|
|
@NSManaged public var clientVapidKey: String
|
2023-01-05 21:08:19 +01:00
|
|
|
@NSManaged public var createdAt: String
|
2022-12-31 16:31:05 +01:00
|
|
|
@NSManaged public var displayName: String?
|
2022-12-30 18:20:54 +01:00
|
|
|
@NSManaged public var followersCount: Int32
|
|
|
|
@NSManaged public var followingCount: Int32
|
2022-12-31 16:31:05 +01:00
|
|
|
@NSManaged public var header: URL?
|
2023-01-05 21:08:19 +01:00
|
|
|
@NSManaged public var id: String
|
2022-12-31 16:31:05 +01:00
|
|
|
@NSManaged public var locked: Bool
|
|
|
|
@NSManaged public var note: String?
|
2023-01-11 13:16:43 +01:00
|
|
|
@NSManaged public var serverUrl: URL
|
2022-12-30 18:20:54 +01:00
|
|
|
@NSManaged public var statusesCount: Int32
|
2022-12-31 16:31:05 +01:00
|
|
|
@NSManaged public var url: URL?
|
2023-01-05 21:08:19 +01:00
|
|
|
@NSManaged public var username: String
|
2023-01-11 13:16:43 +01:00
|
|
|
@NSManaged public var statuses: Set<StatusData>?
|
2023-01-31 12:20:49 +01:00
|
|
|
@NSManaged public var lastSeenStatusId: String?
|
2023-01-11 13:16:43 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// MARK: Generated accessors for statuses
|
|
|
|
extension AccountData {
|
|
|
|
|
|
|
|
@objc(addStatusesObject:)
|
|
|
|
@NSManaged public func addToStatuses(_ value: StatusData)
|
|
|
|
|
|
|
|
@objc(removeStatusesObject:)
|
|
|
|
@NSManaged public func removeFromStatuses(_ value: StatusData)
|
|
|
|
|
|
|
|
@objc(addStatuses:)
|
|
|
|
@NSManaged public func addToStatuses(_ values: NSSet)
|
|
|
|
|
|
|
|
@objc(removeStatuses:)
|
|
|
|
@NSManaged public func removeFromStatuses(_ values: NSSet)
|
2022-12-30 18:20:54 +01:00
|
|
|
}
|
|
|
|
|
2023-04-01 12:10:59 +02:00
|
|
|
extension AccountData: Identifiable {
|
2022-12-30 18:20:54 +01:00
|
|
|
}
|