diff --git a/PocketSharp.Tests/PocketSharp.Tests.csproj b/PocketSharp.Tests/PocketSharp.Tests.csproj index 85353dd..8a0089e 100644 --- a/PocketSharp.Tests/PocketSharp.Tests.csproj +++ b/PocketSharp.Tests/PocketSharp.Tests.csproj @@ -3,7 +3,7 @@ Debug AnyCPU - fbe5a0d2-d0de-44b1-8b8a-cf8cd3ac2230 + {F1CEA363-7039-40BA-9744-0071F46BB90C} Library Properties PocketSharp.Tests diff --git a/PocketSharp.sln b/PocketSharp.sln index 1c89a84..e25683e 100644 --- a/PocketSharp.sln +++ b/PocketSharp.sln @@ -5,6 +5,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PocketSharp", "PocketSharp\ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PocketSharp.Console", "PocketSharp.Console\PocketSharp.Console.csproj", "{81B7D587-A189-4785-BDFE-CA8A9ABA0760}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PocketSharp.Tests", "PocketSharp.Tests\PocketSharp.Tests.csproj", "{F1CEA363-7039-40BA-9744-0071F46BB90C}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -19,6 +21,10 @@ Global {81B7D587-A189-4785-BDFE-CA8A9ABA0760}.Debug|Any CPU.Build.0 = Debug|Any CPU {81B7D587-A189-4785-BDFE-CA8A9ABA0760}.Release|Any CPU.ActiveCfg = Release|Any CPU {81B7D587-A189-4785-BDFE-CA8A9ABA0760}.Release|Any CPU.Build.0 = Release|Any CPU + {F1CEA363-7039-40BA-9744-0071F46BB90C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F1CEA363-7039-40BA-9744-0071F46BB90C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F1CEA363-7039-40BA-9744-0071F46BB90C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F1CEA363-7039-40BA-9744-0071F46BB90C}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/PocketSharp/Components/Authentification.cs b/PocketSharp/Components/Authentification.cs index 1e9f965..abc204e 100644 --- a/PocketSharp/Components/Authentification.cs +++ b/PocketSharp/Components/Authentification.cs @@ -1,7 +1,5 @@ -using PocketSharp.Models.Authentification; +using PocketSharp.Models; using System; -using System.Collections.Generic; -using RestSharp; namespace PocketSharp { diff --git a/PocketSharp/Models/PocketItem.cs b/PocketSharp/Models/PocketItem.cs index 845949a..40421fa 100644 --- a/PocketSharp/Models/PocketItem.cs +++ b/PocketSharp/Models/PocketItem.cs @@ -182,7 +182,7 @@ namespace PocketSharp.Models /// The _ tag dictionary. /// [DataMember(Name = "tags")] - public Dictionary _TagDictionary { get; set; } + public Dictionary TagDictionary { get; set; } /// /// Gets or sets the _ image dictionary. @@ -191,7 +191,7 @@ namespace PocketSharp.Models /// The _ image dictionary. /// [DataMember(Name = "images")] - public Dictionary _ImageDictionary { get; set; } + public Dictionary ImageDictionary { get; set; } /// /// Gets or sets the _ video dictionary. @@ -200,7 +200,7 @@ namespace PocketSharp.Models /// The _ video dictionary. /// [DataMember(Name = "videos")] - public Dictionary _VideoDictionary { get; set; } + public Dictionary VideoDictionary { get; set; } /// /// Gets or sets the _ author dictionary. @@ -209,7 +209,7 @@ namespace PocketSharp.Models /// The _ author dictionary. /// [DataMember(Name = "authors")] - public Dictionary _AuthorDictionary { get; set; } + public Dictionary AuthorDictionary { get; set; } /// @@ -221,7 +221,7 @@ namespace PocketSharp.Models [IgnoreDataMember] public List Tags { - get { return Utilities.DictionaryToList(_TagDictionary); } + get { return Utilities.DictionaryToList(TagDictionary); } } /// @@ -233,7 +233,7 @@ namespace PocketSharp.Models [IgnoreDataMember] public List Images { - get { return Utilities.DictionaryToList(_ImageDictionary); } + get { return Utilities.DictionaryToList(ImageDictionary); } } /// @@ -257,7 +257,7 @@ namespace PocketSharp.Models [IgnoreDataMember] public List Videos { - get { return Utilities.DictionaryToList(_VideoDictionary); } + get { return Utilities.DictionaryToList(VideoDictionary); } } /// @@ -269,7 +269,7 @@ namespace PocketSharp.Models [IgnoreDataMember] public List Authors { - get { return Utilities.DictionaryToList(_AuthorDictionary); } + get { return Utilities.DictionaryToList(AuthorDictionary); } } } } diff --git a/PocketSharp/Models/Authentification/AccessCode.cs b/PocketSharp/Models/Response/AccessCode.cs similarity index 92% rename from PocketSharp/Models/Authentification/AccessCode.cs rename to PocketSharp/Models/Response/AccessCode.cs index c574518..874a625 100644 --- a/PocketSharp/Models/Authentification/AccessCode.cs +++ b/PocketSharp/Models/Response/AccessCode.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace PocketSharp.Models.Authentification +namespace PocketSharp.Models { /// /// Access Code diff --git a/PocketSharp/Models/Authentification/RequestCode.cs b/PocketSharp/Models/Response/RequestCode.cs similarity index 91% rename from PocketSharp/Models/Authentification/RequestCode.cs rename to PocketSharp/Models/Response/RequestCode.cs index cad4000..5a4d59e 100644 --- a/PocketSharp/Models/Authentification/RequestCode.cs +++ b/PocketSharp/Models/Response/RequestCode.cs @@ -1,6 +1,6 @@ using System.Runtime.Serialization; -namespace PocketSharp.Models.Authentification +namespace PocketSharp.Models { /// /// Request Code diff --git a/PocketSharp/Models/Response/Retrieve.cs b/PocketSharp/Models/Response/Retrieve.cs index e0eac2b..97530db 100644 --- a/PocketSharp/Models/Response/Retrieve.cs +++ b/PocketSharp/Models/Response/Retrieve.cs @@ -34,7 +34,7 @@ namespace PocketSharp.Models /// The _ item dictionary. /// [DataMember(Name = "list")] - public Dictionary _ItemDictionary { get; set; } + public Dictionary ItemDictionary { get; set; } /// /// Gets the items. @@ -45,7 +45,7 @@ namespace PocketSharp.Models [IgnoreDataMember] public List Items { - get { return Utilities.DictionaryToList(_ItemDictionary); } + get { return Utilities.DictionaryToList(ItemDictionary); } } } } diff --git a/PocketSharp/PocketSharp.csproj b/PocketSharp/PocketSharp.csproj index fd5834f..017307a 100644 --- a/PocketSharp/PocketSharp.csproj +++ b/PocketSharp/PocketSharp.csproj @@ -56,8 +56,8 @@ - - + +