private async Task GetSampleDataAsync()
        {
            _groups.Clear();
            //System.Diagnostics.Debug.WriteLine("It gets here 1");
            UriBuilder uriBuilder = new UriBuilder("http", "ec2-54-229-206-249.eu-west-1.compute.amazonaws.com", 80, "match_api");
            Uri dataUri = uriBuilder.Uri;

            HttpClient client = new HttpClient();
            var response = await client.GetAsync(dataUri);
            var result = await response.Content.ReadAsStringAsync();

            var jsonObject = JsonObject.Parse(result);
            int timestamp = (int)jsonObject["timestamp"].GetNumber();
            SampleDataGroup group = new SampleDataGroup("Group-1");
            foreach (JsonValue itemValue in jsonObject["matches"].GetArray())
            {
                JsonObject itemObject = itemValue.GetObject();
                System.DateTime dtDateTime = new DateTime(1970, 1, 1, 0, 0, 0, 0, System.DateTimeKind.Utc);
                dtDateTime = dtDateTime.AddSeconds(Convert.ToDouble(itemObject["starttime_unix"].GetString())).ToLocalTime();
                const string prefixUrl = "http://dailydota2.com";
                group.Items.Add(new SampleDataItem(itemObject["link"].GetString(),
                                                   itemObject["team1"].GetObject()["team_tag"].GetString(),
                                                   itemObject["team2"].GetObject()["team_tag"].GetString(),
                                                   itemObject["team1"].GetObject()["score"].GetString(),
                                                   itemObject["team2"].GetObject()["score"].GetString(),
                                                   prefixUrl + itemObject["team1"].GetObject()["logo_url"].GetString(),
                                                   prefixUrl + itemObject["team2"].GetObject()["logo_url"].GetString(),
                                                   "League: " + itemObject["league"].GetObject()["name"].GetString(),
                                                   "Time: "+dtDateTime.ToString(),
                                                   "Type: Best of " + ((int)itemObject["series_type"].GetNumber()).ToString()));
            }
            this.Groups.Add(group);
            
        }
        private async Task GetSampleDataAsync()
        {
            if (this._groups.Count != 0)
                return;

            Uri dataUri = new Uri("ms-appx:///DataModel/SampleData.json");

            StorageFile file = await StorageFile.GetFileFromApplicationUriAsync(dataUri);
            string jsonText = await FileIO.ReadTextAsync(file);
            JsonObject jsonObject = JsonObject.Parse(jsonText);
            JsonArray jsonArray = jsonObject["Groups"].GetArray();

            foreach (JsonValue groupValue in jsonArray)
            {
                JsonObject groupObject = groupValue.GetObject();
                SampleDataGroup group = new SampleDataGroup(groupObject["UniqueId"].GetString(),
                                                            groupObject["Title"].GetString(),
                                                            groupObject["Subtitle"].GetString(),
                                                            groupObject["ImagePath"].GetString(),
                                                            groupObject["Description"].GetString());

                foreach (JsonValue itemValue in groupObject["Items"].GetArray())
                {
                    JsonObject itemObject = itemValue.GetObject();
                    group.Items.Add(new SampleDataItem(itemObject["UniqueId"].GetString(),
                                                       itemObject["Title"].GetString(),
                                                       itemObject["Subtitle"].GetString(),
                                                       itemObject["ImagePath"].GetString(),
                                                       itemObject["Description"].GetString(),
                                                       itemObject["Content"].GetString()));
                }
                this.Groups.Add(group);
            }
        }