-
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
d600290
commit d0836a3
Showing
9 changed files
with
160 additions
and
3 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,11 @@ | ||
using System; | ||
|
||
namespace ProPublicaCongressAPI.Contracts | ||
{ | ||
public class BillCosponsor | ||
{ | ||
public string CosponsorMemberId { get; set; } | ||
public string CosponsorMemberName { get; set; } | ||
public DateTime DateCosponsored { 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,24 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
|
||
namespace ProPublicaCongressAPI.Contracts | ||
{ | ||
public class BillCosponsorContainer | ||
{ | ||
public int Congress { get; set; } | ||
public string BillNumber { get; set; } | ||
public string BillUrlNumber { get; set; } | ||
public string BillTitle { get; set; } | ||
public string SponsorMemberName { get; set; } | ||
public string SponsorMemberId { get; set; } | ||
public DateTime DateIntroduced { get; set; } | ||
public int CosponsorCount { get; set; } | ||
public string Committees { get; set; } | ||
public DateTime DateLatestMajorAction { get; set; } | ||
public string LatestMajorAction { get; set; } | ||
public DateTime? DateHousePassageVote { get; set; } | ||
public DateTime? DateSenatePassageVote { get; set; } | ||
public IReadOnlyCollection<BillCosponsorPartySummary> PartySummaries { get; set; } | ||
public IReadOnlyCollection<BillCosponsor> Cosponsors { 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,8 @@ | ||
namespace ProPublicaCongressAPI.Contracts | ||
{ | ||
public class BillCosponsorPartySummary | ||
{ | ||
public string PartyId { get; set; } | ||
public int SponsorCount { 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,16 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace ProPublicaCongressAPI.InternalModels | ||
{ | ||
internal class BillCosponsor | ||
{ | ||
[JsonProperty("cosponsor_id")] | ||
public string CosponsorMemberId { get; set; } | ||
|
||
[JsonProperty("name")] | ||
public string CosponsorMemberName { get; set; } | ||
|
||
[JsonProperty("date")] | ||
public string DateCosponsored { get; set; } | ||
} | ||
} |
53 changes: 53 additions & 0 deletions
53
ProPublicaCongressAPI/InternalModels/BillCosponsorContainer.cs
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,53 @@ | ||
using Newtonsoft.Json; | ||
using System.Collections.Generic; | ||
|
||
namespace ProPublicaCongressAPI.InternalModels | ||
{ | ||
internal class BillCosponsorContainer | ||
{ | ||
[JsonProperty("congress")] | ||
public int Congress { get; set; } | ||
|
||
[JsonProperty("bill")] | ||
public string BillNumber { get; set; } | ||
|
||
[JsonProperty("url_number")] | ||
public string BillUrlNumber { get; set; } | ||
|
||
[JsonProperty("title")] | ||
public string BillTitle { get; set; } | ||
|
||
[JsonProperty("sponsor")] | ||
public string SponsorMemberName { get; set; } | ||
|
||
[JsonProperty("sponsor_id")] | ||
public string SponsorMemberId { get; set; } | ||
|
||
[JsonProperty("introduced_date")] | ||
public string DateIntroduced { get; set; } | ||
|
||
[JsonProperty("number_of_cosponsors")] | ||
public int CosponsorCount { get; set; } | ||
|
||
[JsonProperty("committees")] | ||
public string Committees { get; set; } | ||
|
||
[JsonProperty("latest_major_action_date")] | ||
public string DateLatestMajorAction { get; set; } | ||
|
||
[JsonProperty("latest_major_action")] | ||
public string LatestMajorAction { get; set; } | ||
|
||
[JsonProperty("house_passage_vote")] | ||
public string DateHousePassageVote { get; set; } | ||
|
||
[JsonProperty("senate_passage_vote")] | ||
public string DateSenatePassageVote { get; set; } | ||
|
||
[JsonProperty("cosponsors_by_party")] | ||
public IReadOnlyCollection<BillCosponsorPartySummary> PartySummaries { get; set; } | ||
|
||
[JsonProperty("cosponsors")] | ||
public IReadOnlyCollection<BillCosponsor> Cosponsors { get; set; } | ||
} | ||
} |
13 changes: 13 additions & 0 deletions
13
ProPublicaCongressAPI/InternalModels/BillCosponsorPartySummary.cs
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 Newtonsoft.Json; | ||
|
||
namespace ProPublicaCongressAPI.InternalModels | ||
{ | ||
internal class BillCosponsorPartySummary | ||
{ | ||
[JsonProperty("id")] | ||
public string PartyId { get; set; } | ||
|
||
[JsonProperty("sponsors")] | ||
public int SponsorCount { 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