-
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.
Merge pull request #269 from IoTeaTime/feature/268-push-msg
feat: 객체에 따라 객체 푸시 알림 내용 작성 구현
- Loading branch information
Showing
4 changed files
with
78 additions
and
5 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
8 changes: 8 additions & 0 deletions
8
src/main/java/org/ioteatime/meonghanyangserver/clients/iot/dto/AIDetectPayload.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,8 @@ | ||
package org.ioteatime.meonghanyangserver.clients.iot.dto; | ||
|
||
public record AIDetectPayload( | ||
Long trackingId, | ||
Long timestamp, | ||
AIObject objectType, | ||
Double confidence, | ||
Coordinates coordinates) {} |
17 changes: 17 additions & 0 deletions
17
src/main/java/org/ioteatime/meonghanyangserver/clients/iot/dto/AIObject.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,17 @@ | ||
package org.ioteatime.meonghanyangserver.clients.iot.dto; | ||
|
||
import lombok.Getter; | ||
|
||
@Getter | ||
public enum AIObject { | ||
dog("강아지"), | ||
cat("고양이"), | ||
person("사람"), | ||
other("알 수 없는 물체"); | ||
|
||
private String value; | ||
|
||
AIObject(String value) { | ||
this.value = value; | ||
} | ||
} |
11 changes: 11 additions & 0 deletions
11
src/main/java/org/ioteatime/meonghanyangserver/clients/iot/dto/Coordinates.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,11 @@ | ||
package org.ioteatime.meonghanyangserver.clients.iot.dto; | ||
|
||
public record Coordinates( | ||
Integer x1, | ||
Integer y1, | ||
Integer x2, | ||
Integer y2, | ||
Integer x3, | ||
Integer y3, | ||
Integer x4, | ||
Integer y4) {} |