Example #1
0
        protected override void SerializeInternal(bool useCompression, out DataMessageOpcode opcode, out byte[] data)
        {
            opcode = DataMessageOpcode.MessageExportResults;
            MessageExportResults messageExportResults = new MessageExportResults(this.MissingMessages, this.BadMessages);
            string data2 = messageExportResults.Serialize(false);

            data = CommonUtils.PackString(data2, useCompression);
        }
Example #2
0
        private MessageExportResultsMessage(bool useCompression, byte[] blob)
        {
            this.BadMessages     = new List <BadMessageRec>();
            this.MissingMessages = new List <MessageRec>();
            string serializedXML = CommonUtils.UnpackString(blob, useCompression);
            MessageExportResults messageExportResults = XMLSerializableBase.Deserialize <MessageExportResults>(serializedXML, false);

            if (messageExportResults != null)
            {
                this.MissingMessages = messageExportResults.GetMissingMessages();
                this.BadMessages.AddRange(messageExportResults.BadMessages);
            }
        }