Skip to content

Commit

Permalink
Update Nuget
Browse files Browse the repository at this point in the history
  • Loading branch information
ductran95 committed Jun 2, 2023
1 parent 1e5469d commit 6283527
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
using JustCSharp.ShopeeSDK.Attributes;
using JustCSharp.ShopeeSDK.Request;
using JustCSharp.ShopeeSDK.Response;
using JustCSharp.Utility.Helpers;
using RestSharp;

namespace JustCSharp.ShopeeSDK.Extensions;
Expand All @@ -15,7 +16,7 @@ public static void SetRestRequestQueryData<T>(this IShopeeRequest<T> request, Re
where T : IShopeeResponse
{
// get only not ignored properties
var properties = request.GetType().GetProperties(ReflectionConstants.SearchPropertyFlags)
var properties = request.GetType().GetProperties(ReflectionHelper.SearchPropertyFlags)
.Where(x => x.GetCustomAttribute<QueryIgnoreAttribute>() == null).ToList();

foreach (var property in properties)
Expand Down
6 changes: 3 additions & 3 deletions src/JustCSharp.ShopeeSDK/JustCSharp.ShopeeSDK.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<TargetFrameworks>net6.0;netstandard2.1;net7.0</TargetFrameworks>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="JustCSharp.Core" Version="2.9.0" />
<PackageReference Include="JustCSharp.Core" Version="2.11.0" />
<PackageReference Include="RestSharp" Version="110.2.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' != 'net7.0'">
<PackageReference Include="Microsoft.Extensions.Options" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="6.0.0" />
<PackageReference Include="Microsoft.Extensions.Options" Version="7.0.1" />
<PackageReference Include="Microsoft.Extensions.Options.ConfigurationExtensions" Version="7.0.0" />
</ItemGroup>

<ItemGroup Condition="'$(TargetFramework)' == 'net7.0'">
Expand Down
5 changes: 3 additions & 2 deletions src/JustCSharp.ShopeeSDK/ShopeeClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
using JustCSharp.ShopeeSDK.Extensions;
using JustCSharp.ShopeeSDK.Request;
using JustCSharp.ShopeeSDK.Response;
using JustCSharp.Utility;
using JustCSharp.Utility.Helpers;
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
Expand Down Expand Up @@ -80,8 +81,8 @@ public async Task<T> ExecuteAsync<T>(IShopeeRequest<T> request, CancellationToke

public string GetPasswordHash([NotNull] string password)
{
return CryptoHelper.Hash(CryptoHelper.Hash(password, HashAlgorithmEnum.MD5).ToLower(),
HashAlgorithmEnum.SHA256).ToLower();
return CryptoHelper.Hash(CryptoHelper.Hash(password, HashAlgorithmType.MD5).ToLower(),
HashAlgorithmType.SHA256).ToLower();
}

protected T ProcessResponse<T>(RestResponse<T> response)
Expand Down

0 comments on commit 6283527

Please sign in to comment.