Skip to main content

Reference / Modules / client / VoterApi

Class: VoterApi

client.VoterApi

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new VoterApi(args): VoterApi

Parameters

NameType
argsObject
args.logionClientLogionClient
args.sharedStateSharedState

Returns

VoterApi

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

NameType
locIdUUID

Returns

Promise<undefined | ReadOnlyLocState>

Defined in

packages/client/src/Voter.ts:23


getLocAndClient

getLocAndClient(locId): Promise<undefined | { client: AuthenticatedLocClient ; loc: LegalOfficerCase ; locRequest: LocRequest }>

Parameters

NameType
locIdUUID

Returns

Promise<undefined | { client: AuthenticatedLocClient ; loc: LegalOfficerCase ; locRequest: LocRequest }>

Defined in

packages/client/src/Voter.ts:43


getVotes

getVotes(): Promise<Votes>

Returns

Promise<Votes>

Defined in

packages/client/src/Voter.ts:73