private bool GivenTreatToday(string type, string id) { CharacterTreatedData model = this.GetDailyTreatsData(); // Check if the entry already was treated return(model.Characters.Contains(model.FormatEntry(type, id))); }
private void TrackGivenTreat(string type, string id) { CharacterTreatedData model = this.GetDailyTreatsData(); string entry = model.FormatEntry(type, id); model.Characters.Add(entry); this.SetDailyTreatsData(model); }
private void TrackGivenTreat(string type, string id) { var model = GetDailyTreatsData(); var entry = CharacterTreatedData.FormatEntry(type, id); model.Characters.Add(entry); SetDailyTreatsData(model); }
private void SetDailyTreatsData(CharacterTreatedData model) { this.CharacterTreatedData = model; }