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)); }
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)); }
public CfContactBatch GetContactBatch(long id) { return(ContactBatchMapper.FromSoapContactBatch(BroadcastService.GetContactBatch(new IdRequest(id)))); }