Skip to content

Commit

Permalink
added fpi ratings
Browse files Browse the repository at this point in the history
  • Loading branch information
BlueSCar committed Sep 9, 2023
1 parent b8288fa commit 1e725f1
Show file tree
Hide file tree
Showing 140 changed files with 997 additions and 139 deletions.
10 changes: 5 additions & 5 deletions CFBSharp.sln
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,18 @@ Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.25420.1
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CFBSharp", "src\CFBSharp\CFBSharp.csproj", "{CDDAF856-4BF3-44C5-9014-7B5E301024B8}"
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CFBSharp", "src\CFBSharp\CFBSharp.csproj", "{CD1A19FD-34E3-4890-89A1-95AB40AFC94D}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{CDDAF856-4BF3-44C5-9014-7B5E301024B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CDDAF856-4BF3-44C5-9014-7B5E301024B8}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CDDAF856-4BF3-44C5-9014-7B5E301024B8}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CDDAF856-4BF3-44C5-9014-7B5E301024B8}.Release|Any CPU.Build.0 = Release|Any CPU
{CD1A19FD-34E3-4890-89A1-95AB40AFC94D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{CD1A19FD-34E3-4890-89A1-95AB40AFC94D}.Debug|Any CPU.Build.0 = Debug|Any CPU
{CD1A19FD-34E3-4890-89A1-95AB40AFC94D}.Release|Any CPU.ActiveCfg = Release|Any CPU
{CD1A19FD-34E3-4890-89A1-95AB40AFC94D}.Release|Any CPU.Build.0 = Release|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU
{19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ This is an API for accessing all sorts of college football data. Please note th

This C# SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:

- API version: 4.4.15
- SDK version: 4.4.15
- API version: 4.5.0
- SDK version: 4.5.0
- Build package: io.swagger.codegen.languages.CSharpClientCodegen

<a name="frameworks-supported"></a>
Expand Down Expand Up @@ -124,6 +124,7 @@ Class | Method | HTTP request | Description
*RankingsApi* | [**GetRankings**](docs/RankingsApi.md#getrankings) | **GET** /rankings | Historical polls and rankings
*RatingsApi* | [**GetConferenceSPRatings**](docs/RatingsApi.md#getconferencespratings) | **GET** /ratings/sp/conferences | Historical SP+ ratings by conference
*RatingsApi* | [**GetEloRatings**](docs/RatingsApi.md#geteloratings) | **GET** /ratings/elo | Historical Elo ratings
*RatingsApi* | [**GetFPIRatings**](docs/RatingsApi.md#getfpiratings) | **GET** /ratings/fpi | Historical FPI ratings
*RatingsApi* | [**GetSPRatings**](docs/RatingsApi.md#getspratings) | **GET** /ratings/sp | Historical SP+ ratings
*RatingsApi* | [**GetSRSRatings**](docs/RatingsApi.md#getsrsratings) | **GET** /ratings/srs | Historical SRS ratings
*RecruitingApi* | [**GetRecruitingGroups**](docs/RecruitingApi.md#getrecruitinggroups) | **GET** /recruiting/groups | Recruit position group ratings
Expand Down Expand Up @@ -226,6 +227,9 @@ Class | Method | HTTP request | Description
- [Model.ScoreboardGameWeather](docs/ScoreboardGameWeather.md)
- [Model.Team](docs/Team.md)
- [Model.TeamEloRating](docs/TeamEloRating.md)
- [Model.TeamFPIRating](docs/TeamFPIRating.md)
- [Model.TeamFPIRatingEfficiencies](docs/TeamFPIRatingEfficiencies.md)
- [Model.TeamFPIRatingResumeRanks](docs/TeamFPIRatingResumeRanks.md)
- [Model.TeamGame](docs/TeamGame.md)
- [Model.TeamGameStats](docs/TeamGameStats.md)
- [Model.TeamGameTeams](docs/TeamGameTeams.md)
Expand Down
71 changes: 71 additions & 0 deletions docs/RatingsApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Method | HTTP request | Description
------------- | ------------- | -------------
[**GetConferenceSPRatings**](RatingsApi.md#getconferencespratings) | **GET** /ratings/sp/conferences | Historical SP+ ratings by conference
[**GetEloRatings**](RatingsApi.md#geteloratings) | **GET** /ratings/elo | Historical Elo ratings
[**GetFPIRatings**](RatingsApi.md#getfpiratings) | **GET** /ratings/fpi | Historical FPI ratings
[**GetSPRatings**](RatingsApi.md#getspratings) | **GET** /ratings/sp | Historical SP+ ratings
[**GetSRSRatings**](RatingsApi.md#getsrsratings) | **GET** /ratings/srs | Historical SRS ratings

Expand Down Expand Up @@ -152,6 +153,76 @@ Name | Type | Description | Notes

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

<a name="getfpiratings"></a>
# **GetFPIRatings**
> ICollection<TeamFPIRating> GetFPIRatings (int? year = null, string team = null, string conference = null)
Historical FPI ratings

FPI rating data

### Example
```csharp
using System;
using System.Diagnostics;
using CFBSharp.Api;
using CFBSharp.Client;
using CFBSharp.Model;

namespace Example
{
public class GetFPIRatingsExample
{
public void main()
{
// Configure API key authorization: ApiKeyAuth
Configuration.Default.AddApiKey("Authorization", "YOUR_API_KEY");
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// Configuration.Default.AddApiKeyPrefix("Authorization", "Bearer");
var apiInstance = new RatingsApi();
var year = 56; // int? | Season filter (optional)
var team = team_example; // string | Team filter (optional)
var conference = conference_example; // string | Conference filter (optional)
try
{
// Historical FPI ratings
ICollection&lt;TeamFPIRating&gt; result = apiInstance.GetFPIRatings(year, team, conference);
Debug.WriteLine(result);
}
catch (Exception e)
{
Debug.Print("Exception when calling RatingsApi.GetFPIRatings: " + e.Message );
}
}
}
}
```

### Parameters

Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**year** | **int?**| Season filter | [optional]
**team** | **string**| Team filter | [optional]
**conference** | **string**| Conference filter | [optional]

### Return type

[**ICollection<TeamFPIRating>**](TeamFPIRating.md)

### Authorization

[ApiKeyAuth](../README.md#ApiKeyAuth)

### HTTP request headers

- **Content-Type**: Not defined
- **Accept**: application/json

[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)

<a name="getspratings"></a>
# **GetSPRatings**
> ICollection<TeamSPRating> GetSPRatings (int? year = null, string team = null)
Expand Down
14 changes: 14 additions & 0 deletions docs/TeamFPIRating.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# CFBSharp.Model.TeamFPIRating
## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Year** | **int?** | | [optional]
**Team** | **string** | | [optional]
**Conference** | **string** | | [optional]
**Fpi** | **decimal?** | | [optional]
**ResumeRanks** | [**TeamFPIRatingResumeRanks**](TeamFPIRatingResumeRanks.md) | | [optional]
**Efficiencies** | [**TeamFPIRatingEfficiencies**](TeamFPIRatingEfficiencies.md) | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

12 changes: 12 additions & 0 deletions docs/TeamFPIRatingEfficiencies.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# CFBSharp.Model.TeamFPIRatingEfficiencies
## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Overall** | **decimal?** | | [optional]
**Offense** | **decimal?** | | [optional]
**Defense** | **decimal?** | | [optional]
**SpecialTeams** | **decimal?** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

14 changes: 14 additions & 0 deletions docs/TeamFPIRatingResumeRanks.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# CFBSharp.Model.TeamFPIRatingResumeRanks
## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**StrengthOfRecord** | **int?** | | [optional]
**Fpi** | **int?** | | [optional]
**AverageWinProbability** | **int?** | | [optional]
**StrengthOfSchedule** | **int?** | | [optional]
**RemainingStrengthOfSchedule** | **int?** | | [optional]
**GameControl** | **int?** | | [optional]

[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

2 changes: 1 addition & 1 deletion src/CFBSharp/Api/BettingApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is an API for accessing all sorts of college football data. Please note that API keys should be supplied with \"Bearer \" prepended (e.g. \"Bearer your_key\"). API keys can be acquired from the CollegeFootballData.com website.
*
* OpenAPI spec version: 4.4.15
* OpenAPI spec version: 4.5.0
* Contact: admin@collegefootballdata.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/CFBSharp/Api/CoachesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is an API for accessing all sorts of college football data. Please note that API keys should be supplied with \"Bearer \" prepended (e.g. \"Bearer your_key\"). API keys can be acquired from the CollegeFootballData.com website.
*
* OpenAPI spec version: 4.4.15
* OpenAPI spec version: 4.5.0
* Contact: admin@collegefootballdata.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/CFBSharp/Api/ConferencesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is an API for accessing all sorts of college football data. Please note that API keys should be supplied with \"Bearer \" prepended (e.g. \"Bearer your_key\"). API keys can be acquired from the CollegeFootballData.com website.
*
* OpenAPI spec version: 4.4.15
* OpenAPI spec version: 4.5.0
* Contact: admin@collegefootballdata.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/CFBSharp/Api/DraftApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is an API for accessing all sorts of college football data. Please note that API keys should be supplied with \"Bearer \" prepended (e.g. \"Bearer your_key\"). API keys can be acquired from the CollegeFootballData.com website.
*
* OpenAPI spec version: 4.4.15
* OpenAPI spec version: 4.5.0
* Contact: admin@collegefootballdata.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/CFBSharp/Api/DrivesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is an API for accessing all sorts of college football data. Please note that API keys should be supplied with \"Bearer \" prepended (e.g. \"Bearer your_key\"). API keys can be acquired from the CollegeFootballData.com website.
*
* OpenAPI spec version: 4.4.15
* OpenAPI spec version: 4.5.0
* Contact: admin@collegefootballdata.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/CFBSharp/Api/GamesApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is an API for accessing all sorts of college football data. Please note that API keys should be supplied with \"Bearer \" prepended (e.g. \"Bearer your_key\"). API keys can be acquired from the CollegeFootballData.com website.
*
* OpenAPI spec version: 4.4.15
* OpenAPI spec version: 4.5.0
* Contact: admin@collegefootballdata.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/CFBSharp/Api/MetricsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is an API for accessing all sorts of college football data. Please note that API keys should be supplied with \"Bearer \" prepended (e.g. \"Bearer your_key\"). API keys can be acquired from the CollegeFootballData.com website.
*
* OpenAPI spec version: 4.4.15
* OpenAPI spec version: 4.5.0
* Contact: admin@collegefootballdata.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/CFBSharp/Api/PlayersApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is an API for accessing all sorts of college football data. Please note that API keys should be supplied with \"Bearer \" prepended (e.g. \"Bearer your_key\"). API keys can be acquired from the CollegeFootballData.com website.
*
* OpenAPI spec version: 4.4.15
* OpenAPI spec version: 4.5.0
* Contact: admin@collegefootballdata.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/CFBSharp/Api/PlaysApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is an API for accessing all sorts of college football data. Please note that API keys should be supplied with \"Bearer \" prepended (e.g. \"Bearer your_key\"). API keys can be acquired from the CollegeFootballData.com website.
*
* OpenAPI spec version: 4.4.15
* OpenAPI spec version: 4.5.0
* Contact: admin@collegefootballdata.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
Expand Down
2 changes: 1 addition & 1 deletion src/CFBSharp/Api/RankingsApi.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*
* This is an API for accessing all sorts of college football data. Please note that API keys should be supplied with \"Bearer \" prepended (e.g. \"Bearer your_key\"). API keys can be acquired from the CollegeFootballData.com website.
*
* OpenAPI spec version: 4.4.15
* OpenAPI spec version: 4.5.0
* Contact: admin@collegefootballdata.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
Expand Down
Loading

0 comments on commit 1e725f1

Please sign in to comment.