public void Read(BinaryReader reader) { reader.ReadInt32(); this._isLoaded = reader.ReadBoolean(); this._lastLoadedDate = BinarySerializerExtensions.ReadDateTime(reader); this.SetKeywordsData(reader.ReadGeneric <StickersKeywordsData>()); }
public void Write(BinaryWriter writer) { writer.Write(1); writer.Write(this._isLoaded); BinarySerializerExtensions.Write(writer, this._lastLoadedDate); writer.Write <StickersKeywordsData>(this._keywordsData, false); }
public void Read(BinaryReader reader) { reader.ReadInt32(); this._confirmationCode = reader.ReadString(); this._phonePrefix = reader.ReadString(); this._phoneNumber = reader.ReadString(); this._createdDateTime = BinarySerializerExtensions.ReadDateTime(reader); }
public void Write(BinaryWriter writer) { writer.Write(1); writer.WriteString(this._confirmationCode); writer.WriteString(this._phonePrefix); writer.WriteString(this._phoneNumber); BinarySerializerExtensions.Write(writer, this._createdDateTime); }
public override void Write(BinaryWriter writer) { writer.Write(1); writer.WriteString(this._filePath); writer.Write(this._duration); BinarySerializerExtensions.WriteList(writer, this._waveform); writer.Write((int)this._uploadState); writer.Write <Doc>(this.SavedDoc, false); }
public override void Read(BinaryReader reader) { reader.ReadInt32(); this._filePath = reader.ReadString(); this._duration = reader.ReadInt32(); this._waveform = BinarySerializerExtensions.ReadListInt(reader); this.UploadState = (OutboundAttachmentUploadState)reader.ReadInt32(); if (this.UploadState == OutboundAttachmentUploadState.Uploading) { this.UploadState = OutboundAttachmentUploadState.Failed; } this.SavedDoc = reader.ReadGeneric <Doc>(); }