2022-01-27 14:23:39 +01:00
|
|
|
//
|
|
|
|
// Persistence.swift
|
|
|
|
// Persistence
|
|
|
|
//
|
|
|
|
// Created by Cirno MainasuK on 2021-8-18.
|
|
|
|
// Copyright © 2021 Twidere. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
|
|
|
|
public enum Persistence { }
|
|
|
|
|
|
|
|
|
|
|
|
extension Persistence {
|
|
|
|
public enum MastodonUser { }
|
|
|
|
public enum Status { }
|
|
|
|
public enum Poll { }
|
2022-11-24 05:03:45 +01:00
|
|
|
public enum Card { }
|
2022-01-27 14:23:39 +01:00
|
|
|
public enum PollOption { }
|
|
|
|
public enum Tag { }
|
|
|
|
public enum SearchHistory { }
|
|
|
|
public enum Notification { }
|
2023-03-02 11:06:13 +01:00
|
|
|
public enum StatusEdit {}
|
2022-01-27 14:23:39 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
extension Persistence {
|
|
|
|
public class PersistCache<T> {
|
|
|
|
var dictionary: [String : T] = [:]
|
|
|
|
|
|
|
|
public init(dictionary: [String : T] = [:]) {
|
|
|
|
self.dictionary = dictionary
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|