From 70ddf92c45cbd1fc6ef7329e0bacbb004c5dfe09 Mon Sep 17 00:00:00 2001 From: James Woglom Date: Thu, 26 Dec 2024 21:14:02 -0500 Subject: [PATCH] javadoc for success --- .../response/control/BolusPermissionReleaseResponse.java | 3 +++ .../messages/response/control/BolusPermissionResponse.java | 5 ++++- .../messages/response/control/ChangeCartridgeResponse.java | 5 ++++- .../messages/response/control/DisconnectPumpResponse.java | 5 ++++- .../response/control/DismissNotificationResponse.java | 3 +++ .../response/control/EnterFillTubingModeResponse.java | 3 +++ .../messages/response/control/InitiateBolusResponse.java | 5 ++++- .../pump/messages/response/control/PlaySoundResponse.java | 3 +++ .../messages/response/control/RemoteBgEntryResponse.java | 4 +++- .../messages/response/control/RemoteCarbEntryResponse.java | 3 +++ .../response/control/SetG6TransmitterIdResponse.java | 3 +++ .../pump/messages/response/control/SetModesResponse.java | 3 +++ .../response/control/SetQuickBolusSettingsResponse.java | 3 +++ .../messages/response/control/SetSleepScheduleResponse.java | 3 +++ .../pump/messages/response/control/SetTempRateResponse.java | 2 +- .../response/control/StartG6SensorSessionResponse.java | 5 ++++- .../response/control/StopG6SensorSessionResponse.java | 4 +++- .../pump/messages/response/control/StopTempRateResponse.java | 3 +++ .../messages/response/control/SuspendPumpingResponse.java | 5 ++++- .../messages/response/currentStatus/HistoryLogResponse.java | 5 ++++- .../response/currentStatus/LastBolusStatusResponse.java | 3 +++ .../response/currentStatus/LastBolusStatusV2Response.java | 5 ++++- .../response/currentStatus/PumpFeaturesV2Response.java | 5 ++++- .../response/currentStatus/PumpSettingsResponse.java | 3 +++ .../messages/response/currentStatus/RemindersResponse.java | 3 +++ .../currentStatus/UnknownMobiOpcodeNeg124Response.java | 1 + .../messages/response/historyLog/CgmDataGxHistoryLog.java | 1 + 27 files changed, 84 insertions(+), 12 deletions(-) diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/BolusPermissionReleaseResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/BolusPermissionReleaseResponse.java index f1d89067..bebdbc36 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/BolusPermissionReleaseResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/BolusPermissionReleaseResponse.java @@ -47,6 +47,9 @@ public void parse(byte[] raw) { } + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/BolusPermissionResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/BolusPermissionResponse.java index 1ec38a41..5ff8e844 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/BolusPermissionResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/BolusPermissionResponse.java @@ -53,7 +53,10 @@ public static byte[] buildCargo(int status, int bolusId, int nackReason) { new byte[]{ (byte) nackReason } ); } - + + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/ChangeCartridgeResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/ChangeCartridgeResponse.java index 757b06bf..4f4d2e40 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/ChangeCartridgeResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/ChangeCartridgeResponse.java @@ -56,7 +56,10 @@ public static byte[] buildCargo(int status, int unknown1) { new byte[]{ 0, 0, 0, 0, 0, 0, 0, 0, 0} ); } - + + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/DisconnectPumpResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/DisconnectPumpResponse.java index ed3bc45a..ca35c35c 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/DisconnectPumpResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/DisconnectPumpResponse.java @@ -45,7 +45,10 @@ public static byte[] buildCargo(int status) { return Bytes.combine( new byte[]{ (byte) status }); } - + + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/DismissNotificationResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/DismissNotificationResponse.java index f1577651..b6481a42 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/DismissNotificationResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/DismissNotificationResponse.java @@ -45,6 +45,9 @@ public static byte[] buildCargo(int status) { new byte[]{ (byte) status }); } + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/EnterFillTubingModeResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/EnterFillTubingModeResponse.java index ce796712..0b03c4a3 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/EnterFillTubingModeResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/EnterFillTubingModeResponse.java @@ -46,6 +46,9 @@ public static byte[] buildCargo(int status) { } + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/InitiateBolusResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/InitiateBolusResponse.java index 298e2234..fbdc2dc9 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/InitiateBolusResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/InitiateBolusResponse.java @@ -51,7 +51,10 @@ public static byte[] buildCargo(int status, int bolusId, int statusType) { new byte[]{ 0, 0}, new byte[]{ (byte) statusType }); } - + + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/PlaySoundResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/PlaySoundResponse.java index 7822261b..261a68db 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/PlaySoundResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/PlaySoundResponse.java @@ -38,6 +38,9 @@ public void parse(byte[] raw) { } + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/RemoteBgEntryResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/RemoteBgEntryResponse.java index 8fc30084..8e7a0adb 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/RemoteBgEntryResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/RemoteBgEntryResponse.java @@ -46,7 +46,9 @@ public static byte[] buildCargo(int status) { new byte[]{ (byte) status }); } - // 0 = success + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/RemoteCarbEntryResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/RemoteCarbEntryResponse.java index 0d1d5940..8fecf08c 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/RemoteCarbEntryResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/RemoteCarbEntryResponse.java @@ -41,6 +41,9 @@ public void parse(byte[] raw) { this.status = raw[0]; } + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetG6TransmitterIdResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetG6TransmitterIdResponse.java index b629cb10..684f4134 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetG6TransmitterIdResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetG6TransmitterIdResponse.java @@ -47,6 +47,9 @@ public static byte[] buildCargo(int status) { new byte[]{ (byte) status }); } + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetModesResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetModesResponse.java index 7724ceeb..37aadc84 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetModesResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetModesResponse.java @@ -50,6 +50,9 @@ public static byte[] buildCargo(int status) { new byte[]{(byte) status}); } + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetQuickBolusSettingsResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetQuickBolusSettingsResponse.java index f9cec6be..295aaf14 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetQuickBolusSettingsResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetQuickBolusSettingsResponse.java @@ -42,6 +42,9 @@ public void parse(byte[] raw) { } + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetSleepScheduleResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetSleepScheduleResponse.java index 6b48a8bc..fafeade8 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetSleepScheduleResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetSleepScheduleResponse.java @@ -51,6 +51,9 @@ public static byte[] buildCargo(int status) { ); } + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetTempRateResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetTempRateResponse.java index 988fed1b..d5f018c2 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetTempRateResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SetTempRateResponse.java @@ -51,7 +51,7 @@ public static byte[] buildCargo(byte[] raw) { /** - * @return 0 if successful otherwise unsuccessful + * @return 0 if successful */ public int getStatus() { return status; diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/StartG6SensorSessionResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/StartG6SensorSessionResponse.java index 480a64a3..ebfd3a5f 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/StartG6SensorSessionResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/StartG6SensorSessionResponse.java @@ -43,7 +43,10 @@ public static byte[] buildCargo(int status) { return Bytes.combine( new byte[]{ (byte) status }); } - + + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/StopG6SensorSessionResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/StopG6SensorSessionResponse.java index 551fb0fc..436ac2e8 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/StopG6SensorSessionResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/StopG6SensorSessionResponse.java @@ -45,7 +45,9 @@ public static byte[] buildCargo(int status) { } - // 0 = success + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/StopTempRateResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/StopTempRateResponse.java index 5fbfacd6..b5721173 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/StopTempRateResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/StopTempRateResponse.java @@ -40,6 +40,9 @@ public void parse(byte[] raw) { } + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SuspendPumpingResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SuspendPumpingResponse.java index cf8fb36a..7f57e031 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SuspendPumpingResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/control/SuspendPumpingResponse.java @@ -47,7 +47,10 @@ public static byte[] buildCargo(int status) { return Bytes.combine( new byte[]{ (byte) status }); } - + + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/HistoryLogResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/HistoryLogResponse.java index 6436644a..241c4797 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/HistoryLogResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/HistoryLogResponse.java @@ -41,7 +41,10 @@ public static byte[] buildCargo(int status, int streamId) { new byte[]{ (byte) status }, new byte[]{ (byte) streamId }); } - + + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/LastBolusStatusResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/LastBolusStatusResponse.java index 6c24dcdf..99e82561 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/LastBolusStatusResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/LastBolusStatusResponse.java @@ -80,6 +80,9 @@ public static byte[] buildCargo(int status, int bolusId, long timestamp, long de ); } + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/LastBolusStatusV2Response.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/LastBolusStatusV2Response.java index f7450625..8cf86022 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/LastBolusStatusV2Response.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/LastBolusStatusV2Response.java @@ -81,7 +81,10 @@ public static byte[] buildCargo(int status, int bolusId, long timestamp, long de Bytes.toUint32(extendedBolusDuration), Bytes.toUint32(requestedVolume)); } - + + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/PumpFeaturesV2Response.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/PumpFeaturesV2Response.java index 19330c6a..fd2143ea 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/PumpFeaturesV2Response.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/PumpFeaturesV2Response.java @@ -51,7 +51,10 @@ public static byte[] buildCargo(int status, int supportedFeaturesIndex, long pum new byte[]{ (byte) supportedFeaturesIndex }, Bytes.toUint32(pumpFeaturesBitmask)); } - + + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/PumpSettingsResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/PumpSettingsResponse.java index cbdc1de2..216a4e5c 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/PumpSettingsResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/PumpSettingsResponse.java @@ -80,6 +80,9 @@ public int getFeatureLock() { public int getOledTimeout() { return oledTimeout; } + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/RemindersResponse.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/RemindersResponse.java index 07d9adf1..d7ac1730 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/RemindersResponse.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/RemindersResponse.java @@ -128,6 +128,9 @@ public int getHighBGThreshold() { public int getSiteChangeDays() { return siteChangeDays; } + /** + * @return 0 if successful + */ public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/UnknownMobiOpcodeNeg124Response.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/UnknownMobiOpcodeNeg124Response.java index 7a43f85b..c7e4e700 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/UnknownMobiOpcodeNeg124Response.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/currentStatus/UnknownMobiOpcodeNeg124Response.java @@ -49,6 +49,7 @@ public static byte[] buildCargo(int status) { return new byte[]{(byte) status}; } + public int getStatus() { return status; } diff --git a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/historyLog/CgmDataGxHistoryLog.java b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/historyLog/CgmDataGxHistoryLog.java index 1beca4bd..adc18d5c 100644 --- a/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/historyLog/CgmDataGxHistoryLog.java +++ b/messages/src/main/java/com/jwoglom/pumpx2/pump/messages/response/historyLog/CgmDataGxHistoryLog.java @@ -70,6 +70,7 @@ public static byte[] buildCargo(long pumpTimeSec, long sequenceNum, int status, Bytes.toUint32(timestamp), Bytes.toUint32(transmitterTimestamp))); } + public int getStatus() { return status; }