示例#1
0
        public SteamFriend Get(ulong steamid)
        {
            var f = new SteamFriend()
            {
                Id     = steamid,
                Client = client
            };

            f.Refresh();

            return(f);
        }
示例#2
0
        public SteamFriend Get(ulong steamid)
        {
            var friend = All.Where(x => x.Id == steamid).FirstOrDefault();

            if (friend != null)
            {
                return(friend);
            }

            var f = new SteamFriend()
            {
                Id     = steamid,
                Client = client
            };

            f.Refresh();

            return(f);
        }