示例#1
0
        /// <summary>
        /// Retirves a user's steam games and their basic info with links
        /// </summary>
        /// <param name="user">The user name for which the library should be retrived</param>
        /// <returns>SteamGameProfile of the user containing its info</returns>
        public ISteamProfile GetSteamLibrary(string user)
        {
            string      result = GetDataFromUrl(Tags.steamCommunityUrl + "/id/" + user + "/games?tab=all&xml=1");
            XmlDocument doc    = new XmlDocument();

            doc.LoadXml(result);
            SteamProfile retVal = new SteamProfile(doc["gamesList"]);

            return(retVal);
        }
示例#2
0
 /// <summary>
 /// Retirves a user's steam games and their basic info with links
 /// </summary>
 /// <param name="user">The user name for which the library should be retrived</param>
 /// <returns>SteamGameProfile of the user containing its info</returns>
 public ISteamProfile GetSteamLibrary(string user)
 {
     string result = GetDataFromUrl(Tags.steamCommunityUrl + "/id/" + user + "/games?tab=all&xml=1");
     XmlDocument doc = new XmlDocument();
     doc.LoadXml(result);
     SteamProfile retVal = new SteamProfile(doc["gamesList"]);
     return retVal;
 }