remove configuration object and make props public;

This commit is contained in:
2013-06-20 12:23:40 +02:00
parent bea9ab7994
commit 7e9d519ad2
2 changed files with 3 additions and 23 deletions
-5
View File
@@ -20,11 +20,6 @@ namespace PocketSharp.Console
accessCode: "a85134a7-243c-6656-ab82-97c901"
);
foreach(PocketItem item in x)
{
System.Console.WriteLine(">>> " + item.Title);
}
System.Console.ReadKey();
}
}
+3 -18
View File
@@ -21,13 +21,13 @@ namespace PocketSharp
/// <summary>
/// base URL for the API
/// </summary>
protected Uri BaseUrl { get; set; }
public Uri BaseUrl { get; set; }
/// <summary>
/// Accessor for the Pocket API key
/// see: http://getpocket.com/developer
/// </summary>
protected string ConsumerKey { get; set; }
public string ConsumerKey { get; set; }
/// <summary>
/// Returns all associated data from the last request
@@ -42,7 +42,7 @@ namespace PocketSharp
/// <summary>
/// Code retrieved on authentification-success
/// </summary>
protected string AccessCode { get; set; }
public string AccessCode { get; set; }
/// <summary>
@@ -89,21 +89,6 @@ namespace PocketSharp
}
/// <summary>
/// Gets the configuration from the PocketClient.
/// </summary>
/// <returns></returns>
public Dictionary<string, object> GetConfiguration()
{
return new Dictionary<string, object>()
{
{ "baseUrl", BaseUrl },
{ "consumerKey", ConsumerKey },
{ "accessCode", AccessCode }
};
}
/// <summary>
/// Makes a HTTP REST request to the API
/// </summary>