-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/dev' into bugfix/#111-improve-pe…
…rsonnel-search
- Loading branch information
Showing
17 changed files
with
239 additions
and
489 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
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
Binary file not shown.
4 changes: 0 additions & 4 deletions
4
plugin/radio/src/main/java/at/wrk/coceso/radio/IllegalMessageException.java
This file was deleted.
Oops, something went wrong.
45 changes: 45 additions & 0 deletions
45
plugin/radio/src/main/java/at/wrk/coceso/radio/IncomingMessageDto.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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package at.wrk.coceso.radio; | ||
|
||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties; | ||
import java.time.Instant; | ||
|
||
@JsonIgnoreProperties(ignoreUnknown = true) | ||
public class IncomingMessageDto { | ||
|
||
private String channel; | ||
private String sender; | ||
private Instant timestamp; | ||
private boolean emergency; | ||
|
||
public String getChannel() { | ||
return channel; | ||
} | ||
|
||
public void setChannel(String channel) { | ||
this.channel = channel; | ||
} | ||
|
||
public String getSender() { | ||
return sender; | ||
} | ||
|
||
public void setSender(String sender) { | ||
this.sender = sender; | ||
} | ||
|
||
public Instant getTimestamp() { | ||
return timestamp; | ||
} | ||
|
||
public void setTimestamp(Instant timestamp) { | ||
this.timestamp = timestamp; | ||
} | ||
|
||
public boolean isEmergency() { | ||
return emergency; | ||
} | ||
|
||
public void setEmergency(boolean emergency) { | ||
this.emergency = emergency; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
plugin/radio/src/main/java/at/wrk/coceso/radio/MessageController.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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
package at.wrk.coceso.radio; | ||
|
||
import org.springframework.beans.factory.annotation.Autowired; | ||
import org.springframework.web.bind.annotation.PostMapping; | ||
import org.springframework.web.bind.annotation.RequestBody; | ||
import org.springframework.web.bind.annotation.RequestHeader; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RestController; | ||
|
||
@RestController | ||
@RequestMapping("/data/radio/messages") | ||
public class MessageController { | ||
|
||
private final RadioService radioService; | ||
|
||
@Autowired | ||
public MessageController(RadioService radioService) { | ||
this.radioService = radioService; | ||
} | ||
|
||
@PostMapping | ||
public void receiveMessage(@RequestBody IncomingMessageDto message, @RequestHeader("Authorization") String key) { | ||
radioService.receiveMessage(message, key); | ||
} | ||
} |
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
6 changes: 0 additions & 6 deletions
6
plugin/radio/src/main/java/at/wrk/coceso/radio/SelcallListener.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.