mirror of
https://github.com/Sarsoo/Spotify.NET.git
synced 2024-12-26 07:56:26 +00:00
0b78f12df3
- New Namespaces -> SpotifyAPI.SpotifyLocalAPI -> SpotifyAPI.SpotifyWebAPI -> SpotifyAPI.SpotifyWebAPI.Models - Wiki created, examples coming soon - Added example for the new Web API - README updated
22 lines
496 B
C#
22 lines
496 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Net;
|
|
|
|
namespace SpotifyAPI.SpotifyLocalAPI
|
|
{
|
|
class ExtendedWebClient : WebClient
|
|
{
|
|
public int Timeout { get; set; }
|
|
|
|
protected override WebRequest GetWebRequest(Uri address)
|
|
{
|
|
WebRequest webRequest = base.GetWebRequest(address);
|
|
webRequest.Timeout = Timeout;
|
|
return webRequest;
|
|
}
|
|
}
|
|
}
|