public CfCallQueryResult QueryCalls(CfActionQuery cfQueryCalls)
        {
            var resourceList = BaseRequest <ResourceList>(HttpMethod.Get, new ActionQuery(cfQueryCalls),
                                                          new CallfireRestRoute <Call>());

            var call = resourceList.Resource == null ? null
               : resourceList.Resource.Select(r => CallMapper.FromCall((Call)r)).ToArray();

            return(new CfCallQueryResult(resourceList.TotalResults, call));
        }
Exemplo n.º 2
0
 public CfCall GetCall(long id)
 {
     return(CallMapper.FromCall(CallService.GetCall(new IdRequest(id))));
 }
        public CfCall GetCall(long id)
        {
            var resource = BaseRequest <Resource>(HttpMethod.Get, null, new CallfireRestRoute <Call>(id));

            return(CallMapper.FromCall(resource.Resources as Call));
        }