BoardGameGeekApiClient.Helpers.BoardGameGeekApiClientHelper.GetExpansionsLinks C# (CSharp) Method

GetExpansionsLinks() public static method

public static GetExpansionsLinks ( this Boardgame ) : List
Boardgame this
return List
        public static List<BoardGameLink> GetExpansionsLinks(this XElement Boardgame)
        {
            var links = from p in Boardgame.Elements("link")
                        where p.Attribute("type").Value == "boardgameexpansion" &&
                            (p.Attribute("inbound") == null || p.Attribute("inbound").Value != "true")
                        select new BoardGameLink
                        {
                            Name = p.GetStringValue("value"),
                            Id = p.GetIntValue("id", -1).Value
                        };

            return links.ToList();
        }