Exemplo n.º 1
0
        internal User(dynamic fb)
        {
            if (fb != null && fb.user != null)
            {
                try { country = fb.user.country; }
                catch { country = ""; }

                try { locale = fb.user.locale; }
                catch { locale = ""; }

                try { id = Convert.ToUInt64(fb.user_id); }
                catch { id = 0; }

                age = new Age(fb.user.age);
            }
            else
            {
                age = new Age(null);
            }
        }
Exemplo n.º 2
0
        internal User(dynamic fb)
        {
            if (fb != null && fb.user != null)
            {
                try { country = fb.user.country; }
                catch { country = ""; }

                try { locale = fb.user.locale; }
                catch { locale = ""; }

                try { id = Convert.ToUInt64(fb.user_id); }
                catch { id = 0; }

                age = new Age(fb.user.age);
            }
            else
            {
                age = new Age(null);
            }
        }