From 51ce8916d70f41bdb819c3010e379eb8b337dbaf Mon Sep 17 00:00:00 2001 From: J <40630518+JReverse@users.noreply.github.com> Date: Mon, 1 Mar 2021 21:01:20 -0600 Subject: [PATCH 1/2] Add HCaptcha Results + Update Docs --- .../HCaptchaTaskProxylessResult.cs | 14 ++++++++++++++ .../CaptchaTasksResults/HCaptchaTaskResult.cs | 14 ++++++++++++++ README.md | 4 ++++ 3 files changed, 32 insertions(+) create mode 100644 CapMonsterCloud/Models/CaptchaTasksResults/HCaptchaTaskProxylessResult.cs create mode 100644 CapMonsterCloud/Models/CaptchaTasksResults/HCaptchaTaskResult.cs diff --git a/CapMonsterCloud/Models/CaptchaTasksResults/HCaptchaTaskProxylessResult.cs b/CapMonsterCloud/Models/CaptchaTasksResults/HCaptchaTaskProxylessResult.cs new file mode 100644 index 0000000..4c2fffa --- /dev/null +++ b/CapMonsterCloud/Models/CaptchaTasksResults/HCaptchaTaskProxylessResult.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace CapMonsterCloud.Models.CaptchaTasksResults +{ + public class HCaptchaTaskProxylessResult : CaptchaTaskResult + { + /// + /// Hcaptcha solution + /// + public string GRecaptchaResponse { get; set; } + } +} diff --git a/CapMonsterCloud/Models/CaptchaTasksResults/HCaptchaTaskResult.cs b/CapMonsterCloud/Models/CaptchaTasksResults/HCaptchaTaskResult.cs new file mode 100644 index 0000000..ea59cd0 --- /dev/null +++ b/CapMonsterCloud/Models/CaptchaTasksResults/HCaptchaTaskResult.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace CapMonsterCloud.Models.CaptchaTasksResults +{ + public class HCaptchaTaskResult : CaptchaTaskResult + { + /// + /// Hcaptcha solution + /// + public string GRecaptchaResponse { get; set; } + } +} diff --git a/README.md b/README.md index 1d1798f..05185f5 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,8 @@ Task types: - NoCaptchaTask - NoCaptchaTaskProxyless - RecaptchaV3TaskProxyless +- HCaptchaTask +- HCaptchaTaskProxyless ```c# // Creating a NoCaptchaTaskProxyless task object @@ -51,6 +53,8 @@ Task result types: - NoCaptchaTaskProxylessResult - NoCaptchaTaskResult - RecaptchaV3TaskProxylessResult +- HCaptchaTaskProxylessResult +- HCaptchaTaskResult ```c# // Get the task result From 7f99e8440f0fe34c87a00c91a91cdcbfd2421ee9 Mon Sep 17 00:00:00 2001 From: J <40630518+JReverse@users.noreply.github.com> Date: Mon, 1 Mar 2021 21:11:49 -0600 Subject: [PATCH 2/2] Remove Unused imports --- .../Models/CaptchaTasksResults/CaptchaTaskResult.cs | 6 +----- .../CaptchaTasksResults/FunCaptchaTaskProxylessResult.cs | 6 +----- .../CaptchaTasksResults/HCaptchaTaskProxylessResult.cs | 6 +----- .../Models/CaptchaTasksResults/HCaptchaTaskResult.cs | 8 ++------ .../Models/CaptchaTasksResults/ImageToTextTaskResult.cs | 6 +----- .../CaptchaTasksResults/NoCaptchaTaskProxylessResult.cs | 6 +----- .../Models/CaptchaTasksResults/NoCaptchaTaskResult.cs | 6 +----- .../CaptchaTasksResults/RecaptchaV3TaskProxylessResult.cs | 6 +----- CapMonsterCloud/Models/Requests/BaseRequest.cs | 6 +----- CapMonsterCloud/Models/Requests/CreateTaskRequest.cs | 3 --- CapMonsterCloud/Models/Requests/GetBalanceRequest.cs | 7 +------ CapMonsterCloud/Models/Requests/GetTaskResultRequest.cs | 7 +------ CapMonsterCloud/Models/Responses/BaseResponse.cs | 5 +---- CapMonsterCloud/Models/Responses/CreateTaskResponse.cs | 6 +----- CapMonsterCloud/Models/Responses/GetBalanceResponse.cs | 6 +----- CapMonsterCloud/Models/Responses/GetTaskResultResponse.cs | 3 --- 16 files changed, 15 insertions(+), 78 deletions(-) diff --git a/CapMonsterCloud/Models/CaptchaTasksResults/CaptchaTaskResult.cs b/CapMonsterCloud/Models/CaptchaTasksResults/CaptchaTaskResult.cs index 87ffc61..3cad1ce 100644 --- a/CapMonsterCloud/Models/CaptchaTasksResults/CaptchaTaskResult.cs +++ b/CapMonsterCloud/Models/CaptchaTasksResults/CaptchaTaskResult.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CapMonsterCloud.Models.CaptchaTasksResults +namespace CapMonsterCloud.Models.CaptchaTasksResults { public abstract class CaptchaTaskResult { diff --git a/CapMonsterCloud/Models/CaptchaTasksResults/FunCaptchaTaskProxylessResult.cs b/CapMonsterCloud/Models/CaptchaTasksResults/FunCaptchaTaskProxylessResult.cs index 292200b..90039d3 100644 --- a/CapMonsterCloud/Models/CaptchaTasksResults/FunCaptchaTaskProxylessResult.cs +++ b/CapMonsterCloud/Models/CaptchaTasksResults/FunCaptchaTaskProxylessResult.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CapMonsterCloud.Models.CaptchaTasksResults +namespace CapMonsterCloud.Models.CaptchaTasksResults { public class FunCaptchaTaskProxylessResult : CaptchaTaskResult { diff --git a/CapMonsterCloud/Models/CaptchaTasksResults/HCaptchaTaskProxylessResult.cs b/CapMonsterCloud/Models/CaptchaTasksResults/HCaptchaTaskProxylessResult.cs index 4c2fffa..213a0a7 100644 --- a/CapMonsterCloud/Models/CaptchaTasksResults/HCaptchaTaskProxylessResult.cs +++ b/CapMonsterCloud/Models/CaptchaTasksResults/HCaptchaTaskProxylessResult.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CapMonsterCloud.Models.CaptchaTasksResults +namespace CapMonsterCloud.Models.CaptchaTasksResults { public class HCaptchaTaskProxylessResult : CaptchaTaskResult { diff --git a/CapMonsterCloud/Models/CaptchaTasksResults/HCaptchaTaskResult.cs b/CapMonsterCloud/Models/CaptchaTasksResults/HCaptchaTaskResult.cs index ea59cd0..da702c1 100644 --- a/CapMonsterCloud/Models/CaptchaTasksResults/HCaptchaTaskResult.cs +++ b/CapMonsterCloud/Models/CaptchaTasksResults/HCaptchaTaskResult.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CapMonsterCloud.Models.CaptchaTasksResults +namespace CapMonsterCloud.Models.CaptchaTasksResults { public class HCaptchaTaskResult : CaptchaTaskResult { @@ -10,5 +6,5 @@ public class HCaptchaTaskResult : CaptchaTaskResult /// Hcaptcha solution /// public string GRecaptchaResponse { get; set; } - } + } } diff --git a/CapMonsterCloud/Models/CaptchaTasksResults/ImageToTextTaskResult.cs b/CapMonsterCloud/Models/CaptchaTasksResults/ImageToTextTaskResult.cs index 2e85eed..27af58c 100644 --- a/CapMonsterCloud/Models/CaptchaTasksResults/ImageToTextTaskResult.cs +++ b/CapMonsterCloud/Models/CaptchaTasksResults/ImageToTextTaskResult.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CapMonsterCloud.Models.CaptchaTasksResults +namespace CapMonsterCloud.Models.CaptchaTasksResults { public class ImageToTextTaskResult : CaptchaTaskResult { diff --git a/CapMonsterCloud/Models/CaptchaTasksResults/NoCaptchaTaskProxylessResult.cs b/CapMonsterCloud/Models/CaptchaTasksResults/NoCaptchaTaskProxylessResult.cs index afae9c2..14ed99b 100644 --- a/CapMonsterCloud/Models/CaptchaTasksResults/NoCaptchaTaskProxylessResult.cs +++ b/CapMonsterCloud/Models/CaptchaTasksResults/NoCaptchaTaskProxylessResult.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CapMonsterCloud.Models.CaptchaTasksResults +namespace CapMonsterCloud.Models.CaptchaTasksResults { public class NoCaptchaTaskProxylessResult : CaptchaTaskResult { diff --git a/CapMonsterCloud/Models/CaptchaTasksResults/NoCaptchaTaskResult.cs b/CapMonsterCloud/Models/CaptchaTasksResults/NoCaptchaTaskResult.cs index a777125..3caba30 100644 --- a/CapMonsterCloud/Models/CaptchaTasksResults/NoCaptchaTaskResult.cs +++ b/CapMonsterCloud/Models/CaptchaTasksResults/NoCaptchaTaskResult.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CapMonsterCloud.Models.CaptchaTasksResults +namespace CapMonsterCloud.Models.CaptchaTasksResults { public class NoCaptchaTaskResult : CaptchaTaskResult { diff --git a/CapMonsterCloud/Models/CaptchaTasksResults/RecaptchaV3TaskProxylessResult.cs b/CapMonsterCloud/Models/CaptchaTasksResults/RecaptchaV3TaskProxylessResult.cs index 80a4815..50a9ef2 100644 --- a/CapMonsterCloud/Models/CaptchaTasksResults/RecaptchaV3TaskProxylessResult.cs +++ b/CapMonsterCloud/Models/CaptchaTasksResults/RecaptchaV3TaskProxylessResult.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CapMonsterCloud.Models.CaptchaTasksResults +namespace CapMonsterCloud.Models.CaptchaTasksResults { public class RecaptchaV3TaskProxylessResult : CaptchaTaskResult { diff --git a/CapMonsterCloud/Models/Requests/BaseRequest.cs b/CapMonsterCloud/Models/Requests/BaseRequest.cs index 9e9fc4e..9885508 100644 --- a/CapMonsterCloud/Models/Requests/BaseRequest.cs +++ b/CapMonsterCloud/Models/Requests/BaseRequest.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CapMonsterCloud.Models.Requests +namespace CapMonsterCloud.Models.Requests { internal abstract class BaseRequest { diff --git a/CapMonsterCloud/Models/Requests/CreateTaskRequest.cs b/CapMonsterCloud/Models/Requests/CreateTaskRequest.cs index f474488..dbb3cd3 100644 --- a/CapMonsterCloud/Models/Requests/CreateTaskRequest.cs +++ b/CapMonsterCloud/Models/Requests/CreateTaskRequest.cs @@ -1,7 +1,4 @@ using CapMonsterCloud.Models.CaptchaTasks; -using System; -using System.Collections.Generic; -using System.Text; namespace CapMonsterCloud.Models.Requests { diff --git a/CapMonsterCloud/Models/Requests/GetBalanceRequest.cs b/CapMonsterCloud/Models/Requests/GetBalanceRequest.cs index 0c9e67b..8556911 100644 --- a/CapMonsterCloud/Models/Requests/GetBalanceRequest.cs +++ b/CapMonsterCloud/Models/Requests/GetBalanceRequest.cs @@ -1,9 +1,4 @@ -using CapMonsterCloud.Models.CaptchaTasks; -using System; -using System.Collections.Generic; -using System.Text; - -namespace CapMonsterCloud.Models.Requests +namespace CapMonsterCloud.Models.Requests { internal class GetBalanceRequest : BaseRequest { diff --git a/CapMonsterCloud/Models/Requests/GetTaskResultRequest.cs b/CapMonsterCloud/Models/Requests/GetTaskResultRequest.cs index 80f614c..680ddc0 100644 --- a/CapMonsterCloud/Models/Requests/GetTaskResultRequest.cs +++ b/CapMonsterCloud/Models/Requests/GetTaskResultRequest.cs @@ -1,9 +1,4 @@ -using CapMonsterCloud.Models.CaptchaTasks; -using System; -using System.Collections.Generic; -using System.Text; - -namespace CapMonsterCloud.Models.Requests +namespace CapMonsterCloud.Models.Requests { internal class GetTaskResultRequest : BaseRequest { diff --git a/CapMonsterCloud/Models/Responses/BaseResponse.cs b/CapMonsterCloud/Models/Responses/BaseResponse.cs index d8f3d73..f4d3d6d 100644 --- a/CapMonsterCloud/Models/Responses/BaseResponse.cs +++ b/CapMonsterCloud/Models/Responses/BaseResponse.cs @@ -1,7 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; -using CapMonsterCloud.Exceptions; +using CapMonsterCloud.Exceptions; using Newtonsoft.Json; using Newtonsoft.Json.Converters; diff --git a/CapMonsterCloud/Models/Responses/CreateTaskResponse.cs b/CapMonsterCloud/Models/Responses/CreateTaskResponse.cs index 3fe8c17..d4a9e7f 100644 --- a/CapMonsterCloud/Models/Responses/CreateTaskResponse.cs +++ b/CapMonsterCloud/Models/Responses/CreateTaskResponse.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CapMonsterCloud.Models.Responses +namespace CapMonsterCloud.Models.Responses { internal class CreateTaskResponse : BaseResponse { diff --git a/CapMonsterCloud/Models/Responses/GetBalanceResponse.cs b/CapMonsterCloud/Models/Responses/GetBalanceResponse.cs index 9032575..453190e 100644 --- a/CapMonsterCloud/Models/Responses/GetBalanceResponse.cs +++ b/CapMonsterCloud/Models/Responses/GetBalanceResponse.cs @@ -1,8 +1,4 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace CapMonsterCloud.Models.Responses +namespace CapMonsterCloud.Models.Responses { internal class GetBalanceResponse : BaseResponse { diff --git a/CapMonsterCloud/Models/Responses/GetTaskResultResponse.cs b/CapMonsterCloud/Models/Responses/GetTaskResultResponse.cs index 214fce0..01b2614 100644 --- a/CapMonsterCloud/Models/Responses/GetTaskResultResponse.cs +++ b/CapMonsterCloud/Models/Responses/GetTaskResultResponse.cs @@ -1,7 +1,4 @@ using CapMonsterCloud.Models.CaptchaTasksResults; -using System; -using System.Collections.Generic; -using System.Text; namespace CapMonsterCloud.Models.Responses {