public void GetAddressNotes(string routeId, int routeDestinationId) { // Create the manager with the api key Route4MeManager route4Me = new Route4MeManager(c_ApiKey); NoteParameters noteParameters = new NoteParameters() { RouteId = routeId, AddressId = routeDestinationId }; // Run the query string errorString; AddressNote[] notes = route4Me.GetAddressNotes(noteParameters, out errorString); Console.WriteLine(""); if (notes != null) { Console.WriteLine("GetAddressNotes executed successfully, {0} notes returned", notes.Length); Console.WriteLine(""); } else { Console.WriteLine("GetAddressNotes error: {0}", errorString); Console.WriteLine(""); } }
public void GetAddressNotes(string routeId, int routeDestinationId) { // Create the manager with the api key Route4MeManager route4Me = new Route4MeManager(c_ApiKey); NoteParameters noteParameters = new NoteParameters() { RouteId = routeId, AddressId = routeDestinationId }; // Run the query string errorString; AddressNote[] notes = route4Me.GetAddressNotes(noteParameters, out errorString); Console.WriteLine(""); if (notes != null) { Console.WriteLine("GetAddressNotes executed successfully, {0} notes returned", notes.Length); Console.WriteLine(""); } else { Console.WriteLine("GetAddressNotes error: {0}", errorString); Console.WriteLine(""); } }
public void GetAddressNotes(string routeId = null, int?routeDestinationId = null) { // Create the manager with the api key var route4Me = new Route4MeManager(ActualApiKey); bool isInnerExample = routeId == null ? true : false; if (isInnerExample) { CreateAddressNote(out routeId, out routeDestinationId); } var noteParameters = new NoteParameters() { RouteId = routeId, AddressId = (int)routeDestinationId }; // Run the query AddressNote[] notes = route4Me.GetAddressNotes(noteParameters, out string errorString); Console.WriteLine(""); if (notes != null) { Console.WriteLine( "GetAddressNotes executed successfully, {0} notes returned", notes.Length); Console.WriteLine(""); } else { Console.WriteLine("GetAddressNotes error: {0}", errorString); Console.WriteLine(""); } if (isInnerExample) { RemoveTestOptimizations(); } }