internal XboxSocialUser(IntPtr xboxSocialUserPtr)
        {
            XBOX_SOCIAL_USER cXboxSocialUser = Marshal.PtrToStructure <XBOX_SOCIAL_USER>(xboxSocialUserPtr);

            XboxUserId         = MarshalingHelpers.Utf8ToString(cXboxSocialUser.XboxUserId);
            DisplayName        = MarshalingHelpers.Utf8ToString(cXboxSocialUser.DisplayName);
            RealName           = MarshalingHelpers.Utf8ToString(cXboxSocialUser.RealName);
            DisplayPicRaw      = MarshalingHelpers.Utf8ToString(cXboxSocialUser.DisplayPicUrlRaw);
            UseAvatar          = cXboxSocialUser.UseAvatar;
            Gamertag           = MarshalingHelpers.Utf8ToString(cXboxSocialUser.Gamertag);
            Gamerscore         = MarshalingHelpers.Utf8ToString(cXboxSocialUser.Gamerscore);
            PreferredColor     = new PreferredColor(cXboxSocialUser.PreferredColor);
            IsFollowedByCaller = cXboxSocialUser.IsFollowedByCaller;
            IsFollowingUser    = cXboxSocialUser.IsFollowingUser;
            IsFavorite         = cXboxSocialUser.IsFavorite;

            PresenceRecord = new SocialManagerPresenceRecord(cXboxSocialUser.PresenceRecord);

            TitleHistory = new TitleHistory(cXboxSocialUser.TitleHistory);
        }
 protected bool Equals(PreferredColor other)
 {
     return(string.Equals(this.TertiaryColor, other.TertiaryColor) &&
            string.Equals(this.SecondaryColor, other.SecondaryColor) &&
            string.Equals(this.PrimaryColor, other.PrimaryColor));
 }