Skip to content

Commit

Permalink
Release 24.11 (#96)
Browse files Browse the repository at this point in the history
* Version updated

---------

Co-authored-by: Denis Averin <[email protected]>
  • Loading branch information
ivankamkin and Denis-Averin authored Nov 29, 2024
1 parent b10a83f commit 8a80024
Show file tree
Hide file tree
Showing 11 changed files with 24 additions and 76 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
[![Nuget](https://img.shields.io/nuget/v/Aspose.BarCode-Cloud)](https://www.nuget.org/packages/Aspose.BarCode-Cloud/)

- API version: 3.0
- SDK version: 24.10.0
- SDK version: 24.11.0

## Demo applications

Expand Down
2 changes: 1 addition & 1 deletion examples/GenerateQR/GenerateQR.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Aspose.BarCode-Cloud" Version="24.10.0" />
<PackageReference Include="Aspose.BarCode-Cloud" Version="24.11.0" />
</ItemGroup>

</Project>
2 changes: 1 addition & 1 deletion examples/ReadQR/ReadQR.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Aspose.BarCode-Cloud" Version="24.10.0" />
<PackageReference Include="Aspose.BarCode-Cloud" Version="24.11.0" />
</ItemGroup>

</Project>
36 changes: 6 additions & 30 deletions src/Api/BarcodeApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -366,12 +366,8 @@ public async Task<BarcodeResponseList> GetBarcodeRecognizeAsync(GetBarcodeRecogn
null,
null);

if (response != null)
{
return (BarcodeResponseList)SerializationHelper.Deserialize(response, typeof(BarcodeResponseList));
}
return response == null ? null : (BarcodeResponseList)SerializationHelper.Deserialize(response, typeof(BarcodeResponseList));

return null;

}

Expand Down Expand Up @@ -514,12 +510,8 @@ public async Task<BarcodeResponseList> PostBarcodeRecognizeFromUrlOrContentAsync
null,
formParams);

if (response != null)
{
return (BarcodeResponseList)SerializationHelper.Deserialize(response, typeof(BarcodeResponseList));
}
return response == null ? null : (BarcodeResponseList)SerializationHelper.Deserialize(response, typeof(BarcodeResponseList));

return null;

}

Expand Down Expand Up @@ -705,12 +697,8 @@ public async Task<ResultImageInfo> PutBarcodeGenerateFileAsync(PutBarcodeGenerat
null,
null);

if (response != null)
{
return (ResultImageInfo)SerializationHelper.Deserialize(response, typeof(ResultImageInfo));
}
return response == null ? null : (ResultImageInfo)SerializationHelper.Deserialize(response, typeof(ResultImageInfo));

return null;

}

Expand Down Expand Up @@ -757,12 +745,8 @@ public async Task<BarcodeResponseList> PutBarcodeRecognizeFromBodyAsync(PutBarco
null,
null);

if (response != null)
{
return (BarcodeResponseList)SerializationHelper.Deserialize(response, typeof(BarcodeResponseList));
}
return response == null ? null : (BarcodeResponseList)SerializationHelper.Deserialize(response, typeof(BarcodeResponseList));

return null;

}

Expand Down Expand Up @@ -809,12 +793,8 @@ public async Task<ResultImageInfo> PutGenerateMultipleAsync(PutGenerateMultipleR
null,
null);

if (response != null)
{
return (ResultImageInfo)SerializationHelper.Deserialize(response, typeof(ResultImageInfo));
}
return response == null ? null : (ResultImageInfo)SerializationHelper.Deserialize(response, typeof(ResultImageInfo));

return null;

}

Expand Down Expand Up @@ -869,12 +849,8 @@ public async Task<BarcodeResponseList> ScanBarcodeAsync(ScanBarcodeRequest reque
null,
formParams);

if (response != null)
{
return (BarcodeResponseList)SerializationHelper.Deserialize(response, typeof(BarcodeResponseList));
}
return response == null ? null : (BarcodeResponseList)SerializationHelper.Deserialize(response, typeof(BarcodeResponseList));

return null;

}
}
Expand Down
6 changes: 1 addition & 5 deletions src/Api/FileApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -292,12 +292,8 @@ public async Task<FilesUploadResult> UploadFileAsync(UploadFileRequest request)
null,
formParams);

if (response != null)
{
return (FilesUploadResult)SerializationHelper.Deserialize(response, typeof(FilesUploadResult));
}
return response == null ? null : (FilesUploadResult)SerializationHelper.Deserialize(response, typeof(FilesUploadResult));

return null;

}
}
Expand Down
6 changes: 1 addition & 5 deletions src/Api/FolderApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -229,12 +229,8 @@ public async Task<FilesList> GetFilesListAsync(GetFilesListRequest request)
null,
null);

if (response != null)
{
return (FilesList)SerializationHelper.Deserialize(response, typeof(FilesList));
}
return response == null ? null : (FilesList)SerializationHelper.Deserialize(response, typeof(FilesList));

