コード例 #1
0
        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));
        }
コード例 #2
0
 public List <Recipient> GetMessageRecipientList(long collectorId, long messageId, GetRecipientListSettings settings)
 {
     return(GetRecipientListPager(collectorId, messageId, settings));
 }
コード例 #3
0
 public List <Recipient> GetCollectorRecipientList(long collectorId, GetRecipientListSettings settings)
 {
     return(GetRecipientListPager(collectorId, null, settings));
 }
コード例 #4
0
        public List <Recipient> GetMessageRecipientList(long collectorId, long messageId)
        {
            var settings = new GetRecipientListSettings();

            return(GetRecipientListPager(collectorId, messageId, settings));
        }
コード例 #5
0
        public List <Recipient> GetCollectorRecipientList(long collectorId)
        {
            var settings = new GetRecipientListSettings();

            return(GetRecipientListPager(collectorId, null, settings));
        }