WebDavAccount.ets 819 B

12345678910111213141516171819202122232425262728
  1. import { Constants } from "../Constants";
  2. import { FileInfo } from "./FileInfo";
  3. @Observed
  4. export class WebDavAccount{
  5. public name: string = Constants.UNKNOWN_NAME
  6. // 网络配置
  7. public id :number= 0;
  8. public isActivate: boolean = true
  9. public host = ''
  10. public localHost = '' // 内网地址
  11. public isUseLocalHost: boolean = false // 是否使用内网
  12. public port : number = 80
  13. // 当前所在的目录
  14. public filepath: string = ''
  15. public imageFilePath: string = ''
  16. public lyricFilePath: string = ''
  17. public uploadFilePath: string = ''
  18. public account:string = ''
  19. public password:string = ''
  20. public enableHttps: boolean = false
  21. public lyricFilePaths: string[] = []
  22. public imageFilePaths: string[] = []
  23. public setIsUseLocalHost(isuse: boolean){
  24. this.isUseLocalHost = isuse
  25. }
  26. }