Example #1
0
        public virtual void GetObjectData(SerializationInfo info, StreamingContext ctx)
        {
            SerializationWriter sw = SerializationWriter.GetWriter();

            GetObjectData(sw);
            sw.AddToInfo(info);
        }
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            var writer = SerializationWriter.GetWriter();

            writer.WriteString(AccountId);
            writer.Write(Amount);
            writer.WriteString(CategoryId);
            writer.WriteString(CategoryName);
            writer.Write(Date);
            writer.Write(FlagColor.HasValue);
            if (FlagColor.HasValue)
            {
                writer.Write((byte)FlagColor.Value);
            }
            writer.Write((byte)ForecastItemType);
            writer.Write(Funded);
            writer.Write(IsSplit);
            writer.WriteString(Memo);
            writer.WriteString(PayeeId);
            writer.WriteString(PayeeName);
            writer.WriteString(ScheduledSubTransactionId);
            writer.WriteString(ScheduledTransactionId);
            writer.WriteString(SubTransactionId);
            writer.WriteString(TransactionId);
            writer.WriteString(TransferAccountId);

            writer.AddToInfo(info);
        }
Example #3
0
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            var writer = SerializationWriter.GetWriter();

            writer.WriteString(AccountId);
            writer.Write(Amount);
            writer.Write(Approved);
            writer.WriteString(CategoryId);
            writer.Write((byte)Cleared);
            writer.Write(Date);
            writer.Write(Deleted);
            writer.Write(FlagColor.HasValue);
            if (FlagColor.HasValue)
            {
                writer.Write((byte)FlagColor.Value);
            }
            writer.WriteString(ImportId);
            writer.WriteString(Memo);
            writer.WriteString(PayeeId);
            writer.WriteString(TransactionId);
            writer.WriteString(TransferAccountId);
            writer.WriteString(TransferTransactionId);

            writer.AddToInfo(info);
        }
Example #4
0
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            var writer = SerializationWriter.GetWriter();

            writer.Write(Activity);
            writer.Write(Balance);
            writer.Write(Budgeted);
            writer.WriteString(CategoryGroupId);
            writer.WriteString(CategoryId);
            writer.Write(Deleted);
            writer.Write(Hidden);
            writer.WriteString(GoalCreationMonth);
            writer.Write(GoalPercentageComplete.HasValue);
            if (GoalPercentageComplete.HasValue)
            {
                writer.Write(GoalPercentageComplete.Value);
            }
            writer.Write(GoalTarget);
            writer.WriteString(GoalTargetMonth);
            writer.Write(GoalType.HasValue);
            if (GoalType.HasValue)
            {
                writer.Write((byte)GoalType.Value);
            }
            writer.WriteString(Name);
            writer.WriteString(Note);
            writer.WriteString(OriginalCategoryGroupId);

            writer.AddToInfo(info);
        }
Example #5
0
        //Serialization function.
        public void GetObjectData(SerializationInfo info, StreamingContext ctxt)
        {
            SerializationWriter sw = SerializationWriter.GetWriter();

            sw.Write(nXYZ);
            sw.AddToInfo(info);
        }
Example #6
0
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            SerializationWriter sw = SerializationWriter.GetWriter();

            sw.Write(fileChecksum);
            sw.Write(playerName);
            sw.Write(offlineScoreChecksum);
            sw.Write(count300);
            sw.Write(count100);
            sw.Write(count50);
            sw.Write(countGeki);
            sw.Write(countKatu);
            sw.Write(countMiss);
            sw.Write(totalScore);
            sw.Write(maxCombo);
            sw.Write(perfect);
            sw.Write((int)enabledMods);

            sw.Write(GetGraphFormatted());

            if (rawReplayCompressed == null)
            {
                rawReplayCompressed = new byte[0];
            }

            sw.WriteByteArray(rawReplayCompressed);
            sw.Write(date);

            sw.AddToInfo(info);
        }
