Exemplo n.º 1
0
        public void Clear()
        {
            id    = 0;
            sname = null;
            fname = null;

            sex    = null;
            status = null;

            phone = null;
            email = default;


            sexStatus = SexStatus.None;
            country   = null;
            premium   = default;
            likes.Clear();

            interests.Clear();
            joined = 0;
            city   = null;
            birth  = 0;

            Fields = UpdatedFields.None;
        }
Exemplo n.º 2
0
        private static bool ReadPremiumProperty(ref ParseContext m, ref Premimum p)
        {
            if (TryReadString(ref m, out var name) && TryReadInt(ref m, out var value))
            {
                if (name == nameof(p.start))
                {
                    p.start = value;
                    return(true);
                }

                if (name == nameof(p.finish))
                {
                    p.finish = value;
                    return(true);
                }
            }

            return(false);
        }