// 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.data.object.user; import android.content.ContentResolver; import android.os.Parcel; import com.olio.communication.messages.MessagePayload; import com.olio.olios.model.SerializedUserRecordMessagePayload; import java.util.ArrayList; import java.util.List; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; public class CalendarSettings extends SerializedUserRecordMessagePayload { public static final android.os.Parcelable.Creator CREATOR = new android.os.Parcelable.Creator() { public MessagePayload createFromParcel(Parcel parcel) { return MessagePayload.unpackParcel(parcel); } public volatile Object createFromParcel(Parcel parcel) { return createFromParcel(parcel); } public MessagePayload[] newArray(int i) { return new CalendarSettings[i]; } public volatile Object[] newArray(int i) { return newArray(i); } }; public static final String TYPE_NAME = "calendar-settings"; private static final long serialVersionUID = 0x43dadf9e4ed83883L; private List calendarIdentifiers; public CalendarSettings() { calendarIdentifiers = new ArrayList(); } public static CalendarSettings get(ContentResolver contentresolver) { CalendarSettings calendarsettings1 = (CalendarSettings)SerializedUserRecordMessagePayload.get("calendar-settings", contentresolver); CalendarSettings calendarsettings; if (calendarsettings1 == null) { calendarsettings = new CalendarSettings(); calendarsettings.setCalendarIdentifiers(new ArrayList()); } else { calendarsettings = calendarsettings1; if (calendarsettings1.getCalendarIdentifiers() == null) { calendarsettings1.setCalendarIdentifiers(new ArrayList()); calendarsettings1.save(contentresolver); return calendarsettings1; } } return calendarsettings; } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } else { CalendarSettings calendarsettings = (CalendarSettings)obj; return (new EqualsBuilder()).appendSuper(super.equals(obj)).append(calendarIdentifiers, calendarsettings.calendarIdentifiers).isEquals(); } } public List getCalendarIdentifiers() { return calendarIdentifiers; } public com.olio.olios.model.record.SerializedRecord.SerializedRecordObject getDefaultObject() { CalendarSettings calendarsettings = new CalendarSettings(); calendarsettings.setCalendarIdentifiers(new ArrayList()); return calendarsettings; } public int getEndPointsFlags() { return 4; } public String getObjectId() { return "calendar-settings"; } public int getSourcePointsFlags() { return 2; } public int hashCode() { return (new HashCodeBuilder(17, 37)).appendSuper(super.hashCode()).append(calendarIdentifiers).toHashCode(); } public void setCalendarIdentifiers(List list) { calendarIdentifiers = list; } public String typeName() { return "calendar-settings"; } }