mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2024-12-16 10:48:49 +01:00
35 lines
677 B
Swift
35 lines
677 B
Swift
//
|
|
// 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 { }
|
|
public enum Card { }
|
|
public enum PollOption { }
|
|
public enum Tag { }
|
|
public enum SearchHistory { }
|
|
public enum Notification { }
|
|
}
|
|
|
|
extension Persistence {
|
|
public class PersistCache<T> {
|
|
var dictionary: [String : T] = [:]
|
|
|
|
public init(dictionary: [String : T] = [:]) {
|
|
self.dictionary = dictionary
|
|
}
|
|
}
|
|
}
|
|
|