-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to newly built Kotlin Client from GH Run 13
- Loading branch information
1 parent
5b70813
commit 1f888e5
Showing
17 changed files
with
147 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
17 changes: 17 additions & 0 deletions
17
src/main/java/com/cumulocity/client/model/C8yAvailabilityConnectionStatus.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) 2014-2023 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. | ||
// Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG. | ||
|
||
package com.cumulocity.client.model | ||
import com.google.gson.annotations.SerializedName | ||
|
||
/** | ||
* The current status of connection, one of `CONNECTED`, `DISCONNECTED`, `MAINTENANCE`. | ||
*/ | ||
enum class C8yAvailabilityConnectionStatus(val value: String) { | ||
@SerializedName(value = "CONNECTED") | ||
CONNECTED("CONNECTED"), | ||
@SerializedName(value = "DISCONNECTED") | ||
DISCONNECTED("DISCONNECTED"), | ||
@SerializedName(value = "MAINTENANCE") | ||
MAINTENANCE("MAINTENANCE") | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/com/cumulocity/client/model/C8yAvailabilityDataStatus.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
// Copyright (c) 2014-2023 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. | ||
// Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG. | ||
|
||
package com.cumulocity.client.model | ||
import com.google.gson.annotations.SerializedName | ||
|
||
/** | ||
* The current status of availability, one of `AVAILABLE`, `UNAVAILABLE`, `MAINTENANCE`. | ||
*/ | ||
enum class C8yAvailabilityDataStatus(val value: String) { | ||
@SerializedName(value = "AVAILABLE") | ||
AVAILABLE("AVAILABLE"), | ||
@SerializedName(value = "MAINTENANCE") | ||
MAINTENANCE("MAINTENANCE"), | ||
@SerializedName(value = "UNAVAILABLE") | ||
UNAVAILABLE("UNAVAILABLE") | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
42 changes: 42 additions & 0 deletions
42
src/main/java/com/cumulocity/client/model/ManagedObjectAvailability.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Copyright (c) 2014-2023 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. | ||
// Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG. | ||
|
||
package com.cumulocity.client.model | ||
import com.google.gson.Gson | ||
|
||
class ManagedObjectAvailability { | ||
|
||
/** | ||
* Identifier of the target device. | ||
*/ | ||
var deviceId: String? = null | ||
|
||
/** | ||
* The identifier used in the external system that Cumulocity IoT interfaces with. | ||
*/ | ||
var externalId: String? = null | ||
|
||
/** | ||
* The time when the device sent the last message to Cumulocity IoT. | ||
*/ | ||
var lastMessage: String? = null | ||
|
||
/** | ||
* Required interval of monitored device | ||
*/ | ||
var interval: Int? = null | ||
|
||
/** | ||
* The current status of availability, one of `AVAILABLE`, `UNAVAILABLE`, `MAINTENANCE`. | ||
*/ | ||
var dataStatus: C8yAvailabilityDataStatus? = null | ||
|
||
/** | ||
* The current status of connection, one of `CONNECTED`, `DISCONNECTED`, `MAINTENANCE`. | ||
*/ | ||
var connectionStatus: C8yAvailabilityConnectionStatus? = null | ||
|
||
override fun toString(): String { | ||
return Gson().toJson(this).toString() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 16 additions & 0 deletions
16
src/main/java/com/cumulocity/client/model/MeasurementSeriesValue.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
// Copyright (c) 2014-2023 Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors. | ||
// Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG. | ||
|
||
package com.cumulocity.client.model | ||
import com.google.gson.Gson | ||
|
||
class MeasurementSeriesValue { | ||
|
||
var min: Number? = null | ||
|
||
var max: Number? = null | ||
|
||
override fun toString(): String { | ||
return Gson().toJson(this).toString() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters