/*
 * Copyright 2019 EPAM Systems
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

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

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

import java.util.List;

@JsonInclude(Include.NON_NULL)
public class TestItemHistoryElement {

	@JsonProperty(value = "testCaseId")
	private Integer testCaseId;

	@JsonProperty(value = "resources")
	private List<TestItemResource> resources;

	public Integer getTestCaseId() {
		return testCaseId;
	}

	public void setTestCaseId(Integer testCaseId) {
		this.testCaseId = testCaseId;
	}

	public List<TestItemResource> getResources() {
		return resources;
	}

	public void setResources(List<TestItemResource> resources) {
		this.resources = resources;
	}

	@Override
	public String toString() {
		return "TestItemHistoryElement{" + "testCaseId=" + testCaseId + ", resources=" + resources + '}';
	}
}
@@ -925,160 +925,357 @@
  = %22
-testCaseId%22)%0A%09private Integer testCaseId;%0A%0A%09@JsonProperty(value = %22resources%22)%0A%09private List%3CTestItemResource%3E resources;%0A%0A%09public Integer getTestCaseId
+launchNumber%22)%0A%09private String launchNumber;%0A%0A%09@JsonProperty(value = %22startTime%22)%0A%09private String startTime;%0A%0A%09@JsonProperty(value = %22launchId%22)%0A%09private Long launchId;%0A%0A%09@JsonProperty(value = %22resources%22)%0A%09private List%3CTestItemResource%3E resources;%0A%0A%09@JsonProperty(value = %22launchStatus%22)%0A%09public String launchStatus;%0A%0A%09public String getLaunchStatus
 () %7B
@@ -1284,26 +1284,28 @@
 %09return 
-testCaseId
+launchStatus
 ;%0A%09%7D%0A%0A%09p
@@ -1322,376 +1322,930 @@
  set
-TestCaseId(Integer testCaseId) %7B%0A%09%09this.testCaseId = testCaseId;%0A%09%7D%0A%0A%09public List%3CTestItemResource%3E getResources() %7B%0A%09%09return resources;%0A%09%7D%0A%0A%09public void setResources(List%3CTestItemResource%3E resources) %7B%0A%09%09this.resources = resources;%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return %22TestItemHistoryElement%7B%22 + %22testCaseId=%22 + testCaseId + %22, resources=%22 + resources
+LaunchStatus(String launchStatus) %7B%0A%09%09this.launchStatus = launchStatus;%0A%09%7D%0A%0A%09public String getLaunchNumber() %7B%0A%09%09return launchNumber;%0A%09%7D%0A%0A%09public void setLaunchNumber(String launchNumber) %7B%0A%09%09this.launchNumber = launchNumber;%0A%09%7D%0A%0A%09public List%3CTestItemResource%3E getResources() %7B%0A%09%09return resources;%0A%09%7D%0A%0A%09public void setResources(List%3CTestItemResource%3E resources) %7B%0A%09%09this.resources = resources;%0A%09%7D%0A%0A%09public String getStartTime() %7B%0A%09%09return startTime;%0A%09%7D%0A%0A%09public void setStartTime(String startTime) %7B%0A%09%09this.startTime = startTime;%0A%09%7D%0A%0A%09public Long getLaunchId() %7B%0A%09%09return launchId;%0A%09%7D%0A%0A%09public void setLaunchId(Long launchId) %7B%0A%09%09this.launchId = launchId;%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return %22TestItemHistoryElement%7B%22 + %22launchNumber='%22 + launchNumber + '%5C'' + %22, startTime='%22 + startTime + '%5C'' + %22, launchId='%22%0A%09%09%09%09+ launchId + '%5C'' + %22, resources=%22 + resources + %22, launchStatus='%22 + launchStatus + '%5C''
  + '

update test item history element