Esempio n. 1
0
        public CommunicationStatistics GetPeopleStageCommunicationsStatsForProgramme(PeopleStageSystemSummary systemSummary)
        {
            if (sessionDetails == null)
            {
                throw new Exception("No session has been created - please log in");
            }

            IPeopleStageApi peopleStageApi = apiConnectorFactory.CreatePeopleStageApi(sessionDetails);

            return(peopleStageApi.PeopleStageGetPeopleStageElementCommunicationStatistics(dataView, systemSummary.SystemName, systemSummary.ProgrammeId));
        }
Esempio n. 2
0
        public List <PeopleStageSystemSummary> GetPeopleStageSystems()
        {
            if (sessionDetails == null)
            {
                throw new Exception("No session has been created - please log in");
            }

            IPeopleStageApi peopleStageApi = apiConnectorFactory.CreatePeopleStageApi(sessionDetails);
            PagedResultsPeopleStageSystemSummary summaries = peopleStageApi.PeopleStageGetPeopleStageSystems(dataView, null, null, null, 1000);

            return(summaries?.List);
        }
Esempio n. 3
0
        public List <ElementStatus> GetPeopleStageCampaigns(PeopleStageSystemSummary systemSummary)
        {
            if (sessionDetails == null)
            {
                throw new Exception("No session has been created - please log in");
            }

            IPeopleStageApi           peopleStageApi = apiConnectorFactory.CreatePeopleStageApi(sessionDetails);
            string                    filter         = "Type eq 'Campaign'";
            PagedResultsElementStatus statuses       = peopleStageApi.PeopleStageGetPeopleStageElementStatusForDescendants(dataView, systemSummary.SystemName, systemSummary.ProgrammeId, filter, null, 0, 1000000);

            return(statuses?.List);
        }