Skip to content

Commit a2661a0

Browse files
authored
Merge pull request #18 from FreeClimbAPI/VCSWP-15719
VCSWP-15719: Added active property to CallsSearchFilters.java
2 parents 4f950e0 + 43af720 commit a2661a0

File tree

4 files changed

+46
-1
lines changed

4 files changed

+46
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
66

77
## [Unreleased]
88
None
9+
<a name="4.1.3"</a>
10+
## [4.1.3] 2021-11-3
11+
### Added
12+
- 1 new property `active` for CallSearchFilters and Call
913
<a name="4.1.2"</a>
1014
## [3.0.2] 2021-8-3
1115
### 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 = '4.1.1'
12+
version = '4.1.3'
1313

1414
repositories {
1515
mavenCentral()

src/main/java/com/vailsys/freeclimb/api/call/Call.java

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ public class Call extends FreeClimbCommon {
5252
* CallingNumber from which the call was placed.
5353
*/
5454
private String phoneNumberId;
55+
/**
56+
* Additional paramter to support queries of active or terminated calls.
57+
*/
58+
private boolean active;
5559
/**
5660
* This represents the current status or state of this call.
5761
*
@@ -167,6 +171,15 @@ public String getPhoneNumberId() {
167171
return this.phoneNumberId;
168172
}
169173

174+
/**
175+
* Retrieve the value of the active filter
176+
*
177+
* @return whether the call was active or not
178+
*/
179+
public String getActive() {
180+
return this.active;
181+
}
182+
170183
/**
171184
* Retrieve the status for this call from the object.
172185
*
@@ -327,6 +340,12 @@ public boolean equals(Call that) {
327340
result = result && that.status == null;
328341
}
329342

343+
if (this.active != null) {
344+
result = result && this.active.equals(that.active);
345+
} else {
346+
result = result && that.active == null;
347+
}
348+
330349
if (this.startTime != null) {
331350
result = result && this.startTime.equals(that.startTime);
332351
} else {

src/main/java/com/vailsys/freeclimb/api/call/CallsSearchFilters.java

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,10 @@ public class CallsSearchFilters extends Filters {
4343
* The callId of the call that spawned this one.
4444
*/
4545
private String parentCallId;
46+
/**
47+
* Additional paramter to support queries of active or terminated calls.
48+
*/
49+
private boolean active;
4650

4751
/**
4852
* Retrieve the value of the to (DNIS) filter.
@@ -129,6 +133,15 @@ public String getParentCallId() {
129133
return this.parentCallId;
130134
}
131135

136+
/**
137+
* Retrieve the value of the active filter
138+
*
139+
* @return whether the call was active or not
140+
*/
141+
public String getActive() {
142+
return this.active;
143+
}
144+
132145
/**
133146
* Set this to filter for calls that are to the provided number (search by
134147
* DNIS).
@@ -204,4 +217,13 @@ public void setEndTime(Long endTime) {
204217
public void setParentCallId(String parentCallId) {
205218
this.parentCallId = parentCallId;
206219
}
220+
221+
/**
222+
* Set the active filter to support queries of active or terminated calls
223+
*
224+
* @param active whether the call was active or not
225+
*/
226+
public void setActive(boolean active) {
227+
this.active = active;
228+
}
207229
}

0 commit comments

Comments
 (0)