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")); } } }
public AppInfo(IFMPlatform fMPlatform, IAuthentication authentication) { _fMPlatform = fMPlatform ?? throw new ArgumentException(nameof(fMPlatform)); _authentication = authentication ?? throw new ArgumentException(nameof(authentication)); App = new applicationdto(); }