Exemple #1
0
 private void WantPermissionToCS()
 {
     DeviceMessage request = GenerateMessage(MessageType.Request);
     requestQueue.Add(request);
     foreach (int carId in RequestSet)
         SendMessage(request, carId);
 }
Exemple #2
0
 private DeviceMessage GenerateMessage(char type)
 {
     DateTime now = DateTime.Now;
     long span = now.Ticks;
     DeviceMessage message = new DeviceMessage(this.Id, span);
     return message;
 }