All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.vvakame.zaim4j.OtherAccountItem Maven / Gradle / Ivy

package net.vvakame.zaim4j;

import java.io.IOException;
import java.io.StringWriter;

import net.vvakame.util.jsonpullparser.annotation.JsonKey;
import net.vvakame.util.jsonpullparser.annotation.JsonModel;

/**
 * Account item.
 * @author vvakame
 */
@JsonModel(decamelize = true, genToPackagePrivate = true, treatUnknownKeyAsError = true)
public class OtherAccountItem {

	@JsonKey
	long id;

	@JsonKey
	String name;

	@JsonKey
	String color;

	@JsonKey
	String iconUrl;


	@Override
	public String toString() {
		StringWriter writer = new StringWriter();
		try {
			OtherAccountItemGen.encode(writer, this);
		} catch (IOException e) {
			throw new RuntimeException(e);
		}
		return writer.toString();
	}

	/**
	 * @return the id
	 * @category accessor
	 */
	public long getId() {
		return id;
	}

	/**
	 * @param id the id to set
	 * @category accessor
	 */
	public void setId(long id) {
		this.id = id;
	}

	/**
	 * @return the name
	 * @category accessor
	 */
	public String getName() {
		return name;
	}

	/**
	 * @param name the name to set
	 * @category accessor
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the color
	 * @category accessor
	 */
	public String getColor() {
		return color;
	}

	/**
	 * @param color the color to set
	 * @category accessor
	 */
	public void setColor(String color) {
		this.color = color;
	}

	/**
	 * @return the iconUrl
	 * @category accessor
	 */
	public String getIconUrl() {
		return iconUrl;
	}

	/**
	 * @param iconUrl the iconUrl to set
	 * @category accessor
	 */
	public void setIconUrl(String iconUrl) {
		this.iconUrl = iconUrl;
	}
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy