PresentmentModel
A model which can be used to drive UI for presentment.
This model is designed to be shared by a mechanism (the code communicating with a credential reader) and the UI layer (which displays UI to the user). Typically the mechanism will also include a PromptModel bound to the UI so things like consent prompts and authentication dialogs are displayed in the UI.
Properties
The set of Documents currently selected to be returned.
The DocumentStore being used for presentment.
The DocumentTypeRepository to provide information about document types.
The number of requests served from the reader.
The current state of the model.
Functions
Resets the model.
Should be called by the UI layer when the user cancels the transaction.
Should be called by the mechanism when the transaction is complete.
Should be called by the mechanism when connecting to the credential reader, if applicable
Should be called by the mechanism when the user selects a particular set of documents.
Should be called by the mechanism when transmitting the response to the credential reader.
Should be called by the mechanism when waiting for the credential reader to send a request.
Should be called by the mechanism when waiting for the user to provide input (consent prompt or authentication).