|
@@ -25,16 +25,6 @@ import Foundation
|
|
|
import RealmSwift
|
|
|
import NextcloudKit
|
|
|
|
|
|
-class tableDashboardWidgetButton: Object {
|
|
|
-
|
|
|
- @Persisted(primaryKey: true) var index = ""
|
|
|
- @Persisted var account = ""
|
|
|
- @Persisted var id = ""
|
|
|
- @Persisted var type = ""
|
|
|
- @Persisted var text = ""
|
|
|
- @Persisted var link = ""
|
|
|
-}
|
|
|
-
|
|
|
class tableDashboardWidget: Object {
|
|
|
|
|
|
@Persisted(primaryKey: true) var index = ""
|
|
@@ -46,6 +36,19 @@ class tableDashboardWidget: Object {
|
|
|
@Persisted var iconUrl: String?
|
|
|
@Persisted var widgetUrl: String?
|
|
|
@Persisted var itemIconsRound: Bool = false
|
|
|
+}
|
|
|
+
|
|
|
+class tableDashboardWidgetButton: Object {
|
|
|
+
|
|
|
+ @Persisted(primaryKey: true) var index = ""
|
|
|
+ @Persisted var account = ""
|
|
|
+ @Persisted var id = ""
|
|
|
+ @Persisted var type = ""
|
|
|
+ @Persisted var text = ""
|
|
|
+ @Persisted var link = ""
|
|
|
+}
|
|
|
+
|
|
|
+extension NCManageDatabase {
|
|
|
|
|
|
func getDashboardWidget(account: String, id: String) -> (tableDashboardWidget?, [tableDashboardWidgetButton]?) {
|
|
|
|