Example #1
0
        public void Write(IMegaImageInfo value, IMsgPackWriter writer)
        {
            if (value == null)
            {
                writer.Write(DataTypes.Null);
            }
            else
            {
                writer.WriteArrayHeader(6U);

                WriteImageInfoBody(value, writer);
                _dateTimeConverter.Value.Write(value.SomeDate, writer);
            }
        }
        public void Write(IMegaImageInfo value, IMsgPackWriter writer)
        {
            if (value == null)
            {
                writer.Write(DataTypes.Null);
            }
            else
            {
                writer.WriteMapHeader(5U);

                _stringConverter.Value.Write("CreationDate", writer);
                _dateTimeConverter.Value.Write(value.SomeDate, writer);

                WriteImageInfoBody(value, writer);
            }
        }