-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
API-471: Add CreateRfi, UpdateRfi, UpdateRfiStatus
- Loading branch information
1 parent
97aa1b2
commit bbcf831
Showing
7 changed files
with
152 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,9 +8,14 @@ public static class TestData | |
public const string Project1Uid = "d1e8e222-b05b-e750-74e4-d19b92c25506"; | ||
public const string Project1Issue1Uid = "45460feb-2c09-663f-352f-d053444b138a"; | ||
public const string Project1Rfi1Uid = "a3d1c702-3bed-c496-8cf0-6535218cce00"; | ||
public const string Project2Uid = "269ad633-0688-395e-5c30-cc685e0ce964"; | ||
public const string Project2DraftRfiStatusUid = "00a8b880"; | ||
public const string Project2OpenRfiStatusUid = "bcadf1c9"; | ||
public const string PhotoUrl = "https://photo-assets-test.plangrid.com/5a16f6d9-8006-ea7d-12ee-76c778b7094f.jpg"; | ||
public const string ApiTestsUserEmail = "[email protected]"; | ||
public const string ApiTestsUserUid = "5644e9acf0cb79476f1d48ee"; | ||
public const string ApiTestsUser2Email = "[email protected]"; | ||
public const string ApiTestsUser2Uid = "569e7cf89a5775ea157c9032"; | ||
public const string InvitedUserEmail = "[email protected]"; | ||
public const string AdminRoleId = "2fdbafe9"; | ||
} | ||
|
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
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,13 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Newtonsoft.Json; | ||
|
||
namespace PlanGrid.Api | ||
{ | ||
public class RfiStatusUpdate | ||
{ | ||
[JsonProperty("label")] | ||
public string Label { 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Text; | ||
using Newtonsoft.Json; | ||
|
||
namespace PlanGrid.Api | ||
{ | ||
public class RfiUpsert | ||
{ | ||
[JsonProperty("status")] | ||
public string StatusUid { get; set; } | ||
|
||
[JsonProperty("locked")] | ||
public bool IsLocked { get; set; } | ||
|
||
[JsonProperty("title")] | ||
public string Title { get; set; } | ||
|
||
[JsonProperty("question")] | ||
public string Question { get; set; } | ||
|
||
[JsonProperty("answer")] | ||
public string Answer { get; set; } | ||
|
||
[JsonProperty("sent_date")] | ||
public DateTime? SentDate { get; set; } | ||
|
||
[JsonProperty("due_date")] | ||
public DateTime? DueDate { get; set; } | ||
|
||
[JsonProperty("assigned_to")] | ||
public string[] AssignedTo { get; set; } | ||
} | ||
} |