import { Constants } from "../Constants"; import { RemoteDriveType } from "../common/enums/RemoteDriveType"; import { FileInfo } from "./FileInfo"; @Observed export class WebDavAccount{ public name: string = Constants.UNKNOWN_NAME // 网络配置 public id :number= 0; public isActivate: boolean = true public host = '' public localHost = '' // 内网地址 public isUseLocalHost: boolean = false // 是否使用内网 public port : number = 80 // 当前所在的目录 public filepath: string = '' public imageFilePath: string = '' public lyricFilePath: string = '' public uploadFilePath: string = '' public account:string = '' public password:string = '' public enableHttps: boolean = false public lyricFilePaths: string[] = [] public imageFilePaths: string[] = [] // 自定义封面路径 public coverPath?: string public webType : number = RemoteDriveType.WebDav public smbShare: string = '' public smbDomain: string = '' public navidromeBasePath: string = '/rest' public ftpEncoding: string = 'utf-8' public setIsUseLocalHost(isuse: boolean){ this.isUseLocalHost = isuse } }