mirror of
https://github.com/Ferrite-iOS/Ferrite.git
synced 2026-03-11 17:45:40 +00:00
OffCloud is a debrid provider that allows for caching and playing media. Does not have rich debrid support. Also add a handler if functionality isn't implemented in the service. Signed-off-by: kingbri <bdashore3@proton.me>
41 lines
896 B
Swift
41 lines
896 B
Swift
//
|
|
// OffCloudModels.swift
|
|
// Ferrite
|
|
//
|
|
// Created by Brian Dashore on 6/12/24.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension OffCloud {
|
|
struct InstantAvailabilityRequest: Codable, Sendable {
|
|
let hashes: [String]
|
|
}
|
|
|
|
struct InstantAvailabilityResponse: Codable, Sendable {
|
|
let cachedItems: [String]
|
|
}
|
|
|
|
struct CloudDownloadRequest: Codable, Sendable {
|
|
let url: String
|
|
}
|
|
|
|
struct CloudDownloadResponse: Codable, Sendable {
|
|
let requestId: String
|
|
let fileName: String
|
|
let status: String
|
|
let originalLink: String
|
|
let url: String
|
|
}
|
|
|
|
typealias CloudExploreResponse = [String]
|
|
|
|
struct CloudHistoryResponse: Codable, Sendable {
|
|
let requestId: String
|
|
let fileName: String
|
|
let status: String
|
|
let originalLink: String
|
|
let isDirectory: Bool
|
|
let server: String
|
|
}
|
|
}
|