Example #7
0
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            var writer = SerializationWriter.GetWriter();

            writer.Write(Activity.HasValue);
            if (Activity.HasValue)
            {
                writer.Write(Activity.Value);
            }
            writer.Write(AgeOfMoney.HasValue);
            if (AgeOfMoney.HasValue)
            {
                writer.Write(AgeOfMoney.Value);
            }
            writer.Write(Budgeted.HasValue);
            if (Budgeted.HasValue)
            {
                writer.Write(Budgeted.Value);
            }
            writer.Write(Categories);
            writer.Write(Income.HasValue);
            if (Income.HasValue)
            {
                writer.Write(Income.Value);
            }
            writer.Write(Month);
            writer.WriteString(Note);
            writer.Write(ToBeBudgeted.HasValue);
            if (ToBeBudgeted.HasValue)
            {
                writer.Write(ToBeBudgeted.Value);
            }

            writer.AddToInfo(info);
        }
Example #8
0
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            SerializationWriter sw = SerializationWriter.GetWriter();

            sw.Write(beatLength);
            sw.Write(offset);

            sw.AddToInfo(info);
        }
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            SerializationWriter sw = SerializationWriter.GetWriter();

            sw.Write(MZHigh);
            sw.Write(MZLow);
            sw.Write(Points);
            sw.AddToInfo(info);
        }
Example #10
0
        public MyMessage(SerializationInfo info, StreamingContext ctxt)
        {
            /*MessageId =  (int)info.GetValue("MessageId", typeof(int));
             * MsgType = (MessageType)info.GetValue("MsgType", typeof(int));
             * MessageSize = (int)info.GetValue("MessageSize", typeof(int));
             * QueueNameSize = (int)info.GetValue("QueueNameSize", typeof(int));
             * info.Get*/

            SerializationWriter sw = SerializationWriter.GetWriter();
        }
Example #11
0
        public virtual void GetObjectData(SerializationInfo info, StreamingContext ctx)
        {
            SerializationWriter sw = SerializationWriter.GetWriter();

            GetObjectData(sw);
            sw.AddToInfo(info);

            info.AddValue("_FrontendManager", _FrontendManager);
            info.AddValue("_Chat", _Chat);
        }
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            var writer = SerializationWriter.GetWriter();

            writer.WriteString(CategoryGroupId);
            writer.Write(Deleted);
            writer.Write(Hidden);
            writer.WriteString(Name);

            writer.AddToInfo(info);
        }
Example #13
0
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            var writer = SerializationWriter.GetWriter();

            writer.Write(Deleted);
            writer.WriteString(Name);
            writer.WriteString(PayeeId);
            writer.WriteString(TransferAccountId);

            writer.AddToInfo(info);
        }
Example #14
0
        public virtual void GetObjectData(SerializationInfo info, StreamingContext ctx)
        {
            if (info == null)
            {
                throw new ArgumentNullException("info");
            }

            SerializationWriter sw = SerializationWriter.GetWriter();

            GetObjectData(sw);
            sw.AddToInfo(info);
        }
Example #15
0
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            var writer = SerializationWriter.GetWriter();

            writer.Write(Amount);
            writer.WriteString(CategoryId);
            writer.WriteString(CategoryName);
            writer.Write(Date);
            writer.WriteString(Payee);

            writer.AddToInfo(info);
        }
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            SerializationWriter sw = SerializationWriter.GetWriter();

            sw.Write(MZ);
            sw.Write(RT);
            sw.Write(Intensity);
            sw.Write(ScanNumber);
            sw.Write(Charge);
            sw.Write(IsFullScan);
            sw.AddToInfo(info);
        }
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            var writer = SerializationWriter.GetWriter();

            writer.Write(Deleted);
            writer.WriteString(Latitude);
            writer.WriteString(Longitude);
            writer.WriteString(PayeeId);
            writer.WriteString(PayeeLocationId);

            writer.AddToInfo(info);
        }
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            var writer = SerializationWriter.GetWriter();

            writer.WriteString(AccountId);
            writer.Write(Amount);
            writer.WriteString(CategoryId);
            writer.Write(Days);
            writer.Write(IsEnabled);
            writer.Write(IsExactAmount);
            writer.WriteString(ScenarioId);

            writer.AddToInfo(info);
        }
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            var writer = SerializationWriter.GetWriter();

            writer.Write(Amount);
            writer.WriteString(CategoryId);
            writer.Write(Deleted);
            writer.WriteString(Memo);
            writer.WriteString(PayeeId);
            writer.WriteString(SubTransactionId);
            writer.WriteString(TransactionId);
            writer.WriteString(TransferAccountId);

            writer.AddToInfo(info);
        }
