Esempio n. 1
0
 public NeighborRecord(NeighborRecord neighbor)
 {
     SSID = neighbor.SSID;
     previousRSSI1 = neighbor.previousRSSI1;
     previousRSSI2 = neighbor.previousRSSI2;
     previousRSSI3 = neighbor.previousRSSI3;
     timestamp = neighbor.timestamp;
 }
Esempio n. 2
0
 public NeighborRecordList(List<string> neighbors)
 {
     neighborRecords = new List<NeighborRecord>();
     foreach (string neighbor in neighbors)
     {
         string[] parameters = neighbor.Split(new char[]{'*'});
         string name = parameters[0];
         int r1 = Int32.Parse(parameters[1]);
         int r2 = Int32.Parse(parameters[2]);
         int r3 = Int32.Parse(parameters[3]);
         long tstamp = long.Parse(parameters[4]);
         NeighborRecord newNeighbor = new NeighborRecord(name, r1, r2, r3, tstamp);
         neighborRecords.Add(newNeighbor);
     }
 }