com.smartcar.sdk.data.VehicleIds Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for the Smartcar platform
package com.smartcar.sdk.data;
import com.google.gson.annotations.SerializedName;
import java.util.Arrays;
/** POJO for Smartcar /vehicles endpoint. */
public class VehicleIds extends ApiData {
@SerializedName("vehicles")
private String[] vehicleIds;
private ResponsePaging paging;
/**
* Initializes a new instance of VehicleIds
*
* @param vehicleIds the vehicleIds to be stored
*/
public VehicleIds(final String[] vehicleIds, final ResponsePaging paging) {
this.vehicleIds = vehicleIds;
this.paging = paging;
}
/**
* Returns the vehicle IDs.
*
* @return the vehicle IDs
*/
public String[] getVehicleIds() {
return vehicleIds;
}
public ResponsePaging getPaging() { return this.paging; }
/** @return a stringified representation of VehicleIds */
@Override
public String toString() {
return this.getClass().getName() + "{" + "vehicleIds=" + Arrays.toString(vehicleIds) + '}';
}
}