/// <summary> /// Parse fields from a FastTransferStream. /// </summary> /// <param name="stream">A FastTransferStream.</param> public override void Parse(FastTransferStream stream) { if (stream.ReadMarker() == Markers.IncrSyncStateBegin) { this.StartMarker = Markers.IncrSyncStateBegin; this.PropList = new PropList(stream); if (stream.ReadMarker() == Markers.IncrSyncStateEnd) { this.EndMarker = Markers.IncrSyncStateEnd; } else { throw new Exception("The State cannot be parsed successfully. The IncrSyncStateEnd Marker is missed."); } } }
/// <summary> /// Parse fields from a FastTransferStream. /// </summary> /// <param name="stream">A FastTransferStream.</param> public override void Parse(FastTransferStream stream) { if (stream.VerifyMetaProperty(MetaProperties.MetaTagIncrementalSyncMessagePartial)) { this.Meta_SyncMessagePartial = new MetaPropValue(stream); } this.PropList = new PropList(stream); }
/// <summary> /// Parse fields from a FastTransferStream. /// </summary> /// <param name="stream">A FastTransferStream.</param> public override void Parse(FastTransferStream stream) { if (stream.ReadMarker() == Markers.StartRecip) { this.StartMarker = Markers.StartRecip; this.PropList = new PropList(stream); if (stream.ReadMarker() == Markers.EndToRecip) { this.EndMarker = Markers.EndToRecip; } else { throw new Exception("The Recipient cannot be parsed successfully. The EndToRecip Marker is missed."); } } }
/// <summary> /// Parse fields from a FastTransferStream. /// </summary> /// <param name="stream">A FastTransferStream.</param> public override void Parse(FastTransferStream stream) { if (stream.ReadMarker() == Markers.IncrSyncDel) { this.StartMarker = Markers.IncrSyncDel; this.PropList = new PropList(stream); } }
/// <summary> /// Parse fields from a FastTransferStream. /// </summary> /// <param name="stream">A FastTransferStream.</param> public override void Parse(FastTransferStream stream) { this.PropList = new PropList(stream); if (EmbeddedMessage.Verify(stream)) { this.EmbeddedMessage = new EmbeddedMessage(stream); } }
/// <summary> /// Parse fields from a FastTransferStream. /// </summary> /// <param name="stream">A FastTransferStream.</param> public override void Parse(FastTransferStream stream) { this.PropList = new PropList(stream); this.MessageChildren = new MessageChildren(stream); }
/// <summary> /// Parse fields from a FastTransferStream. /// </summary> /// <param name="stream">A FastTransferStream.</param> public override void Parse(FastTransferStream stream) { List<SyncMessagePartialPropList> InterMessagePartialList = new List<SyncMessagePartialPropList>(); this.groupInfo = new GroupInfo(stream); if (stream.VerifyMetaProperty(MetaProperties.MetaTagIncrSyncGroupId)) { this.MetaTagIncrSyncGroupId = new MetaPropValue(stream); } if (stream.ReadMarker() == Markers.IncrSyncChgPartial) { this.Marker = Markers.IncrSyncChgPartial; this.messageChangeHeader = new PropList(stream); while (stream.VerifyMetaProperty(MetaProperties.MetaTagIncrementalSyncMessagePartial)) { InterMessagePartialList.Add(new SyncMessagePartialPropList(stream)); } this.SyncMessagePartialPropList = InterMessagePartialList.ToArray(); this.MessageChildren = new MessageChildren(stream); } else { throw new Exception("The MessageChangePartial cannot be parsed successfully. The IncrSyncChgPartial Marker is missed."); } }
/// <summary> /// Parse fields from a FastTransferStream. /// </summary> /// <param name="stream">A FastTransferStream.</param> public override void Parse(FastTransferStream stream) { if (stream.ReadMarker() == Markers.IncrSyncChg) { this.StartMarker = Markers.IncrSyncChg; this.messageChangeHeader = new PropList(stream); if (stream.ReadMarker() == Markers.IncrSyncMessage) { this.SecondMarker = Markers.IncrSyncMessage; this.propList = new PropList(stream); this.messageChildren = new MessageChildren(stream); } else { throw new Exception("The MessageChangeFull cannot be parsed successfully. The IncrSyncMessage Marker is missed."); } } }
/// <summary> /// Parse fields from a FastTransferStream. /// </summary> /// <param name="stream">A FastTransferStream.</param> public override void Parse(FastTransferStream stream) { this.PropList = new PropList(stream); if (!stream.IsEndOfStream) { List<SubFolderNoDelProps> InterSubFolders = new List<SubFolderNoDelProps>(); if (stream.VerifyMetaProperty(MetaProperties.MetaTagNewFXFolder)) { this.MetaTagNewFXFolder = new MetaPropValue(stream); } else { this.FolderMessagesNoDelProps = new FolderMessagesNoDelProps(stream); } if (!stream.IsEndOfStream) { while (SubFolderNoDelProps.Verify(stream)) { InterSubFolders.Add(new SubFolderNoDelProps(stream)); } this.SubFolderNoDelPropList = InterSubFolders.ToArray(); } } }