public CfSoundMetaQueryResult QuerySoundMeta(CfQuery cfQuerySoundMeta) { var resourceList = BaseRequest <ResourceList>(HttpMethod.Get, new Query(cfQuerySoundMeta), new CallfireRestRoute <Call>(null, CallRestRouteObjects.Sound, null)); var soundMeta = resourceList.Resource == null ? null : resourceList.Resource.Select(r => SoundMetaMapper.FromSoundMeta((SoundMeta)r)).ToArray(); return(new CfSoundMetaQueryResult(resourceList.TotalResults, soundMeta)); }
public CfSoundMeta GetSoundMeta(long id) { return(SoundMetaMapper.FromSoundMeta(CallService.GetSoundMeta(new IdRequest(id)))); }
public CfSoundMeta GetSoundMeta(long id) { var resource = BaseRequest <Resource>(HttpMethod.Get, null, new CallfireRestRoute <Call>(id, CallRestRouteObjects.Sound, null)); return(SoundMetaMapper.FromSoundMeta(resource.Resources as SoundMeta)); }