// 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.notifications.new_notifications.RemoteActions; import android.content.Context; import android.os.Parcel; import android.os.Parcelable; import com.olio.communication.messages.MessagePayload; import com.olio.communication.notifications.Utilities; import com.olio.data.object.analytics.AnalyticsLog; import com.olio.state.CurrentDevice; import java.io.Serializable; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; public abstract class RemoteAction extends MessagePayload implements Serializable, Parcelable { public static final android.os.Parcelable.Creator CREATOR = new android.os.Parcelable.Creator() { public MessagePayload createFromParcel(Parcel parcel) { return RemoteAction.unpackParcel(parcel); } public volatile Object createFromParcel(Parcel parcel) { return createFromParcel(parcel); } public MessagePayload[] newArray(int i) { return new RemoteAction[i]; } public volatile Object[] newArray(int i) { return newArray(i); } }; public RemoteAction() { } public static RemoteAction decode(byte abyte0[]) { return (RemoteAction)Utilities.decode(abyte0); } protected static byte[] encodeWithSerialization(RemoteAction remoteaction) { return Utilities.encodeWithSerialization(remoteaction); } public static RemoteAction 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()) { return (new EqualsBuilder()).appendSuper(super.equals(obj)).isEquals(); } } return false; } public int hashCode() { return (new HashCodeBuilder(5, 43)).toHashCode(); } protected void logResult(Context context, Long long1, boolean flag, String s) { StringBuilder stringbuilder = new StringBuilder(String.format(getClass().getSimpleName(), new Object[0])); if (s != null) { stringbuilder.append("|").append(s); } s = stringbuilder.toString(); AnalyticsLog.logRemoteActionResult(Long.valueOf(System.currentTimeMillis()), CurrentDevice.getSoftwareVersion(), long1, Boolean.valueOf(flag), s, context.getContentResolver()); } public abstract boolean runAction(Context context, Long long1); public void writeToParcel(Parcel parcel, int i) { byte abyte0[] = encodeWithSerialization(this); parcel.writeInt(abyte0.length); parcel.writeByteArray(abyte0); } }