update oidc+partey

This commit is contained in:
2022-05-12 09:32:54 +02:00
parent eb829bfa26
commit b876bad3e7
42 changed files with 3061 additions and 440 deletions
@@ -14,33 +14,20 @@ import de.bstly.we.partey.model.GameRoomPolicyTypes;
*/
public class MapDetailsData {
private String roomSlug = "";
private String mapUrl = "";
private GameRoomPolicyTypes policy_type = GameRoomPolicyTypes.ANONYMOUS_POLICY;
private List<String> tags = Lists.newArrayList();
private List<CharacterTexture> textures = Lists.newArrayList();
private String contactPage = "";
private boolean authenticationMandatory;
private String group = "";
private String roomSlug;
private String contactPage;
private String group;
private String iframeAuthentication;
/**
* Gets the room slug.
*
* @return the room slug
*/
public String getRoomSlug() {
return roomSlug;
}
/**
* Sets the room slug.
*
* @param roomSlug the new room slug
*/
public void setRoomSlug(String roomSlug) {
this.roomSlug = roomSlug;
}
private String miniLogo;
private String loadingLogo;
private String loginSceneLogo;
private boolean showPoweredBy = false;
private String loadingCowebsiteLogo;
private boolean canReport = true;
/**
* Gets the map url.
@@ -97,21 +84,39 @@ public class MapDetailsData {
}
/**
* Gets the textures.
* Checks if is authentication mandatory.
*
* @return the textures
* @return true, if is authentication mandatory
*/
public List<CharacterTexture> getTextures() {
return textures;
public boolean isAuthenticationMandatory() {
return authenticationMandatory;
}
/**
* Sets the textures.
* Sets the authentication mandatory.
*
* @param textures the new textures
* @param authenticationMandatory the new authentication mandatory
*/
public void setTextures(List<CharacterTexture> textures) {
this.textures = textures;
public void setAuthenticationMandatory(boolean authenticationMandatory) {
this.authenticationMandatory = authenticationMandatory;
}
/**
* Gets the room slug.
*
* @return the room slug
*/
public String getRoomSlug() {
return roomSlug;
}
/**
* Sets the room slug.
*
* @param roomSlug the new room slug
*/
public void setRoomSlug(String roomSlug) {
this.roomSlug = roomSlug;
}
/**
@@ -132,24 +137,6 @@ public class MapDetailsData {
this.contactPage = contactPage;
}
/**
* Checks if is authentication mandatory.
*
* @return true, if is authentication mandatory
*/
public boolean isAuthenticationMandatory() {
return authenticationMandatory;
}
/**
* Sets the authentication mandatory.
*
* @param authenticationMandatory the new authentication mandatory
*/
public void setAuthenticationMandatory(boolean authenticationMandatory) {
this.authenticationMandatory = authenticationMandatory;
}
/**
* Gets the group.
*
@@ -186,4 +173,112 @@ public class MapDetailsData {
this.iframeAuthentication = iframeAuthentication;
}
/**
* Gets the mini logo.
*
* @return the mini logo
*/
public String getMiniLogo() {
return miniLogo;
}
/**
* Sets the mini logo.
*
* @param miniLogo the new mini logo
*/
public void setMiniLogo(String miniLogo) {
this.miniLogo = miniLogo;
}
/**
* Gets the loading logo.
*
* @return the loading logo
*/
public String getLoadingLogo() {
return loadingLogo;
}
/**
* Sets the loading logo.
*
* @param loadingLogo the new loading logo
*/
public void setLoadingLogo(String loadingLogo) {
this.loadingLogo = loadingLogo;
}
/**
* Gets the login scene logo.
*
* @return the login scene logo
*/
public String getLoginSceneLogo() {
return loginSceneLogo;
}
/**
* Sets the login scene logo.
*
* @param loginSceneLogo the new login scene logo
*/
public void setLoginSceneLogo(String loginSceneLogo) {
this.loginSceneLogo = loginSceneLogo;
}
/**
* Checks if is show powered by.
*
* @return true, if is show powered by
*/
public boolean isShowPoweredBy() {
return showPoweredBy;
}
/**
* Sets the show powered by.
*
* @param showPoweredBy the new show powered by
*/
public void setShowPoweredBy(boolean showPoweredBy) {
this.showPoweredBy = showPoweredBy;
}
/**
* Gets the loading cowebsite logo.
*
* @return the loading cowebsite logo
*/
public String getLoadingCowebsiteLogo() {
return loadingCowebsiteLogo;
}
/**
* Sets the loading cowebsite logo.
*
* @param loadingCowebsiteLogo the new loading cowebsite logo
*/
public void setLoadingCowebsiteLogo(String loadingCowebsiteLogo) {
this.loadingCowebsiteLogo = loadingCowebsiteLogo;
}
/**
* Checks if is can report.
*
* @return true, if is can report
*/
public boolean isCanReport() {
return canReport;
}
/**
* Sets the can report.
*
* @param canReport the new can report
*/
public void setCanReport(boolean canReport) {
this.canReport = canReport;
}
}
@@ -189,6 +189,27 @@ public class ParteyUserTag implements UserData {
this.tag = tag;
}
/*
* @see java.lang.Object#equals(java.lang.Object)
*/
@Override
public boolean equals(Object obj) {
if (obj instanceof ParteyUserTagId) {
ParteyUserTagId parteyUserTagId = (ParteyUserTagId) obj;
return this.target.equals(parteyUserTagId.getTarget()) && this.tag.equals(parteyUserTagId.getTag());
}
return false;
}
/*
* @see java.lang.Object#hashCode()
*/
@Override
public int hashCode() {
return this.target.hashCode() * this.tag.hashCode();
}
}
}