/* Options: Date: 2024-12-22 21:23:45 SwiftVersion: 6.0 Version: 8.51 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://blazor-gallery.servicestack.net //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: QueryFileSystemFiles.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack public class QueryFileSystemFiles : QueryDb, IReturn { public typealias Return = QueryResponse required public init(){ super.init() } required public init(from decoder: Decoder) throws { try super.init(from: decoder) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) } } public enum FileAccessType : String, Codable { case Public case Team case Private } public class FileSystemFile : IFile, Codable { public var id:Int? public var fileName:String? public var filePath:String? public var contentType:String? public var contentLength:Int? // @References(typeof(FileSystemItem)) public var fileSystemItemId:Int? required public init(){} } public class FileSystemItem : IFileItem, Codable { public var id:Int? public var fileAccessType:FileAccessType? public var file:FileSystemFile? public var appUserId:String? required public init(){} } public protocol IFileItem { var fileAccessType:FileAccessType? { get set } } public protocol IFile { var id:Int? { get set } var fileName:String? { get set } var filePath:String? { get set } var contentType:String? { get set } var contentLength:Int? { get set } }