// 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.unit.ui; import android.content.ContentResolver; import android.net.Uri; import android.os.Parcel; import com.olio.communication.messages.MessagePayload; import com.olio.olios.model.SerializedUserRecordMessagePayload; import org.apache.commons.lang3.builder.EqualsBuilder; import org.apache.commons.lang3.builder.HashCodeBuilder; // Referenced classes of package com.olio.data.object.unit.ui: // WatchUiBuilder public class WatchUi extends SerializedUserRecordMessagePayload { public static final class WatchFaceMode extends Enum { private static final WatchFaceMode $VALUES[]; public static final WatchFaceMode ANALOG; public static final WatchFaceMode DIGITAL; public static WatchFaceMode valueOf(String s) { return (WatchFaceMode)Enum.valueOf(com/olio/data/object/unit/ui/WatchUi$WatchFaceMode, s); } public static WatchFaceMode[] values() { return (WatchFaceMode[])$VALUES.clone(); } public WatchFaceMode fromString(String s) { if (s == null) { return ANALOG; } try { s = (WatchFaceMode)Enum.valueOf(com/olio/data/object/unit/ui/WatchUi$WatchFaceMode, s.toUpperCase()); } // Misplaced declaration of an exception variable catch (String s) { return ANALOG; } return s; } public String toString() { static class _cls2 { static final int $SwitchMap$com$olio$data$object$unit$ui$WatchUi$WatchFaceMode[]; static { $SwitchMap$com$olio$data$object$unit$ui$WatchUi$WatchFaceMode = new int[WatchFaceMode.values().length]; try { $SwitchMap$com$olio$data$object$unit$ui$WatchUi$WatchFaceMode[WatchFaceMode.ANALOG.ordinal()] = 1; } catch (NoSuchFieldError nosuchfielderror1) { } try { $SwitchMap$com$olio$data$object$unit$ui$WatchUi$WatchFaceMode[WatchFaceMode.DIGITAL.ordinal()] = 2; } catch (NoSuchFieldError nosuchfielderror) { return; } } } switch (_cls2..SwitchMap.com.olio.data.object.unit.ui.WatchUi.WatchFaceMode[ordinal()]) { default: return ""; case 1: // '\001' return "ANALOG"; case 2: // '\002' return "DIGITAL"; } } static { ANALOG = new WatchFaceMode("ANALOG", 0); DIGITAL = new WatchFaceMode("DIGITAL", 1); $VALUES = (new WatchFaceMode[] { ANALOG, DIGITAL }); } private WatchFaceMode(String s, int i) { super(s, i); } } 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 WatchUi[i]; } public volatile Object[] newArray(int i) { return newArray(i); } }; public static final String MODE_ANALOG = "ANALOG"; public static final String MODE_DIGITAL = "DIGITAL"; public static final String TYPE_NAME = "watch-ui"; private static final long serialVersionUID = 0xfe514a81bdf7d1eL; private WatchFaceMode watchFaceMode; public WatchUi() { } public static WatchUi get(ContentResolver contentresolver) { return (WatchUi)get("watch-ui", contentresolver); } public static Uri uriForWatchUi(ContentResolver contentresolver) { return (new WatchUi()).uriForRecords(contentresolver); } public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null || getClass() != obj.getClass()) { return false; } else { WatchUi watchui = (WatchUi)obj; return (new EqualsBuilder()).appendSuper(super.equals(obj)).append(watchFaceMode, watchui.watchFaceMode).isEquals(); } } public com.olio.olios.model.record.SerializedRecord.SerializedRecordObject getDefaultObject() { return WatchUiBuilder.aWatchUi().setWatchFaceMode(WatchFaceMode.ANALOG).setVersionNumber(0).build(); } public int getEndPointsFlags() { return 7; } public String getObjectId() { return "watch-ui"; } public int getSourcePointsFlags() { return 3; } public WatchFaceMode getWatchFaceMode() { return watchFaceMode; } public int hashCode() { return (new HashCodeBuilder(17, 37)).appendSuper(super.hashCode()).append(watchFaceMode).toHashCode(); } public void setWatchFaceMode(WatchFaceMode watchfacemode) { watchFaceMode = watchfacemode; } public String toString() { return (new StringBuilder()).append("WatchUi{watchFaceMode=").append(watchFaceMode).append("version=").append(getVersionNumber()).append('}').toString(); } public String typeName() { return "watch-ui"; } }