gogol-civicinfo-0.3.0: Google Civic Information SDK.

Copyright(c) 2015-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.Google.CivicInfo.Types

Contents

Description

 

Synopsis

Service Configuration

civicInfoService :: ServiceConfig #

Default request referring to version v2 of the Google Civic Information API. This contains the host and root path used as a starting point for constructing service requests.

RepresentativeInfoResponseDivisions

data RepresentativeInfoResponseDivisions #

Political geographic divisions that contain the requested address.

See: representativeInfoResponseDivisions smart constructor.

Instances

Eq RepresentativeInfoResponseDivisions # 
Data RepresentativeInfoResponseDivisions # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RepresentativeInfoResponseDivisions -> c RepresentativeInfoResponseDivisions #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RepresentativeInfoResponseDivisions #

toConstr :: RepresentativeInfoResponseDivisions -> Constr #

dataTypeOf :: RepresentativeInfoResponseDivisions -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RepresentativeInfoResponseDivisions) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RepresentativeInfoResponseDivisions) #

gmapT :: (forall b. Data b => b -> b) -> RepresentativeInfoResponseDivisions -> RepresentativeInfoResponseDivisions #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativeInfoResponseDivisions -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativeInfoResponseDivisions -> r #

gmapQ :: (forall d. Data d => d -> u) -> RepresentativeInfoResponseDivisions -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RepresentativeInfoResponseDivisions -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RepresentativeInfoResponseDivisions -> m RepresentativeInfoResponseDivisions #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativeInfoResponseDivisions -> m RepresentativeInfoResponseDivisions #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativeInfoResponseDivisions -> m RepresentativeInfoResponseDivisions #

Show RepresentativeInfoResponseDivisions # 
Generic RepresentativeInfoResponseDivisions # 
ToJSON RepresentativeInfoResponseDivisions # 
FromJSON RepresentativeInfoResponseDivisions # 
type Rep RepresentativeInfoResponseDivisions # 
type Rep RepresentativeInfoResponseDivisions = D1 (MetaData "RepresentativeInfoResponseDivisions" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" True) (C1 (MetaCons "RepresentativeInfoResponseDivisions'" PrefixI True) (S1 (MetaSel (Just Symbol "_rirdAddtional") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (HashMap Text GeographicDivision))))

representativeInfoResponseDivisions #

Creates a value of RepresentativeInfoResponseDivisions with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

rirdAddtional :: Lens' RepresentativeInfoResponseDivisions (HashMap Text GeographicDivision) #

The unique Open Civic Data identifier for this division.

VoterInfoResponse

data VoterInfoResponse #

The result of a voter info lookup query.

See: voterInfoResponse smart constructor.

Instances

Eq VoterInfoResponse # 
Data VoterInfoResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> VoterInfoResponse -> c VoterInfoResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c VoterInfoResponse #

toConstr :: VoterInfoResponse -> Constr #

dataTypeOf :: VoterInfoResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c VoterInfoResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c VoterInfoResponse) #

gmapT :: (forall b. Data b => b -> b) -> VoterInfoResponse -> VoterInfoResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> VoterInfoResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> VoterInfoResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> VoterInfoResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> VoterInfoResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> VoterInfoResponse -> m VoterInfoResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> VoterInfoResponse -> m VoterInfoResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> VoterInfoResponse -> m VoterInfoResponse #

Show VoterInfoResponse # 
Generic VoterInfoResponse # 
ToJSON VoterInfoResponse # 
FromJSON VoterInfoResponse # 
type Rep VoterInfoResponse # 
type Rep VoterInfoResponse = D1 (MetaData "VoterInfoResponse" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "VoterInfoResponse'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_virOtherElections") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Election]))) (S1 (MetaSel (Just Symbol "_virContests") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Contest])))) ((:*:) (S1 (MetaSel (Just Symbol "_virState") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [AdministrationRegion]))) ((:*:) (S1 (MetaSel (Just Symbol "_virKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_virDropOffLocations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PollingLocation])))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_virElection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Election))) ((:*:) (S1 (MetaSel (Just Symbol "_virNormalizedInput") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SimpleAddressType))) (S1 (MetaSel (Just Symbol "_virMailOnly") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool))))) ((:*:) (S1 (MetaSel (Just Symbol "_virEarlyVoteSites") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PollingLocation]))) ((:*:) (S1 (MetaSel (Just Symbol "_virPollingLocations") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [PollingLocation]))) (S1 (MetaSel (Just Symbol "_virPrecinctId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))))

voterInfoResponse :: VoterInfoResponse #

Creates a value of VoterInfoResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

virOtherElections :: Lens' VoterInfoResponse [Election] #

If no election ID was specified in the query, and there was more than one election with data for the given voter, this will contain information about the other elections that could apply.

virContests :: Lens' VoterInfoResponse [Contest] #

Contests that will appear on the voter's ballot.

virState :: Lens' VoterInfoResponse [AdministrationRegion] #

Local Election Information for the state that the voter votes in. For the US, there will only be one element in this array.

virKind :: Lens' VoterInfoResponse Text #

Identifies what kind of resource this is. Value: the fixed string "civicinfo#voterInfoResponse".

virDropOffLocations :: Lens' VoterInfoResponse [PollingLocation] #

Locations where a voter is eligible to drop off a completed ballot. The voter must have received and completed a ballot prior to arriving at the location. The location may not have ballots available on the premises. These locations could be open on or before election day as indicated in the pollingHours field.

virElection :: Lens' VoterInfoResponse (Maybe Election) #

The election that was queried.

virNormalizedInput :: Lens' VoterInfoResponse (Maybe SimpleAddressType) #

The normalized version of the requested address

virMailOnly :: Lens' VoterInfoResponse (Maybe Bool) #

Specifies whether voters in the precinct vote only by mailing their ballots (with the possible option of dropping off their ballots as well).

virEarlyVoteSites :: Lens' VoterInfoResponse [PollingLocation] #

Locations where the voter is eligible to vote early, prior to election day.

virPollingLocations :: Lens' VoterInfoResponse [PollingLocation] #

Locations where the voter is eligible to vote on election day.

PollingLocation

data PollingLocation #

A location where a voter can vote. This may be an early vote site, an election day voting location, or a drop off location for a completed ballot.

See: pollingLocation smart constructor.

Instances

Eq PollingLocation # 
Data PollingLocation # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PollingLocation -> c PollingLocation #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PollingLocation #

toConstr :: PollingLocation -> Constr #

dataTypeOf :: PollingLocation -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PollingLocation) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PollingLocation) #

gmapT :: (forall b. Data b => b -> b) -> PollingLocation -> PollingLocation #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PollingLocation -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PollingLocation -> r #

gmapQ :: (forall d. Data d => d -> u) -> PollingLocation -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PollingLocation -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PollingLocation -> m PollingLocation #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PollingLocation -> m PollingLocation #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PollingLocation -> m PollingLocation #

Show PollingLocation # 
Generic PollingLocation # 
ToJSON PollingLocation # 
FromJSON PollingLocation # 
type Rep PollingLocation # 

pollingLocation :: PollingLocation #

Creates a value of PollingLocation with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

plVoterServices :: Lens' PollingLocation (Maybe Text) #

The services provided by this early vote site or drop off location. This field is not populated for polling locations.

plEndDate :: Lens' PollingLocation (Maybe Text) #

The last date that this early vote site or drop off location may be used. This field is not populated for polling locations.

plSources :: Lens' PollingLocation [Source] #

A list of sources for this location. If multiple sources are listed the data has been aggregated from those sources.

plAddress :: Lens' PollingLocation (Maybe SimpleAddressType) #

The address of the location.

plStartDate :: Lens' PollingLocation (Maybe Text) #

The first date that this early vote site or drop off location may be used. This field is not populated for polling locations.

plPollingHours :: Lens' PollingLocation (Maybe Text) #

A description of when this location is open.

plName :: Lens' PollingLocation (Maybe Text) #

The name of the early vote site or drop off location. This field is not populated for polling locations.

plId :: Lens' PollingLocation (Maybe Text) #

An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page.

plNotes :: Lens' PollingLocation (Maybe Text) #

Notes about this location (e.g. accessibility ramp or entrance to use).

RepresentativesRepresentativeInfoByDivisionLevels

data RepresentativesRepresentativeInfoByDivisionLevels #

A list of office levels to filter by. Only offices that serve at least one of these levels will be returned. Divisions that don't contain a matching office will not be returned.

Constructors

ADMINISTRATIVEAREA1
administrativeArea1
ADMINISTRATIVEAREA2
administrativeArea2
Country
country
International
international
Locality
locality
Regional
regional
Special
special
SUBLOCALITY1
subLocality1
SUBLOCALITY2
subLocality2

Instances

Enum RepresentativesRepresentativeInfoByDivisionLevels # 
Eq RepresentativesRepresentativeInfoByDivisionLevels # 
Data RepresentativesRepresentativeInfoByDivisionLevels # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RepresentativesRepresentativeInfoByDivisionLevels -> c RepresentativesRepresentativeInfoByDivisionLevels #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RepresentativesRepresentativeInfoByDivisionLevels #

toConstr :: RepresentativesRepresentativeInfoByDivisionLevels -> Constr #

dataTypeOf :: RepresentativesRepresentativeInfoByDivisionLevels -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RepresentativesRepresentativeInfoByDivisionLevels) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RepresentativesRepresentativeInfoByDivisionLevels) #

gmapT :: (forall b. Data b => b -> b) -> RepresentativesRepresentativeInfoByDivisionLevels -> RepresentativesRepresentativeInfoByDivisionLevels #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativesRepresentativeInfoByDivisionLevels -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativesRepresentativeInfoByDivisionLevels -> r #

