package de.deadlocker8.budgetmaster.database.model.v4;

import java.util.Objects;

public class BackupRepeatingEndOption_v4
{
	private String localizationKey;
	private int times;
	private String endDate;

	public BackupRepeatingEndOption_v4()
	{
		// for GSON
	}

	public String getLocalizationKey()
	{
		return localizationKey;
	}

	public void setLocalizationKey(String localizationKey)
	{
		this.localizationKey = localizationKey;
	}

	public int getTimes()
	{
		return times;
	}

	public void setTimes(int times)
	{
		this.times = times;
	}

	public String getEndDate()
	{
		return endDate;
	}

	public void setEndDate(String endDate)
	{
		this.endDate = endDate;
	}

	@Override
	public boolean equals(Object o)
	{
		if(this == o) return true;
		if(o == null || getClass() != o.getClass()) return false;
		BackupRepeatingEndOption_v4 that = (BackupRepeatingEndOption_v4) o;
		return times == that.times && Objects.equals(localizationKey, that.localizationKey) && Objects.equals(endDate, that.endDate);
	}

	@Override
	public int hashCode()
	{
		return Objects.hash(localizationKey, times, endDate);
	}

	@Override
	public String toString()
	{
		return "BackupRepeatingEndOption_v4{" +
				"localizationKey='" + localizationKey + '\'' +
				", times=" + times +
				", endDate='" + endDate + '\'' +
				'}';
	}
}
