1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package com.linecorp.centraldogma.server.internal.admin.dto;
18
19 import com.linecorp.centraldogma.internal.thrift.PluginOperationReturnDef;
20
21 public class PluginOperationReturnDefDto {
22 private String type;
23 private CommentDto commentDto;
24
25 public PluginOperationReturnDefDto() {}
26
27 public PluginOperationReturnDefDto(PluginOperationReturnDef returnDef) {
28 type = returnDef.getType().name();
29 if (returnDef.getComment() != null) {
30 commentDto = new CommentDto(returnDef.getComment());
31 }
32 }
33
34 public String getType() {
35 return type;
36 }
37
38 public void setType(String type) {
39 this.type = type;
40 }
41
42 public CommentDto getCommentDto() {
43 return commentDto;
44 }
45
46 public void setCommentDto(CommentDto commentDto) {
47 this.commentDto = commentDto;
48 }
49 }