private List <Recipient> GetRecipientListPager(long collectorId, long?messageId, GetRecipientListSettings settings) { string endPoint = messageId.HasValue ? String.Format("/collectors/{0}/messages/{1}/recipients", collectorId, messageId) : String.Format("/collectors/{0}/recipients", collectorId); const int maxResultsPerPage = 1000; var results = Page(settings, endPoint, typeof(List <Recipient>), maxResultsPerPage); return(results.ToList().ConvertAll(o => (Recipient)o)); }
public List <Recipient> GetMessageRecipientList(long collectorId, long messageId, GetRecipientListSettings settings) { return(GetRecipientListPager(collectorId, messageId, settings)); }
public List <Recipient> GetCollectorRecipientList(long collectorId, GetRecipientListSettings settings) { return(GetRecipientListPager(collectorId, null, settings)); }
public List <Recipient> GetMessageRecipientList(long collectorId, long messageId) { var settings = new GetRecipientListSettings(); return(GetRecipientListPager(collectorId, messageId, settings)); }
public List <Recipient> GetCollectorRecipientList(long collectorId) { var settings = new GetRecipientListSettings(); return(GetRecipientListPager(collectorId, null, settings)); }