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

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

package me.chanjar.weixin.mp.bean;

import me.chanjar.weixin.mp.util.json.WxMpGsonBuilder;

import java.io.Serializable;

/**
 * 微信用户分组
 * @author chanjarster
 *
 */
public class WxMpGroup implements Serializable {

  /**
   * 
   */
  private static final long serialVersionUID = 1554709708638735270L;
  private long id = -1;
  private String name;
  private long count;
  public long getId() {
    return this.id;
  }
  public void setId(long id) {
    this.id = id;
  }
  public String getName() {
    return this.name;
  }
  public void setName(String name) {
    this.name = name;
  }
  public long getCount() {
    return this.count;
  }
  public void setCount(long count) {
    this.count = count;
  }
  
  public static WxMpGroup fromJson(String json) {
    return WxMpGsonBuilder.create().fromJson(json, WxMpGroup.class);
  }
  
  public String toJson() {
    return WxMpGsonBuilder.create().toJson(this);
  }
  @Override
  public String toString() {
    return "WxMpGroup [id=" + this.id + ", name=" + this.name + ", count=" + this.count + "]";
  }
  
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy