AirResponseNative.java 3.07 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;

@JsonAdapter(SojuTypeAdapterFactory.class)
@SojuJsonAdapter(AirResponseAdapter.class)
public class AirResponseNative
  extends SojuObject
  implements AirResponse
{
  @SerializedName("backoff_time")
  protected Long backoffTime;
  @SerializedName("debug_info")
  protected String debugInfo;
  @SerializedName("status_code")
  protected Integer statusCode;
  @SerializedName("upload_url")
  protected String uploadUrl;
  
  public boolean equals(Object paramObject)
  {
    if (paramObject == this) {}
    do
    {
      return true;
      if ((paramObject == null) || (!(paramObject instanceof AirResponse))) {
        return false;
      }
      paramObject = (AirResponse)paramObject;
    } while ((Objects.equal(getStatusCode(), ((AirResponse)paramObject).getStatusCode())) && (Objects.equal(getUploadUrl(), ((AirResponse)paramObject).getUploadUrl())) && (Objects.equal(getBackoffTime(), ((AirResponse)paramObject).getBackoffTime())) && (Objects.equal(getDebugInfo(), ((AirResponse)paramObject).getDebugInfo())));
    return false;
  }
  
  public final Long getBackoffTime()
  {
    return this.backoffTime;
  }
  
  public final String getDebugInfo()
  {
    return this.debugInfo;
  }
  
  public final Integer getStatusCode()
  {
    return this.statusCode;
  }
  
  public final AirStatusCode getStatusCodeEnum()
  {
    return AirStatusCode.fromValue(this.statusCode);
  }
  
  public final String getUploadUrl()
  {
    return this.uploadUrl;
  }
  
  public int hashCode()
  {
    int m = 0;
    int i;
    int j;
    label21:
    int k;
    if (this.statusCode == null)
    {
      i = 0;
      if (this.uploadUrl != null) {
        break label63;
      }
      j = 0;
      if (this.backoffTime != null) {
        break label77;
      }
      k = 0;
      label30:
      if (this.debugInfo != null) {
        break label91;
      }
    }
    for (;;)
    {
      return k + (i + 17 + j) + m;
      i = this.statusCode.hashCode() * 37;
      break;
      label63:
      j = this.uploadUrl.hashCode() * 37;
      break label21;
      label77:
      k = this.backoffTime.hashCode() * 37;
      break label30;
      label91:
      m = this.debugInfo.hashCode() * 37;
    }
  }
  
  public final void setBackoffTime(Long paramLong)
  {
    this.backoffTime = paramLong;
  }
  
  public final void setDebugInfo(String paramString)
  {
    this.debugInfo = paramString;
  }
  
  public final void setStatusCode(Integer paramInteger)
  {
    this.statusCode = paramInteger;
  }
  
  public final void setUploadUrl(String paramString)
  {
    this.uploadUrl = paramString;
  }
}


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