Beispiel #1
0
 public static DataExtractor GetInstance()
 {
     if (instance == null)
     {
         instance = new DataExtractor();
     }
     return(instance);
 }
Beispiel #2
0
        /// <summary>
        /// C'tor that gets the id (int) and make a League instance of the
        /// asked country
        /// </summary>
        /// <param name="league"></param>
        public League(int league)
        {
            String  stringJson = DataExtractor.GetInstance().GetJsonStringFromUrl(DataType.LEAGUE, league);
            JObject json       = JObject.Parse(stringJson);

            Parse(json);
            leagueTable = new LeagueTable(json);
        }
 public static DataExtractor GetInstance()
 {
     if (instance == null)
     {
         instance = new DataExtractor();
     }
     return instance;
 }