NCDatabase.swift 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. //
  2. // NCDatabase.swift
  3. // Nextcloud
  4. //
  5. // Created by Marino Faggiana on 06/05/17.
  6. // Copyright © 2017 TWS. All rights reserved.
  7. //
  8. import RealmSwift
  9. class tableAccount: Object {
  10. dynamic var account = ""
  11. dynamic var active : Bool = false
  12. dynamic var address = ""
  13. dynamic var cameraUpload : Bool = false
  14. dynamic var cameraUploadBackground : Bool = false
  15. dynamic var cameraUploadCreateSubfolder : Bool = false
  16. dynamic var cameraUploadDatePhoto = NSDate()
  17. dynamic var cameraUploadDateVideo = NSDate()
  18. dynamic var cameraUploadFolderName = ""
  19. dynamic var cameraUploadFolderPath = ""
  20. dynamic var cameraUploadFull : Bool = false
  21. dynamic var cameraUploadPhoto : Bool = false
  22. dynamic var cameraUploadSaveAlbum : Bool = false
  23. dynamic var cameraUploadVideo : Bool = false
  24. dynamic var cameraUploadWWAnPhoto : Bool = false
  25. dynamic var cameraUploadWWAnVideo : Bool = false
  26. dynamic var displayName = ""
  27. dynamic var email = ""
  28. dynamic var enabled : Bool = false
  29. dynamic var optimization = NSDate()
  30. dynamic var password = ""
  31. dynamic var phone = ""
  32. dynamic var quota : Double = 0
  33. dynamic var quotaFree : Double = 0
  34. dynamic var quotaRelative : Double = 0
  35. dynamic var quotaTotal : Double = 0
  36. dynamic var quotaUsed : Double = 0
  37. dynamic var twitter = ""
  38. dynamic var url = ""
  39. dynamic var user = ""
  40. dynamic var webpage = ""
  41. }
  42. class tableActivity: Object {
  43. dynamic var account = ""
  44. dynamic var action = "Activity"
  45. dynamic var date = NSDate()
  46. dynamic var file = ""
  47. dynamic var fileID = ""
  48. dynamic var idActivity : Double = 0
  49. dynamic var link = ""
  50. dynamic var note = ""
  51. dynamic var selector = ""
  52. dynamic var type = ""
  53. dynamic var verbose : Bool = false
  54. }
  55. class tableAutomaticUpload: Object {
  56. dynamic var account = ""
  57. dynamic var assetLocalIdentifier = ""
  58. dynamic var date = NSDate()
  59. dynamic var fileName = ""
  60. dynamic var lock : Bool = false
  61. dynamic var priority : Int = 0
  62. dynamic var selector = ""
  63. dynamic var selectorPost = ""
  64. dynamic var serverUrl = ""
  65. dynamic var session = ""
  66. }
  67. class tableCapabilities: Object {
  68. dynamic var account = ""
  69. dynamic var themingBackground = ""
  70. dynamic var themingColor = ""
  71. dynamic var themingLogo = ""
  72. dynamic var themingName = ""
  73. dynamic var themingSlogan = ""
  74. dynamic var themingUrl = ""
  75. dynamic var versionMajor : Int = 0
  76. dynamic var versionMicro : Int = 0
  77. dynamic var versionMinor : Int = 0
  78. dynamic var versionString = ""
  79. }
  80. class tableCertificates: Object {
  81. dynamic var certificateLocation = ""
  82. }
  83. class tableExternalSites: Object {
  84. dynamic var account = ""
  85. dynamic var icon = ""
  86. dynamic var idExternalSite : Int = 0
  87. dynamic var lang = ""
  88. dynamic var name = ""
  89. dynamic var type = ""
  90. dynamic var url = ""
  91. }
  92. class tableGPS: Object {
  93. dynamic var latitude = ""
  94. dynamic var location = ""
  95. dynamic var longitude = ""
  96. dynamic var placemarkAdministrativeArea = ""
  97. dynamic var placemarkCountry = ""
  98. dynamic var placemarkLocality = ""
  99. dynamic var placemarkPostalCode = ""
  100. dynamic var placemarkThoroughfare = ""
  101. }
  102. class tableShare: Object {
  103. dynamic var account = ""
  104. dynamic var fileName = ""
  105. dynamic var serverUrl = ""
  106. dynamic var shareLink = ""
  107. dynamic var shareUserAndGroup = ""
  108. }