public void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { StoreObjectIdData storeObjectIdDataInstance = componentDataPool.GetStoreObjectIdDataInstance(); storeObjectIdDataInstance.DeserializeData(reader, componentDataPool); this.internalItemId = storeObjectIdDataInstance.Data; storeObjectIdDataInstance.DeserializeData(reader, componentDataPool); this.parentId = storeObjectIdDataInstance.Data; this.changeType = (ChangeType)reader.ReadInt32(); ByteArrayData byteArrayInstance = componentDataPool.GetByteArrayInstance(); byteArrayInstance.DeserializeData(reader, componentDataPool); this.changeKey = byteArrayInstance.Data; this.changeTrackingHash = reader.ReadInt32(); if (componentDataPool.InternalVersion > 1) { Int32Data int32DataInstance = componentDataPool.GetInt32DataInstance(); int32DataInstance.DeserializeData(reader, componentDataPool); this.Permissions = (SyncPermissions)int32DataInstance.Data; StringData stringDataInstance = componentDataPool.GetStringDataInstance(); stringDataInstance.DeserializeData(reader, componentDataPool); this.Owner = stringDataInstance.Data; BooleanData booleanDataInstance = componentDataPool.GetBooleanDataInstance(); booleanDataInstance.DeserializeData(reader, componentDataPool); this.Hidden = booleanDataInstance.Data; } }
public override void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { base.DeserializeData(reader, componentDataPool); StringData stringDataInstance = componentDataPool.GetStringDataInstance(); stringDataInstance.DeserializeData(reader, componentDataPool); this.clientAddId = stringDataInstance.Data; this.softDeletePending = reader.ReadBoolean(); }
public void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool) { componentDataPool.GetStoreObjectIdDataInstance().Bind(this.internalItemId).SerializeData(writer, componentDataPool); componentDataPool.GetStoreObjectIdDataInstance().Bind(this.parentId).SerializeData(writer, componentDataPool); writer.Write((int)this.changeType); componentDataPool.GetByteArrayInstance().Bind(this.changeKey).SerializeData(writer, componentDataPool); writer.Write(this.changeTrackingHash); componentDataPool.GetInt32DataInstance().Bind((int)this.Permissions).SerializeData(writer, componentDataPool); componentDataPool.GetStringDataInstance().Bind(this.Owner).SerializeData(writer, componentDataPool); componentDataPool.GetBooleanDataInstance().Bind(this.Hidden).SerializeData(writer, componentDataPool); }
public virtual void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool) { componentDataPool.GetISyncItemIdDataInstance().Bind(this.itemId).SerializeData(writer, componentDataPool); writer.Write((byte)this.changeType); ICustomClonable customClonable = this.watermark as ICustomClonable; if (customClonable != null) { this.watermark = (ISyncWatermark)customClonable.CustomClone(); } componentDataPool.GetISyncWatermarkDataInstance().Bind(this.watermark).SerializeData(writer, componentDataPool); writer.Write(this.IsAcknowledgedByClient); componentDataPool.GetNullableInt32ArrayInstance().Bind(this.changeTrackingInformation).SerializeData(writer, componentDataPool); writer.Write(this.IsRejected); writer.Write(this.IsDelayedServerOperation); componentDataPool.GetNullableDateTimeDataInstance().Bind(this.filterDate).SerializeData(writer, componentDataPool); componentDataPool.GetStringDataInstance().Bind(this.messageClass).SerializeData(writer, componentDataPool); componentDataPool.GetConversationIdDataInstance().Bind(this.conversationId).SerializeData(writer, componentDataPool); writer.Write(this.FirstMessageInConversation); writer.Write((byte)this.itemRead); }
public virtual void DeserializeData(BinaryReader reader, ComponentDataPool componentDataPool) { DerivedData <ISyncItemId> isyncItemIdDataInstance = componentDataPool.GetISyncItemIdDataInstance(); isyncItemIdDataInstance.DeserializeData(reader, componentDataPool); this.itemId = isyncItemIdDataInstance.Data; this.changeType = (ChangeType)reader.ReadByte(); DerivedData <ISyncWatermark> isyncWatermarkDataInstance = componentDataPool.GetISyncWatermarkDataInstance(); isyncWatermarkDataInstance.DeserializeData(reader, componentDataPool); this.watermark = isyncWatermarkDataInstance.Data; this.IsAcknowledgedByClient = reader.ReadBoolean(); ArrayData <NullableData <Int32Data, int>, int?> nullableInt32ArrayInstance = componentDataPool.GetNullableInt32ArrayInstance(); nullableInt32ArrayInstance.DeserializeData(reader, componentDataPool); this.changeTrackingInformation = nullableInt32ArrayInstance.Data; this.IsRejected = reader.ReadBoolean(); this.IsDelayedServerOperation = reader.ReadBoolean(); if (componentDataPool.InternalVersion > 0) { NullableDateTimeData nullableDateTimeDataInstance = componentDataPool.GetNullableDateTimeDataInstance(); nullableDateTimeDataInstance.DeserializeData(reader, componentDataPool); this.filterDate = nullableDateTimeDataInstance.Data; StringData stringDataInstance = componentDataPool.GetStringDataInstance(); stringDataInstance.DeserializeData(reader, componentDataPool); this.messageClass = stringDataInstance.Data; ConversationIdData conversationIdDataInstance = componentDataPool.GetConversationIdDataInstance(); conversationIdDataInstance.DeserializeData(reader, componentDataPool); this.conversationId = conversationIdDataInstance.Data; this.FirstMessageInConversation = reader.ReadBoolean(); if (componentDataPool.InternalVersion > 2) { this.itemRead = (ServerManifestEntry.ReadFlagState)reader.ReadByte(); } } }
public override void SerializeData(BinaryWriter writer, ComponentDataPool componentDataPool) { base.SerializeData(writer, componentDataPool); componentDataPool.GetStringDataInstance().Bind(this.clientAddId).SerializeData(writer, componentDataPool); writer.Write(this.softDeletePending); }