|
| 1 | +package io.github.doocs.im.model.callback; |
| 2 | + |
| 3 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 4 | +import io.github.doocs.im.model.group.GroupAttr; |
| 5 | + |
| 6 | +import java.io.Serializable; |
| 7 | +import java.util.List; |
| 8 | + |
| 9 | +/** |
| 10 | + * 群自定义属性变更后回调 |
| 11 | + * |
| 12 | + * @author bingo |
| 13 | + * @since 2024/7/14 10:18 |
| 14 | + */ |
| 15 | +public class AfterGroupAttrChangedCallback implements Serializable { |
| 16 | + |
| 17 | + private static final long serialVersionUID = -8602621515102445503L; |
| 18 | + |
| 19 | + /** |
| 20 | + * 回调命令 |
| 21 | + */ |
| 22 | + @JsonProperty("CallbackCommand") |
| 23 | + private String callbackCommand; |
| 24 | + |
| 25 | + /** |
| 26 | + * 操作的群 ID |
| 27 | + */ |
| 28 | + @JsonProperty("GroupId") |
| 29 | + private String groupId; |
| 30 | + |
| 31 | + /** |
| 32 | + * 群组类型 群组类型介绍,例如:Public |
| 33 | + */ |
| 34 | + @JsonProperty("Type") |
| 35 | + private String type; |
| 36 | + |
| 37 | + /** |
| 38 | + * 发起群自定义属性变更请求的操作者 UserID |
| 39 | + */ |
| 40 | + @JsonProperty("Operator_Account") |
| 41 | + private String operatorAccount; |
| 42 | + |
| 43 | + /** |
| 44 | + * "set" : 重置自定义属性; "modify": 修改自定义属性; "clear": 清空自定义属性; "delete" : 删除自定义属性 |
| 45 | + */ |
| 46 | + @JsonProperty("OptionType") |
| 47 | + private String optionType; |
| 48 | + |
| 49 | + /** |
| 50 | + * 自定义属性列表,key 为自定义属性的键,value 为自定义属性的值 |
| 51 | + */ |
| 52 | + @JsonProperty("GroupAttr") |
| 53 | + private List<GroupAttr> groupAttr; |
| 54 | + |
| 55 | + /** |
| 56 | + * 事件触发的毫秒级别时间戳 |
| 57 | + */ |
| 58 | + @JsonProperty("EventTime") |
| 59 | + private Long eventTime; |
| 60 | + |
| 61 | + public String getCallbackCommand() { |
| 62 | + return callbackCommand; |
| 63 | + } |
| 64 | + |
| 65 | + public void setCallbackCommand(String callbackCommand) { |
| 66 | + this.callbackCommand = callbackCommand; |
| 67 | + } |
| 68 | + |
| 69 | + public String getGroupId() { |
| 70 | + return groupId; |
| 71 | + } |
| 72 | + |
| 73 | + public void setGroupId(String groupId) { |
| 74 | + this.groupId = groupId; |
| 75 | + } |
| 76 | + |
| 77 | + public String getType() { |
| 78 | + return type; |
| 79 | + } |
| 80 | + |
| 81 | + public void setType(String type) { |
| 82 | + this.type = type; |
| 83 | + } |
| 84 | + |
| 85 | + public String getOperatorAccount() { |
| 86 | + return operatorAccount; |
| 87 | + } |
| 88 | + |
| 89 | + public void setOperatorAccount(String operatorAccount) { |
| 90 | + this.operatorAccount = operatorAccount; |
| 91 | + } |
| 92 | + |
| 93 | + public String getOptionType() { |
| 94 | + return optionType; |
| 95 | + } |
| 96 | + |
| 97 | + public void setOptionType(String optionType) { |
| 98 | + this.optionType = optionType; |
| 99 | + } |
| 100 | + |
| 101 | + public List<GroupAttr> getGroupAttr() { |
| 102 | + return groupAttr; |
| 103 | + } |
| 104 | + |
| 105 | + public void setGroupAttr(List<GroupAttr> groupAttr) { |
| 106 | + this.groupAttr = groupAttr; |
| 107 | + } |
| 108 | + |
| 109 | + public Long getEventTime() { |
| 110 | + return eventTime; |
| 111 | + } |
| 112 | + |
| 113 | + public void setEventTime(Long eventTime) { |
| 114 | + this.eventTime = eventTime; |
| 115 | + } |
| 116 | +} |
0 commit comments