package sizebay.catalog.client.model;

import java.util.Objects;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
@javax.annotation.Generated(value = "class io.swagger.codegen.languages.JavaClientCodegen", date = "2016-02-03T14:09:54.342Z")
public class Category   {
  
  private Long id = null;
  private String name = null;
  private Long strongCategoryId = null;
  private String strongCategoryName = null;
	private Long strongCategoryTypeId = null;
	private String strongCategoryTypeName = null;
	private Integer shoeCategory = null;

  @Getter
  private ClothesType clothesType = ClothesType.FULL_BODY;

  /**
   * Unique identifier representing a specific category. (Read only)
   **/

  @ApiModelProperty(value = "Unique identifier representing a specific category. (Read only)")
  @JsonProperty("id")
  public Long getId() {
    return id;
  }
  public void setId(Long id) {
    this.id = id;
  }

  /**
   * Category name.
   **/
  
  @ApiModelProperty(value = "Category name.")
  @JsonProperty("name")
  public String getName() {
    return name;
  }
  public void setName(String name) {
    this.name = name;
  }

  @Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    Category category = (Category) o;

    return true && Objects.equals(id, category.id) &&
        Objects.equals(name, category.name)
    ;
  }

  @Override
  public int hashCode() {
    return Objects.hash(id, name, clothesType);
  }

  @Override
  public String toString() {
    StringBuilder sb = new StringBuilder();
    sb.append("class Category {\n");
    sb.append("    id: ").append(toIndentedString(id)).append("\n");
    sb.append("    name: ").append(toIndentedString(name)).append("\n");
    sb.append("    clothesType: ").append(toIndentedString(clothesType)).append("\n");
    sb.append("}");
    return sb.toString();
  }

  /**
   * Convert the given object to string with each line indented by 4 spaces
   * (except the first line).
   */
  private String toIndentedString(Object o) {
    if (o == null) {
      return "null";
    }
    return o.toString().replace("\n", "\n    ");
  }
}


@@ -518,38 +518,33 @@
  null;%0A%09private 
-Long s
+S
 trongCategoryTyp
@@ -548,34 +548,8 @@
 Type
-Id = null;%0A%09private String
  str
@@ -563,20 +563,16 @@
 goryType
-Name
  = null;
@@ -585,17 +585,19 @@
 ate 
-Integer s
+boolean isS
 hoeC
@@ -603,23 +603,16 @@
 Category
- = null
 ;%0A%0A  @Ge
@@ -1188,24 +1188,210 @@
  name;%0A  %7D%0A%0A
+%09@JsonProperty(%22isShoeCategory%22)%0A%09public boolean getIsShoeCategory() %7B%0A%09%09return this.getStrongCategoryType() != null && this.getStrongCategoryType().equals(StrongCategoryType.shoe);%0A%09%7D%0A%0A
   @Override%0A

change strongCategoryType and isShoeCategory | Category