File

public class File : Item

Any file that can be stored on disk.

  • The sha256 hash of a resource.

    Declaration

    Swift

    @objc
    dynamic var sha256: String?
  • Declaration

    Swift

    @objc
    dynamic var nonce: String?
  • key

    A piece of information that determines the functional output of a cryptographic algorithm.

    Declaration

    Swift

    @objc
    dynamic var key: String?
  • The filename of a resource.

    Declaration

    Swift

    @objc
    dynamic var filename: String?
  • A universal resource location

    Declaration

    Swift

    var resource: Results<Resource>? { get }
  • An Item this Item is used by.

    Declaration

    Swift

    var usedBy: [Item]? { get }
  • Undocumented

    Declaration

    Swift

    public required convenience init(from decoder: Decoder) throws
  • Undocumented

    Declaration

    Swift

    internal func getFilename() -> String
  • url

    Undocumented

    Declaration

    Swift

    var url: URL { get }
  • Undocumented

    Declaration

    Swift

    var asString: String? { get }
  • Undocumented

    Declaration

    Swift

    var asData: Data? { get }
  • Undocumented

    Declaration

    Swift

    func queueForDownload()
  • Undocumented

    Declaration

    Swift

    func clearCache() throws
  • Undocumented

    Declaration

    Swift

    func read<T>() throws -> T?
  • Undocumented

    Declaration

    Swift

    func read<T>() throws -> T? where T : Decodable
  • Undocumented

    Declaration

    Swift

    func write<T>(_ value: T) throws
  • Undocumented

    Declaration

    Swift

    func write<T>(_ value: T) throws where T : Encodable