TireInformationService Class |
All methods need an UserDTO as input - login user by using Login(UserDTO, TermsDTO, String) to get an UserDTO.
All methods need a format as input (json/xml) - result of request is delivered on format selected.
Namespace: OfvVehicleData.Service
public class TireInformationService
The TireInformationService type exposes the following members.
| Name | Description | |
|---|---|---|
| TireInformationService | Initializes a new instance of the TireInformationService class |
| Name | Description | |
|---|---|---|
| GetAvailableFilters |
Get available filter that it is possible to use as search options when doing FilterSearch.
| |
| RegNoSearch | ||
| RegNoSearchForAlternatives | ||
| SearchByBrandAndModel |
Search for vehicles
Returns resultset of brand, model and variant based on brand- and model-input. | |
| SimpleSearch |
Simple search for vehicle.
Returns list of brand, model, modelsplit and variant that match search string applied. |
Below is a simple example, that shows how to call the service SimpleSearch(UserDTO, String, Int32, Boolean, String, Int32).
function runSimpleSearch() { var userObject = { "username": "your username", "token": "token you get from login", "ipAddress": "your ip address" }; var url = "https://www.kjoretoydata.no/VehicleInformation/SimpleSearch?format=json"; var input = { "user": userObject, "searchString": "your search string", "vehicleGroup": "the vehiclegroup to work with", "data": true }; $.ajax({ type: "POST", url: url, data: JSON.stringify(input), processData: true, contentType: "application/json; charset=utf-8", dataType: "json", success: function (response) { alert('Result: ' + response); } , error: function (request, status, error) { alert('Error:' + request.status + ',' + request.statusText + ',' + request.responseText); } }); }