gmapQ :: (forall d. Data d => d -> u) -> RepresentativesRepresentativeInfoByDivisionLevels -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RepresentativesRepresentativeInfoByDivisionLevels -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RepresentativesRepresentativeInfoByDivisionLevels -> m RepresentativesRepresentativeInfoByDivisionLevels #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativesRepresentativeInfoByDivisionLevels -> m RepresentativesRepresentativeInfoByDivisionLevels #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativesRepresentativeInfoByDivisionLevels -> m RepresentativesRepresentativeInfoByDivisionLevels #

Ord RepresentativesRepresentativeInfoByDivisionLevels # 
Read RepresentativesRepresentativeInfoByDivisionLevels # 
Show RepresentativesRepresentativeInfoByDivisionLevels # 
Generic RepresentativesRepresentativeInfoByDivisionLevels # 
Hashable RepresentativesRepresentativeInfoByDivisionLevels # 
ToJSON RepresentativesRepresentativeInfoByDivisionLevels # 
FromJSON RepresentativesRepresentativeInfoByDivisionLevels # 
FromHttpApiData RepresentativesRepresentativeInfoByDivisionLevels # 
ToHttpApiData RepresentativesRepresentativeInfoByDivisionLevels # 
type Rep RepresentativesRepresentativeInfoByDivisionLevels # 
type Rep RepresentativesRepresentativeInfoByDivisionLevels = D1 (MetaData "RepresentativesRepresentativeInfoByDivisionLevels" "Network.Google.CivicInfo.Types.Sum" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "ADMINISTRATIVEAREA1" PrefixI False) U1) (C1 (MetaCons "ADMINISTRATIVEAREA2" PrefixI False) U1)) ((:+:) (C1 (MetaCons "Country" PrefixI False) U1) (C1 (MetaCons "International" PrefixI False) U1))) ((:+:) ((:+:) (C1 (MetaCons "Locality" PrefixI False) U1) (C1 (MetaCons "Regional" PrefixI False) U1)) ((:+:) (C1 (MetaCons "Special" PrefixI False) U1) ((:+:) (C1 (MetaCons "SUBLOCALITY1" PrefixI False) U1) (C1 (MetaCons "SUBLOCALITY2" PrefixI False) U1)))))

GeographicDivision

data GeographicDivision #

Describes a political geography.

See: geographicDivision smart constructor.

Instances

Eq GeographicDivision # 
Data GeographicDivision # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> GeographicDivision -> c GeographicDivision #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c GeographicDivision #

toConstr :: GeographicDivision -> Constr #

dataTypeOf :: GeographicDivision -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c GeographicDivision) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c GeographicDivision) #

gmapT :: (forall b. Data b => b -> b) -> GeographicDivision -> GeographicDivision #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> GeographicDivision -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> GeographicDivision -> r #

gmapQ :: (forall d. Data d => d -> u) -> GeographicDivision -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> GeographicDivision -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> GeographicDivision -> m GeographicDivision #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> GeographicDivision -> m GeographicDivision #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> GeographicDivision -> m GeographicDivision #

Show GeographicDivision # 
Generic GeographicDivision # 
ToJSON GeographicDivision # 
FromJSON GeographicDivision # 
type Rep GeographicDivision # 
type Rep GeographicDivision = D1 (MetaData "GeographicDivision" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "GeographicDivision'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gdName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_gdOfficeIndices") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Textual Word32]))) (S1 (MetaSel (Just Symbol "_gdAlsoKnownAs") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))))))

geographicDivision :: GeographicDivision #

Creates a value of GeographicDivision with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

gdName :: Lens' GeographicDivision (Maybe Text) #

The name of the division.

gdOfficeIndices :: Lens' GeographicDivision [Word32] #

List of indices in the offices array, one for each office elected from this division. Will only be present if includeOffices was true (or absent) in the request.

gdAlsoKnownAs :: Lens' GeographicDivision [Text] #

Any other valid OCD IDs that refer to the same division. Because OCD IDs are meant to be human-readable and at least somewhat predictable, there are occasionally several identifiers for a single division. These identifiers are defined to be equivalent to one another, and one is always indicated as the primary identifier. The primary identifier will be returned in ocd_id above, and any other equivalent valid identifiers will be returned in this list. For example, if this division's OCD ID is ocd-division/country:us/district:dc, this will contain ocd-division/country:us/state:dc.

Candidate

data Candidate #

Information about a candidate running for elected office.

See: candidate smart constructor.

Instances

Eq Candidate # 
Data Candidate # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Candidate -> c Candidate #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Candidate #

toConstr :: Candidate -> Constr #

dataTypeOf :: Candidate -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Candidate) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Candidate) #

gmapT :: (forall b. Data b => b -> b) -> Candidate -> Candidate #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Candidate -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Candidate -> r #

gmapQ :: (forall d. Data d => d -> u) -> Candidate -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Candidate -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Candidate -> m Candidate #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Candidate -> m Candidate #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Candidate -> m Candidate #

Show Candidate # 
Generic Candidate # 

Associated Types

type Rep Candidate :: * -> * #

ToJSON Candidate # 
FromJSON Candidate # 
type Rep Candidate # 

candidate :: Candidate #

Creates a value of Candidate with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

cEmail :: Lens' Candidate (Maybe Text) #

The email address for the candidate's campaign.

cPhone :: Lens' Candidate (Maybe Text) #

The voice phone number for the candidate's campaign office.

cPhotoURL :: Lens' Candidate (Maybe Text) #

A URL for a photo of the candidate.

cChannels :: Lens' Candidate [Channel] #

A list of known (social) media channels for this candidate.

cCandidateURL :: Lens' Candidate (Maybe Text) #

The URL for the candidate's campaign web site.

cOrderOnBallot :: Lens' Candidate (Maybe Int64) #

The order the candidate appears on the ballot for this contest.

cName :: Lens' Candidate (Maybe Text) #

The candidate's name. If this is a joint ticket it will indicate the name of the candidate at the top of a ticket followed by a / and that name of candidate at the bottom of the ticket. e.g. "Mitt Romney / Paul Ryan"

cParty :: Lens' Candidate (Maybe Text) #

The full name of the party the candidate is a member of.

RepresentativesRepresentativeInfoByAddressLevels

data RepresentativesRepresentativeInfoByAddressLevels #

A list of office levels to filter by. Only offices that serve at least one of these levels will be returned. Divisions that don't contain a matching office will not be returned.

Constructors

RRIBALADMINISTRATIVEAREA1
administrativeArea1
RRIBALADMINISTRATIVEAREA2
administrativeArea2
RRIBALCountry
country
RRIBALInternational
international
RRIBALLocality
locality
RRIBALRegional
regional
RRIBALSpecial
special
RRIBALSUBLOCALITY1
subLocality1
RRIBALSUBLOCALITY2
subLocality2

Instances

Enum RepresentativesRepresentativeInfoByAddressLevels # 
Eq RepresentativesRepresentativeInfoByAddressLevels # 
Data RepresentativesRepresentativeInfoByAddressLevels # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RepresentativesRepresentativeInfoByAddressLevels -> c RepresentativesRepresentativeInfoByAddressLevels #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RepresentativesRepresentativeInfoByAddressLevels #

toConstr :: RepresentativesRepresentativeInfoByAddressLevels -> Constr #

dataTypeOf :: RepresentativesRepresentativeInfoByAddressLevels -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RepresentativesRepresentativeInfoByAddressLevels) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RepresentativesRepresentativeInfoByAddressLevels) #

gmapT :: (forall b. Data b => b -> b) -> RepresentativesRepresentativeInfoByAddressLevels -> RepresentativesRepresentativeInfoByAddressLevels #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativesRepresentativeInfoByAddressLevels -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativesRepresentativeInfoByAddressLevels -> r #

gmapQ :: (forall d. Data d => d -> u) -> RepresentativesRepresentativeInfoByAddressLevels -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RepresentativesRepresentativeInfoByAddressLevels -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RepresentativesRepresentativeInfoByAddressLevels -> m RepresentativesRepresentativeInfoByAddressLevels #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativesRepresentativeInfoByAddressLevels -> m RepresentativesRepresentativeInfoByAddressLevels #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativesRepresentativeInfoByAddressLevels -> m RepresentativesRepresentativeInfoByAddressLevels #

Ord RepresentativesRepresentativeInfoByAddressLevels # 
Read RepresentativesRepresentativeInfoByAddressLevels # 
Show RepresentativesRepresentativeInfoByAddressLevels # 
Generic RepresentativesRepresentativeInfoByAddressLevels # 
Hashable RepresentativesRepresentativeInfoByAddressLevels # 
ToJSON RepresentativesRepresentativeInfoByAddressLevels # 
FromJSON RepresentativesRepresentativeInfoByAddressLevels # 
FromHttpApiData RepresentativesRepresentativeInfoByAddressLevels # 
ToHttpApiData RepresentativesRepresentativeInfoByAddressLevels # 
type Rep RepresentativesRepresentativeInfoByAddressLevels # 
type Rep RepresentativesRepresentativeInfoByAddressLevels = D1 (MetaData "RepresentativesRepresentativeInfoByAddressLevels" "Network.Google.CivicInfo.Types.Sum" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "RRIBALADMINISTRATIVEAREA1" PrefixI False) U1) (C1 (MetaCons "RRIBALADMINISTRATIVEAREA2" PrefixI False) U1)) ((:+:) (C1 (MetaCons "RRIBALCountry" PrefixI False) U1) (C1 (MetaCons "RRIBALInternational" PrefixI False) U1))) ((:+:) ((:+:) (C1 (MetaCons "RRIBALLocality" PrefixI False) U1) (C1 (MetaCons "RRIBALRegional" PrefixI False) U1)) ((:+:) (C1 (MetaCons "RRIBALSpecial" PrefixI False) U1) ((:+:) (C1 (MetaCons "RRIBALSUBLOCALITY1" PrefixI False) U1) (C1 (MetaCons "RRIBALSUBLOCALITY2" PrefixI False) U1)))))

