-
-
Notifications
You must be signed in to change notification settings - Fork 81
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 #173 from BernardoGiordano/voice-call-button
Add missing voice call button type
- Loading branch information
Showing
3 changed files
with
34 additions
and
2 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
27 changes: 27 additions & 0 deletions
27
src/main/java/com/whatsapp/api/domain/templates/VoiceCallButton.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,27 @@ | ||
package com.whatsapp.api.domain.templates; | ||
|
||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.whatsapp.api.domain.templates.type.ButtonType; | ||
|
||
/** | ||
* The type Voice call button. | ||
*/ | ||
@JsonInclude(JsonInclude.Include.NON_NULL) | ||
public class VoiceCallButton extends Button { | ||
|
||
/** | ||
* Instantiates a new Voice call button. | ||
*/ | ||
protected VoiceCallButton() { | ||
super(ButtonType.VOICE_CALL); | ||
} | ||
|
||
/** | ||
* Instantiates a new Quick reply button. | ||
* | ||
* @param text the text | ||
*/ | ||
public VoiceCallButton(String text) { | ||
super(ButtonType.VOICE_CALL, text); | ||
} | ||
} |
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