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

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

package net.vvakame.zaim4j;

import java.io.IOException;
import java.io.StringWriter;
import java.util.List;

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

/**
 * Genre list response.
 * @author vvakame
 */
@JsonModel(decamelize = true, genToPackagePrivate = true, treatUnknownKeyAsError = true)
public class GenreListResponse {

	@JsonKey
	List genres;

	@JsonKey
	long requested;


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

	/**
	 * @return the genres
	 * @category accessor
	 */
	public List getGenres() {
		return genres;
	}

	/**
	 * @param genres the genres to set
	 * @category accessor
	 */
	public void setGenres(List genres) {
		this.genres = genres;
	}

	/**
	 * @return the requested
	 * @category accessor
	 */
	public long getRequested() {
		return requested;
	}

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy