GET | /v1/Vehicle/SecuredOffline | Get all secured vehicles which are offline | Get audit of all secured vehicles which are currently offline, including the user who secured it, the date and the reason. |
---|
import java.math.*;
import java.util.*;
import java.io.InputStream;
import net.servicestack.client.*;
public class dtos
{
public static class SecuredOfflineVehicleRequest
{
}
public static class SecuredOfflineVehicleResponse
{
public ArrayList<SecuredOfflineVehicle> vehicles = new ArrayList<SecuredOfflineVehicle>();
public ArrayList<SecuredOfflineVehicle> getVehicles() { return vehicles; }
public SecuredOfflineVehicleResponse setVehicles(ArrayList<SecuredOfflineVehicle> value) { this.vehicles = value; return this; }
}
public static class SecuredOfflineVehicle
{
public String commissionNumber = null;
public String vin = null;
public String salesDescription = null;
public String model = null;
public String colour = null;
public String fuelType = null;
public String upholstery = null;
public String account = null;
public String gasId = null;
public String secureReason = null;
public String secureDate = null;
public String offlineDate = null;
public String getCommissionNumber() { return commissionNumber; }
public SecuredOfflineVehicle setCommissionNumber(String value) { this.commissionNumber = value; return this; }
public String getVin() { return vin; }
public SecuredOfflineVehicle setVin(String value) { this.vin = value; return this; }
public String getSalesDescription() { return salesDescription; }
public SecuredOfflineVehicle setSalesDescription(String value) { this.salesDescription = value; return this; }
public String getModel() { return model; }
public SecuredOfflineVehicle setModel(String value) { this.model = value; return this; }
public String getColour() { return colour; }
public SecuredOfflineVehicle setColour(String value) { this.colour = value; return this; }
public String getFuelType() { return fuelType; }
public SecuredOfflineVehicle setFuelType(String value) { this.fuelType = value; return this; }
public String getUpholstery() { return upholstery; }
public SecuredOfflineVehicle setUpholstery(String value) { this.upholstery = value; return this; }
public String getAccount() { return account; }
public SecuredOfflineVehicle setAccount(String value) { this.account = value; return this; }
public String getGasId() { return gasId; }
public SecuredOfflineVehicle setGasId(String value) { this.gasId = value; return this; }
public String getSecureReason() { return secureReason; }
public SecuredOfflineVehicle setSecureReason(String value) { this.secureReason = value; return this; }
public String getSecureDate() { return secureDate; }
public SecuredOfflineVehicle setSecureDate(String value) { this.secureDate = value; return this; }
public String getOfflineDate() { return offlineDate; }
public SecuredOfflineVehicle setOfflineDate(String value) { this.offlineDate = value; return this; }
}
}
Java SecuredOfflineVehicleRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /v1/Vehicle/SecuredOffline HTTP/1.1 Host: uat-api-vehicle-mgt-mb-dhc.rapp-customers.co.uk Accept: text/jsonl
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {Unable to show example output for type 'SecuredOfflineVehicleResponse' using the custom 'other' filter}Cannot dynamically create an instance of type 'Mercedes.VehicleManagement.API.Shared.Clients.Vehicle.SecuredOfflineVehicleResponse'. Reason: No parameterless constructor defined.