Exemplo n.º 1
0
        public CfContactBatch GetContactBatch(long id)
        {
            var resource = BaseRequest <Resource>(HttpMethod.Get, null,
                                                  new CallfireRestRoute <Broadcast>(id, BroadcastRestRouteObjects.Batch, null));

            return(ContactBatchMapper.FromSoapContactBatch(resource.Resources as ContactBatch));
        }
Exemplo n.º 2
0
        public CfContactBatchQueryResult QueryContactBatches(CfQueryBroadcastData cfQueryBroadcastData)
        {
            var resourceList = BaseRequest <ResourceList>(HttpMethod.Get, new QueryContactBatches(cfQueryBroadcastData),
                                                          new CallfireRestRoute <Broadcast>(cfQueryBroadcastData.BroadcastId, null,
                                                                                            BroadcastRestRouteObjects.Batch));

            var contactBatch = resourceList.Resource == null ? null
               : resourceList.Resource.Select(r => ContactBatchMapper.FromSoapContactBatch((ContactBatch)r)).ToArray();

            return(new CfContactBatchQueryResult(resourceList.TotalResults, contactBatch));
        }
Exemplo n.º 3
0
 public CfContactBatch GetContactBatch(long id)
 {
     return(ContactBatchMapper.FromSoapContactBatch(BroadcastService.GetContactBatch(new IdRequest(id))));
 }