com.manywho.sdk.api.run.elements.map.VoteRequest Maven / Gradle / Ivy
package com.manywho.sdk.api.run.elements.map;
import com.manywho.sdk.api.run.EngineValue;
import com.manywho.sdk.api.run.elements.ConfigurationValuesAware;
import com.manywho.sdk.api.run.elements.config.Authorization;
import com.manywho.sdk.api.run.state.UserVote;
import org.apache.commons.collections4.CollectionUtils;
import java.util.HashMap;
import java.util.List;
public class VoteRequest implements ConfigurationValuesAware {
private List configurationValues;
private Authorization authorization;
private List userVotes;
private String voteType;
private int minimumCount;
private int minimumPercent;
private HashMap attributes;
private String selectedOutcomeId;
public List getConfigurationValues() {
return configurationValues;
}
@Override
public boolean hasConfigurationValues() {
return CollectionUtils.isNotEmpty(configurationValues);
}
public void setConfigurationValues(List configurationValues) {
this.configurationValues = configurationValues;
}
public Authorization getAuthorization() {
return authorization;
}
public void setAuthorization(Authorization authorization) {
this.authorization = authorization;
}
public List getUserVotes() {
return userVotes;
}
public void setUserVotes(List userVotes) {
this.userVotes = userVotes;
}
public String getVoteType() {
return voteType;
}
public void setVoteType(String voteType) {
this.voteType = voteType;
}
public int getMinimumCount() {
return minimumCount;
}
public void setMinimumCount(int minimumCount) {
this.minimumCount = minimumCount;
}
public int getMinimumPercent() {
return minimumPercent;
}
public void setMinimumPercent(int minimumPercent) {
this.minimumPercent = minimumPercent;
}
public HashMap getAttributes() {
return attributes;
}
public void setAttributes(HashMap attributes) {
this.attributes = attributes;
}
public String getSelectedOutcomeId() {
return selectedOutcomeId;
}
public void setSelectedOutcomeId(String selectedOutcomeId) {
this.selectedOutcomeId = selectedOutcomeId;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy