1078-修改文本信息下发标记类型注释

This commit is contained in:
648540858 2024-05-02 04:46:34 +08:00
parent 7c833f3d12
commit 16bc3dabd6

View File

@ -8,7 +8,7 @@ import io.swagger.v3.oas.annotations.media.Schema;
@Schema(description = "文本信息标志") @Schema(description = "文本信息标志")
public class JTTextSign { public class JTTextSign {
@Schema(description = "01服务,2紧急,3通知") @Schema(description = "1紧急,2服务,3通知")
private int type; private int type;
@Schema(description = "1终端显示器显示") @Schema(description = "1终端显示器显示")
@ -21,18 +21,18 @@ public class JTTextSign {
private boolean source; private boolean source;
public byte encode(){ public byte encode(){
byte bytes = 0; byte byteSign = 0;
bytes |= (byte) type; byteSign |= (byte) type;
if (terminalDisplay) { if (terminalDisplay) {
bytes |= (0x1 << 2); byteSign |= (0x1 << 2);
} }
if (tts) { if (tts) {
bytes |= (0x1 << 3); byteSign |= (0x1 << 3);
} }
if (source) { if (source) {
bytes |= (0x1 << 5); byteSign |= (0x1 << 5);
} }
return bytes; return byteSign;
} }
public int getType() { public int getType() {