Skip to content

Commit e9c6ce4

Browse files
authored
Merge pull request #10 from FreeClimbAPI/VCSWP-11895
PCI compliance for recordUtterance
2 parents 02ccee2 + 4e27e3f commit e9c6ce4

File tree

5 files changed

+25
-1
lines changed

5 files changed

+25
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,11 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
77
## [Unreleased]
88
None
99

10+
<a name="3.0.3"></a>
11+
## [3.0.3] - 2020-12-16
12+
### Added
13+
- Add `privacyMode` option to RecordUtterance PerCL command
14+
1015
<a name="3.0.2"></a>
1116
## [3.0.2] - 2020-12-16
1217
### Added

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ group = 'com.github.FreeClimbAPI'
99

1010
sourceCompatibility = 1.7 // java 7
1111
targetCompatibility = 1.7
12-
version = '3.0.2'
12+
version = '3.0.3'
1313

1414
repositories {
1515
mavenCentral()

src/main/java/com/vailsys/freeclimb/percl/RecordUtterance.java

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ public class RecordUtterance extends PerCLCommand {
77
private Integer maxLengthSec;
88
private Boolean playBeep;
99
private Boolean autoStart;
10+
private Boolean privacyMode;
1011

1112
public RecordUtterance(String actionUrl) {
1213
this.setActionUrl(actionUrl);
@@ -40,6 +41,10 @@ public Boolean getAutoStart() {
4041
return this.autoStart;
4142
}
4243

44+
public Boolean getPrivacyMode() {
45+
return this.privacyMode;
46+
}
47+
4348
public void setActionUrl(String actionUrl) {
4449
this.actionUrl = actionUrl;
4550
}
@@ -67,4 +72,8 @@ public void setPlayBeep(Boolean playBeep) {
6772
public void setAutoStart(Boolean autoStart) {
6873
this.autoStart = autoStart;
6974
}
75+
76+
public void setPrivacyMode(Boolean privacyMode) {
77+
this.privacyMode = privacyMode;
78+
}
7079
}

src/test/java/com/vailsys/freeclimb/percl/RecordUtteranceTest.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ public void setPlayBeep(Boolean playBeep) {
8585
public void setAutoStart(Boolean autoStart) {
8686
this.command.setAutoStart(autoStart);
8787
}
88+
@Then("^set privacyMode to (true|false) in the RecordUtterance object$")
89+
public void setPrivacyMode(Boolean privacyMode) {
90+
this.command.setPrivacyMode(privacyMode);
91+
}
8892

8993
@Then("^check that actionUrl is (.+) in the RecordUtterance object$")
9094
public void getActionUrl(String actionUrl) {
@@ -110,4 +114,8 @@ public void getPlayBeep(Boolean playBeep) {
110114
public void getAutoStart(Boolean autoStart) {
111115
assertThat(this.command.getAutoStart(), is(autoStart));
112116
}
117+
@Then("^check that privacyMode is (true|false) in the RecordUtterance object$")
118+
public void getPrivacyMode(Boolean privacyMode) {
119+
assertThat(this.command.getPrivacyMode(), is(privacyMode));
120+
}
113121
}

src/test/resources/com/vailsys/freeclimb/percl/RecordUtterance.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ Feature: RecordUtterance
1818
Then check that playBeep is true in the RecordUtterance object
1919
Then set autoStart to false in the RecordUtterance object
2020
Then check that autoStart is false in the RecordUtterance object
21+
Then set privacyMode to true in the RecordUtterance object
22+
Then check that privacyMode is true in the RecordUtterance object

0 commit comments

Comments
 (0)