WebDavAccount.ets 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. import { Constants } from "../Constants";
  2. import { RemoteDriveType } from "../common/enums/RemoteDriveType";
  3. import { FileInfo } from "./FileInfo";
  4. @Observed
  5. export class WebDavAccount{
  6. public name: string = Constants.UNKNOWN_NAME
  7. // 网络配置
  8. public id :number= 0;
  9. public isActivate: boolean = true
  10. public host = ''
  11. public localHost = '' // 内网地址
  12. public isUseLocalHost: boolean = false // 是否使用内网
  13. public port : number = 80
  14. // 当前所在的目录
  15. public filepath: string = ''
  16. public imageFilePath: string = ''
  17. public lyricFilePath: string = ''
  18. public uploadFilePath: string = ''
  19. public account:string = ''
  20. public password:string = ''
  21. public enableHttps: boolean = false
  22. public lyricFilePaths: string[] = []
  23. public imageFilePaths: string[] = []
  24. // 自定义封面路径
  25. public coverPath?: string
  26. public webType : number = RemoteDriveType.WebDav
  27. public smbShare: string = ''
  28. public smbDomain: string = ''
  29. public navidromeBasePath: string = '/rest'
  30. public ftpEncoding: string = 'utf-8'
  31. public setIsUseLocalHost(isuse: boolean){
  32. this.isUseLocalHost = isuse
  33. }
  34. }