GetResponse() public static method

public static GetResponse ( string requestUri, FormData data ) : JResponse
requestUri string
data FormData
return JResponse
示例#1
0
        public PlaylistResponse GetResponse()
        {
            PlaylistRequestForm form = new PlaylistRequestForm(this);

            if (Operation == PlayOperation.PlaysToEnd ||
                Operation == PlayOperation.Like ||
                Operation == PlayOperation.Unlike)
            {
                ConnectionManager.GetResponseStream(
                    ConnectionManager.PlaylistUri, form);

                return(null);
            }

            var jResp = ConnectionManager.GetResponse(
                ConnectionManager.PlaylistUri, form);

            return(new PlaylistResponse(jResp));
        }