private async Task <GeneralOptionsDto> GetGeneralOptionsDtoAsync() { // Call from a background thread to avoid blocking the UI thread //var generalOptions = GeneralOptions.Instance; // Call from a background thread to avoid blocking the UI thread var generalOptions = await GeneralOptions.GetLiveInstanceAsync(); var hiddenOptions = await HiddenOptions.GetLiveInstanceAsync(); return(new GeneralOptionsDto { LastPopUpDateTime = hiddenOptions.LastPopUpDateTime, MaximumPopUpsWeekDay = generalOptions.MaximumPopUpsWeekDay.GetAsInteger(), MaximumPopUpsWeekEnd = generalOptions.MaximumPopUpsWeekEnd.GetAsInteger(), PopUpIntervalInMins = generalOptions.PopUpIntervalInMins.GetAsInteger(), PopUpCountToday = hiddenOptions.PopUpCountToday, TimeOutInMilliSeconds = generalOptions.TimeOutInMilliSeconds.GetAsInteger(), }); }
public AtawHiddenOptionCreator() { fHiddenOptions = new HiddenOptions(); BaseOptions = fHiddenOptions; }