aboutsummaryrefslogtreecommitdiff
path: root/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Permission.kt
diff options
context:
space:
mode:
authorIván Ávalos <avalos@disroot.org>2022-01-22 22:32:27 -0600
committerIván Ávalos <avalos@disroot.org>2022-01-22 22:32:27 -0600
commit707b89f48297c68af514d6aa475b13624652df51 (patch)
tree4b63479f55e404a8b35e958a1e7a6b4439517096 /shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Permission.kt
parent35da6cfb0b80b57a7c3c47c7f9f9b8a5f222019d (diff)
downloadetbsa-trackermap-mobile-707b89f48297c68af514d6aa475b13624652df51.tar.gz
etbsa-trackermap-mobile-707b89f48297c68af514d6aa475b13624652df51.tar.bz2
etbsa-trackermap-mobile-707b89f48297c68af514d6aa475b13624652df51.zip
Removed all Java references from shared module
Diffstat (limited to 'shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Permission.kt')
-rw-r--r--shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Permission.kt19
1 files changed, 11 insertions, 8 deletions
diff --git a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Permission.kt b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Permission.kt
index c4c236b..0d1be29 100644
--- a/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Permission.kt
+++ b/shared/src/commonMain/kotlin/mx/trackermap/TrackerMap/client/models/Permission.kt
@@ -11,6 +11,8 @@
*/
package mx.trackermap.TrackerMap.client.models
+import kotlinx.serialization.Serializable
+
/**
* This is a permission map that contain two object indexes. It is used to link/unlink objects. Order is important. Example: { deviceId:8, geofenceId: 16 }
@@ -23,23 +25,24 @@ package mx.trackermap.TrackerMap.client.models
* @param driverId Driver Id, can be second parameter only
* @param managedUserId User Id, can be second parameter only and only in combination with userId
*/
+@Serializable
data class Permission (
/* User Id, can be only first parameter */
- val userId: kotlin.Int? = null,
+ val userId: Int? = null,
/* Device Id, can be first parameter or second only in combination with userId */
- val deviceId: kotlin.Int? = null,
+ val deviceId: Int? = null,
/* Group Id, can be first parameter or second only in combination with userId */
- val groupId: kotlin.Int? = null,
+ val groupId: Int? = null,
/* Geofence Id, can be second parameter only */
- val geofenceId: kotlin.Int? = null,
+ val geofenceId: Int? = null,
/* Calendar Id, can be second parameter only and only in combination with userId */
- val calendarId: kotlin.Int? = null,
+ val calendarId: Int? = null,
/* Computed Attribute Id, can be second parameter only */
- val attributeId: kotlin.Int? = null,
+ val attributeId: Int? = null,
/* Driver Id, can be second parameter only */
- val driverId: kotlin.Int? = null,
+ val driverId: Int? = null,
/* User Id, can be second parameter only and only in combination with userId */
- val managedUserId: kotlin.Int? = null
+ val managedUserId: Int? = null
) {
} \ No newline at end of file