added test solution
This commit is contained in:
@@ -1,10 +1,12 @@
|
|||||||
|
|
||||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||||
# Visual Studio Version 18
|
# Visual Studio Version 18
|
||||||
VisualStudioVersion = 18.4.11626.88 stable
|
VisualStudioVersion = 18.4.11626.88
|
||||||
MinimumVisualStudioVersion = 10.0.40219.1
|
MinimumVisualStudioVersion = 10.0.40219.1
|
||||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Chtn.CSharp.SDK", "Chtn.CSharp.SDK.csproj", "{CE1ED0A8-C1D4-A4F2-A1F7-46A18938BB73}"
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Chtn.CSharp.SDK", "Chtn.CSharp.SDK.csproj", "{CE1ED0A8-C1D4-A4F2-A1F7-46A18938BB73}"
|
||||||
EndProject
|
EndProject
|
||||||
|
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Chtn.CSharp.SDK.Tests", "..\Chtn.CSharp.SDK.Tests\Chtn.CSharp.SDK.Tests.csproj", "{2E03EB2D-DE7C-443D-8713-33A6E77F48C0}"
|
||||||
|
EndProject
|
||||||
Global
|
Global
|
||||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||||
Debug|Any CPU = Debug|Any CPU
|
Debug|Any CPU = Debug|Any CPU
|
||||||
@@ -15,6 +17,10 @@ Global
|
|||||||
{CE1ED0A8-C1D4-A4F2-A1F7-46A18938BB73}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
{CE1ED0A8-C1D4-A4F2-A1F7-46A18938BB73}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
{CE1ED0A8-C1D4-A4F2-A1F7-46A18938BB73}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
{CE1ED0A8-C1D4-A4F2-A1F7-46A18938BB73}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
{CE1ED0A8-C1D4-A4F2-A1F7-46A18938BB73}.Release|Any CPU.Build.0 = Release|Any CPU
|
{CE1ED0A8-C1D4-A4F2-A1F7-46A18938BB73}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
|
{2E03EB2D-DE7C-443D-8713-33A6E77F48C0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||||
|
{2E03EB2D-DE7C-443D-8713-33A6E77F48C0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||||
|
{2E03EB2D-DE7C-443D-8713-33A6E77F48C0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||||
|
{2E03EB2D-DE7C-443D-8713-33A6E77F48C0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||||
EndGlobalSection
|
EndGlobalSection
|
||||||
GlobalSection(SolutionProperties) = preSolution
|
GlobalSection(SolutionProperties) = preSolution
|
||||||
HideSolutionNode = FALSE
|
HideSolutionNode = FALSE
|
||||||
|
|||||||
@@ -33,45 +33,45 @@ namespace Chtn.CSharp.SDK.Services
|
|||||||
}
|
}
|
||||||
|
|
||||||
public async Task<AuthMethods> GetAuthMethods(GetAuthMethodsReq req) =>
|
public async Task<AuthMethods> GetAuthMethods(GetAuthMethodsReq req) =>
|
||||||
await _apiClient.PostAsync<GetAuthMethodsReq, AuthMethods>("auth/get-auth-methods", req);
|
await _apiClient.PostAsync<GetAuthMethodsReq, AuthMethods>("user/authOptions", req);
|
||||||
|
|
||||||
public async Task OtpSendCode(OtpPleSendCodeReq req) =>
|
public async Task OtpSendCode(OtpPleSendCodeReq req) =>
|
||||||
await _apiClient.PostAsync<OtpPleSendCodeReq, object>("auth/otp-send-code", req);
|
await _apiClient.PostAsync<OtpPleSendCodeReq, object>("v2/user/otpSendCode", req);
|
||||||
|
|
||||||
public async Task<SignInSuccessResp> OtpVerifyCode(OtpPleVerifyCodeReq req) =>
|
public async Task<SignInSuccessResp> OtpVerifyCode(OtpPleVerifyCodeReq req) =>
|
||||||
await _apiClient.PostAsync<OtpPleVerifyCodeReq, SignInSuccessResp>("auth/otp-verify-code", req);
|
await _apiClient.PostAsync<OtpPleVerifyCodeReq, SignInSuccessResp>("v2/user/otpVerifyCode", req);
|
||||||
|
|
||||||
public async Task<SignInSuccessResp> LoginPasswordAuth(LoginPasswordAuthReq req) =>
|
public async Task<SignInSuccessResp> LoginPasswordAuth(LoginPasswordAuthReq req) =>
|
||||||
await _apiClient.PostAsync<LoginPasswordAuthReq, SignInSuccessResp>("auth/login-password-auth", req);
|
await _apiClient.PostAsync<LoginPasswordAuthReq, SignInSuccessResp>("v2/user/loginPasswordAuth", req);
|
||||||
|
|
||||||
public async Task<UserDataValidationResp> IsUsernameUsed(UnameUsageReq req) =>
|
public async Task<UserDataValidationResp> IsUsernameUsed(UnameUsageReq req) =>
|
||||||
await _apiClient.PostAsync<UnameUsageReq, UserDataValidationResp>("auth/is-username-used", req);
|
await _apiClient.PostAsync<UnameUsageReq, UserDataValidationResp>("v2/user/unameUsage", req);
|
||||||
|
|
||||||
public async Task<UserDataValidationResp> IsEmailUsed(EmailUsageReq req) =>
|
public async Task<UserDataValidationResp> IsEmailUsed(EmailUsageReq req) =>
|
||||||
await _apiClient.PostAsync<EmailUsageReq, UserDataValidationResp>("auth/is-email-used", req);
|
await _apiClient.PostAsync<EmailUsageReq, UserDataValidationResp>("v2/user/emailUsage", req);
|
||||||
|
|
||||||
public async Task PleSendVCode(PleSendVCodeReq req) =>
|
public async Task PleSendVCode(PleSendVCodeReq req) =>
|
||||||
await _apiClient.PostAsync<PleSendVCodeReq, object>("auth/ple-send-vcode", req);
|
await _apiClient.PostAsync<PleSendVCodeReq, object>("v2/user/pleSendVCode", req);
|
||||||
|
|
||||||
public async Task<PleVerifyCodeResp> PleVerifyCode(PleVerifyCodeReq req) =>
|
public async Task<PleVerifyCodeResp> PleVerifyCode(PleVerifyCodeReq req) =>
|
||||||
await _apiClient.PostAsync<PleVerifyCodeReq, PleVerifyCodeResp>("auth/ple-verify-code", req);
|
await _apiClient.PostAsync<PleVerifyCodeReq, PleVerifyCodeResp>("v2/user/pleVerifyCode", req);
|
||||||
|
|
||||||
public async Task<SignInSuccessResp> FinishPLEAccount(FinishPleAccountReq req) =>
|
public async Task<SignInSuccessResp> FinishPLEAccount(FinishPleAccountReq req) =>
|
||||||
await _apiClient.PostAsync<FinishPleAccountReq, SignInSuccessResp>("auth/finish-ple-account", req);
|
await _apiClient.PostAsync<FinishPleAccountReq, SignInSuccessResp>("v2/user/finishPLEAccount", req);
|
||||||
|
|
||||||
public async Task<SignInSuccessResp> LoginWithGoogle(LoginWithGoogleReq req) =>
|
public async Task<SignInSuccessResp> LoginWithGoogle(LoginWithGoogleReq req) =>
|
||||||
await _apiClient.PostAsync<LoginWithGoogleReq, SignInSuccessResp>("auth/login-with-google", req);
|
await _apiClient.PostAsync<LoginWithGoogleReq, SignInSuccessResp>("user/loginWithGoogle", req);
|
||||||
|
|
||||||
public async Task<SignInSuccessResp> LoginWithApple(LoginWithAppleReq req) =>
|
public async Task<SignInSuccessResp> LoginWithApple(LoginWithAppleReq req) =>
|
||||||
await _apiClient.PostAsync<LoginWithAppleReq, SignInSuccessResp>("auth/login-with-apple", req);
|
await _apiClient.PostAsync<LoginWithAppleReq, SignInSuccessResp>("user/loginWithApple", req);
|
||||||
|
|
||||||
public async Task<SignInSuccessResp> Register(RegisterReq req) =>
|
public async Task<SignInSuccessResp> Register(RegisterReq req) =>
|
||||||
await _apiClient.PostAsync<RegisterReq, SignInSuccessResp>("auth/register", req);
|
await _apiClient.PostAsync<RegisterReq, SignInSuccessResp>("v2/user/register", req);
|
||||||
|
|
||||||
public async Task<ResetPasswordResp> ResetPassword(ResetPasswordReq req) =>
|
public async Task<ResetPasswordResp> ResetPassword(ResetPasswordReq req) =>
|
||||||
await _apiClient.PostAsync<ResetPasswordReq, ResetPasswordResp>("auth/reset-password", req);
|
await _apiClient.PostAsync<ResetPasswordReq, ResetPasswordResp>("user/resetPassword", req);
|
||||||
|
|
||||||
public async Task VerifyResetCode(VerifyPasswordResetReq req) =>
|
public async Task VerifyResetCode(VerifyPasswordResetReq req) =>
|
||||||
await _apiClient.PostAsync<VerifyPasswordResetReq, object>("auth/verify-reset-code", req);
|
await _apiClient.PostAsync<VerifyPasswordResetReq, object>("user/verifyResetCode", req);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Binary file not shown.
Reference in New Issue
Block a user