add interface

This commit is contained in:
2013-06-13 14:30:48 +02:00
parent 81b7f023b1
commit 5ee9b4222c
+37
View File
@@ -0,0 +1,37 @@
using RestSharp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace PocketSharp
{
class IPocketClient
{
/// <summary>
/// base URL for the API
/// </summary>
Uri BaseUrl { get; set; }
/// <summary>
/// Accessor for the Pocket API key
/// see: http://getpocket.com/developer
/// </summary>
string ConsumerKey { get; set; }
/// <summary>
/// Makes a HTTP REST request to the API
/// </summary>
/// <param name="request">The request.</param>
/// <returns></returns>
IRestResponse Request(RestRequest request);
/// <summary>
/// Makes a typed HTTP REST request to the API
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="request">The request.</param>
/// <returns></returns>
T Request<T>(RestRequest request) where T : class, new();
}
}