AirRequestNative.java 7.64 KB
package com.snapchat.soju.shared.android.air;

import com.google.common.base.Objects;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.snapchat.soju.shared.android.SojuJsonAdapter;
import com.snapchat.soju.shared.android.SojuObject;
import com.snapchat.soju.shared.android.SojuTypeAdapterFactory;
import java.util.List;

@JsonAdapter(SojuTypeAdapterFactory.class)
@SojuJsonAdapter(AirRequestAdapter.class)
public class AirRequestNative
  extends SojuObject
  implements AirRequest
{
  @SerializedName("bandwidth")
  protected Long bandwidth;
  @SerializedName("connection_type")
  protected String connectionType;
  @SerializedName("description")
  protected String description;
  @SerializedName("device_score")
  protected Double deviceScore;
  @SerializedName("feature")
  protected String feature;
  @SerializedName("id")
  protected String id;
  @SerializedName("notification_emails")
  protected List<String> notificationEmails;
  @SerializedName("other_info")
  protected String otherInfo;
  @SerializedName("report_option")
  protected ReportOption reportOption;
  @SerializedName("report_type")
  protected String reportType;
  @SerializedName("shake_sensitivity")
  protected String shakeSensitivity;
  @SerializedName("sub_feature")
  protected String subFeature;
  
  public boolean equals(Object paramObject)
  {
    if (paramObject == this) {}
    do
    {
      return true;
      if ((paramObject == null) || (!(paramObject instanceof AirRequest))) {
        return false;
      }
      paramObject = (AirRequest)paramObject;
    } while ((Objects.equal(getId(), ((AirRequest)paramObject).getId())) && (Objects.equal(getReportType(), ((AirRequest)paramObject).getReportType())) && (Objects.equal(getDescription(), ((AirRequest)paramObject).getDescription())) && (Objects.equal(getFeature(), ((AirRequest)paramObject).getFeature())) && (Objects.equal(getSubFeature(), ((AirRequest)paramObject).getSubFeature())) && (Objects.equal(getConnectionType(), ((AirRequest)paramObject).getConnectionType())) && (Objects.equal(getBandwidth(), ((AirRequest)paramObject).getBandwidth())) && (Objects.equal(getShakeSensitivity(), ((AirRequest)paramObject).getShakeSensitivity())) && (Objects.equal(getDeviceScore(), ((AirRequest)paramObject).getDeviceScore())) && (Objects.equal(getOtherInfo(), ((AirRequest)paramObject).getOtherInfo())) && (Objects.equal(getReportOption(), ((AirRequest)paramObject).getReportOption())) && (Objects.equal(getNotificationEmails(), ((AirRequest)paramObject).getNotificationEmails())));
    return false;
  }
  
  public final Long getBandwidth()
  {
    return this.bandwidth;
  }
  
  public final String getConnectionType()
  {
    return this.connectionType;
  }
  
  public final NetworkConnectionType getConnectionTypeEnum()
  {
    return NetworkConnectionType.fromValue(this.connectionType);
  }
  
  public final String getDescription()
  {
    return this.description;
  }
  
  public final Double getDeviceScore()
  {
    return this.deviceScore;
  }
  
  public final String getFeature()
  {
    return this.feature;
  }
  
  public final String getId()
  {
    return this.id;
  }
  
  public final List<String> getNotificationEmails()
  {
    return this.notificationEmails;
  }
  
  public final String getOtherInfo()
  {
    return this.otherInfo;
  }
  
  public final ReportOption getReportOption()
  {
    return this.reportOption;
  }
  
  public final String getReportType()
  {
    return this.reportType;
  }
  
  public final ReportType getReportTypeEnum()
  {
    return ReportType.fromValue(this.reportType);
  }
  
  public final String getShakeSensitivity()
  {
    return this.shakeSensitivity;
  }
  
  public final ShakeSensitivityType getShakeSensitivityEnum()
  {
    return ShakeSensitivityType.fromValue(this.shakeSensitivity);
  }
  
  public final String getSubFeature()
  {
    return this.subFeature;
  }
  
  public int hashCode()
  {
    int i7 = 0;
    int i;
    int j;
    label21:
    int k;
    label30:
    int m;
    label40:
    int n;
    label50:
    int i1;
    label60:
    int i2;
    label70:
    int i3;
    label80:
    int i4;
    label90:
    int i5;
    label100:
    int i6;
    if (this.id == null)
    {
      i = 0;
      if (this.reportType != null) {
        break label167;
      }
      j = 0;
      if (this.description != null) {
        break label181;
      }
      k = 0;
      if (this.feature != null) {
        break label195;
      }
      m = 0;
      if (this.subFeature != null) {
        break label210;
      }
      n = 0;
      if (this.connectionType != null) {
        break label225;
      }
      i1 = 0;
      if (this.bandwidth != null) {
        break label240;
      }
      i2 = 0;
      if (this.shakeSensitivity != null) {
        break label255;
      }
      i3 = 0;
      if (this.deviceScore != null) {
        break label270;
      }
      i4 = 0;
      if (this.otherInfo != null) {
        break label285;
      }
      i5 = 0;
      if (this.reportOption != null) {
        break label300;
      }
      i6 = 0;
      label110:
      if (this.notificationEmails != null) {
        break label315;
      }
    }
    for (;;)
    {
      return i6 + (i + 17 + j + k + m + n + i1 + i2 + i3 + i4 + i5) + i7;
      i = this.id.hashCode() * 37;
      break;
      label167:
      j = this.reportType.hashCode() * 37;
      break label21;
      label181:
      k = this.description.hashCode() * 37;
      break label30;
      label195:
      m = this.feature.hashCode() * 37;
      break label40;
      label210:
      n = this.subFeature.hashCode() * 37;
      break label50;
      label225:
      i1 = this.connectionType.hashCode() * 37;
      break label60;
      label240:
      i2 = this.bandwidth.hashCode() * 37;
      break label70;
      label255:
      i3 = this.shakeSensitivity.hashCode() * 37;
      break label80;
      label270:
      i4 = this.deviceScore.hashCode() * 37;
      break label90;
      label285:
      i5 = this.otherInfo.hashCode() * 37;
      break label100;
      label300:
      i6 = this.reportOption.hashCode() * 37;
      break label110;
      label315:
      i7 = this.notificationEmails.hashCode() * 37;
    }
  }
  
  public final void setBandwidth(Long paramLong)
  {
    this.bandwidth = paramLong;
  }
  
  public final void setConnectionType(String paramString)
  {
    this.connectionType = paramString;
  }
  
  public final void setDescription(String paramString)
  {
    this.description = paramString;
  }
  
  public final void setDeviceScore(Double paramDouble)
  {
    this.deviceScore = paramDouble;
  }
  
  public final void setFeature(String paramString)
  {
    this.feature = paramString;
  }
  
  public final void setId(String paramString)
  {
    this.id = paramString;
  }
  
  public final void setNotificationEmails(List<String> paramList)
  {
    this.notificationEmails = paramList;
  }
  
  public final void setOtherInfo(String paramString)
  {
    this.otherInfo = paramString;
  }
  
  public final void setReportOption(ReportOption paramReportOption)
  {
    this.reportOption = paramReportOption;
  }
  
  public final void setReportType(String paramString)
  {
    this.reportType = paramString;
  }
  
  public final void setShakeSensitivity(String paramString)
  {
    this.shakeSensitivity = paramString;
  }
  
  public final void setSubFeature(String paramString)
  {
    this.subFeature = paramString;
  }
  
  public void validate()
  {
    if (getId() == null) {
      throw new IllegalStateException("id is required to be initialized.");
    }
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/snapchat/soju/shared/android/air/AirRequestNative.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */