// Decompiled by Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov. // Jad home page: http://www.geocities.com/kpdus/jad.html // Decompiler options: braces fieldsfirst space lnc package com.olio.communication.bluetooth.channel_messages; import com.olio.communication.actions.AndroidAction; import com.olio.util.ALog; import java.nio.ByteBuffer; import java.nio.ByteOrder; import java.nio.charset.Charset; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; public class AMSEntityRequest { private static final long serialVersionUID = 0x1b9e7L; public byte mAttributeID; public byte mEntityID; public byte mEntityUpdateFlags; public String mValue; public AMSEntityRequest(byte abyte0[]) { abyte0 = ByteBuffer.wrap(abyte0).order(ByteOrder.LITTLE_ENDIAN); ALog.d("Request Data Buffer without Little Endianess: %s", new Object[] { abyte0.array() }); mEntityID = abyte0.get(); ALog.d("AMS Entity update Entity ID: %d", new Object[] { Byte.valueOf(mEntityID) }); mAttributeID = abyte0.get(); ALog.d("Value of the AMS Entity update Attribyte ID: %d", new Object[] { Byte.valueOf(mAttributeID) }); mEntityUpdateFlags = abyte0.get(); ALog.d("Value of the AMS Entity update EntityUpdate Flags: %d", new Object[] { Byte.valueOf(mEntityUpdateFlags) }); byte abyte1[] = new byte[abyte0.remaining()]; abyte0.get(abyte1); ALog.d("Value of String data: %s, String length: %d", new Object[] { abyte1, Integer.valueOf(abyte1.length) }); mValue = new String(abyte1, Charset.defaultCharset()); ALog.d("Value of the AMS Entity update: %s", new Object[] { mValue }); } public boolean equals(Object obj) { if (obj != null) { if (obj == this) { return true; } if (obj.getClass() == getClass()) { AndroidAction androidaction = (AndroidAction)obj; return (new EqualsBuilder()).appendSuper(super.equals(obj)).append(Byte.valueOf(mEntityID), androidaction.getBroadcastFilter()).append(Byte.valueOf(mAttributeID), androidaction.getBroadcastFilter()).append(Byte.valueOf(mEntityUpdateFlags), androidaction.getBroadcastFilter()).append(mValue, androidaction.getBroadcastFilter()).isEquals(); } } return false; } public byte getAttributeID() { return mAttributeID; } public byte getEntityID() { return mEntityID; } public byte getEntityUpdateFlags() { return mEntityUpdateFlags; } public String getValue() { return mValue; } public int hashCode() { return (new HashCodeBuilder(57, 109)).append(mEntityID).append(mAttributeID).append(mEntityUpdateFlags).append(mValue).toHashCode(); } public void setAttributeID(byte byte0) { mAttributeID = byte0; } public void setEntityID(byte byte0) { mEntityID = byte0; } public void setEntityUpdateFlags(byte byte0) { mEntityUpdateFlags = byte0; } public void setValue(String s) { mValue = s; } }