Example #20
0
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            var writer = SerializationWriter.GetWriter();

            writer.Write(Amount);
            writer.Write(BeginDate);
            writer.Write(EndDate);
            writer.Write((byte)Frequency);
            writer.Write(IsEnabled);
            writer.Write(IsExactAmount);
            writer.WriteString(ScenarioId);
            writer.WriteString(ScheduledTransactionId);

            writer.AddToInfo(info);
        }
Example #21
0
        public MessageModel(MessageModel msg) : this()
        {
            if (msg == null)
            {
                throw new ArgumentNullException("msg");
            }

            var writer = SerializationWriter.GetWriter();

            msg.GetObjectData(writer);
            var data   = writer.GetData();
            var reader = SerializationReader.GetReader(data);

            SetObjectData(reader);
        }
Example #22
0
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            var writer = SerializationWriter.GetWriter();

            writer.WriteString(AccountId);
            writer.Write(Balance);
            writer.Write(ClearedBalance);
            writer.Write(Closed);
            writer.Write(Deleted);
            writer.WriteString(Name);
            writer.WriteString(Note);
            writer.Write(OnBudget);
            writer.WriteString(TransferPayeeId);
            writer.Write((byte)Type);
            writer.Write(UnclearedBalance);

            writer.AddToInfo(info);
        }
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            var writer = SerializationWriter.GetWriter();

            writer.WriteString(AccountId);
            writer.Write(Amount);
            writer.WriteString(CategoryId);
            writer.Write(DateFirst);
            writer.Write(DateNext);
            writer.Write(Deleted);
            writer.Write(FlagColor.HasValue);
            if (FlagColor.HasValue)
            {
                writer.Write((byte)FlagColor.Value);
            }
            writer.Write((byte)Frequency);
            writer.WriteString(Memo);
            writer.WriteString(PayeeId);
            writer.WriteString(ScheduledTransactionId);
            writer.WriteString(TransferAccountId);

            writer.AddToInfo(info);
        }
Example #24
0
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            var writer = SerializationWriter.GetWriter();

            writer.Write(Accounts);
            writer.WriteString(BudgetId);
            writer.Write(Categories);
            writer.Write(CategoryGroups);
            writer.WriteObject(CurrencyFormat);
            writer.WriteObject(DateFormat);
            writer.WriteString(FirstMonth);
            writer.Write(LastModifiedOn);
            writer.WriteString(LastMonth);
            writer.Write(Months);
            writer.WriteString(Name);
            writer.Write(PayeeLocations);
            writer.Write(Payees);
            writer.Write(ScheduledSubTransactions);
            writer.Write(ScheduledTransactions);
            writer.Write(SubTransactions);
            writer.Write(Transactions);

            writer.AddToInfo(info);
        }
Example #25
0
        public void GetObjectData(SerializationInfo info, StreamingContext context)
        {
            SerializationWriter sw = SerializationWriter.GetWriter();

            sw.Write(Artist);
            sw.Write(Title);
            sw.Write(Creator);
            sw.Write(Version);
            sw.Write(AudioFilename);
            sw.Write(BeatmapChecksum);
            sw.Write(Filename);
            sw.Write((byte)submissionStatus);
            sw.Write(countNormal);
            sw.Write(countSlider);
            sw.Write(countSpinner);
            sw.Write(DateModified);
            sw.Write(DifficultyCircleSize);
            sw.Write(DifficultyHpDrainRate);
            sw.Write(DifficultyOverall);
            sw.Write(DifficultySliderMultiplier);
            sw.Write(DrainLength);
            sw.Write(TotalLength);
            sw.Write(PreviewTime);
            sw.Write(TimingPoints);
            sw.Write(BeatmapId);
            sw.Write(BeatmapSetId);
            sw.Write(BeatmapTopicId);
            sw.Write((byte)PlayerRank);
            sw.Write((short)PlayerOffset);
            sw.Write(StackLeniency);
            sw.Write((byte)Mode);
            sw.Write(Source);
            sw.Write(Tags);

            sw.AddToInfo(info);
        }