diff --git a/PocketSharp.Console/PocketSharp.Console.csproj b/PocketSharp.Console/PocketSharp.Console.csproj new file mode 100644 index 0000000..12482b5 --- /dev/null +++ b/PocketSharp.Console/PocketSharp.Console.csproj @@ -0,0 +1,61 @@ + + + + + Debug + AnyCPU + {81B7D587-A189-4785-BDFE-CA8A9ABA0760} + Exe + Properties + PocketSharp.Console + PocketSharp.Console + v4.0 + 512 + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + + + + + + + + + + + + + + + {1a291041-add8-467c-a6e4-0aca26328cdf} + PocketSharp + + + + + \ No newline at end of file diff --git a/PocketSharp.Console/Program.cs b/PocketSharp.Console/Program.cs new file mode 100644 index 0000000..37b0a40 --- /dev/null +++ b/PocketSharp.Console/Program.cs @@ -0,0 +1,19 @@ +using System; + +namespace PocketSharp.Console +{ + class Program + { + static void Main(string[] args) + { + System.Console.WriteLine("PocketClient internal usage tests"); + System.Console.WriteLine("---------------------------------"); + + // this apiKey is just for demonstration purposes + // please create your own application and retrieve it's key. It's a 1-step process ;-) + PocketClient client = new PocketClient(); + + System.Console.ReadKey(); + } + } +} diff --git a/PocketSharp.Console/Properties/AssemblyInfo.cs b/PocketSharp.Console/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..c60fc92 --- /dev/null +++ b/PocketSharp.Console/Properties/AssemblyInfo.cs @@ -0,0 +1,36 @@ +using System.Reflection; +using System.Runtime.CompilerServices; +using System.Runtime.InteropServices; + +// General Information about an assembly is controlled through the following +// set of attributes. Change these attribute values to modify the information +// associated with an assembly. +[assembly: AssemblyTitle("PocketSharp.Console")] +[assembly: AssemblyDescription("")] +[assembly: AssemblyConfiguration("")] +[assembly: AssemblyCompany("")] +[assembly: AssemblyProduct("PocketSharp.Console")] +[assembly: AssemblyCopyright("Copyright © 2013")] +[assembly: AssemblyTrademark("")] +[assembly: AssemblyCulture("")] + +// Setting ComVisible to false makes the types in this assembly not visible +// to COM components. If you need to access a type in this assembly from +// COM, set the ComVisible attribute to true on that type. +[assembly: ComVisible(false)] + +// The following GUID is for the ID of the typelib if this project is exposed to COM +[assembly: Guid("886d7edf-4926-481f-900d-87dd63baef21")] + +// Version information for an assembly consists of the following four values: +// +// Major Version +// Minor Version +// Build Number +// Revision +// +// You can specify all the values or you can default the Build and Revision Numbers +// by using the '*' as shown below: +// [assembly: AssemblyVersion("1.0.*")] +[assembly: AssemblyVersion("1.0.0.0")] +[assembly: AssemblyFileVersion("1.0.0.0")] diff --git a/PocketSharp.sln b/PocketSharp.sln index ed26f7a..1c89a84 100644 --- a/PocketSharp.sln +++ b/PocketSharp.sln @@ -3,6 +3,8 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2012 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PocketSharp", "PocketSharp\PocketSharp.csproj", "{1A291041-ADD8-467C-A6E4-0ACA26328CDF}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PocketSharp.Console", "PocketSharp.Console\PocketSharp.Console.csproj", "{81B7D587-A189-4785-BDFE-CA8A9ABA0760}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -13,6 +15,10 @@ Global {1A291041-ADD8-467C-A6E4-0ACA26328CDF}.Debug|Any CPU.Build.0 = Debug|Any CPU {1A291041-ADD8-467C-A6E4-0ACA26328CDF}.Release|Any CPU.ActiveCfg = Release|Any CPU {1A291041-ADD8-467C-A6E4-0ACA26328CDF}.Release|Any CPU.Build.0 = Release|Any CPU + {81B7D587-A189-4785-BDFE-CA8A9ABA0760}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {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 EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/PocketSharp/APIException.cs b/PocketSharp/APIException.cs index b1f4bc5..68e0f80 100644 --- a/PocketSharp/APIException.cs +++ b/PocketSharp/APIException.cs @@ -3,26 +3,23 @@ using System.Runtime.Serialization; namespace PocketSharp { - class APIException + [Serializable] + public class APIException : Exception { - [Serializable] - public class APIException : Exception - { - /// - /// necessary constructors for the exception - /// including inner exceptions and serialization - /// - public APIException() - : base() { } + /// + /// necessary constructors for the exception + /// including inner exceptions and serialization + /// + public APIException() + : base() { } - public APIException(string message) - : base(message) { } + public APIException(string message) + : base(message) { } - public APIException(string message, Exception innerException) - : base(message, innerException) { } + public APIException(string message, Exception innerException) + : base(message, innerException) { } - protected APIException(SerializationInfo info, StreamingContext context) - : base(info, context) { } - } + protected APIException(SerializationInfo info, StreamingContext context) + : base(info, context) { } } } diff --git a/PocketSharp/PocketClient.cs b/PocketSharp/PocketClient.cs new file mode 100644 index 0000000..96773ba --- /dev/null +++ b/PocketSharp/PocketClient.cs @@ -0,0 +1,11 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; + +namespace PocketSharp +{ + public class PocketClient + { + } +} diff --git a/PocketSharp/PocketSharp.csproj b/PocketSharp/PocketSharp.csproj index 8cc2c08..9c1c016 100644 --- a/PocketSharp/PocketSharp.csproj +++ b/PocketSharp/PocketSharp.csproj @@ -30,6 +30,12 @@ 4 + + ..\packages\RestSharp.104.1\lib\net4\RestSharp.dll + + + ..\packages\ServiceStack.Text.3.9.49\lib\net35\ServiceStack.Text.dll + @@ -39,9 +45,17 @@ - + + + + + + + + +