Beispiel #1
0
        public CfBroadcastQueryResult QueryBroadcasts(CfQueryBroadcasts queryBroadcasts)
        {
            var resourceList = BaseRequest <ResourceList>(HttpMethod.Get, new QueryBroadcasts(queryBroadcasts),
                                                          new CallfireRestRoute <Broadcast>());

            var broadcasts = resourceList.Resource == null ? null
               : resourceList.Resource.Select(r => BroadcastMapper.FromSoapBroadCast((Broadcast)r)).ToArray();

            return(new CfBroadcastQueryResult(resourceList.TotalResults, broadcasts));
        }
Beispiel #2
0
        public CfBroadcast GetBroadcast(long id)
        {
            var resource = BaseRequest <Resource>(HttpMethod.Get, null, new CallfireRestRoute <Broadcast>(id));

            return(BroadcastMapper.FromSoapBroadCast(resource.Resources as Broadcast));
        }
Beispiel #3
0
 public CfBroadcast GetBroadcast(long id)
 {
     return(BroadcastMapper.FromSoapBroadCast(BroadcastService.GetBroadcast(new IdRequest(id))));
 }