// 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.messages; import android.os.Parcel; import android.os.Parcelable; import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.databind.ObjectMapper; import com.olio.communication.notifications.Utilities; import com.olio.util.ALog; import java.io.IOException; import java.io.Serializable; import java.io.UnsupportedEncodingException; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; // Referenced classes of package com.olio.communication.messages: // Message public abstract class MessagePayload implements Serializable, Parcelable { private static final long serialVersionUID = 35L; public MessagePayload() { } public static MessagePayload decode(byte abyte0[]) { return (MessagePayload)Utilities.decode(abyte0); } protected static byte[] encodeWithSerialization(MessagePayload messagepayload) { return Utilities.encodeWithSerialization(messagepayload); } public static MessagePayload jsonDecode(String s) { s = (MessagePayload)Message.objectMapper().readValue(s, com/olio/communication/messages/MessagePayload); return s; s; ALog.e("Error Decoding Notification JSON", new Object[0]); _L2: return null; s; ALog.e("Error decoding message JSON", s, new Object[0]); if (true) goto _L2; else goto _L1 _L1: } public static MessagePayload unpackParcel(Parcel parcel) { byte abyte0[] = new byte[parcel.readInt()]; parcel.readByteArray(abyte0); return decode(abyte0); } public int describeContents() { return 0; } public byte[] encodeWithSerialization() { return encodeWithSerialization(this); } public boolean equals(Object obj) { if (obj != null) { if (obj == this) { return true; } if (obj.getClass() == getClass()) { return (new EqualsBuilder()).isEquals(); } } return false; } public int hashCode() { return (new HashCodeBuilder(33, 67)).toHashCode(); } public String jsonEncode() { String s; try { s = Message.objectMapper().writeValueAsString(this); } catch (JsonProcessingException jsonprocessingexception) { ALog.e("Error Decoding Notification JSON", jsonprocessingexception, new Object[0]); return null; } return s; } public void writeToParcel(Parcel parcel, int i) { byte abyte0[] = encodeWithSerialization(this); parcel.writeInt(abyte0.length); parcel.writeByteArray(abyte0); } }