-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from NimsHub/development
♻️ code refactor
- Loading branch information
Showing
26 changed files
with
114 additions
and
82 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
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
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
18 changes: 12 additions & 6 deletions
18
src/main/java/com/nimshub/biobeacon/constants/Constants.java
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 |
---|---|---|
@@ -1,14 +1,20 @@ | ||
package com.nimshub.biobeacon.constants; | ||
|
||
public class Constants { | ||
// creating a private constructor to hide the public implicit one | ||
private Constants() { | ||
throw new IllegalStateException("Constants class"); | ||
} | ||
public class Constants { | ||
public static final String NO_DATA = "*"; | ||
public static final String BASH = "bash"; | ||
public static final String SCRIPT = "python3 "; | ||
public static final String COMMAND = "-c"; | ||
public static final String COMMA = ","; | ||
public static final Integer CHUNK_SIZE = 4; | ||
public static final String CYCLING = "0"; | ||
public static final String PUSH_UP = "1"; | ||
public static final String RUNNING = "2"; | ||
public static final String SQUAT = "3"; | ||
public static final String TABLE_TENNIS = "4"; | ||
public static final String WALKING = "5"; | ||
public static final Integer SAMPLING_SIZE = 10; | ||
// creating a private constructor to hide the public implicit one | ||
private Constants() { | ||
throw new IllegalStateException("Constants class"); | ||
} | ||
} |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
package com.nimshub.biobeacon.email; | ||
|
||
public interface EmailSender { | ||
void send(String receiver,String subject,String body); | ||
void send(String receiver, String subject, String body); | ||
} |
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
8 changes: 4 additions & 4 deletions
8
src/main/java/com/nimshub/biobeacon/exceptions/MqttConnectionException.java
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
package com.nimshub.biobeacon.exceptions; | ||
|
||
public class MqttConnectionException extends RuntimeException{ | ||
public MqttConnectionException(String message) { | ||
super(message); | ||
} | ||
public class MqttConnectionException extends RuntimeException { | ||
public MqttConnectionException(String message) { | ||
super(message); | ||
} | ||
} |
Oops, something went wrong.