-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #697 from besbes/feature/voicecomment
Add VoiceComment sub-type
- Loading branch information
Showing
3 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/main/java/org/zendesk/client/v2/model/comments/VoiceComment.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package org.zendesk.client.v2.model.comments; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import org.zendesk.client.v2.model.Comment; | ||
|
||
public class VoiceComment extends Comment { | ||
|
||
private VoiceCommentData data; | ||
|
||
@JsonProperty("data") | ||
public VoiceCommentData getData() { | ||
return data; | ||
} | ||
} |
17 changes: 17 additions & 0 deletions
17
src/main/java/org/zendesk/client/v2/model/comments/VoiceCommentData.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.zendesk.client.v2.model.comments; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
|
||
/** | ||
* @author besbes | ||
* @since 05/03/2024 13:51 | ||
*/ | ||
public class VoiceCommentData { | ||
|
||
private Long callDuration; | ||
|
||
@JsonProperty("call_duration") | ||
public Long getCallDuration() { | ||
return callDuration; | ||
} | ||
} |