AvatarBuilderSelection.java 1.81 KB
package com.bitstrips.imoji.abv3;

import android.support.annotation.Nullable;
import com.bitstrips.imoji.abv3.model.AvatarBrand;
import com.bitstrips.imoji.abv3.model.AvatarLookAlike;
import com.bitstrips.imoji.abv3.model.AvatarOption;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;

public class AvatarBuilderSelection
{
  private Map<String, Integer> a = new HashMap();
  private AvatarLookAlike b;
  private AvatarBrand c;
  
  public AvatarLookAlike getLookAlike()
  {
    return this.b;
  }
  
  @Nullable
  public AvatarBrand getSelectedBrand()
  {
    return this.c;
  }
  
  public Integer getSelectedOption(String paramString)
  {
    return (Integer)this.a.get(paramString);
  }
  
  public Map<String, Integer> getSelectedOptions()
  {
    return Collections.unmodifiableMap(this.a);
  }
  
  public Map<String, Integer> getSelectedOptionsWithLookAlike()
  {
    HashMap localHashMap = new HashMap();
    if (this.b != null) {
      localHashMap.putAll(this.b.getValueMap());
    }
    localHashMap.putAll(this.a);
    return Collections.unmodifiableMap(localHashMap);
  }
  
  public void setBrand(AvatarBrand paramAvatarBrand)
  {
    this.c = paramAvatarBrand;
  }
  
  public void setLookAlike(AvatarLookAlike paramAvatarLookAlike)
  {
    this.b = paramAvatarLookAlike;
  }
  
  public void setOption(String paramString, AvatarOption paramAvatarOption)
  {
    Map localMap = this.a;
    if (paramAvatarOption == null) {}
    for (paramAvatarOption = null;; paramAvatarOption = Integer.valueOf(paramAvatarOption.getValue()))
    {
      localMap.put(paramString, paramAvatarOption);
      return;
    }
  }
}


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