Office

data Office #

Information about an Office held by one or more Officials.

See: office smart constructor.

Instances

Eq Office # 

Methods

(==) :: Office -> Office -> Bool #

(/=) :: Office -> Office -> Bool #

Data Office # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Office -> c Office #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Office #

toConstr :: Office -> Constr #

dataTypeOf :: Office -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Office) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Office) #

gmapT :: (forall b. Data b => b -> b) -> Office -> Office #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Office -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Office -> r #

gmapQ :: (forall d. Data d => d -> u) -> Office -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Office -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Office -> m Office #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Office -> m Office #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Office -> m Office #

Show Office # 
Generic Office # 

Associated Types

type Rep Office :: * -> * #

Methods

from :: Office -> Rep Office x #

to :: Rep Office x -> Office #

ToJSON Office # 
FromJSON Office # 
type Rep Office # 

office :: Office #

Creates a value of Office with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

oDivisionId :: Lens' Office (Maybe Text) #

The OCD ID of the division with which this office is associated.

oRoles :: Lens' Office [Text] #

The roles which this office fulfills. Roles are not meant to be exhaustive, or to exactly specify the entire set of responsibilities of a given office, but are meant to be rough categories that are useful for general selection from or sorting of a list of offices.

oOfficialIndices :: Lens' Office [Word32] #

List of indices in the officials array of people who presently hold this office.

oSources :: Lens' Office [Source] #

A list of sources for this office. If multiple sources are listed, the data has been aggregated from those sources.

oName :: Lens' Office (Maybe Text) #

The human-readable name of the office.

oLevels :: Lens' Office [Text] #

The levels of government of which this office is part. There may be more than one in cases where a jurisdiction effectively acts at two different levels of government; for example, the mayor of the District of Columbia acts at "locality" level, but also effectively at both "administrative-area-2" and "administrative-area-1".

RepresentativesRepresentativeInfoByDivisionRoles

data RepresentativesRepresentativeInfoByDivisionRoles #

A list of office roles to filter by. Only offices fulfilling one of these roles will be returned. Divisions that don't contain a matching office will not be returned.

Constructors

DeputyHeadOfGovernment
deputyHeadOfGovernment
ExecutiveCouncil
executiveCouncil
GovernmentOfficer
governmentOfficer
HeadOfGovernment
headOfGovernment
HeadOfState
headOfState
HighestCourtJudge
highestCourtJudge
Judge
judge
LegislatorLowerBody
legislatorLowerBody
LegislatorUpperBody
legislatorUpperBody
SchoolBoard
schoolBoard
SpecialPurposeOfficer
specialPurposeOfficer

Instances

Enum RepresentativesRepresentativeInfoByDivisionRoles # 
Eq RepresentativesRepresentativeInfoByDivisionRoles # 
Data RepresentativesRepresentativeInfoByDivisionRoles # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RepresentativesRepresentativeInfoByDivisionRoles -> c RepresentativesRepresentativeInfoByDivisionRoles #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RepresentativesRepresentativeInfoByDivisionRoles #

toConstr :: RepresentativesRepresentativeInfoByDivisionRoles -> Constr #

dataTypeOf :: RepresentativesRepresentativeInfoByDivisionRoles -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RepresentativesRepresentativeInfoByDivisionRoles) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RepresentativesRepresentativeInfoByDivisionRoles) #

gmapT :: (forall b. Data b => b -> b) -> RepresentativesRepresentativeInfoByDivisionRoles -> RepresentativesRepresentativeInfoByDivisionRoles #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativesRepresentativeInfoByDivisionRoles -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativesRepresentativeInfoByDivisionRoles -> r #

gmapQ :: (forall d. Data d => d -> u) -> RepresentativesRepresentativeInfoByDivisionRoles -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RepresentativesRepresentativeInfoByDivisionRoles -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RepresentativesRepresentativeInfoByDivisionRoles -> m RepresentativesRepresentativeInfoByDivisionRoles #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativesRepresentativeInfoByDivisionRoles -> m RepresentativesRepresentativeInfoByDivisionRoles #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativesRepresentativeInfoByDivisionRoles -> m RepresentativesRepresentativeInfoByDivisionRoles #

Ord RepresentativesRepresentativeInfoByDivisionRoles # 
Read RepresentativesRepresentativeInfoByDivisionRoles # 
Show RepresentativesRepresentativeInfoByDivisionRoles # 
Generic RepresentativesRepresentativeInfoByDivisionRoles # 
Hashable RepresentativesRepresentativeInfoByDivisionRoles # 
ToJSON RepresentativesRepresentativeInfoByDivisionRoles # 
FromJSON RepresentativesRepresentativeInfoByDivisionRoles # 
FromHttpApiData RepresentativesRepresentativeInfoByDivisionRoles # 
ToHttpApiData RepresentativesRepresentativeInfoByDivisionRoles # 
type Rep RepresentativesRepresentativeInfoByDivisionRoles # 
type Rep RepresentativesRepresentativeInfoByDivisionRoles = D1 (MetaData "RepresentativesRepresentativeInfoByDivisionRoles" "Network.Google.CivicInfo.Types.Sum" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "DeputyHeadOfGovernment" PrefixI False) U1) (C1 (MetaCons "ExecutiveCouncil" PrefixI False) U1)) ((:+:) (C1 (MetaCons "GovernmentOfficer" PrefixI False) U1) ((:+:) (C1 (MetaCons "HeadOfGovernment" PrefixI False) U1) (C1 (MetaCons "HeadOfState" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "HighestCourtJudge" PrefixI False) U1) ((:+:) (C1 (MetaCons "Judge" PrefixI False) U1) (C1 (MetaCons "LegislatorLowerBody" PrefixI False) U1))) ((:+:) (C1 (MetaCons "LegislatorUpperBody" PrefixI False) U1) ((:+:) (C1 (MetaCons "SchoolBoard" PrefixI False) U1) (C1 (MetaCons "SpecialPurposeOfficer" PrefixI False) U1)))))

ElectionsQueryRequest

data ElectionsQueryRequest #

Instances

Eq ElectionsQueryRequest # 
Data ElectionsQueryRequest # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ElectionsQueryRequest -> c ElectionsQueryRequest #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ElectionsQueryRequest #

toConstr :: ElectionsQueryRequest -> Constr #

dataTypeOf :: ElectionsQueryRequest -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ElectionsQueryRequest) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ElectionsQueryRequest) #

gmapT :: (forall b. Data b => b -> b) -> ElectionsQueryRequest -> ElectionsQueryRequest #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ElectionsQueryRequest -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ElectionsQueryRequest -> r #

gmapQ :: (forall d. Data d => d -> u) -> ElectionsQueryRequest -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ElectionsQueryRequest -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ElectionsQueryRequest -> m ElectionsQueryRequest #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ElectionsQueryRequest -> m ElectionsQueryRequest #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ElectionsQueryRequest -> m ElectionsQueryRequest #

Show ElectionsQueryRequest # 
Generic ElectionsQueryRequest # 
ToJSON ElectionsQueryRequest # 
FromJSON ElectionsQueryRequest # 
type Rep ElectionsQueryRequest # 
type Rep ElectionsQueryRequest = D1 (MetaData "ElectionsQueryRequest" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" True) (C1 (MetaCons "ElectionsQueryRequest'" PrefixI True) (S1 (MetaSel (Just Symbol "_eqrContextParams") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ContextParams))))

electionsQueryRequest :: ElectionsQueryRequest #

Creates a value of ElectionsQueryRequest with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Channel

data Channel #

A social media or web channel for a candidate.

See: channel smart constructor.

Instances

Eq Channel # 

Methods

(==) :: Channel -> Channel -> Bool #

(/=) :: Channel -> Channel -> Bool #

Data Channel # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Channel -> c Channel #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Channel #

toConstr :: Channel -> Constr #

dataTypeOf :: Channel -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Channel) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Channel) #

gmapT :: (forall b. Data b => b -> b) -> Channel -> Channel #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Channel -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Channel -> r #

gmapQ :: (forall d. Data d => d -> u) -> Channel -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Channel -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Channel -> m Channel #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Channel -> m Channel #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Channel -> m Channel #

Show Channel # 
Generic Channel # 

Associated Types

type Rep Channel :: * -> * #

Methods

from :: Channel -> Rep Channel x #

to :: Rep Channel x -> Channel #

ToJSON Channel # 
FromJSON Channel # 
type Rep Channel # 
type Rep Channel = D1 (MetaData "Channel" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "Channel'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_cId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_cType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))

channel :: Channel #

Creates a value of Channel with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

cId :: Lens' Channel (Maybe Text) #

The unique public identifier for the candidate's channel.

cType :: Lens' Channel (Maybe Text) #

The type of channel. The following is a list of types of channels, but is not exhaustive. More channel types may be added at a later time. One of: GooglePlus, YouTube, Facebook, Twitter

Election

data Election #

Information about the election that was queried.

See: election smart constructor.

Instances

Eq Election # 
Data Election # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Election -> c Election #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Election #

toConstr :: Election -> Constr #

dataTypeOf :: Election -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Election) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Election) #

gmapT :: (forall b. Data b => b -> b) -> Election -> Election #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Election -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Election -> r #

gmapQ :: (forall d. Data d => d -> u) -> Election -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Election -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Election -> m Election #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Election -> m Election #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Election -> m Election #

Show Election # 
Generic Election # 

Associated Types

type Rep Election :: * -> * #

Methods

from :: Election -> Rep Election x #

