Reference / Modules / client / VoterApi
Class: VoterApi
client.VoterApi
Table of contents
Constructors
Properties
Methods
Constructors
constructor
• new VoterApi(args
): VoterApi
Parameters
Name | Type |
---|---|
args | Object |
args.logionClient | LogionClient |
args.sharedState | SharedState |
Returns
Defined in
packages/client/src/Voter.ts:11
Properties
logionClient
• Private
logionClient: LogionClient
Defined in
packages/client/src/Voter.ts:21
sharedState
• Private
sharedState: SharedState
Defined in
packages/client/src/Voter.ts:19
Methods
findLocById
▸ findLocById(locId
): Promise
<undefined
| ReadOnlyLocState
>
Parameters
Name | Type |
---|---|
locId | UUID |
Returns
Promise
<undefined
| ReadOnlyLocState
>
Defined in
packages/client/src/Voter.ts:23
getLocAndClient
▸ getLocAndClient(locId
): Promise
<undefined
| { client
: AuthenticatedLocClient
; loc
: LegalOfficerCase
; locRequest
: LocRequest
}>
Parameters
Name | Type |
---|---|
locId | UUID |
Returns
Promise
<undefined
| { client
: AuthenticatedLocClient
; loc
: LegalOfficerCase
; locRequest
: LocRequest
}>
Defined in
packages/client/src/Voter.ts:43
getVotes
▸ getVotes(): Promise
<Votes
>
Returns
Promise
<Votes
>