remove configuration object and make props public;
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user