From 7e9d519ad25127df5d0c6b23660217bccbfe6a02 Mon Sep 17 00:00:00 2001 From: ceee Date: Thu, 20 Jun 2013 12:23:40 +0200 Subject: [PATCH] remove configuration object and make props public; --- PocketSharp.Console/Program.cs | 5 ----- PocketSharp/PocketClient.cs | 21 +++------------------ 2 files changed, 3 insertions(+), 23 deletions(-) diff --git a/PocketSharp.Console/Program.cs b/PocketSharp.Console/Program.cs index 07ca6b6..c2935d1 100644 --- a/PocketSharp.Console/Program.cs +++ b/PocketSharp.Console/Program.cs @@ -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(); } } diff --git a/PocketSharp/PocketClient.cs b/PocketSharp/PocketClient.cs index f23ce02..d8d1a23 100644 --- a/PocketSharp/PocketClient.cs +++ b/PocketSharp/PocketClient.cs @@ -21,13 +21,13 @@ namespace PocketSharp /// /// base URL for the API /// - protected Uri BaseUrl { get; set; } + public Uri BaseUrl { get; set; } /// /// Accessor for the Pocket API key /// see: http://getpocket.com/developer /// - protected string ConsumerKey { get; set; } + public string ConsumerKey { get; set; } /// /// Returns all associated data from the last request @@ -42,7 +42,7 @@ namespace PocketSharp /// /// Code retrieved on authentification-success /// - protected string AccessCode { get; set; } + public string AccessCode { get; set; } /// @@ -89,21 +89,6 @@ namespace PocketSharp } - /// - /// Gets the configuration from the PocketClient. - /// - /// - public Dictionary GetConfiguration() - { - return new Dictionary() - { - { "baseUrl", BaseUrl }, - { "consumerKey", ConsumerKey }, - { "accessCode", AccessCode } - }; - } - - /// /// Makes a HTTP REST request to the API ///