// 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.phone_state; import android.content.ContentResolver; import android.os.Parcel; import com.olio.communication.messages.MessagePayload; import com.olio.communication.notifications.DatabaseInsertable; import java.io.Serializable; import java.util.Date; import java.util.Iterator; import java.util.LinkedList; import java.util.List; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; // Referenced classes of package com.olio.phone_state: // CalendarEvent public class CalendarComplicationData extends MessagePayload implements Serializable, DatabaseInsertable { public static final String CALENDAR_CARD_NOTIFICATION_ID = "com.oliodevices.CalendarDetector:CARD_NOTIFICATION_ID"; 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 CalendarComplicationData[i]; } public volatile Object[] newArray(int i) { return newArray(i); } }; public static final String INTERNAL_PACKAGE_NAME = "com.oliodevices.CalendarDetector"; public static final String NOTIFICATION_ID = "com.olio.phone_state.CalendarComplicationData"; private static final long serialVersionUID = 5L; List mCalendarEvents; public CalendarComplicationData() { mCalendarEvents = new LinkedList(); } public static CalendarComplicationData grabScheduleFromPhone(ContentResolver contentresolver, Date date, Date date1) { contentresolver = (CalendarComplicationData)com.olio.communication.notifications.NotificationContract.Notifications.originalNotificationForId(contentresolver, "com.olio.phone_state.CalendarComplicationData"); if (contentresolver != null) goto _L2; else goto _L1 _L1: contentresolver = null; _L4: return contentresolver; _L2: CalendarComplicationData calendarcomplicationdata = new CalendarComplicationData(); Iterator iterator = contentresolver.getCalendarEvents().iterator(); do { contentresolver = calendarcomplicationdata; if (!iterator.hasNext()) { continue; } contentresolver = (CalendarEvent)iterator.next(); if (contentresolver != null && contentresolver.getEndTime().after(date) && contentresolver.getStartTime().before(date1)) { calendarcomplicationdata.addCalendarEvent(contentresolver); } } while (true); if (true) goto _L4; else goto _L3 _L3: } public void addCalendarEvent(CalendarEvent calendarevent) { if (mCalendarEvents == null) { mCalendarEvents = new LinkedList(); } mCalendarEvents.add(calendarevent); } public boolean equals(Object obj) { if (obj != null) { if (obj == this) { return true; } if (obj.getClass() == getClass()) { CalendarComplicationData calendarcomplicationdata = (CalendarComplicationData)obj; return (new EqualsBuilder()).appendSuper(super.equals(obj)).append(mCalendarEvents, calendarcomplicationdata.getCalendarEvents()).isEquals(); } } return false; } public List getCalendarEvents() { return mCalendarEvents; } public Date getDateCreated() { return new Date(); } public com.olio.communication.notifications.new_notifications.StreamItem.DisplayType getDisplayType() { return null; } public com.olio.communication.notifications.NotificationFilters.Category getNotificationCategory() { return null; } public String getNotificationId() { return "com.olio.phone_state.CalendarComplicationData"; } public String getPackage() { return "com.oliodevices.CalendarDetector"; } public int getPriority() { return 0; } public com.olio.communication.notifications.new_notifications.StreamItem.VibrationType getVibrationType() { return null; } public int hashCode() { return (new HashCodeBuilder(59, 55)).append(mCalendarEvents).toHashCode(); } public void setCalendarEvents(List list) { mCalendarEvents = list; } }