Ejemplo n.º 1
0
 public UnityWebRequestWrapper(string url, string method, DownloadHandlerBufferWrapper downloadHandler, UploadHandlerRawWrapper uploadHandler)
 {
     if (downloadHandler == null)
     {
         throw new ArgumentNullException("downloadHandler");
     }
     if (uploadHandler == null)
     {
         throw new ArgumentNullException("uploadHandler");
     }
     unityWebRequestInstance = Activator.CreateInstance(unityWebRequestType, url, method, downloadHandler.Instance, uploadHandler.Instance);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// Create an instance of UnityWebRequestWrapper
        /// </summary>
        /// <param name="url">Url of the request</param>
        /// <param name="method">The HTTP Methods</param>
        /// <param name="downloadHandler">Instance of <see cref="DownloadHandlerBufferWrapper"/></param>
        /// <param name="uploadHandler">Instance of <see cref="UploadHandlerRawWrapper"/></param>
        public UnityWebRequestWrapper(string url, string method, DownloadHandlerBufferWrapper downloadHandler, UploadHandlerRawWrapper uploadHandler)
        {
            if (downloadHandler == null)
                throw new ArgumentNullException("downloadHandler");

            if (uploadHandler == null)
                throw new ArgumentNullException("uploadHandler");

            unityWebRequestInstance = Activator.CreateInstance(unityWebRequestType, url, method, downloadHandler.Instance, uploadHandler.Instance);
        }