forked from sharetreats-team/chatbot-treats-webhook
-
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.
feat: 토큰 만료 메시지 dto 작성 {sharetreats-team#43)
- Loading branch information
1 parent
d0b82f5
commit 720d1a4
Showing
3 changed files
with
90 additions
and
0 deletions.
There are no files selected for viewing
43 changes: 43 additions & 0 deletions
43
src/main/java/com/sharetreats/chatbot/module/controller/dto/retryDtos/RetryButton.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,43 @@ | ||
package com.sharetreats.chatbot.module.controller.dto.retryDtos; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Builder | ||
@NoArgsConstructor | ||
@JsonPropertyOrder({"Columns", "Rows","BgColor", "ActionType", "ActionBody", "Text", "TextHAlign", "TextVAlign", "TextSize"}) | ||
@AllArgsConstructor | ||
@Getter | ||
public class RetryButton { | ||
@JsonProperty("Columns") | ||
private int columns; | ||
|
||
@JsonProperty("Rows") | ||
private int rows; | ||
|
||
@JsonProperty("BgColor") | ||
private String bgColor; | ||
|
||
@JsonProperty("ActionType") | ||
private String actionType; | ||
|
||
@JsonProperty("ActionBody") | ||
private String actionBody; | ||
|
||
@JsonProperty("Text") | ||
private String text; | ||
|
||
@JsonProperty("TextHAlign") | ||
private String textHAlign; | ||
|
||
@JsonProperty("TextVAlign") | ||
private String TextVAlign; | ||
|
||
@JsonProperty("TextSize") | ||
private String textSize; | ||
|
||
} |
26 changes: 26 additions & 0 deletions
26
src/main/java/com/sharetreats/chatbot/module/controller/dto/retryDtos/RetryKeyboard.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,26 @@ | ||
package com.sharetreats.chatbot.module.controller.dto.retryDtos; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
import java.util.List; | ||
|
||
@Getter | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class RetryKeyboard { | ||
|
||
@JsonProperty("Type") | ||
private String type; | ||
|
||
@JsonProperty("DefaultHeight") | ||
private boolean defaultHeight; | ||
|
||
@JsonProperty("BgColor") | ||
private String bgColor; | ||
|
||
@JsonProperty("Buttons") | ||
private List<RetryButton> Buttons; | ||
} |
21 changes: 21 additions & 0 deletions
21
src/main/java/com/sharetreats/chatbot/module/controller/dto/retryDtos/RetryMessage.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,21 @@ | ||
package com.sharetreats.chatbot.module.controller.dto.retryDtos; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Getter; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Getter | ||
@AllArgsConstructor | ||
@NoArgsConstructor | ||
public class RetryMessage { | ||
|
||
private String receiver; | ||
|
||
private int min_api_version; | ||
|
||
private String type; | ||
|
||
private String text; | ||
|
||
private RetryKeyboard keyboard; | ||
} |