-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80acf7d
commit b65dc29
Showing
66 changed files
with
6,302 additions
and
155 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
12 changes: 12 additions & 0 deletions
12
src/main/java/com/infobip/model/MessagesApiBaseFailover.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,12 @@ | ||
/* | ||
* This class is auto generated from the Infobip OpenAPI specification | ||
* through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR), | ||
* powered by the OpenAPI Generator (https://openapi-generator.tech). | ||
* | ||
* Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide | ||
* or contact us @ [email protected]. | ||
*/ | ||
|
||
package com.infobip.model; | ||
|
||
public interface MessagesApiBaseFailover {} |
91 changes: 91 additions & 0 deletions
91
src/main/java/com/infobip/model/MessagesApiCarouselTemplateButton.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,91 @@ | ||
/* | ||
* This class is auto generated from the Infobip OpenAPI specification | ||
* through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR), | ||
* powered by the OpenAPI Generator (https://openapi-generator.tech). | ||
* | ||
* Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide | ||
* or contact us @ [email protected]. | ||
*/ | ||
|
||
package com.infobip.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import com.fasterxml.jackson.annotation.JsonSubTypes; | ||
import com.fasterxml.jackson.annotation.JsonTypeInfo; | ||
import java.util.Objects; | ||
|
||
/** | ||
* List of buttons of a card. | ||
*/ | ||
@JsonTypeInfo( | ||
use = JsonTypeInfo.Id.NAME, | ||
include = JsonTypeInfo.As.EXISTING_PROPERTY, | ||
property = "type", | ||
visible = true) | ||
@JsonSubTypes({ | ||
@JsonSubTypes.Type(value = MessagesApiCarouselTemplateOpenUrlButton.class, name = "OPEN_URL"), | ||
@JsonSubTypes.Type(value = MessagesApiCarouselTemplatePhoneNumberButton.class, name = "PHONE_NUMBER"), | ||
@JsonSubTypes.Type(value = MessagesApiCarouselTemplateQuickReplyButton.class, name = "QUICK_REPLY"), | ||
}) | ||
public abstract class MessagesApiCarouselTemplateButton { | ||
|
||
protected final MessagesApiCarouselTemplateButtonType type; | ||
|
||
/** | ||
* Constructs a new {@link MessagesApiCarouselTemplateButton} instance. | ||
*/ | ||
public MessagesApiCarouselTemplateButton(String type) { | ||
this.type = MessagesApiCarouselTemplateButtonType.fromValue(type); | ||
} | ||
|
||
/** | ||
* Returns type. | ||
* <p> | ||
* The field is required. | ||
* | ||
* @return type | ||
*/ | ||
@JsonProperty("type") | ||
public MessagesApiCarouselTemplateButtonType getType() { | ||
return type; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
MessagesApiCarouselTemplateButton messagesApiCarouselTemplateButton = (MessagesApiCarouselTemplateButton) o; | ||
return Objects.equals(this.type, messagesApiCarouselTemplateButton.type); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(type); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
String newLine = System.lineSeparator(); | ||
return new StringBuilder() | ||
.append("class MessagesApiCarouselTemplateButton {") | ||
.append(newLine) | ||
.append(" type: ") | ||
.append(toIndentedString(type)) | ||
.append(newLine) | ||
.append("}") | ||
.toString(); | ||
} | ||
|
||
private String toIndentedString(Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
String lineSeparator = System.lineSeparator(); | ||
String lineSeparatorFollowedByIndentation = lineSeparator + " "; | ||
return o.toString().replace(lineSeparator, lineSeparatorFollowedByIndentation); | ||
} | ||
} |
48 changes: 48 additions & 0 deletions
48
src/main/java/com/infobip/model/MessagesApiCarouselTemplateButtonType.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,48 @@ | ||
/* | ||
* This class is auto generated from the Infobip OpenAPI specification | ||
* through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR), | ||
* powered by the OpenAPI Generator (https://openapi-generator.tech). | ||
* | ||
* Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide | ||
* or contact us @ [email protected]. | ||
*/ | ||
|
||
package com.infobip.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonValue; | ||
|
||
/** | ||
* Represents MessagesApiCarouselTemplateButtonType enumeration. | ||
*/ | ||
public enum MessagesApiCarouselTemplateButtonType { | ||
QUICK_REPLY("QUICK_REPLY"), | ||
OPEN_URL("OPEN_URL"), | ||
PHONE_NUMBER("PHONE_NUMBER"); | ||
|
||
private final String value; | ||
|
||
MessagesApiCarouselTemplateButtonType(String value) { | ||
this.value = value; | ||
} | ||
|
||
@JsonValue | ||
public String getValue() { | ||
return value; | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return String.valueOf(value); | ||
} | ||
|
||
@JsonCreator | ||
public static MessagesApiCarouselTemplateButtonType fromValue(String value) { | ||
for (MessagesApiCarouselTemplateButtonType enumElement : MessagesApiCarouselTemplateButtonType.values()) { | ||
if (enumElement.value.equals(value)) { | ||
return enumElement; | ||
} | ||
} | ||
throw new IllegalArgumentException("Unexpected enum value '" + value + "'."); | ||
} | ||
} |
117 changes: 117 additions & 0 deletions
117
src/main/java/com/infobip/model/MessagesApiCarouselTemplateOpenUrlButton.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,117 @@ | ||
/* | ||
* This class is auto generated from the Infobip OpenAPI specification | ||
* through the OpenAPI Specification Client API libraries (Re)Generator (OSCAR), | ||
* powered by the OpenAPI Generator (https://openapi-generator.tech). | ||
* | ||
* Do not edit manually. To learn how to raise an issue, see the CONTRIBUTING guide | ||
* or contact us @ [email protected]. | ||
*/ | ||
|
||
package com.infobip.model; | ||
|
||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
import java.util.Objects; | ||
|
||
/** | ||
* Represents MessagesApiCarouselTemplateOpenUrlButton model. | ||
*/ | ||
public class MessagesApiCarouselTemplateOpenUrlButton extends MessagesApiCarouselTemplateButton { | ||
|
||
private String suffix; | ||
|
||
/** | ||
* Constructs a new {@link MessagesApiCarouselTemplateOpenUrlButton} instance. | ||
*/ | ||
public MessagesApiCarouselTemplateOpenUrlButton() { | ||
super("OPEN_URL"); | ||
} | ||
|
||
/** | ||
* Sets suffix. | ||
* <p> | ||
* Field description: | ||
* Extension of a URL defined in the registered template. | ||
* <p> | ||
* The field is required. | ||
* | ||
* @param suffix | ||
* @return This {@link MessagesApiCarouselTemplateOpenUrlButton instance}. | ||
*/ | ||
public MessagesApiCarouselTemplateOpenUrlButton suffix(String suffix) { | ||
this.suffix = suffix; | ||
return this; | ||
} | ||
|
||
/** | ||
* Returns suffix. | ||
* <p> | ||
* Field description: | ||
* Extension of a URL defined in the registered template. | ||
* <p> | ||
* The field is required. | ||
* | ||
* @return suffix | ||
*/ | ||
@JsonProperty("suffix") | ||
public String getSuffix() { | ||
return suffix; | ||
} | ||
|
||
/** | ||
* Sets suffix. | ||
* <p> | ||
* Field description: | ||
* Extension of a URL defined in the registered template. | ||
* <p> | ||
* The field is required. | ||
* | ||
* @param suffix | ||
*/ | ||
@JsonProperty("suffix") | ||
public void setSuffix(String suffix) { | ||
this.suffix = suffix; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
MessagesApiCarouselTemplateOpenUrlButton messagesApiCarouselTemplateOpenUrlButton = | ||
(MessagesApiCarouselTemplateOpenUrlButton) o; | ||
return Objects.equals(this.suffix, messagesApiCarouselTemplateOpenUrlButton.suffix) && super.equals(o); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(suffix, super.hashCode()); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
String newLine = System.lineSeparator(); | ||
return new StringBuilder() | ||
.append("class MessagesApiCarouselTemplateOpenUrlButton {") | ||
.append(newLine) | ||
.append(" ") | ||
.append(toIndentedString(super.toString())) | ||
.append(newLine) | ||
.append(" suffix: ") | ||
.append(toIndentedString(suffix)) | ||
.append(newLine) | ||
.append("}") | ||
.toString(); | ||
} | ||
|
||
private String toIndentedString(Object o) { | ||
if (o == null) { | ||
return "null"; | ||
} | ||
String lineSeparator = System.lineSeparator(); | ||
String lineSeparatorFollowedByIndentation = lineSeparator + " "; | ||
return o.toString().replace(lineSeparator, lineSeparatorFollowedByIndentation); | ||
} | ||
} |
Oops, something went wrong.