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); }
public CardRepo(IJsonRepo jsonRepo) { JsonRepo = jsonRepo; }