diff --git a/.gitignore b/.gitignore index 77123d7e..b62c6bd2 100644 --- a/.gitignore +++ b/.gitignore @@ -209,3 +209,5 @@ FakesAssemblies/ # Visual Studio 6 workspace options file *.opt /src/ZendeskApi_v2_Package/lib +/docs/_site +/docs/Gemfile.lock diff --git a/appveyor.yml b/appveyor.yml index 9c0bf747..853a8f3e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -3,11 +3,47 @@ skip_branch_with_pr: true # Maximum number of concurrent jobs for the project max_jobs: 1 +image: Visual Studio 2017 Preview +pull_requests: + do_not_increment_build_number: true +configuration: Release +platform: Any CPU +nuget: + disable_publish_on_pr: true +# scripts that are called at very beginning, before repo cloning +init: + - git config --global core.autocrlf input +before_build: + - dotnet restore .\src\ZendeskApi_v2.sln +build: + project: \src\ZendeskApi_v2.sln + verbosity: detailed +test: + assemblies: '.\test\**\bin\**\*test.dll' +artifacts: +- path: src\ZendeskApi_v2\bin\Release\ZendeskApi_v2.*.nupkg + name: Package +deploy: +- provider: Environment + name: Public Nuget + on: + branch: master + APPVEYOR_REPO_TAG: true +- provider: Environment + name: PreRelease Nuget Feed + on: + branch: master + APPVEYOR_REPO_TAG: false +notifications: +- provider: GitHubPullRequest + on_build_success: true + on_build_failure: true + on_build_status_changed: false install: - ps: >- - choco install gitversion.portable --no-progress -y + choco install gitversion.portable --pre --no-progress -y $output = gitversion @@ -36,51 +72,4 @@ install: { $env:Is_Prerelease = 'false' } - - Write-Host "Is the build Prerelease: " $env:Is_Prerelease -pull_requests: - do_not_increment_build_number: true -image: Visual Studio 2017 Preview -configuration: Release -platform: Any CPU -assembly_info: - patch: true - file: '**\AssemblyInfo.*' - assembly_version: $(APPVEYOR_PATCHING_VERSION) - assembly_file_version: $(APPVEYOR_PATCHING_VERSION) - assembly_informational_version: $(APPVEYOR_PATCHING_VERSION) -nuget: - disable_publish_on_pr: true -before_build: -- ps: >- - - cd C:\projects\zendeskapi-v2\src - - nuget.exe restore -build: - project: C:\projects\zendeskapi-v2\src\ZendeskApi_v2_vs2013.sln - verbosity: minimal -#test: on -#test_script: -#- ps: nunit3-console C:\projects\zendeskapi-v2\src\Tests\bin\Release\Tests.dll --result=myresults.xml;format=AppVeyor --framework:net-4.5 -test: - assemblies: '**\*tests.dll' -artifacts: -- path: '\src\ZendeskApi_v2_Package\*.nupkg' - name: Package -deploy: -- provider: Environment - name: Public Nuget - on: - branch: master - Is_Prerelease: false -- provider: Environment - name: PreRelease Nuget Feed - on: - branch: master - Is_Prerelease: true -notifications: -- provider: GitHubPullRequest - on_build_success: true - on_build_failure: true - on_build_status_changed: false \ No newline at end of file + Write-Host "Is the build Prerelease: " $env:Is_Prerelease \ No newline at end of file diff --git a/docs/Gemfile b/docs/Gemfile new file mode 100644 index 00000000..f94f65e0 --- /dev/null +++ b/docs/Gemfile @@ -0,0 +1,3 @@ +source "https://rubygems.org" + +gem 'github-pages', group: :jekyll_plugins \ No newline at end of file diff --git a/docs/favicon.ico b/docs/favicon.ico new file mode 100644 index 00000000..73b55f8e Binary files /dev/null and b/docs/favicon.ico differ diff --git a/src/.nuget/NuGet.Config b/src/.nuget/NuGet.Config index 67f8ea04..3f0e0034 100644 --- a/src/.nuget/NuGet.Config +++ b/src/.nuget/NuGet.Config @@ -1,6 +1,6 @@  - - - + + + \ No newline at end of file diff --git a/src/.nuget/NuGet.exe b/src/.nuget/NuGet.exe deleted file mode 100644 index 463f8e13..00000000 Binary files a/src/.nuget/NuGet.exe and /dev/null differ diff --git a/src/.nuget/NuGet.targets b/src/.nuget/NuGet.targets deleted file mode 100644 index 4ada616b..00000000 --- a/src/.nuget/NuGet.targets +++ /dev/null @@ -1,150 +0,0 @@ - - - - $(MSBuildProjectDirectory)\..\ - - - false - - - false - - - true - - - false - - - - - - - - - - $([System.IO.Path]::Combine($(SolutionDir), ".nuget")) - $([System.IO.Path]::Combine($(ProjectDir), "packages.config")) - - - - - $(SolutionDir).nuget - packages.config - - - - - $(NuGetToolsPath)\nuget.exe - @(PackageSource) - - "$(NuGetExePath)" - mono --runtime=v4.0.30319 $(NuGetExePath) - - $(TargetDir.Trim('\\')) - - -RequireConsent - - $(NuGetCommand) install "$(PackagesConfig)" -source "$(PackageSources)" $(RequireConsentSwitch) -solutionDir "$(SolutionDir) " - $(NuGetCommand) pack "$(ProjectPath)" -p Configuration=$(Configuration) -o "$(PackageOutputDir)" -symbols - - - - RestorePackages; - $(ResolveReferencesDependsOn); - - - - - $(BuildDependsOn); - BuildPackage; - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Tests/Properties/AssemblyInfo.cs b/src/Tests/Properties/AssemblyInfo.cs deleted file mode 100644 index c6ac9970..00000000 --- a/src/Tests/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,39 +0,0 @@ -using System.Reflection; -using System.Runtime.CompilerServices; -using System.Runtime.InteropServices; -using NUnit.Framework; - -// 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("Tests")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("Tests")] -[assembly: AssemblyCopyright("Copyright © 2012")] -[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("e38f55cb-6b78-4495-8efb-e6ba3d64a4db")] - -// 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")] -[assembly: Parallelizable(ParallelScope.Fixtures)] -[assembly: LevelOfParallelism(5)] \ No newline at end of file diff --git a/src/Tests/Tests.csproj b/src/Tests/Tests.csproj deleted file mode 100644 index 3fbf49f5..00000000 --- a/src/Tests/Tests.csproj +++ /dev/null @@ -1,142 +0,0 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {A80DB5E8-5D98-4256-9513-34E13A82D5EE} - Library - Properties - Tests - Tests - v4.5 - 512 - ..\ - true - - - - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 0 - false - true - - - pdbonly - true - bin\Release\ - TRACE;SYNC ASYNC - prompt - 0 - false - true - - - true - bin\Net45\ - DEBUG;TRACE - full - AnyCPU - bin\Debug\Tests.dll.CodeAnalysisLog.xml - true - GlobalSuppressions.cs - prompt - MinimumRecommendedRules.ruleset - ;F:\Programs\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets - true - ;F:\Programs\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules - true - false - true - 0 - - - - ..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll - - - ..\packages\NUnit.3.7.1\lib\net45\nunit.framework.dll - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {D17BCC22-9561-4FC4-9C52-975808641ECE} - ZendeskApi_v2 - - - - - Always - - - Always - - - - - - - - - - - - \ No newline at end of file diff --git a/src/Tests/packages.config b/src/Tests/packages.config deleted file mode 100644 index bda14fc0..00000000 --- a/src/Tests/packages.config +++ /dev/null @@ -1,6 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/ZendeskApi_v2.Example/App.config b/src/ZendeskApi_v2.Example/App.config deleted file mode 100644 index 302a320b..00000000 --- a/src/ZendeskApi_v2.Example/App.config +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/ZendeskApi_v2.Example/Program.cs b/src/ZendeskApi_v2.Example/Program.cs index fc02d500..5b9562bb 100644 --- a/src/ZendeskApi_v2.Example/Program.cs +++ b/src/ZendeskApi_v2.Example/Program.cs @@ -20,8 +20,8 @@ static async Task MainAsync(string email) string userEmailToSearchFor = "eneif123@yahoo.com"; - string userName = "eric.neifert@gmail.com"; // the user that will be logging in the API aka the call center staff - string userPassword = "pa55word"; + string userName = "csharpzendeskapi1234@gmail.com"; // the user that will be logging in the API aka the call center staff + string userPassword = "&H3n!0q^3OjDLdm"; string companySubDomain = "csharpapi"; // sub-domain for the account with Zendesk int pageSize = 5; var api = new ZendeskApi(companySubDomain, userName, userPassword); diff --git a/src/ZendeskApi_v2.Example/Properties/AssemblyInfo.cs b/src/ZendeskApi_v2.Example/Properties/AssemblyInfo.cs deleted file mode 100644 index e8121571..00000000 --- a/src/ZendeskApi_v2.Example/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -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("ZendeskApi_v2.Example")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("ZendeskApi_v2.Example")] -[assembly: AssemblyCopyright("Copyright © 2016")] -[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("0a9fe800-92f6-4979-8f0c-6129ecf94952")] - -// 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/src/ZendeskApi_v2.Example/ZendeskApi_v2.Example.csproj b/src/ZendeskApi_v2.Example/ZendeskApi_v2.Example.csproj index 7e86e78e..5dcb190d 100644 --- a/src/ZendeskApi_v2.Example/ZendeskApi_v2.Example.csproj +++ b/src/ZendeskApi_v2.Example/ZendeskApi_v2.Example.csproj @@ -1,67 +1,12 @@ - - - + + - Debug - AnyCPU - {0A9FE800-92F6-4979-8F0C-6129ECF94952} Exe - Properties - ZendeskApi_v2.Example - ZendeskApi_v2.Example - v4.5.2 - 512 - true + NET45 - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - - ..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll - - - - - - - - - - - ..\packages\ZendeskApi_v2.3.6.1\lib\net45\ZendeskApi_v2.dll - - - - - - + - - + - - - \ No newline at end of file + + diff --git a/src/ZendeskApi_v2.Example/packages.config b/src/ZendeskApi_v2.Example/packages.config deleted file mode 100644 index 7cd1eb07..00000000 --- a/src/ZendeskApi_v2.Example/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/ZendeskApi_v2.sln b/src/ZendeskApi_v2.sln new file mode 100644 index 00000000..37d8e62a --- /dev/null +++ b/src/ZendeskApi_v2.sln @@ -0,0 +1,37 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio 15 +VisualStudioVersion = 15.0.26724.1 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ZendeskApi_v2", "ZendeskApi_v2\ZendeskApi_v2.csproj", "{5E961B79-3175-468E-BFDA-41FE9842D78A}" +EndProject +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ZendeskApi_v2.Test", "..\test\ZendeskApi_v2.Test\ZendeskApi_v2.Test.csproj", "{BE7FB5E8-2B78-435E-B781-F72D4D650902}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZendeskApi_v2.Example", "ZendeskApi_v2.Example\ZendeskApi_v2.Example.csproj", "{C1A3D493-49E3-4DEF-ABA9-34EF2153C08B}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {5E961B79-3175-468E-BFDA-41FE9842D78A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {5E961B79-3175-468E-BFDA-41FE9842D78A}.Debug|Any CPU.Build.0 = Debug|Any CPU + {5E961B79-3175-468E-BFDA-41FE9842D78A}.Release|Any CPU.ActiveCfg = Release|Any CPU + {5E961B79-3175-468E-BFDA-41FE9842D78A}.Release|Any CPU.Build.0 = Release|Any CPU + {BE7FB5E8-2B78-435E-B781-F72D4D650902}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BE7FB5E8-2B78-435E-B781-F72D4D650902}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BE7FB5E8-2B78-435E-B781-F72D4D650902}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BE7FB5E8-2B78-435E-B781-F72D4D650902}.Release|Any CPU.Build.0 = Release|Any CPU + {C1A3D493-49E3-4DEF-ABA9-34EF2153C08B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {C1A3D493-49E3-4DEF-ABA9-34EF2153C08B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {C1A3D493-49E3-4DEF-ABA9-34EF2153C08B}.Release|Any CPU.ActiveCfg = Release|Any CPU + {C1A3D493-49E3-4DEF-ABA9-34EF2153C08B}.Release|Any CPU.Build.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6C2E72B7-18C3-4DCD-9032-0C52E0B3AA5A} + EndGlobalSection +EndGlobal diff --git a/src/ZendeskApi_v2_Mobile/app.config b/src/ZendeskApi_v2/App.config similarity index 74% rename from src/ZendeskApi_v2_Mobile/app.config rename to src/ZendeskApi_v2/App.config index 4b764eac..8305dbeb 100644 --- a/src/ZendeskApi_v2_Mobile/app.config +++ b/src/ZendeskApi_v2/App.config @@ -1,11 +1,7 @@ - + - - - - @@ -14,6 +10,10 @@ + + + + \ No newline at end of file diff --git a/src/ZendeskApi_v2_Net35/Extensions/EnumExtensions.cs b/src/ZendeskApi_v2/Extensions/EnumExtensions.cs similarity index 69% rename from src/ZendeskApi_v2_Net35/Extensions/EnumExtensions.cs rename to src/ZendeskApi_v2/Extensions/EnumExtensions.cs index e92d3345..d30fc33f 100644 --- a/src/ZendeskApi_v2_Net35/Extensions/EnumExtensions.cs +++ b/src/ZendeskApi_v2/Extensions/EnumExtensions.cs @@ -1,12 +1,9 @@ using System; -using System.Collections.Generic; -using System.Linq; -using System.Text; namespace ZendeskApi_v2.Extensions - { - public static class EnumExt +#if NET35 + public static class EnumExtensions { /// /// Check to see if a flags enumeration has a specific flag set. @@ -17,23 +14,25 @@ public static class EnumExt public static bool HasFlag(this Enum variable, Enum value) { if (variable == null) + { return false; + } if (value == null) + { throw new ArgumentNullException("value"); + } // Not as good as the .NET 4 version of this function, but should be good enough if (!Enum.IsDefined(variable.GetType(), value)) { - throw new ArgumentException(string.Format( - "Enumeration type mismatch. The flag is of type '{0}', was expecting '{1}'.", - value.GetType(), variable.GetType())); + throw new ArgumentException($"Enumeration type mismatch. The flag is of type '{value.GetType()}', was expecting '{variable.GetType()}'."); } - ulong num = Convert.ToUInt64(value); + var num = Convert.ToUInt64(value); return ((Convert.ToUInt64(variable) & num) == num); } - } +#endif } diff --git a/src/ZendeskApi_v2/Models/Targets/GroupTicketExportResponse.cs b/src/ZendeskApi_v2/Models/Targets/GroupTicketExportResponse.cs deleted file mode 100644 index 65c7f434..00000000 --- a/src/ZendeskApi_v2/Models/Targets/GroupTicketExportResponse.cs +++ /dev/null @@ -1,46 +0,0 @@ -using System.Collections.Generic; -using Newtonsoft.Json; -using ZendeskApi_v2.Models.Groups; -using ZendeskApi_v2.Models.Organizations; -using ZendeskApi_v2.Models.Shared; -using ZendeskApi_v2.Models.SharingAgreements; -using ZendeskApi_v2.Models.Users; - -namespace ZendeskApi_v2.Models.Tickets -{ - public class GroupTicketExportResponse - { - [JsonProperty("count")] - public int Count { get; set; } - - [JsonProperty("end_time")] - public long EndTime { get; set; } - - [JsonProperty("groups")] - public IList Groups { get; set; } - - [JsonProperty("last_audits")] - public IList LastAudits { get; set; } - - [JsonProperty("metric_sets")] - public IList MetricSets { get; set; } - - [JsonProperty("next_page")] - public string NextPage { get; set; } - - [JsonProperty("organizations")] - public IList Organizations { get; set; } - - [JsonProperty("sharing_agreements")] - public IList SharingAgreements { get; set; } - - [JsonProperty("ticket_forms")] - public IList TicketForms { get; set; } - - [JsonProperty("tickets")] - public IList Tickets { get; set; } - - [JsonProperty("users")] - public IList Users { get; set; } - } -} \ No newline at end of file diff --git a/src/ZendeskApi_v2/Properties/AssemblyInfo.cs b/src/ZendeskApi_v2/Properties/AssemblyInfo.cs deleted file mode 100644 index 7ef8b07d..00000000 --- a/src/ZendeskApi_v2/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -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("ZendeskApi_v2")] -[assembly: AssemblyDescription("A full c# wrapper for Zendesk's api v2")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("Eric Neifert")] -[assembly: AssemblyProduct("ZendeskApi_v2")] -[assembly: AssemblyCopyright("Copyright © 2012")] -[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("353b1163-f002-4a2a-9af8-56da7f827082")] - -// 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("3.0.3.0")] -[assembly: AssemblyFileVersion("3.0.3.0")] diff --git a/src/ZendeskApi_v2/Serialization/BaseJsonConverter.cs b/src/ZendeskApi_v2/Serialization/BaseJsonConverter.cs index 233fcf79..7cf0e226 100644 --- a/src/ZendeskApi_v2/Serialization/BaseJsonConverter.cs +++ b/src/ZendeskApi_v2/Serialization/BaseJsonConverter.cs @@ -1,6 +1,7 @@ using Newtonsoft.Json; using Newtonsoft.Json.Linq; using System; +using System.Reflection; namespace ZendeskApi_v2.Serialization { @@ -15,12 +16,13 @@ public abstract class BaseJsonConverter : JsonConverter public override bool CanConvert(Type objectType) { return typeof(T).IsAssignableFrom(objectType); + } public override object ReadJson(JsonReader reader, Type objectType, object existingValue, JsonSerializer serializer) { var jsonObject = JObject.Load(reader); - var target = Create(objectType, jsonObject); + var target = Create(objectType, jsonObject); serializer.Populate(jsonObject.CreateReader(), target); return target; } diff --git a/src/ZendeskApi_v2/Serialization/UnixEpochTimeConverter.cs b/src/ZendeskApi_v2/Serialization/UnixEpochTimeConverter.cs index de58196e..e6737856 100644 --- a/src/ZendeskApi_v2/Serialization/UnixEpochTimeConverter.cs +++ b/src/ZendeskApi_v2/Serialization/UnixEpochTimeConverter.cs @@ -4,6 +4,8 @@ using System.Text; using Newtonsoft.Json; using Newtonsoft.Json.Converters; +using System.Reflection; + namespace ZendeskApi_v2.Serialization { public class UnixEpochTimeConverter : DateTimeConverterBase diff --git a/src/ZendeskApi_v2/ZendeskApi_v2.csproj b/src/ZendeskApi_v2/ZendeskApi_v2.csproj index c42be3ac..554d38db 100644 --- a/src/ZendeskApi_v2/ZendeskApi_v2.csproj +++ b/src/ZendeskApi_v2/ZendeskApi_v2.csproj @@ -1,366 +1,76 @@ - - + + + - Debug - AnyCPU - 8.0.30703 - 2.0 - {D17BCC22-9561-4FC4-9C52-975808641ECE} - Library - Properties - ZendeskApi_v2 - ZendeskApi_v2 - v4.5 - 512 - ..\ - true - NotNet35 - Net35 - + ZendeskApi_v2 + ZendeskApi_v2 + Elizabeth Schneider + en-US + Copyright (c) Elizabeth Schneider 2012-$([System.DateTime]::Now.ToString(yyyy)) + zendesk api + A full c# wrapper for Zendesk's api v2. + https://github.com/mozts2005/ZendeskApi_v2 + https://github.com/mozts2005/ZendeskApi_v2/blob/master/LICENSE.md + https://raw.githubusercontent.com/mozts2005/ZendeskApi_v2/master/tools/icon/lotus.png + https://github.com/mozts2005/ZendeskApi_v2/releases + false + false + false + false + git + https://github.com/mozts2005/ZendeskApi_v2.git + false + false + true - - true - full - false - bin\Debug\ - TRACE;DEBUG;ASYNC;SYNC - prompt - 4 - false + + + true + net40;net35;net45;portable40-net40+sl5+win8+wpa81+wp8 + + + + $(DefineConstants);ASYNC;SYNC + + + + $(DefineConstants);ASYNC;SYNC - - pdbonly - true - bin\Release\ - TRACE;SYNC ASYNC - prompt - 4 - false + + + $(DefineConstants);SYNC + C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v3.5\Profile\Client + + + + + + + + - - ..\packages\Newtonsoft.Json.10.0.3\lib\net45\Newtonsoft.Json.dll - + + + + + + .NETPortable + v4.0 + Profile328 + $(DefineConstants);portable40;ASYNC + + + + - - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + - - - - - pushd "$(SolutionDir)" -if not exist "ZendeskApi_v2_Package\lib" mkdir "ZendeskApi_v2_Package\lib" -if not exist "ZendeskApi_v2_Package\lib\net45" mkdir "ZendeskApi_v2_Package\lib\net45" -copy "$(ProjectName)\$(OutDir)\$(TargetFileName)" "ZendeskApi_v2_Package\lib\net45\$(TargetFileName)" /Y -popd - - - - - This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - \ No newline at end of file + diff --git a/src/ZendeskApi_v2/packages.config b/src/ZendeskApi_v2/packages.config deleted file mode 100644 index 50745578..00000000 --- a/src/ZendeskApi_v2/packages.config +++ /dev/null @@ -1,5 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/ZendeskApi_v2_Mobile/Properties/AssemblyInfo.cs b/src/ZendeskApi_v2_Mobile/Properties/AssemblyInfo.cs deleted file mode 100644 index 34cb5506..00000000 --- a/src/ZendeskApi_v2_Mobile/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System.Resources; -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("ZendeskApi_v2_Mobile")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("ZendeskApi_v2_Mobile")] -[assembly: AssemblyCopyright("Copyright © 2012")] -[assembly: AssemblyTrademark("")] -[assembly: AssemblyCulture("")] -[assembly: NeutralResourcesLanguage("en")] - -// 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/src/ZendeskApi_v2_Mobile/ZendeskApi_v2_Mobile.csproj b/src/ZendeskApi_v2_Mobile/ZendeskApi_v2_Mobile.csproj deleted file mode 100644 index c6f991f5..00000000 --- a/src/ZendeskApi_v2_Mobile/ZendeskApi_v2_Mobile.csproj +++ /dev/null @@ -1,963 +0,0 @@ - - - - - 10.0 - Debug - AnyCPU - {E7EABB17-E3EE-4509-B1FE-8AB87BA3C76E} - Library - Properties - ZendeskApi_v2_Mobile - ZendeskApi_v2_Mobile - v4.0 - Profile344 - 512 - {786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - ..\ - true - - - - - 4.0 - - - - - true - full - false - bin\Debug\ - TRACE;DEBUG;ASYNC - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE;ASYNC - prompt - 4 - - - - Core.cs - - - Extensions\RequestExtensions.cs - - - Extensions\StringExtensions.cs - - - HelpCenterApi.cs - - - Models\AccessPolicies\AccessPolicy.cs - - - Models\AccessPolicies\IndividualAccessPolicyResponse.cs - - - Models\AccountsAndActivities\Activity.cs - - - Models\AccountsAndActivities\Actor.cs - - - Models\AccountsAndActivities\Apps.cs - - - Models\AccountsAndActivities\Branding.cs - - - Models\AccountsAndActivities\Chat.cs - - - Models\AccountsAndActivities\GooddataIntegration.cs - - - Models\AccountsAndActivities\GroupActivityResponse.cs - - - Models\AccountsAndActivities\IndividualActivityResponse.cs - - - Models\AccountsAndActivities\Lotus.cs - - - Models\AccountsAndActivities\Screencast.cs - - - Models\AccountsAndActivities\Settings.cs - - - Models\AccountsAndActivities\SettingsResponse.cs - - - Models\AccountsAndActivities\Tickets.cs - - - Models\AccountsAndActivities\Twitter.cs - - - Models\AccountsAndActivities\User.cs - - - Models\AccountsAndActivities\Voice.cs - - - Models\Articles\Article.cs - - - Models\Articles\ArticleSearchResults.cs - - - Models\Articles\GroupArticleResponse.cs - - - Models\Articles\IndividualArticleResponse.cs - - - Models\Articles\Result.cs - - - Models\Brands\Brand.cs - - - Models\Brands\GroupBrandResponse.cs - - - Models\Brands\IndividualBrandResponse.cs - - - Models\Categories\Category.cs - - - Models\Categories\GroupCategoryResponse.cs - - - Models\Categories\IndividualCategoryResponse.cs - - - Models\Constants\AuditTypes.cs - - - Models\Constants\ForumAccessTypes.cs - - - Models\Constants\ForumTypes.cs - - - Models\Constants\TicketFieldTypes.cs - - - Models\Constants\TicketPriorities.cs - - - Models\Constants\TicketStatus.cs - - - Models\Constants\TicketTypes.cs - - - Models\Constants\UserIdentityTypes.cs - - - Models\Constants\UserRoles.cs - - - Models\Constants\ViaTypes.cs - - - Models\CustomRoles\Configuration.cs - - - Models\CustomRoles\CustomRole.cs - - - Models\CustomRoles\CustomRoles.cs - - - Models\Forums\Forum.cs - - - Models\Forums\ForumSubscription.cs - - - Models\Forums\GroupForumResponse.cs - - - Models\Forums\GroupForumSubcriptionResponse.cs - - - Models\Forums\IndividualForumResponse.cs - - - Models\Forums\IndividualForumSubcriptionResponse.cs - - - Models\GroupResponseBase.cs - - - Models\Groups\Group.cs - - - Models\Groups\GroupMembership.cs - - - Models\Groups\IndividualGroupMembershipResponse.cs - - - Models\Groups\IndividualGroupResponse.cs - - - Models\Groups\MultipleGroupMembershipResponse.cs - - - Models\Groups\MultipleGroupResponse.cs - - - Models\HelpCenter\Attachments\ArticleAttachment.cs - - - Models\HelpCenter\Attachments\GroupAttachmentResponse.cs - - - Models\HelpCenter\Categories\Category.cs - - - Models\HelpCenter\Categories\GroupCategoryResponse.cs - - - Models\HelpCenter\Categories\IndividualCategoryResponse.cs - - - Models\HelpCenter\Comments\Comment.cs - - - Models\HelpCenter\Comments\GroupCommentResponse.cs - - - Models\HelpCenter\Comments\IndividualCommentResponse.cs - - - Models\HelpCenter\HelpCenterBase.cs - - - Models\HelpCenter\Post\GroupPostResponse.cs - - - Models\HelpCenter\Post\IndividualPostResponse.cs - - - Models\HelpCenter\Post\Post.cs - - - Models\HelpCenter\Topics\GroupTopicResponse.cs - - - Models\HelpCenter\Topics\IndividualTopicResponse.cs - - - Models\HelpCenter\Topics\Topic.cs - - - Models\HelpCenter\Translations\GroupTranslationResponse.cs - - - Models\HelpCenter\Translations\IndividualTranslationResponse.cs - - - Models\HelpCenter\Translations\Translation.cs - - - Models\HelpCenter\Votes\GroupVoteResponse.cs - - - Models\HelpCenter\Votes\IndividualVoteResponse.cs - - - Models\HelpCenter\Votes\Vote.cs - - - Models\IndividualResponseBase.cs - - - Models\Locales\GroupLocaleResponse.cs - - - Models\Locales\IndividualLocaleResponse.cs - - - Models\Locales\Locale.cs - - - Models\Macros\Action.cs - - - Models\Macros\ApplyMacroResponse.cs - - - Models\Macros\GroupMacroResponse.cs - - - Models\Macros\IndividualMacroResponse.cs - - - Models\Macros\Macro.cs - - - Models\Macros\Restriction.cs - - - Models\Macros\Result.cs - - - Models\Organizations\GroupOrganizationMembershipResponse.cs - - - Models\Organizations\GroupOrganizationResponse.cs - - - Models\Organizations\IndividualOrganizationMembershipResponse.cs - - - Models\Organizations\IndividualOrganizationResponse.cs - - - Models\Organizations\Organization.cs - - - Models\Organizations\OrganizationMembership.cs - - - Models\Requests\GroupCommentResponse.cs - - - Models\Requests\GroupRequestResponse.cs - - - Models\Requests\IndividualCommentResponse.cs - - - Models\Requests\IndividualRequestResponse.cs - - - Models\Requests\Request.cs - - - Models\SatisfactionRatings\GroupSatisfactionResponse.cs - - - Models\SatisfactionRatings\IndividualSatisfactionResponse.cs - - - Models\SatisfactionRatings\SatisfactionRating.cs - - - Models\Schedules\GroupScheduleHolidayResponse.cs - - - Models\Schedules\GroupScheduleResponse.cs - - - Models\Schedules\Holiday.cs - - - Models\Schedules\IndividualScheduleHolidayResponse.cs - - - Models\Schedules\IndividualScheduleResponse.cs - - - Models\Schedules\IndividualScheduleWorkWeekResponse.cs - - - Models\Schedules\Interval.cs - - - Models\Schedules\Schedule.cs - - - Models\Schedules\WorkWeek.cs - - - Models\Search\Result.cs - - - Models\Search\SearchResults.cs - - - Models\Sections\GroupSectionResponse.cs - - - Models\Sections\IndividualSectionResponse.cs - - - Models\Sections\Section.cs - - - Models\Shared\Attachment.cs - - - Models\Shared\Audit.cs - - - Models\Shared\Data.cs - - - Models\Shared\Event.cs - - - Models\Shared\FaceBookPage.cs - - - Models\Shared\GroupAuditResponse.cs - - - Models\Shared\IndividualAuditResponse.cs - - - Models\Shared\JobStatus.cs - - - Models\Shared\JobStatusResponse.cs - - - Models\Shared\MetaData.cs - - - Models\Shared\Result.cs - - - Models\Shared\System.cs - - - Models\Shared\Thumbnail.cs - - - Models\Shared\Upload.cs - - - Models\Shared\Via.cs - - - Models\Shared\ZenFile.cs - - - Models\SharingAgreements\GroupSharingAgreementResponse.cs - - - Models\SharingAgreements\SharingAgreement.cs - - - Models\Tags\GroupTagResult.cs - - - Models\Tags\Tag.cs - - - Models\Tags\TagAutocompleteResponse.cs - - - Models\Targets\BasecampTarget.cs - - - Models\Targets\BaseTarget.cs - - - Models\Targets\CampfireTarget.cs - - - Models\Targets\ClickatellTarget.cs - - - Models\Targets\EmailTarget.cs - - - Models\Targets\FlowdockTarget.cs - - - Models\Targets\GetSatisfactionTarget.cs - - - Models\Targets\GroupTargetResponse.cs - - - Models\Targets\HTTPTarget.cs - - - Models\Targets\IndividualTargetResponse.cs - - - Models\Targets\JiraTarget.cs - - - Models\Targets\PivotalTarget.cs - - - Models\Targets\TwitterTarget.cs - - - Models\Targets\URLTarget.cs - - - Models\Targets\YammerTarget.cs - - - Models\Tickets\BaseTicket.cs - - - Models\Tickets\BulkUpdate.cs - - - Models\Tickets\Comment.cs - - - Models\Tickets\Custom.cs - - - Models\Tickets\CustomField.cs - - - Models\Tickets\Field.cs - - - Models\Tickets\FieldHeaders.cs - - - Models\Tickets\From.cs - - - Models\Tickets\GroupTicketExportResponse.cs - - - Models\Tickets\GroupTicketFieldResponse.cs - - - Models\Tickets\GroupTicketFormResponse.cs - - - Models\Tickets\GroupTicketMetricResponse.cs - - - Models\Tickets\GroupTicketResponse.cs - - - Models\Tickets\IndividualTicketFieldResponse.cs - - - Models\Tickets\IndividualTicketFormResponse.cs - - - Models\Tickets\IndividualTicketMetricResponse.cs - - - Models\Tickets\IndividualTicketResponse.cs - - - Models\Tickets\Options.cs - - - Models\Tickets\Requester.cs - - - Models\Tickets\SatisfactionRating.cs - - - Models\Tickets\Source.cs - - - Models\Tickets\Suspended\Author.cs - - - Models\Tickets\Suspended\From.cs - - - Models\Tickets\Suspended\GroupSuspendedTicketResponse.cs - - - Models\Tickets\Suspended\IndividualSuspendedTicketResponse.cs - - - Models\Tickets\Suspended\Source.cs - - - Models\Tickets\Suspended\SuspendedTicket.cs - - - Models\Tickets\TicketImport.cs - - - Models\Tickets\TicketImportComment.cs - - - Models\Tickets\TimeSpanMetric.cs - - - Models\Tickets\TicketMetric.cs - - - Models\Tickets\Suspended\To.cs - - - Models\Tickets\Suspended\Via.cs - - - Models\Tickets\Ticket.cs - - - Models\Tickets\TicketExportResult.cs - - - Models\Tickets\TicketField.cs - - - Models\Tickets\TicketForm.cs - - - Models\Tickets\To.cs - - - Models\Topics\GroupTopicCommentResponse.cs - - - Models\Topics\GroupTopicResponse.cs - - - Models\Topics\GroupTopicSubscriptionResponse.cs - - - Models\Topics\GroupTopicVoteResponse.cs - - - Models\Topics\IndividualTopicCommentResponse.cs - - - Models\Topics\IndividualTopicResponse.cs - - - Models\Topics\IndividualTopicSubscriptionResponse.cs - - - Models\Topics\IndividualTopicVoteResponse.cs - - - Models\Topics\Topic.cs - - - Models\Topics\TopicComment.cs - - - Models\Topics\TopicSubscription.cs - - - Models\Topics\TopicVote.cs - - - Models\Triggers\Action.cs - - - Models\Triggers\All.cs - - - Models\Triggers\Conditions.cs - - - Models\Triggers\GroupTriggerResponse.cs - - - Models\Triggers\IndividualTriggerResponse.cs - - - Models\Triggers\Trigger.cs - - - Models\Users\GroupUserIdentityResponse.cs - - - Models\Users\GroupUserResponse.cs - - - Models\Users\IndividualUserIdentityResponse.cs - - - Models\Users\IndividualUserRelatedInformationResponse.cs - - - Models\Users\IndividualUserResponse.cs - - - Models\Users\Photo.cs - - - Models\Users\RelatedInformation.cs - - - Models\Users\User.cs - - - Models\Users\UserIdentity.cs - - - Models\Views\All.cs - - - Models\Views\Conditions.cs - - - Models\Views\Executed\Column.cs - - - Models\Views\Executed\CustomField.cs - - - Models\Views\Executed\ExecutedTicket.cs - - - Models\Views\Executed\ExecutedUser.cs - - - Models\Views\Executed\ExecutedViewResponse.cs - - - Models\Views\Executed\Field.cs - - - Models\Views\Executed\LastComment.cs - - - Models\Views\Executed\PreviewViewRequest.cs - - - Models\Views\Executed\Row.cs - - - Models\Views\Executed\View.cs - - - Models\Views\Execution.cs - - - Models\Views\Field.cs - - - Models\Views\GroupViewCountResponse.cs - - - Models\Views\GroupViewResponse.cs - - - Models\Views\IndividualViewCountResponse.cs - - - Models\Views\IndividualViewResponse.cs - - - Models\Views\View.cs - - - Models\Views\ViewCount.cs - - - Models\Voice\AgentActivity.cs - - - Models\Voice\GroupAgentActivityResponse.cs - - - Models\Voice\HistoricalQueueActivity.cs - - - RequestResult.cs - - - Requests\AccountsAndActivity.cs - - - Requests\Attachments.cs - - - Requests\Brands.cs - - - Requests\Categories.cs - - - Requests\CustomAgentRoles.cs - - - Requests\Forums.cs - - - Requests\Groups.cs - - - Requests\HelpCenter\AccessPolicies.cs - - - Requests\HelpCenter\ArticleAttachments.cs - - - Requests\HelpCenter\Articles.cs - - - Requests\HelpCenter\ArticleSortingOptions.cs - - - Requests\HelpCenter\Categories.cs - - - Requests\HelpCenter\Comments.cs - - - Requests\HelpCenter\Posts.cs - - - Requests\HelpCenter\Sections.cs - - - Requests\HelpCenter\Topics.cs - - - Requests\HelpCenter\Translations.cs - - - Requests\HelpCenter\Votes.cs - - - Requests\JobStatuses.cs - - - Requests\Locales.cs - - - Requests\Macros.cs - - - Requests\Organizations.cs - - - Requests\Requests.cs - - - Requests\SatisfactionRatings.cs - - - Requests\Schedules.cs - - - Requests\Search.cs - - - Requests\SharingAgreements.cs - - - Requests\Tags.cs - - - Requests\Targets.cs - - - Requests\Tickets.cs - - - Requests\Topics.cs - - - Requests\Triggers.cs - - - Requests\Users.cs - - - Requests\Views.cs - - - Requests\Voice.cs - - - Serialization\BaseJsonConverter.cs - - - Serialization\TargetJsonConverter.cs - - - Serialization\SingleOrArrayConverter.cs - - - Serialization\UnixEpochTimeConverter.cs - - - Serialization\ZendeskContractResolver.cs - - - ZendeskApi.cs - - - - - - ..\packages\Microsoft.Bcl.Async.1.0.168\lib\portable-net40+sl4+win8+wp71+wpa81\Microsoft.Threading.Tasks.dll - True - - - ..\packages\Microsoft.Bcl.Async.1.0.168\lib\portable-net40+sl4+win8+wp71+wpa81\Microsoft.Threading.Tasks.Extensions.dll - True - - - ..\packages\Newtonsoft.Json.10.0.3\lib\portable-net40+sl5+win8+wp8+wpa81\Newtonsoft.Json.dll - - - - - ..\packages\Microsoft.Bcl.1.1.10\lib\portable-net40+sl5+win8+wp8+wpa81\System.IO.dll - True - - - - ..\packages\Microsoft.Bcl.1.1.10\lib\portable-net40+sl5+win8+wp8+wpa81\System.Runtime.dll - True - - - ..\packages\Microsoft.Bcl.1.1.10\lib\portable-net40+sl5+win8+wp8+wpa81\System.Threading.Tasks.dll - True - - - - - - - - - - - pushd "$(SolutionDir)" - -if not exist "ZendeskApi_v2_Package\lib\portable-net45+sl4+wp71+win8" mkdir "ZendeskApi_v2_Package\lib\portable-net45+sl4+wp71+win8" -copy "$(ProjectName)\$(OutDir)\$(TargetFileName)" "ZendeskApi_v2_Package\lib\portable-net45+sl4+wp71+win8\$(TargetFileName)" /Y - -if not exist "ZendeskApi_v2_Package\lib\portable-net45+sl4+wp75+win8" mkdir "ZendeskApi_v2_Package\lib\portable-net45+sl4+wp75+win8" -copy "$(ProjectName)\$(OutDir)\$(TargetFileName)" "ZendeskApi_v2_Package\lib\portable-net45+sl4+wp75+win8\$(TargetFileName)" /Y - -popd - - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - - \ No newline at end of file diff --git a/src/ZendeskApi_v2_Mobile/packages.config b/src/ZendeskApi_v2_Mobile/packages.config deleted file mode 100644 index 55a819e5..00000000 --- a/src/ZendeskApi_v2_Mobile/packages.config +++ /dev/null @@ -1,7 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/ZendeskApi_v2_Net35/Properties/AssemblyInfo.cs b/src/ZendeskApi_v2_Net35/Properties/AssemblyInfo.cs deleted file mode 100644 index c072babb..00000000 --- a/src/ZendeskApi_v2_Net35/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,36 +0,0 @@ -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("ZendeskApi_v2_Net35")] -[assembly: AssemblyDescription("")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("ZendeskApi_v2_Net35")] -[assembly: AssemblyCopyright("Copyright © 2012")] -[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("4f99037f-7ee7-4a5c-9b72-0e465263df19")] - -// 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/src/ZendeskApi_v2_Net35/ZendeskApi_v2_Net35.csproj b/src/ZendeskApi_v2_Net35/ZendeskApi_v2_Net35.csproj deleted file mode 100644 index 57f6e697..00000000 --- a/src/ZendeskApi_v2_Net35/ZendeskApi_v2_Net35.csproj +++ /dev/null @@ -1,930 +0,0 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {C1D27B49-4B9D-467D-98E7-3695F35EA400} - Library - Properties - ZendeskApi_v2_Net35 - ZendeskApi_v2_Net35 - v3.5 - 512 - - ..\ - true - - - true - full - false - bin\Debug\ - TRACE;DEBUG;SYNC - prompt - 4 - - - pdbonly - true - bin\Release\ - TRACE;SYNC - prompt - 4 - - - - ..\packages\Newtonsoft.Json.10.0.3\lib\net35\Newtonsoft.Json.dll - - - - - - - - - - - Core.cs - - - Extensions\RequestExtensions.cs - - - Extensions\StringExtensions.cs - - - HelpCenterApi.cs - - - Models\AccessPolicies\AccessPolicy.cs - - - Models\AccessPolicies\IndividualAccessPolicyResponse.cs - - - Models\AccountsAndActivities\Activity.cs - - - Models\AccountsAndActivities\Actor.cs - - - Models\AccountsAndActivities\Apps.cs - - - Models\AccountsAndActivities\Branding.cs - - - Models\AccountsAndActivities\Chat.cs - - - Models\AccountsAndActivities\GooddataIntegration.cs - - - Models\AccountsAndActivities\GroupActivityResponse.cs - - - Models\AccountsAndActivities\IndividualActivityResponse.cs - - - Models\AccountsAndActivities\Lotus.cs - - - Models\AccountsAndActivities\Screencast.cs - - - Models\AccountsAndActivities\Settings.cs - - - Models\AccountsAndActivities\SettingsResponse.cs - - - Models\AccountsAndActivities\Tickets.cs - - - Models\AccountsAndActivities\Twitter.cs - - - Models\AccountsAndActivities\User.cs - - - Models\AccountsAndActivities\Voice.cs - - - Models\Articles\Article.cs - - - Models\Articles\ArticleSearchResults.cs - - - Models\Articles\GroupArticleResponse.cs - - - Models\Articles\IndividualArticleResponse.cs - - - Models\Articles\Result.cs - - - Models\Brands\Brand.cs - - - Models\Brands\GroupBrandResponse.cs - - - Models\Brands\IndividualBrandResponse.cs - - - Models\Categories\Category.cs - - - Models\Categories\GroupCategoryResponse.cs - - - Models\Categories\IndividualCategoryResponse.cs - - - Models\Constants\AuditTypes.cs - - - Models\Constants\ForumAccessTypes.cs - - - Models\Constants\ForumTypes.cs - - - Models\Constants\TicketFieldTypes.cs - - - Models\Constants\TicketPriorities.cs - - - Models\Constants\TicketStatus.cs - - - Models\Constants\TicketTypes.cs - - - Models\Constants\UserIdentityTypes.cs - - - Models\Constants\UserRoles.cs - - - Models\Constants\ViaTypes.cs - - - Models\CustomRoles\Configuration.cs - - - Models\CustomRoles\CustomRole.cs - - - Models\CustomRoles\CustomRoles.cs - - - Models\Forums\Forum.cs - - - Models\Forums\ForumSubscription.cs - - - Models\Forums\GroupForumResponse.cs - - - Models\Forums\GroupForumSubcriptionResponse.cs - - - Models\Forums\IndividualForumResponse.cs - - - Models\Forums\IndividualForumSubcriptionResponse.cs - - - Models\GroupResponseBase.cs - - - Models\Groups\Group.cs - - - Models\Groups\GroupMembership.cs - - - Models\Groups\IndividualGroupMembershipResponse.cs - - - Models\Groups\IndividualGroupResponse.cs - - - Models\Groups\MultipleGroupMembershipResponse.cs - - - Models\Groups\MultipleGroupResponse.cs - - - Models\HelpCenter\Attachments\ArticleAttachment.cs - - - Models\HelpCenter\Attachments\GroupAttachmentResponse.cs - - - Models\HelpCenter\Categories\Category.cs - - - Models\HelpCenter\Categories\GroupCategoryResponse.cs - - - Models\HelpCenter\Categories\IndividualCategoryResponse.cs - - - Models\HelpCenter\Comments\Comment.cs - - - Models\HelpCenter\Comments\GroupCommentResponse.cs - - - Models\HelpCenter\Comments\IndividualCommentResponse.cs - - - Models\HelpCenter\HelpCenterBase.cs - - - Models\HelpCenter\Post\GroupPostResponse.cs - - - Models\HelpCenter\Post\IndividualPostResponse.cs - - - Models\HelpCenter\Post\Post.cs - - - Models\HelpCenter\Topics\GroupTopicResponse.cs - - - Models\HelpCenter\Topics\IndividualTopicResponse.cs - - - Models\HelpCenter\Topics\Topic.cs - - - Models\HelpCenter\Translations\GroupTranslationResponse.cs - - - Models\HelpCenter\Translations\IndividualTranslationResponse.cs - - - Models\HelpCenter\Translations\Translation.cs - - - Models\HelpCenter\Votes\GroupVoteResponse.cs - - - Models\HelpCenter\Votes\IndividualVoteResponse.cs - - - Models\HelpCenter\Votes\Vote.cs - - - Models\IndividualResponseBase.cs - - - Models\Locales\GroupLocaleResponse.cs - - - Models\Locales\IndividualLocaleResponse.cs - - - Models\Locales\Locale.cs - - - Models\Macros\Action.cs - - - Models\Macros\ApplyMacroResponse.cs - - - Models\Macros\GroupMacroResponse.cs - - - Models\Macros\IndividualMacroResponse.cs - - - Models\Macros\Macro.cs - - - Models\Macros\Restriction.cs - - - Models\Macros\Result.cs - - - Models\Organizations\GroupOrganizationMembershipResponse.cs - - - Models\Organizations\GroupOrganizationResponse.cs - - - Models\Organizations\IndividualOrganizationMembershipResponse.cs - - - Models\Organizations\IndividualOrganizationResponse.cs - - - Models\Organizations\Organization.cs - - - Models\Organizations\OrganizationMembership.cs - - - Models\Requests\GroupCommentResponse.cs - - - Models\Requests\GroupRequestResponse.cs - - - Models\Requests\IndividualCommentResponse.cs - - - Models\Requests\IndividualRequestResponse.cs - - - Models\Requests\Request.cs - - - Models\SatisfactionRatings\GroupSatisfactionResponse.cs - - - Models\SatisfactionRatings\IndividualSatisfactionResponse.cs - - - Models\SatisfactionRatings\SatisfactionRating.cs - - - Models\Schedules\GroupScheduleHolidayResponse.cs - - - Models\Schedules\GroupScheduleResponse.cs - - - Models\Schedules\Holiday.cs - - - Models\Schedules\IndividualScheduleHolidayResponse.cs - - - Models\Schedules\IndividualScheduleResponse.cs - - - Models\Schedules\IndividualScheduleWorkWeekResponse.cs - - - Models\Schedules\Interval.cs - - - Models\Schedules\Schedule.cs - - - Models\Schedules\WorkWeek.cs - - - Models\Search\Result.cs - - - Models\Search\SearchResults.cs - - - Models\Sections\GroupSectionResponse.cs - - - Models\Sections\IndividualSectionResponse.cs - - - Models\Sections\Section.cs - - - Models\Shared\Attachment.cs - - - Models\Shared\Audit.cs - - - Models\Shared\Data.cs - - - Models\Shared\Event.cs - - - Models\Shared\FaceBookPage.cs - - - Models\Shared\GroupAuditResponse.cs - - - Models\Shared\IndividualAuditResponse.cs - - - Models\Shared\JobStatus.cs - - - Models\Shared\JobStatusResponse.cs - - - Models\Shared\MetaData.cs - - - Models\Shared\Result.cs - - - Models\Shared\System.cs - - - Models\Shared\Thumbnail.cs - - - Models\Shared\Upload.cs - - - Models\Shared\Via.cs - - - Models\Shared\ZenFile.cs - - - Models\SharingAgreements\GroupSharingAgreementResponse.cs - - - Models\SharingAgreements\SharingAgreement.cs - - - Models\Tags\GroupTagResult.cs - - - Models\Tags\Tag.cs - - - Models\Tags\TagAutocompleteResponse.cs - - - Models\Targets\BasecampTarget.cs - - - Models\Targets\BaseTarget.cs - - - Models\Targets\CampfireTarget.cs - - - Models\Targets\ClickatellTarget.cs - - - Models\Targets\EmailTarget.cs - - - Models\Targets\FlowdockTarget.cs - - - Models\Targets\GetSatisfactionTarget.cs - - - Models\Targets\GroupTargetResponse.cs - - - Models\Targets\HTTPTarget.cs - - - Models\Targets\IndividualTargetResponse.cs - - - Models\Targets\JiraTarget.cs - - - Models\Targets\PivotalTarget.cs - - - Models\Targets\TwitterTarget.cs - - - Models\Targets\URLTarget.cs - - - Models\Targets\YammerTarget.cs - - - Models\Tickets\BaseTicket.cs - - - Models\Tickets\BulkUpdate.cs - - - Models\Tickets\Comment.cs - - - Models\Tickets\Custom.cs - - - Models\Tickets\CustomField.cs - - - Models\Tickets\Field.cs - - - Models\Tickets\FieldHeaders.cs - - - Models\Tickets\From.cs - - - Models\Tickets\GroupTicketExportResponse.cs - - - Models\Tickets\GroupTicketFieldResponse.cs - - - Models\Tickets\GroupTicketFormResponse.cs - - - Models\Tickets\GroupTicketMetricResponse.cs - - - Models\Tickets\GroupTicketResponse.cs - - - Models\Tickets\IndividualTicketFieldResponse.cs - - - Models\Tickets\IndividualTicketFormResponse.cs - - - Models\Tickets\IndividualTicketMetricResponse.cs - - - Models\Tickets\IndividualTicketResponse.cs - - - Models\Tickets\Options.cs - - - Models\Tickets\Requester.cs - - - Models\Tickets\SatisfactionRating.cs - - - Models\Tickets\Source.cs - - - Models\Tickets\Suspended\Author.cs - - - Models\Tickets\Suspended\From.cs - - - Models\Tickets\Suspended\GroupSuspendedTicketResponse.cs - - - Models\Tickets\Suspended\IndividualSuspendedTicketResponse.cs - - - Models\Tickets\Suspended\Source.cs - - - Models\Tickets\Suspended\SuspendedTicket.cs - - - Models\Tickets\Suspended\To.cs - - - Models\Tickets\Suspended\Via.cs - - - Models\Tickets\Ticket.cs - - - Models\Tickets\TicketImport.cs - - - Models\Tickets\TicketImportComment.cs - - - Models\Tickets\TimeSpanMetric.cs - - - Models\Tickets\TicketMetric.cs - - - Models\Tickets\TicketExportResult.cs - - - Models\Tickets\TicketField.cs - - - Models\Tickets\TicketForm.cs - - - Models\Tickets\To.cs - - - Models\Topics\GroupTopicCommentResponse.cs - - - Models\Topics\GroupTopicResponse.cs - - - Models\Topics\GroupTopicSubscriptionResponse.cs - - - Models\Topics\GroupTopicVoteResponse.cs - - - Models\Topics\IndividualTopicCommentResponse.cs - - - Models\Topics\IndividualTopicResponse.cs - - - Models\Topics\IndividualTopicSubscriptionResponse.cs - - - Models\Topics\IndividualTopicVoteResponse.cs - - - Models\Topics\Topic.cs - - - Models\Topics\TopicComment.cs - - - Models\Topics\TopicSubscription.cs - - - Models\Topics\TopicVote.cs - - - Models\Triggers\Action.cs - - - Models\Triggers\All.cs - - - Models\Triggers\Conditions.cs - - - Models\Triggers\GroupTriggerResponse.cs - - - Models\Triggers\IndividualTriggerResponse.cs - - - Models\Triggers\Trigger.cs - - - Models\Users\GroupUserIdentityResponse.cs - - - Models\Users\GroupUserResponse.cs - - - Models\Users\IndividualUserIdentityResponse.cs - - - Models\Users\IndividualUserRelatedInformationResponse.cs - - - Models\Users\IndividualUserResponse.cs - - - Models\Users\Photo.cs - - - Models\Users\RelatedInformation.cs - - - Models\Users\User.cs - - - Models\Users\UserIdentity.cs - - - Models\Views\All.cs - - - Models\Views\Conditions.cs - - - Models\Views\Executed\Column.cs - - - Models\Views\Executed\CustomField.cs - - - Models\Views\Executed\ExecutedTicket.cs - - - Models\Views\Executed\ExecutedUser.cs - - - Models\Views\Executed\ExecutedViewResponse.cs - - - Models\Views\Executed\Field.cs - - - Models\Views\Executed\LastComment.cs - - - Models\Views\Executed\PreviewViewRequest.cs - - - Models\Views\Executed\Row.cs - - - Models\Views\Executed\View.cs - - - Models\Views\Execution.cs - - - Models\Views\Field.cs - - - Models\Views\GroupViewCountResponse.cs - - - Models\Views\GroupViewResponse.cs - - - Models\Views\IndividualViewCountResponse.cs - - - Models\Views\IndividualViewResponse.cs - - - Models\Views\View.cs - - - Models\Views\ViewCount.cs - - - Models\Voice\AgentActivity.cs - - - Models\Voice\GroupAgentActivityResponse.cs - - - Models\Voice\HistoricalQueueActivity.cs - - - RequestResult.cs - - - Requests\AccountsAndActivity.cs - - - Requests\Attachments.cs - - - Requests\Brands.cs - - - Requests\Categories.cs - - - Requests\CustomAgentRoles.cs - - - Requests\Forums.cs - - - Requests\Groups.cs - - - Requests\HelpCenter\AccessPolicies.cs - - - Requests\HelpCenter\ArticleAttachments.cs - - - Requests\HelpCenter\Articles.cs - - - Requests\HelpCenter\ArticleSortingOptions.cs - - - Requests\HelpCenter\Categories.cs - - - Requests\HelpCenter\Comments.cs - - - Requests\HelpCenter\Posts.cs - - - Requests\HelpCenter\Sections.cs - - - Requests\HelpCenter\Topics.cs - - - Requests\HelpCenter\Translations.cs - - - Requests\HelpCenter\Votes.cs - - - Requests\JobStatuses.cs - - - Requests\Locales.cs - - - Requests\Macros.cs - - - Requests\Organizations.cs - - - Requests\Requests.cs - - - Requests\SatisfactionRatings.cs - - - Requests\Schedules.cs - - - Requests\Search.cs - - - Requests\SharingAgreements.cs - - - Requests\Tags.cs - - - Requests\Targets.cs - - - Requests\Tickets.cs - - - Requests\Topics.cs - - - Requests\Triggers.cs - - - Requests\Users.cs - - - Requests\Views.cs - - - Requests\Voice.cs - - - Serialization\BaseJsonConverter.cs - - - Serialization\TargetJsonConverter.cs - - - Serialization\SingleOrArrayConverter.cs - - - Serialization\UnixEpochTimeConverter.cs - - - Serialization\ZendeskContractResolver.cs - - - ZendeskApi.cs - - - - - - - - - - pushd "$(SolutionDir)" - -if not exist "ZendeskApi_v2_Package\lib" mkdir "ZendeskApi_v2_Package\lib" -if not exist "ZendeskApi_v2_Package\lib\net40" mkdir "ZendeskApi_v2_Package\lib\net40" -copy "$(ProjectName)\$(OutDir)\$(TargetFileName)" "ZendeskApi_v2_Package\lib\net40\$(TargetFileName)" /Y -if not exist "ZendeskApi_v2_Package\lib\net35" mkdir "ZendeskApi_v2_Package\lib\net35" - -copy "$(ProjectName)\$(OutDir)\$(TargetFileName)" "ZendeskApi_v2_Package\lib\net35\$(TargetFileName)" /Y - -popd - - - - \ No newline at end of file diff --git a/src/ZendeskApi_v2_Net35/packages.config b/src/ZendeskApi_v2_Net35/packages.config deleted file mode 100644 index 0aa888ff..00000000 --- a/src/ZendeskApi_v2_Net35/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/ZendeskApi_v2_Package/NuGetPackage.ps1 b/src/ZendeskApi_v2_Package/NuGetPackage.ps1 deleted file mode 100644 index 6a090df4..00000000 --- a/src/ZendeskApi_v2_Package/NuGetPackage.ps1 +++ /dev/null @@ -1,315 +0,0 @@ -Param ( - [switch]$Publish, - [string]$version -) - -$ErrorActionPreference = "Stop" -$global:ExitCode = 1 - -function Write-Log { - - #region Parameters - - [cmdletbinding()] - Param( - [Parameter(ValueFromPipeline=$true)] - [array] $Messages, - - [Parameter()] [ValidateSet("Error", "Warn", "Info")] - [string] $Level = "Info", - - [Parameter()] - [Switch] $NoConsoleOut = $false, - - [Parameter()] - [String] $ForegroundColor = 'White', - - [Parameter()] [ValidateRange(1,30)] - [Int16] $Indent = 0, - - [Parameter()] - [IO.FileInfo] $Path = ".\NuGet.log", - - [Parameter()] - [Switch] $Clobber, - - [Parameter()] - [String] $EventLogName, - - [Parameter()] - [String] $EventSource, - - [Parameter()] - [Int32] $EventID = 1 - - ) - - #endregion - - Begin {} - - Process { - - $ErrorActionPreference = "Continue" - - if ($Messages.Length -gt 0) { - try { - foreach($m in $Messages) { - if ($NoConsoleOut -eq $false) { - switch ($Level) { - 'Error' { - Write-Error $m -ErrorAction SilentlyContinue - Write-Host ('{0}{1}' -f (" " * $Indent), $m) -ForegroundColor Red - } - 'Warn' { - Write-Warning $m - } - 'Info' { - Write-Host ('{0}{1}' -f (" " * $Indent), $m) -ForegroundColor $ForegroundColor - } - } - } - - if ($m.Trim().Length -gt 0) { - $msg = '{0}{1} [{2}] : {3}' -f (" " * $Indent), (Get-Date -Format "yyyy-MM-dd HH:mm:ss"), $Level.ToUpper(), $m - - if ($Clobber) { - $msg | Out-File -FilePath $Path -Force - } else { - $msg | Out-File -FilePath $Path -Append - } - } - - if ($EventLogName) { - - if (-not $EventSource) { - $EventSource = ([IO.FileInfo] $MyInvocation.ScriptName).Name - } - - if(-not [Diagnostics.EventLog]::SourceExists($EventSource)) { - [Diagnostics.EventLog]::CreateEventSource($EventSource, $EventLogName) - } - - $log = New-Object System.Diagnostics.EventLog - $log.set_log($EventLogName) - $log.set_source($EventSource) - - switch ($Level) { - "Error" { $log.WriteEntry($Message, 'Error', $EventID) } - "Warn" { $log.WriteEntry($Message, 'Warning', $EventID) } - "Info" { $log.WriteEntry($Message, 'Information', $EventID) } - } - } - } - } - catch { - throw "Failed to create log entry in: '$Path'. The error was: '$_'." - } - } - } - - End {} - - <# - .SYNOPSIS - Writes logging information to screen and log file simultaneously. - - .DESCRIPTION - Writes logging information to screen and log file simultaneously. Supports multiple log levels. - - .PARAMETER Messages - The messages to be logged. - - .PARAMETER Level - The type of message to be logged. - - .PARAMETER NoConsoleOut - Specifies to not display the message to the console. - - .PARAMETER ConsoleForeground - Specifies what color the text should be be displayed on the console. Ignored when switch 'NoConsoleOut' is specified. - - .PARAMETER Indent - The number of spaces to indent the line in the log file. - - .PARAMETER Path - The log file path. - - .PARAMETER Clobber - Existing log file is deleted when this is specified. - - .PARAMETER EventLogName - The name of the system event log, e.g. 'Application'. - - .PARAMETER EventSource - The name to appear as the source attribute for the system event log entry. This is ignored unless 'EventLogName' is specified. - - .PARAMETER EventID - The ID to appear as the event ID attribute for the system event log entry. This is ignored unless 'EventLogName' is specified. - - .EXAMPLE - PS C:\> Write-Log -Message "It's all good!" -Path C:\MyLog.log -Clobber -EventLogName 'Application' - - .EXAMPLE - PS C:\> Write-Log -Message "Oops, not so good!" -Level Error -EventID 3 -Indent 2 -EventLogName 'Application' -EventSource "My Script" - - .INPUTS - System.String - - .OUTPUTS - No output. - - .NOTES - Revision History: - 2011-03-10 : Andy Arismendi - Created. - #> -} - -function Create-Process() { - param([string] $fileName, [string] $arguments) - - $pinfo = New-Object System.Diagnostics.ProcessStartInfo - $pinfo.RedirectStandardError = $true - $pinfo.RedirectStandardOutput = $true - $pinfo.UseShellExecute = $false - $pinfo.FileName = $fileName - $pinfo.Arguments = $arguments - - $p = New-Object System.Diagnostics.Process - $p.StartInfo = $pinfo - - return $p -} - -function HandlePublishError { - param([string] $ErrorMessage) - - # Run NuGet Setup - $encodedMessage = [Convert]::ToBase64String([System.Text.Encoding]::UTF8.GetBytes($ErrorMessage)) - $setupTask = Start-Process PowerShell.exe "-ExecutionPolicy Unrestricted -File .\NuGetSetup.ps1 -Url $url -Base64EncodedMessage $encodedMessage" -Wait -PassThru - - #Write-Log ("NuGet Setup Task Exit Code: " + $setupTask.ExitCode) - - if ($setupTask.ExitCode -eq 0) { - # Try to push package again - $publishTask = Create-Process .\NuGet.exe ("push " + $_.Name + " -Source " + $url) - $publishTask.Start() | Out-Null - $publishTask.WaitForExit() - - $output = ($publishTask.StandardOutput.ReadToEnd() -Split '[\r\n]') |? {$_} - $error = (($publishTask.StandardError.ReadToEnd() -Split '[\r\n]') |? {$_}) - Write-Log $output - Write-Log $error Error - - if ($publishTask.ExitCode -eq 0) { - $global:ExitCode = 0 - } - } - elseif ($setupTask.ExitCode -eq 2) { - $global:ExitCode = 2 - } - else { - $global:ExitCode = 0 - } -} - -function Publish { - - Write-Log " " - Write-Log "Publishing package..." -ForegroundColor Green - - # Get nuget config - [xml]$nugetConfig = Get-Content .\NuGet.Config - - $nugetConfig.configuration.packageSources.add | ForEach-Object { - $url = $_.value - - Write-Log "Repository Url: $url" - Write-Log " " - - Get-ChildItem *.nupkg | Where-Object { $_.Name.EndsWith(".symbols.nupkg") -eq $false } | ForEach-Object { - - # Try to push package - $task = Create-Process .\NuGet.exe ("push " + $_.Name + " -Source " + $url) - $task.Start() | Out-Null - $task.WaitForExit() - - $output = ($task.StandardOutput.ReadToEnd() -Split '[\r\n]') |? { $_ } - $error = ($task.StandardError.ReadToEnd() -Split '[\r\n]') |? { $_ } - Write-Log $output - Write-Log $error Error - - if ($task.ExitCode -gt 0) { - HandlePublishError -ErrorMessage $error - #Write-Log ("HandlePublishError() Exit Code: " + $global:ExitCode) - } - else { - $global:ExitCode = 0 - } - } - } -} - -Write-Log " " -Write-Log "NuGet Packager 2.0.3" -ForegroundColor Yellow - -# Make sure the nuget executable is writable -Set-ItemProperty ..\.nuget\NuGet.exe -Name IsReadOnly -Value $false - -# Make sure the nupkg files are writeable and create backup -if (Test-Path *.nupkg) { - Set-ItemProperty *.nupkg -Name IsReadOnly -Value $false - - Write-Log " " - Write-Log "Creating backup..." -ForegroundColor Green - - Get-ChildItem *.nupkg | ForEach-Object { - # Move-Item $_.Name ($_.Name + ".bak") -Force - Remove-Item $_.Name -Force - #Write-Log ("Renamed " + $_.Name + " to " + $_.Name + ".bak") - } -} - -Write-Log " " -Write-Log "Updating NuGet..." -ForegroundColor Green -Write-Log (Invoke-Command {.\..\.nuget\NuGet.exe update -Self} -ErrorAction Stop) - -Write-Log " " -Write-Log "Creating package..." -ForegroundColor Green - -# Create symbols package if any .pdb files are located in the lib folder -If ((Get-ChildItem *.pdb -Path .\lib -Recurse).Count -gt 0) { - $packageTask = Create-Process .\..\.nuget\NuGet.exe ("pack Package.nuspec -Version $version -Symbol -Verbosity Detailed") - $packageTask.Start() | Out-Null - $packageTask.WaitForExit() - - $output = ($packageTask.StandardOutput.ReadToEnd() -Split '[\r\n]') |? {$_} - $error = (($packageTask.StandardError.ReadToEnd() -Split '[\r\n]') |? {$_}) - Write-Log $output - Write-Log $error Error - - $global:ExitCode = $packageTask.ExitCode -} -Else { - $packageTask = Create-Process .\..\.nuget\NuGet.exe ("pack Package.nuspec -Version $version -Verbosity Detailed") - $packageTask.Start() | Out-Null - $packageTask.WaitForExit() - - $output = ($packageTask.StandardOutput.ReadToEnd() -Split '[\r\n]') |? {$_} - $error = (($packageTask.StandardError.ReadToEnd() -Split '[\r\n]') |? {$_}) - Write-Log $output - Write-Log $error Error - - $global:ExitCode = $packageTask.ExitCode -} - -# Check if package should be published -if ($Publish -and $global:ExitCode -eq 0) { - Publish -} - -Write-Log " " -Write-Log "Exit Code: $global:ExitCode" -ForegroundColor Gray - -$host.SetShouldExit($global:ExitCode) -Exit $global:ExitCode \ No newline at end of file diff --git a/src/ZendeskApi_v2_Package/NuGetSetup.ps1 b/src/ZendeskApi_v2_Package/NuGetSetup.ps1 deleted file mode 100644 index bd9aa5ed..00000000 --- a/src/ZendeskApi_v2_Package/NuGetSetup.ps1 +++ /dev/null @@ -1,208 +0,0 @@ -Param ( - [string]$Url, - [string]$Base64EncodedMessage -) - -$ErrorActionPreference = "Stop" -$ExitCode = 1 - -function Write-Log { - - #region Parameters - - [cmdletbinding()] - Param( - [Parameter(ValueFromPipeline=$true)] - [array] $Messages, - - [Parameter()] [ValidateSet("Error", "Warn", "Info")] - [string] $Level = "Info", - - [Parameter()] - [Switch] $NoConsoleOut = $false, - - [Parameter()] - [String] $ForegroundColor = 'White', - - [Parameter()] [ValidateRange(1,30)] - [Int16] $Indent = 0, - - [Parameter()] - [IO.FileInfo] $Path = ".\NuGet.log", - - [Parameter()] - [Switch] $Clobber, - - [Parameter()] - [String] $EventLogName, - - [Parameter()] - [String] $EventSource, - - [Parameter()] - [Int32] $EventID = 1 - - ) - - #endregion - - Begin {} - - Process { - - $ErrorActionPreference = "Continue" - - if ($Messages.Length -gt 0) { - try { - foreach($m in $Messages) { - if ($NoConsoleOut -eq $false) { - switch ($Level) { - 'Error' { - Write-Error $m -ErrorAction SilentlyContinue - Write-Host ('{0}{1}' -f (" " * $Indent), $m) -ForegroundColor Red - } - 'Warn' { - Write-Warning $m - } - 'Info' { - Write-Host ('{0}{1}' -f (" " * $Indent), $m) -ForegroundColor $ForegroundColor - } - } - } - - if ($m.Trim().Length -gt 0) { - $msg = '{0}{1} [{2}] : {3}' -f (" " * $Indent), (Get-Date -Format "yyyy-MM-dd HH:mm:ss"), $Level.ToUpper(), $m - - if ($Clobber) { - $msg | Out-File -FilePath $Path -Force - } else { - $msg | Out-File -FilePath $Path -Append - } - } - - if ($EventLogName) { - - if (-not $EventSource) { - $EventSource = ([IO.FileInfo] $MyInvocation.ScriptName).Name - } - - if(-not [Diagnostics.EventLog]::SourceExists($EventSource)) { - [Diagnostics.EventLog]::CreateEventSource($EventSource, $EventLogName) - } - - $log = New-Object System.Diagnostics.EventLog - $log.set_log($EventLogName) - $log.set_source($EventSource) - - switch ($Level) { - "Error" { $log.WriteEntry($Message, 'Error', $EventID) } - "Warn" { $log.WriteEntry($Message, 'Warning', $EventID) } - "Info" { $log.WriteEntry($Message, 'Information', $EventID) } - } - } - } - } - catch { - throw "Failed to create log entry in: '$Path'. The error was: '$_'." - } - } - } - - End {} - - <# - .SYNOPSIS - Writes logging information to screen and log file simultaneously. - - .DESCRIPTION - Writes logging information to screen and log file simultaneously. Supports multiple log levels. - - .PARAMETER Messages - The messages to be logged. - - .PARAMETER Level - The type of message to be logged. - - .PARAMETER NoConsoleOut - Specifies to not display the message to the console. - - .PARAMETER ConsoleForeground - Specifies what color the text should be be displayed on the console. Ignored when switch 'NoConsoleOut' is specified. - - .PARAMETER Indent - The number of spaces to indent the line in the log file. - - .PARAMETER Path - The log file path. - - .PARAMETER Clobber - Existing log file is deleted when this is specified. - - .PARAMETER EventLogName - The name of the system event log, e.g. 'Application'. - - .PARAMETER EventSource - The name to appear as the source attribute for the system event log entry. This is ignored unless 'EventLogName' is specified. - - .PARAMETER EventID - The ID to appear as the event ID attribute for the system event log entry. This is ignored unless 'EventLogName' is specified. - - .EXAMPLE - PS C:\> Write-Log -Message "It's all good!" -Path C:\MyLog.log -Clobber -EventLogName 'Application' - - .EXAMPLE - PS C:\> Write-Log -Message "Oops, not so good!" -Level Error -EventID 3 -Indent 2 -EventLogName 'Application' -EventSource "My Script" - - .INPUTS - System.String - - .OUTPUTS - No output. - - .NOTES - Revision History: - 2011-03-10 : Andy Arismendi - Created. - #> -} - -$choices = [System.Management.Automation.Host.ChoiceDescription[]]( - (New-Object System.Management.Automation.Host.ChoiceDescription "&Add API Key","Add an API Key for this URL"), - (New-Object System.Management.Automation.Host.ChoiceDescription "&Skip","Skip pushing to this URL")) - - Write-Output "" - Write-Log "Invalid API key for this repository URL, or there is a version conflict" Warn - - If ($Base64EncodedMessage) { - Write-Warning ([System.Text.Encoding]::UTF8.GetString([Convert]::FromBase64String($Base64EncodedMessage))) - } - - $firstAnswer = $Host.UI.PromptForChoice(("Would you like to try adding an API key for " + $Url + "?"), "", $choices, (1)) - - if ($firstAnswer -eq 0) { - $fields = new-object "System.Collections.ObjectModel.Collection``1[[System.Management.Automation.Host.FieldDescription]]" - - $f = New-Object System.Management.Automation.Host.FieldDescription "API Key for $Url" - $f.SetParameterType( [System.Security.SecureString] ) - $f.HelpMessage = "Please enter API Key for $Url" - $f.Label = "&API Key for $Url" - - $fields.Add($f) - - $results = $Host.UI.Prompt( "Add API Key", "", $fields ) - - $pass = [Runtime.InteropServices.Marshal]::PtrToStringAuto([Runtime.InteropServices.Marshal]::SecureStringToBSTR($results["API Key for $Url"])) - - # Add API Key to config file - Write-Log (.\NuGet.exe setApiKey $pass -Source $Url) - - if ($LASTEXITCODE -le 0) { - $ExitCode = 0 - } - } - else { - Write-Log "Skipping..." - $ExitCode = 2 - } - -$host.SetShouldExit($ExitCode) -Exit $ExitCode \ No newline at end of file diff --git a/src/ZendeskApi_v2_Package/Package.nuspec b/src/ZendeskApi_v2_Package/Package.nuspec deleted file mode 100644 index 45a5cea7..00000000 --- a/src/ZendeskApi_v2_Package/Package.nuspec +++ /dev/null @@ -1,37 +0,0 @@ - - - - ZendeskApi_v2 - $version$ - ZendeskApi_v2 - mozts2005,Eric - mozts2005 - https://raw.githubusercontent.com/mozts2005/ZendeskApi_v2/master/LICENSE.md - https://github.com/mozts2005/ZendeskApi_v2 - false - A full c# wrapper for Zendesk's api v2. - https://raw.githubusercontent.com/mozts2005/ZendeskApi_v2/master/tools/icon/lotus.png - en-US - Copyright 2012-2017 - zendesk api - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/src/ZendeskApi_v2_Package/Properties/AssemblyInfo.cs b/src/ZendeskApi_v2_Package/Properties/AssemblyInfo.cs deleted file mode 100644 index 7d5820f4..00000000 --- a/src/ZendeskApi_v2_Package/Properties/AssemblyInfo.cs +++ /dev/null @@ -1,37 +0,0 @@ -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("ZendeskApi_v2_Package")] -[assembly: AssemblyDescription("Project template made by EyeCatch (http://www.eyecatch.no/)")] -[assembly: AssemblyConfiguration("")] -[assembly: AssemblyCompany("")] -[assembly: AssemblyProduct("ZendeskApi_v2_Package")] -[assembly: AssemblyCopyright("Copyright © 2015")] -[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("5b586874-8d3e-4137-9ba8-e982413416d5")] - -// 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: AssemblyInformationalVersion("1.0.1")] -//[assembly: AssemblyVersion("1.0.0.0")] -[assembly: AssemblyFileVersion("1.0.0")] diff --git a/src/ZendeskApi_v2_Package/ZendeskApi_v2_Package.csproj b/src/ZendeskApi_v2_Package/ZendeskApi_v2_Package.csproj deleted file mode 100644 index ff363f4e..00000000 --- a/src/ZendeskApi_v2_Package/ZendeskApi_v2_Package.csproj +++ /dev/null @@ -1,115 +0,0 @@ - - - - Debug - AnyCPU - 8.0.30703 - 2.0 - {0451BAEF-DF2E-4B98-8644-94EE9415E389} - Library - Properties - ZendeskApi_v2_Package - ZendeskApi_v2_Package - v3.5 - - - 512 - false - - - $(MSBuildProjectDirectory)\..\..\ - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - AnyCPU - bin\Debug\ - - - AnyCPU - bin\Release\ - - - - - - - - - - - - - - - - - - - - - - - - - - - \d*)\.(?\d*)(\.(?\d*)(\.(?\d*))?)?(-(?.*))?"); - string result = regex.Replace(FileVersionInfo.GetVersionInfo(this.AssemblyPath).ProductVersion, @"${Major}.${Minor}.${Build}"); - - Version v = Version.Parse(result); - - this.SimVersion = v.Major + "." + v.Minor + "." + v.Build; - ]]> - - - - - - - - - - - - - - - - - - - - - - - - - This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - - - \ No newline at end of file diff --git a/src/ZendeskApi_v2_Package/packages.config b/src/ZendeskApi_v2_Package/packages.config deleted file mode 100644 index 726a13af..00000000 --- a/src/ZendeskApi_v2_Package/packages.config +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/src/ZendeskApi_v2_vs2013.sln b/src/ZendeskApi_v2_vs2013.sln deleted file mode 100644 index 0b3cd310..00000000 --- a/src/ZendeskApi_v2_vs2013.sln +++ /dev/null @@ -1,76 +0,0 @@ - -Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 15 -VisualStudioVersion = 15.0.26228.10 -MinimumVisualStudioVersion = 10.0.40219.1 -Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{8CFE6722-BBAA-4BE6-A634-C5039D9B91C6}" - ProjectSection(SolutionItems) = preProject - ..\.gitattributes = ..\.gitattributes - ..\.gitignore = ..\.gitignore - ..\appveyor.yml = ..\appveyor.yml - ..\tools\icon\lotus.png = ..\tools\icon\lotus.png - ..\README.md = ..\README.md - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZendeskApi_v2", "ZenDeskApi_v2\ZendeskApi_v2.csproj", "{D17BCC22-9561-4FC4-9C52-975808641ECE}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj", "{A80DB5E8-5D98-4256-9513-34E13A82D5EE}" - ProjectSection(ProjectDependencies) = postProject - {E7EABB17-E3EE-4509-B1FE-8AB87BA3C76E} = {E7EABB17-E3EE-4509-B1FE-8AB87BA3C76E} - {C1D27B49-4B9D-467D-98E7-3695F35EA400} = {C1D27B49-4B9D-467D-98E7-3695F35EA400} - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZendeskApi_v2_Mobile", "ZendeskApi_v2_Mobile\ZendeskApi_v2_Mobile.csproj", "{E7EABB17-E3EE-4509-B1FE-8AB87BA3C76E}" - ProjectSection(ProjectDependencies) = postProject - {D17BCC22-9561-4FC4-9C52-975808641ECE} = {D17BCC22-9561-4FC4-9C52-975808641ECE} - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZendeskApi_v2_Net35", "ZendeskApi_v2_Net35\ZendeskApi_v2_Net35.csproj", "{C1D27B49-4B9D-467D-98E7-3695F35EA400}" - ProjectSection(ProjectDependencies) = postProject - {D17BCC22-9561-4FC4-9C52-975808641ECE} = {D17BCC22-9561-4FC4-9C52-975808641ECE} - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZendeskApi_v2_Package", "ZendeskApi_v2_Package\ZendeskApi_v2_Package.csproj", "{0451BAEF-DF2E-4B98-8644-94EE9415E389}" - ProjectSection(ProjectDependencies) = postProject - {E7EABB17-E3EE-4509-B1FE-8AB87BA3C76E} = {E7EABB17-E3EE-4509-B1FE-8AB87BA3C76E} - {D17BCC22-9561-4FC4-9C52-975808641ECE} = {D17BCC22-9561-4FC4-9C52-975808641ECE} - {C1D27B49-4B9D-467D-98E7-3695F35EA400} = {C1D27B49-4B9D-467D-98E7-3695F35EA400} - EndProjectSection -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ZendeskApi_v2.Example", "ZendeskApi_v2.Example\ZendeskApi_v2.Example.csproj", "{0A9FE800-92F6-4979-8F0C-6129ECF94952}" -EndProject -Global - GlobalSection(SolutionConfigurationPlatforms) = preSolution - Debug|Any CPU = Debug|Any CPU - Release|Any CPU = Release|Any CPU - EndGlobalSection - GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D17BCC22-9561-4FC4-9C52-975808641ECE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D17BCC22-9561-4FC4-9C52-975808641ECE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D17BCC22-9561-4FC4-9C52-975808641ECE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D17BCC22-9561-4FC4-9C52-975808641ECE}.Release|Any CPU.Build.0 = Release|Any CPU - {A80DB5E8-5D98-4256-9513-34E13A82D5EE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {A80DB5E8-5D98-4256-9513-34E13A82D5EE}.Debug|Any CPU.Build.0 = Debug|Any CPU - {A80DB5E8-5D98-4256-9513-34E13A82D5EE}.Release|Any CPU.ActiveCfg = Release|Any CPU - {A80DB5E8-5D98-4256-9513-34E13A82D5EE}.Release|Any CPU.Build.0 = Release|Any CPU - {E7EABB17-E3EE-4509-B1FE-8AB87BA3C76E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {E7EABB17-E3EE-4509-B1FE-8AB87BA3C76E}.Debug|Any CPU.Build.0 = Debug|Any CPU - {E7EABB17-E3EE-4509-B1FE-8AB87BA3C76E}.Release|Any CPU.ActiveCfg = Release|Any CPU - {E7EABB17-E3EE-4509-B1FE-8AB87BA3C76E}.Release|Any CPU.Build.0 = Release|Any CPU - {C1D27B49-4B9D-467D-98E7-3695F35EA400}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {C1D27B49-4B9D-467D-98E7-3695F35EA400}.Debug|Any CPU.Build.0 = Debug|Any CPU - {C1D27B49-4B9D-467D-98E7-3695F35EA400}.Release|Any CPU.ActiveCfg = Release|Any CPU - {C1D27B49-4B9D-467D-98E7-3695F35EA400}.Release|Any CPU.Build.0 = Release|Any CPU - {0451BAEF-DF2E-4B98-8644-94EE9415E389}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0451BAEF-DF2E-4B98-8644-94EE9415E389}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0451BAEF-DF2E-4B98-8644-94EE9415E389}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0451BAEF-DF2E-4B98-8644-94EE9415E389}.Release|Any CPU.Build.0 = Release|Any CPU - {0A9FE800-92F6-4979-8F0C-6129ECF94952}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {0A9FE800-92F6-4979-8F0C-6129ECF94952}.Debug|Any CPU.Build.0 = Debug|Any CPU - {0A9FE800-92F6-4979-8F0C-6129ECF94952}.Release|Any CPU.ActiveCfg = Release|Any CPU - {0A9FE800-92F6-4979-8F0C-6129ECF94952}.Release|Any CPU.Build.0 = Release|Any CPU - EndGlobalSection - GlobalSection(SolutionProperties) = preSolution - HideSolutionNode = FALSE - EndGlobalSection -EndGlobal diff --git a/src/Tests/AccountsAndActivityTests.cs b/test/ZendeskApi_v2.Test/AccountsAndActivityTests.cs similarity index 100% rename from src/Tests/AccountsAndActivityTests.cs rename to test/ZendeskApi_v2.Test/AccountsAndActivityTests.cs diff --git a/src/Tests/AttachmentTests.cs b/test/ZendeskApi_v2.Test/AttachmentTests.cs similarity index 100% rename from src/Tests/AttachmentTests.cs rename to test/ZendeskApi_v2.Test/AttachmentTests.cs diff --git a/src/Tests/BrandTests.cs b/test/ZendeskApi_v2.Test/BrandTests.cs similarity index 100% rename from src/Tests/BrandTests.cs rename to test/ZendeskApi_v2.Test/BrandTests.cs diff --git a/src/Tests/CategoryTests.cs b/test/ZendeskApi_v2.Test/CategoryTests.cs similarity index 98% rename from src/Tests/CategoryTests.cs rename to test/ZendeskApi_v2.Test/CategoryTests.cs index dab9654e..dd8431e6 100644 --- a/src/Tests/CategoryTests.cs +++ b/test/ZendeskApi_v2.Test/CategoryTests.cs @@ -9,7 +9,7 @@ public class CategoryTests { private ZendeskApi api = new ZendeskApi(Settings.Site, Settings.AdminEmail, Settings.AdminPassword); - [TestFixtureSetUp] + [OneTimeSetUp] public void Setup() { diff --git a/src/Tests/CoreTests.cs b/test/ZendeskApi_v2.Test/CoreTests.cs similarity index 100% rename from src/Tests/CoreTests.cs rename to test/ZendeskApi_v2.Test/CoreTests.cs diff --git a/src/Tests/CustomRolesTests.cs b/test/ZendeskApi_v2.Test/CustomRolesTests.cs similarity index 100% rename from src/Tests/CustomRolesTests.cs rename to test/ZendeskApi_v2.Test/CustomRolesTests.cs diff --git a/src/Tests/ForumTests.cs b/test/ZendeskApi_v2.Test/ForumTests.cs similarity index 100% rename from src/Tests/ForumTests.cs rename to test/ZendeskApi_v2.Test/ForumTests.cs diff --git a/src/Tests/GroupTests.cs b/test/ZendeskApi_v2.Test/GroupTests.cs similarity index 100% rename from src/Tests/GroupTests.cs rename to test/ZendeskApi_v2.Test/GroupTests.cs diff --git a/src/Tests/HelpCenter/ArticleAttachmentsTest.cs b/test/ZendeskApi_v2.Test/HelpCenter/ArticleAttachmentsTest.cs similarity index 100% rename from src/Tests/HelpCenter/ArticleAttachmentsTest.cs rename to test/ZendeskApi_v2.Test/HelpCenter/ArticleAttachmentsTest.cs diff --git a/src/Tests/HelpCenter/ArticleTests.cs b/test/ZendeskApi_v2.Test/HelpCenter/ArticleTests.cs similarity index 100% rename from src/Tests/HelpCenter/ArticleTests.cs rename to test/ZendeskApi_v2.Test/HelpCenter/ArticleTests.cs diff --git a/src/Tests/HelpCenter/CategoryTests.cs b/test/ZendeskApi_v2.Test/HelpCenter/CategoryTests.cs similarity index 100% rename from src/Tests/HelpCenter/CategoryTests.cs rename to test/ZendeskApi_v2.Test/HelpCenter/CategoryTests.cs diff --git a/src/Tests/HelpCenter/PostTests.cs b/test/ZendeskApi_v2.Test/HelpCenter/PostTests.cs similarity index 100% rename from src/Tests/HelpCenter/PostTests.cs rename to test/ZendeskApi_v2.Test/HelpCenter/PostTests.cs diff --git a/src/Tests/HelpCenter/SectionTests.cs b/test/ZendeskApi_v2.Test/HelpCenter/SectionTests.cs similarity index 100% rename from src/Tests/HelpCenter/SectionTests.cs rename to test/ZendeskApi_v2.Test/HelpCenter/SectionTests.cs diff --git a/src/Tests/HelpCenter/TopicTests.cs b/test/ZendeskApi_v2.Test/HelpCenter/TopicTests.cs similarity index 100% rename from src/Tests/HelpCenter/TopicTests.cs rename to test/ZendeskApi_v2.Test/HelpCenter/TopicTests.cs diff --git a/src/Tests/HelpCenter/TranslationTests.cs b/test/ZendeskApi_v2.Test/HelpCenter/TranslationTests.cs similarity index 100% rename from src/Tests/HelpCenter/TranslationTests.cs rename to test/ZendeskApi_v2.Test/HelpCenter/TranslationTests.cs diff --git a/src/Tests/HelpCenter/VoteTests.cs b/test/ZendeskApi_v2.Test/HelpCenter/VoteTests.cs similarity index 100% rename from src/Tests/HelpCenter/VoteTests.cs rename to test/ZendeskApi_v2.Test/HelpCenter/VoteTests.cs diff --git a/src/Tests/JobStatusTests.cs b/test/ZendeskApi_v2.Test/JobStatusTests.cs similarity index 100% rename from src/Tests/JobStatusTests.cs rename to test/ZendeskApi_v2.Test/JobStatusTests.cs diff --git a/src/Tests/LocaleTests.cs b/test/ZendeskApi_v2.Test/LocaleTests.cs similarity index 100% rename from src/Tests/LocaleTests.cs rename to test/ZendeskApi_v2.Test/LocaleTests.cs diff --git a/src/Tests/MacroTests.cs b/test/ZendeskApi_v2.Test/MacroTests.cs similarity index 100% rename from src/Tests/MacroTests.cs rename to test/ZendeskApi_v2.Test/MacroTests.cs diff --git a/src/Tests/Models/Requests/RequestTests.cs b/test/ZendeskApi_v2.Test/Models/Requests/RequestTests.cs similarity index 100% rename from src/Tests/Models/Requests/RequestTests.cs rename to test/ZendeskApi_v2.Test/Models/Requests/RequestTests.cs diff --git a/src/Tests/Models/Tickets/FromTests.cs b/test/ZendeskApi_v2.Test/Models/Tickets/FromTests.cs similarity index 100% rename from src/Tests/Models/Tickets/FromTests.cs rename to test/ZendeskApi_v2.Test/Models/Tickets/FromTests.cs diff --git a/src/Tests/Models/Tickets/ToTests.cs b/test/ZendeskApi_v2.Test/Models/Tickets/ToTests.cs similarity index 100% rename from src/Tests/Models/Tickets/ToTests.cs rename to test/ZendeskApi_v2.Test/Models/Tickets/ToTests.cs diff --git a/src/Tests/OrganizationTests.cs b/test/ZendeskApi_v2.Test/OrganizationTests.cs similarity index 100% rename from src/Tests/OrganizationTests.cs rename to test/ZendeskApi_v2.Test/OrganizationTests.cs diff --git a/src/Tests/RequestTests.cs b/test/ZendeskApi_v2.Test/RequestTests.cs similarity index 100% rename from src/Tests/RequestTests.cs rename to test/ZendeskApi_v2.Test/RequestTests.cs diff --git a/src/Tests/SatisfactionRatingTests.cs b/test/ZendeskApi_v2.Test/SatisfactionRatingTests.cs similarity index 100% rename from src/Tests/SatisfactionRatingTests.cs rename to test/ZendeskApi_v2.Test/SatisfactionRatingTests.cs diff --git a/src/Tests/ScheduleTests.cs b/test/ZendeskApi_v2.Test/ScheduleTests.cs similarity index 100% rename from src/Tests/ScheduleTests.cs rename to test/ZendeskApi_v2.Test/ScheduleTests.cs diff --git a/src/Tests/SearchTests.cs b/test/ZendeskApi_v2.Test/SearchTests.cs similarity index 100% rename from src/Tests/SearchTests.cs rename to test/ZendeskApi_v2.Test/SearchTests.cs diff --git a/src/Tests/Settings.cs b/test/ZendeskApi_v2.Test/Settings.cs similarity index 100% rename from src/Tests/Settings.cs rename to test/ZendeskApi_v2.Test/Settings.cs diff --git a/src/Tests/SharingAgreementTests.cs b/test/ZendeskApi_v2.Test/SharingAgreementTests.cs similarity index 100% rename from src/Tests/SharingAgreementTests.cs rename to test/ZendeskApi_v2.Test/SharingAgreementTests.cs diff --git a/src/Tests/TagTests.cs b/test/ZendeskApi_v2.Test/TagTests.cs similarity index 89% rename from src/Tests/TagTests.cs rename to test/ZendeskApi_v2.Test/TagTests.cs index bf5d5da4..0019483c 100644 --- a/src/Tests/TagTests.cs +++ b/test/ZendeskApi_v2.Test/TagTests.cs @@ -8,13 +8,6 @@ public class TagTests { private ZendeskApi api = new ZendeskApi(Settings.Site, Settings.AdminEmail, Settings.AdminPassword); - - [TestFixtureSetUp] - public void Setup() - { - - } - [Test] public void CanGetTags() { diff --git a/src/Tests/TargetTests.cs b/test/ZendeskApi_v2.Test/TargetTests.cs similarity index 100% rename from src/Tests/TargetTests.cs rename to test/ZendeskApi_v2.Test/TargetTests.cs diff --git a/src/Tests/TicketTests.cs b/test/ZendeskApi_v2.Test/TicketTests.cs similarity index 99% rename from src/Tests/TicketTests.cs rename to test/ZendeskApi_v2.Test/TicketTests.cs index 3880ee54..0f80687e 100644 --- a/src/Tests/TicketTests.cs +++ b/test/ZendeskApi_v2.Test/TicketTests.cs @@ -1254,7 +1254,7 @@ public async Task TicketField() } }; - var res = api.Tickets.CreateTicketField(tField); + var res = await api.Tickets.CreateTicketFieldAsync(tField); Assert.That(res.TicketField, Is.Not.Null); Assert.That(res.TicketField.Id, Is.Not.Null); Assert.That(res.TicketField.CustomFieldOptions.Count, Is.EqualTo(2)); @@ -1361,7 +1361,7 @@ public async Task CanGetIsPublicAsync() var ticket = new Ticket() { Subject = "my printer is on fire", - Comment = new Comment { Body= "HELP", Public = true }, + Comment = new Comment { Body = "HELP", Public = true }, Priority = TicketPriorities.Urgent }; diff --git a/src/Tests/TopicTests.cs b/test/ZendeskApi_v2.Test/TopicTests.cs similarity index 100% rename from src/Tests/TopicTests.cs rename to test/ZendeskApi_v2.Test/TopicTests.cs diff --git a/src/Tests/TriggerTests.cs b/test/ZendeskApi_v2.Test/TriggerTests.cs similarity index 100% rename from src/Tests/TriggerTests.cs rename to test/ZendeskApi_v2.Test/TriggerTests.cs diff --git a/test/ZendeskApi_v2.Test/UnitTest1.cs b/test/ZendeskApi_v2.Test/UnitTest1.cs new file mode 100644 index 00000000..de171184 --- /dev/null +++ b/test/ZendeskApi_v2.Test/UnitTest1.cs @@ -0,0 +1,13 @@ +using NUnit.Framework; + +namespace ZendeskApi_v2.Test +{ + [TestFixture] + public class UnitTest1 + { + [Test] + public void TestMethod1() + { + } + } +} diff --git a/src/Tests/UserTests.cs b/test/ZendeskApi_v2.Test/UserTests.cs similarity index 100% rename from src/Tests/UserTests.cs rename to test/ZendeskApi_v2.Test/UserTests.cs diff --git a/src/Tests/ViewTests.cs b/test/ZendeskApi_v2.Test/ViewTests.cs similarity index 100% rename from src/Tests/ViewTests.cs rename to test/ZendeskApi_v2.Test/ViewTests.cs diff --git a/src/Tests/VoiceTests.cs b/test/ZendeskApi_v2.Test/VoiceTests.cs similarity index 100% rename from src/Tests/VoiceTests.cs rename to test/ZendeskApi_v2.Test/VoiceTests.cs diff --git a/test/ZendeskApi_v2.Test/ZendeskApi_v2.Test.csproj b/test/ZendeskApi_v2.Test/ZendeskApi_v2.Test.csproj new file mode 100644 index 00000000..adb0e9be --- /dev/null +++ b/test/ZendeskApi_v2.Test/ZendeskApi_v2.Test.csproj @@ -0,0 +1,31 @@ + + + + NET45 + false + + + + + + + + + + + + + + + + + + + Always + + + Always + + + + diff --git a/src/Tests/gracehoppertocat3.jpg b/test/ZendeskApi_v2.Test/gracehoppertocat3.jpg similarity index 100% rename from src/Tests/gracehoppertocat3.jpg rename to test/ZendeskApi_v2.Test/gracehoppertocat3.jpg diff --git a/src/Tests/testupload.txt b/test/ZendeskApi_v2.Test/testupload.txt similarity index 100% rename from src/Tests/testupload.txt rename to test/ZendeskApi_v2.Test/testupload.txt