GetResponseStream() public static method

public static GetResponseStream ( string requestUri, FormData data ) : Stream
requestUri string
data FormData
return Stream
Ejemplo n.º 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));
        }