Exemple #1
0
            async public override Task <Unit> Handle(AddressBookAction aAction, CancellationToken aCancellationToken)
            {
                try
                {
                    var rq = new Data.W01012A.Request(aAction.AN8);
                    if (aAction.RowAction == RowAction.Save)
                    {
                        rq.SaveAction(AppState.AddressBook);
                        AppState.EditMode = false;
                        await JsService.InitMenu("menu", new string[] { "Back", "Edit" });
                    }
                    var rs = await E1Service.RequestAsync <Data.W01012A.Response>(rq);

                    AppState.AddressBook = rs.fs_P01012_W01012A.data;
                    EventHandler handler = AppState.StateChanged;
                    handler?.Invoke(AppState, null);
                }
                catch { }
                return(Unit.Value);
            }
Exemple #2
0
 public ListAddressBookHandler(IStore store, E1Service e1Service) : base(store)
 {
     E1Service = e1Service;
 }
Exemple #3
0
 public LogoutHandler(IStore store, E1Service e1Service) : base(store)
 {
     E1Service = e1Service;
     E1Service.AuthResponse = State.AuthResponse;
 }
Exemple #4
0
 public AddressBookHandler(IStore store, E1Service e1Service, JsService jsService) : base(store)
 {
     E1Service = e1Service;
     JsService = jsService;
 }
Exemple #5
0
 public GetUDCHandler(IStore aStore, E1Service e1Service) : base(aStore)
 {
     E1Service = e1Service;
 }
Exemple #6
0
 public GetOMWStatsHandler(IStore aStore, E1Service e1Service) : base(aStore)
 {
     E1Service = e1Service;
 }