Ejemplo n.º 1
0
        public IEnumerable<ActivitySummaryDataContract> GetAllActivitiesForSelectedLocation(string locationKey)
        {
            List<ActivitySummaryDataContract> results = new List<ActivitySummaryDataContract>();
            ActivitySummaryDataContract activityOne = new ActivitySummaryDataContract();
            ((ActivitySummaryDataContract)activityOne).ActivityCategory = "Adventure";
            ((ActivitySummaryDataContract)activityOne).ActivityCategoryKey = "ADVENTURE";
            results.Add(activityOne);

            ActivitySummaryDataContract activityThree = new ActivitySummaryDataContract();
            ((ActivitySummaryDataContract)activityThree).ActivityCategory = "Eco-Tourism";
            ((ActivitySummaryDataContract)activityThree).ActivityCategoryKey = "ECOTOURISM";
            results.Add(activityThree);

            ActivitySummaryDataContract activityFour = new ActivitySummaryDataContract();
            ((ActivitySummaryDataContract)activityFour).ActivityCategoryKey = "SPORTSANDGAMES";
            ((ActivitySummaryDataContract)activityFour).ActivityCategory = "Sports and games";
            results.Add(activityFour);

            ActivitySummaryDataContract activityFive = new ActivitySummaryDataContract();
            ((ActivitySummaryDataContract)activityFive).ActivityCategoryKey = "TOPTRENDING";
            ((ActivitySummaryDataContract)activityFive).ActivityCategory = "Top trending activities";
            results.Add(activityFive);

            return results;
        }
Ejemplo n.º 2
0
        private IEnumerable<ActivitySummaryDataContract> GetDummyData(string userAgent)
        {
            List<ActivitySummaryDataContract> results = new List<ActivitySummaryDataContract>();
            var deviceInfo = WURFL.WURFLManagerBuilder.Instance.GetDeviceForRequest(userAgent);

            ActivitySummaryDataContract activityOne = new ActivitySummaryDataContract();

            activityOne.ActivityKey = "ACTIVITY ONE";
            activityOne.ActivityName = "Learn the art of the famous traditional gurkha khukuri";
            activityOne.Rating = Convert.ToDecimal(3.5);
            activityOne.Cost = 1000;
            activityOne.Currency = "INR";
            activityOne.ImageURL = "Images/khukuri1";
            results.Add(activityOne);

            ActivitySummaryDataContract activityTwo = new ActivitySummaryDataContract();
            activityTwo.ActivityKey = "ACTIVITY TWO";
            activityTwo.ActivityName = "Enjoy a tradional maruni dance performance";
            activityTwo.Rating = Convert.ToDecimal(3.5);
            activityTwo.Cost = 1000;
            activityTwo.Currency = "INR";
            activityTwo.ImageURL = "Images/maruni1";
            results.Add(activityTwo);

            ActivitySummaryDataContract activityThree = new ActivitySummaryDataContract();
            activityThree.ActivityKey = "ACTIVITY THREE";
            activityThree.ActivityName = "Explore the villages of Sikkim and learn and enjoy the old art of butter milk making.";
            activityThree.Rating = Convert.ToDecimal(3.5);
            activityThree.Cost = 1000;
            activityThree.Currency = "INR";
            activityThree.ImageURL = "Images/buttermilk2";
            results.Add(activityThree);

            ActivitySummaryDataContract activityFour = new ActivitySummaryDataContract();
            activityFour.ActivityKey = "ACTIVITY FOUR";
            activityFour.ActivityName = "Learn and buy tradiional handicrafts";
            activityFour.Rating = Convert.ToDecimal(3.5);
            activityFour.Cost = 1000;
            activityFour.Currency = "INR";
            activityFour.ImageURL = "Images/village2";
            results.Add(activityFour);

            ActivitySummaryDataContract activityFive = new ActivitySummaryDataContract();
            activityFive.ActivityKey = "ACTIVITY FIVE";
            activityFive.ActivityName = "Enjoy a tradional nepali village meal";
            activityFive.Rating = Convert.ToDecimal(3.5);
            activityFive.Cost = 1000;
            activityFive.Currency = "INR";
            activityFive.ImageURL = "Images/village1";
            results.Add(activityFive);

            ActivitySummaryDataContract activitySix = new ActivitySummaryDataContract();
            activitySix.ActivityKey = "ACTIVITY SIX";
            activitySix.ActivityName = "Become a farmer for a day";
            activitySix.Rating = Convert.ToDecimal(3.5);
            activitySix.Cost = 1000;
            activitySix.Currency = "INR";
            activitySix.ImageURL = "Images/village3";
            results.Add(activitySix);
            return results;
        }
