Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
* develop:
  More informations  in Reports paticipation by email
  • Loading branch information
grada84 committed Aug 7, 2023
2 parents 55fa461 + c6ba578 commit efe418c
Showing 1 changed file with 88 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,19 @@ public class ElectionParticipationDetailReport implements Serializable {
private String startDate;
private String endDate;
private String role;



//Voters Info
private String voterOrgID;
private String voterCountry;
private String voterLanguage;
private int voterVoteAmount;
private boolean voterVoted;
private String voterVoteDate;

//Candidates Info
private String candidateBio;
private String candidateLink;

public ElectionParticipationDetailReport() { }

public ElectionParticipationDetailReport(Auditor auditor) {
Expand Down Expand Up @@ -57,6 +68,10 @@ public ElectionParticipationDetailReport(Candidate candidate) {
this.role = "Candidate";
this.startDate = DateTimeUtils.getTableServicesDateTimeString(candidate.getElection().getStartDate());
this.endDate = DateTimeUtils.getTableServicesDateTimeString(candidate.getElection().getEndDate());

this.candidateBio = candidate.getBioSpanish();
this.candidateLink = candidate.getLinkSpanish();

}

public ElectionParticipationDetailReport(UserVoter userVoter) {
Expand All @@ -71,6 +86,13 @@ public ElectionParticipationDetailReport(UserVoter userVoter) {
this.descriptionSpanish = userVoter.getElection().getDescriptionSpanish();
this.startDate = DateTimeUtils.getTableServicesDateTimeString(userVoter.getElection().getStartDate());
this.endDate = DateTimeUtils.getTableServicesDateTimeString(userVoter.getElection().getEndDate());

this.voterOrgID = userVoter.getOrgID();
this.voterCountry = userVoter.getCountry();
this.voterLanguage = userVoter.getLanguage();
this.voterVoteAmount = userVoter.getVoteAmount();
this.voterVoted = userVoter.isVoted();
this.voterVoteDate = DateTimeUtils.getTableServicesDateTimeString(userVoter.getVoteDate());
}


Expand Down Expand Up @@ -162,4 +184,68 @@ public void setDescriptionPortuguese(String descriptionPortuguese) {
this.descriptionPortuguese=descriptionPortuguese;
}

public String getVoterOrgID() {
return voterOrgID;
}

public void setVoterOrgID(String voterOrgID) {
this.voterOrgID = voterOrgID;
}

public String getVoterCountry() {
return voterCountry;
}

public void setVoterCountry(String voterCountry) {
this.voterCountry = voterCountry;
}

public String getVoterLanguage() {
return voterLanguage;
}

public void setVoterLanguage(String voterLanguage) {
this.voterLanguage = voterLanguage;
}

public int getVoterVoteAmount() {
return voterVoteAmount;
}

public void setVoterVoteAmount(int voterVoteAmount) {
this.voterVoteAmount = voterVoteAmount;
}

public boolean isVoterVoted() {
return voterVoted;
}

public void setVoterVoted(boolean voterVoted) {
this.voterVoted = voterVoted;
}

public String getVoterVoteDate() {
return voterVoteDate;
}

public void setVoterVoteDate(String voterVoteDate) {
this.voterVoteDate = voterVoteDate;
}

public String getCandidateBio() {
return candidateBio;
}

public void setCandidateBio(String candidateBio) {
this.candidateBio = candidateBio;
}

public String getCandidateLink() {
return candidateLink;
}

public void setCandidateLink(String candidateLink) {
this.candidateLink = candidateLink;
}

}

0 comments on commit efe418c

Please sign in to comment.