/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public override void Deserialize(IMDSDeserializer deserializer) { base.Deserialize(deserializer); Success = deserializer.ReadBoolean(); ResultText = deserializer.ReadStringUTF8(); WebServices = deserializer.ReadObjectArray(() => new ApplicationWebServiceInfo()); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public override void Deserialize(IMDSDeserializer deserializer) { base.Deserialize(deserializer); ApplicationName = deserializer.ReadStringUTF8(); Removed = deserializer.ReadBoolean(); ResultMessage = deserializer.ReadStringUTF8(); }
/// <summary> /// Deserializes this object. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public void Deserialize(IMDSDeserializer deserializer) { Name = deserializer.ReadStringUTF8(); IpAddress = deserializer.ReadStringUTF8(); Port = deserializer.ReadInt32(); Adjacents = deserializer.ReadStringUTF8(); Location = deserializer.ReadStringUTF8(); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public override void Deserialize(IMDSDeserializer deserializer) { base.Deserialize(deserializer); CommunicatorType = (CommunicatorTypes) deserializer.ReadByte(); CommunicationWay = (CommunicationWays) deserializer.ReadByte(); Name = deserializer.ReadStringUTF8(); Password = deserializer.ReadStringUTF8(); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public override void Deserialize(IMDSDeserializer deserializer) { base.Deserialize(deserializer); CommunicatorType = (CommunicatorTypes)deserializer.ReadByte(); CommunicationWay = (CommunicationWays)deserializer.ReadByte(); Name = deserializer.ReadStringUTF8(); Password = deserializer.ReadStringUTF8(); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public override void Deserialize(IMDSDeserializer deserializer) { base.Deserialize(deserializer); SourceServerName = deserializer.ReadStringUTF8(); SourceApplicationName = deserializer.ReadStringUTF8(); SourceCommunicatorId = deserializer.ReadInt64(); DestinationServerName = deserializer.ReadStringUTF8(); DestinationApplicationName = deserializer.ReadStringUTF8(); DestinationCommunicatorId = deserializer.ReadInt64(); PassedServers = deserializer.ReadObjectArray(() => new ServerTransmitReport()); MessageData = deserializer.ReadByteArray(); TransmitRule = (MessageTransmitRules)deserializer.ReadByte(); }
/// <summary> /// Reads and constructs a MDSMessage according to the protocol rules. /// </summary> /// <param name="deserializer">Deserializer to read message</param> /// <returns>MDSMessage object that is read</returns> public MDSMessage ReadMessage(IMDSDeserializer deserializer) { //Read protocol type var protocolType = deserializer.ReadUInt32(); if (protocolType != MDSDefaultProtocolType) { throw new MDSException("Wrong protocol type: " + protocolType + "."); } //Read message type var messageTypeId = deserializer.ReadInt32(); //Read and return message return deserializer.ReadObject(() => MDSMessageFactory.CreateMessageByTypeId(messageTypeId)); }
/// <summary> /// Reads and constructs a MDSMessage according to the protocol rules. /// </summary> /// <param name="deserializer">Deserializer to read message</param> /// <returns>MDSMessage object that is read</returns> public MDSMessage ReadMessage(IMDSDeserializer deserializer) { //Read protocol type var protocolType = deserializer.ReadUInt32(); if (protocolType != MDSDefaultProtocolType) { throw new MDSException("Wrong protocol type: " + protocolType + "."); } //Read message type var messageTypeId = deserializer.ReadInt32(); //Read and return message return(deserializer.ReadObject(() => MDSMessageFactory.CreateMessageByTypeId(messageTypeId))); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public void Deserialize(IMDSDeserializer deserializer) { Name = deserializer.ReadStringUTF8(); CommunicatorCount = deserializer.ReadInt32(); }
public override void Deserialize(IMDSDeserializer deserializer) { base.Deserialize(deserializer); ControllerMessageTypeId = deserializer.ReadInt32(); MessageData = deserializer.ReadByteArray(); }
/// <summary> /// Deserializes this object. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public void Deserialize(IMDSDeserializer deserializer) { ThisServerName = deserializer.ReadStringUTF8(); Servers = deserializer.ReadObjectArray(() => new ServerOnGraph()); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public override void Deserialize(IMDSDeserializer deserializer) { base.Deserialize(deserializer); ApplicationName = deserializer.ReadStringUTF8(); }
/// <summary> /// Deserializes this object. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public void Deserialize(IMDSDeserializer deserializer) { ServerName = deserializer.ReadStringUTF8(); ArrivingTime = deserializer.ReadDateTime(); LeavingTime = deserializer.ReadDateTime(); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public override void Deserialize(IMDSDeserializer deserializer) { base.Deserialize(deserializer); ServerGraph = deserializer.ReadObject(() => new ServerGraphInfo()); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public virtual void Deserialize(IMDSDeserializer deserializer) { MessageId = deserializer.ReadStringUTF8(); RepliedMessageId = deserializer.ReadStringUTF8(); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public override void Deserialize(IMDSDeserializer deserializer) { base.Deserialize(deserializer); ApplicationName = deserializer.ReadStringUTF8(); WebServices = deserializer.ReadObjectArray(() => new ApplicationWebServiceInfo()); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public override void Deserialize(IMDSDeserializer deserializer) { base.Deserialize(deserializer); Result = deserializer.ReadObject(() => new MDSOperationResultMessage()); Message = deserializer.ReadObject(() => new MDSDataTransferMessage()); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public void Deserialize(IMDSDeserializer deserializer) { Url = deserializer.ReadStringUTF8(); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public virtual void Deserialize(IMDSDeserializer deserializer) { //No data to deserialize }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public override void Deserialize(IMDSDeserializer deserializer) { base.Deserialize(deserializer); SourceServerName = deserializer.ReadStringUTF8(); SourceApplicationName = deserializer.ReadStringUTF8(); SourceCommunicatorId = deserializer.ReadInt64(); DestinationServerName = deserializer.ReadStringUTF8(); DestinationApplicationName = deserializer.ReadStringUTF8(); DestinationCommunicatorId = deserializer.ReadInt64(); PassedServers = deserializer.ReadObjectArray(() => new ServerTransmitReport()); MessageData = deserializer.ReadByteArray(); TransmitRule = (MessageTransmitRules) deserializer.ReadByte(); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public override void Deserialize(IMDSDeserializer deserializer) { base.Deserialize(deserializer); Name = deserializer.ReadStringUTF8(); CommunicatorCount = deserializer.ReadInt32(); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public override void Deserialize(IMDSDeserializer deserializer) { base.Deserialize(deserializer); Success = deserializer.ReadBoolean(); ResultMessage = deserializer.ReadStringUTF8(); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public override void Deserialize(IMDSDeserializer deserializer) { base.Deserialize(deserializer); NewCommunicationWay = (CommunicationWays)deserializer.ReadByte(); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public override void Deserialize(IMDSDeserializer deserializer) { base.Deserialize(deserializer); ClientApplications = deserializer.ReadObjectArray(() => new ClientApplicationInfo()); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public void Deserialize(IMDSDeserializer deserializer) { Name = deserializer.ReadStringUTF8(); CommunicatorCount = deserializer.ReadInt32(); MessageCount = deserializer.ReadInt32(); }
/// <summary> /// Deserializes this message. /// </summary> /// <param name="deserializer">Deserializer used to deserialize objects</param> public override void Deserialize(IMDSDeserializer deserializer) { base.Deserialize(deserializer); NewCommunicationWay = (CommunicationWays) deserializer.ReadByte(); }