com.github.jamesnetherton.zulip.client.api.server.response.GetServerSettingsApiResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of zulip-java-client Show documentation
Show all versions of zulip-java-client Show documentation
Java client for the Zulip REST API
The newest version!
package com.github.jamesnetherton.zulip.client.api.server.response;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.github.jamesnetherton.zulip.client.api.core.ZulipApiResponse;
import com.github.jamesnetherton.zulip.client.api.server.AuthenticationSettings;
import com.github.jamesnetherton.zulip.client.api.server.ExternalAuthenticationSettings;
import java.util.ArrayList;
import java.util.List;
/**
* Zulip API response class for getting all server settings.
*
* @see https://zulip.com/api/get-server-settings#response
*/
public class GetServerSettingsApiResponse extends ZulipApiResponse {
@JsonProperty
private AuthenticationSettings authenticationMethods;
@JsonProperty
private boolean emailAuthEnabled;
@JsonProperty
List externalAuthenticationMethods = new ArrayList<>();
@JsonProperty
private boolean incompatible;
@JsonProperty
private boolean pushNotificationsEnabled;
@JsonProperty
private String realmDescription;
@JsonProperty
private String realmIcon;
@JsonProperty
private String realmName;
@Deprecated(since = "0.7.0", forRemoval = true)
@JsonProperty
private String realmUri;
@JsonProperty
private String realmUrl;
@JsonProperty
private boolean realmWebPublicAccessEnabled;
@JsonProperty
private boolean requireEmailFormatUsernames;
@JsonProperty
private String zulipMergeBase;
@JsonProperty
private String zulipVersion;
public AuthenticationSettings getAuthenticationMethods() {
return authenticationMethods;
}
public boolean isEmailAuthEnabled() {
return emailAuthEnabled;
}
public List getExternalAuthenticationMethods() {
return externalAuthenticationMethods;
}
public boolean isIncompatible() {
return incompatible;
}
public boolean isPushNotificationsEnabled() {
return pushNotificationsEnabled;
}
public String getRealmDescription() {
return realmDescription;
}
public String getRealmIcon() {
return realmIcon;
}
public String getRealmName() {
return realmName;
}
@Deprecated(since = "0.7.0", forRemoval = true)
@JsonProperty
public String getRealmUri() {
return realmUri;
}
public String getRealmUrl() {
return realmUrl;
}
public boolean isRealmWebPublicAccessEnabled() {
return realmWebPublicAccessEnabled;
}
public boolean isRequireEmailFormatUsernames() {
return requireEmailFormatUsernames;
}
public String getZulipMergeBase() {
return zulipMergeBase;
}
public String getZulipVersion() {
return zulipVersion;
}
}