Back to project page steamchat.
The source code is released under:
Apache License
If you think the Android project steamchat listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package com.kevelbreh.steamchat.steam.network.packet; /* w w w .j av a 2 s.c o m*/ import com.kevelbreh.steamchat.steam.language.Message; import com.kevelbreh.steamchat.steam.util.BinaryReader; import java.io.IOException; /** * ChannelEncryptRequest implementation. */ public class ChannelEncryptRequest extends Packet { private int messagetype; private long targetjobid; private long sourcejobid; private int protocol; private int universe; /** * @return the server protocol. */ public int getProtocol() { return protocol; } /** * @return the server universe. */ public int getUniverse() { return universe; } @Override public ChannelEncryptRequest withData(byte[] data) { setData(data); return this; } @Override public int getMessageType() { return Message.CHANNEL_ENCRYPT_REQUEST; } @Override public void deserialize(byte[] data) throws IOException { BinaryReader stream = new BinaryReader(data); messagetype = stream.readInt(); targetjobid = stream.readLong(); sourcejobid = stream.readLong(); protocol = stream.readInt(); universe = stream.readInt(); } @Override public String toString() { return new StringBuilder(super.toString()) .append("[type=").append(messagetype) .append("] [targetjobid=").append(targetjobid) .append("] [sourcejobid=").append(sourcejobid) .append("] [protocol=").append(protocol) .append("] [universe=").append(universe) .append("] ").toString(); } }