to :: Rep Election x -> Election #

ToJSON Election # 
FromJSON Election # 
type Rep Election # 
type Rep Election = D1 (MetaData "Election" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "Election'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_eOcdDivisionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_eElectionDay") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_eName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_eId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))))))

election :: Election #

Creates a value of Election with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

eOcdDivisionId :: Lens' Election (Maybe Text) #

The political division of the election. Represented as an OCD Division ID. Voters within these political jurisdictions are covered by this election. This is typically a state such as ocd-division/country:us/state:ca or for the midterms or general election the entire US (i.e. ocd-division/country:us).

eElectionDay :: Lens' Election (Maybe Text) #

Day of the election in YYYY-MM-DD format.

eName :: Lens' Election (Maybe Text) #

A displayable name for the election.

eId :: Lens' Election (Maybe Int64) #

The unique ID of this election.

RepresentativeInfoResponse

data RepresentativeInfoResponse #

The result of a representative info lookup query.

See: representativeInfoResponse smart constructor.

Instances

Eq RepresentativeInfoResponse # 
Data RepresentativeInfoResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RepresentativeInfoResponse -> c RepresentativeInfoResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RepresentativeInfoResponse #

toConstr :: RepresentativeInfoResponse -> Constr #

dataTypeOf :: RepresentativeInfoResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RepresentativeInfoResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RepresentativeInfoResponse) #

gmapT :: (forall b. Data b => b -> b) -> RepresentativeInfoResponse -> RepresentativeInfoResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativeInfoResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativeInfoResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> RepresentativeInfoResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RepresentativeInfoResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RepresentativeInfoResponse -> m RepresentativeInfoResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativeInfoResponse -> m RepresentativeInfoResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativeInfoResponse -> m RepresentativeInfoResponse #

Show RepresentativeInfoResponse # 
Generic RepresentativeInfoResponse # 
ToJSON RepresentativeInfoResponse # 
FromJSON RepresentativeInfoResponse # 
type Rep RepresentativeInfoResponse # 
type Rep RepresentativeInfoResponse = D1 (MetaData "RepresentativeInfoResponse" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "RepresentativeInfoResponse'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_rirKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_rirNormalizedInput") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SimpleAddressType)))) ((:*:) (S1 (MetaSel (Just Symbol "_rirOfficials") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Official]))) ((:*:) (S1 (MetaSel (Just Symbol "_rirDivisions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RepresentativeInfoResponseDivisions))) (S1 (MetaSel (Just Symbol "_rirOffices") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Office])))))))

representativeInfoResponse :: RepresentativeInfoResponse #

Creates a value of RepresentativeInfoResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

rirKind :: Lens' RepresentativeInfoResponse Text #

Identifies what kind of resource this is. Value: the fixed string "civicinfo#representativeInfoResponse".

rirNormalizedInput :: Lens' RepresentativeInfoResponse (Maybe SimpleAddressType) #

The normalized version of the requested address

rirOfficials :: Lens' RepresentativeInfoResponse [Official] #

Officials holding the offices listed above. Will only be present if includeOffices was true in the request.

rirDivisions :: Lens' RepresentativeInfoResponse (Maybe RepresentativeInfoResponseDivisions) #

Political geographic divisions that contain the requested address.

rirOffices :: Lens' RepresentativeInfoResponse [Office] #

Elected offices referenced by the divisions listed above. Will only be present if includeOffices was true in the request.

VoterInfoSegmentResult

data VoterInfoSegmentResult #

Instances

Eq VoterInfoSegmentResult # 
Data VoterInfoSegmentResult # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> VoterInfoSegmentResult -> c VoterInfoSegmentResult #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c VoterInfoSegmentResult #

toConstr :: VoterInfoSegmentResult -> Constr #

dataTypeOf :: VoterInfoSegmentResult -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c VoterInfoSegmentResult) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c VoterInfoSegmentResult) #

gmapT :: (forall b. Data b => b -> b) -> VoterInfoSegmentResult -> VoterInfoSegmentResult #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> VoterInfoSegmentResult -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> VoterInfoSegmentResult -> r #

gmapQ :: (forall d. Data d => d -> u) -> VoterInfoSegmentResult -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> VoterInfoSegmentResult -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> VoterInfoSegmentResult -> m VoterInfoSegmentResult #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> VoterInfoSegmentResult -> m VoterInfoSegmentResult #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> VoterInfoSegmentResult -> m VoterInfoSegmentResult #

Show VoterInfoSegmentResult # 
Generic VoterInfoSegmentResult # 
ToJSON VoterInfoSegmentResult # 
FromJSON VoterInfoSegmentResult # 
type Rep VoterInfoSegmentResult # 
type Rep VoterInfoSegmentResult = D1 (MetaData "VoterInfoSegmentResult" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "VoterInfoSegmentResult'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_visrResponse") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VoterInfoResponse))) (S1 (MetaSel (Just Symbol "_visrGeneratedMillis") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))))) ((:*:) (S1 (MetaSel (Just Symbol "_visrPostalAddress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PostalAddress))) (S1 (MetaSel (Just Symbol "_visrRequest") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VoterInfoRequest))))))

voterInfoSegmentResult :: VoterInfoSegmentResult #

Creates a value of VoterInfoSegmentResult with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

DivisionSearchResult

data DivisionSearchResult #

Represents a political geographic division that matches the requested query.

See: divisionSearchResult smart constructor.

Instances

Eq DivisionSearchResult # 
Data DivisionSearchResult # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DivisionSearchResult -> c DivisionSearchResult #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DivisionSearchResult #

toConstr :: DivisionSearchResult -> Constr #

dataTypeOf :: DivisionSearchResult -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DivisionSearchResult) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DivisionSearchResult) #

gmapT :: (forall b. Data b => b -> b) -> DivisionSearchResult -> DivisionSearchResult #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DivisionSearchResult -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DivisionSearchResult -> r #

gmapQ :: (forall d. Data d => d -> u) -> DivisionSearchResult -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DivisionSearchResult -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DivisionSearchResult -> m DivisionSearchResult #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DivisionSearchResult -> m DivisionSearchResult #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DivisionSearchResult -> m DivisionSearchResult #

Show DivisionSearchResult # 
Generic DivisionSearchResult # 
ToJSON DivisionSearchResult # 
FromJSON DivisionSearchResult # 
type Rep DivisionSearchResult # 
type Rep DivisionSearchResult = D1 (MetaData "DivisionSearchResult" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "DivisionSearchResult'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dsrAliases") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) ((:*:) (S1 (MetaSel (Just Symbol "_dsrName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dsrOcdId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

divisionSearchResult :: DivisionSearchResult #

Creates a value of DivisionSearchResult with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

dsrAliases :: Lens' DivisionSearchResult [Text] #

Other Open Civic Data identifiers that refer to the same division -- for example, those that refer to other political divisions whose boundaries are defined to be coterminous with this one. For example, ocd-division/country:us/state:wy will include an alias of ocd-division/country:us/state:wy/cd:1, since Wyoming has only one Congressional district.

dsrName :: Lens' DivisionSearchResult (Maybe Text) #

The name of the division.

dsrOcdId :: Lens' DivisionSearchResult (Maybe Text) #

The unique Open Civic Data identifier for this division.

DivisionSearchRequest

data DivisionSearchRequest #

A search request for political geographies.

See: divisionSearchRequest smart constructor.

Instances

Eq DivisionSearchRequest # 
Data DivisionSearchRequest # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DivisionSearchRequest -> c DivisionSearchRequest #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DivisionSearchRequest #

toConstr :: DivisionSearchRequest -> Constr #

dataTypeOf :: DivisionSearchRequest -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DivisionSearchRequest) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DivisionSearchRequest) #

gmapT :: (forall b. Data b => b -> b) -> DivisionSearchRequest -> DivisionSearchRequest #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DivisionSearchRequest -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DivisionSearchRequest -> r #

gmapQ :: (forall d. Data d => d -> u) -> DivisionSearchRequest -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DivisionSearchRequest -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DivisionSearchRequest -> m DivisionSearchRequest #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DivisionSearchRequest -> m DivisionSearchRequest #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DivisionSearchRequest -> m DivisionSearchRequest #

Show DivisionSearchRequest # 
Generic DivisionSearchRequest # 
ToJSON DivisionSearchRequest # 
FromJSON DivisionSearchRequest # 
type Rep DivisionSearchRequest # 
type Rep DivisionSearchRequest = D1 (MetaData "DivisionSearchRequest" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" True) (C1 (MetaCons "DivisionSearchRequest'" PrefixI True) (S1 (MetaSel (Just Symbol "_dsrContextParams") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ContextParams))))

divisionSearchRequest :: DivisionSearchRequest #

Creates a value of DivisionSearchRequest with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

AdministrativeBody

data AdministrativeBody #

Information about an election administrative body (e.g. County Board of Elections).

See: administrativeBody smart constructor.

Instances

Eq AdministrativeBody # 
Data AdministrativeBody # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AdministrativeBody -> c AdministrativeBody #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AdministrativeBody #

toConstr :: AdministrativeBody -> Constr #

dataTypeOf :: AdministrativeBody -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c AdministrativeBody) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AdministrativeBody) #

gmapT :: (forall b. Data b => b -> b) -> AdministrativeBody -> AdministrativeBody #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AdministrativeBody -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AdministrativeBody -> r #

gmapQ :: (forall d. Data d => d -> u) -> AdministrativeBody -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AdministrativeBody -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AdministrativeBody -> m AdministrativeBody #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AdministrativeBody -> m AdministrativeBody #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AdministrativeBody -> m AdministrativeBody #

Show AdministrativeBody # 
Generic AdministrativeBody # 
ToJSON AdministrativeBody # 
FromJSON AdministrativeBody # 
type Rep AdministrativeBody # 
type Rep AdministrativeBody = D1 (MetaData "AdministrativeBody" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "AdministrativeBody'" PrefixI True) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_abCorrespondenceAddress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SimpleAddressType))) ((:*:) (S1 (MetaSel (Just Symbol "_abAbsenteeVotingInfoURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_abHoursOfOperation") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_abBallotInfoURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_abPhysicalAddress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe SimpleAddressType)))) ((:*:) (S1 (MetaSel (Just Symbol "_abElectionRegistrationConfirmationURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_abElectionInfoURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_abVotingLocationFinderURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_abElectionOfficials") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [ElectionOfficial]))) (S1 (MetaSel (Just Symbol "_abName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_abElectionRulesURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_abAddressLines") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text])))) ((:*:) (S1 (MetaSel (Just Symbol "_abVoterServices") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_abElectionRegistrationURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))))

