me.xhsun.guildwars2wrapper.model.v2.Recipe Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gw2wrapper Show documentation
Show all versions of gw2wrapper Show documentation
Guild Wars 2 API wrapper for Android
package me.xhsun.guildwars2wrapper.model.v2;
import me.xhsun.guildwars2wrapper.model.identifiable.IdentifiableInt;
import me.xhsun.guildwars2wrapper.model.v2.guild.GuildUpgrade;
import me.xhsun.guildwars2wrapper.model.v2.util.comm.CraftingDisciplines;
import me.xhsun.guildwars2wrapper.model.v2.util.comm.Type;
import java.util.List;
/**
* For more info on Recipes API go here
* Model class for recipes
*
* @author xhsun
* @since 2017-06-05
*/
public class Recipe extends IdentifiableInt {
public enum Flag {AutoLearned, LearnedFromItem}
private Type type;
private int output_item_id;
private int output_item_count;
private int time_to_craft_ms;
private List disciplines;
private int min_rating;
private List flags;
private List ingredients;
private List guild_ingredients;
private long output_upgrade_id;
private String chat_link;
public Type getType() {
return type;
}
public int getOutputItemId() {
return output_item_id;
}
public int getOutputItemCount() {
return output_item_count;
}
public int getTimeToCraftMS() {
return time_to_craft_ms;
}
public List getDisciplines() {
return disciplines;
}
public int getMinRating() {
return min_rating;
}
public List getFlags() {
return flags;
}
public List getIngredients() {
return ingredients;
}
public List getGuildIngredients() {
return guild_ingredients;
}
public long getOutputUpgradeId() {
return output_upgrade_id;
}
public String getChatLink() {
return chat_link;
}
/**
* recipe ingredients
*/
public class Ingredient {
private int item_id;
private int upgrade_id;
private int count;
public int getItemId() {
return item_id;
}
/**
* @return {@link GuildUpgrade#id}
*/
public int getUpgradeId() {
return upgrade_id;
}
public int getCount() {
return count;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy