Class GetDefiInfoResponseResult


  • public class GetDefiInfoResponseResult
    extends Object
    Response result
    • Field Detail

      • 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
    • Constructor Detail

      • GetDefiInfoResponseResult

        public GetDefiInfoResponseResult()
    • Method Detail

      • 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)
      • 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)
      • 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)
      • 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)
      • getContractName

        public String getContractName()
        Name of the contract.
        Returns:
        contractName
      • setContractName

        public void setContractName​(String contractName)
      • 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)
      • 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)
      • 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)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • toIndentedString

        private String toIndentedString​(Object o)
        Convert the given object to string with each line indented by 4 spaces (except the first line).