Skip to content

Automile/automile-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automile

Official Automile REST API for Java

Automile offers a simple, smart, cutting-edge telematics solution for businesses to track and manage their business vehicles. Automile is a next-gen IoT solution and the overall experience is unmatched. Business of all sizes love to use Automile to get fleet intelligence whether it is understanding driving behavior, recording vehicle defects and expenses, tracking vehicles real time or securing vehicles from un-authorized use.

Automile gives developers a simple way to build services and applications through its unique application program interface (API). Our simple REST based API support more than 400 core features empowering developers to access more data and enabling tighter integration to build apps for the connected ecosystem.

API information can be found at https://api.automile.com. If you need any help, we are here to help. Simply email us at [email protected] or chat with us.

The latest OpenAPI (fka Swagger) specification may be found at: https://api.automile.com/swagger/docs/v1

😋

This library allows you to quickly and easily use the Automile API via PHP.

This SDK is currently in beta. If you need help:

  • Use the Issue Tracker to report bugs or missing functionality in this library.
  • Send an email to [email protected] to request help with our API or your account.

Prerequisites

  • Java >= 1.8

Gradle

To install the package via Gradle wrapper, run the following command:

gradlew install

Add installed dependency to your project via Gradle

compile('com.automile:client:1.0.1')

Add installed dependency to your project via Maven

<dependency>
    <groupId>com.automile</groupId>
    <artifactId>client</artifactId>
    <version>1.0.1</version>
</dependency>

Quickstart

First, let's initialize the client.

It's recommended to store the authentication token for futher use, otherwise the client would have to retrieve new token each time upon initialization.

Java should be allowed to read and write into the token storage directory for the client to function properly.

public class Test {
   public static void main(String[] args) {
       //Using username+pass
       AutomileClient cl1 = AutomileClient.builder().
               username("username").
               password("password").
               clientId("clientId").
               clientSecret("clientSecret").build();
       cl1.authorize();
       
       //Or using stored token data
       
       //authentication token json data
       String jsondata = "";//read data from file
       AutomileClient cl2 = AutomileClient.builder().build();
       cl2.authorize(jsondata);
   }
}

If something's not right, please report the issue to the Issue Tracker, and we'll get to it as soon as possible.

Note: Automile is currently accepting username and password authentication for users belonging to private clients you are creating.

Methods

Company Methods

Create company

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    CompanyCreateModel model = new CompanyCreateModel();
    cl.createCompany(model);
}

Get companies

public void test(AutomileClient cl){
    cl.getCompanies();
}

Get company

public void test(AutomileClient cl){
    cl.getCompany(1);
}

Edit company

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    CompanyEditModel model = new CompanyEditModel();
    cl.editCompany(1, model);
}

Delete company

public void test(AutomileClient cl){
    cl.deleteCompany(1);
}

Company Contact Methods

Create company contact

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    CompanyContactCreateModel model = new CompanyContactCreateModel();
    cl.createCompanyContact(model);
}

Get companies contacts

public void test(AutomileClient cl){
    cl.getCompanyContacts();
}

Get company contacts

public void test(AutomileClient cl){
    cl.getCompanyContact(1);
}

Edit company contact

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    CompanyContactEditModel model = new CompanyContactEditModel();
    cl.editCompanyContact(1, model);
}

Delete company contact

public void test(AutomileClient cl){
    cl.deleteCompanyContact(1);
}

Company Vehicle Methods

Create company vehicle

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    CompanyVehicleCreateModel model = new CompanyVehicleCreateModel();
    cl.createCompanyVehicle(model);
}

Get company vehicles

  public void test(AutomileClient cl){
      cl.getCompanyVehicles();
  }

Get company vehicle

  public void test(AutomileClient cl){
      cl.getCompanyVehicle(1);
  }

Edit company vehicle

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    CompanyVehicleEditModel model = new CompanyVehicleEditModel();
    cl.editCompanyVehicle(1, model);
}

Delete company vehicle

public void test(AutomileClient cl){
    cl.deleteCompanyVehicle(1);
}

Contact Methods

Create contact

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    Contact2CreateModel model = new Contact2CreateModel();
    cl.createContact2(model);
}

Get contacts

public void test(AutomileClient cl){
    cl.getContacts2();
    }

Get contact

public void test(AutomileClient cl){
    cl.getContact2(1);
}

Edit contact

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    Contact2EditModel model = new Contact2EditModel();
    cl.editContact2(1, model);
}

Delete contact

public void test(AutomileClient cl){
    cl.deleteContact2(1);
}

Get me

public void test(AutomileClient cl){
    cl.getContact2Me();
}

Get profile image

public void test(AutomileClient cl){
    cl.getContact2MeImage();
}

Upload profile image

public void test(AutomileClient cl, byte[] data){
    cl.editContact2UploadImage(data);
}

Remove profile image

public void test(AutomileClient cl){
    cl.editContact2RemoveImage();
}

Update the default vehicle

public void test(AutomileClient cl){
    cl.editContact2MeUpdateDefaultVehicle(1);
    //or
    cl.editContact2UpdateDefaultVehicle(1);
}

Add and remove custom categories

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    CustomCategoryPostModel model = new CustomCategoryPostModel();
    cl.editContact2CustomCategories(1, model);
}

Get a custom category

public void test(AutomileClient cl){
    cl.getContacts2CustomCategory(1, 1);
}

Get all custom categories

public void test(AutomileClient cl){
    cl.getContacts2CustomCategories(1);
}

Contact 3 Methods

Create contact

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    Contact3CreateModel model = new Contact3CreateModel();
    cl.createContact3(model);
}

Get contacts

public void test(AutomileClient cl){
    cl.getContacts3();
    }

Get contact

public void test(AutomileClient cl){
    cl.getContact3(1);
}

Edit contact

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    Contact3EditModel model = new Contact3EditModel();
    cl.editContact3(1, model);
}

Delete contact

public void test(AutomileClient cl){
    cl.deleteContact3(1);
}

Get me

public void test(AutomileClient cl){
    cl.getContact3Me();
}

Get profile image

public void test(AutomileClient cl){
    cl.getContact3MeImage();
}

Upload profile image

public void test(AutomileClient cl, byte[] data){
    cl.editContact3UploadImage(data);
}

Remove profile image

public void test(AutomileClient cl){
    cl.editContact3RemoveImage();
}

Update the default vehicle

public void test(AutomileClient cl){
    cl.editContact3MeUpdateDefaultVehicle(1);
    //or
    cl.editContact3UpdateDefaultVehicle(1);
}

Add and remove custom categories

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    CustomCategoryPostModel model = new CustomCategoryPostModel();
    cl.editContact3CustomCategories(1, model);
}

Get a custom category

public void test(AutomileClient cl){
    cl.getContacts3CustomCategory(1, 1);
}

Get a all custom categories

public void test(AutomileClient cl){
    cl.getContacts3CustomCategories(1);
}

Vehicle Methods

Create vehicle

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    Vehicle2CreateModel model = new Vehicle2CreateModel();
    cl.createVehicle2(model);
}

Get vehicles

public void test(AutomileClient cl){
    cl.getVehicles2();
}

Get vehicle

public void test(AutomileClient cl){
    cl.getVehicle2(1);
}

Edit vehicle

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    Vehicle2EditModel model = new Vehicle2EditModel();
    cl.editVehicle2(1, model);
}

Delete vehicle

public void test(AutomileClient cl){
    cl.deleteVehicle2(1);
}

Get vehicle information

public void test(AutomileClient cl){
    cl.getVehicle2VehicleInformation("identifier", 1);
}

Get position and status of all vehicles that the user has access to

public void test(AutomileClient cl){
    cl.getVehicles2Status();
}

Check-in to a vehicle

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    VehicleCheckInModel model = new VehicleCheckInModel();
    cl.editVehicle2Checkin(model);
}

Check-out from a vehicle

public void test(AutomileClient cl){
    cl.editVehicle2Checkout();
}

Contact Vehicle Methods

Create a new vehicle contact and associates it with user

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    ContactVehicleDetailModel model = new ContactVehicleDetailModel();
    cl.createContactVehicle(model);
}

Get all vehicle contacts that the logged in user has access to

public void test(AutomileClient cl){
    cl.getContactVehicles();
}

Get contacts by vehicle id

public void test(AutomileClient cl){
    cl.getContactVehicle(1);
}

Update the given contact vehicle id

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    ContactVehicleEditModel model = new ContactVehicleEditModel();
    cl.editContactVehicle(1, model);
}

Delete contact vehicle

public void test(AutomileClient cl){
    cl.deleteContactVehicle(1);
}

Expense Report Methods

Create an expense report

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    ExpenseReportCreateModel model = new ExpenseReportCreateModel();
    cl.createExpenseReport(model);
}

Get a list of expense reports

public void test(AutomileClient cl){
    cl.getExpenseReports(1, 1);
}

Get an expense report

public void test(AutomileClient cl){
    cl.getExpenseReport(1);
}

Update the given expense report

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    ExpenseReportEditModel model = new ExpenseReportEditModel();
    cl.editExpenseReport(1, model);
}

Delete expense report

public void test(AutomileClient cl){
    cl.deleteExpenseReport(1);
}

Email expense report in pdf format

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    EmailExpenseReportModel model = new EmailExpenseReportModel();
    cl.emailExpenseReportExport(1, model);
}

Email expense reports in pdf format

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    EmailExpenseReportsModel model = new EmailExpenseReportsModel();
    cl.emailExpenseReportsExport(model);
}

Removes the given expense report rows

public void test(AutomileClient cl){
    cl.deleteExpenseReportRows(1);
}

Carry out optical character recognization on image fragments and return the response

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    OCRRequest model = new OCRRequest();
    cl.createExpenseReportOCR(model);
}

Expense Report Row Methods

Create an expense report row

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    ExpenseReportRowModel model = new ExpenseReportRowModel();
    cl.createExpenseReportRow(model);
}

Get an expense report rows

public void test(AutomileClient cl){
    cl.getExpenseReportRow(1);
}

Update the given expense report row

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    ExpenseReportRowEditModel model = new ExpenseReportRowEditModel();
    cl.editExpenseReportRow(1, model);
}

Delete expense report row

public void test(AutomileClient cl){
    cl.deleteExpenseReportRow(1);
}

Expense Report Row Content Methods

Create an expense report row content

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    ExpenseReportRowContentCreateModel model = new ExpenseReportRowContentCreateModel();
    cl.createExpenseReportRowContent(model);
}

Get a list of expense report row contents

public void test(AutomileClient cl){
    cl.getExpenseReportRowContents(1);
}

Get an expense report row content

public void test(AutomileClient cl){
    cl.getExpenseReporRowContent(1);
}

Update the given expense report row content

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    ExpenseReportRowContentEditModel model = new ExpenseReportRowContentEditModel();
    cl.editExpenseReportRowContent(1, model);
}

Delete expense report row content

public void test(AutomileClient cl){
    cl.deleteExpenseReport(1);
}

IMEI Config Methods

Create IMEI config

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    IMEIConfigCreateModel model = new IMEIConfigCreateModel();
    cl.createIMEIConfig(model);
}

Get IMEI configs

public void test(AutomileClient cl){
    cl.getIMEIConfigs(true);
}

Get IMEI config

public void test(AutomileClient cl){
    cl.getIMEIConfig(1, true);
}

Edit IMEI config

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    IMEIConfigEditModel model = new IMEIConfigEditModel();
    cl.editIMEIConfig(1, model);
}

Delete IMEI config

public void test(AutomileClient cl){
    cl.deleteIMEIConfig(1);
}

IMEI Event Methods

Get IMEI events

public void test(AutomileClient cl){
    cl.getIMEIEvents();
}

Get MIL IMEI event

public void test(AutomileClient cl){
    cl.getMILIMEIEvent(1);
}

Get GTC IMEI event

public void test(AutomileClient cl){
    cl.getDTCIMEIEvent(1);
}

Get IMEI event status

public void test(AutomileClient cl){
    cl.getIMEIEventStatus(1);
}

Place Methods

Create place

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    Place2CreateModel model = new Place2CreateModel();
    cl.createPlace2(model);
}

Get places

public void test(AutomileClient cl){
    cl.getPlaces();
}

Get place

public void test(AutomileClient cl){
    cl.getPlace(1);
}

Edit place

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    Place2EditModel model = new Place2EditModel();
    cl.editPlace2(1, model);
}

Delete place

public void test(AutomileClient cl){
    cl.deletePlace(1);
}

Place 3 Methods

Create place

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    Place3CreateModel model = new Place3CreateModel();
    cl.createPlace3(model);
}

Get places

public void test(AutomileClient cl){
    cl.getPlaces3();
}

Get place

public void test(AutomileClient cl){
    cl.getPlace3(1);
}

Edit place

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    Place3EditModel model = new Place3EditModel();
    cl.editPlace3(1, model);
}

Delete place

public void test(AutomileClient cl){
    cl.deletePlace3(1);
}

Publish Subscribe Methods

Create an a publish subscribe record

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    PublishSubscribeCreateModel model = new PublishSubscribeCreateModel();
    cl.createPublishSubscribe(model);
}

Get all publish subscribe records

public void test(AutomileClient cl){
    cl.getPublishSubscribes();
}

Get the publish subscribe by record id

public void test(AutomileClient cl){
    cl.getPublishSubscribe(1);
}

Edit the given publish subscribe record

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    PublishSubscribeEditModel model = new PublishSubscribeEditModel();
    cl.editPublishSubscribe(1, model);
}

Delete the given publish subscribe record

public void test(AutomileClient cl){
    cl.deletePublishSubscribe(1);
}

Publish a test trip start to the publish subscribe endpoint

public void test(AutomileClient cl){
    cl.testTripStart(1, 1);
}

Publish a test trip end to the publish subscribe endpoint

public void test(AutomileClient cl){
    cl.testTripEnd(1, 1);
}

Publish a created vehicle to the publish subscribe endpoint

public void test(AutomileClient cl){
    cl.testVehicleCreated(1, 1);
}

Publish a modified vehicle to the publish subscribe endpoint

public void test(AutomileClient cl){
    cl.testVehicleModified(1, 1);
}

Publish a created driver / contact to the publish subscribe endpoint

public void test(AutomileClient cl){
    cl.testContactCreated(1, 1);
}

The contact end was published to your publish subscribe record endpoint

public void test(AutomileClient cl){
    cl.testContactModified(1, 1);
}

Report Methods

Get a trip summary report

public void test(AutomileClient cl){
    cl.getReportsTripSummary("dateperiod");
}

Get a trip summary report filtered by vehicle

public void test(AutomileClient cl){
    cl.getReportsTripSummary("dateperiod", 1);
}

Get vehicles summary report

public void test(AutomileClient cl){
    cl.getReportsVehiclesSummary("dateperiod");
}

Get vehicles summary report filtered by vehicle

public void test(AutomileClient cl){
    cl.getReportVehicleSummary("dateperiod", 1);
}

Export a trip report in pdf format

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    EmailTripReportModel model = new EmailTripReportModel();
    cl.emailTripReport(1, model);
}

Get Geofence log report

public void test(AutomileClient cl){
     cl.geofenceLogReport(1, 1, LocalDateTime.now(), LocalDateTime.now(), true);
 }

Task Methods

Create task

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    TaskCreateModel model = new TaskCreateModel();
    cl.createTask(model);
}

Get tasks

public void test(AutomileClient cl){
    cl.getTasks();
}

Get task details

public void test(AutomileClient cl){
    cl.getTask(1);
}

Edit task

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    TaskEditModel model = new TaskEditModel();
    cl.editTask(1, model);
}

Task Message Methods

Create task message

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    TaskMessageModel model = new TaskMessageModel();
    cl.createTaskMessage(model);
}

Get task message

public void test(AutomileClient cl){
    cl.getTaskMessage(1);
}

Edit task message

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    TaskMessageEditModel model = new TaskMessageEditModel();
    cl.editTaskMessage(1, model);
}

Trigger Message History Methods

Get all trigger messages that the logged in user has access to

public void test(AutomileClient cl){
    cl.getTriggerMessageHistories();
}

Get trigger messages by trigger id

public void test(AutomileClient cl){
    cl.getTriggerMessageHistories(1);
}

Trigger Methods

Create trigger

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    TriggerCreateModel model = new TriggerCreateModel();
    cl.createTrigger(model);
}

Get triggers

public void test(AutomileClient cl){
    cl.getTriggers();
}

Get trigger

public void test(AutomileClient cl){
    cl.getTrigger(1);
}

Edit trigger

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    TriggerEditModel model = new TriggerEditModel();
    cl.editTrigger(1, model);
}

Mute trigger

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    TriggerEditMutedUntilModel model = new TriggerEditMutedUntilModel();
    cl.editTriggerMute(1, model);
}

Unmute trigger

public void test(AutomileClient cl){
    cl.editTriggerUnmute(1);
}

Move all users push triggers to userdevice

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    MovePushTriggers model = new MovePushTriggers();
    cl.editTriggerMovePush(model);
}

Delete trigger

public void test(AutomileClient cl){
    cl.deleteTrigger(1);
}

User Methods

Change the password

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    ChangePasswordModel model = new ChangePasswordModel();
    cl.editUserChangePassword(model);
}

Change the username

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    ChangeUserNameModel model = new ChangeUserNameModel();
    cl.editUserChangeUsername(model);
}

Get user

public void test(AutomileClient cl){
    cl.getUser();
}

Check if the user has a password set

public void test(AutomileClient cl){
    cl.getUserExistingPassword();
}

Reset the password by SMS for the current user logged in

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    ResetPasswordUserModel model = new ResetPasswordUserModel();
    cl.editUserResetPassword(model);
}

Trip Methods

Get all trips

public void test(AutomileClient cl){
    cl.getTrips(1, 1, true);
}

Get trip

public void test(AutomileClient cl){
    cl.getTrip(1);
}

Edit trip

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    TripEditModel model = new TripEditModel();
    cl.editTrip(1, model);
}

Get the trip start and stop geo locations

public void test(AutomileClient cl){
    cl.getTripGeoStartEnd(1);
}

Get the vehicle speed if it's reported by the vehicle

public void test(AutomileClient cl){
    cl.getTripSpeed(1);
}

Get the vehicle engine rpm if it's reported by the vehicle

public void test(AutomileClient cl){
    cl.getTripRPM(1);
}

Get the vehicle ambient (outside) temperature if it's reported by the vehicle

public void test(AutomileClient cl){
    cl.getTripAmbientTemperature(1);
}

Get the vehicle current fuel level if it's reported by the vehicle

public void test(AutomileClient cl){
    cl.getTripFuelLevelInput(1);
}

Get the engine coolant temperature if it's reported by the vehicle

public void test(AutomileClient cl){
    cl.getTripEngineCoolantTemperature(1);
}

This will get the raw PID data if the vehicle has reported that it is being

public void test(AutomileClient cl){
    cl.getTripPID(1);
}

Get the gps locations for the vehicle, includes position and heading

public void test(AutomileClient cl){
    cl.getTripGeo(1, false, 1);
}

Gets Google static map URL with the trip route as a polyline

public void test(AutomileClient cl){
    cl.getTripGoogleUrlToStaticMapEncodedPolyline(1, 1, 1);
}

Updates the last trip with trip notes

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    TripAddNoteModel model = new TripAddNoteModel();
    cl.editTripAddNotesToLastTrip(1, model);
}

Updates the given trip with given contactid

public void test(AutomileClient cl){
    cl.editTripSetDriverOnTrip(1, 1);
}

Mark trips as synchronized, synchronized trips will not be returned when fetching trips

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    TripSynchronized model = new TripSynchronized();
    cl.editTripSynchronized(1, model);
}

Get the details about the trip including driving events, speeding and idling

public void test(AutomileClient cl){
    cl.getTripDetails(1);
}

Get the advanced details about the trip including driving events, speeding, idling, speed and rpm data series

public void test(AutomileClient cl){
    cl.getTripAdvanced(1);
}

User Device Methods

Create user device

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    UserDeviceCreateModel model = new UserDeviceCreateModel();
    cl.createUserDevice(model);
}

Get user devices

public void test(AutomileClient cl){
    cl.getUserDevices();
}

Get user device

public void test(AutomileClient cl){
    cl.getUserDevice(1);
}

Edit user device

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    UserDeviceEditModel model = new UserDeviceEditModel();
    cl.editUserDevice(1, model);
}

Delete user device

public void test(AutomileClient cl){
    cl.deleteUserDevice(1);
}

Vehicle Defect Comment Methods

Create vehicle defect comment

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    VehicleDefectCommentsCreateModel model = new VehicleDefectCommentsCreateModel();
    cl.createVehicleDefectComment(model);
}

Get vehicle defect comments

public void test(AutomileClient cl){
    cl.getVehicleDefectComments();
}

Get vehicle defect comment

public void test(AutomileClient cl){
    cl.getVehicleDefectComment(1);
}

Edit vehicle defect comment

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    VehicleDefectCommentsEditModel model = new VehicleDefectCommentsEditModel();
    cl.editVehicleDefectComment(1, model);
}

Vehicle Defect Type Methods

Get vehicle defect types

public void test(AutomileClient cl){
    cl.getVehicleDefectTypes();
}

Vehicle Geofence Methods

Associate a vehicle with a geofence

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    VehicleGeofenceCreateModel model = new VehicleGeofenceCreateModel();
    cl.createVehicleGeofence(model);
}

Get vehicle geofences

public void test(AutomileClient cl){
    cl.getVehicleGeofences(1);
}

Get vehicle geofence

public void test(AutomileClient cl){
    cl.getVehicleGeofence(1);
}

Edit vehicle geofence

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    VehicleGeofenceEditModel model = new VehicleGeofenceEditModel();
    cl.editVehicleGeofence(1, model);
}

Remove association between a vehicle and geofence

public void test(AutomileClient cl){
    cl.deleteVehicleGeofence(1);
}

Geofence Methods

Creates a new geofence

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    GeofenceCreateModel model = new GeofenceCreateModel();
    cl.createGeofence(model);
}

Get geofences

public void test(AutomileClient cl){
    cl.getGeofences();
}

Get geofence

public void test(AutomileClient cl){
    cl.getGeofence(1);
}

Edit geofence

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    GeofenceEditModel model = new GeofenceEditModel();
    cl.editGeofence(1, model);
}

Remove the given geofence

public void test(AutomileClient cl){
    cl.deleteGeofence(1);
}

Geofence 2 Methods

Creates a new geofence

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    GeofenceCreate2Model model = new GeofenceCreate2Model();
    cl.createGeofence2(model);
}

Get geofences

public void test(AutomileClient cl){
    cl.getGeofences2();
}

Get geofence

public void test(AutomileClient cl){
    cl.getGeofence2(1);
}

Edit geofence

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    GeofenceEditModel2 model = new GeofenceEditModel2();
    cl.editGeofence2(1, model);
}

Remove the given geofence

public void test(AutomileClient cl){
    cl.deleteGeofence2(1);
}

Vehicle Health Methods

Get health indicators for a vehicle

public void test(AutomileClient cl){
    cl.getVehicleHealth(1);
}

Get health indicators for a vehicle over a period of time

public void test(AutomileClient cl){
    cl.getVehicleHealth(1, "datePeriod");
}

Vehicle Inspection Methods

Create a new vehicle inspection

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    VehicleInspectionCreateModel model = new VehicleInspectionCreateModel();
    cl.createVehicleInspection(model);
}

Get all vehicle inspections that the user has access to

public void test(AutomileClient cl){
    cl.getVehicleInspections(1, 1, LocalDateTime.now(), LocalDateTime.now(), true);
}

Get a vehicle inspection

public void test(AutomileClient cl){
    cl.getVehicleInspection(1);
}

Export a vehicle inspection in pdf format via email

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    VehicleInspectionExportModel model = new VehicleInspectionExportModel();
    cl.emailVehicleInspectionExport(1, model);
}

Updates the given vehicle inspection with new model

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    VehicleInspectionEditModel model = new VehicleInspectionEditModel();
    cl.editVehicleInspection(1, model);
}

Vehicle Place Methods

Associate a vehicle with a place

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    VehiclePlaceCreateModel model = new VehiclePlaceCreateModel();
    cl.createVehiclePlace(model);
}

Get relationships between the vehicles and the place

public void test(AutomileClient cl){
    cl.getVehiclePlaces(1);
}

Get vehicle place

public void test(AutomileClient cl){
    cl.getVehiclePlace(1);
}

Edit the relationship between the vehicle and the place

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    VehiclePlaceEditModel model = new VehiclePlaceEditModel();
    cl.editVehiclePlace(1, model);
}

Remove association between a vehicle and place

public void test(AutomileClient cl){
    cl.deleteVehiclePlace(1);
}

Organization Methods

Get a the details of the organization the user is assoicates with

public void test(AutomileClient cl){
    cl.getOrganization();
}

Edit organization

public void test(AutomileClient cl){
    //init model and set fields using model.setXXX
    OrganizationEditModel model = new OrganizationEditModel();
    cl.editOrganization(1, model);
}

Get the organization hierarchy

public void test(AutomileClient cl){
    cl.getOrganizationHierarchy();
}

Releases

No releases published

Packages

No packages published

Languages