コード例 #1
0
 public ClothingItem(int id, string name, ClothingType clothingType, Weather weather)
 {
     Id = id;
     Name = name;
     ClothingType = clothingType;
     Weather = weather;
 }
コード例 #2
0
ファイル: Weather.cs プロジェクト: jacalata/whatshouldiwear
 protected bool Equals(Weather other)
 {
     return WeatherCondition == other.WeatherCondition && Temperature == other.Temperature;
 }
コード例 #3
0
ファイル: WardRobe.cs プロジェクト: jacalata/whatshouldiwear
 public IEnumerable<ClothingItem> GetClothingFor(Weather weather)
 {
     return clothingItemList.Values.Where(p => p.Weather.Equals(weather));
 }
コード例 #4
0
 // GET api/values/5
 public IEnumerable<ClothingItem> GetWardRobeByWeather(Weather weather)
 {
     return wardRobe.GetClothingFor(weather);
 }