// 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.actions; import android.os.Parcel; import android.os.Parcelable; import com.olio.communication.messages.MessagePayload; import com.olio.communication.notifications.Utilities; import java.io.Serializable; import java.util.UUID; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; public class Action extends MessagePayload implements Serializable, Parcelable { private static final long serialVersionUID = 3L; private String mActionId; private String mDestination; private String mTitle; public Action() { setActionId(UUID.randomUUID().toString()); } public static Action decode(byte abyte0[]) { return (Action)Utilities.decode(abyte0); } protected static byte[] encodeWithSerialization(Action action) { return Utilities.encodeWithSerialization(action); } public static Action unpackParcel(Parcel parcel) { byte abyte0[] = new byte[parcel.readInt()]; parcel.readByteArray(abyte0); return decode(abyte0); } public int describeContents() { return 0; } public byte[] encode() { return encodeWithSerialization(this); } public boolean equals(Object obj) { if (obj != null) { if (obj == this) { return true; } if (obj.getClass() == getClass()) { Action action = (Action)obj; return (new EqualsBuilder()).appendSuper(super.equals(obj)).append(mDestination, action.getDestination()).append(mActionId, action.getActionId()).append(mTitle, action.getTitle()).isEquals(); } } return false; } public String getActionId() { return mActionId; } public String getDestination() { return mDestination; } public String getTitle() { return mTitle; } public int hashCode() { return (new HashCodeBuilder(3, 43)).append(mDestination).append(mActionId).append(mTitle).toHashCode(); } public void setActionId(String s) { mActionId = s; } public void setDestination(String s) { mDestination = s; } public void setTitle(String s) { mTitle = s; } public String toString() { return (new StringBuilder()).append("Action{ActionId='").append(mActionId).append('\'').append(", Destination='").append(mDestination).append('\'').append(", Title='").append(mTitle).append('\'').append('}').toString(); } public void writeToParcel(Parcel parcel, int i) { byte abyte0[] = encodeWithSerialization(this); parcel.writeInt(abyte0.length); parcel.writeByteArray(abyte0); } }