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

me.chanjar.weixin.mp.bean.WxMpShakeQuery Maven / Gradle / Ivy

The newest version!
package me.chanjar.weixin.mp.bean;

import com.google.gson.Gson;
import lombok.Data;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

/**
 * Created by rememberber on 2017/6/5.
 *
 * @author rememberber
 */
@Data
public class WxMpShakeQuery implements Serializable {
  private static final long serialVersionUID = 4316527352035275412L;

  private String ticket;

  private int needPoi;

  public String toJsonString() {
    Map map = new HashMap<>();
    map.put("ticket", this.ticket);
    map.put("need_poi", this.needPoi);
    return new Gson().toJson(map);
  }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy