Exemplo n.º 1
0
 public Tuple<double, string> GetVolumeAndSerialNumberForSelectedPool(IClientMessenger clientMessenger)
 {
     // Send request to server
     var request = new GetPoolInfoRequestMsg(_session.UserName, _session.TokenString, _session.SelectedPool.Item1);
     var response = (GetPoolInfoResponseMsg) clientMessenger.SendMessage(request);
     return new Tuple<double, string>(response.Volume, response.SerialNumber);
 }
Exemplo n.º 2
0
		private Message ResponseForGetPoolInfoRequest(GetPoolInfoRequestMsg message)
		{
			var serialNumber = "5XXAS-WWWD2-ASCC1-APW2W-98QSS";
			var randomizer = new Random ();
			var volume = randomizer.Next (20, 100);

			return new GetPoolInfoResponseMsg (volume, serialNumber);
		}