abCorrespondenceAddress :: Lens' AdministrativeBody (Maybe SimpleAddressType) #

The mailing address of this administrative body.

abAbsenteeVotingInfoURL :: Lens' AdministrativeBody (Maybe Text) #

A URL provided by this administrative body for information on absentee voting.

abHoursOfOperation :: Lens' AdministrativeBody (Maybe Text) #

A description of the hours of operation for this administrative body.

abBallotInfoURL :: Lens' AdministrativeBody (Maybe Text) #

A URL provided by this administrative body to give contest information to the voter.

abPhysicalAddress :: Lens' AdministrativeBody (Maybe SimpleAddressType) #

The physical address of this administrative body.

abElectionRegistrationConfirmationURL :: Lens' AdministrativeBody (Maybe Text) #

A URL provided by this administrative body for confirming that the voter is registered to vote.

abElectionInfoURL :: Lens' AdministrativeBody (Maybe Text) #

A URL provided by this administrative body for looking up general election information.

abVotingLocationFinderURL :: Lens' AdministrativeBody (Maybe Text) #

A URL provided by this administrative body for looking up where to vote.

abElectionOfficials :: Lens' AdministrativeBody [ElectionOfficial] #

The election officials for this election administrative body.

abName :: Lens' AdministrativeBody (Maybe Text) #

The name of this election administrative body.

abElectionRulesURL :: Lens' AdministrativeBody (Maybe Text) #

A URL provided by this administrative body describing election rules to the voter.

abVoterServices :: Lens' AdministrativeBody [Text] #

A description of the services this administrative body may provide.

abElectionRegistrationURL :: Lens' AdministrativeBody (Maybe Text) #

A URL provided by this administrative body for looking up how to register to vote.

RepresentativeInfoRequest

data RepresentativeInfoRequest #

A request for political geography and representative information for an address.

See: representativeInfoRequest smart constructor.

Instances

Eq RepresentativeInfoRequest # 
Data RepresentativeInfoRequest # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RepresentativeInfoRequest -> c RepresentativeInfoRequest #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RepresentativeInfoRequest #

toConstr :: RepresentativeInfoRequest -> Constr #

dataTypeOf :: RepresentativeInfoRequest -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RepresentativeInfoRequest) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RepresentativeInfoRequest) #

gmapT :: (forall b. Data b => b -> b) -> RepresentativeInfoRequest -> RepresentativeInfoRequest #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativeInfoRequest -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativeInfoRequest -> r #

gmapQ :: (forall d. Data d => d -> u) -> RepresentativeInfoRequest -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RepresentativeInfoRequest -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RepresentativeInfoRequest -> m RepresentativeInfoRequest #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativeInfoRequest -> m RepresentativeInfoRequest #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativeInfoRequest -> m RepresentativeInfoRequest #

Show RepresentativeInfoRequest # 
Generic RepresentativeInfoRequest # 
ToJSON RepresentativeInfoRequest # 
FromJSON RepresentativeInfoRequest # 
type Rep RepresentativeInfoRequest # 
type Rep RepresentativeInfoRequest = D1 (MetaData "RepresentativeInfoRequest" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" True) (C1 (MetaCons "RepresentativeInfoRequest'" PrefixI True) (S1 (MetaSel (Just Symbol "_rirContextParams") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ContextParams))))

representativeInfoRequest :: RepresentativeInfoRequest #

Creates a value of RepresentativeInfoRequest with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Contest

data Contest #

Information about a contest that appears on a voter's ballot.

See: contest smart constructor.

Instances

Eq Contest # 

Methods

(==) :: Contest -> Contest -> Bool #

(/=) :: Contest -> Contest -> Bool #

Data Contest # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Contest -> c Contest #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Contest #

toConstr :: Contest -> Constr #

dataTypeOf :: Contest -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Contest) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Contest) #

gmapT :: (forall b. Data b => b -> b) -> Contest -> Contest #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Contest -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Contest -> r #

gmapQ :: (forall d. Data d => d -> u) -> Contest -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Contest -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Contest -> m Contest #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Contest -> m Contest #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Contest -> m Contest #

Show Contest # 
Generic Contest # 

Associated Types

type Rep Contest :: * -> * #

Methods

from :: Contest -> Rep Contest x #

to :: Rep Contest x -> Contest #

ToJSON Contest # 
FromJSON Contest # 
type Rep Contest # 
type Rep Contest = D1 (MetaData "Contest" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "Contest'" PrefixI True) ((:*:) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_conReferendumPassageThreshold") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_conRoles") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_conReferendumURL") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_conReferendumEffectOfAbstain") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_conReferendumSubtitle") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_conNumberVotingFor") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_conOffice") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_conReferendumConStatement") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_conSources") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Source]))))) ((:*:) (S1 (MetaSel (Just Symbol "_conReferendumProStatement") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_conReferendumBallotResponses") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))) (S1 (MetaSel (Just Symbol "_conNumberElected") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64)))))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_conSpecial") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_conReferendumText") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_conPrimaryParty") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) (S1 (MetaSel (Just Symbol "_conId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_conType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_conElectorateSpecifications") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_conReferendumBrief") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_conDistrict") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ElectoralDistrict))) (S1 (MetaSel (Just Symbol "_conLevel") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))))) ((:*:) (S1 (MetaSel (Just Symbol "_conCandidates") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Candidate]))) ((:*:) (S1 (MetaSel (Just Symbol "_conReferendumTitle") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_conBallotPlacement") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe (Textual Int64))))))))))

conReferendumPassageThreshold :: Lens' Contest (Maybe Text) #

The threshold of votes that the referendum needs in order to pass, e.g. "two-thirds". This field is only populated for contests of type 'Referendum'.

conRoles :: Lens' Contest [Text] #

The roles which this office fulfills.

conReferendumURL :: Lens' Contest (Maybe Text) #

A link to the referendum. This field is only populated for contests of type 'Referendum'.

conReferendumEffectOfAbstain :: Lens' Contest (Maybe Text) #

Specifies what effect abstaining (not voting) on the proposition will have (i.e. whether abstaining is considered a vote against it). This field is only populated for contests of type 'Referendum'.

conReferendumSubtitle :: Lens' Contest (Maybe Text) #

A brief description of the referendum. This field is only populated for contests of type 'Referendum'.

conNumberVotingFor :: Lens' Contest (Maybe Int64) #

The number of candidates that a voter may vote for in this contest.

conOffice :: Lens' Contest (Maybe Text) #

The name of the office for this contest.

conReferendumConStatement :: Lens' Contest (Maybe Text) #

A statement in opposition to the referendum. It does not necessarily appear on the ballot. This field is only populated for contests of type 'Referendum'.

conSources :: Lens' Contest [Source] #

A list of sources for this contest. If multiple sources are listed, the data has been aggregated from those sources.

conReferendumProStatement :: Lens' Contest (Maybe Text) #

A statement in favor of the referendum. It does not necessarily appear on the ballot. This field is only populated for contests of type 'Referendum'.

conReferendumBallotResponses :: Lens' Contest [Text] #

The set of ballot responses for the referendum. A ballot response represents a line on the ballot. Common examples might include "yes" or "no" for referenda. This field is only populated for contests of type 'Referendum'.

conNumberElected :: Lens' Contest (Maybe Int64) #

The number of candidates that will be elected to office in this contest.

conSpecial :: Lens' Contest (Maybe Text) #

"Yes" or "No" depending on whether this a contest being held outside the normal election cycle.

conReferendumText :: Lens' Contest (Maybe Text) #

The full text of the referendum. This field is only populated for contests of type 'Referendum'.

conPrimaryParty :: Lens' Contest (Maybe Text) #

If this is a partisan election, the name of the party it is for.

conId :: Lens' Contest (Maybe Text) #

An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page.

conType :: Lens' Contest (Maybe Text) #

The type of contest. Usually this will be 'General', 'Primary', or 'Run-off' for contests with candidates. For referenda this will be 'Referendum'. For Retention contests this will typically be 'Retention'.

conElectorateSpecifications :: Lens' Contest (Maybe Text) #

A description of any additional eligibility requirements for voting in this contest.

conReferendumBrief :: Lens' Contest (Maybe Text) #

Specifies a short summary of the referendum that is typically on the ballot below the title but above the text. This field is only populated for contests of type 'Referendum'.

conDistrict :: Lens' Contest (Maybe ElectoralDistrict) #

Information about the electoral district that this contest is in.

conLevel :: Lens' Contest [Text] #

The levels of government of the office for this contest. There may be more than one in cases where a jurisdiction effectively acts at two different levels of government; for example, the mayor of the District of Columbia acts at "locality" level, but also effectively at both "administrative-area-2" and "administrative-area-1".

conCandidates :: Lens' Contest [Candidate] #

The candidate choices for this contest.

conReferendumTitle :: Lens' Contest (Maybe Text) #

