-
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.
- Loading branch information
1 parent
d0836a3
commit c61b641
Showing
6 changed files
with
76 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 |
---|---|---|
@@ -0,0 +1,16 @@ | ||
using System; | ||
|
||
namespace ProPublicaCongressAPI.Contracts | ||
{ | ||
public class RecentNomination | ||
{ | ||
public string NominationId { get; set; } | ||
public string NominationDetailUrl { get; set; } | ||
public DateTime DateReceived { get; set; } | ||
public string Description { get; set; } | ||
public string NomineeState { get; set; } | ||
public string CommitteeDetailUrl { get; set; } | ||
public DateTime DateLatestAction { get; set; } | ||
public string Status { 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,11 @@ | ||
namespace ProPublicaCongressAPI.Contracts | ||
{ | ||
public enum RecentNominationType | ||
{ | ||
Unknown, | ||
Received, | ||
Updated, | ||
Confirmed, | ||
Withdrawn | ||
} | ||
} |
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,32 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
|
||
namespace ProPublicaCongressAPI.InternalModels | ||
{ | ||
internal class RecentNomination | ||
{ | ||
[JsonProperty("id")] | ||
public string NominationId { get; set; } | ||
|
||
[JsonProperty("uri")] | ||
public string NominationDetailUrl { get; set; } | ||
|
||
[JsonProperty("date_received")] | ||
public DateTime DateReceived { get; set; } | ||
|
||
[JsonProperty("description")] | ||
public string Description { get; set; } | ||
|
||
[JsonProperty("nominee_state")] | ||
public string NomineeState { get; set; } | ||
|
||
[JsonProperty("committee_uri")] | ||
public string CommitteeDetailUrl { get; set; } | ||
|
||
[JsonProperty("latest_action_date")] | ||
public DateTime DateLatestAction { get; set; } | ||
|
||
[JsonProperty("status")] | ||
public string Status { 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