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

me.chanjar.weixin.mp.bean.card.UserCard Maven / Gradle / Ivy

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

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

/**
 * 用户已领卡圈对象
 * @author yang229
 * created on  2019/12/22
 */
@Data
public class UserCard implements java.io.Serializable {
  /**
   * 用户卡券code码
   */
  @SerializedName("code")
  private String code;

  /**
   * 卡券ID
   */
  @SerializedName("card_id")
  private String cardId;

  public static UserCard fromJson(String json) {
    return WxMpGsonBuilder.create().fromJson(json, UserCard.class);
  }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy