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

RetrieveLocalities() public method

Performs the Localities methods: three-tier locality dataset, two-tier locality dataset,

using the "query" string provided - should be the "Localities.xml" part of the url. It shouldn't include "http://api.trademe.co.nz/v1/".

DOES NOT REQUIRE AUTHENTICATION.
public RetrieveLocalities ( string query ) : LocalityCollection
query string The query string that will be added to the base url and used to connect to the API with.
return LocalityCollection
        public LocalityCollection RetrieveLocalities(string query)
        {
            var getRequest = _connection.UnauthenticatedConnection(query);

            var xml = getRequest.ToString();

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