Skip to content

Commit

Permalink
feat(SmartcarVehicleRequest): add support for boolean body params (#134)
Browse files Browse the repository at this point in the history
* feat(SmartcarVehicleRequest): add support for boolean body params
* docs: update version
  • Loading branch information
gurpreetatwal authored Sep 14, 2023
1 parent cf00588 commit 4111656
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,24 @@ The recommended method for obtaining the SDK is via Gradle or Maven through the

### Gradle
```groovy
compile "com.smartcar.sdk:java-sdk:3.8.0"
compile "com.smartcar.sdk:java-sdk:3.9.0"
```

### Maven
```xml
<dependency>
<groupId>com.smartcar.sdk</groupId>
<artifactId>java-sdk</artifactId>
<version>3.8.0</version>
<version>3.9.0</version>
</dependency>
```

### Jar Direct Download
* [java-sdk-3.8.0.jar](https://search.maven.org/remotecontent?filepath=com/smartcar/sdk/java-sdk/3.8.0/java-sdk-3.8.0.jar)
* [java-sdk-3.8.0-sources.jar](https://search.maven.org/remotecontent?filepath=com/smartcar/sdk/java-sdk/3.8.0/java-sdk-3.8.0-sources.jar)
* [java-sdk-3.8.0-javadoc.jar](https://search.maven.org/remotecontent?filepath=com/smartcar/sdk/java-sdk/3.8.0/java-sdk-3.8.0-javadoc.jar)
* [java-sdk-3.9.0.jar](https://search.maven.org/remotecontent?filepath=com/smartcar/sdk/java-sdk/3.9.0/java-sdk-3.9.0.jar)
* [java-sdk-3.9.0-sources.jar](https://search.maven.org/remotecontent?filepath=com/smartcar/sdk/java-sdk/3.9.0/java-sdk-3.9.0-sources.jar)
* [java-sdk-3.9.0-javadoc.jar](https://search.maven.org/remotecontent?filepath=com/smartcar/sdk/java-sdk/3.9.0/java-sdk-3.9.0-javadoc.jar)

Signatures and other downloads available at [Maven Central](https://search.maven.org/artifact/com.smartcar.sdk/java-sdk/3.8.0/jar).
Signatures and other downloads available at [Maven Central](https://search.maven.org/artifact/com.smartcar.sdk/java-sdk/3.9.0/jar).

## Usage

Expand Down Expand Up @@ -136,5 +136,5 @@ In accordance with the Semantic Versioning specification, the addition of suppor
[ci-url]: https://travis-ci.com/smartcar/java-sdk
[coverage-image]: https://codecov.io/gh/smartcar/java-sdk/branch/master/graph/badge.svg?token=nZAITx7w3X
[coverage-url]: https://codecov.io/gh/smartcar/java-sdk
[javadoc-image]: https://img.shields.io/badge/javadoc-3.8.0-brightgreen.svg
[javadoc-image]: https://img.shields.io/badge/javadoc-3.9.0-brightgreen.svg
[javadoc-url]: https://smartcar.github.io/java-sdk
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
libGroup=com.smartcar.sdk
libName=java-sdk
libVersion=3.8.0
libVersion=3.9.0
libDescription=Smartcar Java SDK
7 changes: 6 additions & 1 deletion src/main/java/com/smartcar/sdk/SmartcarVehicleRequest.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ public Builder addBodyParameter(String key, String value) {
return this;
}

public Builder addBodyParameter(String key, Boolean value) {
this.body.add(key, value);
return this;
}

public Builder addBodyParameter(String key, JsonArray values) {
this.body.add(key, values);
return this;
Expand Down Expand Up @@ -108,4 +113,4 @@ private SmartcarVehicleRequest(Builder builder) {

public String getFlags() { return this.flags; }

}
}

0 comments on commit 4111656

Please sign in to comment.