package org.sagebionetworks.web.shared;

import java.util.List;

import com.google.gwt.user.client.rpc.IsSerializable;

public class ChallengeTeamPagedResults implements IsSerializable {
	private Long totalNumberOfResults;
	private List<ChallengeTeamBundle> results;
	private boolean isAdmin;
	/**
	 * Default constructor is required
	 */
	public ChallengeTeamPagedResults() {
	}
	
	
	public ChallengeTeamPagedResults(List<ChallengeTeamBundle> results, Long totalNumberOfResults) {
		super();
		this.totalNumberOfResults = totalNumberOfResults;
		this.results = results;
	}

	public Long getTotalNumberOfResults() {
		return totalNumberOfResults;
	}

	public void setTotalNumberOfResults(Long totalNumberOfResults) {
		this.totalNumberOfResults = totalNumberOfResults;
	}

	public List<ChallengeTeamBundle> getResults() {
		return results;
	}

	public void setResults(List<ChallengeTeamBundle> results) {
		this.results = results;
	}

	


	public boolean isAdmin() {
		return isAdmin;
	}


	public void setAdmin(boolean isAdmin) {
		this.isAdmin = isAdmin;
	}


	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + (isAdmin ? 1231 : 1237);
		result = prime * result + ((results == null) ? 0 : results.hashCode());
		result = prime * result + ((totalNumberOfResults == null) ? 0 : totalNumberOfResults.hashCode());
		return result;
	}


	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ChallengeTeamPagedResults other = (ChallengeTeamPagedResults) obj;
		if (isAdmin != other.isAdmin)
			return false;
		if (results == null) {
			if (other.results != null)
				return false;
		} else if (!results.equals(other.results))
			return false;
		if (totalNumberOfResults == null) {
			if (other.totalNumberOfResults != null)
				return false;
		} else if (!totalNumberOfResults.equals(other.totalNumberOfResults))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "ChallengeTeamPagedResults [totalNumberOfResults=" + totalNumberOfResults + ", results=" + results + ", isAdmin=" + isAdmin + "]";
	}

	
	
}

@@ -264,39 +264,13 @@
 ts;%0A
-%09private boolean isAdmin;%0A
 %09/**%0A
+
 %09 * 
@@ -906,134 +906,8 @@
 %09%7D%0A%0A
-%09%0A%0A%0A%09public boolean isAdmin() %7B%0A%09%09return isAdmin;%0A%09%7D%0A%0A%0A%09public void setAdmin(boolean isAdmin) %7B%0A%09%09this.isAdmin = isAdmin;%0A%09%7D%0A%0A
 %0A%09@O
@@ -985,61 +985,8 @@
  1;%0A
-%09%09result = prime * result + (isAdmin ? 1231 : 1237);%0A
 %09%09re
@@ -1422,57 +1422,8 @@
 bj;%0A
-%09%09if (isAdmin != other.isAdmin)%0A%09%09%09return false;%0A
 %09%09if
@@ -1759,16 +1759,17 @@
 ue;%0A%09%7D%0A%0A
+%0A
 %09@Overri
@@ -1912,41 +1912,16 @@
 ts +
- %22, isAdmin=%22 + isAdmin +
  %22%5D%22;%0A%09%7D
 %0A%0A%09%0A
@@ -1916,16 +1916,13 @@
  %22%5D%22;%0A%09%7D
-%0A%0A%09
 %0A%09%0A%7D%0A

remove isAdmin