Skip to content

Commit f8fc11c

Browse files
committed
Releaes Aspose.Cells.Cloud SDK 19.6
1 parent 879cf74 commit f8fc11c

File tree

8 files changed

+149
-13
lines changed

8 files changed

+149
-13
lines changed

Aspose.Cells-Cloud.nuspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
33
<metadata>
44
<id>Aspose.Cells-Cloud</id>
5-
<version>19.4</version>
5+
<version>19.6</version>
66
<title>Aspose.Cells Cloud SDK for .NET</title>
77
<authors>Naeem</authors>
88
<owners>asposecloud</owners>

Aspose.Cells.Cloud.SDK.Test/Api/CellsSaveAsApiTests.cs

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,26 @@ public void CellsSaveAsPostDocumentSaveAsPDFTest()
9191
PdfSaveOptions saveOptions = new PdfSaveOptions();
9292
saveOptions.OnePagePerSheet = true;
9393
saveOptions.SaveFormat = "pdf";
94-
string newfilename = "newbook.xlsx";
94+
string newfilename = "newbook.pdf";
95+
bool? isAutoFitRows = true;
96+
bool? isAutoFitColumns = true;
97+
string folder = TEMPFOLDER;
98+
UpdateDataFile(folder, name);
99+
var response = instance.CellsSaveAsPostDocumentSaveAs(name, saveOptions, newfilename, isAutoFitRows, isAutoFitColumns, folder);
100+
Assert.IsInstanceOf<SaveResponse>(response, "response is SaveResponse");
101+
}
102+
/// <summary>
103+
/// Test CellsSaveAsPostDocumentSaveAs
104+
/// </summary>
105+
[Test]
106+
public void CellsSaveAsPostDocumentSaveAsMDTest()
107+
{
108+
// TODO uncomment below to test the method and replace null with proper value
109+
string name = BOOK1;
110+
PdfSaveOptions saveOptions = new PdfSaveOptions();
111+
saveOptions.OnePagePerSheet = true;
112+
saveOptions.SaveFormat = "markdown";
113+
string newfilename = "newbook.md";
95114
bool? isAutoFitRows = true;
96115
bool? isAutoFitColumns = true;
97116
string folder = TEMPFOLDER;

Aspose.Cells.Cloud.SDK.Test/Api/CellsWorkbookApiTests.cs

Lines changed: 36 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,25 @@ public void CellsWorkbookGetWorkBookTest()
175175
var response = instance.CellsWorkbookGetWorkbook(name, password, format, isAutoFit, onlySaveTable, folder,null, outPath);
176176
Assert.IsInstanceOf<System.IO.Stream>(response, "response is System.IO.Stream");
177177
}
178-
178+
/// <summary>
179+
/// Test CellsWorkbookGetWorkBook
180+
/// </summary>
181+
[Test]
182+
public void CellsWorkbookGetMarkdownFormatTest()
183+
{
184+
// TODO uncomment below to test the method and replace null with proper value
185+
string name = BOOK1;
186+
string password = null;
187+
string format = "md";
188+
bool? isAutoFit = true;
189+
bool? onlySaveTable = true;
190+
string folder = TEMPFOLDER;
191+
string outPath = null;
192+
UpdateDataFile(folder, name);
193+
var response = instance.CellsWorkbookGetWorkbook(name, password, format, isAutoFit, onlySaveTable, folder, null, outPath);
194+
Assert.IsInstanceOf<System.IO.Stream>(response, "response is System.IO.Stream");
195+
WriteResponseStream("markdowntest.md" , response);
196+
}
179197
/// <summary>
180198
/// Test CellsWorkbookGetWorkBookDefaultStyle
181199
/// </summary>
@@ -471,6 +489,23 @@ public void CellsWorkbookPutConvertWorkBookTest()
471489
//WriteResponseStream(workbook + "." + format, response);
472490
}
473491

492+
/// <summary>
493+
/// Test CellsWorkbookPutConvertWorkBook
494+
/// </summary>
495+
[Test]
496+
public void CellsWorkbookPutConvertMDTest()
497+
{
498+
// TODO uncomment below to test the method and replace null with proper value
499+
string workbook = BOOK1;
500+
string format = "md";
501+
string password = null;
502+
string outPath = null;
503+
UpdateDataFile(TEMPFOLDER, BOOK1);
504+
var response = instance.CellsWorkbookPutConvertWorkbook(GetTestDataByteArray(workbook), format, password, outPath);
505+
Assert.IsInstanceOf<System.IO.Stream>(response, "response is System.IO.Stream");
506+
//WriteResponseStream(workbook + "." + format, response);
507+
}
508+
474509
/// <summary>
475510
/// Test CellsWorkbookPutDocumentProtectFromChanges
476511
/// </summary>

