Пример #1
0
        private async Task showReports(DeeplinkShowReportsParameters reportsParameters)
        {
            var presenter = IosDependencyContainer.Instance.ViewPresenter;
            var change    = new ShowReportsPresentationChange(reportsParameters.WorkspaceId, reportsParameters.StartDate, reportsParameters.EndDate);

            presenter.ChangePresentation(change);
        }
Пример #2
0
        private void showReports(DeeplinkShowReportsParameters deeplinkShowReportsParameters)
        {
            var startDate    = deeplinkShowReportsParameters.StartDate?.ToUnixTimeSeconds() ?? 0L;
            var endDate      = deeplinkShowReportsParameters.EndDate?.ToUnixTimeSeconds() ?? 0L;
            var workspaceId  = deeplinkShowReportsParameters.WorkspaceId ?? 0L;
            var intentExtras = new Bundle();

            intentExtras.PutInt(MainTabBarActivity.StartingTabExtra, Resource.Id.MainTabReportsItem);
            intentExtras.PutLong(MainTabBarActivity.StartDateExtra, startDate);
            intentExtras.PutLong(MainTabBarActivity.EndDateExtra, endDate);
            intentExtras.PutLong(MainTabBarActivity.StartDateExtra, workspaceId);

            var intent = createRootActivityIntent(intentExtras);

            StartActivity(intent);
            Finish();
        }