예제 #1
0
        public async Task GetCurrentProfileId(OnGetCurrentProfileIdDelegate onGetCurrentProfileId)
        {
            _onGetCurrentProfileId = onGetCurrentProfileId ?? throw new ArgumentNullException(nameof(onGetCurrentProfileId));

            _getCurrentProfileIdCommand.SetResponseDelegate(OnGetCurrentProfileIdResponse);
            _getCurrentProfileIdCommand.SendGetCurrentProfileIdCommand();
        }
예제 #2
0
        private async Task OnIsFoxArmedResponseAsync(bool isArmed)
        {
            _statusToLoad.IsFoxArmed = isArmed;

            _getCurrentProfileIdCommand.SetResponseDelegate(async(p) => await OnGetCurrentProfileIdResponseAsync(p));
            _getCurrentProfileIdCommand.SendGetCurrentProfileIdCommand();
        }