return null;

}

Expand Down
24 changes: 4 additions & 20 deletions src/Api/StorageApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,8 @@ public async Task<DiscUsage> GetDiscUsageAsync(GetDiscUsageRequest request)
null,
null);

if (response != null)
{
return (DiscUsage)SerializationHelper.Deserialize(response, typeof(DiscUsage));
}
return response == null ? null : (DiscUsage)SerializationHelper.Deserialize(response, typeof(DiscUsage));

return null;

}

Expand Down Expand Up @@ -151,12 +147,8 @@ public async Task<FileVersions> GetFileVersionsAsync(GetFileVersionsRequest requ
null,
null);

if (response != null)
{
return (FileVersions)SerializationHelper.Deserialize(response, typeof(FileVersions));
}
return response == null ? null : (FileVersions)SerializationHelper.Deserialize(response, typeof(FileVersions));

return null;

}

Expand Down Expand Up @@ -195,12 +187,8 @@ public async Task<ObjectExist> ObjectExistsAsync(ObjectExistsRequest request)
null,
null);

if (response != null)
{
return (ObjectExist)SerializationHelper.Deserialize(response, typeof(ObjectExist));
}
return response == null ? null : (ObjectExist)SerializationHelper.Deserialize(response, typeof(ObjectExist));

return null;

}

Expand Down Expand Up @@ -233,12 +221,8 @@ public async Task<StorageExist> StorageExistsAsync(StorageExistsRequest request)
null,
null);

if (response != null)
{
return (StorageExist)SerializationHelper.Deserialize(response, typeof(StorageExist));
}
return response == null ? null : (StorageExist)SerializationHelper.Deserialize(response, typeof(StorageExist));

return null;

}
}
Expand Down
7 changes: 4 additions & 3 deletions src/Aspose.BarCode.Cloud.Sdk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
<PropertyGroup>
<TargetFrameworks>netstandard2.0</TargetFrameworks>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningsNotAsErrors>IDE0005;IDE0008;IDE1006</WarningsNotAsErrors>
<EnforceCodeStyleInBuild>true</EnforceCodeStyleInBuild>
<AnalysisLevel>latest-Recommended</AnalysisLevel>

Expand All @@ -23,11 +24,11 @@ Aspose.Barcode for Cloud allows you to control all aspects of the image and barc
<PackageId>Aspose.BarCode-Cloud</PackageId>
<Product>Aspose.BarCode Cloud SDK for .NET</Product>
<PackageIcon>PackageIcon.png</PackageIcon>
<Version>24.10.0</Version>
<Version>24.11.0</Version>
<Authors>Aspose</Authors>
<AssemblyVersion>24.10.0.0</AssemblyVersion>
<AssemblyVersion>24.11.0.0</AssemblyVersion>
<PackageReadmeFile>README.md</PackageReadmeFile>
<PackageReleaseNotes>https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dotnet/releases/tag/v24.10.0</PackageReleaseNotes>
<PackageReleaseNotes>https://github.com/aspose-barcode-cloud/aspose-barcode-cloud-dotnet/releases/tag/v24.11.0</PackageReleaseNotes>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<PackageLicenseFile>LICENSE.txt</PackageLicenseFile>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
Expand Down
2 changes: 1 addition & 1 deletion src/Internal/ApiInvoker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ private async Task<object> InvokeInternalAsync(string path,
{
if (binaryResponse)
{
Stream resultStream = new MemoryStream();
MemoryStream resultStream = new MemoryStream();
await response.Content.CopyToAsync(resultStream);
resultStream.Position = 0;
return resultStream;
Expand Down
2 changes: 1 addition & 1 deletion src/Internal/RequestHandlers/DebugLogRequestHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private static void LogResponse(HttpWebResponse response, Stream resultStream)
Log(header, sb);
}

private static void FormatHeaders(StringBuilder sb, NameValueCollection headerDictionary)
private static void FormatHeaders(StringBuilder sb, WebHeaderCollection headerDictionary)
{
foreach (var key in headerDictionary.AllKeys)
{
Expand Down
11 changes: 3 additions & 8 deletions src/Internal/UrlHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,9 @@ internal static class UrlHelper
{
public static string AddPathParameter(string url, string parameterName, object parameterValue)
{
if (parameterValue == null || string.IsNullOrEmpty(parameterValue.ToString()))
{
url = url.Replace("/{" + parameterName + "}", string.Empty);
}
else
{
url = url.Replace("{" + parameterName + "}", parameterValue.ToString());
}
url = parameterValue == null || string.IsNullOrEmpty(parameterValue.ToString())
? url.Replace("/{" + parameterName + "}", string.Empty)
: url.Replace("{" + parameterName + "}", parameterValue.ToString());

return url;
}
Expand Down

0 comments on commit 8a80024

Please sign in to comment.