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

me.chanjar.weixin.cp.bean.living.WxCpLivingResult Maven / Gradle / Ivy

package me.chanjar.weixin.cp.bean.living;

import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import me.chanjar.weixin.cp.util.json.WxCpGsonBuilder;

import java.io.Serializable;

/**
 * 直播返回对象.
 *
 * @author Wang_Wong
 */
@Data
public class WxCpLivingResult implements Serializable {
  private static final long serialVersionUID = -5028321625140879571L;

  @SerializedName("errcode")
  private Integer errcode;

  @SerializedName("errmsg")
  private String errmsg;

  @Getter
  @Setter
  public static class LivingIdResult implements Serializable {
    private static final long serialVersionUID = -5696099236344075582L;

    @SerializedName("next_cursor")
    private String nextCursor;

    @SerializedName("livingid_list")
    private String[] livingidList;

    public static LivingIdResult fromJson(String json) {
      return WxCpGsonBuilder.create().fromJson(json, LivingIdResult.class);
    }

    public String toJson() {
      return WxCpGsonBuilder.create().toJson(this);
    }

  }

  public static WxCpLivingResult fromJson(String json) {
    return WxCpGsonBuilder.create().fromJson(json, WxCpLivingResult.class);
  }

  public String toJson() {
    return WxCpGsonBuilder.create().toJson(this);
  }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy