-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
# Patch notes for 104.0.3086 These patch notes summarize the changes from version 103.0.3003. Added 1 new APIs: * Changeset.RetrieveProjectChangesByProjectID (GET /api/data/projects/{projectId}/changes) Renamed 2 old APIs: * Renamed 'Changeset.RetrieveChangeset' to 'Changeset.RetrieveChangesetStatus' * Renamed 'Changeset.RetrieveCompletedChangeset' to 'Changeset.RetrieveCompletedChangesetStatus' Deprecated 1 old APIs: * TaskMetadata.GetTaskMetadata
- Loading branch information
Showing
8 changed files
with
113 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* @author ProjectManager.com <[email protected]> | ||
* | ||
* @copyright 2023-2024 ProjectManager.com, Inc. | ||
* @version 103.0.3003 | ||
* @version 104.0.3086 | ||
* @link https://github.com/projectmgr/projectmanager-sdk-csharp | ||
*/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
/*** | ||
* ProjectManager API for C# | ||
* | ||
* (c) 2023-2024 ProjectManager.com, Inc. | ||
* | ||
* For the full copyright and license information, please view the LICENSE | ||
* file that was distributed with this source code. | ||
* | ||
* @author ProjectManager.com <[email protected]> | ||
* @copyright 2023-2024 ProjectManager.com, Inc. | ||
* @link https://github.com/projectmgr/projectmanager-sdk-csharp | ||
*/ | ||
|
||
|
||
|
||
#pragma warning disable CS8618 | ||
|
||
using System; | ||
|
||
namespace ProjectManager.SDK.Models | ||
{ | ||
|
||
/// <summary> | ||
/// The specific change action made against a project | ||
/// </summary> | ||
public class ProjectChangeDto : ApiModel | ||
{ | ||
|
||
/// <summary> | ||
/// Project Change ID | ||
/// </summary> | ||
public Guid? Id { get; set; } | ||
|
||
/// <summary> | ||
/// Workspace ID | ||
/// </summary> | ||
public Guid? BusinessId { get; set; } | ||
|
||
/// <summary> | ||
/// Project ID | ||
/// </summary> | ||
public Guid? ProjectId { get; set; } | ||
|
||
/// <summary> | ||
/// Version of this Project Change | ||
/// </summary> | ||
public int? Version { get; set; } | ||
|
||
/// <summary> | ||
/// Created by GUID | ||
/// </summary> | ||
public Guid? CreateBy { get; set; } | ||
|
||
/// <summary> | ||
/// Created date | ||
/// </summary> | ||
public DateTime? CreateDate { get; set; } | ||
|
||
/// <summary> | ||
/// Processed date | ||
/// </summary> | ||
public DateTime? ProcessDate { get; set; } | ||
|
||
/// <summary> | ||
/// The status of the Project Change | ||
/// </summary> | ||
public int? Status { get; set; } | ||
|
||
/// <summary> | ||
/// Project Change as JSON data | ||
/// </summary> | ||
public object ChangeData { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
* @author ProjectManager.com <[email protected]> | ||
* | ||
* @copyright 2023-2024 ProjectManager.com, Inc. | ||
* @version 103.0.3003 | ||
* @version 104.0.3086 | ||
* @link https://github.com/projectmgr/projectmanager-sdk-csharp | ||
*/ | ||
|
||
|
@@ -39,7 +39,7 @@ public class ProjectManagerClient : IProjectManagerClient | |
/// <summary> | ||
/// The version of the SDK | ||
/// </summary> | ||
public const string SdkVersion = "103.0.3003"; | ||
public const string SdkVersion = "104.0.3086"; | ||
|
||
private readonly string _apiUrl; | ||
private readonly HttpClient _client; | ||
|
@@ -246,12 +246,6 @@ public class ProjectManagerClient : IProjectManagerClient | |
/// <param name="clientHandler">Handler for the HTTP client, when null the default handler will be used</param> | ||
private ProjectManagerClient(Uri baseEndpoint, HttpClientHandler clientHandler) | ||
{ | ||
// Throw error if not HTTPS | ||
if (baseEndpoint.Scheme != "https") | ||
{ | ||
throw new InvalidOperationException("Invalid environment url. Please ensure the environment url starts with 'https://'"); | ||
} | ||
|
||
// Add support for HTTP compression | ||
var handler = clientHandler ?? new HttpClientHandler(); | ||
handler.AutomaticDecompression = DecompressionMethods.GZip; | ||
|