Ejemplo n.º 1
0
        public async Task HandleFetchDataAction(GetMyTermsAndConditions action, IDispatcher dispatcher)
        {
            var result = await _mediator.Send(new GetMyTermsAndConditionsQuery());

            dispatcher.Dispatch(new GetMyTermsAndConditionsResultAction(result.IsHealthAndSafetyMeasuresAccepted, result.IsPrivacyActStatementAccepted));
        }
Ejemplo n.º 2
0
 public static MyTermsAndConditionsState ReduceGetMyTermsAndConditions(MyTermsAndConditionsState state, GetMyTermsAndConditions action) =>
 new MyTermsAndConditionsState(isLoading: true, healthAndSafetyMeasuresAccepted: false, privacyActStatementAccepted: false);