Ejemplo n.º 3
0
        public IEnumerable<ActivitySummaryDataContract> GetTopTrendingActivities(string locationName)
        {
            List<ActivitySummaryDataContract> activities = new List<ActivitySummaryDataContract>();

            ActivitySummaryDataContract activityOne = new ActivitySummaryDataContract();
            activityOne.ActivityKey = "ACTIVITY ONE";
            activityOne.ActivityName = "Learn the art of the famous traditional gurkha khukuri";
            activityOne.Rating = Convert.ToDecimal(3.5);
            activityOne.Cost = 1000;
            activityOne.Currency = "INR";
            activityOne.ImageURL = "Images/khukuri1";
            activityOne.ActivityCategory = "TOP TRENDING ACTIVITIES";
            activityOne.ActivityCategoryKey = "TOPTRENDING";
            activityOne.LatLong = "27.3394,88.603";
            activityOne.MapIconURL = "Images/icons/full_star_yellow.png";
            activities.Add(activityOne);

            ActivitySummaryDataContract activityTwo = new ActivitySummaryDataContract();
            activityTwo.ActivityKey = "ACTIVITY TWO";
            activityTwo.ActivityName = "Enjoy a tradional maruni dance performance";
            activityTwo.Rating = Convert.ToDecimal(3.5);
            activityTwo.Cost = 1000;
            activityTwo.Currency = "INR";
            activityTwo.ImageURL = "Images/maruni1";
            activityTwo.ActivityCategory = "TOP TRENDING ACTIVITIES";
            activityTwo.ActivityCategoryKey = "TOPTRENDING";
            activityTwo.LatLong = "27.3849,88.6582";
            activityTwo.MapIconURL = "Images/icons/full_star_yellow.png";
            activities.Add(activityTwo);

            ActivitySummaryDataContract activityThree = new ActivitySummaryDataContract();
            activityThree.ActivityKey = "ACTIVITY THREE";
            activityThree.ActivityName = "Explore the villages of Sikkim and learn and enjoy the old art of butter milk making.";
            activityThree.Rating = Convert.ToDecimal(3.5);
            activityThree.Cost = 1000;
            activityThree.Currency = "INR";
            activityThree.ImageURL = "Images/buttermilk2";
            activityThree.ActivityCategory = "TOP TRENDING ACTIVITIES";
            activityThree.ActivityCategoryKey = "TOPTRENDING";
            activityThree.LatLong = "27.3059,88.5363";
            activityThree.MapIconURL = "Images/icons/full_star_yellow.png";
            activities.Add(activityThree);

            ActivitySummaryDataContract activityFour = new ActivitySummaryDataContract();
            activityFour.ActivityKey = "ACTIVITY FOUR";
            activityFour.ActivityName = "Learn and buy tradiional handicrafts";
            activityFour.Rating = Convert.ToDecimal(3.5);
            activityFour.Cost = 1000;
            activityFour.Currency = "INR";
            activityFour.ImageURL = "Images/village2";
            activityFour.ActivityCategory = "TOP TRENDING ACTIVITIES";
            activityFour.ActivityCategoryKey = "TOPTRENDING";
            activityFour.LatLong = "27.3394,88.600";
            activityFour.MapIconURL = "Images/icons/full_star_yellow.png";
            activities.Add(activityFour);

            ActivitySummaryDataContract activityFive = new ActivitySummaryDataContract();
            activityFive.ActivityKey = "ACTIVITY FIVE";
            activityFive.ActivityName = "Enjoy a tradional nepali village meal";
            activityFive.Rating = Convert.ToDecimal(3.5);
            activityFive.Cost = 1000;
            activityFive.Currency = "INR";
            activityFive.ImageURL = "Images/village1";
            activityFive.ActivityCategory = "TOP TRENDING ACTIVITIES";
            activityFive.ActivityCategoryKey = "TOPTRENDING";
            activityFive.LatLong = "27.328,88.6276";
            activityFive.MapIconURL = "Images/icons/full_star_yellow.png";
            activities.Add(activityFive);

            ActivitySummaryDataContract activitySix = new ActivitySummaryDataContract();
            activitySix.ActivityKey = "ACTIVITY SIX";
            activitySix.ActivityName = "Become a farmer for a day";
            activitySix.Rating = Convert.ToDecimal(3.5);
            activitySix.Cost = 1000;
            activitySix.Currency = "INR";
            activitySix.ImageURL = "Images/village3";
            activitySix.ActivityCategory = "TOP TRENDING ACTIVITIES";
            activitySix.ActivityCategoryKey = "TOPTRENDING";
            activitySix.LatLong = "27.2282,88.6125";
            activitySix.MapIconURL = "Images/icons/full_star_yellow.png";
            activities.Add(activitySix);

            return activities;
        }