删除了无用类
This commit is contained in:
1
.idea/gradle.xml
generated
1
.idea/gradle.xml
generated
@@ -26,7 +26,6 @@
|
||||
</set>
|
||||
</option>
|
||||
<option name="resolveModulePerSourceSet" value="false" />
|
||||
<option name="useQualifiedModuleNames" value="true" />
|
||||
</GradleProjectSettings>
|
||||
</option>
|
||||
</component>
|
||||
|
||||
@@ -1,10 +0,0 @@
|
||||
package com.mogo.cloud.live.listener;
|
||||
|
||||
import com.mogo.cloud.live.socket.IotMessageType;
|
||||
|
||||
/**
|
||||
* 常连接消息回调用
|
||||
*/
|
||||
public interface BizMessageListener {
|
||||
void onMessageReceived(IotMessageType type, String content);
|
||||
}
|
||||
@@ -1,46 +0,0 @@
|
||||
package com.mogo.cloud.live.socket;
|
||||
|
||||
public enum IotMessageType {
|
||||
|
||||
//Push 推流消息
|
||||
MSG_LIVE_PUSH_STATUS(0),
|
||||
|
||||
//Cancel car alarm 消息
|
||||
MSG_CANCEL_CAR_ALARM(1),
|
||||
|
||||
//单个文件上传
|
||||
MSG_UPLOAD_SINGLE_FILE(2),
|
||||
|
||||
//切换摄像头
|
||||
MSG_SWITCH_CAMERA(3),
|
||||
|
||||
//组文件上传
|
||||
MSG_UPLOAD_MULTI_FILE(4),
|
||||
|
||||
//抓拍图片上传
|
||||
MSG_UPLOAD_CAPTURE_PIC(5),
|
||||
|
||||
//未知消息
|
||||
UNKNOWN(-1),
|
||||
;
|
||||
|
||||
private int type;
|
||||
|
||||
private IotMessageType(int type) {
|
||||
this.type = type;
|
||||
}
|
||||
|
||||
public int getType() {
|
||||
return type;
|
||||
}
|
||||
|
||||
public static IotMessageType getMsgType(int type){
|
||||
final IotMessageType[] messageTypes = IotMessageType.values();
|
||||
for(IotMessageType messageType : messageTypes){
|
||||
if (messageType.getType() == type){
|
||||
return messageType;
|
||||
}
|
||||
}
|
||||
return UNKNOWN;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user