The title of the referendum (e.g. 'Proposition 42'). This field is only populated for contests of type 'Referendum'.

conBallotPlacement :: Lens' Contest (Maybe Int64) #

A number specifying the position of this contest on the voter's ballot.

DivisionSearchResponse

data DivisionSearchResponse #

The result of a division search query.

See: divisionSearchResponse smart constructor.

Instances

Eq DivisionSearchResponse # 
Data DivisionSearchResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DivisionSearchResponse -> c DivisionSearchResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DivisionSearchResponse #

toConstr :: DivisionSearchResponse -> Constr #

dataTypeOf :: DivisionSearchResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DivisionSearchResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DivisionSearchResponse) #

gmapT :: (forall b. Data b => b -> b) -> DivisionSearchResponse -> DivisionSearchResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DivisionSearchResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DivisionSearchResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DivisionSearchResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DivisionSearchResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DivisionSearchResponse -> m DivisionSearchResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DivisionSearchResponse -> m DivisionSearchResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DivisionSearchResponse -> m DivisionSearchResponse #

Show DivisionSearchResponse # 
Generic DivisionSearchResponse # 
ToJSON DivisionSearchResponse # 
FromJSON DivisionSearchResponse # 
type Rep DivisionSearchResponse # 
type Rep DivisionSearchResponse = D1 (MetaData "DivisionSearchResponse" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "DivisionSearchResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dsrResults") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [DivisionSearchResult]))) (S1 (MetaSel (Just Symbol "_dsrKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))

divisionSearchResponse :: DivisionSearchResponse #

Creates a value of DivisionSearchResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

dsrKind :: Lens' DivisionSearchResponse Text #

Identifies what kind of resource this is. Value: the fixed string "civicinfo#divisionSearchResponse".

RepresentativeInfoDataDivisions

data RepresentativeInfoDataDivisions #

Political geographic divisions that contain the requested address.

See: representativeInfoDataDivisions smart constructor.

Instances

Eq RepresentativeInfoDataDivisions # 
Data RepresentativeInfoDataDivisions # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RepresentativeInfoDataDivisions -> c RepresentativeInfoDataDivisions #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RepresentativeInfoDataDivisions #

toConstr :: RepresentativeInfoDataDivisions -> Constr #

dataTypeOf :: RepresentativeInfoDataDivisions -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RepresentativeInfoDataDivisions) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RepresentativeInfoDataDivisions) #

gmapT :: (forall b. Data b => b -> b) -> RepresentativeInfoDataDivisions -> RepresentativeInfoDataDivisions #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativeInfoDataDivisions -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativeInfoDataDivisions -> r #

gmapQ :: (forall d. Data d => d -> u) -> RepresentativeInfoDataDivisions -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RepresentativeInfoDataDivisions -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RepresentativeInfoDataDivisions -> m RepresentativeInfoDataDivisions #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativeInfoDataDivisions -> m RepresentativeInfoDataDivisions #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativeInfoDataDivisions -> m RepresentativeInfoDataDivisions #

Show RepresentativeInfoDataDivisions # 
Generic RepresentativeInfoDataDivisions # 
ToJSON RepresentativeInfoDataDivisions # 
FromJSON RepresentativeInfoDataDivisions # 
type Rep RepresentativeInfoDataDivisions # 
type Rep RepresentativeInfoDataDivisions = D1 (MetaData "RepresentativeInfoDataDivisions" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" True) (C1 (MetaCons "RepresentativeInfoDataDivisions'" PrefixI True) (S1 (MetaSel (Just Symbol "_riddAddtional") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (HashMap Text GeographicDivision))))

representativeInfoDataDivisions #

Creates a value of RepresentativeInfoDataDivisions with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

riddAddtional :: Lens' RepresentativeInfoDataDivisions (HashMap Text GeographicDivision) #

The unique Open Civic Data identifier for this division.

RepresentativesRepresentativeInfoByAddressRoles

data RepresentativesRepresentativeInfoByAddressRoles #

A list of office roles to filter by. Only offices fulfilling one of these roles will be returned. Divisions that don't contain a matching office will not be returned.

Constructors

RRIBARDeputyHeadOfGovernment
deputyHeadOfGovernment
RRIBARExecutiveCouncil
executiveCouncil
RRIBARGovernmentOfficer
governmentOfficer
RRIBARHeadOfGovernment
headOfGovernment
RRIBARHeadOfState
headOfState
RRIBARHighestCourtJudge
highestCourtJudge
RRIBARJudge
judge
RRIBARLegislatorLowerBody
legislatorLowerBody
RRIBARLegislatorUpperBody
legislatorUpperBody
RRIBARSchoolBoard
schoolBoard
RRIBARSpecialPurposeOfficer
specialPurposeOfficer

Instances

Enum RepresentativesRepresentativeInfoByAddressRoles # 
Eq RepresentativesRepresentativeInfoByAddressRoles # 
Data RepresentativesRepresentativeInfoByAddressRoles # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RepresentativesRepresentativeInfoByAddressRoles -> c RepresentativesRepresentativeInfoByAddressRoles #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RepresentativesRepresentativeInfoByAddressRoles #

toConstr :: RepresentativesRepresentativeInfoByAddressRoles -> Constr #

dataTypeOf :: RepresentativesRepresentativeInfoByAddressRoles -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RepresentativesRepresentativeInfoByAddressRoles) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RepresentativesRepresentativeInfoByAddressRoles) #

gmapT :: (forall b. Data b => b -> b) -> RepresentativesRepresentativeInfoByAddressRoles -> RepresentativesRepresentativeInfoByAddressRoles #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativesRepresentativeInfoByAddressRoles -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativesRepresentativeInfoByAddressRoles -> r #

gmapQ :: (forall d. Data d => d -> u) -> RepresentativesRepresentativeInfoByAddressRoles -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RepresentativesRepresentativeInfoByAddressRoles -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RepresentativesRepresentativeInfoByAddressRoles -> m RepresentativesRepresentativeInfoByAddressRoles #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativesRepresentativeInfoByAddressRoles -> m RepresentativesRepresentativeInfoByAddressRoles #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativesRepresentativeInfoByAddressRoles -> m RepresentativesRepresentativeInfoByAddressRoles #

Ord RepresentativesRepresentativeInfoByAddressRoles # 
Read RepresentativesRepresentativeInfoByAddressRoles # 
Show RepresentativesRepresentativeInfoByAddressRoles # 
Generic RepresentativesRepresentativeInfoByAddressRoles # 
Hashable RepresentativesRepresentativeInfoByAddressRoles # 
ToJSON RepresentativesRepresentativeInfoByAddressRoles # 
FromJSON RepresentativesRepresentativeInfoByAddressRoles # 
FromHttpApiData RepresentativesRepresentativeInfoByAddressRoles # 
ToHttpApiData RepresentativesRepresentativeInfoByAddressRoles # 
type Rep RepresentativesRepresentativeInfoByAddressRoles # 
type Rep RepresentativesRepresentativeInfoByAddressRoles = D1 (MetaData "RepresentativesRepresentativeInfoByAddressRoles" "Network.Google.CivicInfo.Types.Sum" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) ((:+:) ((:+:) ((:+:) (C1 (MetaCons "RRIBARDeputyHeadOfGovernment" PrefixI False) U1) (C1 (MetaCons "RRIBARExecutiveCouncil" PrefixI False) U1)) ((:+:) (C1 (MetaCons "RRIBARGovernmentOfficer" PrefixI False) U1) ((:+:) (C1 (MetaCons "RRIBARHeadOfGovernment" PrefixI False) U1) (C1 (MetaCons "RRIBARHeadOfState" PrefixI False) U1)))) ((:+:) ((:+:) (C1 (MetaCons "RRIBARHighestCourtJudge" PrefixI False) U1) ((:+:) (C1 (MetaCons "RRIBARJudge" PrefixI False) U1) (C1 (MetaCons "RRIBARLegislatorLowerBody" PrefixI False) U1))) ((:+:) (C1 (MetaCons "RRIBARLegislatorUpperBody" PrefixI False) U1) ((:+:) (C1 (MetaCons "RRIBARSchoolBoard" PrefixI False) U1) (C1 (MetaCons "RRIBARSpecialPurposeOfficer" PrefixI False) U1)))))

ElectionOfficial

data ElectionOfficial #

Information about individual election officials.

See: electionOfficial smart constructor.

Instances

Eq ElectionOfficial # 
Data ElectionOfficial # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ElectionOfficial -> c ElectionOfficial #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ElectionOfficial #

toConstr :: ElectionOfficial -> Constr #

dataTypeOf :: ElectionOfficial -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ElectionOfficial) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ElectionOfficial) #

gmapT :: (forall b. Data b => b -> b) -> ElectionOfficial -> ElectionOfficial #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ElectionOfficial -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ElectionOfficial -> r #

gmapQ :: (forall d. Data d => d -> u) -> ElectionOfficial -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ElectionOfficial -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ElectionOfficial -> m ElectionOfficial #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ElectionOfficial -> m ElectionOfficial #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ElectionOfficial -> m ElectionOfficial #

Show ElectionOfficial # 
Generic ElectionOfficial # 
ToJSON ElectionOfficial # 
FromJSON ElectionOfficial # 
type Rep ElectionOfficial # 
type Rep ElectionOfficial = D1 (MetaData "ElectionOfficial" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "ElectionOfficial'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_eoFaxNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_eoName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_eoOfficePhoneNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_eoEmailAddress") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_eoTitle") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))

electionOfficial :: ElectionOfficial #

Creates a value of ElectionOfficial with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

eoFaxNumber :: Lens' ElectionOfficial (Maybe Text) #

The fax number of the election official.

