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