build: rename package

This commit is contained in:
2026-07-14 01:20:55 +08:00
parent d14862910a
commit 5f024be736
7 changed files with 12 additions and 12 deletions

View File

@@ -0,0 +1,6 @@
package com.ttstd.signaling.model;
public enum DeviceType {
CONTROLLER,
CONTROLLED
}

View File

@@ -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; }
}