Example #1
0
        public static ProxyMap Load()
        {
            var map = LoadUtils.Load <ProxyMap>(Config.I.ProxyMapFile);

            map._changed = false;
            return(map);
        }
Example #2
0
 public static PriceScript Load(string Path)
 {
     try
     {
         var script = LoadUtils.Load <PriceScript>(Path, false);
         return(script);
     }
     catch
     {
         N.Note("Can't read PriceScript " + Path);
         return(null);
     }
 }
 public static UnitPriceStatus Load(string Unit)
 {
     try
     {
         var status = LoadUtils.Load <UnitPriceStatus>(GetFilePath(Unit), false);
         if (status == null || status.Unit == null)
         {
             throw new Exception();
         }
         return(status);
     }
     catch
     {
         return(new UnitPriceStatus()
         {
             Unit = Unit, LastSyncTimeStamp = DateTime.MinValue
         });
     }
 }
Example #4
0
 public static ProxyList Load()
 {
     return(LoadUtils.Load <ProxyList>(Config.I.ProxyListFile));
 }
Example #5
0
 public static AirBnbRoomMap Load()
 {
     return(LoadUtils.Load <AirBnbRoomMap>(Config.I.AirBnbRoomsMapFile));
 }
 public static AirBnbAccountsList Load()
 {
     return(LoadUtils.Load <AirBnbAccountsList>(Config.I.AirBnbAccountsFile));
 }
Example #7
0
 public static AirbnbUnitDailyPriceList Load()
 {
     return(LoadUtils.Load <AirbnbUnitDailyPriceList>("ny022.json"));
 }
Example #8
0
 public static StreamlineSeasonGroup Load()
 {
     return(LoadUtils.Load <StreamlineSeasonGroup>(Config.I.DailySeasons));
 }