Ejemplo n.º 1
0
        private TOut[] GetEntites <TIn, TOut>(string command, int offset, int limit, Func <TIn, TOut> convert)
        {
            var collection = soundCloudRawClient.GetCollection <TIn>(paginationValidator, prefix, command, offset, limit);

            return(collection.Select(convert).ToArray());
        }
Ejemplo n.º 2
0
        public SCTrack[] GetTracks(int offset = 0, int limit = 50)
        {
            var tracks = soundCloudRawClient.GetCollection <Track>(paginationValidator, prefix, "tracks", offset, limit);

            return(tracks.Select(trackConverter.Convert).ToArray());
        }
Ejemplo n.º 3
0
        public SCComment[] GetComments(int offset = 0, int limit = 50)
        {
            var comments = soundCloudRawClient.GetCollection <Comment>(paginationValidator, prefix, "comments", offset, limit);

            return(comments.Select(commentConverter.Convert).ToArray());
        }