
net.vvakame.zaim4j.OtherGenreItem 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;
/**
* Genre item.
* @author vvakame
*/
@JsonModel(decamelize = true, genToPackagePrivate = true, treatUnknownKeyAsError = true)
public class OtherGenreItem {
@JsonKey
long id;
@JsonKey
long categoryId;
@JsonKey
String name;
@Override
public String toString() {
StringWriter writer = new StringWriter();
try {
OtherGenreItemGen.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 categoryId
* @category accessor
*/
public long getCategoryId() {
return categoryId;
}
/**
* @param categoryId the categoryId to set
* @category accessor
*/
public void setCategoryId(long categoryId) {
this.categoryId = categoryId;
}
/**
* @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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy