-
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
ea7c7e6
commit 5f32ef2
Showing
13 changed files
with
287 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,25 @@ | ||
namespace ProPublicaCongressAPI.Contracts | ||
{ | ||
public class RecentBill | ||
{ | ||
public string BillNumber { get; set; } | ||
|
||
public string BillDetailUrl { get; set; } | ||
|
||
public string BillTitle { get; set; } | ||
|
||
public string SponsorMemberDetailUrl { get; set; } | ||
|
||
public string DateIntroduced { get; set; } | ||
|
||
public int CosponsorCount { get; set; } | ||
|
||
public string Committees { get; set; } | ||
|
||
public string PrimarySubject { get; set; } | ||
|
||
public string DateLatestMajorAction { get; set; } | ||
|
||
public string LatestMajorAction { 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,27 @@ | ||
namespace ProPublicaCongressAPI.Contracts | ||
{ | ||
public class RecentBillByMember | ||
{ | ||
public int Congress { get; set; } | ||
|
||
public string BillNumber { get; set; } | ||
|
||
public string BillDetailUrl { get; set; } | ||
|
||
public string BillTitle { get; set; } | ||
|
||
public string SponsorMemberId { get; set; } | ||
|
||
public string DateIntroduced { get; set; } | ||
|
||
public int CosponsorCount { get; set; } | ||
|
||
public string Committees { get; set; } | ||
|
||
public string PrimarySubject { get; set; } | ||
|
||
public string DateLatestMajorAction { get; set; } | ||
|
||
public string LatestMajorAction { 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,9 @@ | ||
namespace ProPublicaCongressAPI.Contracts | ||
{ | ||
public enum RecentBillByMemberType | ||
{ | ||
Unknown, | ||
Introduced, | ||
Updated | ||
} | ||
} |
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 RecentBillType | ||
{ | ||
Unknown, | ||
Introduced, | ||
Updated, | ||
Passed, | ||
Major | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
ProPublicaCongressAPI/Contracts/RecentBillsByMemberContainer.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 RecentBillsByMemberContainer | ||
{ | ||
public string MemberId { get; set; } | ||
|
||
public string MemberDetailUrl { get; set; } | ||
|
||
public string MemberName { get; set; } | ||
|
||
public int NumberOfResults { get; set; } | ||
|
||
public int Offset { get; set; } | ||
|
||
public IReadOnlyCollection<RecentBillByMember> 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,17 @@ | ||
using System.Collections.Generic; | ||
|
||
namespace ProPublicaCongressAPI.Contracts | ||
{ | ||
public class RecentBillsContainer | ||
{ | ||
public int Congress { get; set; } | ||
|
||
public string Chamber { get; set; } | ||
|
||
public int NumberOfResults { get; set; } | ||
|
||
public int Offset { get; set; } | ||
|
||
public IReadOnlyCollection<RecentBill> 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,37 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace ProPublicaCongressAPI.InternalModels | ||
{ | ||
internal class RecentBill | ||
{ | ||
[JsonProperty("number")] | ||
public string BillNumber { get; set; } | ||
|
||
[JsonProperty("bill_uri")] | ||
public string BillDetailUrl { get; set; } | ||
|
||
[JsonProperty("title")] | ||
public string BillTitle { get; set; } | ||
|
||
[JsonProperty("sponsor_uri")] | ||
public string SponsorMemberDetailUrl { get; set; } | ||
|
||
[JsonProperty("introduced_date")] | ||
public string DateIntroduced { get; set; } | ||
|
||
[JsonProperty("cosponsors")] | ||
public int CosponsorCount { get; set; } | ||
|
||
[JsonProperty("committees")] | ||
public string Committees { get; set; } | ||
|
||
[JsonProperty("primary_subject")] | ||
public string PrimarySubject { get; set; } | ||
|
||
[JsonProperty("latest_major_action_date")] | ||
public string DateLatestMajorAction { get; set; } | ||
|
||
[JsonProperty("latest_major_action")] | ||
public string LatestMajorAction { get; set; } | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
ProPublicaCongressAPI/InternalModels/RecentBillByMember.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,40 @@ | ||
using Newtonsoft.Json; | ||
|
||
namespace ProPublicaCongressAPI.InternalModels | ||
{ | ||
internal class RecentBillByMember | ||
{ | ||
[JsonProperty("congress")] | ||
public int Congress { get; set; } | ||
|
||
[JsonProperty("number")] | ||
public string BillNumber { get; set; } | ||
|
||
[JsonProperty("bill_uri")] | ||
public string BillDetailUrl { get; set; } | ||
|
||
[JsonProperty("title")] | ||
public string BillTitle { get; set; } | ||
|
||
[JsonProperty("sponsor_id")] | ||
public string SponsorMemberId { get; set; } | ||
|
||
[JsonProperty("introduced_date")] | ||
public string DateIntroduced { get; set; } | ||
|
||
[JsonProperty("cosponsors")] | ||
public int CosponsorCount { get; set; } | ||
|
||
[JsonProperty("committees")] | ||
public string Committees { get; set; } | ||
|
||
[JsonProperty("primary_subject")] | ||
public string PrimarySubject { get; set; } | ||
|
||
[JsonProperty("latest_major_action_date")] | ||
public string DateLatestMajorAction { get; set; } | ||
|
||
[JsonProperty("latest_major_action")] | ||
public string LatestMajorAction { get; set; } | ||
} | ||
} |
26 changes: 26 additions & 0 deletions
26
ProPublicaCongressAPI/InternalModels/RecentBillsByMemberContainer.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 RecentBillsByMemberContainer | ||
{ | ||
[JsonProperty("id")] | ||
public string MemberId { get; set; } | ||
|
||
[JsonProperty("member_uri")] | ||
public string MemberDetailUrl { get; set; } | ||
|
||
[JsonProperty("name")] | ||
public string MemberName { get; set; } | ||
|
||
[JsonProperty("num_results")] | ||
public int NumberOfResults { get; set; } | ||
|
||
[JsonProperty("offset")] | ||
public int Offset { get; set; } | ||
|
||
[JsonProperty("bills")] | ||
public IReadOnlyCollection<RecentBillByMember> Bills { get; set; } | ||
} | ||
} |
23 changes: 23 additions & 0 deletions
23
ProPublicaCongressAPI/InternalModels/RecentBillsContainer.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,23 @@ | ||
using Newtonsoft.Json; | ||
using System.Collections.Generic; | ||
|
||
namespace ProPublicaCongressAPI.InternalModels | ||
{ | ||
internal class RecentBillsContainer | ||
{ | ||
[JsonProperty("congress")] | ||
public int Congress { get; set; } | ||
|
||
[JsonProperty("chamber")] | ||
public string Chamber { get; set; } | ||
|
||
[JsonProperty("num_results")] | ||
public int NumberOfResults { get; set; } | ||
|
||
[JsonProperty("offset")] | ||
public int Offset { get; set; } | ||
|
||
[JsonProperty("bills")] | ||
public IReadOnlyCollection<RecentBill> 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
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