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

com.github.DNAProject.common.NotifyEventInfo Maven / Gradle / Ivy

The newest version!
package com.github.DNAProject.common;

import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.annotation.JSONField;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class NotifyEventInfo {
    public List States;
    public String ContractAddress;
    public List getStates() {
        return States;
    }

    public void setStates(List states) {
        States = states;
    }

    public String getContractAddress() {
        return ContractAddress;
    }

    public void setContractAddress(String contractAddress) {
        ContractAddress = contractAddress;
    }

    public String toJson(){
        Map map = new HashMap();
        map.put("States", States);
        map.put("ContractAddress", ContractAddress);
        return JSON.toJSONString(map);
    }

}