eoName :: Lens' ElectionOfficial (Maybe Text) #

The full name of the election official.

eoOfficePhoneNumber :: Lens' ElectionOfficial (Maybe Text) #

The office phone number of the election official.

eoEmailAddress :: Lens' ElectionOfficial (Maybe Text) #

The email address of the election official.

eoTitle :: Lens' ElectionOfficial (Maybe Text) #

The title of the election official.

RepresentativeInfoData

data RepresentativeInfoData #

Instances

Eq RepresentativeInfoData # 
Data RepresentativeInfoData # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> RepresentativeInfoData -> c RepresentativeInfoData #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c RepresentativeInfoData #

toConstr :: RepresentativeInfoData -> Constr #

dataTypeOf :: RepresentativeInfoData -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c RepresentativeInfoData) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c RepresentativeInfoData) #

gmapT :: (forall b. Data b => b -> b) -> RepresentativeInfoData -> RepresentativeInfoData #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativeInfoData -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> RepresentativeInfoData -> r #

gmapQ :: (forall d. Data d => d -> u) -> RepresentativeInfoData -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> RepresentativeInfoData -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> RepresentativeInfoData -> m RepresentativeInfoData #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativeInfoData -> m RepresentativeInfoData #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> RepresentativeInfoData -> m RepresentativeInfoData #

Show RepresentativeInfoData # 
Generic RepresentativeInfoData # 
ToJSON RepresentativeInfoData # 
FromJSON RepresentativeInfoData # 
type Rep RepresentativeInfoData # 
type Rep RepresentativeInfoData = D1 (MetaData "RepresentativeInfoData" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "RepresentativeInfoData'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_ridOfficials") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Official]))) ((:*:) (S1 (MetaSel (Just Symbol "_ridDivisions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe RepresentativeInfoDataDivisions))) (S1 (MetaSel (Just Symbol "_ridOffices") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Office]))))))

representativeInfoData :: RepresentativeInfoData #

Creates a value of RepresentativeInfoData with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

ridOfficials :: Lens' RepresentativeInfoData [Official] #

Officials holding the offices listed above. Will only be present if includeOffices was true in the request.

ridDivisions :: Lens' RepresentativeInfoData (Maybe RepresentativeInfoDataDivisions) #

Political geographic divisions that contain the requested address.

ridOffices :: Lens' RepresentativeInfoData [Office] #

Elected offices referenced by the divisions listed above. Will only be present if includeOffices was true in the request.

Source

data Source #

Contains information about the data source for the element containing it.

See: source smart constructor.

Instances

Eq Source # 

Methods

(==) :: Source -> Source -> Bool #

(/=) :: Source -> Source -> Bool #

Data Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Source -> c Source #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Source #

toConstr :: Source -> Constr #

dataTypeOf :: Source -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Source) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Source) #

gmapT :: (forall b. Data b => b -> b) -> Source -> Source #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Source -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Source -> r #

gmapQ :: (forall d. Data d => d -> u) -> Source -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Source -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Source -> m Source #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Source -> m Source #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Source -> m Source #

Show Source # 
Generic Source # 

Associated Types

type Rep Source :: * -> * #

Methods

from :: Source -> Rep Source x #

to :: Rep Source x -> Source #

ToJSON Source # 
FromJSON Source # 
type Rep Source # 
type Rep Source = D1 (MetaData "Source" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "Source'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_sName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_sOfficial") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))))

source :: Source #

Creates a value of Source with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

sName :: Lens' Source (Maybe Text) #

The name of the data source.

sOfficial :: Lens' Source (Maybe Bool) #

Whether this data comes from an official government source.

DivisionRepresentativeInfoRequest

data DivisionRepresentativeInfoRequest #

A request to look up representative information for a single division.

See: divisionRepresentativeInfoRequest smart constructor.

Instances

Eq DivisionRepresentativeInfoRequest # 
Data DivisionRepresentativeInfoRequest # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DivisionRepresentativeInfoRequest -> c DivisionRepresentativeInfoRequest #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DivisionRepresentativeInfoRequest #

toConstr :: DivisionRepresentativeInfoRequest -> Constr #

dataTypeOf :: DivisionRepresentativeInfoRequest -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DivisionRepresentativeInfoRequest) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DivisionRepresentativeInfoRequest) #

gmapT :: (forall b. Data b => b -> b) -> DivisionRepresentativeInfoRequest -> DivisionRepresentativeInfoRequest #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DivisionRepresentativeInfoRequest -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DivisionRepresentativeInfoRequest -> r #

gmapQ :: (forall d. Data d => d -> u) -> DivisionRepresentativeInfoRequest -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DivisionRepresentativeInfoRequest -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DivisionRepresentativeInfoRequest -> m DivisionRepresentativeInfoRequest #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DivisionRepresentativeInfoRequest -> m DivisionRepresentativeInfoRequest #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DivisionRepresentativeInfoRequest -> m DivisionRepresentativeInfoRequest #

Show DivisionRepresentativeInfoRequest # 
Generic DivisionRepresentativeInfoRequest # 
ToJSON DivisionRepresentativeInfoRequest # 
FromJSON DivisionRepresentativeInfoRequest # 
type Rep DivisionRepresentativeInfoRequest # 
type Rep DivisionRepresentativeInfoRequest = D1 (MetaData "DivisionRepresentativeInfoRequest" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" True) (C1 (MetaCons "DivisionRepresentativeInfoRequest'" PrefixI True) (S1 (MetaSel (Just Symbol "_drirContextParams") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe ContextParams))))

divisionRepresentativeInfoRequest :: DivisionRepresentativeInfoRequest #

Creates a value of DivisionRepresentativeInfoRequest with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

ElectoralDistrict

data ElectoralDistrict #

Describes the geographic scope of a contest.

See: electoralDistrict smart constructor.

Instances

Eq ElectoralDistrict # 
Data ElectoralDistrict # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ElectoralDistrict -> c ElectoralDistrict #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ElectoralDistrict #

toConstr :: ElectoralDistrict -> Constr #

dataTypeOf :: ElectoralDistrict -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ElectoralDistrict) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ElectoralDistrict) #

gmapT :: (forall b. Data b => b -> b) -> ElectoralDistrict -> ElectoralDistrict #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ElectoralDistrict -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ElectoralDistrict -> r #

gmapQ :: (forall d. Data d => d -> u) -> ElectoralDistrict -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ElectoralDistrict -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ElectoralDistrict -> m ElectoralDistrict #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ElectoralDistrict -> m ElectoralDistrict #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ElectoralDistrict -> m ElectoralDistrict #

Show ElectoralDistrict # 
Generic ElectoralDistrict # 
ToJSON ElectoralDistrict # 
FromJSON ElectoralDistrict # 
type Rep ElectoralDistrict # 
type Rep ElectoralDistrict = D1 (MetaData "ElectoralDistrict" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "ElectoralDistrict'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_edKgForeignKey") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_edName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_edScope") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_edId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

electoralDistrict :: ElectoralDistrict #

Creates a value of ElectoralDistrict with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

edName :: Lens' ElectoralDistrict (Maybe Text) #

The name of the district.

edScope :: Lens' ElectoralDistrict (Maybe Text) #

The geographic scope of this district. If unspecified the district's geography is not known. One of: national, statewide, congressional, stateUpper, stateLower, countywide, judicial, schoolBoard, cityWide, township, countyCouncil, cityCouncil, ward, special

edId :: Lens' ElectoralDistrict (Maybe Text) #

An identifier for this district, relative to its scope. For example, the 34th State Senate district would have id "34" and a scope of stateUpper.

VoterInfoRequest

data VoterInfoRequest #

A request for information about a voter.

See: voterInfoRequest smart constructor.

Instances

Eq VoterInfoRequest # 
Data VoterInfoRequest # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> VoterInfoRequest -> c VoterInfoRequest #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c VoterInfoRequest #

toConstr :: VoterInfoRequest -> Constr #

dataTypeOf :: VoterInfoRequest -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c VoterInfoRequest) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c VoterInfoRequest) #

gmapT :: (forall b. Data b => b -> b) -> VoterInfoRequest -> VoterInfoRequest #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> VoterInfoRequest -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> VoterInfoRequest -> r #

gmapQ :: (forall d. Data d => d -> u) -> VoterInfoRequest -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> VoterInfoRequest -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> VoterInfoRequest -> m VoterInfoRequest #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> VoterInfoRequest -> m VoterInfoRequest #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> VoterInfoRequest -> m VoterInfoRequest #

Show VoterInfoRequest # 
Generic VoterInfoRequest # 
ToJSON VoterInfoRequest # 
FromJSON VoterInfoRequest # 
type Rep VoterInfoRequest # 
type Rep VoterInfoRequest = D1 (MetaData "VoterInfoRequest" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "VoterInfoRequest'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_virVoterInfoSegmentResult") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe VoterInfoSegmentResult))) (S1 (MetaSel (Just Symbol "_virContextParams") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ContextParams)))))

voterInfoRequest :: VoterInfoRequest #

Creates a value of VoterInfoRequest with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

SimpleAddressType

data SimpleAddressType #

A simple representation of an address.

See: simpleAddressType smart constructor.

Instances

Eq SimpleAddressType # 
Data SimpleAddressType # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> SimpleAddressType -> c SimpleAddressType #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c SimpleAddressType #

toConstr :: SimpleAddressType -> Constr #

dataTypeOf :: SimpleAddressType -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c SimpleAddressType) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c SimpleAddressType) #

gmapT :: (forall b. Data b => b -> b) -> SimpleAddressType -> SimpleAddressType #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> SimpleAddressType -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> SimpleAddressType -> r #

