package br.com.centralit.citsmart.rest.v3.schema;

import java.util.HashMap;

import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlType;

import br.com.centralit.citsmart.rest.schema.CtMessage;

@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "CtDataQuery")
public class CtDataQuery extends CtMessage {
	
    @XmlElement(name = "QueryName", required = true)
    protected String queryName;

    @XmlElement(name = "Parameters", required = false)
    protected HashMap<String, Object> parameters;

	public String getQueryName() {
		return queryName;
	}

	public void setQueryName(String queryName) {
		this.queryName = queryName;
	}

	public HashMap<String, Object> getParameters() {
        if (parameters == null) {
        	parameters = new HashMap<String, Object>();
        }
		return parameters;
	}

	public void setParameters(HashMap<String, Object> parameters) {
		this.parameters = parameters;
	}
    
}
