示例#1
0
 public void updateStationInformation(string contract, string station, string[] information)
 {
     stationInformation.Add(contract + " " + station, new Tuple <DateTime, string[]>(DateTime.Now, information));
     Binary.WriteToBinaryFile <Caching>(System.AppDomain.CurrentDomain.BaseDirectory + "/cache", this);
 }
示例#2
0
 public void updateStations(string contract, List <string>[] s)
 {
     stations.Add(contract, new Tuple <DateTime, List <string>[]>(DateTime.Now, s));
     Binary.WriteToBinaryFile <Caching>(System.AppDomain.CurrentDomain.BaseDirectory + "/cache", this);
 }
示例#3
0
 public void updateAvailableBike(string contract, string station, int number)
 {
     availablesBikes.Add(contract + " " + station, new Tuple <DateTime, int>(DateTime.Now, number));
     Binary.WriteToBinaryFile <Caching>(System.AppDomain.CurrentDomain.BaseDirectory + "/cache", this);
 }
示例#4
0
 public void updateContracts(List <string> c)
 {
     contractLastUpdate = DateTime.Now;
     contracts          = c;
     Binary.WriteToBinaryFile <Caching>(System.AppDomain.CurrentDomain.BaseDirectory + "/cache", this);
 }