gmapQ :: (forall d. Data d => d -> u) -> SimpleAddressType -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> SimpleAddressType -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> SimpleAddressType -> m SimpleAddressType #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> SimpleAddressType -> m SimpleAddressType #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> SimpleAddressType -> m SimpleAddressType #

Show SimpleAddressType # 
Generic SimpleAddressType # 
ToJSON SimpleAddressType # 
FromJSON SimpleAddressType # 
type Rep SimpleAddressType # 

simpleAddressType :: SimpleAddressType #

Creates a value of SimpleAddressType with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

satLine2 :: Lens' SimpleAddressType (Maybe Text) #

The second line the address, if needed.

satState :: Lens' SimpleAddressType (Maybe Text) #

The US two letter state abbreviation of the address.

satLine3 :: Lens' SimpleAddressType (Maybe Text) #

The third line of the address, if needed.

satZip :: Lens' SimpleAddressType (Maybe Text) #

The US Postal Zip Code of the address.

satCity :: Lens' SimpleAddressType (Maybe Text) #

The city or town for the address.

satLine1 :: Lens' SimpleAddressType (Maybe Text) #

The street name and number of this address.

satLocationName :: Lens' SimpleAddressType (Maybe Text) #

The name of the location.

ContextParams

data ContextParams #

Instances

Eq ContextParams # 
Data ContextParams # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ContextParams -> c ContextParams #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ContextParams #

toConstr :: ContextParams -> Constr #

dataTypeOf :: ContextParams -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ContextParams) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ContextParams) #

gmapT :: (forall b. Data b => b -> b) -> ContextParams -> ContextParams #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ContextParams -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ContextParams -> r #

gmapQ :: (forall d. Data d => d -> u) -> ContextParams -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ContextParams -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ContextParams -> m ContextParams #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ContextParams -> m ContextParams #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ContextParams -> m ContextParams #

Show ContextParams # 
Generic ContextParams # 

Associated Types

type Rep ContextParams :: * -> * #

ToJSON ContextParams # 
FromJSON ContextParams # 
type Rep ContextParams # 
type Rep ContextParams = D1 (MetaData "ContextParams" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" True) (C1 (MetaCons "ContextParams'" PrefixI True) (S1 (MetaSel (Just Symbol "_cpClientProFile") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe Text))))

contextParams :: ContextParams #

Creates a value of ContextParams with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

PostalAddress

data PostalAddress #

Instances

Eq PostalAddress # 
Data PostalAddress # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PostalAddress -> c PostalAddress #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PostalAddress #

toConstr :: PostalAddress -> Constr #

dataTypeOf :: PostalAddress -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c PostalAddress) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PostalAddress) #

gmapT :: (forall b. Data b => b -> b) -> PostalAddress -> PostalAddress #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PostalAddress -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PostalAddress -> r #

gmapQ :: (forall d. Data d => d -> u) -> PostalAddress -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PostalAddress -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PostalAddress -> m PostalAddress #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PostalAddress -> m PostalAddress #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PostalAddress -> m PostalAddress #

Show PostalAddress # 
Generic PostalAddress # 

Associated Types

type Rep PostalAddress :: * -> * #

ToJSON PostalAddress # 
FromJSON PostalAddress # 
type Rep PostalAddress # 
type Rep PostalAddress = D1 (MetaData "PostalAddress" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "PostalAddress'" PrefixI True) ((:*:) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_paAdministrativeAreaName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_paRecipientName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_paLanguageCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_paSortingCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_paPremiseName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_paPostalCodeNumberExtension") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_paCountryNameCode") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_paDependentThoroughfaresConnector") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_paThoroughfareLeadingType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_paSubAdministrativeAreaName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_paThoroughfareTrailingType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_paPostBoxNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_paThoroughfarePreDirection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_paLocalityName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_paDependentThoroughfaresType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))) ((:*:) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_paThoroughfarePostDirection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_paIsDisputed") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)))) ((:*:) (S1 (MetaSel (Just Symbol "_paDependentThoroughfarePreDirection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_paThoroughfareNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_paDependentThoroughfaresIndicator") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_paDependentLocalityName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_paFirmName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_paCountryName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))) ((:*:) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_paDependentThoroughfareTrailingType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_paDependentThoroughfareName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_paDependentThoroughfarePostDirection") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_paAddressLines") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Text]))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_paPostalCodeNumber") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_paThoroughfareName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_paSubPremiseName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_paDependentThoroughfareLeadingType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))))

AdministrationRegion

data AdministrationRegion #

Describes information about a regional election administrative area.

See: administrationRegion smart constructor.

Instances

Eq AdministrationRegion # 
Data AdministrationRegion # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> AdministrationRegion -> c AdministrationRegion #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c AdministrationRegion #

toConstr :: AdministrationRegion -> Constr #

dataTypeOf :: AdministrationRegion -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c AdministrationRegion) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c AdministrationRegion) #

gmapT :: (forall b. Data b => b -> b) -> AdministrationRegion -> AdministrationRegion #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> AdministrationRegion -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> AdministrationRegion -> r #

gmapQ :: (forall d. Data d => d -> u) -> AdministrationRegion -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> AdministrationRegion -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> AdministrationRegion -> m AdministrationRegion #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> AdministrationRegion -> m AdministrationRegion #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> AdministrationRegion -> m AdministrationRegion #

Show AdministrationRegion # 
Generic AdministrationRegion # 
ToJSON AdministrationRegion # 
FromJSON AdministrationRegion # 
type Rep AdministrationRegion # 
type Rep AdministrationRegion = D1 (MetaData "AdministrationRegion" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "AdministrationRegion'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_arLocalJurisdiction") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AdministrationRegion))) (S1 (MetaSel (Just Symbol "_arSources") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Source])))) ((:*:) (S1 (MetaSel (Just Symbol "_arName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_arElectionAdministrationBody") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe AdministrativeBody))) (S1 (MetaSel (Just Symbol "_arId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))))))

administrationRegion :: AdministrationRegion #

Creates a value of AdministrationRegion with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

arLocalJurisdiction :: Lens' AdministrationRegion (Maybe AdministrationRegion) #

The city or county that provides election information for this voter. This object can have the same elements as state.

arSources :: Lens' AdministrationRegion [Source] #

A list of sources for this area. If multiple sources are listed the data has been aggregated from those sources.

arName :: Lens' AdministrationRegion (Maybe Text) #

The name of the jurisdiction.

arElectionAdministrationBody :: Lens' AdministrationRegion (Maybe AdministrativeBody) #

The election administration body for this area.

arId :: Lens' AdministrationRegion (Maybe Text) #

An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page.

ElectionsQueryResponse

data ElectionsQueryResponse #

The list of elections available for this version of the API.

See: electionsQueryResponse smart constructor.

Instances

Eq ElectionsQueryResponse # 
Data ElectionsQueryResponse # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> ElectionsQueryResponse -> c ElectionsQueryResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c ElectionsQueryResponse #

toConstr :: ElectionsQueryResponse -> Constr #

dataTypeOf :: ElectionsQueryResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c ElectionsQueryResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c ElectionsQueryResponse) #

gmapT :: (forall b. Data b => b -> b) -> ElectionsQueryResponse -> ElectionsQueryResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> ElectionsQueryResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> ElectionsQueryResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> ElectionsQueryResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> ElectionsQueryResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> ElectionsQueryResponse -> m ElectionsQueryResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> ElectionsQueryResponse -> m ElectionsQueryResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> ElectionsQueryResponse -> m ElectionsQueryResponse #

Show ElectionsQueryResponse # 
Generic ElectionsQueryResponse # 
ToJSON ElectionsQueryResponse # 
FromJSON ElectionsQueryResponse # 
type Rep ElectionsQueryResponse # 
type Rep ElectionsQueryResponse = D1 (MetaData "ElectionsQueryResponse" "Network.Google.CivicInfo.Types.Product" "gogol-civicinfo-0.3.0-8cPMWSZcPQ9FBk80XRfQE5" False) (C1 (MetaCons "ElectionsQueryResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_eqrKind") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_eqrElections") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Election])))))

electionsQueryResponse :: ElectionsQueryResponse #

Creates a value of ElectionsQueryResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

eqrKind :: Lens' ElectionsQueryResponse Text #

Identifies what kind of resource this is. Value: the fixed string "civicinfo#electionsQueryResponse".

eqrElections :: Lens' ElectionsQueryResponse [Election] #

A list of available elections

Official

data Official #

Information about a person holding an elected office.

See: official smart constructor.

Instances

Eq Official # 
Data Official # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> Official -> c Official #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c Official #

toConstr :: Official -> Constr #

dataTypeOf :: Official -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c Official) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c Official) #

gmapT :: (forall b. Data b => b -> b) -> Official -> Official #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> Official -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> Official -> r #

gmapQ :: (forall d. Data d => d -> u) -> Official -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> Official -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> Official -> m Official #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> Official -> m Official #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> Official -> m Official #

Show Official # 
Generic Official # 

Associated Types

type Rep Official :: * -> * #

Methods

from :: Official -> Rep Official x #

to :: Rep Official x -> Official #

ToJSON Official # 
FromJSON Official # 
type Rep Official # 

official :: Official #

Creates a value of Official with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

offPhotoURL :: Lens' Official (Maybe Text) #

A URL for a photo of the official.

offURLs :: Lens' Official [Text] #

The official's public website URLs.

offChannels :: Lens' Official [Channel] #

A list of known (social) media channels for this official.

offAddress :: Lens' Official [SimpleAddressType] #

Addresses at which to contact the official.

offPhones :: Lens' Official [Text] #

The official's public contact phone numbers.

offName :: Lens' Official (Maybe Text) #

The official's name.

offEmails :: Lens' Official [Text] #

The direct email addresses for the official.

offParty :: Lens' Official (Maybe Text) #

The full name of the party the official belongs to.