package com.sandjelkovic.dispatchd.trakt.dto;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.RequiredArgsConstructor;

import java.time.Instant;
import java.util.HashMap;
import java.util.Map;

@JsonIgnoreProperties(ignoreUnknown = true)
@Data
@RequiredArgsConstructor
@AllArgsConstructor
public class TvShowTrakt {
	private String title;
	private Integer year;
	private String status;
	@JsonProperty("updated_at")
	private Instant updatedAt;
	private String overview;
	private Map<String, String> ids = new HashMap<>();

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public Integer getYear() {
		return year;
	}

	public void setYear(Integer year) {
		this.year = year;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public Instant getUpdatedAt() {
		return updatedAt;
	}

	public void setUpdatedAt(Instant updatedAt) {
		this.updatedAt = updatedAt;
	}

	public Map<String, String> getIds() {
		return ids;
	}

	public void setIds(Map<String, String> ids) {
		this.ids = ids;
	}

	public String getOverview() {
		return overview;
	}

	public void setOverview(String overview) {
		this.overview = overview;
	}

	@Override
	public String toString() {
		return "TvShowTrakt{" +
				"title='" + title + '\'' +
				", year=" + year +
				", status='" + status + '\'' +
				", updatedAt=" + updatedAt +
				", overview='" + overview + '\'' +
				", ids=" + ids +
				'}';
	}

	@Override
	public boolean equals(Object o) {
		if (this == o) return true;
		if (o == null || getClass() != o.getClass()) return false;

		TvShowTrakt that = (TvShowTrakt) o;

		if (title != null ? !title.equals(that.title) : that.title != null) return false;
		if (year != null ? !year.equals(that.year) : that.year != null) return false;
		if (status != null ? !status.equals(that.status) : that.status != null) return false;
		if (updatedAt != null ? !updatedAt.equals(that.updatedAt) : that.updatedAt != null) return false;
		if (overview != null ? !overview.equals(that.overview) : that.overview != null) return false;
		return ids != null ? ids.equals(that.ids) : that.ids == null;

	}

	@Override
	public int hashCode() {
		int result = title != null ? title.hashCode() : 0;
		result = 31 * result + (year != null ? year.hashCode() : 0);
		result = 31 * result + (status != null ? status.hashCode() : 0);
		result = 31 * result + (updatedAt != null ? updatedAt.hashCode() : 0);
		result = 31 * result + (overview != null ? overview.hashCode() : 0);
		result = 31 * result + (ids != null ? ids.hashCode() : 0);
		return result;
	}
}

@@ -657,2136 +657,6 @@
 );%0A%0A
-%09public String getTitle() %7B%0A%09%09return title;%0A%09%7D%0A%0A%09public void setTitle(String title) %7B%0A%09%09this.title = title;%0A%09%7D%0A%0A%09public Integer getYear() %7B%0A%09%09return year;%0A%09%7D%0A%0A%09public void setYear(Integer year) %7B%0A%09%09this.year = year;%0A%09%7D%0A%0A%09public String getStatus() %7B%0A%09%09return status;%0A%09%7D%0A%0A%09public void setStatus(String status) %7B%0A%09%09this.status = status;%0A%09%7D%0A%0A%09public Instant getUpdatedAt() %7B%0A%09%09return updatedAt;%0A%09%7D%0A%0A%09public void setUpdatedAt(Instant updatedAt) %7B%0A%09%09this.updatedAt = updatedAt;%0A%09%7D%0A%0A%09public Map%3CString, String%3E getIds() %7B%0A%09%09return ids;%0A%09%7D%0A%0A%09public void setIds(Map%3CString, String%3E ids) %7B%0A%09%09this.ids = ids;%0A%09%7D%0A%0A%09public String getOverview() %7B%0A%09%09return overview;%0A%09%7D%0A%0A%09public void setOverview(String overview) %7B%0A%09%09this.overview = overview;%0A%09%7D%0A%0A%09@Override%0A%09public String toString() %7B%0A%09%09return %22TvShowTrakt%7B%22 +%0A%09%09%09%09%22title='%22 + title + '%5C'' +%0A%09%09%09%09%22, year=%22 + year +%0A%09%09%09%09%22, status='%22 + status + '%5C'' +%0A%09%09%09%09%22, updatedAt=%22 + updatedAt +%0A%09%09%09%09%22, overview='%22 + overview + '%5C'' +%0A%09%09%09%09%22, ids=%22 + ids +%0A%09%09%09%09'%7D';%0A%09%7D%0A%0A%09@Override%0A%09public boolean equals(Object o) %7B%0A%09%09if (this == o) return true;%0A%09%09if (o == null %7C%7C getClass() != o.getClass()) return false;%0A%0A%09%09TvShowTrakt that = (TvShowTrakt) o;%0A%0A%09%09if (title != null ? !title.equals(that.title) : that.title != null) return false;%0A%09%09if (year != null ? !year.equals(that.year) : that.year != null) return false;%0A%09%09if (status != null ? !status.equals(that.status) : that.status != null) return false;%0A%09%09if (updatedAt != null ? !updatedAt.equals(that.updatedAt) : that.updatedAt != null) return false;%0A%09%09if (overview != null ? !overview.equals(that.overview) : that.overview != null) return false;%0A%09%09return ids != null ? ids.equals(that.ids) : that.ids == null;%0A%0A%09%7D%0A%0A%09@Override%0A%09public int hashCode() %7B%0A%09%09int result = title != null ? title.hashCode() : 0;%0A%09%09result = 31 * result + (year != null ? year.hashCode() : 0);%0A%09%09result = 31 * result + (status != null ? status.hashCode() : 0);%0A%09%09result = 31 * result + (updatedAt != null ? updatedAt.hashCode() : 0);%0A%09%09result = 31 * result + (overview != null ? overview.hashCode() : 0);%0A%09%09result = 31 * result + (ids != null ? ids.hashCode() : 0);%0A%09%09return result;%0A%09%7D%0A
 %7D%0A

Remove leftovers from Lombok conversion