public static void ChangeMood(IMood person, IList <IFood> foods) { foreach (var food in foods) { person.Mood += food.Happiness; } }
public MoodViewModel(IMood mood) { if (mood == null) { throw new Exception("No valid mood"); } Target = mood; }
public DeviceGroupStatus( string name, DateTime createdAt, int lightState, int lightDimmer, IMood activeMood, IDevice[] devices) { CreatedAt = createdAt; Name = name; LightState = lightState; LightDimmer = lightDimmer; ActiveMood = activeMood; Devices = devices; }
public static Color GetColor(IMood mood) { if (mood.MoodType == MoodBaseType.Neutral) { return(Colors.White); } if (mood.MoodType == MoodBaseType.Joy) { return(Colors.Yellow); } if (mood.MoodType == MoodBaseType.Sadness) { return(Colors.Blue); } if (mood.MoodType == MoodBaseType.Disgust) { return(Colors.Green); } if (mood.MoodType == MoodBaseType.Anger) { return(Colors.Red); } if (mood.MoodType == MoodBaseType.Fear) { return(Colors.DeepPink); } if (mood.MoodType == MoodBaseType.Curious) { return(Colors.LightSkyBlue); } if (mood.MoodType == MoodBaseType.Panic) { return(Colors.SandyBrown); } if (mood.MoodType == MoodBaseType.Surprise) { return(Colors.Orange); } if (mood.MoodType == MoodBaseType.Exciting) { return(Colors.Pink); } return(Colors.White); }
public void InitContact(Person person) { mood = GetMood(person); }
public Person(string name, int age) { this.Name = name; this.Age = age; this.mood = new NormalMood(); }
public MoodService(IMood <Mood> repository, IMapper mapper) { _repository = repository; _mapper = mapper; }
public MoodController(IMapper mapper, IMood <Mood> service) { _service = new MoodService <MoodData>(service, mapper); }