public string GetInfo(string att) { switch (att) { case "id": return(Id.ToString()); case "addonName": return(AddonName); case "name": return(ItemName); case "description": return(Description); case "keyInfo": return(KeyInfo); case "itemType": return(ItemType.ToString()); case "value": return(Value.ToString()); case "smeltExperience": return(SmeltExperience.ToString()); default: return("Error"); } }
public string[] GetAllInfo() { string[] info = { Id.ToString(), AddonName, ItemName, Description, KeyInfo, ItemType.ToString(), Value.ToString(), SmeltExperience.ToString() }; return(info); }