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);
 }
Example #3
0
 public void Read(BinaryReader reader)
 {
     reader.ReadInt32();
     this._confirmationCode = reader.ReadString();
     this._phonePrefix      = reader.ReadString();
     this._phoneNumber      = reader.ReadString();
     this._createdDateTime  = BinarySerializerExtensions.ReadDateTime(reader);
 }
Example #4
0
 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);
 }
Example #5
0
 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);
 }
Example #6
0
 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>();
 }