@Override public boolean decode(final byte[] rawDatas) { final ByteBuffer buffer = ByteBuffer.wrap(rawDatas); this.m_gemItemUid = buffer.getLong(); this.m_roomlayoutPosition = buffer.get(); this.m_primary = (buffer.get() == 1); return true; }
@Override public boolean decode(final byte[] rawDatas) { final ByteBuffer buffer = ByteBuffer.wrap(rawDatas); this.m_sourcePrimary = (buffer.get() == 1); this.m_destPrimary = (buffer.get() == 1); this.m_sourceRoomLayoutPosition = buffer.get(); this.m_destRoomLayoutPosition = buffer.get(); return true; }
@Override public boolean decode(final byte[] rawDatas) { final ByteBuffer bb = ByteBuffer.wrap(rawDatas); this.m_eventId = bb.getLong(); this.m_invitedId = bb.getLong(); final byte[] tInvitedName = new byte[bb.get()]; bb.get(tInvitedName); this.m_invitedName = StringUtils.fromUTF8(tInvitedName); this.m_result = bb.get(); return true; }
@Override public boolean decode(final byte[] rawDatas) { final ByteBuffer buffer = ByteBuffer.wrap(rawDatas); this.m_successful = (buffer.get() == 1); this.m_yourDimBag = (buffer.get() == 1); this.m_partitionNationId = buffer.getInt(); if (this.m_successful) { if (!this.m_yourDimBag) { (this.m_serializedPersonalSpace = new RawDimensionalBagForClient()).unserialize(buffer); } else { this.m_onMarket = (buffer.get() == 1); this.m_fleaAllowed = (buffer.get() == 1); this.m_serializedPersonalSpace = null; } } return true; }