mirror of
https://github.com/Rabiator1/SWG-Station-Chat.git
synced 2026-10-20 11:03:12 -04:00
Add files via upload
This commit is contained in:
@@ -0,0 +1,52 @@
|
||||
package chat.protocol.request;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
import chat.protocol.GenericRequest;
|
||||
|
||||
public class RUpdatePersistentMessage extends GenericRequest {
|
||||
|
||||
private int srcAvatarId;
|
||||
private int messageId;
|
||||
private int status;
|
||||
|
||||
@Override
|
||||
public ByteBuffer serialize() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deserialize(ByteBuffer buf) {
|
||||
type = buf.getShort();
|
||||
track = buf.getInt();
|
||||
srcAvatarId = buf.getInt();
|
||||
messageId = buf.getInt();
|
||||
status = buf.getInt();
|
||||
}
|
||||
|
||||
public int getSrcAvatarId() {
|
||||
return srcAvatarId;
|
||||
}
|
||||
|
||||
public void setSrcAvatarId(int srcAvatarId) {
|
||||
this.srcAvatarId = srcAvatarId;
|
||||
}
|
||||
|
||||
public int getMessageId() {
|
||||
return messageId;
|
||||
}
|
||||
|
||||
public void setMessageId(int messageId) {
|
||||
this.messageId = messageId;
|
||||
}
|
||||
|
||||
public int getStatus() {
|
||||
return status;
|
||||
}
|
||||
|
||||
public void setStatus(int status) {
|
||||
this.status = status;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package chat.protocol.request;
|
||||
|
||||
import java.nio.ByteBuffer;
|
||||
|
||||
import chat.protocol.GenericRequest;
|
||||
|
||||
public class RUpdatePersistentMessages extends GenericRequest {
|
||||
|
||||
private int srcAvatarId;
|
||||
private int messageId;
|
||||
private int currentStatus;
|
||||
private int newStatus;
|
||||
private int category;
|
||||
|
||||
@Override
|
||||
public ByteBuffer serialize() {
|
||||
// TODO Auto-generated method stub
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void deserialize(ByteBuffer buf) {
|
||||
type = buf.getShort();
|
||||
track = buf.getInt();
|
||||
srcAvatarId = buf.getInt();
|
||||
messageId = buf.getInt();
|
||||
currentStatus = buf.getInt();
|
||||
newStatus = buf.getInt();
|
||||
category = buf.getInt();
|
||||
}
|
||||
|
||||
public int getSrcAvatarId() {
|
||||
return srcAvatarId;
|
||||
}
|
||||
|
||||
public void setSrcAvatarId(int srcAvatarId) {
|
||||
this.srcAvatarId = srcAvatarId;
|
||||
}
|
||||
|
||||
public int getMessageId() {
|
||||
return messageId;
|
||||
}
|
||||
|
||||
public void setMessageId(int messageId) {
|
||||
this.messageId = messageId;
|
||||
}
|
||||
|
||||
public int getCurrentStatus() {
|
||||
return currentStatus;
|
||||
}
|
||||
|
||||
public void setCurrentStatus(int currentStatus) {
|
||||
this.currentStatus = currentStatus;
|
||||
}
|
||||
|
||||
public int getNewStatus() {
|
||||
return newStatus;
|
||||
}
|
||||
|
||||
public void setNewStatus(int newStatus) {
|
||||
this.newStatus = newStatus;
|
||||
}
|
||||
|
||||
public int getCategory() {
|
||||
return category;
|
||||
}
|
||||
|
||||
public void setCategory(int category) {
|
||||
this.category = category;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user