package com.red.circle.other.app.dto.clientobject.sys;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.red.circle.framework.dto.ClientObject;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * 过期编号.
 *
 * @author houyong on 2020/12/3
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@JsonIgnoreProperties(ignoreUnknown = true)
public class CountryCodeCO extends ClientObject {

  /**
   * id.
   */
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  /**
   * 两位字母编码.
   */
  private String alphaTwo;

  /**
   * 三位字母编码.
   */
  private String alphaThree;

  /**
   * 国家名称.
   */
  private String countryName;

  /**
   * 别名.
   */
  private String aliasName;

  /**
   * 国旗.
   */
  private String nationalFlag;

  /**
   * 手机前缀.
   */
  private Integer phonePrefix;

  /**
   * 权重序号.
   */
  private Boolean open;

  /**
   * 是否置顶 0.未置顶 1.置顶.
   */
  private Boolean top;

  @Deprecated
  public String getEnName() {
    return this.aliasName;
  }
}
