public ChatConnectAvatar(final ByteBuffer buffer) { characterId = buffer.getLong(); characterName = BufferUtil.getAscii(buffer); stationId = buffer.getInt(); secure = BufferUtil.getBoolean(buffer); subscribed = BufferUtil.getBoolean(buffer); }
@Override public void writeToBuffer(final ByteBuffer buffer) { BufferUtil.put(buffer, characterId); BufferUtil.put(buffer, characterName); BufferUtil.put(buffer, stationId); BufferUtil.put(buffer, secure); BufferUtil.put(buffer, subscribed); }