Skip to content

Commit 0ab5f44

Browse files
[TASKSCLOUD-580] - Deployed new 21.8 version.
1 parent 3ca1919 commit 0ab5f44

File tree

4 files changed

+43
-8
lines changed

4 files changed

+43
-8
lines changed

Aspose.Tasks.Cloud.Sdk/Aspose.Tasks.Cloud.Sdk.nuspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<package >
33
<metadata>
44
<id>Aspose.Tasks-Cloud</id>
5-
<version>21.2</version>
5+
<version>21.8</version>
66
<title>Aspose.Tasks Cloud SDK for .NET</title>
77
<summary>Aspose.Tasks Cloud SDK allows developer to manipulate or convert Microsoft Project documents hosted on a cloud platform from .NET applications</summary>
88
<authors>Aspose</authors>
@@ -14,7 +14,7 @@
1414
<description>New generation of Aspose Cloud SDK that allows to manipulate or convert Microsoft Project documents hosted on a cloud platform from .NET applications. It allows you to work with all aspects of a Project document including conversion. The API offers a wide range of Microsoft Project export options. The Aspose.Tasks Cloud API allows developers to convert Project documents to various formats including XML, HTML, BMP, PNG, PDF, and XSLX.
1515
</description>
1616
<releaseNotes>
17-
The complete list of changes can be found at https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-docs/blob/master/tasks/release-notes/release-notes-2021/aspose-tasks-cloud-21-2-release-notes/_index.md
17+
The complete list of changes can be found at https://github.com/aspose-tasks-cloud/aspose-tasks-cloud-docs/blob/master/tasks/release-notes/release-notes-2021/aspose-tasks-cloud-21-8-release-notes/_index.md
1818
</releaseNotes>
1919
<copyright>Aspose 2002-2021. All Rights Reserved.</copyright>
2020
<tags>MPP Primavera Microsoft Project Server Online P6XML PrimaveraXML XER MPX</tags>

Aspose.Tasks.Cloud.Sdk/Internal/UrlHelper.cs

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,34 @@ public static string AddPathParameter(string url, string parameterName, object p
4545
return url;
4646
}
4747

48+
public static string AddQueryParameterToUrl(string url, string parameterName, DateTime? parameterValue)
49+
{
50+
if (url.Contains("{" + parameterName + "}"))
51+
{
52+
url = AddPathParameter(url, parameterName, parameterValue);
53+
return url;
54+
}
55+
56+
if (url.Contains("%7B" + parameterName + "%7D"))
57+
{
58+
url = url.Replace("%7B", "{").Replace("%7D", "}");
59+
url = AddPathParameter(url, parameterName, parameterValue);
60+
return url;
61+
}
62+
63+
if (parameterValue == null)
64+
{
65+
return url;
66+
}
67+
68+
var uriBuilder = new UriBuilder(url);
69+
var query = HttpUtility.ParseQueryString(uriBuilder.Query);
70+
query.Add(parameterName, parameterValue.Value.ToString("yyyy-MM-ddTHH:mm:ssZ"));
71+
uriBuilder.Query = query.ToString();
72+
73+
return uriBuilder.ToString();
74+
}
75+
4876
public static string AddQueryParameterToUrl(string url, string parameterName, object parameterValue)
4977
{
5078
if (url.Contains("{" + parameterName + "}"))

Aspose.Tasks.Cloud.Sdk/Model/Task.cs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
// </summary>
2424
// --------------------------------------------------------------------------------------------------------------------
2525

26-
namespace Aspose.Tasks.Cloud.Sdk.Model
26+
namespace Aspose.Tasks.Cloud.Sdk.Model
2727
{
28-
using System;
28+
using System;
2929
using System.Collections;
3030
using System.Collections.Generic;
3131
using System.Runtime.Serialization;
@@ -37,7 +37,7 @@ namespace Aspose.Tasks.Cloud.Sdk.Model
3737
/// Represents project task.
3838
/// </summary>
3939
public class Task
40-
{
40+
{
4141
/// <summary>
4242
/// The unique id of a task.
4343
/// </summary>
@@ -332,6 +332,12 @@ public class Task
332332
/// </summary>
333333
public bool? IsOverAllocated { get; set; }
334334

335+
/// <summary>
336+
/// Indicates whether the task has an resource assigned which has more work on assigned
337+
/// tasks than can be completed within normal working capacity.
338+
/// </summary>
339+
public bool? HasOverallocatedResource { get; set; }
340+
335341
/// <summary>
336342
/// Determines whether a task is estimated.
337343
/// </summary>
@@ -622,7 +628,7 @@ public class Task
622628
/// Get the string presentation of the object
623629
/// </summary>
624630
/// <returns>String presentation of the object</returns>
625-
public override string ToString()
631+
public override string ToString()
626632
{
627633
var sb = new StringBuilder();
628634
sb.Append("class Task {\n");
@@ -684,6 +690,7 @@ public override string ToString()
684690
sb.Append(" SubtasksUids: ").Append(this.SubtasksUids).Append("\n");
685691
sb.Append(" OutlineLevel: ").Append(this.OutlineLevel).Append("\n");
686692
sb.Append(" IsOverAllocated: ").Append(this.IsOverAllocated).Append("\n");
693+
sb.Append(" HasOverallocatedResource: ").Append(this.HasOverallocatedResource).Append("\n");
687694
sb.Append(" IsEstimated: ").Append(this.IsEstimated).Append("\n");
688695
sb.Append(" OvertimeCost: ").Append(this.OvertimeCost).Append("\n");
689696
sb.Append(" OvertimeWork: ").Append(this.OvertimeWork).Append("\n");

Aspose.Tasks.Cloud.Sdk/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,5 @@
5353
// Minor Version
5454
// Build Number
5555
// Revision
56-
[assembly: AssemblyVersion("21.2.0.0")]
57-
[assembly: AssemblyFileVersion("21.2.0.0")]
56+
[assembly: AssemblyVersion("21.8.0.0")]
57+
[assembly: AssemblyFileVersion("21.8.0.0")]

0 commit comments

Comments
 (0)