public override void ToOutputStream(DataOutputStream writer) { //From server to client //Tell the client if they are going to receive a device Guid writer.WriteBoolean(!hasDeviceGuid); if (!hasDeviceGuid) { DeviceGuid = Guid.NewGuid(); writer.WriteUTF(DeviceGuid.ToString()); } }
public override string ToString() { return(DeviceGuid.ToString("N") + ChannelIndex.ToString("D5")); }