src/main/java/org/votesmart/classes/ElectionClass.java
public Elections getElectionByYearState(String year) throws VoteSmartException, VoteSmartErrorException {
		return api.query("Election.getElectionByYearState", new ArgMap("year", year), Elections.class );
	}
public Elections getElectionByYearState(String year) throws VoteSmartException, VoteSmartErrorException {
		return api.query("Election.getElectionByYearState", new ArgMap("year", year), Elections.class );
	}
public Elections getElectionByYearState ( String year ) throws VoteSmartException , VoteSmartErrorException { return api . query ( "Election.getElectionByYearState" , new ArgMap ( "year" , year ) , Elections . class ) ; }
This method grabs district basic election data according to year and stateid.

@param year
@return {@link Elections}
This method grabs district basic election data according to year and stateid .