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)); }
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); }
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); }