Aspose.Cells.Cloud.SDK.Test/Api/OAuthApiTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@ public void OAuthPostTest()
7272
{
7373
// TODO uncomment below to test the method and replace null with proper value
7474
string grantType = "client_credentials";
75-
string clientId = "xxxxxx-693E-xxx-xxx-xxxxxxxxx";
76-
string clientSecret = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx";
75+
string clientId = "66164C51-693E-4904-A121-545961673EC1";
76+
string clientSecret = "536e76768419db9585afdd37bb5f7533";
7777
var response = instance.OAuthPost(grantType, clientId, clientSecret);
7878
Assert.IsInstanceOf<AccessTokenResponse>(response, "response is AccessTokenResponse");
7979
Assert.IsNotNull(response.AccessToken);

Aspose.Cells.Cloud.SDK.Test/Aspose.Cells.Cloud.SDK.Test.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<Project Sdk="Microsoft.NET.Sdk">
33
<PropertyGroup>
4-
<TargetFrameworks>netcoreapp2.2;net4.5.2</TargetFrameworks>
4+
<TargetFrameworks>net4.5.2;netcoreapp2.2</TargetFrameworks>
55
<IsPackable>false</IsPackable>
66
<LangVersion>latest</LangVersion>
77
</PropertyGroup>

Aspose.Cells.Cloud.SDK/Aspose.Cells.Cloud.SDK.csproj

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
<PropertyGroup>
55
<TargetFrameworks>net4.5.2;netstandard2.0</TargetFrameworks>
6-
<AssemblyVersion>19.4.0.0</AssemblyVersion>
7-
<FileVersion>19.4.0.0</FileVersion>
8-
<Version>19.4.0</Version>
6+
<AssemblyVersion>19.6.0.0</AssemblyVersion>
7+
<FileVersion>19.6.0.0</FileVersion>
8+
<Version>19.6.0</Version>
99
<StyleCopTreatErrorsAsWarnings>false</StyleCopTreatErrorsAsWarnings>
1010
</PropertyGroup>
1111

@@ -14,9 +14,5 @@
1414
<PackageReference Include="RestSharp" Version="106.2.2" />
1515
</ItemGroup>
1616

17-
<ItemGroup>
18-
<Folder Include="Properties\" />
19-
</ItemGroup>
20-
2117
</Project>
2218

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
// --------------------------------------------------------------------------------------------------------------------
2+
// <copyright company="Aspose" file="MarkdownSaveOptions.cs">
3+
// Copyright (c) 2016 Aspose.Cells for Cloud
4+
// </copyright>
5+
// <summary>
6+
// Permission is hereby granted, free of charge, to any person obtaining a copy
7+
// of this software and associated documentation files (the "Software"), to deal
8+
// in the Software without restriction, including without limitation the rights
9+
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
// copies of the Software, and to permit persons to whom the Software is
11+
// furnished to do so, subject to the following conditions:
12+
//
13+
// The above copyright notice and this permission notice shall be included in all
14+
// copies or substantial portions of the Software.
15+
//
16+
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22+
// SOFTWARE.
23+
// </summary>
24+
// --------------------------------------------------------------------------------------------------------------------
25+
26+
namespace Aspose.Cells.Cloud.SDK.Model
27+
{
28+
using System;
29+
using System.Collections;
30+
using System.Collections.Generic;
31+
using System.Runtime.Serialization;
32+
using System.Text;
33+
using Newtonsoft.Json;
34+
using Newtonsoft.Json.Converters;
35+
36+
/// <summary>
37+
///
38+
/// </summary>
39+
[DataContract]
40+
public class MarkdownSaveOptions : SaveOptions
41+
{
42+
/// <summary>
43+
/// Gets or sets Encoding
44+
/// </summary>
45+
[DataMember(Name="Encoding", EmitDefaultValue=false)]
46+
public string Encoding { get; set; }
47+
48+
/// <summary>
49+
/// Gets or sets FormatStrategy
50+
/// </summary>
51+
[DataMember(Name="FormatStrategy", EmitDefaultValue=false)]
52+
public string FormatStrategy { get; set; }
53+
54+
/// <summary>
55+
/// Gets or sets LineSeparator
56+
/// </summary>
57+
[DataMember(Name="LineSeparator", EmitDefaultValue=false)]
58+
public string LineSeparator { get; set; }
59+
60+
/// <summary>
61+
/// Get the string presentation of the object
62+
/// </summary>
63+
/// <returns>String presentation of the object</returns>
64+
public override string ToString()
65+
{
66+
var sb = new StringBuilder();
67+
sb.Append("class MarkdownSaveOptions {\n");
68+
sb.Append(" Encoding: ").Append(this.Encoding).Append("\n");
69+
sb.Append(" FormatStrategy: ").Append(this.FormatStrategy).Append("\n");
70+
sb.Append(" LineSeparator: ").Append(this.LineSeparator).Append("\n");
71+
sb.Append("}\n");
72+
return sb.ToString();
73+
}
74+
}
75+
}

docs/MarkdownSaveOptions.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Aspose.Cells.Cloud.SDK.Model.MarkdownSaveOptions
2+
## Properties
3+
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**Encoding** | **string** | | [optional]
7+
**FormatStrategy** | **string** | | [optional]
8+
**LineSeparator** | **string** | | [optional]
9+
10+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
11+

0 commit comments

Comments
 (0)