Package io.gopluslabs.client.model
Class GetDefiInfoResponseResult
- java.lang.Object
-
- io.gopluslabs.client.model.GetDefiInfoResponseResult
-
public class GetDefiInfoResponseResult extends Object
Response result
-
-
Field Summary
Fields Modifier and Type Field Description private IntegerapprovalAbuseprivate Integerblacklistprivate StringcontractNameprivate IntegerisOpenSourceprivate IntegerisProxyprivate GetDefiInfoResponseResultOwnerownerprivate IntegerprivilegeWithdrawprivate Integerselfdestructprivate IntegerwithdrawMissing
-
Constructor Summary
Constructors Constructor Description GetDefiInfoResponseResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetDefiInfoResponseResultapprovalAbuse(Integer approvalAbuse)GetDefiInfoResponseResultblacklist(Integer blacklist)GetDefiInfoResponseResultcontractName(String contractName)booleanequals(Object o)IntegergetApprovalAbuse()It describes whether the owner can spend the allowance that obtained by the contract.IntegergetBlacklist()It describes whether the contract has blacklist function that would block user from withdrawing their assetsStringgetContractName()Name of the contract.IntegergetIsOpenSource()It describes whether this contract is open sourceIntegergetIsProxy()It describes whether this contract has a proxy contractGetDefiInfoResponseResultOwnergetOwner()Get ownerIntegergetPrivilegeWithdraw()It descirbes whether the contract owner can withdraw all the assets in the contract, without uses' permissionIntegergetSelfdestruct()It describes whether this contract can self destructIntegergetWithdrawMissing()It describes whether the contract lacks withdrawal method.inthashCode()GetDefiInfoResponseResultisOpenSource(Integer isOpenSource)GetDefiInfoResponseResultisProxy(Integer isProxy)GetDefiInfoResponseResultowner(GetDefiInfoResponseResultOwner owner)GetDefiInfoResponseResultprivilegeWithdraw(Integer privilegeWithdraw)GetDefiInfoResponseResultselfdestruct(Integer selfdestruct)voidsetApprovalAbuse(Integer approvalAbuse)voidsetBlacklist(Integer blacklist)voidsetContractName(String contractName)voidsetIsOpenSource(Integer isOpenSource)voidsetIsProxy(Integer isProxy)voidsetOwner(GetDefiInfoResponseResultOwner owner)voidsetPrivilegeWithdraw(Integer privilegeWithdraw)voidsetSelfdestruct(Integer selfdestruct)voidsetWithdrawMissing(Integer withdrawMissing)private StringtoIndentedString(Object o)Convert the given object to string with each line indented by 4 spaces (except the first line).StringtoString()GetDefiInfoResponseResultwithdrawMissing(Integer withdrawMissing)
-
-
-
Field Detail
-
owner
@SerializedName("owner") private GetDefiInfoResponseResultOwner owner
-
privilegeWithdraw
@SerializedName("privilege_withdraw") private Integer privilegeWithdraw
-
withdrawMissing
@SerializedName("withdraw_missing") private Integer withdrawMissing
-
isOpenSource
@SerializedName("is_open_source") private Integer isOpenSource
-
blacklist
@SerializedName("blacklist") private Integer blacklist
-
contractName
@SerializedName("contract_name") private String contractName
-
selfdestruct
@SerializedName("selfdestruct") private Integer selfdestruct
-
isProxy
@SerializedName("is_proxy") private Integer isProxy
-
approvalAbuse
@SerializedName("approval_abuse") private Integer approvalAbuse
-
-
Method Detail
-
owner
public GetDefiInfoResponseResult owner(GetDefiInfoResponseResultOwner owner)
-
getOwner
public GetDefiInfoResponseResultOwner getOwner()
Get owner- Returns:
- owner
-
setOwner
public void setOwner(GetDefiInfoResponseResultOwner owner)
-
privilegeWithdraw
public GetDefiInfoResponseResult privilegeWithdraw(Integer privilegeWithdraw)
-
getPrivilegeWithdraw
public Integer getPrivilegeWithdraw()
It descirbes whether the contract owner can withdraw all the assets in the contract, without uses' permission. \"1\" means true; \"0\" means false; \"-1\" means unknown.- Returns:
- privilegeWithdraw
-
setPrivilegeWithdraw
public void setPrivilegeWithdraw(Integer privilegeWithdraw)
-
withdrawMissing
public GetDefiInfoResponseResult withdrawMissing(Integer withdrawMissing)
-
getWithdrawMissing
public Integer getWithdrawMissing()
It describes whether the contract lacks withdrawal method. If it is missing, users will be unable to withdraw the assets they have putted in. \"1\" means true; \"0\" means false; \"-1\" means unknown.- Returns:
- withdrawMissing
-
setWithdrawMissing
public void setWithdrawMissing(Integer withdrawMissing)
-
isOpenSource
public GetDefiInfoResponseResult isOpenSource(Integer isOpenSource)
-
getIsOpenSource
public Integer getIsOpenSource()
It describes whether this contract is open source. \"1\" means true; \"0\" means false.- Returns:
- isOpenSource
-
setIsOpenSource
public void setIsOpenSource(Integer isOpenSource)
-
blacklist
public GetDefiInfoResponseResult blacklist(Integer blacklist)
-
getBlacklist
public Integer getBlacklist()
It describes whether the contract has blacklist function that would block user from withdrawing their assets. \"1\" means true; \"0\" means false; \"-1\" means unknown.- Returns:
- blacklist
-
setBlacklist
public void setBlacklist(Integer blacklist)
-
contractName
public GetDefiInfoResponseResult contractName(String contractName)
-
getContractName
public String getContractName()
Name of the contract.- Returns:
- contractName
-
setContractName
public void setContractName(String contractName)
-
selfdestruct
public GetDefiInfoResponseResult selfdestruct(Integer selfdestruct)
-
getSelfdestruct
public Integer getSelfdestruct()
It describes whether this contract can self destruct. \"1\" means true; \"0\" means false; \"-1\" means unknown.- Returns:
- selfdestruct
-
setSelfdestruct
public void setSelfdestruct(Integer selfdestruct)
-
isProxy
public GetDefiInfoResponseResult isProxy(Integer isProxy)
-
getIsProxy
public Integer getIsProxy()
It describes whether this contract has a proxy contract. \"1\" means true; \"0\" means false; \"-1\" means unknown.- Returns:
- isProxy
-
setIsProxy
public void setIsProxy(Integer isProxy)
-
approvalAbuse
public GetDefiInfoResponseResult approvalAbuse(Integer approvalAbuse)
-
getApprovalAbuse
public Integer getApprovalAbuse()
It describes whether the owner can spend the allowance that obtained by the contract. If so, this function could potentially be abused to steal user assets. \"1\" means true; \"0\" means false; \"-1\" means unknown.- Returns:
- approvalAbuse
-
setApprovalAbuse
public void setApprovalAbuse(Integer approvalAbuse)
-
-