/// <summary> /// Parse fields from a FastTransferStream. /// </summary> /// <param name="stream">A FastTransferStream.</param> public override void Parse(FastTransferStream stream) { if (stream.ReadMarker() == Markers.StartEmbed) { this.StartMarker = Markers.NewAttach; this.MessageContent = new MessageContent(stream); if (stream.ReadMarker() == Markers.EndEmbed) { this.EndMarker = Markers.EndEmbed; } else { throw new Exception("The EmbeddedMessage cannot be parsed successfully. The EndEmbed 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.StartSubFld) { this.StartMarker = Markers.StartSubFld; this.folderContentNoDelProps = new FolderContentNoDelProps(stream); if (stream.ReadMarker() == Markers.EndFolder) { this.EndMarker = Markers.EndFolder; } else { throw new Exception("The SubFolderNoDelProps cannot be parsed successfully. The EndFolder 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.StartTopFld) { this.StartMarker = Markers.StartTopFld; this.FolderContentNoDelProps = new FolderContentNoDelProps(stream); if (stream.ReadMarker() == Markers.EndFolder) { this.EndMarker = Markers.EndFolder; } } }
/// <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) { 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.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) { List<ProgressPerMessageChange> InterProgressPerMessageChanges = new List<ProgressPerMessageChange>(); if (ProgressTotal.Verify(stream)) { this.ProgressTotal = new ProgressTotal(stream); } while (ProgressPerMessageChange.Verify(stream)) { InterProgressPerMessageChanges.Add(new ProgressPerMessageChange(stream)); } this.ProgressPerMessageChanges = InterProgressPerMessageChanges.ToArray(); if (Deletions.Verify(stream)) { this.Deletions = new Deletions(stream); } if (ReadStateChanges.Verify(stream)) { this.ReadStateChanges = new ReadStateChanges(stream); } this.State = new State(stream); if (stream.ReadMarker() == Markers.IncrSyncEnd) { this.EndMarker = Markers.IncrSyncEnd; } else { throw new Exception("The ContentsSync cannot be parsed successfully. The IncrSyncEnd 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.NewAttach) { this.StartMarker = Markers.NewAttach; this.PidTagAttachNumber = new FixedPropTypePropValue(stream); this.AttachmentContent = new AttachmentContent(stream); if (stream.ReadMarker() == Markers.EndAttach) { this.EndMarker = Markers.EndAttach; } else { throw new Exception("The Attachment cannot be parsed successfully. The EndAttach 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.IncrSyncProgressMode) { this.StartMarker = Markers.IncrSyncProgressMode; this.propertiesTag = stream.ReadUInt32(); this.propertiesLength = stream.ReadUInt32(); ProgressInformation tmpProgressInfo = new ProgressInformation(); tmpProgressInfo.Parse(stream); this.PropList = tmpProgressInfo; } }
/// <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) { Markers marker = stream.ReadMarker(); if (marker == Markers.StartMessage || marker == Markers.StartFAIMsg) { if (marker == Markers.StartMessage) { this.StartMarker1 = Markers.StartMessage; } else { this.StartMarker2 = Markers.StartFAIMsg; } this.Content = new MessageContent(stream); if (stream.ReadMarker() == Markers.EndMessage) { this.EndMarker = Markers.EndMessage; } else { throw new Exception("The Message cannot be parsed successfully. The EndMessage Marker is missed."); } } }
/// <summary> /// Parse fields from a FastTransferStream. /// </summary> /// <param name="stream">A FastTransferStream.</param> public override void Parse(FastTransferStream stream) { List<FolderChange> InterFolderChanges = new List<FolderChange>(); while (FolderChange.Verify(stream)) { InterFolderChanges.Add(new FolderChange(stream)); } this.FolderChanges = InterFolderChanges.ToArray(); if (Deletions.Verify(stream)) { this.Deletions = new Deletions(stream); } this.State = new State(stream); if (stream.ReadMarker() == Markers.IncrSyncEnd) { this.EndMarker = Markers.IncrSyncEnd; } else { throw new Exception("The HierarchySync cannot be parsed successfully. The IncrSyncEnd 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.IncrSyncGroupInfo) { this.StartMarker = Markers.IncrSyncGroupInfo; this.propertiesTag = stream.ReadUInt32(); this.propertiesLength = stream.ReadUInt32(); PropertyGroupInfo tmpGroupInfo = new PropertyGroupInfo(); tmpGroupInfo.Parse(stream); this.PropList = tmpGroupInfo; } }