public RequestResult()
 {
     items = new List<CatigoryItemGroup>();
     
     WeatherAccessor accessor = new WeatherAccessor();
     weather = accessor.GetDayInfo();
     ClothingRules rules = new ClothingRules();
     var clothingTempRange = rules.GetClothingCatigory(weather.getTempCAsInt());
     items = TrademeAccessor.getLists(clothingTempRange);
 }
        public RequestResult()
        {
            items = new List <CatigoryItemGroup>();

            WeatherAccessor accessor = new WeatherAccessor();

            weather = accessor.GetDayInfo();
            ClothingRules rules             = new ClothingRules();
            var           clothingTempRange = rules.GetClothingCatigory(weather.getTempCAsInt());

            items = TrademeAccessor.getLists(clothingTempRange);
        }
예제 #3
0
        public RequestResult(string city)
        {
            // TODO: Complete member initialization
            this.city = city;
            items = new List<CatigoryItemGroup>();

            WeatherAccessor accessor = new WeatherAccessor();
            weather = accessor.GetDayInfo(city);
            ClothingRules rules = new ClothingRules();
            var clothingTempRange = rules.GetClothingCatigory(weather);
            items = TrademeAccessor.getLists(clothingTempRange);
        }
 public void Init()
 {
     rules = new ClothingRules();
 }