Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ce/docs/FeaturesInfo.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
|------------ | ------------- | ------------- | -------------|
| **smsEnabled** | **Boolean** | | [optional] |
| **oauthEnabled** | **Boolean** | | [optional] |
| **notificationEnabled** | **Boolean** | | [optional] |
| **twoFaEnabled** | **Boolean** | | [optional] |
| **emailEnabled** | **Boolean** | | [optional] |
| **notificationEnabled** | **Boolean** | | [optional] |



Expand Down
6 changes: 3 additions & 3 deletions ce/spec/openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -88626,14 +88626,14 @@
"oauthEnabled": {
"type": "boolean"
},
"notificationEnabled": {
"type": "boolean"
},
"twoFaEnabled": {
"type": "boolean"
},
"emailEnabled": {
"type": "boolean"
},
"notificationEnabled": {
"type": "boolean"
}
}
},
Expand Down
78 changes: 39 additions & 39 deletions ce/src/main/java/org/thingsboard/client/model/FeaturesInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@
@JsonPropertyOrder({
FeaturesInfo.JSON_PROPERTY_SMS_ENABLED,
FeaturesInfo.JSON_PROPERTY_OAUTH_ENABLED,
FeaturesInfo.JSON_PROPERTY_NOTIFICATION_ENABLED,
FeaturesInfo.JSON_PROPERTY_TWO_FA_ENABLED,
FeaturesInfo.JSON_PROPERTY_EMAIL_ENABLED
FeaturesInfo.JSON_PROPERTY_EMAIL_ENABLED,
FeaturesInfo.JSON_PROPERTY_NOTIFICATION_ENABLED
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", comments = "Generator version: 7.20.0")
public class FeaturesInfo {
Expand All @@ -51,10 +51,6 @@ public class FeaturesInfo {
@javax.annotation.Nullable
private Boolean oauthEnabled;

public static final String JSON_PROPERTY_NOTIFICATION_ENABLED = "notificationEnabled";
@javax.annotation.Nullable
private Boolean notificationEnabled;

public static final String JSON_PROPERTY_TWO_FA_ENABLED = "twoFaEnabled";
@javax.annotation.Nullable
private Boolean twoFaEnabled;
Expand All @@ -63,6 +59,10 @@ public class FeaturesInfo {
@javax.annotation.Nullable
private Boolean emailEnabled;

public static final String JSON_PROPERTY_NOTIFICATION_ENABLED = "notificationEnabled";
@javax.annotation.Nullable
private Boolean notificationEnabled;

public FeaturesInfo() {
}

Expand Down Expand Up @@ -114,30 +114,6 @@ public void setOauthEnabled(@javax.annotation.Nullable Boolean oauthEnabled) {
}


public FeaturesInfo notificationEnabled(@javax.annotation.Nullable Boolean notificationEnabled) {
this.notificationEnabled = notificationEnabled;
return this;
}

/**
* Get notificationEnabled
* @return notificationEnabled
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_NOTIFICATION_ENABLED, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getNotificationEnabled() {
return notificationEnabled;
}


@JsonProperty(value = JSON_PROPERTY_NOTIFICATION_ENABLED, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNotificationEnabled(@javax.annotation.Nullable Boolean notificationEnabled) {
this.notificationEnabled = notificationEnabled;
}


public FeaturesInfo twoFaEnabled(@javax.annotation.Nullable Boolean twoFaEnabled) {
this.twoFaEnabled = twoFaEnabled;
return this;
Expand Down Expand Up @@ -186,6 +162,30 @@ public void setEmailEnabled(@javax.annotation.Nullable Boolean emailEnabled) {
}


public FeaturesInfo notificationEnabled(@javax.annotation.Nullable Boolean notificationEnabled) {
this.notificationEnabled = notificationEnabled;
return this;
}

/**
* Get notificationEnabled
* @return notificationEnabled
*/
@javax.annotation.Nullable
@JsonProperty(value = JSON_PROPERTY_NOTIFICATION_ENABLED, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public Boolean getNotificationEnabled() {
return notificationEnabled;
}


@JsonProperty(value = JSON_PROPERTY_NOTIFICATION_ENABLED, required = false)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setNotificationEnabled(@javax.annotation.Nullable Boolean notificationEnabled) {
this.notificationEnabled = notificationEnabled;
}


/**
* Return true if this FeaturesInfo object is equal to o.
*/
Expand All @@ -200,14 +200,14 @@ public boolean equals(Object o) {
FeaturesInfo featuresInfo = (FeaturesInfo) o;
return Objects.equals(this.smsEnabled, featuresInfo.smsEnabled) &&
Objects.equals(this.oauthEnabled, featuresInfo.oauthEnabled) &&
Objects.equals(this.notificationEnabled, featuresInfo.notificationEnabled) &&
Objects.equals(this.twoFaEnabled, featuresInfo.twoFaEnabled) &&
Objects.equals(this.emailEnabled, featuresInfo.emailEnabled);
Objects.equals(this.emailEnabled, featuresInfo.emailEnabled) &&
Objects.equals(this.notificationEnabled, featuresInfo.notificationEnabled);
}

@Override
public int hashCode() {
return Objects.hash(smsEnabled, oauthEnabled, notificationEnabled, twoFaEnabled, emailEnabled);
return Objects.hash(smsEnabled, oauthEnabled, twoFaEnabled, emailEnabled, notificationEnabled);
}

@Override
Expand All @@ -216,9 +216,9 @@ public String toString() {
sb.append("class FeaturesInfo {\n");
sb.append(" smsEnabled: ").append(toIndentedString(smsEnabled)).append("\n");
sb.append(" oauthEnabled: ").append(toIndentedString(oauthEnabled)).append("\n");
sb.append(" notificationEnabled: ").append(toIndentedString(notificationEnabled)).append("\n");
sb.append(" twoFaEnabled: ").append(toIndentedString(twoFaEnabled)).append("\n");
sb.append(" emailEnabled: ").append(toIndentedString(emailEnabled)).append("\n");
sb.append(" notificationEnabled: ").append(toIndentedString(notificationEnabled)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down Expand Up @@ -276,11 +276,6 @@ public String toUrlQueryString(String prefix) {
joiner.add(String.format(java.util.Locale.ROOT, "%soauthEnabled%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getOauthEnabled()))));
}

// add `notificationEnabled` to the URL query string
if (getNotificationEnabled() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%snotificationEnabled%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getNotificationEnabled()))));
}

// add `twoFaEnabled` to the URL query string
if (getTwoFaEnabled() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%stwoFaEnabled%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getTwoFaEnabled()))));
Expand All @@ -291,6 +286,11 @@ public String toUrlQueryString(String prefix) {
joiner.add(String.format(java.util.Locale.ROOT, "%semailEnabled%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getEmailEnabled()))));
}

// add `notificationEnabled` to the URL query string
if (getNotificationEnabled() != null) {
joiner.add(String.format(java.util.Locale.ROOT, "%snotificationEnabled%s=%s", prefix, suffix, ApiClient.urlEncode(ApiClient.valueToString(getNotificationEnabled()))));
}

return joiner.toString();
}
}
Expand Down