build: rename package
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
package com.ttstd.signaling.model;
|
||||
|
||||
public enum DeviceType {
|
||||
CONTROLLER,
|
||||
CONTROLLED
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package com.ttstd.signaling.model;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
|
||||
|
||||
@JsonIgnoreProperties(ignoreUnknown = true)
|
||||
public class SignalMessage {
|
||||
|
||||
private String type; // OFFER, ANSWER, ICE_CANDIDATE, CONTROL_COMMAND, REGISTER, DEVICE_LIST
|
||||
private String fromDeviceId; // 发送方设备ID
|
||||
private String toDeviceId; // 目标设备ID
|
||||
private String deviceType; // CONTROLLER 或 CONTROLLED
|
||||
private String payload; // JSON格式的信令数据(SDP/ICE/控制指令)
|
||||
|
||||
public SignalMessage() {}
|
||||
|
||||
public String getType() { return type; }
|
||||
public void setType(String type) { this.type = type; }
|
||||
|
||||
public String getFromDeviceId() { return fromDeviceId; }
|
||||
public void setFromDeviceId(String fromDeviceId) { this.fromDeviceId = fromDeviceId; }
|
||||
|
||||
public String getToDeviceId() { return toDeviceId; }
|
||||
public void setToDeviceId(String toDeviceId) { this.toDeviceId = toDeviceId; }
|
||||
|
||||
public String getDeviceType() { return deviceType; }
|
||||
public void setDeviceType(String deviceType) { this.deviceType = deviceType; }
|
||||
|
||||
public String getPayload() { return payload; }
|
||||
public void setPayload(String payload) { this.payload = payload; }
|
||||
}
|
||||
Reference in New Issue
Block a user