コード例 #1
0
        public async void Load()
        {
            if (!IsLoaded)
            {
                var response = await _fMPlatform.GetApplicationBySystemId(_authentication.GetToken(), ApiConstants.SystemId);

                if (response?.isuccess == true)
                {
                    App      = response.data;
                    IsLoaded = true;
                }
                else
                {
                    DependencyService.Get <IMessage>().ShowSnackBarNetwork(TranslateManagerHelper.Convert("network_unavailable_token"));
                }
            }
        }
コード例 #2
0
 public AppInfo(IFMPlatform fMPlatform, IAuthentication authentication)
 {
     _fMPlatform     = fMPlatform ?? throw new ArgumentException(nameof(fMPlatform));
     _authentication = authentication ?? throw new ArgumentException(nameof(authentication));
     App             = new applicationdto();
 }