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); }
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); }
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); }
public void updateContracts(List <string> c) { contractLastUpdate = DateTime.Now; contracts = c; Binary.WriteToBinaryFile <Caching>(System.AppDomain.CurrentDomain.BaseDirectory + "/cache", this); }