public abstract class Packet
extends java.lang.Object
implements android.os.Parcelable
Modifier and Type | Field and Description |
---|---|
protected PacketType |
packetType |
Modifier | Constructor and Description |
---|---|
protected |
Packet(PacketType packetType) |
protected |
Packet(android.os.Parcel in) |
Modifier and Type | Method and Description |
---|---|
PacketType |
getPacketType()
Returns type of this packet.
|
abstract java.lang.String |
getUniqueKey()
Returns unique key for this packet to identify it between other
Packet objects. |
void |
writeToParcel(android.os.Parcel dest,
int flags) |
protected final PacketType packetType
protected Packet(PacketType packetType)
protected Packet(android.os.Parcel in)
public void writeToParcel(android.os.Parcel dest, int flags)
writeToParcel
in interface android.os.Parcelable
public PacketType getPacketType()
PacketType
public abstract java.lang.String getUniqueKey()
Packet
objects.
Child classes should implement this method.