Ejemplo n.º 1
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            UID = new DonationProfileSerial(reader);

            DonationEntries = new List<DonationEntry>();

            switch (version)
            {
                case 0:
                {
                    Email = reader.ReadString();
                    TotalDonations = reader.ReadInt();

                    int count = reader.ReadInt();

                    if (count > 0)
                    {
                        for (int i = 0; i < count; i++)
                        {
                            var entry = new DonationEntry(reader);
                            DonationEntries.Add(entry);
                        }
                    }
                }
                    break;
            }
        }
Ejemplo n.º 2
0
        public override void Deserialize(GenericReader reader)
        {
            base.Deserialize(reader);

            int version = reader.ReadInt();

            UID = new DonationProfileSerial(reader);

            DonationEntries = new List <DonationEntry>();

            switch (version)
            {
            case 0:
            {
                Email          = reader.ReadString();
                TotalDonations = reader.ReadInt();

                int count = reader.ReadInt();

                if (count > 0)
                {
                    for (int i = 0; i < count; i++)
                    {
                        var entry = new DonationEntry(reader);
                        DonationEntries.Add(entry);
                    }
                }
            }
            break;
            }
        }
Ejemplo n.º 3
0
        public DonationProfile(string email)
        {
            UID = new DonationProfileSerial();

            DonationEntries = new List<DonationEntry>();

            Email = email;
        }
Ejemplo n.º 4
0
        public DonationProfile(string email)
        {
            UID = new DonationProfileSerial();

            DonationEntries = new List <DonationEntry>();

            Email = email;
        }