All Downloads are FREE. Search and download functionalities are using the official Maven repository.

me.chanjar.weixin.mp.bean.ocr.WxMpOcrPos Maven / Gradle / Ivy

There is a newer version: 4.6.9.B
Show newest version
package me.chanjar.weixin.mp.bean.ocr;

import com.google.gson.annotations.SerializedName;
import lombok.Data;
import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;

import java.io.Serializable;

/**
 * @author Theo Nie
 */
@Data
public class WxMpOcrPos implements Serializable {
  private static final long serialVersionUID = 4204160206873907920L;

  @SerializedName("left_top")
  private Coordinate leftTop;
  @SerializedName("right_top")
  private Coordinate rightTop;
  @SerializedName("right_bottom")
  private Coordinate rightBottom;
  @SerializedName("left_bottom")
  private Coordinate leftBottom;

  @Override
  public String toString() {
    return WxMpGsonBuilder.create().toJson(this);
  }

  @Data
  public static class Coordinate implements Serializable{
    private static final long serialVersionUID = 8675059935386304399L;
    @SerializedName("x")
    private int x;
    @SerializedName("y")
    private int y;

    @Override
    public String toString() {
      return WxMpGsonBuilder.create().toJson(this);
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy