Example #1
0
        private static bool getFromWeb = true;  //TODO REPLACE

        public static IJsonRepo GetRepo()
        {
            if (instance == null)
            {
                if (getFromWeb)
                {
                    instance = new WebJsonRepo();
                }
                else
                {
                    instance = new FileJsonRepo();
                }
            }
            return(instance);
        }
Example #2
0
 public CardRepo(IJsonRepo jsonRepo)
 {
     JsonRepo = jsonRepo;
 }