me.chanjar.weixin.open.bean.result.WxOpenMaDomainResult Maven / Gradle / Ivy
The newest version!
package me.chanjar.weixin.open.bean.result;
import com.google.gson.annotations.SerializedName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import me.chanjar.weixin.common.util.json.WxGsonBuilder;
import java.util.List;
/**
* 微信开放平台小程序域名设置返回对象.
*
* @author yqx
* created on 2018/9/12
*/
@Data
@EqualsAndHashCode(callSuper = true)
public class WxOpenMaDomainResult extends WxOpenResult {
private static final long serialVersionUID = 3406315629639573330L;
/**
* request合法域名
*/
@SerializedName("requestdomain")
private List requestDomain;
/**
* socket合法域名
*/
@SerializedName("wsrequestdomain")
private List wsRequestDomain;
/**
* uploadFile合法域名
*/
@SerializedName("uploaddomain")
private List uploadDomain;
/**
* downloadFile合法域名
*/
@SerializedName("downloaddomain")
private List downloadDomain;
/**
* request不合法域名
*/
@SerializedName("invalid_requestdomain")
private List invalidRequestDomain;
/**
* socket不合法域名
*/
@SerializedName("invalid_wsrequestdomain")
private List invalidWsRequestDomain;
/**
* uploadFile不合法域名
*/
@SerializedName("invalid_uploaddomain")
private List invalidUploadDomain;
/**
* downloadFile不合法域名
*/
@SerializedName("invalid_downloaddomain")
private List invalidDownloadDomain;
public static WxOpenMaDomainResult fromJson(String json) {
return WxGsonBuilder.create().fromJson(json, WxOpenMaDomainResult.class);
}
}