/*
 * Copyright 2016 EPAM Systems
 * 
 * 
 * This file is part of EPAM Report Portal.
 * https://github.com/reportportal/commons-model
 * 
 * Report Portal is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Report Portal is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Report Portal.  If not, see <http://www.gnu.org/licenses/>.
 */ 

package com.epam.ta.reportportal.ws.model.project.config;

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

import org.springframework.hateoas.ResourceSupport;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Project settings resource output
 * 
 * @author Andrei_Ramanchuk
 *
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ProjectSettingsResource extends ResourceSupport {

	@JsonProperty(value = "project", required = true)
	private String projectId;

	@JsonProperty(value = "subTypes", required = true)
	private Map<String, List<IssueSubTypeResource>> subTypes;

	@JsonProperty
	private String statsCalculationStrategy;

	public void setProjectId(String id) {
		this.projectId = id;
	}

	public String getProjectId() {
		return projectId;
	}

	public void setSubTypes(Map<String, List<IssueSubTypeResource>> types) {
		this.subTypes = types;
	}

	public Map<String, List<IssueSubTypeResource>> getSubTypes() {
		return subTypes;
	}

	public String getStatsCalculationStrategy() {
		return statsCalculationStrategy;
	}

	public void setStatsCalculationStrategy(String statsCalculationStrategy) {
		this.statsCalculationStrategy = statsCalculationStrategy;
	}
}
/*
 * Copyright 2016 EPAM Systems
 * 
 * 
 * This file is part of EPAM Report Portal.
 * https://github.com/reportportal/commons-model
 * 
 * Report Portal is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * Report Portal is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with Report Portal.  If not, see <http://www.gnu.org/licenses/>.
 */ 

package com.epam.ta.reportportal.ws.model.project.config;

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

import org.springframework.hateoas.ResourceSupport;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Project settings resource output
 * 
 * @author Andrei_Ramanchuk
 *
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ProjectSettingsResource extends ResourceSupport {

	@JsonProperty(value = "project", required = true)
	private String projectId;

	@JsonProperty(value = "subTypes", required = true)
	private Map<String, List<IssueSubTypeResource>> subTypes;

	@JsonProperty
	private String statisticsStrategy;

	public void setProjectId(String id) {
		this.projectId = id;
	}

	public String getProjectId() {
		return projectId;
	}

	public void setSubTypes(Map<String, List<IssueSubTypeResource>> types) {
		this.subTypes = types;
	}

	public Map<String, List<IssueSubTypeResource>> getSubTypes() {
		return subTypes;
	}

	public String getStatisticsStrategy() {
		return statisticsStrategy;
	}

	public void setStatisticsStrategy(String statisticsStrategy) {
		this.statisticsStrategy = statisticsStrategy;
	}
}
update some field names