Sticker.java 1.82 KB
package com.bitstrips.imoji.models;

import com.google.gson.annotations.SerializedName;
import java.io.Serializable;
import java.util.List;
import org.apache.commons.lang3.builder.EqualsBuilder;

public class Sticker
  implements Serializable
{
  @SerializedName("template_id")
  String a;
  @SerializedName("comic_id")
  String b;
  @SerializedName("tags")
  List<String> c;
  @SerializedName("url")
  String d;
  @SerializedName("capabilities")
  List<String> e;
  
  public Sticker(String paramString1, String paramString2, List<String> paramList1, String paramString3, List<String> paramList2)
  {
    this.a = paramString1;
    this.b = paramString2;
    this.c = paramList1;
    this.d = paramString3;
    this.e = paramList2;
  }
  
  public boolean equals(Object paramObject)
  {
    if (paramObject == this) {
      return true;
    }
    if (!(paramObject instanceof Sticker)) {
      return false;
    }
    paramObject = (Sticker)paramObject;
    return new EqualsBuilder().append(this.b, ((Sticker)paramObject).getComicId()).append(this.d, ((Sticker)paramObject).getImageUrl()).append(this.c, ((Sticker)paramObject).getTags()).isEquals();
  }
  
  public List<String> getCapabilities()
  {
    return this.e;
  }
  
  public String getComicId()
  {
    return this.b;
  }
  
  public String getImageUrl()
  {
    return this.d;
  }
  
  public List<String> getTags()
  {
    return this.c;
  }
  
  public String getTemplateId()
  {
    return this.a;
  }
  
  public int hashCode()
  {
    if (this.d == null) {
      return 0;
    }
    return this.d.hashCode();
  }
  
  public boolean isSolomoji()
  {
    return !getCapabilities().contains("FRIENDS");
  }
}


/* Location:              /home/merong/decompile/hackery-dex2jar.jar!/com/bitstrips/imoji/models/Sticker.class
 * Java compiler version: 6 (50.0)
 * JD-Core Version:       0.7.1
 */