TradeMe.Api.Client.CatalogueMethods.RetrieveLegalNoticeForCategory C# (CSharp) Method

RetrieveLegalNoticeForCategory() public method

Performs the category method: Retrieves the legal notice that the user is required to agree to before listing. GET

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveLegalNoticeForCategory ( string categoryNumber ) : LegalNotice
categoryNumber string The category number for which you wish to see the legal notice for. /// The number of the category to retrieve the legal notice for. This must be a leaf category /// (for example, you cannot view the legal notice for Business, Farming and Industry, but you can /// for Business, Farming and Industry > Carbon credits).
return LegalNotice
        public LegalNotice RetrieveLegalNoticeForCategory(string categoryNumber)
        {
            var url = String.Format(Constants.Culture, "{0}/{1}/{2}{3}", Constants.CATEGORIES, categoryNumber,
                                    Constants.LEGALNOTICE, Constants.XML);

            var getRequest = _connection.UnauthenticatedConnection(url);
            var xml = getRequest.ToString();

            return Deserializer<LegalNotice>.Deserialize(new LegalNotice(), xml);
        }