-
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
4c06a41
commit 7317789
Showing
9 changed files
with
276 additions
and
43 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
29 changes: 29 additions & 0 deletions
29
ProPublicaCongressAPI/Contracts/MemberBillSponsorshipComparison.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,29 @@ | ||
using System; | ||
|
||
namespace ProPublicaCongressAPI.Contracts | ||
{ | ||
public class MemberBillSponsorshipComparison | ||
{ | ||
public string Number { get; set; } | ||
|
||
public string BillDetailUrl { get; set; } | ||
|
||
public string Title { get; set; } | ||
|
||
public string SponsorMemberDetailUrl { 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 DateFirstMember { get; set; } | ||
|
||
public DateTime DateSecondMember { get; set; } | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
ProPublicaCongressAPI/Contracts/MemberBillSponsorshipComparisonContainer.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,19 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace ProPublicaCongressAPI.Contracts | ||
{ | ||
public class MemberBillSponsorshipComparisonContainer | ||
{ | ||
public string FirstMemberDetailUrl { get; set; } | ||
|
||
public string SecondMemberDetailUrl { get; set; } | ||
|
||
public string Chamber { get; set; } | ||
|
||
public int Congress { get; set; } | ||
|
||
public int CommonBillCount { get; set; } | ||
|
||
public IReadOnlyCollection<MemberBillSponsorshipComparison> Bills { 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,25 @@ | ||
namespace ProPublicaCongressAPI.Contracts | ||
{ | ||
public class MemberVoteComparison | ||
{ | ||
public string FirstMemberId { get; set; } | ||
|
||
public string FirstMemberDetailUrl { get; set; } | ||
|
||
public string SecondMemberId { get; set; } | ||
|
||
public string SecondMemberDetailUrl { get; set; } | ||
|
||
public int Congress { get; set; } | ||
|
||
public string Chamber { get; set; } | ||
|
||
public int AgreeVoteCount { get; set; } | ||
|
||
public int DisagreeVoteCount { get; set; } | ||
|
||
public double AgreeVotePercent { get; set; } | ||
|
||
public double DisagreeVotePercent { get; set; } | ||
} | ||
} |
41 changes: 41 additions & 0 deletions
41
ProPublicaCongressAPI/InternalModels/MemberBillSponsorshipComparison.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,41 @@ | ||
using Newtonsoft.Json; | ||
using System; | ||
|
||
namespace ProPublicaCongressAPI.InternalModels | ||
{ | ||
public class MemberBillSponsorshipComparison | ||
{ | ||
[JsonProperty("number")] | ||
public string Number { get; set; } | ||
|
||
[JsonProperty("api_uri")] | ||
public string BillDetailUrl { get; set; } | ||
|
||
[JsonProperty("title")] | ||
public string Title { get; set; } | ||
|
||
[JsonProperty("sponsor_uri")] | ||
public string SponsorMemberDetailUrl { get; set; } | ||
|
||
[JsonProperty("introduced_date")] | ||
public DateTime DateIntroduced { get; set; } | ||
|
||
[JsonProperty("cosponsors")] | ||
public int CosponsorCount { get; set; } | ||
|
||
[JsonProperty("committees")] | ||
public string Committees { get; set; } | ||
|
||
[JsonProperty("latest_major_action_date")] | ||
public DateTime DateLatestMajorAction { get; set; } | ||
|
||
[JsonProperty("latest_major_action")] | ||
public string LatestMajorAction { get; set; } | ||
|
||
[JsonProperty("first_member_date")] | ||
public DateTime DateFirstMember { get; set; } | ||
|
||
[JsonProperty("second_member_date")] | ||
public DateTime DateSecondMember { get; set; } | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
ProPublicaCongressAPI/InternalModels/MemberBillSponsorshipComparisonContainer.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,26 @@ | ||
using Newtonsoft.Json; | ||
using System.Collections.Generic; | ||
|
||
namespace ProPublicaCongressAPI.InternalModels | ||
{ | ||
internal class MemberBillSponsorshipComparisonContainer | ||
{ | ||
[JsonProperty("first_member_api_uri")] | ||
public string FirstMemberDetailUrl { get; set; } | ||
|
||
[JsonProperty("second_member_api_uri")] | ||
public string SecondMemberDetailUrl { get; set; } | ||
|
||
[JsonProperty("chamber")] | ||
public string Chamber { get; set; } | ||
|
||
[JsonProperty("congress")] | ||
public int Congress { get; set; } | ||
|
||
[JsonProperty("common_bills")] | ||
public int CommonBillCount { get; set; } | ||
|
||
[JsonProperty("bills")] | ||
public IReadOnlyCollection<MemberBillSponsorshipComparison> Bills { get; set; } | ||
} | ||
} |
37 changes: 37 additions & 0 deletions
37
ProPublicaCongressAPI/InternalModels/MemberVoteComparison.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,37 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace ProPublicaCongressAPI.InternalModels | ||
{ | ||
internal class MemberVoteComparison | ||
{ | ||
[JsonProperty("first_member_id")] | ||
public string FirstMemberId { get; set; } | ||
|
||
[JsonProperty("first_member_api_uri")] | ||
public string FirstMemberDetailUrl { get; set; } | ||
|
||
[JsonProperty("second_member_id")] | ||
public string SecondMemberId { get; set; } | ||
|
||
[JsonProperty("second_member_api_uri")] | ||
public string SecondMemberDetailUrl { get; set; } | ||
|
||
[JsonProperty("congress")] | ||
public int Congress { get; set; } | ||
|
||
[JsonProperty("chamber")] | ||
public string Chamber { get; set; } | ||
|
||
[JsonProperty("common_votes")] | ||
public int AgreeVoteCount { get; set; } | ||
|
||
[JsonProperty("disagree_votes")] | ||
public int DisagreeVoteCount { get; set; } | ||
|
||
[JsonProperty("agree_percent")] | ||
public double AgreeVotePercent { get; set; } | ||
|
||
[JsonProperty("disagree_percent")] | ||
public double DisagreeVotePercent { 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
Oops, something went wrong.