Skip to content

Commit

Permalink
feat: 토큰 만료 메시지 dto 작성 {sharetreats-team#43)
Browse files Browse the repository at this point in the history
  • Loading branch information
tlqkrus012345 committed Jul 7, 2023
1 parent d0b82f5 commit 720d1a4
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 0 deletions.
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;

}
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;
}
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;
}

0 comments on commit 720d1a4

Please sign in to comment.