-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
RequestServerInfo.java
38 lines (29 loc) · 1.15 KB
/
RequestServerInfo.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
package io.github.blackspherefollower.buttplug4j.protocol.messages;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.github.blackspherefollower.buttplug4j.protocol.ButtplugConsts;
import io.github.blackspherefollower.buttplug4j.protocol.ButtplugMessage;
import static io.github.blackspherefollower.buttplug4j.protocol.ButtplugConsts.MESSAGE_VERSION;
public final class RequestServerInfo extends ButtplugMessage {
@JsonProperty(value = "MessageVersion", required = true)
private final long messageVersion = MESSAGE_VERSION;
@JsonProperty(value = "ClientName", required = true)
private String clientName;
public RequestServerInfo(final String clientName, final long id) {
super(id);
this.setClientName(clientName);
}
@SuppressWarnings("unused")
private RequestServerInfo() {
super(ButtplugConsts.DEFAULT_MSG_ID);
this.setClientName("");
}
public long getMessageVersion() {
return messageVersion;
}
public String getClientName() {
return clientName;
}
public void setClientName(final String clientName) {
this.clientName = clientName;
}
}