json create mode
This commit is contained in:
parent
f8c835c225
commit
2d362bf634
|
|
@ -28,7 +28,7 @@ public enum EAgoraEventType {
|
||||||
private final String name;
|
private final String name;
|
||||||
private final String description;
|
private final String description;
|
||||||
|
|
||||||
@JsonCreator
|
@JsonCreator(mode = JsonCreator.Mode.DELEGATING)
|
||||||
public static EAgoraEventType getByType(int type) {
|
public static EAgoraEventType getByType(int type) {
|
||||||
return Arrays.stream(EAgoraEventType.values()).filter(v -> v.type == type).findFirst().orElse(channel_create);
|
return Arrays.stream(EAgoraEventType.values()).filter(v -> v.type == type).findFirst().orElse(channel_create);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,12 @@
|
||||||
package com.zhangshu.chat.demo.dto;
|
package com.zhangshu.chat.demo.dto;
|
||||||
|
|
||||||
import cn.hutool.core.bean.BeanUtil;
|
import cn.hutool.core.bean.BeanUtil;
|
||||||
|
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||||
import com.zhangshu.chat.demo.constant.EAgoraEventType;
|
import com.zhangshu.chat.demo.constant.EAgoraEventType;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
|
@JsonIgnoreProperties
|
||||||
public class AgoraEventDto {
|
public class AgoraEventDto {
|
||||||
/**
|
/**
|
||||||
* 通知 ID,标识来自 Agora 业务服务器的一次事件通知
|
* 通知 ID,标识来自 Agora 业务服务器的一次事件通知
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue