smartcar/java-sdk

Missing methods

Closed this issue · 0 comments

  • post to child safetylocks
ChildSafetyLock[] locks = new ChildSafetyLock[] {
  new ChildSafetyLock("BACK_LEFT"),
  new ChildSafetyLock("BACK_RIGHT"),
};

Api.SafetyLocks response = vehicle.activateChildSafetyLocks(locks);
System.out.println(response);
 
Api.SafetyLocks response = vehicle.deactivateChildSafetyLocks(locks);
System.out.println(response);

https://github.com/smartcar/api-schema/pull/12/files?diff=unified#diff-a008f50ee252bf71e1aeb2c3eb6217c8R131

  • get vehicle ignition
Api.Engine response = vehicle.ignition();
System.out.println(response);

https://github.com/smartcar/api-schema/pull/12/files?diff=unified#diff-f6813f5706002bb6d95363b6097e4eb0R49

  • set vehicle ignition
Api.Engine response = vehicle.startIgnition();
System.out.println(response);

Api.Engine response = vehicle.setIgnitionOn();
System.out.println(response);

Api.Engine response = vehicle.setIgnitionAccessory();
System.out.println(response);

Api.Engine response = vehicle.setIgnitionOff();
System.out.println(response);

https://github.com/smartcar/api-schema/pull/12/files?diff=unified#diff-f6813f5706002bb6d95363b6097e4eb0R130