PayPal.Api.PayPalRelationalObject.GetHateoasLink C# (CSharp) Method

GetHateoasLink() public method

Gets the HATEOAS link that matches the specified relation name.
public GetHateoasLink ( string relationName ) : Links
relationName string The name of the link relation.
return Links
        public Links GetHateoasLink(string relationName)
        {
            foreach (var link in this.links)
            {
                if (link.rel.Equals(relationName))
                {
                    return link;
                }
            }
            return null;
        }