コード例 #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);
            }
コード例 #2
0
 public ListAddressBookHandler(IStore store, E1Service e1Service) : base(store)
 {
     E1Service = e1Service;
 }
コード例 #3
0
 public LogoutHandler(IStore store, E1Service e1Service) : base(store)
 {
     E1Service = e1Service;
     E1Service.AuthResponse = State.AuthResponse;
 }
コード例 #4
0
 public AddressBookHandler(IStore store, E1Service e1Service, JsService jsService) : base(store)
 {
     E1Service = e1Service;
     JsService = jsService;
 }
コード例 #5
0
 public GetUDCHandler(IStore aStore, E1Service e1Service) : base(aStore)
 {
     E1Service = e1Service;
 }
コード例 #6
0
 public GetOMWStatsHandler(IStore aStore, E1Service e1Service) : base(aStore)
 {
     E1Service = e1Service;
 }