示例#1
0
        public async Task <IActionResult> GetPlayQueue(SubsonicRequest request)
        {
            var authResult = await AuthenticateUser(request).ConfigureAwait(false);

            if (authResult != null)
            {
                return(authResult);
            }
            var result = await SubsonicService.GetPlayQueue(request, SubsonicUser).ConfigureAwait(false);

            if (result.IsEmptyResponse)
            {
                return(BuildResponse(request, result));
            }
            return(BuildResponse(request, result, "playQueue"));
        }