diff --git a/build.gradle b/build.gradle index 348410634..7b84a7b70 100644 --- a/build.gradle +++ b/build.gradle @@ -30,6 +30,7 @@ buildscript { plugins { id "com.github.ben-manes.versions" version "0.42.0" + id "org.openapi.generator" version "7.10.0" } allprojects { diff --git a/settings.gradle b/settings.gradle index 46e530e37..407099f9a 100644 --- a/settings.gradle +++ b/settings.gradle @@ -1,2 +1,3 @@ include ':libTba', ':libImgur' -include 'android' \ No newline at end of file +include 'android' +include ':tba-api' diff --git a/tba-api/.gitignore b/tba-api/.gitignore new file mode 100644 index 000000000..8d6d84aed --- /dev/null +++ b/tba-api/.gitignore @@ -0,0 +1,2 @@ +/build +.openapi-generator \ No newline at end of file diff --git a/tba-api/README.md b/tba-api/README.md new file mode 100644 index 000000000..a95655393 --- /dev/null +++ b/tba-api/README.md @@ -0,0 +1,12 @@ +# tba-api +This module is intended to replace `:libTba`. `:libTba` is a generated set of TBA API models +using [a fork of swagger-codegen](https://github.com/the-blue-alliance/swagger-codegen) to support +features such as generating interfaces instead of concrete classes. That fork has not been updated +in some time, and is no longer compatible with the latest swagger specs. + +This module aims to use [openapi-generator](https://github.com/OpenAPITools/openapi-generator) as-is +to generate concrete classes. This should more easily facilitate updates to the plugin and swagger +specs in the future, decreasing maintenance overhead. + +## Updating generated models & API interfaces +To update the generated API models and Retrofit API interfaces, run `./gradlew tba-api:openApiGenerate`. \ No newline at end of file diff --git a/tba-api/build.gradle b/tba-api/build.gradle new file mode 100644 index 000000000..471c56d3f --- /dev/null +++ b/tba-api/build.gradle @@ -0,0 +1,50 @@ +plugins { + id 'java-library' + id "org.openapi.generator" version "7.10.0" +} + +java { + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 +} + +openApiGenerate { + generatorName.set("java") + remoteInputSpec.set("https://www.thebluealliance.com/swagger/api_v3.json") + outputDir.set("$projectDir") + apiPackage.set("thebluealliance.api") + invokerPackage.set("thebluealliance.api.client") + modelPackage.set("thebluealliance.api.model") + + // We don't need the generated markdown docs, or tests + generateApiDocumentation.set(false) + generateModelDocumentation.set(false) + generateApiTests.set(false) + generateModelTests.set(false) + + // By default the generator creates a full project, including a github workflow, + // gradle build files, etc. + // Remove all that except the generated Java files, and a couple of support files that are referenced + globalProperties.set([ + apis : "", + models : "", + supportingFiles: "CollectionFormats.java,StringUtil.java", + ]) + + // We don't currently use the generated Retrofit interface because we are still on RxJava 1.x + // In the future we can set configOptions.put("useRxJava2", "true") + // and use the generated Retrofit interfaces as well. + configOptions.put("library", "retrofit2") + configOptions.put("serializationLibrary", "gson") +} + +dependencies { + // in java 9+ java.annotation.Generated moved to java.annotation.processing.Generated + // so use this lib for back-compat + implementation "javax.annotation:javax.annotation-api:1.3.2" + implementation 'org.openapitools:jackson-databind-nullable:0.2.6' + implementation "io.reactivex:rxjava:${rxJavaVersion}" + implementation "com.squareup.retrofit2:retrofit:${retrofitVersion}" + implementation "com.google.code.gson:gson:${gsonVersion}" + implementation "com.google.code.findbugs:jsr305:3.0.2" +} \ No newline at end of file diff --git a/tba-api/src/main/java/thebluealliance/api/DefaultApi.java b/tba-api/src/main/java/thebluealliance/api/DefaultApi.java new file mode 100644 index 000000000..322522d81 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/DefaultApi.java @@ -0,0 +1,34 @@ +package thebluealliance.api; + +import thebluealliance.api.client.CollectionFormats.*; + +import retrofit2.Call; +import retrofit2.http.*; + +import okhttp3.RequestBody; +import okhttp3.ResponseBody; +import okhttp3.MultipartBody; + +import thebluealliance.api.model.GetStatus401Response; +import thebluealliance.api.model.SearchIndex; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +public interface DefaultApi { + /** + * + * Gets a large blob of data that is used on the frontend for searching. May change without notice. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<SearchIndex> + */ + @GET("search_index") + Call getSearchIndex( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + +} diff --git a/tba-api/src/main/java/thebluealliance/api/DistrictApi.java b/tba-api/src/main/java/thebluealliance/api/DistrictApi.java new file mode 100644 index 000000000..6366f64e7 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/DistrictApi.java @@ -0,0 +1,173 @@ +package thebluealliance.api; + +import thebluealliance.api.client.CollectionFormats.*; + +import retrofit2.Call; +import retrofit2.http.*; + +import okhttp3.RequestBody; +import okhttp3.ResponseBody; +import okhttp3.MultipartBody; + +import thebluealliance.api.model.Award; +import thebluealliance.api.model.DistrictList; +import thebluealliance.api.model.DistrictRanking; +import thebluealliance.api.model.Event; +import thebluealliance.api.model.EventDistrictPoints; +import thebluealliance.api.model.EventSimple; +import thebluealliance.api.model.GetStatus401Response; +import thebluealliance.api.model.Team; +import thebluealliance.api.model.TeamSimple; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +public interface DistrictApi { + /** + * + * Gets a list of awards in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Award>> + */ + @GET("district/{district_key}/awards") + Call> getDistrictAwards( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Event>> + */ + @GET("district/{district_key}/events") + Call> getDistrictEvents( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of event keys for events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("district/{district_key}/events/keys") + Call> getDistrictEventsKeys( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<EventSimple>> + */ + @GET("district/{district_key}/events/simple") + Call> getDistrictEventsSimple( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of District objects with the given district abbreviation. This accounts for district abbreviation changes, such as MAR to FMA. + * @param districtAbbreviation District abbreviation, eg `ne` or `fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<DistrictList>> + */ + @GET("district/{district_abbreviation}/history") + Call> getDistrictHistory( + @retrofit2.http.Path("district_abbreviation") String districtAbbreviation, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of team district rankings for the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<DistrictRanking>> + */ + @GET("district/{district_key}/rankings") + Call> getDistrictRankings( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `Team` objects that competed in events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Team>> + */ + @GET("district/{district_key}/teams") + Call> getDistrictTeams( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `Team` objects that competed in events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("district/{district_key}/teams/keys") + Call> getDistrictTeamsKeys( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of `Team` objects that competed in events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<TeamSimple>> + */ + @GET("district/{district_key}/teams/simple") + Call> getDistrictTeamsSimple( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of districts and their corresponding district key, for the given year. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<DistrictList>> + */ + @GET("districts/{year}") + Call> getDistrictsByYear( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of team rankings for the Event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<EventDistrictPoints> + */ + @GET("event/{event_key}/district_points") + Call getEventDistrictPoints( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets an array of districts representing each year the team was in a district. Will return an empty array if the team was never in a district. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<DistrictList>> + */ + @GET("team/{team_key}/districts") + Call> getTeamDistricts( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + +} diff --git a/tba-api/src/main/java/thebluealliance/api/EventApi.java b/tba-api/src/main/java/thebluealliance/api/EventApi.java new file mode 100644 index 000000000..1e532f7b3 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/EventApi.java @@ -0,0 +1,502 @@ +package thebluealliance.api; + +import thebluealliance.api.client.CollectionFormats.*; + +import retrofit2.Call; +import retrofit2.http.*; + +import okhttp3.RequestBody; +import okhttp3.ResponseBody; +import okhttp3.MultipartBody; + +import thebluealliance.api.model.Award; +import java.math.BigDecimal; +import thebluealliance.api.model.EliminationAlliance; +import thebluealliance.api.model.Event; +import thebluealliance.api.model.EventDistrictPoints; +import thebluealliance.api.model.EventInsights; +import thebluealliance.api.model.EventOPRs; +import thebluealliance.api.model.EventRanking; +import thebluealliance.api.model.EventSimple; +import thebluealliance.api.model.GetStatus401Response; +import thebluealliance.api.model.GetTeamEventsStatusesByYear200ResponseValue; +import thebluealliance.api.model.Match; +import thebluealliance.api.model.MatchSimple; +import thebluealliance.api.model.Media; +import thebluealliance.api.model.Team; +import thebluealliance.api.model.TeamEventStatus; +import thebluealliance.api.model.TeamSimple; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +public interface EventApi { + /** + * + * Gets a list of awards in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Award>> + */ + @GET("district/{district_key}/awards") + Call> getDistrictAwards( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Event>> + */ + @GET("district/{district_key}/events") + Call> getDistrictEvents( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of event keys for events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("district/{district_key}/events/keys") + Call> getDistrictEventsKeys( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<EventSimple>> + */ + @GET("district/{district_key}/events/simple") + Call> getDistrictEventsSimple( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets an Event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<Event> + */ + @GET("event/{event_key}") + Call getEvent( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of Elimination Alliances for the given Event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<EliminationAlliance>> + */ + @GET("event/{event_key}/alliances") + Call> getEventAlliances( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of awards from the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Award>> + */ + @GET("event/{event_key}/awards") + Call> getEventAwards( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a set of Event Component OPRs for the given Event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<Map<String, Map<String, BigDecimal>>> + */ + @GET("event/{event_key}/coprs") + Call>> getEventCOPRs( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of team rankings for the Event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<EventDistrictPoints> + */ + @GET("event/{event_key}/district_points") + Call getEventDistrictPoints( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a set of Event-specific insights for the given Event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<EventInsights> + */ + @GET("event/{event_key}/insights") + Call getEventInsights( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets an array of Match Keys for the given event key that have timeseries data. Returns an empty array if no matches have timeseries data. *WARNING:* This is *not* official data, and is subject to a significant possibility of error, or missing data. Do not rely on this data for any purpose. In fact, pretend we made it up. *WARNING:* This endpoint and corresponding data models are under *active development* and may change at any time, including in breaking ways. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("event/{event_key}/matches/timeseries") + Call> getEventMatchTimeseries( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of matches for the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Match>> + */ + @GET("event/{event_key}/matches") + Call> getEventMatches( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of match keys for the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("event/{event_key}/matches/keys") + Call> getEventMatchesKeys( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of matches for the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<MatchSimple>> + */ + @GET("event/{event_key}/matches/simple") + Call> getEventMatchesSimple( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a set of Event OPRs (including OPR, DPR, and CCWM) for the given Event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<EventOPRs> + */ + @GET("event/{event_key}/oprs") + Call getEventOPRs( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets information on TBA-generated predictions for the given Event. Contains year-specific information. *WARNING* This endpoint is currently under development and may change at any time. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<Object> + */ + @GET("event/{event_key}/predictions") + Call getEventPredictions( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of team rankings for the Event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<EventRanking> + */ + @GET("event/{event_key}/rankings") + Call getEventRankings( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form Event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<EventSimple> + */ + @GET("event/{event_key}/simple") + Call getEventSimple( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of media objects that correspond to teams at this event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Media>> + */ + @GET("event/{event_key}/team_media") + Call> getEventTeamMedia( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `Team` objects that competed in the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Team>> + */ + @GET("event/{event_key}/teams") + Call> getEventTeams( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `Team` keys that competed in the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("event/{event_key}/teams/keys") + Call> getEventTeamsKeys( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of `Team` objects that competed in the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<TeamSimple>> + */ + @GET("event/{event_key}/teams/simple") + Call> getEventTeamsSimple( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a key-value list of the event statuses for teams competing at the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<Map<String, GetTeamEventsStatusesByYear200ResponseValue>> + */ + @GET("event/{event_key}/teams/statuses") + Call> getEventTeamsStatuses( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of events in the given year. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Event>> + */ + @GET("events/{year}") + Call> getEventsByYear( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of event keys in the given year. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("events/{year}/keys") + Call> getEventsByYearKeys( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of events in the given year. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<EventSimple>> + */ + @GET("events/{year}/simple") + Call> getEventsByYearSimple( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of awards the given team won at the given event. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Award>> + */ + @GET("team/{team_key}/event/{event_key}/awards") + Call> getTeamEventAwards( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of matches for the given team and event. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Match>> + */ + @GET("team/{team_key}/event/{event_key}/matches") + Call> getTeamEventMatches( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of match keys for matches for the given team and event. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("team/{team_key}/event/{event_key}/matches/keys") + Call> getTeamEventMatchesKeys( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of matches for the given team and event. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Match>> + */ + @GET("team/{team_key}/event/{event_key}/matches/simple") + Call> getTeamEventMatchesSimple( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets the competition rank and status of the team at the given event. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<TeamEventStatus> + */ + @GET("team/{team_key}/event/{event_key}/status") + Call getTeamEventStatus( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of all events this team has competed at. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Event>> + */ + @GET("team/{team_key}/events") + Call> getTeamEvents( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of events this team has competed at in the given year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Event>> + */ + @GET("team/{team_key}/events/{year}") + Call> getTeamEventsByYear( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of the event keys for events this team has competed at in the given year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("team/{team_key}/events/{year}/keys") + Call> getTeamEventsByYearKeys( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of events this team has competed at in the given year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<EventSimple>> + */ + @GET("team/{team_key}/events/{year}/simple") + Call> getTeamEventsByYearSimple( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of the event keys for all events this team has competed at. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("team/{team_key}/events/keys") + Call> getTeamEventsKeys( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of all events this team has competed at. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<EventSimple>> + */ + @GET("team/{team_key}/events/simple") + Call> getTeamEventsSimple( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a key-value list of the event statuses for events this team has competed at in the given year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<Map<String, GetTeamEventsStatusesByYear200ResponseValue>> + */ + @GET("team/{team_key}/events/{year}/statuses") + Call> getTeamEventsStatusesByYear( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + +} diff --git a/tba-api/src/main/java/thebluealliance/api/InsightApi.java b/tba-api/src/main/java/thebluealliance/api/InsightApi.java new file mode 100644 index 000000000..2fd0ae409 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/InsightApi.java @@ -0,0 +1,47 @@ +package thebluealliance.api; + +import thebluealliance.api.client.CollectionFormats.*; + +import retrofit2.Call; +import retrofit2.http.*; + +import okhttp3.RequestBody; +import okhttp3.ResponseBody; +import okhttp3.MultipartBody; + +import thebluealliance.api.model.GetStatus401Response; +import thebluealliance.api.model.LeaderboardInsight; +import thebluealliance.api.model.NotablesInsight; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +public interface InsightApi { + /** + * + * Gets a list of `LeaderboardInsight` objects from a specific year. Use year=0 for overall. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<LeaderboardInsight>> + */ + @GET("insights/leaderboards/{year}") + Call> getInsightsLeaderboardsYear( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `NotablesInsight` objects from a specific year. Use year=0 for overall. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<NotablesInsight>> + */ + @GET("insights/notables/{year}") + Call> getInsightsNotablesYear( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + +} diff --git a/tba-api/src/main/java/thebluealliance/api/ListApi.java b/tba-api/src/main/java/thebluealliance/api/ListApi.java new file mode 100644 index 000000000..09fbd7737 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/ListApi.java @@ -0,0 +1,322 @@ +package thebluealliance.api; + +import thebluealliance.api.client.CollectionFormats.*; + +import retrofit2.Call; +import retrofit2.http.*; + +import okhttp3.RequestBody; +import okhttp3.ResponseBody; +import okhttp3.MultipartBody; + +import thebluealliance.api.model.Award; +import thebluealliance.api.model.DistrictRanking; +import thebluealliance.api.model.Event; +import thebluealliance.api.model.EventSimple; +import thebluealliance.api.model.GetStatus401Response; +import thebluealliance.api.model.GetTeamEventsStatusesByYear200ResponseValue; +import thebluealliance.api.model.LeaderboardInsight; +import thebluealliance.api.model.NotablesInsight; +import thebluealliance.api.model.Team; +import thebluealliance.api.model.TeamSimple; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +public interface ListApi { + /** + * + * Gets a list of awards in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Award>> + */ + @GET("district/{district_key}/awards") + Call> getDistrictAwards( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Event>> + */ + @GET("district/{district_key}/events") + Call> getDistrictEvents( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of event keys for events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("district/{district_key}/events/keys") + Call> getDistrictEventsKeys( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<EventSimple>> + */ + @GET("district/{district_key}/events/simple") + Call> getDistrictEventsSimple( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of team district rankings for the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<DistrictRanking>> + */ + @GET("district/{district_key}/rankings") + Call> getDistrictRankings( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `Team` objects that competed in events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Team>> + */ + @GET("district/{district_key}/teams") + Call> getDistrictTeams( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `Team` objects that competed in events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("district/{district_key}/teams/keys") + Call> getDistrictTeamsKeys( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of `Team` objects that competed in events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<TeamSimple>> + */ + @GET("district/{district_key}/teams/simple") + Call> getDistrictTeamsSimple( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `Team` objects that competed in the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Team>> + */ + @GET("event/{event_key}/teams") + Call> getEventTeams( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `Team` keys that competed in the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("event/{event_key}/teams/keys") + Call> getEventTeamsKeys( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of `Team` objects that competed in the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<TeamSimple>> + */ + @GET("event/{event_key}/teams/simple") + Call> getEventTeamsSimple( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a key-value list of the event statuses for teams competing at the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<Map<String, GetTeamEventsStatusesByYear200ResponseValue>> + */ + @GET("event/{event_key}/teams/statuses") + Call> getEventTeamsStatuses( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of events in the given year. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Event>> + */ + @GET("events/{year}") + Call> getEventsByYear( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of event keys in the given year. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("events/{year}/keys") + Call> getEventsByYearKeys( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of events in the given year. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<EventSimple>> + */ + @GET("events/{year}/simple") + Call> getEventsByYearSimple( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `LeaderboardInsight` objects from a specific year. Use year=0 for overall. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<LeaderboardInsight>> + */ + @GET("insights/leaderboards/{year}") + Call> getInsightsLeaderboardsYear( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `NotablesInsight` objects from a specific year. Use year=0 for overall. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<NotablesInsight>> + */ + @GET("insights/notables/{year}") + Call> getInsightsNotablesYear( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a key-value list of the event statuses for events this team has competed at in the given year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<Map<String, GetTeamEventsStatusesByYear200ResponseValue>> + */ + @GET("team/{team_key}/events/{year}/statuses") + Call> getTeamEventsStatusesByYear( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `Team` objects, paginated in groups of 500. + * @param pageNum Page number of results to return, zero-indexed (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Team>> + */ + @GET("teams/{page_num}") + Call> getTeams( + @retrofit2.http.Path("page_num") Integer pageNum, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `Team` objects that competed in the given year, paginated in groups of 500. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param pageNum Page number of results to return, zero-indexed (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Team>> + */ + @GET("teams/{year}/{page_num}") + Call> getTeamsByYear( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Path("page_num") Integer pageNum, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list Team Keys that competed in the given year, paginated in groups of 500. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param pageNum Page number of results to return, zero-indexed (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("teams/{year}/{page_num}/keys") + Call> getTeamsByYearKeys( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Path("page_num") Integer pageNum, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of short form `Team_Simple` objects that competed in the given year, paginated in groups of 500. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param pageNum Page number of results to return, zero-indexed (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<TeamSimple>> + */ + @GET("teams/{year}/{page_num}/simple") + Call> getTeamsByYearSimple( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Path("page_num") Integer pageNum, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of Team keys, paginated in groups of 500. (Note, each page will not have 500 teams, but will include the teams within that range of 500.) + * @param pageNum Page number of results to return, zero-indexed (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("teams/{page_num}/keys") + Call> getTeamsKeys( + @retrofit2.http.Path("page_num") Integer pageNum, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of short form `Team_Simple` objects, paginated in groups of 500. + * @param pageNum Page number of results to return, zero-indexed (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<TeamSimple>> + */ + @GET("teams/{page_num}/simple") + Call> getTeamsSimple( + @retrofit2.http.Path("page_num") Integer pageNum, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + +} diff --git a/tba-api/src/main/java/thebluealliance/api/MatchApi.java b/tba-api/src/main/java/thebluealliance/api/MatchApi.java new file mode 100644 index 000000000..4d9c8a576 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/MatchApi.java @@ -0,0 +1,198 @@ +package thebluealliance.api; + +import thebluealliance.api.client.CollectionFormats.*; + +import retrofit2.Call; +import retrofit2.http.*; + +import okhttp3.RequestBody; +import okhttp3.ResponseBody; +import okhttp3.MultipartBody; + +import thebluealliance.api.model.GetStatus401Response; +import thebluealliance.api.model.Match; +import thebluealliance.api.model.MatchSimple; +import thebluealliance.api.model.Zebra; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +public interface MatchApi { + /** + * + * Gets an array of Match Keys for the given event key that have timeseries data. Returns an empty array if no matches have timeseries data. *WARNING:* This is *not* official data, and is subject to a significant possibility of error, or missing data. Do not rely on this data for any purpose. In fact, pretend we made it up. *WARNING:* This endpoint and corresponding data models are under *active development* and may change at any time, including in breaking ways. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("event/{event_key}/matches/timeseries") + Call> getEventMatchTimeseries( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of matches for the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Match>> + */ + @GET("event/{event_key}/matches") + Call> getEventMatches( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of match keys for the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("event/{event_key}/matches/keys") + Call> getEventMatchesKeys( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of matches for the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<MatchSimple>> + */ + @GET("event/{event_key}/matches/simple") + Call> getEventMatchesSimple( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a `Match` object for the given match key. + * @param matchKey TBA Match Key, eg `2016nytr_qm1` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<Match> + */ + @GET("match/{match_key}") + Call getMatch( + @retrofit2.http.Path("match_key") String matchKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form `Match` object for the given match key. + * @param matchKey TBA Match Key, eg `2016nytr_qm1` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<MatchSimple> + */ + @GET("match/{match_key}/simple") + Call getMatchSimple( + @retrofit2.http.Path("match_key") String matchKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets an array of game-specific Match Timeseries objects for the given match key or an empty array if not available. *WARNING:* This is *not* official data, and is subject to a significant possibility of error, or missing data. Do not rely on this data for any purpose. In fact, pretend we made it up. *WARNING:* This endpoint and corresponding data models are under *active development* and may change at any time, including in breaking ways. + * @param matchKey TBA Match Key, eg `2016nytr_qm1` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Object>> + */ + @GET("match/{match_key}/timeseries") + Call> getMatchTimeseries( + @retrofit2.http.Path("match_key") String matchKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets Zebra MotionWorks data for a Match for the given match key. + * @param matchKey TBA Match Key, eg `2016nytr_qm1` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<Zebra> + */ + @GET("match/{match_key}/zebra_motionworks") + Call getMatchZebra( + @retrofit2.http.Path("match_key") String matchKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of matches for the given team and event. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Match>> + */ + @GET("team/{team_key}/event/{event_key}/matches") + Call> getTeamEventMatches( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of match keys for matches for the given team and event. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("team/{team_key}/event/{event_key}/matches/keys") + Call> getTeamEventMatchesKeys( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of matches for the given team and event. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Match>> + */ + @GET("team/{team_key}/event/{event_key}/matches/simple") + Call> getTeamEventMatchesSimple( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of matches for the given team and year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Match>> + */ + @GET("team/{team_key}/matches/{year}") + Call> getTeamMatchesByYear( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of match keys for matches for the given team and year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("team/{team_key}/matches/{year}/keys") + Call> getTeamMatchesByYearKeys( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of matches for the given team and year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<MatchSimple>> + */ + @GET("team/{team_key}/matches/{year}/simple") + Call> getTeamMatchesByYearSimple( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + +} diff --git a/tba-api/src/main/java/thebluealliance/api/TbaApi.java b/tba-api/src/main/java/thebluealliance/api/TbaApi.java new file mode 100644 index 000000000..0359d6a0c --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/TbaApi.java @@ -0,0 +1,33 @@ +package thebluealliance.api; + +import thebluealliance.api.client.CollectionFormats.*; + +import retrofit2.Call; +import retrofit2.http.*; + +import okhttp3.RequestBody; +import okhttp3.ResponseBody; +import okhttp3.MultipartBody; + +import thebluealliance.api.model.APIStatus; +import thebluealliance.api.model.GetStatus401Response; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +public interface TbaApi { + /** + * + * Returns API status, and TBA status information. + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<APIStatus> + */ + @GET("status") + Call getStatus( + @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + +} diff --git a/tba-api/src/main/java/thebluealliance/api/TeamApi.java b/tba-api/src/main/java/thebluealliance/api/TeamApi.java new file mode 100644 index 000000000..bfbd33842 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/TeamApi.java @@ -0,0 +1,547 @@ +package thebluealliance.api; + +import thebluealliance.api.client.CollectionFormats.*; + +import retrofit2.Call; +import retrofit2.http.*; + +import okhttp3.RequestBody; +import okhttp3.ResponseBody; +import okhttp3.MultipartBody; + +import thebluealliance.api.model.Award; +import thebluealliance.api.model.DistrictList; +import thebluealliance.api.model.DistrictRanking; +import thebluealliance.api.model.Event; +import thebluealliance.api.model.EventSimple; +import thebluealliance.api.model.GetStatus401Response; +import thebluealliance.api.model.GetTeamEventsStatusesByYear200ResponseValue; +import thebluealliance.api.model.History; +import thebluealliance.api.model.Match; +import thebluealliance.api.model.MatchSimple; +import thebluealliance.api.model.Media; +import thebluealliance.api.model.Team; +import thebluealliance.api.model.TeamEventStatus; +import thebluealliance.api.model.TeamRobot; +import thebluealliance.api.model.TeamSimple; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Set; + +public interface TeamApi { + /** + * + * Gets a list of team district rankings for the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<DistrictRanking>> + */ + @GET("district/{district_key}/rankings") + Call> getDistrictRankings( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `Team` objects that competed in events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Team>> + */ + @GET("district/{district_key}/teams") + Call> getDistrictTeams( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `Team` objects that competed in events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("district/{district_key}/teams/keys") + Call> getDistrictTeamsKeys( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of `Team` objects that competed in events in the given district. + * @param districtKey TBA District Key, eg `2016fim` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<TeamSimple>> + */ + @GET("district/{district_key}/teams/simple") + Call> getDistrictTeamsSimple( + @retrofit2.http.Path("district_key") String districtKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `Team` objects that competed in the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Team>> + */ + @GET("event/{event_key}/teams") + Call> getEventTeams( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `Team` keys that competed in the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("event/{event_key}/teams/keys") + Call> getEventTeamsKeys( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of `Team` objects that competed in the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<TeamSimple>> + */ + @GET("event/{event_key}/teams/simple") + Call> getEventTeamsSimple( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a key-value list of the event statuses for teams competing at the given event. + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<Map<String, GetTeamEventsStatusesByYear200ResponseValue>> + */ + @GET("event/{event_key}/teams/statuses") + Call> getEventTeamsStatuses( + @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a `Team` object for the team referenced by the given key. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<Team> + */ + @GET("team/{team_key}") + Call getTeam( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of awards the given team has won. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Award>> + */ + @GET("team/{team_key}/awards") + Call> getTeamAwards( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of awards the given team has won in a given year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Award>> + */ + @GET("team/{team_key}/awards/{year}") + Call> getTeamAwardsByYear( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets an array of districts representing each year the team was in a district. Will return an empty array if the team was never in a district. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<DistrictList>> + */ + @GET("team/{team_key}/districts") + Call> getTeamDistricts( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of awards the given team won at the given event. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Award>> + */ + @GET("team/{team_key}/event/{event_key}/awards") + Call> getTeamEventAwards( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of matches for the given team and event. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Match>> + */ + @GET("team/{team_key}/event/{event_key}/matches") + Call> getTeamEventMatches( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of match keys for matches for the given team and event. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("team/{team_key}/event/{event_key}/matches/keys") + Call> getTeamEventMatchesKeys( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of matches for the given team and event. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Match>> + */ + @GET("team/{team_key}/event/{event_key}/matches/simple") + Call> getTeamEventMatchesSimple( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets the competition rank and status of the team at the given event. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param eventKey TBA Event Key, eg `2016nytr` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<TeamEventStatus> + */ + @GET("team/{team_key}/event/{event_key}/status") + Call getTeamEventStatus( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("event_key") String eventKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of all events this team has competed at. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Event>> + */ + @GET("team/{team_key}/events") + Call> getTeamEvents( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of events this team has competed at in the given year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Event>> + */ + @GET("team/{team_key}/events/{year}") + Call> getTeamEventsByYear( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of the event keys for events this team has competed at in the given year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("team/{team_key}/events/{year}/keys") + Call> getTeamEventsByYearKeys( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of events this team has competed at in the given year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<EventSimple>> + */ + @GET("team/{team_key}/events/{year}/simple") + Call> getTeamEventsByYearSimple( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of the event keys for all events this team has competed at. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("team/{team_key}/events/keys") + Call> getTeamEventsKeys( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of all events this team has competed at. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<EventSimple>> + */ + @GET("team/{team_key}/events/simple") + Call> getTeamEventsSimple( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a key-value list of the event statuses for events this team has competed at in the given year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<Map<String, GetTeamEventsStatusesByYear200ResponseValue>> + */ + @GET("team/{team_key}/events/{year}/statuses") + Call> getTeamEventsStatusesByYear( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets the history for the team referenced by the given key, including their events and awards. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<History> + */ + @GET("team/{team_key}/history") + Call getTeamHistory( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of matches for the given team and year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Match>> + */ + @GET("team/{team_key}/matches/{year}") + Call> getTeamMatchesByYear( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of match keys for matches for the given team and year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("team/{team_key}/matches/{year}/keys") + Call> getTeamMatchesByYearKeys( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a short-form list of matches for the given team and year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<MatchSimple>> + */ + @GET("team/{team_key}/matches/{year}/simple") + Call> getTeamMatchesByYearSimple( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of Media (videos / pictures) for the given team and tag. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param mediaTag Media Tag which describes the Media. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Media>> + */ + @GET("team/{team_key}/media/tag/{media_tag}") + Call> getTeamMediaByTag( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("media_tag") String mediaTag, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of Media (videos / pictures) for the given team, tag and year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param mediaTag Media Tag which describes the Media. (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Media>> + */ + @GET("team/{team_key}/media/tag/{media_tag}/{year}") + Call> getTeamMediaByTagYear( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("media_tag") String mediaTag, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of Media (videos / pictures) for the given team and year. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Media>> + */ + @GET("team/{team_key}/media/{year}") + Call> getTeamMediaByYear( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Path("year") Integer year, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of year and robot name pairs for each year that a robot name was provided. Will return an empty array if the team has never named a robot. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<TeamRobot>> + */ + @GET("team/{team_key}/robots") + Call> getTeamRobots( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a `Team_Simple` object for the team referenced by the given key. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<TeamSimple> + */ + @GET("team/{team_key}/simple") + Call getTeamSimple( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of Media (social media) for the given team. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Media>> + */ + @GET("team/{team_key}/social_media") + Call> getTeamSocialMedia( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of years in which the team participated in at least one competition. + * @param teamKey TBA Team Key, eg `frc254` (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Integer>> + */ + @GET("team/{team_key}/years_participated") + Call> getTeamYearsParticipated( + @retrofit2.http.Path("team_key") String teamKey, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `Team` objects, paginated in groups of 500. + * @param pageNum Page number of results to return, zero-indexed (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Team>> + */ + @GET("teams/{page_num}") + Call> getTeams( + @retrofit2.http.Path("page_num") Integer pageNum, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of `Team` objects that competed in the given year, paginated in groups of 500. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param pageNum Page number of results to return, zero-indexed (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<Team>> + */ + @GET("teams/{year}/{page_num}") + Call> getTeamsByYear( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Path("page_num") Integer pageNum, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list Team Keys that competed in the given year, paginated in groups of 500. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param pageNum Page number of results to return, zero-indexed (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("teams/{year}/{page_num}/keys") + Call> getTeamsByYearKeys( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Path("page_num") Integer pageNum, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of short form `Team_Simple` objects that competed in the given year, paginated in groups of 500. + * @param year Competition Year (or Season). Must be 4 digits. (required) + * @param pageNum Page number of results to return, zero-indexed (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<TeamSimple>> + */ + @GET("teams/{year}/{page_num}/simple") + Call> getTeamsByYearSimple( + @retrofit2.http.Path("year") Integer year, @retrofit2.http.Path("page_num") Integer pageNum, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of Team keys, paginated in groups of 500. (Note, each page will not have 500 teams, but will include the teams within that range of 500.) + * @param pageNum Page number of results to return, zero-indexed (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<String>> + */ + @GET("teams/{page_num}/keys") + Call> getTeamsKeys( + @retrofit2.http.Path("page_num") Integer pageNum, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + + /** + * + * Gets a list of short form `Team_Simple` objects, paginated in groups of 500. + * @param pageNum Page number of results to return, zero-indexed (required) + * @param ifNoneMatch Value of the `ETag` header in the most recently cached response by the client. (optional) + * @return Call<List<TeamSimple>> + */ + @GET("teams/{page_num}/simple") + Call> getTeamsSimple( + @retrofit2.http.Path("page_num") Integer pageNum, @retrofit2.http.Header("If-None-Match") String ifNoneMatch + ); + +} diff --git a/tba-api/src/main/java/thebluealliance/api/client/CollectionFormats.java b/tba-api/src/main/java/thebluealliance/api/client/CollectionFormats.java new file mode 100644 index 000000000..365a68749 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/client/CollectionFormats.java @@ -0,0 +1,112 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.client; + +import java.util.Arrays; +import java.util.List; + +public class CollectionFormats { + + public static class CSVParams { + + protected List params; + + public CSVParams() { + } + + public CSVParams(List params) { + this.params = params; + } + + public CSVParams(String... params) { + this.params = Arrays.asList(params); + } + + public List getParams() { + return params; + } + + public void setParams(List params) { + this.params = params; + } + + @Override + public String toString() { + return StringUtil.join(params.toArray(new String[0]), ","); + } + + } + + public static class SPACEParams extends SSVParams { + + } + + public static class SSVParams extends CSVParams { + + public SSVParams() { + } + + public SSVParams(List params) { + super(params); + } + + public SSVParams(String... params) { + super(params); + } + + @Override + public String toString() { + return StringUtil.join(params.toArray(new String[0]), " "); + } + } + + public static class TSVParams extends CSVParams { + + public TSVParams() { + } + + public TSVParams(List params) { + super(params); + } + + public TSVParams(String... params) { + super(params); + } + + @Override + public String toString() { + return StringUtil.join( params.toArray(new String[0]), "\t"); + } + } + + public static class PIPESParams extends CSVParams { + + public PIPESParams() { + } + + public PIPESParams(List params) { + super(params); + } + + public PIPESParams(String... params) { + super(params); + } + + @Override + public String toString() { + return StringUtil.join(params.toArray(new String[0]), "|"); + } + } + +} diff --git a/tba-api/src/main/java/thebluealliance/api/client/StringUtil.java b/tba-api/src/main/java/thebluealliance/api/client/StringUtil.java new file mode 100644 index 000000000..5271dc4fd --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/client/StringUtil.java @@ -0,0 +1,83 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.client; + +import java.util.Collection; +import java.util.Iterator; + +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class StringUtil { + /** + * Check if the given array contains the given value (with case-insensitive comparison). + * + * @param array The array + * @param value The value to search + * @return true if the array contains the value + */ + public static boolean containsIgnoreCase(String[] array, String value) { + for (String str : array) { + if (value == null && str == null) { + return true; + } + if (value != null && value.equalsIgnoreCase(str)) { + return true; + } + } + return false; + } + + /** + * Join an array of strings with the given separator. + *

+ * Note: This might be replaced by utility method from commons-lang or guava someday + * if one of those libraries is added as dependency. + *

+ * + * @param array The array of strings + * @param separator The separator + * @return the resulting string + */ + public static String join(String[] array, String separator) { + int len = array.length; + if (len == 0) { + return ""; + } + + StringBuilder out = new StringBuilder(); + out.append(array[0]); + for (int i = 1; i < len; i++) { + out.append(separator).append(array[i]); + } + return out.toString(); + } + + /** + * Join a list of strings with the given separator. + * + * @param list The list of strings + * @param separator The separator + * @return the resulting string + */ + public static String join(Collection list, String separator) { + Iterator iterator = list.iterator(); + StringBuilder out = new StringBuilder(); + if (iterator.hasNext()) { + out.append(iterator.next()); + } + while (iterator.hasNext()) { + out.append(separator).append(iterator.next()); + } + return out.toString(); + } +} diff --git a/tba-api/src/main/java/thebluealliance/api/model/APIStatus.java b/tba-api/src/main/java/thebluealliance/api/model/APIStatus.java new file mode 100644 index 000000000..2b315684d --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/APIStatus.java @@ -0,0 +1,249 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import thebluealliance.api.model.APIStatusAppVersion; + +/** + * APIStatus + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class APIStatus { + public static final String SERIALIZED_NAME_CURRENT_SEASON = "current_season"; + @SerializedName(SERIALIZED_NAME_CURRENT_SEASON) + @javax.annotation.Nonnull + private Integer currentSeason; + + public static final String SERIALIZED_NAME_MAX_SEASON = "max_season"; + @SerializedName(SERIALIZED_NAME_MAX_SEASON) + @javax.annotation.Nonnull + private Integer maxSeason; + + public static final String SERIALIZED_NAME_IS_DATAFEED_DOWN = "is_datafeed_down"; + @SerializedName(SERIALIZED_NAME_IS_DATAFEED_DOWN) + @javax.annotation.Nonnull + private Boolean isDatafeedDown; + + public static final String SERIALIZED_NAME_DOWN_EVENTS = "down_events"; + @SerializedName(SERIALIZED_NAME_DOWN_EVENTS) + @javax.annotation.Nonnull + private List downEvents = new ArrayList<>(); + + public static final String SERIALIZED_NAME_IOS = "ios"; + @SerializedName(SERIALIZED_NAME_IOS) + @javax.annotation.Nonnull + private APIStatusAppVersion ios; + + public static final String SERIALIZED_NAME_ANDROID = "android"; + @SerializedName(SERIALIZED_NAME_ANDROID) + @javax.annotation.Nonnull + private APIStatusAppVersion android; + + public APIStatus() { + } + + public APIStatus currentSeason(@javax.annotation.Nonnull Integer currentSeason) { + + this.currentSeason = currentSeason; + return this; + } + + /** + * Year of the current FRC season. + * @return currentSeason + */ + @javax.annotation.Nonnull + + public Integer getCurrentSeason() { + return currentSeason; + } + + + public void setCurrentSeason(@javax.annotation.Nonnull Integer currentSeason) { + this.currentSeason = currentSeason; + } + + public APIStatus maxSeason(@javax.annotation.Nonnull Integer maxSeason) { + + this.maxSeason = maxSeason; + return this; + } + + /** + * Maximum FRC season year for valid queries. + * @return maxSeason + */ + @javax.annotation.Nonnull + + public Integer getMaxSeason() { + return maxSeason; + } + + + public void setMaxSeason(@javax.annotation.Nonnull Integer maxSeason) { + this.maxSeason = maxSeason; + } + + public APIStatus isDatafeedDown(@javax.annotation.Nonnull Boolean isDatafeedDown) { + + this.isDatafeedDown = isDatafeedDown; + return this; + } + + /** + * True if the entire FMS API provided by FIRST is down. + * @return isDatafeedDown + */ + @javax.annotation.Nonnull + + public Boolean getIsDatafeedDown() { + return isDatafeedDown; + } + + + public void setIsDatafeedDown(@javax.annotation.Nonnull Boolean isDatafeedDown) { + this.isDatafeedDown = isDatafeedDown; + } + + public APIStatus downEvents(@javax.annotation.Nonnull List downEvents) { + + this.downEvents = downEvents; + return this; + } + + public APIStatus addDownEventsItem(String downEventsItem) { + if (this.downEvents == null) { + this.downEvents = new ArrayList<>(); + } + this.downEvents.add(downEventsItem); + return this; + } + + /** + * An array of strings containing event keys of any active events that are no longer updating. + * @return downEvents + */ + @javax.annotation.Nonnull + + public List getDownEvents() { + return downEvents; + } + + + public void setDownEvents(@javax.annotation.Nonnull List downEvents) { + this.downEvents = downEvents; + } + + public APIStatus ios(@javax.annotation.Nonnull APIStatusAppVersion ios) { + + this.ios = ios; + return this; + } + + /** + * Get ios + * @return ios + */ + @javax.annotation.Nonnull + + public APIStatusAppVersion getIos() { + return ios; + } + + + public void setIos(@javax.annotation.Nonnull APIStatusAppVersion ios) { + this.ios = ios; + } + + public APIStatus android(@javax.annotation.Nonnull APIStatusAppVersion android) { + + this.android = android; + return this; + } + + /** + * Get android + * @return android + */ + @javax.annotation.Nonnull + + public APIStatusAppVersion getAndroid() { + return android; + } + + + public void setAndroid(@javax.annotation.Nonnull APIStatusAppVersion android) { + this.android = android; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + APIStatus apIStatus = (APIStatus) o; + return Objects.equals(this.currentSeason, apIStatus.currentSeason) && + Objects.equals(this.maxSeason, apIStatus.maxSeason) && + Objects.equals(this.isDatafeedDown, apIStatus.isDatafeedDown) && + Objects.equals(this.downEvents, apIStatus.downEvents) && + Objects.equals(this.ios, apIStatus.ios) && + Objects.equals(this.android, apIStatus.android); + } + + @Override + public int hashCode() { + return Objects.hash(currentSeason, maxSeason, isDatafeedDown, downEvents, ios, android); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class APIStatus {\n"); + sb.append(" currentSeason: ").append(toIndentedString(currentSeason)).append("\n"); + sb.append(" maxSeason: ").append(toIndentedString(maxSeason)).append("\n"); + sb.append(" isDatafeedDown: ").append(toIndentedString(isDatafeedDown)).append("\n"); + sb.append(" downEvents: ").append(toIndentedString(downEvents)).append("\n"); + sb.append(" ios: ").append(toIndentedString(ios)).append("\n"); + sb.append(" android: ").append(toIndentedString(android)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/APIStatusAppVersion.java b/tba-api/src/main/java/thebluealliance/api/model/APIStatusAppVersion.java new file mode 100644 index 000000000..19c38ae7b --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/APIStatusAppVersion.java @@ -0,0 +1,125 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * APIStatusAppVersion + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class APIStatusAppVersion { + public static final String SERIALIZED_NAME_MIN_APP_VERSION = "min_app_version"; + @SerializedName(SERIALIZED_NAME_MIN_APP_VERSION) + @javax.annotation.Nonnull + private Integer minAppVersion; + + public static final String SERIALIZED_NAME_LATEST_APP_VERSION = "latest_app_version"; + @SerializedName(SERIALIZED_NAME_LATEST_APP_VERSION) + @javax.annotation.Nonnull + private Integer latestAppVersion; + + public APIStatusAppVersion() { + } + + public APIStatusAppVersion minAppVersion(@javax.annotation.Nonnull Integer minAppVersion) { + + this.minAppVersion = minAppVersion; + return this; + } + + /** + * Internal use - Minimum application version required to correctly connect and process data. + * @return minAppVersion + */ + @javax.annotation.Nonnull + + public Integer getMinAppVersion() { + return minAppVersion; + } + + + public void setMinAppVersion(@javax.annotation.Nonnull Integer minAppVersion) { + this.minAppVersion = minAppVersion; + } + + public APIStatusAppVersion latestAppVersion(@javax.annotation.Nonnull Integer latestAppVersion) { + + this.latestAppVersion = latestAppVersion; + return this; + } + + /** + * Internal use - Latest application version available. + * @return latestAppVersion + */ + @javax.annotation.Nonnull + + public Integer getLatestAppVersion() { + return latestAppVersion; + } + + + public void setLatestAppVersion(@javax.annotation.Nonnull Integer latestAppVersion) { + this.latestAppVersion = latestAppVersion; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + APIStatusAppVersion apIStatusAppVersion = (APIStatusAppVersion) o; + return Objects.equals(this.minAppVersion, apIStatusAppVersion.minAppVersion) && + Objects.equals(this.latestAppVersion, apIStatusAppVersion.latestAppVersion); + } + + @Override + public int hashCode() { + return Objects.hash(minAppVersion, latestAppVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class APIStatusAppVersion {\n"); + sb.append(" minAppVersion: ").append(toIndentedString(minAppVersion)).append("\n"); + sb.append(" latestAppVersion: ").append(toIndentedString(latestAppVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/Award.java b/tba-api/src/main/java/thebluealliance/api/model/Award.java new file mode 100644 index 000000000..184f9d8b6 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/Award.java @@ -0,0 +1,221 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import thebluealliance.api.model.AwardRecipient; + +/** + * Award + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class Award { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_AWARD_TYPE = "award_type"; + @SerializedName(SERIALIZED_NAME_AWARD_TYPE) + @javax.annotation.Nonnull + private Integer awardType; + + public static final String SERIALIZED_NAME_EVENT_KEY = "event_key"; + @SerializedName(SERIALIZED_NAME_EVENT_KEY) + @javax.annotation.Nonnull + private String eventKey; + + public static final String SERIALIZED_NAME_RECIPIENT_LIST = "recipient_list"; + @SerializedName(SERIALIZED_NAME_RECIPIENT_LIST) + @javax.annotation.Nonnull + private List recipientList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_YEAR = "year"; + @SerializedName(SERIALIZED_NAME_YEAR) + @javax.annotation.Nonnull + private Integer year; + + public Award() { + } + + public Award name(@javax.annotation.Nonnull String name) { + + this.name = name; + return this; + } + + /** + * The name of the award as provided by FIRST. May vary for the same award type. + * @return name + */ + @javax.annotation.Nonnull + + public String getName() { + return name; + } + + + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; + } + + public Award awardType(@javax.annotation.Nonnull Integer awardType) { + + this.awardType = awardType; + return this; + } + + /** + * Type of award given. See https://github.com/the-blue-alliance/the-blue-alliance/blob/master/consts/award_type.py#L6 + * @return awardType + */ + @javax.annotation.Nonnull + + public Integer getAwardType() { + return awardType; + } + + + public void setAwardType(@javax.annotation.Nonnull Integer awardType) { + this.awardType = awardType; + } + + public Award eventKey(@javax.annotation.Nonnull String eventKey) { + + this.eventKey = eventKey; + return this; + } + + /** + * The event_key of the event the award was won at. + * @return eventKey + */ + @javax.annotation.Nonnull + + public String getEventKey() { + return eventKey; + } + + + public void setEventKey(@javax.annotation.Nonnull String eventKey) { + this.eventKey = eventKey; + } + + public Award recipientList(@javax.annotation.Nonnull List recipientList) { + + this.recipientList = recipientList; + return this; + } + + public Award addRecipientListItem(AwardRecipient recipientListItem) { + if (this.recipientList == null) { + this.recipientList = new ArrayList<>(); + } + this.recipientList.add(recipientListItem); + return this; + } + + /** + * A list of recipients of the award at the event. May have either a team_key or an awardee, both, or neither (in the case the award wasn't awarded at the event). + * @return recipientList + */ + @javax.annotation.Nonnull + + public List getRecipientList() { + return recipientList; + } + + + public void setRecipientList(@javax.annotation.Nonnull List recipientList) { + this.recipientList = recipientList; + } + + public Award year(@javax.annotation.Nonnull Integer year) { + + this.year = year; + return this; + } + + /** + * The year this award was won. + * @return year + */ + @javax.annotation.Nonnull + + public Integer getYear() { + return year; + } + + + public void setYear(@javax.annotation.Nonnull Integer year) { + this.year = year; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Award award = (Award) o; + return Objects.equals(this.name, award.name) && + Objects.equals(this.awardType, award.awardType) && + Objects.equals(this.eventKey, award.eventKey) && + Objects.equals(this.recipientList, award.recipientList) && + Objects.equals(this.year, award.year); + } + + @Override + public int hashCode() { + return Objects.hash(name, awardType, eventKey, recipientList, year); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Award {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" awardType: ").append(toIndentedString(awardType)).append("\n"); + sb.append(" eventKey: ").append(toIndentedString(eventKey)).append("\n"); + sb.append(" recipientList: ").append(toIndentedString(recipientList)).append("\n"); + sb.append(" year: ").append(toIndentedString(year)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/AwardRecipient.java b/tba-api/src/main/java/thebluealliance/api/model/AwardRecipient.java new file mode 100644 index 000000000..b4f44fcd6 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/AwardRecipient.java @@ -0,0 +1,125 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * An `Award_Recipient` object represents the team and/or person who received an award at an event. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class AwardRecipient { + public static final String SERIALIZED_NAME_TEAM_KEY = "team_key"; + @SerializedName(SERIALIZED_NAME_TEAM_KEY) + @javax.annotation.Nullable + private String teamKey; + + public static final String SERIALIZED_NAME_AWARDEE = "awardee"; + @SerializedName(SERIALIZED_NAME_AWARDEE) + @javax.annotation.Nullable + private String awardee; + + public AwardRecipient() { + } + + public AwardRecipient teamKey(@javax.annotation.Nullable String teamKey) { + + this.teamKey = teamKey; + return this; + } + + /** + * The TBA team key for the team that was given the award. May be null. + * @return teamKey + */ + @javax.annotation.Nullable + + public String getTeamKey() { + return teamKey; + } + + + public void setTeamKey(@javax.annotation.Nullable String teamKey) { + this.teamKey = teamKey; + } + + public AwardRecipient awardee(@javax.annotation.Nullable String awardee) { + + this.awardee = awardee; + return this; + } + + /** + * The name of the individual given the award. May be null. + * @return awardee + */ + @javax.annotation.Nullable + + public String getAwardee() { + return awardee; + } + + + public void setAwardee(@javax.annotation.Nullable String awardee) { + this.awardee = awardee; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AwardRecipient awardRecipient = (AwardRecipient) o; + return Objects.equals(this.teamKey, awardRecipient.teamKey) && + Objects.equals(this.awardee, awardRecipient.awardee); + } + + @Override + public int hashCode() { + return Objects.hash(teamKey, awardee); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AwardRecipient {\n"); + sb.append(" teamKey: ").append(toIndentedString(teamKey)).append("\n"); + sb.append(" awardee: ").append(toIndentedString(awardee)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/DistrictList.java b/tba-api/src/main/java/thebluealliance/api/model/DistrictList.java new file mode 100644 index 000000000..93490110c --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/DistrictList.java @@ -0,0 +1,181 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * DistrictList + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class DistrictList { + public static final String SERIALIZED_NAME_ABBREVIATION = "abbreviation"; + @SerializedName(SERIALIZED_NAME_ABBREVIATION) + @javax.annotation.Nonnull + private String abbreviation; + + public static final String SERIALIZED_NAME_DISPLAY_NAME = "display_name"; + @SerializedName(SERIALIZED_NAME_DISPLAY_NAME) + @javax.annotation.Nonnull + private String displayName; + + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @javax.annotation.Nonnull + private String key; + + public static final String SERIALIZED_NAME_YEAR = "year"; + @SerializedName(SERIALIZED_NAME_YEAR) + @javax.annotation.Nonnull + private Integer year; + + public DistrictList() { + } + + public DistrictList abbreviation(@javax.annotation.Nonnull String abbreviation) { + + this.abbreviation = abbreviation; + return this; + } + + /** + * The short identifier for the district. + * @return abbreviation + */ + @javax.annotation.Nonnull + + public String getAbbreviation() { + return abbreviation; + } + + + public void setAbbreviation(@javax.annotation.Nonnull String abbreviation) { + this.abbreviation = abbreviation; + } + + public DistrictList displayName(@javax.annotation.Nonnull String displayName) { + + this.displayName = displayName; + return this; + } + + /** + * The long name for the district. + * @return displayName + */ + @javax.annotation.Nonnull + + public String getDisplayName() { + return displayName; + } + + + public void setDisplayName(@javax.annotation.Nonnull String displayName) { + this.displayName = displayName; + } + + public DistrictList key(@javax.annotation.Nonnull String key) { + + this.key = key; + return this; + } + + /** + * Key for this district, e.g. `2016ne`. + * @return key + */ + @javax.annotation.Nonnull + + public String getKey() { + return key; + } + + + public void setKey(@javax.annotation.Nonnull String key) { + this.key = key; + } + + public DistrictList year(@javax.annotation.Nonnull Integer year) { + + this.year = year; + return this; + } + + /** + * Year this district participated. + * @return year + */ + @javax.annotation.Nonnull + + public Integer getYear() { + return year; + } + + + public void setYear(@javax.annotation.Nonnull Integer year) { + this.year = year; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DistrictList districtList = (DistrictList) o; + return Objects.equals(this.abbreviation, districtList.abbreviation) && + Objects.equals(this.displayName, districtList.displayName) && + Objects.equals(this.key, districtList.key) && + Objects.equals(this.year, districtList.year); + } + + @Override + public int hashCode() { + return Objects.hash(abbreviation, displayName, key, year); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DistrictList {\n"); + sb.append(" abbreviation: ").append(toIndentedString(abbreviation)).append("\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" year: ").append(toIndentedString(year)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/DistrictRanking.java b/tba-api/src/main/java/thebluealliance/api/model/DistrictRanking.java new file mode 100644 index 000000000..e346fb0da --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/DistrictRanking.java @@ -0,0 +1,221 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import thebluealliance.api.model.DistrictRankingEventPointsInner; + +/** + * Rank of a team in a district. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class DistrictRanking { + public static final String SERIALIZED_NAME_TEAM_KEY = "team_key"; + @SerializedName(SERIALIZED_NAME_TEAM_KEY) + @javax.annotation.Nonnull + private String teamKey; + + public static final String SERIALIZED_NAME_RANK = "rank"; + @SerializedName(SERIALIZED_NAME_RANK) + @javax.annotation.Nonnull + private Integer rank; + + public static final String SERIALIZED_NAME_ROOKIE_BONUS = "rookie_bonus"; + @SerializedName(SERIALIZED_NAME_ROOKIE_BONUS) + @javax.annotation.Nullable + private Integer rookieBonus; + + public static final String SERIALIZED_NAME_POINT_TOTAL = "point_total"; + @SerializedName(SERIALIZED_NAME_POINT_TOTAL) + @javax.annotation.Nonnull + private Integer pointTotal; + + public static final String SERIALIZED_NAME_EVENT_POINTS = "event_points"; + @SerializedName(SERIALIZED_NAME_EVENT_POINTS) + @javax.annotation.Nullable + private List eventPoints = new ArrayList<>(); + + public DistrictRanking() { + } + + public DistrictRanking teamKey(@javax.annotation.Nonnull String teamKey) { + + this.teamKey = teamKey; + return this; + } + + /** + * TBA team key for the team. + * @return teamKey + */ + @javax.annotation.Nonnull + + public String getTeamKey() { + return teamKey; + } + + + public void setTeamKey(@javax.annotation.Nonnull String teamKey) { + this.teamKey = teamKey; + } + + public DistrictRanking rank(@javax.annotation.Nonnull Integer rank) { + + this.rank = rank; + return this; + } + + /** + * Numerical rank of the team, 1 being top rank. + * @return rank + */ + @javax.annotation.Nonnull + + public Integer getRank() { + return rank; + } + + + public void setRank(@javax.annotation.Nonnull Integer rank) { + this.rank = rank; + } + + public DistrictRanking rookieBonus(@javax.annotation.Nullable Integer rookieBonus) { + + this.rookieBonus = rookieBonus; + return this; + } + + /** + * Any points added to a team as a result of the rookie bonus. + * @return rookieBonus + */ + @javax.annotation.Nullable + + public Integer getRookieBonus() { + return rookieBonus; + } + + + public void setRookieBonus(@javax.annotation.Nullable Integer rookieBonus) { + this.rookieBonus = rookieBonus; + } + + public DistrictRanking pointTotal(@javax.annotation.Nonnull Integer pointTotal) { + + this.pointTotal = pointTotal; + return this; + } + + /** + * Total district points for the team. + * @return pointTotal + */ + @javax.annotation.Nonnull + + public Integer getPointTotal() { + return pointTotal; + } + + + public void setPointTotal(@javax.annotation.Nonnull Integer pointTotal) { + this.pointTotal = pointTotal; + } + + public DistrictRanking eventPoints(@javax.annotation.Nullable List eventPoints) { + + this.eventPoints = eventPoints; + return this; + } + + public DistrictRanking addEventPointsItem(DistrictRankingEventPointsInner eventPointsItem) { + if (this.eventPoints == null) { + this.eventPoints = new ArrayList<>(); + } + this.eventPoints.add(eventPointsItem); + return this; + } + + /** + * List of events that contributed to the point total for the team. + * @return eventPoints + */ + @javax.annotation.Nullable + + public List getEventPoints() { + return eventPoints; + } + + + public void setEventPoints(@javax.annotation.Nullable List eventPoints) { + this.eventPoints = eventPoints; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DistrictRanking districtRanking = (DistrictRanking) o; + return Objects.equals(this.teamKey, districtRanking.teamKey) && + Objects.equals(this.rank, districtRanking.rank) && + Objects.equals(this.rookieBonus, districtRanking.rookieBonus) && + Objects.equals(this.pointTotal, districtRanking.pointTotal) && + Objects.equals(this.eventPoints, districtRanking.eventPoints); + } + + @Override + public int hashCode() { + return Objects.hash(teamKey, rank, rookieBonus, pointTotal, eventPoints); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DistrictRanking {\n"); + sb.append(" teamKey: ").append(toIndentedString(teamKey)).append("\n"); + sb.append(" rank: ").append(toIndentedString(rank)).append("\n"); + sb.append(" rookieBonus: ").append(toIndentedString(rookieBonus)).append("\n"); + sb.append(" pointTotal: ").append(toIndentedString(pointTotal)).append("\n"); + sb.append(" eventPoints: ").append(toIndentedString(eventPoints)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/DistrictRankingEventPointsInner.java b/tba-api/src/main/java/thebluealliance/api/model/DistrictRankingEventPointsInner.java new file mode 100644 index 000000000..7477c3751 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/DistrictRankingEventPointsInner.java @@ -0,0 +1,265 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * DistrictRankingEventPointsInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class DistrictRankingEventPointsInner { + public static final String SERIALIZED_NAME_DISTRICT_CMP = "district_cmp"; + @SerializedName(SERIALIZED_NAME_DISTRICT_CMP) + @javax.annotation.Nonnull + private Boolean districtCmp; + + public static final String SERIALIZED_NAME_TOTAL = "total"; + @SerializedName(SERIALIZED_NAME_TOTAL) + @javax.annotation.Nonnull + private Integer total; + + public static final String SERIALIZED_NAME_ALLIANCE_POINTS = "alliance_points"; + @SerializedName(SERIALIZED_NAME_ALLIANCE_POINTS) + @javax.annotation.Nonnull + private Integer alliancePoints; + + public static final String SERIALIZED_NAME_ELIM_POINTS = "elim_points"; + @SerializedName(SERIALIZED_NAME_ELIM_POINTS) + @javax.annotation.Nonnull + private Integer elimPoints; + + public static final String SERIALIZED_NAME_AWARD_POINTS = "award_points"; + @SerializedName(SERIALIZED_NAME_AWARD_POINTS) + @javax.annotation.Nonnull + private Integer awardPoints; + + public static final String SERIALIZED_NAME_EVENT_KEY = "event_key"; + @SerializedName(SERIALIZED_NAME_EVENT_KEY) + @javax.annotation.Nonnull + private String eventKey; + + public static final String SERIALIZED_NAME_QUAL_POINTS = "qual_points"; + @SerializedName(SERIALIZED_NAME_QUAL_POINTS) + @javax.annotation.Nonnull + private Integer qualPoints; + + public DistrictRankingEventPointsInner() { + } + + public DistrictRankingEventPointsInner districtCmp(@javax.annotation.Nonnull Boolean districtCmp) { + + this.districtCmp = districtCmp; + return this; + } + + /** + * `true` if this event is a District Championship event. + * @return districtCmp + */ + @javax.annotation.Nonnull + + public Boolean getDistrictCmp() { + return districtCmp; + } + + + public void setDistrictCmp(@javax.annotation.Nonnull Boolean districtCmp) { + this.districtCmp = districtCmp; + } + + public DistrictRankingEventPointsInner total(@javax.annotation.Nonnull Integer total) { + + this.total = total; + return this; + } + + /** + * Total points awarded at this event. + * @return total + */ + @javax.annotation.Nonnull + + public Integer getTotal() { + return total; + } + + + public void setTotal(@javax.annotation.Nonnull Integer total) { + this.total = total; + } + + public DistrictRankingEventPointsInner alliancePoints(@javax.annotation.Nonnull Integer alliancePoints) { + + this.alliancePoints = alliancePoints; + return this; + } + + /** + * Points awarded for alliance selection. + * @return alliancePoints + */ + @javax.annotation.Nonnull + + public Integer getAlliancePoints() { + return alliancePoints; + } + + + public void setAlliancePoints(@javax.annotation.Nonnull Integer alliancePoints) { + this.alliancePoints = alliancePoints; + } + + public DistrictRankingEventPointsInner elimPoints(@javax.annotation.Nonnull Integer elimPoints) { + + this.elimPoints = elimPoints; + return this; + } + + /** + * Points awarded for elimination match performance. + * @return elimPoints + */ + @javax.annotation.Nonnull + + public Integer getElimPoints() { + return elimPoints; + } + + + public void setElimPoints(@javax.annotation.Nonnull Integer elimPoints) { + this.elimPoints = elimPoints; + } + + public DistrictRankingEventPointsInner awardPoints(@javax.annotation.Nonnull Integer awardPoints) { + + this.awardPoints = awardPoints; + return this; + } + + /** + * Points awarded for event awards. + * @return awardPoints + */ + @javax.annotation.Nonnull + + public Integer getAwardPoints() { + return awardPoints; + } + + + public void setAwardPoints(@javax.annotation.Nonnull Integer awardPoints) { + this.awardPoints = awardPoints; + } + + public DistrictRankingEventPointsInner eventKey(@javax.annotation.Nonnull String eventKey) { + + this.eventKey = eventKey; + return this; + } + + /** + * TBA Event key for this event. + * @return eventKey + */ + @javax.annotation.Nonnull + + public String getEventKey() { + return eventKey; + } + + + public void setEventKey(@javax.annotation.Nonnull String eventKey) { + this.eventKey = eventKey; + } + + public DistrictRankingEventPointsInner qualPoints(@javax.annotation.Nonnull Integer qualPoints) { + + this.qualPoints = qualPoints; + return this; + } + + /** + * Points awarded for qualification match performance. + * @return qualPoints + */ + @javax.annotation.Nonnull + + public Integer getQualPoints() { + return qualPoints; + } + + + public void setQualPoints(@javax.annotation.Nonnull Integer qualPoints) { + this.qualPoints = qualPoints; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DistrictRankingEventPointsInner districtRankingEventPointsInner = (DistrictRankingEventPointsInner) o; + return Objects.equals(this.districtCmp, districtRankingEventPointsInner.districtCmp) && + Objects.equals(this.total, districtRankingEventPointsInner.total) && + Objects.equals(this.alliancePoints, districtRankingEventPointsInner.alliancePoints) && + Objects.equals(this.elimPoints, districtRankingEventPointsInner.elimPoints) && + Objects.equals(this.awardPoints, districtRankingEventPointsInner.awardPoints) && + Objects.equals(this.eventKey, districtRankingEventPointsInner.eventKey) && + Objects.equals(this.qualPoints, districtRankingEventPointsInner.qualPoints); + } + + @Override + public int hashCode() { + return Objects.hash(districtCmp, total, alliancePoints, elimPoints, awardPoints, eventKey, qualPoints); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DistrictRankingEventPointsInner {\n"); + sb.append(" districtCmp: ").append(toIndentedString(districtCmp)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" alliancePoints: ").append(toIndentedString(alliancePoints)).append("\n"); + sb.append(" elimPoints: ").append(toIndentedString(elimPoints)).append("\n"); + sb.append(" awardPoints: ").append(toIndentedString(awardPoints)).append("\n"); + sb.append(" eventKey: ").append(toIndentedString(eventKey)).append("\n"); + sb.append(" qualPoints: ").append(toIndentedString(qualPoints)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/EliminationAlliance.java b/tba-api/src/main/java/thebluealliance/api/model/EliminationAlliance.java new file mode 100644 index 000000000..6ce8672ee --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/EliminationAlliance.java @@ -0,0 +1,242 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import thebluealliance.api.model.EliminationAllianceBackup; +import thebluealliance.api.model.EliminationAllianceStatus; + +/** + * EliminationAlliance + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class EliminationAlliance { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable + private String name; + + public static final String SERIALIZED_NAME_BACKUP = "backup"; + @SerializedName(SERIALIZED_NAME_BACKUP) + @javax.annotation.Nullable + private EliminationAllianceBackup backup; + + public static final String SERIALIZED_NAME_DECLINES = "declines"; + @SerializedName(SERIALIZED_NAME_DECLINES) + @javax.annotation.Nonnull + private List declines = new ArrayList<>(); + + public static final String SERIALIZED_NAME_PICKS = "picks"; + @SerializedName(SERIALIZED_NAME_PICKS) + @javax.annotation.Nonnull + private List picks = new ArrayList<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable + private EliminationAllianceStatus status; + + public EliminationAlliance() { + } + + public EliminationAlliance name(@javax.annotation.Nullable String name) { + + this.name = name; + return this; + } + + /** + * Alliance name, may be null. + * @return name + */ + @javax.annotation.Nullable + + public String getName() { + return name; + } + + + public void setName(@javax.annotation.Nullable String name) { + this.name = name; + } + + public EliminationAlliance backup(@javax.annotation.Nullable EliminationAllianceBackup backup) { + + this.backup = backup; + return this; + } + + /** + * Get backup + * @return backup + */ + @javax.annotation.Nullable + + public EliminationAllianceBackup getBackup() { + return backup; + } + + + public void setBackup(@javax.annotation.Nullable EliminationAllianceBackup backup) { + this.backup = backup; + } + + public EliminationAlliance declines(@javax.annotation.Nonnull List declines) { + + this.declines = declines; + return this; + } + + public EliminationAlliance addDeclinesItem(String declinesItem) { + if (this.declines == null) { + this.declines = new ArrayList<>(); + } + this.declines.add(declinesItem); + return this; + } + + /** + * List of teams that declined the alliance. + * @return declines + */ + @javax.annotation.Nonnull + + public List getDeclines() { + return declines; + } + + + public void setDeclines(@javax.annotation.Nonnull List declines) { + this.declines = declines; + } + + public EliminationAlliance picks(@javax.annotation.Nonnull List picks) { + + this.picks = picks; + return this; + } + + public EliminationAlliance addPicksItem(String picksItem) { + if (this.picks == null) { + this.picks = new ArrayList<>(); + } + this.picks.add(picksItem); + return this; + } + + /** + * List of team keys picked for the alliance. First pick is captain. + * @return picks + */ + @javax.annotation.Nonnull + + public List getPicks() { + return picks; + } + + + public void setPicks(@javax.annotation.Nonnull List picks) { + this.picks = picks; + } + + public EliminationAlliance status(@javax.annotation.Nullable EliminationAllianceStatus status) { + + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nullable + + public EliminationAllianceStatus getStatus() { + return status; + } + + + public void setStatus(@javax.annotation.Nullable EliminationAllianceStatus status) { + this.status = status; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EliminationAlliance eliminationAlliance = (EliminationAlliance) o; + return Objects.equals(this.name, eliminationAlliance.name) && + Objects.equals(this.backup, eliminationAlliance.backup) && + Objects.equals(this.declines, eliminationAlliance.declines) && + Objects.equals(this.picks, eliminationAlliance.picks) && + Objects.equals(this.status, eliminationAlliance.status); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(name, backup, declines, picks, status); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EliminationAlliance {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" backup: ").append(toIndentedString(backup)).append("\n"); + sb.append(" declines: ").append(toIndentedString(declines)).append("\n"); + sb.append(" picks: ").append(toIndentedString(picks)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/EliminationAllianceBackup.java b/tba-api/src/main/java/thebluealliance/api/model/EliminationAllianceBackup.java new file mode 100644 index 000000000..033a07f57 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/EliminationAllianceBackup.java @@ -0,0 +1,125 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * Backup team called in, may be null. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class EliminationAllianceBackup { + public static final String SERIALIZED_NAME_IN = "in"; + @SerializedName(SERIALIZED_NAME_IN) + @javax.annotation.Nonnull + private String in; + + public static final String SERIALIZED_NAME_OUT = "out"; + @SerializedName(SERIALIZED_NAME_OUT) + @javax.annotation.Nonnull + private String out; + + public EliminationAllianceBackup() { + } + + public EliminationAllianceBackup in(@javax.annotation.Nonnull String in) { + + this.in = in; + return this; + } + + /** + * Team key that was called in as the backup. + * @return in + */ + @javax.annotation.Nonnull + + public String getIn() { + return in; + } + + + public void setIn(@javax.annotation.Nonnull String in) { + this.in = in; + } + + public EliminationAllianceBackup out(@javax.annotation.Nonnull String out) { + + this.out = out; + return this; + } + + /** + * Team key that was replaced by the backup team. + * @return out + */ + @javax.annotation.Nonnull + + public String getOut() { + return out; + } + + + public void setOut(@javax.annotation.Nonnull String out) { + this.out = out; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EliminationAllianceBackup eliminationAllianceBackup = (EliminationAllianceBackup) o; + return Objects.equals(this.in, eliminationAllianceBackup.in) && + Objects.equals(this.out, eliminationAllianceBackup.out); + } + + @Override + public int hashCode() { + return Objects.hash(in, out); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EliminationAllianceBackup {\n"); + sb.append(" in: ").append(toIndentedString(in)).append("\n"); + sb.append(" out: ").append(toIndentedString(out)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/EliminationAllianceStatus.java b/tba-api/src/main/java/thebluealliance/api/model/EliminationAllianceStatus.java new file mode 100644 index 000000000..e246e4277 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/EliminationAllianceStatus.java @@ -0,0 +1,222 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; +import thebluealliance.api.model.WLTRecord; + +/** + * EliminationAllianceStatus + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class EliminationAllianceStatus { + public static final String SERIALIZED_NAME_PLAYOFF_AVERAGE = "playoff_average"; + @SerializedName(SERIALIZED_NAME_PLAYOFF_AVERAGE) + @javax.annotation.Nullable + private Double playoffAverage; + + public static final String SERIALIZED_NAME_LEVEL = "level"; + @SerializedName(SERIALIZED_NAME_LEVEL) + @javax.annotation.Nullable + private String level; + + public static final String SERIALIZED_NAME_RECORD = "record"; + @SerializedName(SERIALIZED_NAME_RECORD) + @javax.annotation.Nullable + private WLTRecord record; + + public static final String SERIALIZED_NAME_CURRENT_LEVEL_RECORD = "current_level_record"; + @SerializedName(SERIALIZED_NAME_CURRENT_LEVEL_RECORD) + @javax.annotation.Nullable + private WLTRecord currentLevelRecord; + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable + private String status; + + public EliminationAllianceStatus() { + } + + public EliminationAllianceStatus playoffAverage(@javax.annotation.Nullable Double playoffAverage) { + + this.playoffAverage = playoffAverage; + return this; + } + + /** + * Get playoffAverage + * @return playoffAverage + */ + @javax.annotation.Nullable + + public Double getPlayoffAverage() { + return playoffAverage; + } + + + public void setPlayoffAverage(@javax.annotation.Nullable Double playoffAverage) { + this.playoffAverage = playoffAverage; + } + + public EliminationAllianceStatus level(@javax.annotation.Nullable String level) { + + this.level = level; + return this; + } + + /** + * Get level + * @return level + */ + @javax.annotation.Nullable + + public String getLevel() { + return level; + } + + + public void setLevel(@javax.annotation.Nullable String level) { + this.level = level; + } + + public EliminationAllianceStatus record(@javax.annotation.Nullable WLTRecord record) { + + this.record = record; + return this; + } + + /** + * Get record + * @return record + */ + @javax.annotation.Nullable + + public WLTRecord getRecord() { + return record; + } + + + public void setRecord(@javax.annotation.Nullable WLTRecord record) { + this.record = record; + } + + public EliminationAllianceStatus currentLevelRecord(@javax.annotation.Nullable WLTRecord currentLevelRecord) { + + this.currentLevelRecord = currentLevelRecord; + return this; + } + + /** + * Get currentLevelRecord + * @return currentLevelRecord + */ + @javax.annotation.Nullable + + public WLTRecord getCurrentLevelRecord() { + return currentLevelRecord; + } + + + public void setCurrentLevelRecord(@javax.annotation.Nullable WLTRecord currentLevelRecord) { + this.currentLevelRecord = currentLevelRecord; + } + + public EliminationAllianceStatus status(@javax.annotation.Nullable String status) { + + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nullable + + public String getStatus() { + return status; + } + + + public void setStatus(@javax.annotation.Nullable String status) { + this.status = status; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EliminationAllianceStatus eliminationAllianceStatus = (EliminationAllianceStatus) o; + return Objects.equals(this.playoffAverage, eliminationAllianceStatus.playoffAverage) && + Objects.equals(this.level, eliminationAllianceStatus.level) && + Objects.equals(this.record, eliminationAllianceStatus.record) && + Objects.equals(this.currentLevelRecord, eliminationAllianceStatus.currentLevelRecord) && + Objects.equals(this.status, eliminationAllianceStatus.status); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(playoffAverage, level, record, currentLevelRecord, status); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EliminationAllianceStatus {\n"); + sb.append(" playoffAverage: ").append(toIndentedString(playoffAverage)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" record: ").append(toIndentedString(record)).append("\n"); + sb.append(" currentLevelRecord: ").append(toIndentedString(currentLevelRecord)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/Event.java b/tba-api/src/main/java/thebluealliance/api/model/Event.java new file mode 100644 index 000000000..4e2f951fd --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/Event.java @@ -0,0 +1,931 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.LocalDate; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import thebluealliance.api.model.DistrictList; +import thebluealliance.api.model.Webcast; + +/** + * Event + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class Event { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @javax.annotation.Nonnull + private String key; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_EVENT_CODE = "event_code"; + @SerializedName(SERIALIZED_NAME_EVENT_CODE) + @javax.annotation.Nonnull + private String eventCode; + + public static final String SERIALIZED_NAME_EVENT_TYPE = "event_type"; + @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nonnull + private Integer eventType; + + public static final String SERIALIZED_NAME_DISTRICT = "district"; + @SerializedName(SERIALIZED_NAME_DISTRICT) + @javax.annotation.Nullable + private DistrictList district; + + public static final String SERIALIZED_NAME_CITY = "city"; + @SerializedName(SERIALIZED_NAME_CITY) + @javax.annotation.Nullable + private String city; + + public static final String SERIALIZED_NAME_STATE_PROV = "state_prov"; + @SerializedName(SERIALIZED_NAME_STATE_PROV) + @javax.annotation.Nullable + private String stateProv; + + public static final String SERIALIZED_NAME_COUNTRY = "country"; + @SerializedName(SERIALIZED_NAME_COUNTRY) + @javax.annotation.Nullable + private String country; + + public static final String SERIALIZED_NAME_START_DATE = "start_date"; + @SerializedName(SERIALIZED_NAME_START_DATE) + @javax.annotation.Nonnull + private LocalDate startDate; + + public static final String SERIALIZED_NAME_END_DATE = "end_date"; + @SerializedName(SERIALIZED_NAME_END_DATE) + @javax.annotation.Nonnull + private LocalDate endDate; + + public static final String SERIALIZED_NAME_YEAR = "year"; + @SerializedName(SERIALIZED_NAME_YEAR) + @javax.annotation.Nonnull + private Integer year; + + public static final String SERIALIZED_NAME_SHORT_NAME = "short_name"; + @SerializedName(SERIALIZED_NAME_SHORT_NAME) + @javax.annotation.Nullable + private String shortName; + + public static final String SERIALIZED_NAME_EVENT_TYPE_STRING = "event_type_string"; + @SerializedName(SERIALIZED_NAME_EVENT_TYPE_STRING) + @javax.annotation.Nonnull + private String eventTypeString; + + public static final String SERIALIZED_NAME_WEEK = "week"; + @SerializedName(SERIALIZED_NAME_WEEK) + @javax.annotation.Nullable + private Integer week; + + public static final String SERIALIZED_NAME_ADDRESS = "address"; + @SerializedName(SERIALIZED_NAME_ADDRESS) + @javax.annotation.Nullable + private String address; + + public static final String SERIALIZED_NAME_POSTAL_CODE = "postal_code"; + @SerializedName(SERIALIZED_NAME_POSTAL_CODE) + @javax.annotation.Nullable + private String postalCode; + + public static final String SERIALIZED_NAME_GMAPS_PLACE_ID = "gmaps_place_id"; + @SerializedName(SERIALIZED_NAME_GMAPS_PLACE_ID) + @javax.annotation.Nullable + private String gmapsPlaceId; + + public static final String SERIALIZED_NAME_GMAPS_URL = "gmaps_url"; + @SerializedName(SERIALIZED_NAME_GMAPS_URL) + @javax.annotation.Nullable + private String gmapsUrl; + + public static final String SERIALIZED_NAME_LAT = "lat"; + @SerializedName(SERIALIZED_NAME_LAT) + @javax.annotation.Nullable + private Double lat; + + public static final String SERIALIZED_NAME_LNG = "lng"; + @SerializedName(SERIALIZED_NAME_LNG) + @javax.annotation.Nullable + private Double lng; + + public static final String SERIALIZED_NAME_LOCATION_NAME = "location_name"; + @SerializedName(SERIALIZED_NAME_LOCATION_NAME) + @javax.annotation.Nullable + private String locationName; + + public static final String SERIALIZED_NAME_TIMEZONE = "timezone"; + @SerializedName(SERIALIZED_NAME_TIMEZONE) + @javax.annotation.Nonnull + private String timezone; + + public static final String SERIALIZED_NAME_WEBSITE = "website"; + @SerializedName(SERIALIZED_NAME_WEBSITE) + @javax.annotation.Nullable + private String website; + + public static final String SERIALIZED_NAME_FIRST_EVENT_ID = "first_event_id"; + @SerializedName(SERIALIZED_NAME_FIRST_EVENT_ID) + @javax.annotation.Nullable + private String firstEventId; + + public static final String SERIALIZED_NAME_FIRST_EVENT_CODE = "first_event_code"; + @SerializedName(SERIALIZED_NAME_FIRST_EVENT_CODE) + @javax.annotation.Nullable + private String firstEventCode; + + public static final String SERIALIZED_NAME_WEBCASTS = "webcasts"; + @SerializedName(SERIALIZED_NAME_WEBCASTS) + @javax.annotation.Nonnull + private List webcasts = new ArrayList<>(); + + public static final String SERIALIZED_NAME_DIVISION_KEYS = "division_keys"; + @SerializedName(SERIALIZED_NAME_DIVISION_KEYS) + @javax.annotation.Nonnull + private List divisionKeys = new ArrayList<>(); + + public static final String SERIALIZED_NAME_PARENT_EVENT_KEY = "parent_event_key"; + @SerializedName(SERIALIZED_NAME_PARENT_EVENT_KEY) + @javax.annotation.Nullable + private String parentEventKey; + + public static final String SERIALIZED_NAME_PLAYOFF_TYPE = "playoff_type"; + @SerializedName(SERIALIZED_NAME_PLAYOFF_TYPE) + @javax.annotation.Nullable + private Integer playoffType; + + public static final String SERIALIZED_NAME_PLAYOFF_TYPE_STRING = "playoff_type_string"; + @SerializedName(SERIALIZED_NAME_PLAYOFF_TYPE_STRING) + @javax.annotation.Nullable + private String playoffTypeString; + + public Event() { + } + + public Event key(@javax.annotation.Nonnull String key) { + + this.key = key; + return this; + } + + /** + * TBA event key with the format yyyy[EVENT_CODE], where yyyy is the year, and EVENT_CODE is the event code of the event. + * @return key + */ + @javax.annotation.Nonnull + + public String getKey() { + return key; + } + + + public void setKey(@javax.annotation.Nonnull String key) { + this.key = key; + } + + public Event name(@javax.annotation.Nonnull String name) { + + this.name = name; + return this; + } + + /** + * Official name of event on record either provided by FIRST or organizers of offseason event. + * @return name + */ + @javax.annotation.Nonnull + + public String getName() { + return name; + } + + + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; + } + + public Event eventCode(@javax.annotation.Nonnull String eventCode) { + + this.eventCode = eventCode; + return this; + } + + /** + * Event short code, as provided by FIRST. + * @return eventCode + */ + @javax.annotation.Nonnull + + public String getEventCode() { + return eventCode; + } + + + public void setEventCode(@javax.annotation.Nonnull String eventCode) { + this.eventCode = eventCode; + } + + public Event eventType(@javax.annotation.Nonnull Integer eventType) { + + this.eventType = eventType; + return this; + } + + /** + * Event Type, as defined here: https://github.com/the-blue-alliance/the-blue-alliance/blob/master/consts/event_type.py#L2 + * @return eventType + */ + @javax.annotation.Nonnull + + public Integer getEventType() { + return eventType; + } + + + public void setEventType(@javax.annotation.Nonnull Integer eventType) { + this.eventType = eventType; + } + + public Event district(@javax.annotation.Nullable DistrictList district) { + + this.district = district; + return this; + } + + /** + * Get district + * @return district + */ + @javax.annotation.Nullable + + public DistrictList getDistrict() { + return district; + } + + + public void setDistrict(@javax.annotation.Nullable DistrictList district) { + this.district = district; + } + + public Event city(@javax.annotation.Nullable String city) { + + this.city = city; + return this; + } + + /** + * City, town, village, etc. the event is located in. + * @return city + */ + @javax.annotation.Nullable + + public String getCity() { + return city; + } + + + public void setCity(@javax.annotation.Nullable String city) { + this.city = city; + } + + public Event stateProv(@javax.annotation.Nullable String stateProv) { + + this.stateProv = stateProv; + return this; + } + + /** + * State or Province the event is located in. + * @return stateProv + */ + @javax.annotation.Nullable + + public String getStateProv() { + return stateProv; + } + + + public void setStateProv(@javax.annotation.Nullable String stateProv) { + this.stateProv = stateProv; + } + + public Event country(@javax.annotation.Nullable String country) { + + this.country = country; + return this; + } + + /** + * Country the event is located in. + * @return country + */ + @javax.annotation.Nullable + + public String getCountry() { + return country; + } + + + public void setCountry(@javax.annotation.Nullable String country) { + this.country = country; + } + + public Event startDate(@javax.annotation.Nonnull LocalDate startDate) { + + this.startDate = startDate; + return this; + } + + /** + * Event start date in `yyyy-mm-dd` format. + * @return startDate + */ + @javax.annotation.Nonnull + + public LocalDate getStartDate() { + return startDate; + } + + + public void setStartDate(@javax.annotation.Nonnull LocalDate startDate) { + this.startDate = startDate; + } + + public Event endDate(@javax.annotation.Nonnull LocalDate endDate) { + + this.endDate = endDate; + return this; + } + + /** + * Event end date in `yyyy-mm-dd` format. + * @return endDate + */ + @javax.annotation.Nonnull + + public LocalDate getEndDate() { + return endDate; + } + + + public void setEndDate(@javax.annotation.Nonnull LocalDate endDate) { + this.endDate = endDate; + } + + public Event year(@javax.annotation.Nonnull Integer year) { + + this.year = year; + return this; + } + + /** + * Year the event data is for. + * @return year + */ + @javax.annotation.Nonnull + + public Integer getYear() { + return year; + } + + + public void setYear(@javax.annotation.Nonnull Integer year) { + this.year = year; + } + + public Event shortName(@javax.annotation.Nullable String shortName) { + + this.shortName = shortName; + return this; + } + + /** + * Same as `name` but doesn't include event specifiers, such as 'Regional' or 'District'. May be null. + * @return shortName + */ + @javax.annotation.Nullable + + public String getShortName() { + return shortName; + } + + + public void setShortName(@javax.annotation.Nullable String shortName) { + this.shortName = shortName; + } + + public Event eventTypeString(@javax.annotation.Nonnull String eventTypeString) { + + this.eventTypeString = eventTypeString; + return this; + } + + /** + * Event Type, eg Regional, District, or Offseason. + * @return eventTypeString + */ + @javax.annotation.Nonnull + + public String getEventTypeString() { + return eventTypeString; + } + + + public void setEventTypeString(@javax.annotation.Nonnull String eventTypeString) { + this.eventTypeString = eventTypeString; + } + + public Event week(@javax.annotation.Nullable Integer week) { + + this.week = week; + return this; + } + + /** + * Week of the event relative to the first official season event, zero-indexed. Only valid for Regionals, Districts, and District Championships. Null otherwise. (Eg. A season with a week 0 'preseason' event does not count, and week 1 events will show 0 here. Seasons with a week 0.5 regional event will show week 0 for those event(s) and week 1 for week 1 events and so on.) + * @return week + */ + @javax.annotation.Nullable + + public Integer getWeek() { + return week; + } + + + public void setWeek(@javax.annotation.Nullable Integer week) { + this.week = week; + } + + public Event address(@javax.annotation.Nullable String address) { + + this.address = address; + return this; + } + + /** + * Address of the event's venue, if available. + * @return address + */ + @javax.annotation.Nullable + + public String getAddress() { + return address; + } + + + public void setAddress(@javax.annotation.Nullable String address) { + this.address = address; + } + + public Event postalCode(@javax.annotation.Nullable String postalCode) { + + this.postalCode = postalCode; + return this; + } + + /** + * Postal code from the event address. + * @return postalCode + */ + @javax.annotation.Nullable + + public String getPostalCode() { + return postalCode; + } + + + public void setPostalCode(@javax.annotation.Nullable String postalCode) { + this.postalCode = postalCode; + } + + public Event gmapsPlaceId(@javax.annotation.Nullable String gmapsPlaceId) { + + this.gmapsPlaceId = gmapsPlaceId; + return this; + } + + /** + * Google Maps Place ID for the event address. + * @return gmapsPlaceId + */ + @javax.annotation.Nullable + + public String getGmapsPlaceId() { + return gmapsPlaceId; + } + + + public void setGmapsPlaceId(@javax.annotation.Nullable String gmapsPlaceId) { + this.gmapsPlaceId = gmapsPlaceId; + } + + public Event gmapsUrl(@javax.annotation.Nullable String gmapsUrl) { + + this.gmapsUrl = gmapsUrl; + return this; + } + + /** + * Link to address location on Google Maps. + * @return gmapsUrl + */ + @javax.annotation.Nullable + + public String getGmapsUrl() { + return gmapsUrl; + } + + + public void setGmapsUrl(@javax.annotation.Nullable String gmapsUrl) { + this.gmapsUrl = gmapsUrl; + } + + public Event lat(@javax.annotation.Nullable Double lat) { + + this.lat = lat; + return this; + } + + /** + * Latitude for the event address. + * @return lat + */ + @javax.annotation.Nullable + + public Double getLat() { + return lat; + } + + + public void setLat(@javax.annotation.Nullable Double lat) { + this.lat = lat; + } + + public Event lng(@javax.annotation.Nullable Double lng) { + + this.lng = lng; + return this; + } + + /** + * Longitude for the event address. + * @return lng + */ + @javax.annotation.Nullable + + public Double getLng() { + return lng; + } + + + public void setLng(@javax.annotation.Nullable Double lng) { + this.lng = lng; + } + + public Event locationName(@javax.annotation.Nullable String locationName) { + + this.locationName = locationName; + return this; + } + + /** + * Name of the location at the address for the event, eg. Blue Alliance High School. + * @return locationName + */ + @javax.annotation.Nullable + + public String getLocationName() { + return locationName; + } + + + public void setLocationName(@javax.annotation.Nullable String locationName) { + this.locationName = locationName; + } + + public Event timezone(@javax.annotation.Nonnull String timezone) { + + this.timezone = timezone; + return this; + } + + /** + * Timezone name. + * @return timezone + */ + @javax.annotation.Nonnull + + public String getTimezone() { + return timezone; + } + + + public void setTimezone(@javax.annotation.Nonnull String timezone) { + this.timezone = timezone; + } + + public Event website(@javax.annotation.Nullable String website) { + + this.website = website; + return this; + } + + /** + * The event's website, if any. + * @return website + */ + @javax.annotation.Nullable + + public String getWebsite() { + return website; + } + + + public void setWebsite(@javax.annotation.Nullable String website) { + this.website = website; + } + + public Event firstEventId(@javax.annotation.Nullable String firstEventId) { + + this.firstEventId = firstEventId; + return this; + } + + /** + * The FIRST internal Event ID, used to link to the event on the FRC webpage. + * @return firstEventId + */ + @javax.annotation.Nullable + + public String getFirstEventId() { + return firstEventId; + } + + + public void setFirstEventId(@javax.annotation.Nullable String firstEventId) { + this.firstEventId = firstEventId; + } + + public Event firstEventCode(@javax.annotation.Nullable String firstEventCode) { + + this.firstEventCode = firstEventCode; + return this; + } + + /** + * Public facing event code used by FIRST (on frc-events.firstinspires.org, for example) + * @return firstEventCode + */ + @javax.annotation.Nullable + + public String getFirstEventCode() { + return firstEventCode; + } + + + public void setFirstEventCode(@javax.annotation.Nullable String firstEventCode) { + this.firstEventCode = firstEventCode; + } + + public Event webcasts(@javax.annotation.Nonnull List webcasts) { + + this.webcasts = webcasts; + return this; + } + + public Event addWebcastsItem(Webcast webcastsItem) { + if (this.webcasts == null) { + this.webcasts = new ArrayList<>(); + } + this.webcasts.add(webcastsItem); + return this; + } + + /** + * Get webcasts + * @return webcasts + */ + @javax.annotation.Nonnull + + public List getWebcasts() { + return webcasts; + } + + + public void setWebcasts(@javax.annotation.Nonnull List webcasts) { + this.webcasts = webcasts; + } + + public Event divisionKeys(@javax.annotation.Nonnull List divisionKeys) { + + this.divisionKeys = divisionKeys; + return this; + } + + public Event addDivisionKeysItem(String divisionKeysItem) { + if (this.divisionKeys == null) { + this.divisionKeys = new ArrayList<>(); + } + this.divisionKeys.add(divisionKeysItem); + return this; + } + + /** + * An array of event keys for the divisions at this event. + * @return divisionKeys + */ + @javax.annotation.Nonnull + + public List getDivisionKeys() { + return divisionKeys; + } + + + public void setDivisionKeys(@javax.annotation.Nonnull List divisionKeys) { + this.divisionKeys = divisionKeys; + } + + public Event parentEventKey(@javax.annotation.Nullable String parentEventKey) { + + this.parentEventKey = parentEventKey; + return this; + } + + /** + * The TBA Event key that represents the event's parent. Used to link back to the event from a division event. It is also the inverse relation of `divison_keys`. + * @return parentEventKey + */ + @javax.annotation.Nullable + + public String getParentEventKey() { + return parentEventKey; + } + + + public void setParentEventKey(@javax.annotation.Nullable String parentEventKey) { + this.parentEventKey = parentEventKey; + } + + public Event playoffType(@javax.annotation.Nullable Integer playoffType) { + + this.playoffType = playoffType; + return this; + } + + /** + * Playoff Type, as defined here: https://github.com/the-blue-alliance/the-blue-alliance/blob/master/consts/playoff_type.py#L4, or null. + * @return playoffType + */ + @javax.annotation.Nullable + + public Integer getPlayoffType() { + return playoffType; + } + + + public void setPlayoffType(@javax.annotation.Nullable Integer playoffType) { + this.playoffType = playoffType; + } + + public Event playoffTypeString(@javax.annotation.Nullable String playoffTypeString) { + + this.playoffTypeString = playoffTypeString; + return this; + } + + /** + * String representation of the `playoff_type`, or null. + * @return playoffTypeString + */ + @javax.annotation.Nullable + + public String getPlayoffTypeString() { + return playoffTypeString; + } + + + public void setPlayoffTypeString(@javax.annotation.Nullable String playoffTypeString) { + this.playoffTypeString = playoffTypeString; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Event event = (Event) o; + return Objects.equals(this.key, event.key) && + Objects.equals(this.name, event.name) && + Objects.equals(this.eventCode, event.eventCode) && + Objects.equals(this.eventType, event.eventType) && + Objects.equals(this.district, event.district) && + Objects.equals(this.city, event.city) && + Objects.equals(this.stateProv, event.stateProv) && + Objects.equals(this.country, event.country) && + Objects.equals(this.startDate, event.startDate) && + Objects.equals(this.endDate, event.endDate) && + Objects.equals(this.year, event.year) && + Objects.equals(this.shortName, event.shortName) && + Objects.equals(this.eventTypeString, event.eventTypeString) && + Objects.equals(this.week, event.week) && + Objects.equals(this.address, event.address) && + Objects.equals(this.postalCode, event.postalCode) && + Objects.equals(this.gmapsPlaceId, event.gmapsPlaceId) && + Objects.equals(this.gmapsUrl, event.gmapsUrl) && + Objects.equals(this.lat, event.lat) && + Objects.equals(this.lng, event.lng) && + Objects.equals(this.locationName, event.locationName) && + Objects.equals(this.timezone, event.timezone) && + Objects.equals(this.website, event.website) && + Objects.equals(this.firstEventId, event.firstEventId) && + Objects.equals(this.firstEventCode, event.firstEventCode) && + Objects.equals(this.webcasts, event.webcasts) && + Objects.equals(this.divisionKeys, event.divisionKeys) && + Objects.equals(this.parentEventKey, event.parentEventKey) && + Objects.equals(this.playoffType, event.playoffType) && + Objects.equals(this.playoffTypeString, event.playoffTypeString); + } + + @Override + public int hashCode() { + return Objects.hash(key, name, eventCode, eventType, district, city, stateProv, country, startDate, endDate, year, shortName, eventTypeString, week, address, postalCode, gmapsPlaceId, gmapsUrl, lat, lng, locationName, timezone, website, firstEventId, firstEventCode, webcasts, divisionKeys, parentEventKey, playoffType, playoffTypeString); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Event {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" eventCode: ").append(toIndentedString(eventCode)).append("\n"); + sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n"); + sb.append(" district: ").append(toIndentedString(district)).append("\n"); + sb.append(" city: ").append(toIndentedString(city)).append("\n"); + sb.append(" stateProv: ").append(toIndentedString(stateProv)).append("\n"); + sb.append(" country: ").append(toIndentedString(country)).append("\n"); + sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); + sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); + sb.append(" year: ").append(toIndentedString(year)).append("\n"); + sb.append(" shortName: ").append(toIndentedString(shortName)).append("\n"); + sb.append(" eventTypeString: ").append(toIndentedString(eventTypeString)).append("\n"); + sb.append(" week: ").append(toIndentedString(week)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); + sb.append(" gmapsPlaceId: ").append(toIndentedString(gmapsPlaceId)).append("\n"); + sb.append(" gmapsUrl: ").append(toIndentedString(gmapsUrl)).append("\n"); + sb.append(" lat: ").append(toIndentedString(lat)).append("\n"); + sb.append(" lng: ").append(toIndentedString(lng)).append("\n"); + sb.append(" locationName: ").append(toIndentedString(locationName)).append("\n"); + sb.append(" timezone: ").append(toIndentedString(timezone)).append("\n"); + sb.append(" website: ").append(toIndentedString(website)).append("\n"); + sb.append(" firstEventId: ").append(toIndentedString(firstEventId)).append("\n"); + sb.append(" firstEventCode: ").append(toIndentedString(firstEventCode)).append("\n"); + sb.append(" webcasts: ").append(toIndentedString(webcasts)).append("\n"); + sb.append(" divisionKeys: ").append(toIndentedString(divisionKeys)).append("\n"); + sb.append(" parentEventKey: ").append(toIndentedString(parentEventKey)).append("\n"); + sb.append(" playoffType: ").append(toIndentedString(playoffType)).append("\n"); + sb.append(" playoffTypeString: ").append(toIndentedString(playoffTypeString)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/EventDistrictPoints.java b/tba-api/src/main/java/thebluealliance/api/model/EventDistrictPoints.java new file mode 100644 index 000000000..0cbb1b0af --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/EventDistrictPoints.java @@ -0,0 +1,142 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; +import thebluealliance.api.model.EventDistrictPointsPointsValue; +import thebluealliance.api.model.EventDistrictPointsTiebreakersValue; + +/** + * EventDistrictPoints + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class EventDistrictPoints { + public static final String SERIALIZED_NAME_POINTS = "points"; + @SerializedName(SERIALIZED_NAME_POINTS) + @javax.annotation.Nonnull + private Map points = new HashMap<>(); + + public static final String SERIALIZED_NAME_TIEBREAKERS = "tiebreakers"; + @SerializedName(SERIALIZED_NAME_TIEBREAKERS) + @javax.annotation.Nullable + private Map tiebreakers = new HashMap<>(); + + public EventDistrictPoints() { + } + + public EventDistrictPoints points(@javax.annotation.Nonnull Map points) { + + this.points = points; + return this; + } + + public EventDistrictPoints putPointsItem(String key, EventDistrictPointsPointsValue pointsItem) { + this.points.put(key, pointsItem); + return this; + } + + /** + * Points gained for each team at the event. Stored as a key-value pair with the team key as the key, and an object describing the points as its value. + * @return points + */ + @javax.annotation.Nonnull + + public Map getPoints() { + return points; + } + + + public void setPoints(@javax.annotation.Nonnull Map points) { + this.points = points; + } + + public EventDistrictPoints tiebreakers(@javax.annotation.Nullable Map tiebreakers) { + + this.tiebreakers = tiebreakers; + return this; + } + + public EventDistrictPoints putTiebreakersItem(String key, EventDistrictPointsTiebreakersValue tiebreakersItem) { + if (this.tiebreakers == null) { + this.tiebreakers = new HashMap<>(); + } + this.tiebreakers.put(key, tiebreakersItem); + return this; + } + + /** + * Tiebreaker values for each team at the event. Stored as a key-value pair with the team key as the key, and an object describing the tiebreaker elements as its value. + * @return tiebreakers + */ + @javax.annotation.Nullable + + public Map getTiebreakers() { + return tiebreakers; + } + + + public void setTiebreakers(@javax.annotation.Nullable Map tiebreakers) { + this.tiebreakers = tiebreakers; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventDistrictPoints eventDistrictPoints = (EventDistrictPoints) o; + return Objects.equals(this.points, eventDistrictPoints.points) && + Objects.equals(this.tiebreakers, eventDistrictPoints.tiebreakers); + } + + @Override + public int hashCode() { + return Objects.hash(points, tiebreakers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventDistrictPoints {\n"); + sb.append(" points: ").append(toIndentedString(points)).append("\n"); + sb.append(" tiebreakers: ").append(toIndentedString(tiebreakers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/EventDistrictPointsPointsValue.java b/tba-api/src/main/java/thebluealliance/api/model/EventDistrictPointsPointsValue.java new file mode 100644 index 000000000..de1b6333b --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/EventDistrictPointsPointsValue.java @@ -0,0 +1,209 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * EventDistrictPointsPointsValue + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class EventDistrictPointsPointsValue { + public static final String SERIALIZED_NAME_TOTAL = "total"; + @SerializedName(SERIALIZED_NAME_TOTAL) + @javax.annotation.Nonnull + private Integer total; + + public static final String SERIALIZED_NAME_ALLIANCE_POINTS = "alliance_points"; + @SerializedName(SERIALIZED_NAME_ALLIANCE_POINTS) + @javax.annotation.Nonnull + private Integer alliancePoints; + + public static final String SERIALIZED_NAME_ELIM_POINTS = "elim_points"; + @SerializedName(SERIALIZED_NAME_ELIM_POINTS) + @javax.annotation.Nonnull + private Integer elimPoints; + + public static final String SERIALIZED_NAME_AWARD_POINTS = "award_points"; + @SerializedName(SERIALIZED_NAME_AWARD_POINTS) + @javax.annotation.Nonnull + private Integer awardPoints; + + public static final String SERIALIZED_NAME_QUAL_POINTS = "qual_points"; + @SerializedName(SERIALIZED_NAME_QUAL_POINTS) + @javax.annotation.Nonnull + private Integer qualPoints; + + public EventDistrictPointsPointsValue() { + } + + public EventDistrictPointsPointsValue total(@javax.annotation.Nonnull Integer total) { + + this.total = total; + return this; + } + + /** + * Total points awarded at this event. + * @return total + */ + @javax.annotation.Nonnull + + public Integer getTotal() { + return total; + } + + + public void setTotal(@javax.annotation.Nonnull Integer total) { + this.total = total; + } + + public EventDistrictPointsPointsValue alliancePoints(@javax.annotation.Nonnull Integer alliancePoints) { + + this.alliancePoints = alliancePoints; + return this; + } + + /** + * Points awarded for alliance selection + * @return alliancePoints + */ + @javax.annotation.Nonnull + + public Integer getAlliancePoints() { + return alliancePoints; + } + + + public void setAlliancePoints(@javax.annotation.Nonnull Integer alliancePoints) { + this.alliancePoints = alliancePoints; + } + + public EventDistrictPointsPointsValue elimPoints(@javax.annotation.Nonnull Integer elimPoints) { + + this.elimPoints = elimPoints; + return this; + } + + /** + * Points awarded for elimination match performance. + * @return elimPoints + */ + @javax.annotation.Nonnull + + public Integer getElimPoints() { + return elimPoints; + } + + + public void setElimPoints(@javax.annotation.Nonnull Integer elimPoints) { + this.elimPoints = elimPoints; + } + + public EventDistrictPointsPointsValue awardPoints(@javax.annotation.Nonnull Integer awardPoints) { + + this.awardPoints = awardPoints; + return this; + } + + /** + * Points awarded for event awards. + * @return awardPoints + */ + @javax.annotation.Nonnull + + public Integer getAwardPoints() { + return awardPoints; + } + + + public void setAwardPoints(@javax.annotation.Nonnull Integer awardPoints) { + this.awardPoints = awardPoints; + } + + public EventDistrictPointsPointsValue qualPoints(@javax.annotation.Nonnull Integer qualPoints) { + + this.qualPoints = qualPoints; + return this; + } + + /** + * Points awarded for qualification match performance. + * @return qualPoints + */ + @javax.annotation.Nonnull + + public Integer getQualPoints() { + return qualPoints; + } + + + public void setQualPoints(@javax.annotation.Nonnull Integer qualPoints) { + this.qualPoints = qualPoints; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventDistrictPointsPointsValue eventDistrictPointsPointsValue = (EventDistrictPointsPointsValue) o; + return Objects.equals(this.total, eventDistrictPointsPointsValue.total) && + Objects.equals(this.alliancePoints, eventDistrictPointsPointsValue.alliancePoints) && + Objects.equals(this.elimPoints, eventDistrictPointsPointsValue.elimPoints) && + Objects.equals(this.awardPoints, eventDistrictPointsPointsValue.awardPoints) && + Objects.equals(this.qualPoints, eventDistrictPointsPointsValue.qualPoints); + } + + @Override + public int hashCode() { + return Objects.hash(total, alliancePoints, elimPoints, awardPoints, qualPoints); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventDistrictPointsPointsValue {\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" alliancePoints: ").append(toIndentedString(alliancePoints)).append("\n"); + sb.append(" elimPoints: ").append(toIndentedString(elimPoints)).append("\n"); + sb.append(" awardPoints: ").append(toIndentedString(awardPoints)).append("\n"); + sb.append(" qualPoints: ").append(toIndentedString(qualPoints)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/EventDistrictPointsTiebreakersValue.java b/tba-api/src/main/java/thebluealliance/api/model/EventDistrictPointsTiebreakersValue.java new file mode 100644 index 000000000..d9088f958 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/EventDistrictPointsTiebreakersValue.java @@ -0,0 +1,136 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +/** + * EventDistrictPointsTiebreakersValue + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class EventDistrictPointsTiebreakersValue { + public static final String SERIALIZED_NAME_HIGHEST_QUAL_SCORES = "highest_qual_scores"; + @SerializedName(SERIALIZED_NAME_HIGHEST_QUAL_SCORES) + @javax.annotation.Nullable + private List highestQualScores = new ArrayList<>(); + + public static final String SERIALIZED_NAME_QUAL_WINS = "qual_wins"; + @SerializedName(SERIALIZED_NAME_QUAL_WINS) + @javax.annotation.Nullable + private Integer qualWins; + + public EventDistrictPointsTiebreakersValue() { + } + + public EventDistrictPointsTiebreakersValue highestQualScores(@javax.annotation.Nullable List highestQualScores) { + + this.highestQualScores = highestQualScores; + return this; + } + + public EventDistrictPointsTiebreakersValue addHighestQualScoresItem(Integer highestQualScoresItem) { + if (this.highestQualScores == null) { + this.highestQualScores = new ArrayList<>(); + } + this.highestQualScores.add(highestQualScoresItem); + return this; + } + + /** + * Get highestQualScores + * @return highestQualScores + */ + @javax.annotation.Nullable + + public List getHighestQualScores() { + return highestQualScores; + } + + + public void setHighestQualScores(@javax.annotation.Nullable List highestQualScores) { + this.highestQualScores = highestQualScores; + } + + public EventDistrictPointsTiebreakersValue qualWins(@javax.annotation.Nullable Integer qualWins) { + + this.qualWins = qualWins; + return this; + } + + /** + * Get qualWins + * @return qualWins + */ + @javax.annotation.Nullable + + public Integer getQualWins() { + return qualWins; + } + + + public void setQualWins(@javax.annotation.Nullable Integer qualWins) { + this.qualWins = qualWins; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventDistrictPointsTiebreakersValue eventDistrictPointsTiebreakersValue = (EventDistrictPointsTiebreakersValue) o; + return Objects.equals(this.highestQualScores, eventDistrictPointsTiebreakersValue.highestQualScores) && + Objects.equals(this.qualWins, eventDistrictPointsTiebreakersValue.qualWins); + } + + @Override + public int hashCode() { + return Objects.hash(highestQualScores, qualWins); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventDistrictPointsTiebreakersValue {\n"); + sb.append(" highestQualScores: ").append(toIndentedString(highestQualScores)).append("\n"); + sb.append(" qualWins: ").append(toIndentedString(qualWins)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/EventInsights.java b/tba-api/src/main/java/thebluealliance/api/model/EventInsights.java new file mode 100644 index 000000000..d67826d27 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/EventInsights.java @@ -0,0 +1,125 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * A year-specific event insight object expressed as a JSON string, separated in to `qual` and `playoff` fields. See also Event_Insights_2016, Event_Insights_2017, etc. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class EventInsights { + public static final String SERIALIZED_NAME_QUAL = "qual"; + @SerializedName(SERIALIZED_NAME_QUAL) + @javax.annotation.Nullable + private Object qual; + + public static final String SERIALIZED_NAME_PLAYOFF = "playoff"; + @SerializedName(SERIALIZED_NAME_PLAYOFF) + @javax.annotation.Nullable + private Object playoff; + + public EventInsights() { + } + + public EventInsights qual(@javax.annotation.Nullable Object qual) { + + this.qual = qual; + return this; + } + + /** + * Inights for the qualification round of an event + * @return qual + */ + @javax.annotation.Nullable + + public Object getQual() { + return qual; + } + + + public void setQual(@javax.annotation.Nullable Object qual) { + this.qual = qual; + } + + public EventInsights playoff(@javax.annotation.Nullable Object playoff) { + + this.playoff = playoff; + return this; + } + + /** + * Insights for the playoff round of an event + * @return playoff + */ + @javax.annotation.Nullable + + public Object getPlayoff() { + return playoff; + } + + + public void setPlayoff(@javax.annotation.Nullable Object playoff) { + this.playoff = playoff; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventInsights eventInsights = (EventInsights) o; + return Objects.equals(this.qual, eventInsights.qual) && + Objects.equals(this.playoff, eventInsights.playoff); + } + + @Override + public int hashCode() { + return Objects.hash(qual, playoff); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventInsights {\n"); + sb.append(" qual: ").append(toIndentedString(qual)).append("\n"); + sb.append(" playoff: ").append(toIndentedString(playoff)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/EventInsights2016.java b/tba-api/src/main/java/thebluealliance/api/model/EventInsights2016.java new file mode 100644 index 000000000..440024957 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/EventInsights2016.java @@ -0,0 +1,856 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +/** + * Insights for FIRST Stronghold qualification and elimination matches. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class EventInsights2016 { + public static final String SERIALIZED_NAME_LOW_BAR = "LowBar"; + @SerializedName(SERIALIZED_NAME_LOW_BAR) + @javax.annotation.Nonnull + private List lowBar = new ArrayList<>(); + + public static final String SERIALIZED_NAME_A_CHEVAL_DE_FRISE = "A_ChevalDeFrise"; + @SerializedName(SERIALIZED_NAME_A_CHEVAL_DE_FRISE) + @javax.annotation.Nonnull + private List aChevalDeFrise = new ArrayList<>(); + + public static final String SERIALIZED_NAME_A_PORTCULLIS = "A_Portcullis"; + @SerializedName(SERIALIZED_NAME_A_PORTCULLIS) + @javax.annotation.Nonnull + private List aPortcullis = new ArrayList<>(); + + public static final String SERIALIZED_NAME_B_RAMPARTS = "B_Ramparts"; + @SerializedName(SERIALIZED_NAME_B_RAMPARTS) + @javax.annotation.Nonnull + private List bRamparts = new ArrayList<>(); + + public static final String SERIALIZED_NAME_B_MOAT = "B_Moat"; + @SerializedName(SERIALIZED_NAME_B_MOAT) + @javax.annotation.Nonnull + private List bMoat = new ArrayList<>(); + + public static final String SERIALIZED_NAME_C_SALLY_PORT = "C_SallyPort"; + @SerializedName(SERIALIZED_NAME_C_SALLY_PORT) + @javax.annotation.Nonnull + private List cSallyPort = new ArrayList<>(); + + public static final String SERIALIZED_NAME_C_DRAWBRIDGE = "C_Drawbridge"; + @SerializedName(SERIALIZED_NAME_C_DRAWBRIDGE) + @javax.annotation.Nonnull + private List cDrawbridge = new ArrayList<>(); + + public static final String SERIALIZED_NAME_D_ROUGH_TERRAIN = "D_RoughTerrain"; + @SerializedName(SERIALIZED_NAME_D_ROUGH_TERRAIN) + @javax.annotation.Nonnull + private List dRoughTerrain = new ArrayList<>(); + + public static final String SERIALIZED_NAME_D_ROCK_WALL = "D_RockWall"; + @SerializedName(SERIALIZED_NAME_D_ROCK_WALL) + @javax.annotation.Nonnull + private List dRockWall = new ArrayList<>(); + + public static final String SERIALIZED_NAME_AVERAGE_HIGH_GOALS = "average_high_goals"; + @SerializedName(SERIALIZED_NAME_AVERAGE_HIGH_GOALS) + @javax.annotation.Nonnull + private Float averageHighGoals; + + public static final String SERIALIZED_NAME_AVERAGE_LOW_GOALS = "average_low_goals"; + @SerializedName(SERIALIZED_NAME_AVERAGE_LOW_GOALS) + @javax.annotation.Nonnull + private Float averageLowGoals; + + public static final String SERIALIZED_NAME_BREACHES = "breaches"; + @SerializedName(SERIALIZED_NAME_BREACHES) + @javax.annotation.Nonnull + private List breaches = new ArrayList<>(); + + public static final String SERIALIZED_NAME_SCALES = "scales"; + @SerializedName(SERIALIZED_NAME_SCALES) + @javax.annotation.Nonnull + private List scales = new ArrayList<>(); + + public static final String SERIALIZED_NAME_CHALLENGES = "challenges"; + @SerializedName(SERIALIZED_NAME_CHALLENGES) + @javax.annotation.Nonnull + private List challenges = new ArrayList<>(); + + public static final String SERIALIZED_NAME_CAPTURES = "captures"; + @SerializedName(SERIALIZED_NAME_CAPTURES) + @javax.annotation.Nonnull + private List captures = new ArrayList<>(); + + public static final String SERIALIZED_NAME_AVERAGE_WIN_SCORE = "average_win_score"; + @SerializedName(SERIALIZED_NAME_AVERAGE_WIN_SCORE) + @javax.annotation.Nonnull + private Float averageWinScore; + + public static final String SERIALIZED_NAME_AVERAGE_WIN_MARGIN = "average_win_margin"; + @SerializedName(SERIALIZED_NAME_AVERAGE_WIN_MARGIN) + @javax.annotation.Nonnull + private Float averageWinMargin; + + public static final String SERIALIZED_NAME_AVERAGE_SCORE = "average_score"; + @SerializedName(SERIALIZED_NAME_AVERAGE_SCORE) + @javax.annotation.Nonnull + private Float averageScore; + + public static final String SERIALIZED_NAME_AVERAGE_AUTO_SCORE = "average_auto_score"; + @SerializedName(SERIALIZED_NAME_AVERAGE_AUTO_SCORE) + @javax.annotation.Nonnull + private Float averageAutoScore; + + public static final String SERIALIZED_NAME_AVERAGE_CROSSING_SCORE = "average_crossing_score"; + @SerializedName(SERIALIZED_NAME_AVERAGE_CROSSING_SCORE) + @javax.annotation.Nonnull + private Float averageCrossingScore; + + public static final String SERIALIZED_NAME_AVERAGE_BOULDER_SCORE = "average_boulder_score"; + @SerializedName(SERIALIZED_NAME_AVERAGE_BOULDER_SCORE) + @javax.annotation.Nonnull + private Float averageBoulderScore; + + public static final String SERIALIZED_NAME_AVERAGE_TOWER_SCORE = "average_tower_score"; + @SerializedName(SERIALIZED_NAME_AVERAGE_TOWER_SCORE) + @javax.annotation.Nonnull + private Float averageTowerScore; + + public static final String SERIALIZED_NAME_AVERAGE_FOUL_SCORE = "average_foul_score"; + @SerializedName(SERIALIZED_NAME_AVERAGE_FOUL_SCORE) + @javax.annotation.Nonnull + private Float averageFoulScore; + + public static final String SERIALIZED_NAME_HIGH_SCORE = "high_score"; + @SerializedName(SERIALIZED_NAME_HIGH_SCORE) + @javax.annotation.Nonnull + private List highScore = new ArrayList<>(); + + public EventInsights2016() { + } + + public EventInsights2016 lowBar(@javax.annotation.Nonnull List lowBar) { + + this.lowBar = lowBar; + return this; + } + + public EventInsights2016 addLowBarItem(Float lowBarItem) { + if (this.lowBar == null) { + this.lowBar = new ArrayList<>(); + } + this.lowBar.add(lowBarItem); + return this; + } + + /** + * For the Low Bar - An array with three values, number of times damaged, number of opportunities to damage, and percentage. + * @return lowBar + */ + @javax.annotation.Nonnull + + public List getLowBar() { + return lowBar; + } + + + public void setLowBar(@javax.annotation.Nonnull List lowBar) { + this.lowBar = lowBar; + } + + public EventInsights2016 aChevalDeFrise(@javax.annotation.Nonnull List aChevalDeFrise) { + + this.aChevalDeFrise = aChevalDeFrise; + return this; + } + + public EventInsights2016 addAChevalDeFriseItem(Float aChevalDeFriseItem) { + if (this.aChevalDeFrise == null) { + this.aChevalDeFrise = new ArrayList<>(); + } + this.aChevalDeFrise.add(aChevalDeFriseItem); + return this; + } + + /** + * For the Cheval De Frise - An array with three values, number of times damaged, number of opportunities to damage, and percentage. + * @return aChevalDeFrise + */ + @javax.annotation.Nonnull + + public List getaChevalDeFrise() { + return aChevalDeFrise; + } + + + public void setaChevalDeFrise(@javax.annotation.Nonnull List aChevalDeFrise) { + this.aChevalDeFrise = aChevalDeFrise; + } + + public EventInsights2016 aPortcullis(@javax.annotation.Nonnull List aPortcullis) { + + this.aPortcullis = aPortcullis; + return this; + } + + public EventInsights2016 addAPortcullisItem(Float aPortcullisItem) { + if (this.aPortcullis == null) { + this.aPortcullis = new ArrayList<>(); + } + this.aPortcullis.add(aPortcullisItem); + return this; + } + + /** + * For the Portcullis - An array with three values, number of times damaged, number of opportunities to damage, and percentage. + * @return aPortcullis + */ + @javax.annotation.Nonnull + + public List getaPortcullis() { + return aPortcullis; + } + + + public void setaPortcullis(@javax.annotation.Nonnull List aPortcullis) { + this.aPortcullis = aPortcullis; + } + + public EventInsights2016 bRamparts(@javax.annotation.Nonnull List bRamparts) { + + this.bRamparts = bRamparts; + return this; + } + + public EventInsights2016 addBRampartsItem(Float bRampartsItem) { + if (this.bRamparts == null) { + this.bRamparts = new ArrayList<>(); + } + this.bRamparts.add(bRampartsItem); + return this; + } + + /** + * For the Ramparts - An array with three values, number of times damaged, number of opportunities to damage, and percentage. + * @return bRamparts + */ + @javax.annotation.Nonnull + + public List getbRamparts() { + return bRamparts; + } + + + public void setbRamparts(@javax.annotation.Nonnull List bRamparts) { + this.bRamparts = bRamparts; + } + + public EventInsights2016 bMoat(@javax.annotation.Nonnull List bMoat) { + + this.bMoat = bMoat; + return this; + } + + public EventInsights2016 addBMoatItem(Float bMoatItem) { + if (this.bMoat == null) { + this.bMoat = new ArrayList<>(); + } + this.bMoat.add(bMoatItem); + return this; + } + + /** + * For the Moat - An array with three values, number of times damaged, number of opportunities to damage, and percentage. + * @return bMoat + */ + @javax.annotation.Nonnull + + public List getbMoat() { + return bMoat; + } + + + public void setbMoat(@javax.annotation.Nonnull List bMoat) { + this.bMoat = bMoat; + } + + public EventInsights2016 cSallyPort(@javax.annotation.Nonnull List cSallyPort) { + + this.cSallyPort = cSallyPort; + return this; + } + + public EventInsights2016 addCSallyPortItem(Float cSallyPortItem) { + if (this.cSallyPort == null) { + this.cSallyPort = new ArrayList<>(); + } + this.cSallyPort.add(cSallyPortItem); + return this; + } + + /** + * For the Sally Port - An array with three values, number of times damaged, number of opportunities to damage, and percentage. + * @return cSallyPort + */ + @javax.annotation.Nonnull + + public List getcSallyPort() { + return cSallyPort; + } + + + public void setcSallyPort(@javax.annotation.Nonnull List cSallyPort) { + this.cSallyPort = cSallyPort; + } + + public EventInsights2016 cDrawbridge(@javax.annotation.Nonnull List cDrawbridge) { + + this.cDrawbridge = cDrawbridge; + return this; + } + + public EventInsights2016 addCDrawbridgeItem(Float cDrawbridgeItem) { + if (this.cDrawbridge == null) { + this.cDrawbridge = new ArrayList<>(); + } + this.cDrawbridge.add(cDrawbridgeItem); + return this; + } + + /** + * For the Drawbridge - An array with three values, number of times damaged, number of opportunities to damage, and percentage. + * @return cDrawbridge + */ + @javax.annotation.Nonnull + + public List getcDrawbridge() { + return cDrawbridge; + } + + + public void setcDrawbridge(@javax.annotation.Nonnull List cDrawbridge) { + this.cDrawbridge = cDrawbridge; + } + + public EventInsights2016 dRoughTerrain(@javax.annotation.Nonnull List dRoughTerrain) { + + this.dRoughTerrain = dRoughTerrain; + return this; + } + + public EventInsights2016 addDRoughTerrainItem(Float dRoughTerrainItem) { + if (this.dRoughTerrain == null) { + this.dRoughTerrain = new ArrayList<>(); + } + this.dRoughTerrain.add(dRoughTerrainItem); + return this; + } + + /** + * For the Rough Terrain - An array with three values, number of times damaged, number of opportunities to damage, and percentage. + * @return dRoughTerrain + */ + @javax.annotation.Nonnull + + public List getdRoughTerrain() { + return dRoughTerrain; + } + + + public void setdRoughTerrain(@javax.annotation.Nonnull List dRoughTerrain) { + this.dRoughTerrain = dRoughTerrain; + } + + public EventInsights2016 dRockWall(@javax.annotation.Nonnull List dRockWall) { + + this.dRockWall = dRockWall; + return this; + } + + public EventInsights2016 addDRockWallItem(Float dRockWallItem) { + if (this.dRockWall == null) { + this.dRockWall = new ArrayList<>(); + } + this.dRockWall.add(dRockWallItem); + return this; + } + + /** + * For the Rock Wall - An array with three values, number of times damaged, number of opportunities to damage, and percentage. + * @return dRockWall + */ + @javax.annotation.Nonnull + + public List getdRockWall() { + return dRockWall; + } + + + public void setdRockWall(@javax.annotation.Nonnull List dRockWall) { + this.dRockWall = dRockWall; + } + + public EventInsights2016 averageHighGoals(@javax.annotation.Nonnull Float averageHighGoals) { + + this.averageHighGoals = averageHighGoals; + return this; + } + + /** + * Average number of high goals scored. + * @return averageHighGoals + */ + @javax.annotation.Nonnull + + public Float getAverageHighGoals() { + return averageHighGoals; + } + + + public void setAverageHighGoals(@javax.annotation.Nonnull Float averageHighGoals) { + this.averageHighGoals = averageHighGoals; + } + + public EventInsights2016 averageLowGoals(@javax.annotation.Nonnull Float averageLowGoals) { + + this.averageLowGoals = averageLowGoals; + return this; + } + + /** + * Average number of low goals scored. + * @return averageLowGoals + */ + @javax.annotation.Nonnull + + public Float getAverageLowGoals() { + return averageLowGoals; + } + + + public void setAverageLowGoals(@javax.annotation.Nonnull Float averageLowGoals) { + this.averageLowGoals = averageLowGoals; + } + + public EventInsights2016 breaches(@javax.annotation.Nonnull List breaches) { + + this.breaches = breaches; + return this; + } + + public EventInsights2016 addBreachesItem(Float breachesItem) { + if (this.breaches == null) { + this.breaches = new ArrayList<>(); + } + this.breaches.add(breachesItem); + return this; + } + + /** + * An array with three values, number of times breached, number of opportunities to breach, and percentage. + * @return breaches + */ + @javax.annotation.Nonnull + + public List getBreaches() { + return breaches; + } + + + public void setBreaches(@javax.annotation.Nonnull List breaches) { + this.breaches = breaches; + } + + public EventInsights2016 scales(@javax.annotation.Nonnull List scales) { + + this.scales = scales; + return this; + } + + public EventInsights2016 addScalesItem(Float scalesItem) { + if (this.scales == null) { + this.scales = new ArrayList<>(); + } + this.scales.add(scalesItem); + return this; + } + + /** + * An array with three values, number of times scaled, number of opportunities to scale, and percentage. + * @return scales + */ + @javax.annotation.Nonnull + + public List getScales() { + return scales; + } + + + public void setScales(@javax.annotation.Nonnull List scales) { + this.scales = scales; + } + + public EventInsights2016 challenges(@javax.annotation.Nonnull List challenges) { + + this.challenges = challenges; + return this; + } + + public EventInsights2016 addChallengesItem(Float challengesItem) { + if (this.challenges == null) { + this.challenges = new ArrayList<>(); + } + this.challenges.add(challengesItem); + return this; + } + + /** + * An array with three values, number of times challenged, number of opportunities to challenge, and percentage. + * @return challenges + */ + @javax.annotation.Nonnull + + public List getChallenges() { + return challenges; + } + + + public void setChallenges(@javax.annotation.Nonnull List challenges) { + this.challenges = challenges; + } + + public EventInsights2016 captures(@javax.annotation.Nonnull List captures) { + + this.captures = captures; + return this; + } + + public EventInsights2016 addCapturesItem(Float capturesItem) { + if (this.captures == null) { + this.captures = new ArrayList<>(); + } + this.captures.add(capturesItem); + return this; + } + + /** + * An array with three values, number of times captured, number of opportunities to capture, and percentage. + * @return captures + */ + @javax.annotation.Nonnull + + public List getCaptures() { + return captures; + } + + + public void setCaptures(@javax.annotation.Nonnull List captures) { + this.captures = captures; + } + + public EventInsights2016 averageWinScore(@javax.annotation.Nonnull Float averageWinScore) { + + this.averageWinScore = averageWinScore; + return this; + } + + /** + * Average winning score. + * @return averageWinScore + */ + @javax.annotation.Nonnull + + public Float getAverageWinScore() { + return averageWinScore; + } + + + public void setAverageWinScore(@javax.annotation.Nonnull Float averageWinScore) { + this.averageWinScore = averageWinScore; + } + + public EventInsights2016 averageWinMargin(@javax.annotation.Nonnull Float averageWinMargin) { + + this.averageWinMargin = averageWinMargin; + return this; + } + + /** + * Average margin of victory. + * @return averageWinMargin + */ + @javax.annotation.Nonnull + + public Float getAverageWinMargin() { + return averageWinMargin; + } + + + public void setAverageWinMargin(@javax.annotation.Nonnull Float averageWinMargin) { + this.averageWinMargin = averageWinMargin; + } + + public EventInsights2016 averageScore(@javax.annotation.Nonnull Float averageScore) { + + this.averageScore = averageScore; + return this; + } + + /** + * Average total score. + * @return averageScore + */ + @javax.annotation.Nonnull + + public Float getAverageScore() { + return averageScore; + } + + + public void setAverageScore(@javax.annotation.Nonnull Float averageScore) { + this.averageScore = averageScore; + } + + public EventInsights2016 averageAutoScore(@javax.annotation.Nonnull Float averageAutoScore) { + + this.averageAutoScore = averageAutoScore; + return this; + } + + /** + * Average autonomous score. + * @return averageAutoScore + */ + @javax.annotation.Nonnull + + public Float getAverageAutoScore() { + return averageAutoScore; + } + + + public void setAverageAutoScore(@javax.annotation.Nonnull Float averageAutoScore) { + this.averageAutoScore = averageAutoScore; + } + + public EventInsights2016 averageCrossingScore(@javax.annotation.Nonnull Float averageCrossingScore) { + + this.averageCrossingScore = averageCrossingScore; + return this; + } + + /** + * Average crossing score. + * @return averageCrossingScore + */ + @javax.annotation.Nonnull + + public Float getAverageCrossingScore() { + return averageCrossingScore; + } + + + public void setAverageCrossingScore(@javax.annotation.Nonnull Float averageCrossingScore) { + this.averageCrossingScore = averageCrossingScore; + } + + public EventInsights2016 averageBoulderScore(@javax.annotation.Nonnull Float averageBoulderScore) { + + this.averageBoulderScore = averageBoulderScore; + return this; + } + + /** + * Average boulder score. + * @return averageBoulderScore + */ + @javax.annotation.Nonnull + + public Float getAverageBoulderScore() { + return averageBoulderScore; + } + + + public void setAverageBoulderScore(@javax.annotation.Nonnull Float averageBoulderScore) { + this.averageBoulderScore = averageBoulderScore; + } + + public EventInsights2016 averageTowerScore(@javax.annotation.Nonnull Float averageTowerScore) { + + this.averageTowerScore = averageTowerScore; + return this; + } + + /** + * Average tower score. + * @return averageTowerScore + */ + @javax.annotation.Nonnull + + public Float getAverageTowerScore() { + return averageTowerScore; + } + + + public void setAverageTowerScore(@javax.annotation.Nonnull Float averageTowerScore) { + this.averageTowerScore = averageTowerScore; + } + + public EventInsights2016 averageFoulScore(@javax.annotation.Nonnull Float averageFoulScore) { + + this.averageFoulScore = averageFoulScore; + return this; + } + + /** + * Average foul score. + * @return averageFoulScore + */ + @javax.annotation.Nonnull + + public Float getAverageFoulScore() { + return averageFoulScore; + } + + + public void setAverageFoulScore(@javax.annotation.Nonnull Float averageFoulScore) { + this.averageFoulScore = averageFoulScore; + } + + public EventInsights2016 highScore(@javax.annotation.Nonnull List highScore) { + + this.highScore = highScore; + return this; + } + + public EventInsights2016 addHighScoreItem(String highScoreItem) { + if (this.highScore == null) { + this.highScore = new ArrayList<>(); + } + this.highScore.add(highScoreItem); + return this; + } + + /** + * An array with three values, high score, match key from the match with the high score, and the name of the match. + * @return highScore + */ + @javax.annotation.Nonnull + + public List getHighScore() { + return highScore; + } + + + public void setHighScore(@javax.annotation.Nonnull List highScore) { + this.highScore = highScore; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventInsights2016 eventInsights2016 = (EventInsights2016) o; + return Objects.equals(this.lowBar, eventInsights2016.lowBar) && + Objects.equals(this.aChevalDeFrise, eventInsights2016.aChevalDeFrise) && + Objects.equals(this.aPortcullis, eventInsights2016.aPortcullis) && + Objects.equals(this.bRamparts, eventInsights2016.bRamparts) && + Objects.equals(this.bMoat, eventInsights2016.bMoat) && + Objects.equals(this.cSallyPort, eventInsights2016.cSallyPort) && + Objects.equals(this.cDrawbridge, eventInsights2016.cDrawbridge) && + Objects.equals(this.dRoughTerrain, eventInsights2016.dRoughTerrain) && + Objects.equals(this.dRockWall, eventInsights2016.dRockWall) && + Objects.equals(this.averageHighGoals, eventInsights2016.averageHighGoals) && + Objects.equals(this.averageLowGoals, eventInsights2016.averageLowGoals) && + Objects.equals(this.breaches, eventInsights2016.breaches) && + Objects.equals(this.scales, eventInsights2016.scales) && + Objects.equals(this.challenges, eventInsights2016.challenges) && + Objects.equals(this.captures, eventInsights2016.captures) && + Objects.equals(this.averageWinScore, eventInsights2016.averageWinScore) && + Objects.equals(this.averageWinMargin, eventInsights2016.averageWinMargin) && + Objects.equals(this.averageScore, eventInsights2016.averageScore) && + Objects.equals(this.averageAutoScore, eventInsights2016.averageAutoScore) && + Objects.equals(this.averageCrossingScore, eventInsights2016.averageCrossingScore) && + Objects.equals(this.averageBoulderScore, eventInsights2016.averageBoulderScore) && + Objects.equals(this.averageTowerScore, eventInsights2016.averageTowerScore) && + Objects.equals(this.averageFoulScore, eventInsights2016.averageFoulScore) && + Objects.equals(this.highScore, eventInsights2016.highScore); + } + + @Override + public int hashCode() { + return Objects.hash(lowBar, aChevalDeFrise, aPortcullis, bRamparts, bMoat, cSallyPort, cDrawbridge, dRoughTerrain, dRockWall, averageHighGoals, averageLowGoals, breaches, scales, challenges, captures, averageWinScore, averageWinMargin, averageScore, averageAutoScore, averageCrossingScore, averageBoulderScore, averageTowerScore, averageFoulScore, highScore); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventInsights2016 {\n"); + sb.append(" lowBar: ").append(toIndentedString(lowBar)).append("\n"); + sb.append(" aChevalDeFrise: ").append(toIndentedString(aChevalDeFrise)).append("\n"); + sb.append(" aPortcullis: ").append(toIndentedString(aPortcullis)).append("\n"); + sb.append(" bRamparts: ").append(toIndentedString(bRamparts)).append("\n"); + sb.append(" bMoat: ").append(toIndentedString(bMoat)).append("\n"); + sb.append(" cSallyPort: ").append(toIndentedString(cSallyPort)).append("\n"); + sb.append(" cDrawbridge: ").append(toIndentedString(cDrawbridge)).append("\n"); + sb.append(" dRoughTerrain: ").append(toIndentedString(dRoughTerrain)).append("\n"); + sb.append(" dRockWall: ").append(toIndentedString(dRockWall)).append("\n"); + sb.append(" averageHighGoals: ").append(toIndentedString(averageHighGoals)).append("\n"); + sb.append(" averageLowGoals: ").append(toIndentedString(averageLowGoals)).append("\n"); + sb.append(" breaches: ").append(toIndentedString(breaches)).append("\n"); + sb.append(" scales: ").append(toIndentedString(scales)).append("\n"); + sb.append(" challenges: ").append(toIndentedString(challenges)).append("\n"); + sb.append(" captures: ").append(toIndentedString(captures)).append("\n"); + sb.append(" averageWinScore: ").append(toIndentedString(averageWinScore)).append("\n"); + sb.append(" averageWinMargin: ").append(toIndentedString(averageWinMargin)).append("\n"); + sb.append(" averageScore: ").append(toIndentedString(averageScore)).append("\n"); + sb.append(" averageAutoScore: ").append(toIndentedString(averageAutoScore)).append("\n"); + sb.append(" averageCrossingScore: ").append(toIndentedString(averageCrossingScore)).append("\n"); + sb.append(" averageBoulderScore: ").append(toIndentedString(averageBoulderScore)).append("\n"); + sb.append(" averageTowerScore: ").append(toIndentedString(averageTowerScore)).append("\n"); + sb.append(" averageFoulScore: ").append(toIndentedString(averageFoulScore)).append("\n"); + sb.append(" highScore: ").append(toIndentedString(highScore)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/EventInsights2017.java b/tba-api/src/main/java/thebluealliance/api/model/EventInsights2017.java new file mode 100644 index 000000000..023ea75eb --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/EventInsights2017.java @@ -0,0 +1,1064 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +/** + * Insights for FIRST STEAMWORKS qualification and elimination matches. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class EventInsights2017 { + public static final String SERIALIZED_NAME_AVERAGE_FOUL_SCORE = "average_foul_score"; + @SerializedName(SERIALIZED_NAME_AVERAGE_FOUL_SCORE) + @javax.annotation.Nonnull + private Float averageFoulScore; + + public static final String SERIALIZED_NAME_AVERAGE_FUEL_POINTS = "average_fuel_points"; + @SerializedName(SERIALIZED_NAME_AVERAGE_FUEL_POINTS) + @javax.annotation.Nonnull + private Float averageFuelPoints; + + public static final String SERIALIZED_NAME_AVERAGE_FUEL_POINTS_AUTO = "average_fuel_points_auto"; + @SerializedName(SERIALIZED_NAME_AVERAGE_FUEL_POINTS_AUTO) + @javax.annotation.Nonnull + private Float averageFuelPointsAuto; + + public static final String SERIALIZED_NAME_AVERAGE_FUEL_POINTS_TELEOP = "average_fuel_points_teleop"; + @SerializedName(SERIALIZED_NAME_AVERAGE_FUEL_POINTS_TELEOP) + @javax.annotation.Nonnull + private Float averageFuelPointsTeleop; + + public static final String SERIALIZED_NAME_AVERAGE_HIGH_GOALS = "average_high_goals"; + @SerializedName(SERIALIZED_NAME_AVERAGE_HIGH_GOALS) + @javax.annotation.Nonnull + private Float averageHighGoals; + + public static final String SERIALIZED_NAME_AVERAGE_HIGH_GOALS_AUTO = "average_high_goals_auto"; + @SerializedName(SERIALIZED_NAME_AVERAGE_HIGH_GOALS_AUTO) + @javax.annotation.Nonnull + private Float averageHighGoalsAuto; + + public static final String SERIALIZED_NAME_AVERAGE_HIGH_GOALS_TELEOP = "average_high_goals_teleop"; + @SerializedName(SERIALIZED_NAME_AVERAGE_HIGH_GOALS_TELEOP) + @javax.annotation.Nonnull + private Float averageHighGoalsTeleop; + + public static final String SERIALIZED_NAME_AVERAGE_LOW_GOALS = "average_low_goals"; + @SerializedName(SERIALIZED_NAME_AVERAGE_LOW_GOALS) + @javax.annotation.Nonnull + private Float averageLowGoals; + + public static final String SERIALIZED_NAME_AVERAGE_LOW_GOALS_AUTO = "average_low_goals_auto"; + @SerializedName(SERIALIZED_NAME_AVERAGE_LOW_GOALS_AUTO) + @javax.annotation.Nonnull + private Float averageLowGoalsAuto; + + public static final String SERIALIZED_NAME_AVERAGE_LOW_GOALS_TELEOP = "average_low_goals_teleop"; + @SerializedName(SERIALIZED_NAME_AVERAGE_LOW_GOALS_TELEOP) + @javax.annotation.Nonnull + private Float averageLowGoalsTeleop; + + public static final String SERIALIZED_NAME_AVERAGE_MOBILITY_POINTS_AUTO = "average_mobility_points_auto"; + @SerializedName(SERIALIZED_NAME_AVERAGE_MOBILITY_POINTS_AUTO) + @javax.annotation.Nonnull + private Float averageMobilityPointsAuto; + + public static final String SERIALIZED_NAME_AVERAGE_POINTS_AUTO = "average_points_auto"; + @SerializedName(SERIALIZED_NAME_AVERAGE_POINTS_AUTO) + @javax.annotation.Nonnull + private Float averagePointsAuto; + + public static final String SERIALIZED_NAME_AVERAGE_POINTS_TELEOP = "average_points_teleop"; + @SerializedName(SERIALIZED_NAME_AVERAGE_POINTS_TELEOP) + @javax.annotation.Nonnull + private Float averagePointsTeleop; + + public static final String SERIALIZED_NAME_AVERAGE_ROTOR_POINTS = "average_rotor_points"; + @SerializedName(SERIALIZED_NAME_AVERAGE_ROTOR_POINTS) + @javax.annotation.Nonnull + private Float averageRotorPoints; + + public static final String SERIALIZED_NAME_AVERAGE_ROTOR_POINTS_AUTO = "average_rotor_points_auto"; + @SerializedName(SERIALIZED_NAME_AVERAGE_ROTOR_POINTS_AUTO) + @javax.annotation.Nonnull + private Float averageRotorPointsAuto; + + public static final String SERIALIZED_NAME_AVERAGE_ROTOR_POINTS_TELEOP = "average_rotor_points_teleop"; + @SerializedName(SERIALIZED_NAME_AVERAGE_ROTOR_POINTS_TELEOP) + @javax.annotation.Nonnull + private Float averageRotorPointsTeleop; + + public static final String SERIALIZED_NAME_AVERAGE_SCORE = "average_score"; + @SerializedName(SERIALIZED_NAME_AVERAGE_SCORE) + @javax.annotation.Nonnull + private Float averageScore; + + public static final String SERIALIZED_NAME_AVERAGE_TAKEOFF_POINTS_TELEOP = "average_takeoff_points_teleop"; + @SerializedName(SERIALIZED_NAME_AVERAGE_TAKEOFF_POINTS_TELEOP) + @javax.annotation.Nonnull + private Float averageTakeoffPointsTeleop; + + public static final String SERIALIZED_NAME_AVERAGE_WIN_MARGIN = "average_win_margin"; + @SerializedName(SERIALIZED_NAME_AVERAGE_WIN_MARGIN) + @javax.annotation.Nonnull + private Float averageWinMargin; + + public static final String SERIALIZED_NAME_AVERAGE_WIN_SCORE = "average_win_score"; + @SerializedName(SERIALIZED_NAME_AVERAGE_WIN_SCORE) + @javax.annotation.Nonnull + private Float averageWinScore; + + public static final String SERIALIZED_NAME_HIGH_KPA = "high_kpa"; + @SerializedName(SERIALIZED_NAME_HIGH_KPA) + @javax.annotation.Nonnull + private List highKpa = new ArrayList<>(); + + public static final String SERIALIZED_NAME_HIGH_SCORE = "high_score"; + @SerializedName(SERIALIZED_NAME_HIGH_SCORE) + @javax.annotation.Nonnull + private List highScore = new ArrayList<>(); + + public static final String SERIALIZED_NAME_KPA_ACHIEVED = "kpa_achieved"; + @SerializedName(SERIALIZED_NAME_KPA_ACHIEVED) + @javax.annotation.Nonnull + private List kpaAchieved = new ArrayList<>(); + + public static final String SERIALIZED_NAME_MOBILITY_COUNTS = "mobility_counts"; + @SerializedName(SERIALIZED_NAME_MOBILITY_COUNTS) + @javax.annotation.Nonnull + private List mobilityCounts = new ArrayList<>(); + + public static final String SERIALIZED_NAME_ROTOR1_ENGAGED = "rotor_1_engaged"; + @SerializedName(SERIALIZED_NAME_ROTOR1_ENGAGED) + @javax.annotation.Nonnull + private List rotor1Engaged = new ArrayList<>(); + + public static final String SERIALIZED_NAME_ROTOR1_ENGAGED_AUTO = "rotor_1_engaged_auto"; + @SerializedName(SERIALIZED_NAME_ROTOR1_ENGAGED_AUTO) + @javax.annotation.Nonnull + private List rotor1EngagedAuto = new ArrayList<>(); + + public static final String SERIALIZED_NAME_ROTOR2_ENGAGED = "rotor_2_engaged"; + @SerializedName(SERIALIZED_NAME_ROTOR2_ENGAGED) + @javax.annotation.Nonnull + private List rotor2Engaged = new ArrayList<>(); + + public static final String SERIALIZED_NAME_ROTOR2_ENGAGED_AUTO = "rotor_2_engaged_auto"; + @SerializedName(SERIALIZED_NAME_ROTOR2_ENGAGED_AUTO) + @javax.annotation.Nonnull + private List rotor2EngagedAuto = new ArrayList<>(); + + public static final String SERIALIZED_NAME_ROTOR3_ENGAGED = "rotor_3_engaged"; + @SerializedName(SERIALIZED_NAME_ROTOR3_ENGAGED) + @javax.annotation.Nonnull + private List rotor3Engaged = new ArrayList<>(); + + public static final String SERIALIZED_NAME_ROTOR4_ENGAGED = "rotor_4_engaged"; + @SerializedName(SERIALIZED_NAME_ROTOR4_ENGAGED) + @javax.annotation.Nonnull + private List rotor4Engaged = new ArrayList<>(); + + public static final String SERIALIZED_NAME_TAKEOFF_COUNTS = "takeoff_counts"; + @SerializedName(SERIALIZED_NAME_TAKEOFF_COUNTS) + @javax.annotation.Nonnull + private List takeoffCounts = new ArrayList<>(); + + public static final String SERIALIZED_NAME_UNICORN_MATCHES = "unicorn_matches"; + @SerializedName(SERIALIZED_NAME_UNICORN_MATCHES) + @javax.annotation.Nonnull + private List unicornMatches = new ArrayList<>(); + + public EventInsights2017() { + } + + public EventInsights2017 averageFoulScore(@javax.annotation.Nonnull Float averageFoulScore) { + + this.averageFoulScore = averageFoulScore; + return this; + } + + /** + * Average foul score. + * @return averageFoulScore + */ + @javax.annotation.Nonnull + + public Float getAverageFoulScore() { + return averageFoulScore; + } + + + public void setAverageFoulScore(@javax.annotation.Nonnull Float averageFoulScore) { + this.averageFoulScore = averageFoulScore; + } + + public EventInsights2017 averageFuelPoints(@javax.annotation.Nonnull Float averageFuelPoints) { + + this.averageFuelPoints = averageFuelPoints; + return this; + } + + /** + * Average fuel points scored. + * @return averageFuelPoints + */ + @javax.annotation.Nonnull + + public Float getAverageFuelPoints() { + return averageFuelPoints; + } + + + public void setAverageFuelPoints(@javax.annotation.Nonnull Float averageFuelPoints) { + this.averageFuelPoints = averageFuelPoints; + } + + public EventInsights2017 averageFuelPointsAuto(@javax.annotation.Nonnull Float averageFuelPointsAuto) { + + this.averageFuelPointsAuto = averageFuelPointsAuto; + return this; + } + + /** + * Average fuel points scored during auto. + * @return averageFuelPointsAuto + */ + @javax.annotation.Nonnull + + public Float getAverageFuelPointsAuto() { + return averageFuelPointsAuto; + } + + + public void setAverageFuelPointsAuto(@javax.annotation.Nonnull Float averageFuelPointsAuto) { + this.averageFuelPointsAuto = averageFuelPointsAuto; + } + + public EventInsights2017 averageFuelPointsTeleop(@javax.annotation.Nonnull Float averageFuelPointsTeleop) { + + this.averageFuelPointsTeleop = averageFuelPointsTeleop; + return this; + } + + /** + * Average fuel points scored during teleop. + * @return averageFuelPointsTeleop + */ + @javax.annotation.Nonnull + + public Float getAverageFuelPointsTeleop() { + return averageFuelPointsTeleop; + } + + + public void setAverageFuelPointsTeleop(@javax.annotation.Nonnull Float averageFuelPointsTeleop) { + this.averageFuelPointsTeleop = averageFuelPointsTeleop; + } + + public EventInsights2017 averageHighGoals(@javax.annotation.Nonnull Float averageHighGoals) { + + this.averageHighGoals = averageHighGoals; + return this; + } + + /** + * Average points scored in the high goal. + * @return averageHighGoals + */ + @javax.annotation.Nonnull + + public Float getAverageHighGoals() { + return averageHighGoals; + } + + + public void setAverageHighGoals(@javax.annotation.Nonnull Float averageHighGoals) { + this.averageHighGoals = averageHighGoals; + } + + public EventInsights2017 averageHighGoalsAuto(@javax.annotation.Nonnull Float averageHighGoalsAuto) { + + this.averageHighGoalsAuto = averageHighGoalsAuto; + return this; + } + + /** + * Average points scored in the high goal during auto. + * @return averageHighGoalsAuto + */ + @javax.annotation.Nonnull + + public Float getAverageHighGoalsAuto() { + return averageHighGoalsAuto; + } + + + public void setAverageHighGoalsAuto(@javax.annotation.Nonnull Float averageHighGoalsAuto) { + this.averageHighGoalsAuto = averageHighGoalsAuto; + } + + public EventInsights2017 averageHighGoalsTeleop(@javax.annotation.Nonnull Float averageHighGoalsTeleop) { + + this.averageHighGoalsTeleop = averageHighGoalsTeleop; + return this; + } + + /** + * Average points scored in the high goal during teleop. + * @return averageHighGoalsTeleop + */ + @javax.annotation.Nonnull + + public Float getAverageHighGoalsTeleop() { + return averageHighGoalsTeleop; + } + + + public void setAverageHighGoalsTeleop(@javax.annotation.Nonnull Float averageHighGoalsTeleop) { + this.averageHighGoalsTeleop = averageHighGoalsTeleop; + } + + public EventInsights2017 averageLowGoals(@javax.annotation.Nonnull Float averageLowGoals) { + + this.averageLowGoals = averageLowGoals; + return this; + } + + /** + * Average points scored in the low goal. + * @return averageLowGoals + */ + @javax.annotation.Nonnull + + public Float getAverageLowGoals() { + return averageLowGoals; + } + + + public void setAverageLowGoals(@javax.annotation.Nonnull Float averageLowGoals) { + this.averageLowGoals = averageLowGoals; + } + + public EventInsights2017 averageLowGoalsAuto(@javax.annotation.Nonnull Float averageLowGoalsAuto) { + + this.averageLowGoalsAuto = averageLowGoalsAuto; + return this; + } + + /** + * Average points scored in the low goal during auto. + * @return averageLowGoalsAuto + */ + @javax.annotation.Nonnull + + public Float getAverageLowGoalsAuto() { + return averageLowGoalsAuto; + } + + + public void setAverageLowGoalsAuto(@javax.annotation.Nonnull Float averageLowGoalsAuto) { + this.averageLowGoalsAuto = averageLowGoalsAuto; + } + + public EventInsights2017 averageLowGoalsTeleop(@javax.annotation.Nonnull Float averageLowGoalsTeleop) { + + this.averageLowGoalsTeleop = averageLowGoalsTeleop; + return this; + } + + /** + * Average points scored in the low goal during teleop. + * @return averageLowGoalsTeleop + */ + @javax.annotation.Nonnull + + public Float getAverageLowGoalsTeleop() { + return averageLowGoalsTeleop; + } + + + public void setAverageLowGoalsTeleop(@javax.annotation.Nonnull Float averageLowGoalsTeleop) { + this.averageLowGoalsTeleop = averageLowGoalsTeleop; + } + + public EventInsights2017 averageMobilityPointsAuto(@javax.annotation.Nonnull Float averageMobilityPointsAuto) { + + this.averageMobilityPointsAuto = averageMobilityPointsAuto; + return this; + } + + /** + * Average mobility points scored during auto. + * @return averageMobilityPointsAuto + */ + @javax.annotation.Nonnull + + public Float getAverageMobilityPointsAuto() { + return averageMobilityPointsAuto; + } + + + public void setAverageMobilityPointsAuto(@javax.annotation.Nonnull Float averageMobilityPointsAuto) { + this.averageMobilityPointsAuto = averageMobilityPointsAuto; + } + + public EventInsights2017 averagePointsAuto(@javax.annotation.Nonnull Float averagePointsAuto) { + + this.averagePointsAuto = averagePointsAuto; + return this; + } + + /** + * Average points scored during auto. + * @return averagePointsAuto + */ + @javax.annotation.Nonnull + + public Float getAveragePointsAuto() { + return averagePointsAuto; + } + + + public void setAveragePointsAuto(@javax.annotation.Nonnull Float averagePointsAuto) { + this.averagePointsAuto = averagePointsAuto; + } + + public EventInsights2017 averagePointsTeleop(@javax.annotation.Nonnull Float averagePointsTeleop) { + + this.averagePointsTeleop = averagePointsTeleop; + return this; + } + + /** + * Average points scored during teleop. + * @return averagePointsTeleop + */ + @javax.annotation.Nonnull + + public Float getAveragePointsTeleop() { + return averagePointsTeleop; + } + + + public void setAveragePointsTeleop(@javax.annotation.Nonnull Float averagePointsTeleop) { + this.averagePointsTeleop = averagePointsTeleop; + } + + public EventInsights2017 averageRotorPoints(@javax.annotation.Nonnull Float averageRotorPoints) { + + this.averageRotorPoints = averageRotorPoints; + return this; + } + + /** + * Average rotor points scored. + * @return averageRotorPoints + */ + @javax.annotation.Nonnull + + public Float getAverageRotorPoints() { + return averageRotorPoints; + } + + + public void setAverageRotorPoints(@javax.annotation.Nonnull Float averageRotorPoints) { + this.averageRotorPoints = averageRotorPoints; + } + + public EventInsights2017 averageRotorPointsAuto(@javax.annotation.Nonnull Float averageRotorPointsAuto) { + + this.averageRotorPointsAuto = averageRotorPointsAuto; + return this; + } + + /** + * Average rotor points scored during auto. + * @return averageRotorPointsAuto + */ + @javax.annotation.Nonnull + + public Float getAverageRotorPointsAuto() { + return averageRotorPointsAuto; + } + + + public void setAverageRotorPointsAuto(@javax.annotation.Nonnull Float averageRotorPointsAuto) { + this.averageRotorPointsAuto = averageRotorPointsAuto; + } + + public EventInsights2017 averageRotorPointsTeleop(@javax.annotation.Nonnull Float averageRotorPointsTeleop) { + + this.averageRotorPointsTeleop = averageRotorPointsTeleop; + return this; + } + + /** + * Average rotor points scored during teleop. + * @return averageRotorPointsTeleop + */ + @javax.annotation.Nonnull + + public Float getAverageRotorPointsTeleop() { + return averageRotorPointsTeleop; + } + + + public void setAverageRotorPointsTeleop(@javax.annotation.Nonnull Float averageRotorPointsTeleop) { + this.averageRotorPointsTeleop = averageRotorPointsTeleop; + } + + public EventInsights2017 averageScore(@javax.annotation.Nonnull Float averageScore) { + + this.averageScore = averageScore; + return this; + } + + /** + * Average score. + * @return averageScore + */ + @javax.annotation.Nonnull + + public Float getAverageScore() { + return averageScore; + } + + + public void setAverageScore(@javax.annotation.Nonnull Float averageScore) { + this.averageScore = averageScore; + } + + public EventInsights2017 averageTakeoffPointsTeleop(@javax.annotation.Nonnull Float averageTakeoffPointsTeleop) { + + this.averageTakeoffPointsTeleop = averageTakeoffPointsTeleop; + return this; + } + + /** + * Average takeoff points scored during teleop. + * @return averageTakeoffPointsTeleop + */ + @javax.annotation.Nonnull + + public Float getAverageTakeoffPointsTeleop() { + return averageTakeoffPointsTeleop; + } + + + public void setAverageTakeoffPointsTeleop(@javax.annotation.Nonnull Float averageTakeoffPointsTeleop) { + this.averageTakeoffPointsTeleop = averageTakeoffPointsTeleop; + } + + public EventInsights2017 averageWinMargin(@javax.annotation.Nonnull Float averageWinMargin) { + + this.averageWinMargin = averageWinMargin; + return this; + } + + /** + * Average margin of victory. + * @return averageWinMargin + */ + @javax.annotation.Nonnull + + public Float getAverageWinMargin() { + return averageWinMargin; + } + + + public void setAverageWinMargin(@javax.annotation.Nonnull Float averageWinMargin) { + this.averageWinMargin = averageWinMargin; + } + + public EventInsights2017 averageWinScore(@javax.annotation.Nonnull Float averageWinScore) { + + this.averageWinScore = averageWinScore; + return this; + } + + /** + * Average winning score. + * @return averageWinScore + */ + @javax.annotation.Nonnull + + public Float getAverageWinScore() { + return averageWinScore; + } + + + public void setAverageWinScore(@javax.annotation.Nonnull Float averageWinScore) { + this.averageWinScore = averageWinScore; + } + + public EventInsights2017 highKpa(@javax.annotation.Nonnull List highKpa) { + + this.highKpa = highKpa; + return this; + } + + public EventInsights2017 addHighKpaItem(String highKpaItem) { + if (this.highKpa == null) { + this.highKpa = new ArrayList<>(); + } + this.highKpa.add(highKpaItem); + return this; + } + + /** + * An array with three values, kPa scored, match key from the match with the high kPa, and the name of the match + * @return highKpa + */ + @javax.annotation.Nonnull + + public List getHighKpa() { + return highKpa; + } + + + public void setHighKpa(@javax.annotation.Nonnull List highKpa) { + this.highKpa = highKpa; + } + + public EventInsights2017 highScore(@javax.annotation.Nonnull List highScore) { + + this.highScore = highScore; + return this; + } + + public EventInsights2017 addHighScoreItem(String highScoreItem) { + if (this.highScore == null) { + this.highScore = new ArrayList<>(); + } + this.highScore.add(highScoreItem); + return this; + } + + /** + * An array with three values, high score, match key from the match with the high score, and the name of the match + * @return highScore + */ + @javax.annotation.Nonnull + + public List getHighScore() { + return highScore; + } + + + public void setHighScore(@javax.annotation.Nonnull List highScore) { + this.highScore = highScore; + } + + public EventInsights2017 kpaAchieved(@javax.annotation.Nonnull List kpaAchieved) { + + this.kpaAchieved = kpaAchieved; + return this; + } + + public EventInsights2017 addKpaAchievedItem(Float kpaAchievedItem) { + if (this.kpaAchieved == null) { + this.kpaAchieved = new ArrayList<>(); + } + this.kpaAchieved.add(kpaAchievedItem); + return this; + } + + /** + * An array with three values, number of times kPa bonus achieved, number of opportunities to bonus, and percentage. + * @return kpaAchieved + */ + @javax.annotation.Nonnull + + public List getKpaAchieved() { + return kpaAchieved; + } + + + public void setKpaAchieved(@javax.annotation.Nonnull List kpaAchieved) { + this.kpaAchieved = kpaAchieved; + } + + public EventInsights2017 mobilityCounts(@javax.annotation.Nonnull List mobilityCounts) { + + this.mobilityCounts = mobilityCounts; + return this; + } + + public EventInsights2017 addMobilityCountsItem(Float mobilityCountsItem) { + if (this.mobilityCounts == null) { + this.mobilityCounts = new ArrayList<>(); + } + this.mobilityCounts.add(mobilityCountsItem); + return this; + } + + /** + * An array with three values, number of times mobility bonus achieved, number of opportunities to bonus, and percentage. + * @return mobilityCounts + */ + @javax.annotation.Nonnull + + public List getMobilityCounts() { + return mobilityCounts; + } + + + public void setMobilityCounts(@javax.annotation.Nonnull List mobilityCounts) { + this.mobilityCounts = mobilityCounts; + } + + public EventInsights2017 rotor1Engaged(@javax.annotation.Nonnull List rotor1Engaged) { + + this.rotor1Engaged = rotor1Engaged; + return this; + } + + public EventInsights2017 addRotor1EngagedItem(Float rotor1EngagedItem) { + if (this.rotor1Engaged == null) { + this.rotor1Engaged = new ArrayList<>(); + } + this.rotor1Engaged.add(rotor1EngagedItem); + return this; + } + + /** + * An array with three values, number of times rotor 1 engaged, number of opportunities to engage, and percentage. + * @return rotor1Engaged + */ + @javax.annotation.Nonnull + + public List getRotor1Engaged() { + return rotor1Engaged; + } + + + public void setRotor1Engaged(@javax.annotation.Nonnull List rotor1Engaged) { + this.rotor1Engaged = rotor1Engaged; + } + + public EventInsights2017 rotor1EngagedAuto(@javax.annotation.Nonnull List rotor1EngagedAuto) { + + this.rotor1EngagedAuto = rotor1EngagedAuto; + return this; + } + + public EventInsights2017 addRotor1EngagedAutoItem(Float rotor1EngagedAutoItem) { + if (this.rotor1EngagedAuto == null) { + this.rotor1EngagedAuto = new ArrayList<>(); + } + this.rotor1EngagedAuto.add(rotor1EngagedAutoItem); + return this; + } + + /** + * An array with three values, number of times rotor 1 engaged in auto, number of opportunities to engage in auto, and percentage. + * @return rotor1EngagedAuto + */ + @javax.annotation.Nonnull + + public List getRotor1EngagedAuto() { + return rotor1EngagedAuto; + } + + + public void setRotor1EngagedAuto(@javax.annotation.Nonnull List rotor1EngagedAuto) { + this.rotor1EngagedAuto = rotor1EngagedAuto; + } + + public EventInsights2017 rotor2Engaged(@javax.annotation.Nonnull List rotor2Engaged) { + + this.rotor2Engaged = rotor2Engaged; + return this; + } + + public EventInsights2017 addRotor2EngagedItem(Float rotor2EngagedItem) { + if (this.rotor2Engaged == null) { + this.rotor2Engaged = new ArrayList<>(); + } + this.rotor2Engaged.add(rotor2EngagedItem); + return this; + } + + /** + * An array with three values, number of times rotor 2 engaged, number of opportunities to engage, and percentage. + * @return rotor2Engaged + */ + @javax.annotation.Nonnull + + public List getRotor2Engaged() { + return rotor2Engaged; + } + + + public void setRotor2Engaged(@javax.annotation.Nonnull List rotor2Engaged) { + this.rotor2Engaged = rotor2Engaged; + } + + public EventInsights2017 rotor2EngagedAuto(@javax.annotation.Nonnull List rotor2EngagedAuto) { + + this.rotor2EngagedAuto = rotor2EngagedAuto; + return this; + } + + public EventInsights2017 addRotor2EngagedAutoItem(Float rotor2EngagedAutoItem) { + if (this.rotor2EngagedAuto == null) { + this.rotor2EngagedAuto = new ArrayList<>(); + } + this.rotor2EngagedAuto.add(rotor2EngagedAutoItem); + return this; + } + + /** + * An array with three values, number of times rotor 2 engaged in auto, number of opportunities to engage in auto, and percentage. + * @return rotor2EngagedAuto + */ + @javax.annotation.Nonnull + + public List getRotor2EngagedAuto() { + return rotor2EngagedAuto; + } + + + public void setRotor2EngagedAuto(@javax.annotation.Nonnull List rotor2EngagedAuto) { + this.rotor2EngagedAuto = rotor2EngagedAuto; + } + + public EventInsights2017 rotor3Engaged(@javax.annotation.Nonnull List rotor3Engaged) { + + this.rotor3Engaged = rotor3Engaged; + return this; + } + + public EventInsights2017 addRotor3EngagedItem(Float rotor3EngagedItem) { + if (this.rotor3Engaged == null) { + this.rotor3Engaged = new ArrayList<>(); + } + this.rotor3Engaged.add(rotor3EngagedItem); + return this; + } + + /** + * An array with three values, number of times rotor 3 engaged, number of opportunities to engage, and percentage. + * @return rotor3Engaged + */ + @javax.annotation.Nonnull + + public List getRotor3Engaged() { + return rotor3Engaged; + } + + + public void setRotor3Engaged(@javax.annotation.Nonnull List rotor3Engaged) { + this.rotor3Engaged = rotor3Engaged; + } + + public EventInsights2017 rotor4Engaged(@javax.annotation.Nonnull List rotor4Engaged) { + + this.rotor4Engaged = rotor4Engaged; + return this; + } + + public EventInsights2017 addRotor4EngagedItem(Float rotor4EngagedItem) { + if (this.rotor4Engaged == null) { + this.rotor4Engaged = new ArrayList<>(); + } + this.rotor4Engaged.add(rotor4EngagedItem); + return this; + } + + /** + * An array with three values, number of times rotor 4 engaged, number of opportunities to engage, and percentage. + * @return rotor4Engaged + */ + @javax.annotation.Nonnull + + public List getRotor4Engaged() { + return rotor4Engaged; + } + + + public void setRotor4Engaged(@javax.annotation.Nonnull List rotor4Engaged) { + this.rotor4Engaged = rotor4Engaged; + } + + public EventInsights2017 takeoffCounts(@javax.annotation.Nonnull List takeoffCounts) { + + this.takeoffCounts = takeoffCounts; + return this; + } + + public EventInsights2017 addTakeoffCountsItem(Float takeoffCountsItem) { + if (this.takeoffCounts == null) { + this.takeoffCounts = new ArrayList<>(); + } + this.takeoffCounts.add(takeoffCountsItem); + return this; + } + + /** + * An array with three values, number of times takeoff was counted, number of opportunities to takeoff, and percentage. + * @return takeoffCounts + */ + @javax.annotation.Nonnull + + public List getTakeoffCounts() { + return takeoffCounts; + } + + + public void setTakeoffCounts(@javax.annotation.Nonnull List takeoffCounts) { + this.takeoffCounts = takeoffCounts; + } + + public EventInsights2017 unicornMatches(@javax.annotation.Nonnull List unicornMatches) { + + this.unicornMatches = unicornMatches; + return this; + } + + public EventInsights2017 addUnicornMatchesItem(Float unicornMatchesItem) { + if (this.unicornMatches == null) { + this.unicornMatches = new ArrayList<>(); + } + this.unicornMatches.add(unicornMatchesItem); + return this; + } + + /** + * An array with three values, number of times a unicorn match (Win + kPa & Rotor Bonuses) occured, number of opportunities to have a unicorn match, and percentage. + * @return unicornMatches + */ + @javax.annotation.Nonnull + + public List getUnicornMatches() { + return unicornMatches; + } + + + public void setUnicornMatches(@javax.annotation.Nonnull List unicornMatches) { + this.unicornMatches = unicornMatches; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventInsights2017 eventInsights2017 = (EventInsights2017) o; + return Objects.equals(this.averageFoulScore, eventInsights2017.averageFoulScore) && + Objects.equals(this.averageFuelPoints, eventInsights2017.averageFuelPoints) && + Objects.equals(this.averageFuelPointsAuto, eventInsights2017.averageFuelPointsAuto) && + Objects.equals(this.averageFuelPointsTeleop, eventInsights2017.averageFuelPointsTeleop) && + Objects.equals(this.averageHighGoals, eventInsights2017.averageHighGoals) && + Objects.equals(this.averageHighGoalsAuto, eventInsights2017.averageHighGoalsAuto) && + Objects.equals(this.averageHighGoalsTeleop, eventInsights2017.averageHighGoalsTeleop) && + Objects.equals(this.averageLowGoals, eventInsights2017.averageLowGoals) && + Objects.equals(this.averageLowGoalsAuto, eventInsights2017.averageLowGoalsAuto) && + Objects.equals(this.averageLowGoalsTeleop, eventInsights2017.averageLowGoalsTeleop) && + Objects.equals(this.averageMobilityPointsAuto, eventInsights2017.averageMobilityPointsAuto) && + Objects.equals(this.averagePointsAuto, eventInsights2017.averagePointsAuto) && + Objects.equals(this.averagePointsTeleop, eventInsights2017.averagePointsTeleop) && + Objects.equals(this.averageRotorPoints, eventInsights2017.averageRotorPoints) && + Objects.equals(this.averageRotorPointsAuto, eventInsights2017.averageRotorPointsAuto) && + Objects.equals(this.averageRotorPointsTeleop, eventInsights2017.averageRotorPointsTeleop) && + Objects.equals(this.averageScore, eventInsights2017.averageScore) && + Objects.equals(this.averageTakeoffPointsTeleop, eventInsights2017.averageTakeoffPointsTeleop) && + Objects.equals(this.averageWinMargin, eventInsights2017.averageWinMargin) && + Objects.equals(this.averageWinScore, eventInsights2017.averageWinScore) && + Objects.equals(this.highKpa, eventInsights2017.highKpa) && + Objects.equals(this.highScore, eventInsights2017.highScore) && + Objects.equals(this.kpaAchieved, eventInsights2017.kpaAchieved) && + Objects.equals(this.mobilityCounts, eventInsights2017.mobilityCounts) && + Objects.equals(this.rotor1Engaged, eventInsights2017.rotor1Engaged) && + Objects.equals(this.rotor1EngagedAuto, eventInsights2017.rotor1EngagedAuto) && + Objects.equals(this.rotor2Engaged, eventInsights2017.rotor2Engaged) && + Objects.equals(this.rotor2EngagedAuto, eventInsights2017.rotor2EngagedAuto) && + Objects.equals(this.rotor3Engaged, eventInsights2017.rotor3Engaged) && + Objects.equals(this.rotor4Engaged, eventInsights2017.rotor4Engaged) && + Objects.equals(this.takeoffCounts, eventInsights2017.takeoffCounts) && + Objects.equals(this.unicornMatches, eventInsights2017.unicornMatches); + } + + @Override + public int hashCode() { + return Objects.hash(averageFoulScore, averageFuelPoints, averageFuelPointsAuto, averageFuelPointsTeleop, averageHighGoals, averageHighGoalsAuto, averageHighGoalsTeleop, averageLowGoals, averageLowGoalsAuto, averageLowGoalsTeleop, averageMobilityPointsAuto, averagePointsAuto, averagePointsTeleop, averageRotorPoints, averageRotorPointsAuto, averageRotorPointsTeleop, averageScore, averageTakeoffPointsTeleop, averageWinMargin, averageWinScore, highKpa, highScore, kpaAchieved, mobilityCounts, rotor1Engaged, rotor1EngagedAuto, rotor2Engaged, rotor2EngagedAuto, rotor3Engaged, rotor4Engaged, takeoffCounts, unicornMatches); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventInsights2017 {\n"); + sb.append(" averageFoulScore: ").append(toIndentedString(averageFoulScore)).append("\n"); + sb.append(" averageFuelPoints: ").append(toIndentedString(averageFuelPoints)).append("\n"); + sb.append(" averageFuelPointsAuto: ").append(toIndentedString(averageFuelPointsAuto)).append("\n"); + sb.append(" averageFuelPointsTeleop: ").append(toIndentedString(averageFuelPointsTeleop)).append("\n"); + sb.append(" averageHighGoals: ").append(toIndentedString(averageHighGoals)).append("\n"); + sb.append(" averageHighGoalsAuto: ").append(toIndentedString(averageHighGoalsAuto)).append("\n"); + sb.append(" averageHighGoalsTeleop: ").append(toIndentedString(averageHighGoalsTeleop)).append("\n"); + sb.append(" averageLowGoals: ").append(toIndentedString(averageLowGoals)).append("\n"); + sb.append(" averageLowGoalsAuto: ").append(toIndentedString(averageLowGoalsAuto)).append("\n"); + sb.append(" averageLowGoalsTeleop: ").append(toIndentedString(averageLowGoalsTeleop)).append("\n"); + sb.append(" averageMobilityPointsAuto: ").append(toIndentedString(averageMobilityPointsAuto)).append("\n"); + sb.append(" averagePointsAuto: ").append(toIndentedString(averagePointsAuto)).append("\n"); + sb.append(" averagePointsTeleop: ").append(toIndentedString(averagePointsTeleop)).append("\n"); + sb.append(" averageRotorPoints: ").append(toIndentedString(averageRotorPoints)).append("\n"); + sb.append(" averageRotorPointsAuto: ").append(toIndentedString(averageRotorPointsAuto)).append("\n"); + sb.append(" averageRotorPointsTeleop: ").append(toIndentedString(averageRotorPointsTeleop)).append("\n"); + sb.append(" averageScore: ").append(toIndentedString(averageScore)).append("\n"); + sb.append(" averageTakeoffPointsTeleop: ").append(toIndentedString(averageTakeoffPointsTeleop)).append("\n"); + sb.append(" averageWinMargin: ").append(toIndentedString(averageWinMargin)).append("\n"); + sb.append(" averageWinScore: ").append(toIndentedString(averageWinScore)).append("\n"); + sb.append(" highKpa: ").append(toIndentedString(highKpa)).append("\n"); + sb.append(" highScore: ").append(toIndentedString(highScore)).append("\n"); + sb.append(" kpaAchieved: ").append(toIndentedString(kpaAchieved)).append("\n"); + sb.append(" mobilityCounts: ").append(toIndentedString(mobilityCounts)).append("\n"); + sb.append(" rotor1Engaged: ").append(toIndentedString(rotor1Engaged)).append("\n"); + sb.append(" rotor1EngagedAuto: ").append(toIndentedString(rotor1EngagedAuto)).append("\n"); + sb.append(" rotor2Engaged: ").append(toIndentedString(rotor2Engaged)).append("\n"); + sb.append(" rotor2EngagedAuto: ").append(toIndentedString(rotor2EngagedAuto)).append("\n"); + sb.append(" rotor3Engaged: ").append(toIndentedString(rotor3Engaged)).append("\n"); + sb.append(" rotor4Engaged: ").append(toIndentedString(rotor4Engaged)).append("\n"); + sb.append(" takeoffCounts: ").append(toIndentedString(takeoffCounts)).append("\n"); + sb.append(" unicornMatches: ").append(toIndentedString(unicornMatches)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/EventInsights2018.java b/tba-api/src/main/java/thebluealliance/api/model/EventInsights2018.java new file mode 100644 index 000000000..f8e59d61f --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/EventInsights2018.java @@ -0,0 +1,1188 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +/** + * Insights for FIRST Power Up qualification and elimination matches. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class EventInsights2018 { + public static final String SERIALIZED_NAME_AUTO_QUEST_ACHIEVED = "auto_quest_achieved"; + @SerializedName(SERIALIZED_NAME_AUTO_QUEST_ACHIEVED) + @javax.annotation.Nonnull + private List autoQuestAchieved = new ArrayList<>(); + + public static final String SERIALIZED_NAME_AVERAGE_BOOST_PLAYED = "average_boost_played"; + @SerializedName(SERIALIZED_NAME_AVERAGE_BOOST_PLAYED) + @javax.annotation.Nonnull + private Float averageBoostPlayed; + + public static final String SERIALIZED_NAME_AVERAGE_ENDGAME_POINTS = "average_endgame_points"; + @SerializedName(SERIALIZED_NAME_AVERAGE_ENDGAME_POINTS) + @javax.annotation.Nonnull + private Float averageEndgamePoints; + + public static final String SERIALIZED_NAME_AVERAGE_FORCE_PLAYED = "average_force_played"; + @SerializedName(SERIALIZED_NAME_AVERAGE_FORCE_PLAYED) + @javax.annotation.Nonnull + private Float averageForcePlayed; + + public static final String SERIALIZED_NAME_AVERAGE_FOUL_SCORE = "average_foul_score"; + @SerializedName(SERIALIZED_NAME_AVERAGE_FOUL_SCORE) + @javax.annotation.Nonnull + private Float averageFoulScore; + + public static final String SERIALIZED_NAME_AVERAGE_POINTS_AUTO = "average_points_auto"; + @SerializedName(SERIALIZED_NAME_AVERAGE_POINTS_AUTO) + @javax.annotation.Nonnull + private Float averagePointsAuto; + + public static final String SERIALIZED_NAME_AVERAGE_POINTS_TELEOP = "average_points_teleop"; + @SerializedName(SERIALIZED_NAME_AVERAGE_POINTS_TELEOP) + @javax.annotation.Nonnull + private Float averagePointsTeleop; + + public static final String SERIALIZED_NAME_AVERAGE_RUN_POINTS_AUTO = "average_run_points_auto"; + @SerializedName(SERIALIZED_NAME_AVERAGE_RUN_POINTS_AUTO) + @javax.annotation.Nonnull + private Float averageRunPointsAuto; + + public static final String SERIALIZED_NAME_AVERAGE_SCALE_OWNERSHIP_POINTS = "average_scale_ownership_points"; + @SerializedName(SERIALIZED_NAME_AVERAGE_SCALE_OWNERSHIP_POINTS) + @javax.annotation.Nonnull + private Float averageScaleOwnershipPoints; + + public static final String SERIALIZED_NAME_AVERAGE_SCALE_OWNERSHIP_POINTS_AUTO = "average_scale_ownership_points_auto"; + @SerializedName(SERIALIZED_NAME_AVERAGE_SCALE_OWNERSHIP_POINTS_AUTO) + @javax.annotation.Nonnull + private Float averageScaleOwnershipPointsAuto; + + public static final String SERIALIZED_NAME_AVERAGE_SCALE_OWNERSHIP_POINTS_TELEOP = "average_scale_ownership_points_teleop"; + @SerializedName(SERIALIZED_NAME_AVERAGE_SCALE_OWNERSHIP_POINTS_TELEOP) + @javax.annotation.Nonnull + private Float averageScaleOwnershipPointsTeleop; + + public static final String SERIALIZED_NAME_AVERAGE_SCORE = "average_score"; + @SerializedName(SERIALIZED_NAME_AVERAGE_SCORE) + @javax.annotation.Nonnull + private Float averageScore; + + public static final String SERIALIZED_NAME_AVERAGE_SWITCH_OWNERSHIP_POINTS = "average_switch_ownership_points"; + @SerializedName(SERIALIZED_NAME_AVERAGE_SWITCH_OWNERSHIP_POINTS) + @javax.annotation.Nonnull + private Float averageSwitchOwnershipPoints; + + public static final String SERIALIZED_NAME_AVERAGE_SWITCH_OWNERSHIP_POINTS_AUTO = "average_switch_ownership_points_auto"; + @SerializedName(SERIALIZED_NAME_AVERAGE_SWITCH_OWNERSHIP_POINTS_AUTO) + @javax.annotation.Nonnull + private Float averageSwitchOwnershipPointsAuto; + + public static final String SERIALIZED_NAME_AVERAGE_SWITCH_OWNERSHIP_POINTS_TELEOP = "average_switch_ownership_points_teleop"; + @SerializedName(SERIALIZED_NAME_AVERAGE_SWITCH_OWNERSHIP_POINTS_TELEOP) + @javax.annotation.Nonnull + private Float averageSwitchOwnershipPointsTeleop; + + public static final String SERIALIZED_NAME_AVERAGE_VAULT_POINTS = "average_vault_points"; + @SerializedName(SERIALIZED_NAME_AVERAGE_VAULT_POINTS) + @javax.annotation.Nonnull + private Float averageVaultPoints; + + public static final String SERIALIZED_NAME_AVERAGE_WIN_MARGIN = "average_win_margin"; + @SerializedName(SERIALIZED_NAME_AVERAGE_WIN_MARGIN) + @javax.annotation.Nonnull + private Float averageWinMargin; + + public static final String SERIALIZED_NAME_AVERAGE_WIN_SCORE = "average_win_score"; + @SerializedName(SERIALIZED_NAME_AVERAGE_WIN_SCORE) + @javax.annotation.Nonnull + private Float averageWinScore; + + public static final String SERIALIZED_NAME_BOOST_PLAYED_COUNTS = "boost_played_counts"; + @SerializedName(SERIALIZED_NAME_BOOST_PLAYED_COUNTS) + @javax.annotation.Nonnull + private List boostPlayedCounts = new ArrayList<>(); + + public static final String SERIALIZED_NAME_CLIMB_COUNTS = "climb_counts"; + @SerializedName(SERIALIZED_NAME_CLIMB_COUNTS) + @javax.annotation.Nonnull + private List climbCounts = new ArrayList<>(); + + public static final String SERIALIZED_NAME_FACE_THE_BOSS_ACHIEVED = "face_the_boss_achieved"; + @SerializedName(SERIALIZED_NAME_FACE_THE_BOSS_ACHIEVED) + @javax.annotation.Nonnull + private List faceTheBossAchieved = new ArrayList<>(); + + public static final String SERIALIZED_NAME_FORCE_PLAYED_COUNTS = "force_played_counts"; + @SerializedName(SERIALIZED_NAME_FORCE_PLAYED_COUNTS) + @javax.annotation.Nonnull + private List forcePlayedCounts = new ArrayList<>(); + + public static final String SERIALIZED_NAME_HIGH_SCORE = "high_score"; + @SerializedName(SERIALIZED_NAME_HIGH_SCORE) + @javax.annotation.Nonnull + private List highScore = new ArrayList<>(); + + public static final String SERIALIZED_NAME_LEVITATE_PLAYED_COUNTS = "levitate_played_counts"; + @SerializedName(SERIALIZED_NAME_LEVITATE_PLAYED_COUNTS) + @javax.annotation.Nonnull + private List levitatePlayedCounts = new ArrayList<>(); + + public static final String SERIALIZED_NAME_RUN_COUNTS_AUTO = "run_counts_auto"; + @SerializedName(SERIALIZED_NAME_RUN_COUNTS_AUTO) + @javax.annotation.Nonnull + private List runCountsAuto = new ArrayList<>(); + + public static final String SERIALIZED_NAME_SCALE_NEUTRAL_PERCENTAGE = "scale_neutral_percentage"; + @SerializedName(SERIALIZED_NAME_SCALE_NEUTRAL_PERCENTAGE) + @javax.annotation.Nonnull + private Float scaleNeutralPercentage; + + public static final String SERIALIZED_NAME_SCALE_NEUTRAL_PERCENTAGE_AUTO = "scale_neutral_percentage_auto"; + @SerializedName(SERIALIZED_NAME_SCALE_NEUTRAL_PERCENTAGE_AUTO) + @javax.annotation.Nonnull + private Float scaleNeutralPercentageAuto; + + public static final String SERIALIZED_NAME_SCALE_NEUTRAL_PERCENTAGE_TELEOP = "scale_neutral_percentage_teleop"; + @SerializedName(SERIALIZED_NAME_SCALE_NEUTRAL_PERCENTAGE_TELEOP) + @javax.annotation.Nonnull + private Float scaleNeutralPercentageTeleop; + + public static final String SERIALIZED_NAME_SWITCH_OWNED_COUNTS_AUTO = "switch_owned_counts_auto"; + @SerializedName(SERIALIZED_NAME_SWITCH_OWNED_COUNTS_AUTO) + @javax.annotation.Nonnull + private List switchOwnedCountsAuto = new ArrayList<>(); + + public static final String SERIALIZED_NAME_UNICORN_MATCHES = "unicorn_matches"; + @SerializedName(SERIALIZED_NAME_UNICORN_MATCHES) + @javax.annotation.Nonnull + private List unicornMatches = new ArrayList<>(); + + public static final String SERIALIZED_NAME_WINNING_OPP_SWITCH_DENIAL_PERCENTAGE_TELEOP = "winning_opp_switch_denial_percentage_teleop"; + @SerializedName(SERIALIZED_NAME_WINNING_OPP_SWITCH_DENIAL_PERCENTAGE_TELEOP) + @javax.annotation.Nonnull + private Float winningOppSwitchDenialPercentageTeleop; + + public static final String SERIALIZED_NAME_WINNING_OWN_SWITCH_OWNERSHIP_PERCENTAGE = "winning_own_switch_ownership_percentage"; + @SerializedName(SERIALIZED_NAME_WINNING_OWN_SWITCH_OWNERSHIP_PERCENTAGE) + @javax.annotation.Nonnull + private Float winningOwnSwitchOwnershipPercentage; + + public static final String SERIALIZED_NAME_WINNING_OWN_SWITCH_OWNERSHIP_PERCENTAGE_AUTO = "winning_own_switch_ownership_percentage_auto"; + @SerializedName(SERIALIZED_NAME_WINNING_OWN_SWITCH_OWNERSHIP_PERCENTAGE_AUTO) + @javax.annotation.Nonnull + private Float winningOwnSwitchOwnershipPercentageAuto; + + public static final String SERIALIZED_NAME_WINNING_OWN_SWITCH_OWNERSHIP_PERCENTAGE_TELEOP = "winning_own_switch_ownership_percentage_teleop"; + @SerializedName(SERIALIZED_NAME_WINNING_OWN_SWITCH_OWNERSHIP_PERCENTAGE_TELEOP) + @javax.annotation.Nonnull + private Float winningOwnSwitchOwnershipPercentageTeleop; + + public static final String SERIALIZED_NAME_WINNING_SCALE_OWNERSHIP_PERCENTAGE = "winning_scale_ownership_percentage"; + @SerializedName(SERIALIZED_NAME_WINNING_SCALE_OWNERSHIP_PERCENTAGE) + @javax.annotation.Nonnull + private Float winningScaleOwnershipPercentage; + + public static final String SERIALIZED_NAME_WINNING_SCALE_OWNERSHIP_PERCENTAGE_AUTO = "winning_scale_ownership_percentage_auto"; + @SerializedName(SERIALIZED_NAME_WINNING_SCALE_OWNERSHIP_PERCENTAGE_AUTO) + @javax.annotation.Nonnull + private Float winningScaleOwnershipPercentageAuto; + + public static final String SERIALIZED_NAME_WINNING_SCALE_OWNERSHIP_PERCENTAGE_TELEOP = "winning_scale_ownership_percentage_teleop"; + @SerializedName(SERIALIZED_NAME_WINNING_SCALE_OWNERSHIP_PERCENTAGE_TELEOP) + @javax.annotation.Nonnull + private Float winningScaleOwnershipPercentageTeleop; + + public EventInsights2018() { + } + + public EventInsights2018 autoQuestAchieved(@javax.annotation.Nonnull List autoQuestAchieved) { + + this.autoQuestAchieved = autoQuestAchieved; + return this; + } + + public EventInsights2018 addAutoQuestAchievedItem(Float autoQuestAchievedItem) { + if (this.autoQuestAchieved == null) { + this.autoQuestAchieved = new ArrayList<>(); + } + this.autoQuestAchieved.add(autoQuestAchievedItem); + return this; + } + + /** + * An array with three values, number of times auto quest was completed, number of opportunities to complete the auto quest, and percentage. + * @return autoQuestAchieved + */ + @javax.annotation.Nonnull + + public List getAutoQuestAchieved() { + return autoQuestAchieved; + } + + + public void setAutoQuestAchieved(@javax.annotation.Nonnull List autoQuestAchieved) { + this.autoQuestAchieved = autoQuestAchieved; + } + + public EventInsights2018 averageBoostPlayed(@javax.annotation.Nonnull Float averageBoostPlayed) { + + this.averageBoostPlayed = averageBoostPlayed; + return this; + } + + /** + * Average number of boost power up scored (out of 3). + * @return averageBoostPlayed + */ + @javax.annotation.Nonnull + + public Float getAverageBoostPlayed() { + return averageBoostPlayed; + } + + + public void setAverageBoostPlayed(@javax.annotation.Nonnull Float averageBoostPlayed) { + this.averageBoostPlayed = averageBoostPlayed; + } + + public EventInsights2018 averageEndgamePoints(@javax.annotation.Nonnull Float averageEndgamePoints) { + + this.averageEndgamePoints = averageEndgamePoints; + return this; + } + + /** + * Average endgame points. + * @return averageEndgamePoints + */ + @javax.annotation.Nonnull + + public Float getAverageEndgamePoints() { + return averageEndgamePoints; + } + + + public void setAverageEndgamePoints(@javax.annotation.Nonnull Float averageEndgamePoints) { + this.averageEndgamePoints = averageEndgamePoints; + } + + public EventInsights2018 averageForcePlayed(@javax.annotation.Nonnull Float averageForcePlayed) { + + this.averageForcePlayed = averageForcePlayed; + return this; + } + + /** + * Average number of force power up scored (out of 3). + * @return averageForcePlayed + */ + @javax.annotation.Nonnull + + public Float getAverageForcePlayed() { + return averageForcePlayed; + } + + + public void setAverageForcePlayed(@javax.annotation.Nonnull Float averageForcePlayed) { + this.averageForcePlayed = averageForcePlayed; + } + + public EventInsights2018 averageFoulScore(@javax.annotation.Nonnull Float averageFoulScore) { + + this.averageFoulScore = averageFoulScore; + return this; + } + + /** + * Average foul score. + * @return averageFoulScore + */ + @javax.annotation.Nonnull + + public Float getAverageFoulScore() { + return averageFoulScore; + } + + + public void setAverageFoulScore(@javax.annotation.Nonnull Float averageFoulScore) { + this.averageFoulScore = averageFoulScore; + } + + public EventInsights2018 averagePointsAuto(@javax.annotation.Nonnull Float averagePointsAuto) { + + this.averagePointsAuto = averagePointsAuto; + return this; + } + + /** + * Average points scored during auto. + * @return averagePointsAuto + */ + @javax.annotation.Nonnull + + public Float getAveragePointsAuto() { + return averagePointsAuto; + } + + + public void setAveragePointsAuto(@javax.annotation.Nonnull Float averagePointsAuto) { + this.averagePointsAuto = averagePointsAuto; + } + + public EventInsights2018 averagePointsTeleop(@javax.annotation.Nonnull Float averagePointsTeleop) { + + this.averagePointsTeleop = averagePointsTeleop; + return this; + } + + /** + * Average points scored during teleop. + * @return averagePointsTeleop + */ + @javax.annotation.Nonnull + + public Float getAveragePointsTeleop() { + return averagePointsTeleop; + } + + + public void setAveragePointsTeleop(@javax.annotation.Nonnull Float averagePointsTeleop) { + this.averagePointsTeleop = averagePointsTeleop; + } + + public EventInsights2018 averageRunPointsAuto(@javax.annotation.Nonnull Float averageRunPointsAuto) { + + this.averageRunPointsAuto = averageRunPointsAuto; + return this; + } + + /** + * Average mobility points scored during auto. + * @return averageRunPointsAuto + */ + @javax.annotation.Nonnull + + public Float getAverageRunPointsAuto() { + return averageRunPointsAuto; + } + + + public void setAverageRunPointsAuto(@javax.annotation.Nonnull Float averageRunPointsAuto) { + this.averageRunPointsAuto = averageRunPointsAuto; + } + + public EventInsights2018 averageScaleOwnershipPoints(@javax.annotation.Nonnull Float averageScaleOwnershipPoints) { + + this.averageScaleOwnershipPoints = averageScaleOwnershipPoints; + return this; + } + + /** + * Average scale ownership points scored. + * @return averageScaleOwnershipPoints + */ + @javax.annotation.Nonnull + + public Float getAverageScaleOwnershipPoints() { + return averageScaleOwnershipPoints; + } + + + public void setAverageScaleOwnershipPoints(@javax.annotation.Nonnull Float averageScaleOwnershipPoints) { + this.averageScaleOwnershipPoints = averageScaleOwnershipPoints; + } + + public EventInsights2018 averageScaleOwnershipPointsAuto(@javax.annotation.Nonnull Float averageScaleOwnershipPointsAuto) { + + this.averageScaleOwnershipPointsAuto = averageScaleOwnershipPointsAuto; + return this; + } + + /** + * Average scale ownership points scored during auto. + * @return averageScaleOwnershipPointsAuto + */ + @javax.annotation.Nonnull + + public Float getAverageScaleOwnershipPointsAuto() { + return averageScaleOwnershipPointsAuto; + } + + + public void setAverageScaleOwnershipPointsAuto(@javax.annotation.Nonnull Float averageScaleOwnershipPointsAuto) { + this.averageScaleOwnershipPointsAuto = averageScaleOwnershipPointsAuto; + } + + public EventInsights2018 averageScaleOwnershipPointsTeleop(@javax.annotation.Nonnull Float averageScaleOwnershipPointsTeleop) { + + this.averageScaleOwnershipPointsTeleop = averageScaleOwnershipPointsTeleop; + return this; + } + + /** + * Average scale ownership points scored during teleop. + * @return averageScaleOwnershipPointsTeleop + */ + @javax.annotation.Nonnull + + public Float getAverageScaleOwnershipPointsTeleop() { + return averageScaleOwnershipPointsTeleop; + } + + + public void setAverageScaleOwnershipPointsTeleop(@javax.annotation.Nonnull Float averageScaleOwnershipPointsTeleop) { + this.averageScaleOwnershipPointsTeleop = averageScaleOwnershipPointsTeleop; + } + + public EventInsights2018 averageScore(@javax.annotation.Nonnull Float averageScore) { + + this.averageScore = averageScore; + return this; + } + + /** + * Average score. + * @return averageScore + */ + @javax.annotation.Nonnull + + public Float getAverageScore() { + return averageScore; + } + + + public void setAverageScore(@javax.annotation.Nonnull Float averageScore) { + this.averageScore = averageScore; + } + + public EventInsights2018 averageSwitchOwnershipPoints(@javax.annotation.Nonnull Float averageSwitchOwnershipPoints) { + + this.averageSwitchOwnershipPoints = averageSwitchOwnershipPoints; + return this; + } + + /** + * Average switch ownership points scored. + * @return averageSwitchOwnershipPoints + */ + @javax.annotation.Nonnull + + public Float getAverageSwitchOwnershipPoints() { + return averageSwitchOwnershipPoints; + } + + + public void setAverageSwitchOwnershipPoints(@javax.annotation.Nonnull Float averageSwitchOwnershipPoints) { + this.averageSwitchOwnershipPoints = averageSwitchOwnershipPoints; + } + + public EventInsights2018 averageSwitchOwnershipPointsAuto(@javax.annotation.Nonnull Float averageSwitchOwnershipPointsAuto) { + + this.averageSwitchOwnershipPointsAuto = averageSwitchOwnershipPointsAuto; + return this; + } + + /** + * Average switch ownership points scored during auto. + * @return averageSwitchOwnershipPointsAuto + */ + @javax.annotation.Nonnull + + public Float getAverageSwitchOwnershipPointsAuto() { + return averageSwitchOwnershipPointsAuto; + } + + + public void setAverageSwitchOwnershipPointsAuto(@javax.annotation.Nonnull Float averageSwitchOwnershipPointsAuto) { + this.averageSwitchOwnershipPointsAuto = averageSwitchOwnershipPointsAuto; + } + + public EventInsights2018 averageSwitchOwnershipPointsTeleop(@javax.annotation.Nonnull Float averageSwitchOwnershipPointsTeleop) { + + this.averageSwitchOwnershipPointsTeleop = averageSwitchOwnershipPointsTeleop; + return this; + } + + /** + * Average switch ownership points scored during teleop. + * @return averageSwitchOwnershipPointsTeleop + */ + @javax.annotation.Nonnull + + public Float getAverageSwitchOwnershipPointsTeleop() { + return averageSwitchOwnershipPointsTeleop; + } + + + public void setAverageSwitchOwnershipPointsTeleop(@javax.annotation.Nonnull Float averageSwitchOwnershipPointsTeleop) { + this.averageSwitchOwnershipPointsTeleop = averageSwitchOwnershipPointsTeleop; + } + + public EventInsights2018 averageVaultPoints(@javax.annotation.Nonnull Float averageVaultPoints) { + + this.averageVaultPoints = averageVaultPoints; + return this; + } + + /** + * Average value points scored. + * @return averageVaultPoints + */ + @javax.annotation.Nonnull + + public Float getAverageVaultPoints() { + return averageVaultPoints; + } + + + public void setAverageVaultPoints(@javax.annotation.Nonnull Float averageVaultPoints) { + this.averageVaultPoints = averageVaultPoints; + } + + public EventInsights2018 averageWinMargin(@javax.annotation.Nonnull Float averageWinMargin) { + + this.averageWinMargin = averageWinMargin; + return this; + } + + /** + * Average margin of victory. + * @return averageWinMargin + */ + @javax.annotation.Nonnull + + public Float getAverageWinMargin() { + return averageWinMargin; + } + + + public void setAverageWinMargin(@javax.annotation.Nonnull Float averageWinMargin) { + this.averageWinMargin = averageWinMargin; + } + + public EventInsights2018 averageWinScore(@javax.annotation.Nonnull Float averageWinScore) { + + this.averageWinScore = averageWinScore; + return this; + } + + /** + * Average winning score. + * @return averageWinScore + */ + @javax.annotation.Nonnull + + public Float getAverageWinScore() { + return averageWinScore; + } + + + public void setAverageWinScore(@javax.annotation.Nonnull Float averageWinScore) { + this.averageWinScore = averageWinScore; + } + + public EventInsights2018 boostPlayedCounts(@javax.annotation.Nonnull List boostPlayedCounts) { + + this.boostPlayedCounts = boostPlayedCounts; + return this; + } + + public EventInsights2018 addBoostPlayedCountsItem(Float boostPlayedCountsItem) { + if (this.boostPlayedCounts == null) { + this.boostPlayedCounts = new ArrayList<>(); + } + this.boostPlayedCounts.add(boostPlayedCountsItem); + return this; + } + + /** + * An array with three values, number of times a boost power up was played, number of opportunities to play a boost power up, and percentage. + * @return boostPlayedCounts + */ + @javax.annotation.Nonnull + + public List getBoostPlayedCounts() { + return boostPlayedCounts; + } + + + public void setBoostPlayedCounts(@javax.annotation.Nonnull List boostPlayedCounts) { + this.boostPlayedCounts = boostPlayedCounts; + } + + public EventInsights2018 climbCounts(@javax.annotation.Nonnull List climbCounts) { + + this.climbCounts = climbCounts; + return this; + } + + public EventInsights2018 addClimbCountsItem(Float climbCountsItem) { + if (this.climbCounts == null) { + this.climbCounts = new ArrayList<>(); + } + this.climbCounts.add(climbCountsItem); + return this; + } + + /** + * An array with three values, number of times a climb occurred, number of opportunities to climb, and percentage. + * @return climbCounts + */ + @javax.annotation.Nonnull + + public List getClimbCounts() { + return climbCounts; + } + + + public void setClimbCounts(@javax.annotation.Nonnull List climbCounts) { + this.climbCounts = climbCounts; + } + + public EventInsights2018 faceTheBossAchieved(@javax.annotation.Nonnull List faceTheBossAchieved) { + + this.faceTheBossAchieved = faceTheBossAchieved; + return this; + } + + public EventInsights2018 addFaceTheBossAchievedItem(Float faceTheBossAchievedItem) { + if (this.faceTheBossAchieved == null) { + this.faceTheBossAchieved = new ArrayList<>(); + } + this.faceTheBossAchieved.add(faceTheBossAchievedItem); + return this; + } + + /** + * An array with three values, number of times an alliance faced the boss, number of opportunities to face the boss, and percentage. + * @return faceTheBossAchieved + */ + @javax.annotation.Nonnull + + public List getFaceTheBossAchieved() { + return faceTheBossAchieved; + } + + + public void setFaceTheBossAchieved(@javax.annotation.Nonnull List faceTheBossAchieved) { + this.faceTheBossAchieved = faceTheBossAchieved; + } + + public EventInsights2018 forcePlayedCounts(@javax.annotation.Nonnull List forcePlayedCounts) { + + this.forcePlayedCounts = forcePlayedCounts; + return this; + } + + public EventInsights2018 addForcePlayedCountsItem(Float forcePlayedCountsItem) { + if (this.forcePlayedCounts == null) { + this.forcePlayedCounts = new ArrayList<>(); + } + this.forcePlayedCounts.add(forcePlayedCountsItem); + return this; + } + + /** + * An array with three values, number of times a force power up was played, number of opportunities to play a force power up, and percentage. + * @return forcePlayedCounts + */ + @javax.annotation.Nonnull + + public List getForcePlayedCounts() { + return forcePlayedCounts; + } + + + public void setForcePlayedCounts(@javax.annotation.Nonnull List forcePlayedCounts) { + this.forcePlayedCounts = forcePlayedCounts; + } + + public EventInsights2018 highScore(@javax.annotation.Nonnull List highScore) { + + this.highScore = highScore; + return this; + } + + public EventInsights2018 addHighScoreItem(String highScoreItem) { + if (this.highScore == null) { + this.highScore = new ArrayList<>(); + } + this.highScore.add(highScoreItem); + return this; + } + + /** + * An array with three values, high score, match key from the match with the high score, and the name of the match + * @return highScore + */ + @javax.annotation.Nonnull + + public List getHighScore() { + return highScore; + } + + + public void setHighScore(@javax.annotation.Nonnull List highScore) { + this.highScore = highScore; + } + + public EventInsights2018 levitatePlayedCounts(@javax.annotation.Nonnull List levitatePlayedCounts) { + + this.levitatePlayedCounts = levitatePlayedCounts; + return this; + } + + public EventInsights2018 addLevitatePlayedCountsItem(Float levitatePlayedCountsItem) { + if (this.levitatePlayedCounts == null) { + this.levitatePlayedCounts = new ArrayList<>(); + } + this.levitatePlayedCounts.add(levitatePlayedCountsItem); + return this; + } + + /** + * An array with three values, number of times a levitate power up was played, number of opportunities to play a levitate power up, and percentage. + * @return levitatePlayedCounts + */ + @javax.annotation.Nonnull + + public List getLevitatePlayedCounts() { + return levitatePlayedCounts; + } + + + public void setLevitatePlayedCounts(@javax.annotation.Nonnull List levitatePlayedCounts) { + this.levitatePlayedCounts = levitatePlayedCounts; + } + + public EventInsights2018 runCountsAuto(@javax.annotation.Nonnull List runCountsAuto) { + + this.runCountsAuto = runCountsAuto; + return this; + } + + public EventInsights2018 addRunCountsAutoItem(Float runCountsAutoItem) { + if (this.runCountsAuto == null) { + this.runCountsAuto = new ArrayList<>(); + } + this.runCountsAuto.add(runCountsAutoItem); + return this; + } + + /** + * An array with three values, number of times a team scored mobility points in auto, number of opportunities to score mobility points in auto, and percentage. + * @return runCountsAuto + */ + @javax.annotation.Nonnull + + public List getRunCountsAuto() { + return runCountsAuto; + } + + + public void setRunCountsAuto(@javax.annotation.Nonnull List runCountsAuto) { + this.runCountsAuto = runCountsAuto; + } + + public EventInsights2018 scaleNeutralPercentage(@javax.annotation.Nonnull Float scaleNeutralPercentage) { + + this.scaleNeutralPercentage = scaleNeutralPercentage; + return this; + } + + /** + * Average scale neutral percentage. + * @return scaleNeutralPercentage + */ + @javax.annotation.Nonnull + + public Float getScaleNeutralPercentage() { + return scaleNeutralPercentage; + } + + + public void setScaleNeutralPercentage(@javax.annotation.Nonnull Float scaleNeutralPercentage) { + this.scaleNeutralPercentage = scaleNeutralPercentage; + } + + public EventInsights2018 scaleNeutralPercentageAuto(@javax.annotation.Nonnull Float scaleNeutralPercentageAuto) { + + this.scaleNeutralPercentageAuto = scaleNeutralPercentageAuto; + return this; + } + + /** + * Average scale neutral percentage during auto. + * @return scaleNeutralPercentageAuto + */ + @javax.annotation.Nonnull + + public Float getScaleNeutralPercentageAuto() { + return scaleNeutralPercentageAuto; + } + + + public void setScaleNeutralPercentageAuto(@javax.annotation.Nonnull Float scaleNeutralPercentageAuto) { + this.scaleNeutralPercentageAuto = scaleNeutralPercentageAuto; + } + + public EventInsights2018 scaleNeutralPercentageTeleop(@javax.annotation.Nonnull Float scaleNeutralPercentageTeleop) { + + this.scaleNeutralPercentageTeleop = scaleNeutralPercentageTeleop; + return this; + } + + /** + * Average scale neutral percentage during teleop. + * @return scaleNeutralPercentageTeleop + */ + @javax.annotation.Nonnull + + public Float getScaleNeutralPercentageTeleop() { + return scaleNeutralPercentageTeleop; + } + + + public void setScaleNeutralPercentageTeleop(@javax.annotation.Nonnull Float scaleNeutralPercentageTeleop) { + this.scaleNeutralPercentageTeleop = scaleNeutralPercentageTeleop; + } + + public EventInsights2018 switchOwnedCountsAuto(@javax.annotation.Nonnull List switchOwnedCountsAuto) { + + this.switchOwnedCountsAuto = switchOwnedCountsAuto; + return this; + } + + public EventInsights2018 addSwitchOwnedCountsAutoItem(Float switchOwnedCountsAutoItem) { + if (this.switchOwnedCountsAuto == null) { + this.switchOwnedCountsAuto = new ArrayList<>(); + } + this.switchOwnedCountsAuto.add(switchOwnedCountsAutoItem); + return this; + } + + /** + * An array with three values, number of times a switch was owned during auto, number of opportunities to own a switch during auto, and percentage. + * @return switchOwnedCountsAuto + */ + @javax.annotation.Nonnull + + public List getSwitchOwnedCountsAuto() { + return switchOwnedCountsAuto; + } + + + public void setSwitchOwnedCountsAuto(@javax.annotation.Nonnull List switchOwnedCountsAuto) { + this.switchOwnedCountsAuto = switchOwnedCountsAuto; + } + + public EventInsights2018 unicornMatches(@javax.annotation.Nonnull List unicornMatches) { + + this.unicornMatches = unicornMatches; + return this; + } + + public EventInsights2018 addUnicornMatchesItem(Float unicornMatchesItem) { + if (this.unicornMatches == null) { + this.unicornMatches = new ArrayList<>(); + } + this.unicornMatches.add(unicornMatchesItem); + return this; + } + + /** + * An array with three values, number of times a unicorn match (Win + Auto Quest + Face the Boss) occurred, number of opportunities to have a unicorn match, and percentage. + * @return unicornMatches + */ + @javax.annotation.Nonnull + + public List getUnicornMatches() { + return unicornMatches; + } + + + public void setUnicornMatches(@javax.annotation.Nonnull List unicornMatches) { + this.unicornMatches = unicornMatches; + } + + public EventInsights2018 winningOppSwitchDenialPercentageTeleop(@javax.annotation.Nonnull Float winningOppSwitchDenialPercentageTeleop) { + + this.winningOppSwitchDenialPercentageTeleop = winningOppSwitchDenialPercentageTeleop; + return this; + } + + /** + * Average opposing switch denail percentage for the winning alliance during teleop. + * @return winningOppSwitchDenialPercentageTeleop + */ + @javax.annotation.Nonnull + + public Float getWinningOppSwitchDenialPercentageTeleop() { + return winningOppSwitchDenialPercentageTeleop; + } + + + public void setWinningOppSwitchDenialPercentageTeleop(@javax.annotation.Nonnull Float winningOppSwitchDenialPercentageTeleop) { + this.winningOppSwitchDenialPercentageTeleop = winningOppSwitchDenialPercentageTeleop; + } + + public EventInsights2018 winningOwnSwitchOwnershipPercentage(@javax.annotation.Nonnull Float winningOwnSwitchOwnershipPercentage) { + + this.winningOwnSwitchOwnershipPercentage = winningOwnSwitchOwnershipPercentage; + return this; + } + + /** + * Average own switch ownership percentage for the winning alliance. + * @return winningOwnSwitchOwnershipPercentage + */ + @javax.annotation.Nonnull + + public Float getWinningOwnSwitchOwnershipPercentage() { + return winningOwnSwitchOwnershipPercentage; + } + + + public void setWinningOwnSwitchOwnershipPercentage(@javax.annotation.Nonnull Float winningOwnSwitchOwnershipPercentage) { + this.winningOwnSwitchOwnershipPercentage = winningOwnSwitchOwnershipPercentage; + } + + public EventInsights2018 winningOwnSwitchOwnershipPercentageAuto(@javax.annotation.Nonnull Float winningOwnSwitchOwnershipPercentageAuto) { + + this.winningOwnSwitchOwnershipPercentageAuto = winningOwnSwitchOwnershipPercentageAuto; + return this; + } + + /** + * Average own switch ownership percentage for the winning alliance during auto. + * @return winningOwnSwitchOwnershipPercentageAuto + */ + @javax.annotation.Nonnull + + public Float getWinningOwnSwitchOwnershipPercentageAuto() { + return winningOwnSwitchOwnershipPercentageAuto; + } + + + public void setWinningOwnSwitchOwnershipPercentageAuto(@javax.annotation.Nonnull Float winningOwnSwitchOwnershipPercentageAuto) { + this.winningOwnSwitchOwnershipPercentageAuto = winningOwnSwitchOwnershipPercentageAuto; + } + + public EventInsights2018 winningOwnSwitchOwnershipPercentageTeleop(@javax.annotation.Nonnull Float winningOwnSwitchOwnershipPercentageTeleop) { + + this.winningOwnSwitchOwnershipPercentageTeleop = winningOwnSwitchOwnershipPercentageTeleop; + return this; + } + + /** + * Average own switch ownership percentage for the winning alliance during teleop. + * @return winningOwnSwitchOwnershipPercentageTeleop + */ + @javax.annotation.Nonnull + + public Float getWinningOwnSwitchOwnershipPercentageTeleop() { + return winningOwnSwitchOwnershipPercentageTeleop; + } + + + public void setWinningOwnSwitchOwnershipPercentageTeleop(@javax.annotation.Nonnull Float winningOwnSwitchOwnershipPercentageTeleop) { + this.winningOwnSwitchOwnershipPercentageTeleop = winningOwnSwitchOwnershipPercentageTeleop; + } + + public EventInsights2018 winningScaleOwnershipPercentage(@javax.annotation.Nonnull Float winningScaleOwnershipPercentage) { + + this.winningScaleOwnershipPercentage = winningScaleOwnershipPercentage; + return this; + } + + /** + * Average scale ownership percentage for the winning alliance. + * @return winningScaleOwnershipPercentage + */ + @javax.annotation.Nonnull + + public Float getWinningScaleOwnershipPercentage() { + return winningScaleOwnershipPercentage; + } + + + public void setWinningScaleOwnershipPercentage(@javax.annotation.Nonnull Float winningScaleOwnershipPercentage) { + this.winningScaleOwnershipPercentage = winningScaleOwnershipPercentage; + } + + public EventInsights2018 winningScaleOwnershipPercentageAuto(@javax.annotation.Nonnull Float winningScaleOwnershipPercentageAuto) { + + this.winningScaleOwnershipPercentageAuto = winningScaleOwnershipPercentageAuto; + return this; + } + + /** + * Average scale ownership percentage for the winning alliance during auto. + * @return winningScaleOwnershipPercentageAuto + */ + @javax.annotation.Nonnull + + public Float getWinningScaleOwnershipPercentageAuto() { + return winningScaleOwnershipPercentageAuto; + } + + + public void setWinningScaleOwnershipPercentageAuto(@javax.annotation.Nonnull Float winningScaleOwnershipPercentageAuto) { + this.winningScaleOwnershipPercentageAuto = winningScaleOwnershipPercentageAuto; + } + + public EventInsights2018 winningScaleOwnershipPercentageTeleop(@javax.annotation.Nonnull Float winningScaleOwnershipPercentageTeleop) { + + this.winningScaleOwnershipPercentageTeleop = winningScaleOwnershipPercentageTeleop; + return this; + } + + /** + * Average scale ownership percentage for the winning alliance during teleop. + * @return winningScaleOwnershipPercentageTeleop + */ + @javax.annotation.Nonnull + + public Float getWinningScaleOwnershipPercentageTeleop() { + return winningScaleOwnershipPercentageTeleop; + } + + + public void setWinningScaleOwnershipPercentageTeleop(@javax.annotation.Nonnull Float winningScaleOwnershipPercentageTeleop) { + this.winningScaleOwnershipPercentageTeleop = winningScaleOwnershipPercentageTeleop; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventInsights2018 eventInsights2018 = (EventInsights2018) o; + return Objects.equals(this.autoQuestAchieved, eventInsights2018.autoQuestAchieved) && + Objects.equals(this.averageBoostPlayed, eventInsights2018.averageBoostPlayed) && + Objects.equals(this.averageEndgamePoints, eventInsights2018.averageEndgamePoints) && + Objects.equals(this.averageForcePlayed, eventInsights2018.averageForcePlayed) && + Objects.equals(this.averageFoulScore, eventInsights2018.averageFoulScore) && + Objects.equals(this.averagePointsAuto, eventInsights2018.averagePointsAuto) && + Objects.equals(this.averagePointsTeleop, eventInsights2018.averagePointsTeleop) && + Objects.equals(this.averageRunPointsAuto, eventInsights2018.averageRunPointsAuto) && + Objects.equals(this.averageScaleOwnershipPoints, eventInsights2018.averageScaleOwnershipPoints) && + Objects.equals(this.averageScaleOwnershipPointsAuto, eventInsights2018.averageScaleOwnershipPointsAuto) && + Objects.equals(this.averageScaleOwnershipPointsTeleop, eventInsights2018.averageScaleOwnershipPointsTeleop) && + Objects.equals(this.averageScore, eventInsights2018.averageScore) && + Objects.equals(this.averageSwitchOwnershipPoints, eventInsights2018.averageSwitchOwnershipPoints) && + Objects.equals(this.averageSwitchOwnershipPointsAuto, eventInsights2018.averageSwitchOwnershipPointsAuto) && + Objects.equals(this.averageSwitchOwnershipPointsTeleop, eventInsights2018.averageSwitchOwnershipPointsTeleop) && + Objects.equals(this.averageVaultPoints, eventInsights2018.averageVaultPoints) && + Objects.equals(this.averageWinMargin, eventInsights2018.averageWinMargin) && + Objects.equals(this.averageWinScore, eventInsights2018.averageWinScore) && + Objects.equals(this.boostPlayedCounts, eventInsights2018.boostPlayedCounts) && + Objects.equals(this.climbCounts, eventInsights2018.climbCounts) && + Objects.equals(this.faceTheBossAchieved, eventInsights2018.faceTheBossAchieved) && + Objects.equals(this.forcePlayedCounts, eventInsights2018.forcePlayedCounts) && + Objects.equals(this.highScore, eventInsights2018.highScore) && + Objects.equals(this.levitatePlayedCounts, eventInsights2018.levitatePlayedCounts) && + Objects.equals(this.runCountsAuto, eventInsights2018.runCountsAuto) && + Objects.equals(this.scaleNeutralPercentage, eventInsights2018.scaleNeutralPercentage) && + Objects.equals(this.scaleNeutralPercentageAuto, eventInsights2018.scaleNeutralPercentageAuto) && + Objects.equals(this.scaleNeutralPercentageTeleop, eventInsights2018.scaleNeutralPercentageTeleop) && + Objects.equals(this.switchOwnedCountsAuto, eventInsights2018.switchOwnedCountsAuto) && + Objects.equals(this.unicornMatches, eventInsights2018.unicornMatches) && + Objects.equals(this.winningOppSwitchDenialPercentageTeleop, eventInsights2018.winningOppSwitchDenialPercentageTeleop) && + Objects.equals(this.winningOwnSwitchOwnershipPercentage, eventInsights2018.winningOwnSwitchOwnershipPercentage) && + Objects.equals(this.winningOwnSwitchOwnershipPercentageAuto, eventInsights2018.winningOwnSwitchOwnershipPercentageAuto) && + Objects.equals(this.winningOwnSwitchOwnershipPercentageTeleop, eventInsights2018.winningOwnSwitchOwnershipPercentageTeleop) && + Objects.equals(this.winningScaleOwnershipPercentage, eventInsights2018.winningScaleOwnershipPercentage) && + Objects.equals(this.winningScaleOwnershipPercentageAuto, eventInsights2018.winningScaleOwnershipPercentageAuto) && + Objects.equals(this.winningScaleOwnershipPercentageTeleop, eventInsights2018.winningScaleOwnershipPercentageTeleop); + } + + @Override + public int hashCode() { + return Objects.hash(autoQuestAchieved, averageBoostPlayed, averageEndgamePoints, averageForcePlayed, averageFoulScore, averagePointsAuto, averagePointsTeleop, averageRunPointsAuto, averageScaleOwnershipPoints, averageScaleOwnershipPointsAuto, averageScaleOwnershipPointsTeleop, averageScore, averageSwitchOwnershipPoints, averageSwitchOwnershipPointsAuto, averageSwitchOwnershipPointsTeleop, averageVaultPoints, averageWinMargin, averageWinScore, boostPlayedCounts, climbCounts, faceTheBossAchieved, forcePlayedCounts, highScore, levitatePlayedCounts, runCountsAuto, scaleNeutralPercentage, scaleNeutralPercentageAuto, scaleNeutralPercentageTeleop, switchOwnedCountsAuto, unicornMatches, winningOppSwitchDenialPercentageTeleop, winningOwnSwitchOwnershipPercentage, winningOwnSwitchOwnershipPercentageAuto, winningOwnSwitchOwnershipPercentageTeleop, winningScaleOwnershipPercentage, winningScaleOwnershipPercentageAuto, winningScaleOwnershipPercentageTeleop); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventInsights2018 {\n"); + sb.append(" autoQuestAchieved: ").append(toIndentedString(autoQuestAchieved)).append("\n"); + sb.append(" averageBoostPlayed: ").append(toIndentedString(averageBoostPlayed)).append("\n"); + sb.append(" averageEndgamePoints: ").append(toIndentedString(averageEndgamePoints)).append("\n"); + sb.append(" averageForcePlayed: ").append(toIndentedString(averageForcePlayed)).append("\n"); + sb.append(" averageFoulScore: ").append(toIndentedString(averageFoulScore)).append("\n"); + sb.append(" averagePointsAuto: ").append(toIndentedString(averagePointsAuto)).append("\n"); + sb.append(" averagePointsTeleop: ").append(toIndentedString(averagePointsTeleop)).append("\n"); + sb.append(" averageRunPointsAuto: ").append(toIndentedString(averageRunPointsAuto)).append("\n"); + sb.append(" averageScaleOwnershipPoints: ").append(toIndentedString(averageScaleOwnershipPoints)).append("\n"); + sb.append(" averageScaleOwnershipPointsAuto: ").append(toIndentedString(averageScaleOwnershipPointsAuto)).append("\n"); + sb.append(" averageScaleOwnershipPointsTeleop: ").append(toIndentedString(averageScaleOwnershipPointsTeleop)).append("\n"); + sb.append(" averageScore: ").append(toIndentedString(averageScore)).append("\n"); + sb.append(" averageSwitchOwnershipPoints: ").append(toIndentedString(averageSwitchOwnershipPoints)).append("\n"); + sb.append(" averageSwitchOwnershipPointsAuto: ").append(toIndentedString(averageSwitchOwnershipPointsAuto)).append("\n"); + sb.append(" averageSwitchOwnershipPointsTeleop: ").append(toIndentedString(averageSwitchOwnershipPointsTeleop)).append("\n"); + sb.append(" averageVaultPoints: ").append(toIndentedString(averageVaultPoints)).append("\n"); + sb.append(" averageWinMargin: ").append(toIndentedString(averageWinMargin)).append("\n"); + sb.append(" averageWinScore: ").append(toIndentedString(averageWinScore)).append("\n"); + sb.append(" boostPlayedCounts: ").append(toIndentedString(boostPlayedCounts)).append("\n"); + sb.append(" climbCounts: ").append(toIndentedString(climbCounts)).append("\n"); + sb.append(" faceTheBossAchieved: ").append(toIndentedString(faceTheBossAchieved)).append("\n"); + sb.append(" forcePlayedCounts: ").append(toIndentedString(forcePlayedCounts)).append("\n"); + sb.append(" highScore: ").append(toIndentedString(highScore)).append("\n"); + sb.append(" levitatePlayedCounts: ").append(toIndentedString(levitatePlayedCounts)).append("\n"); + sb.append(" runCountsAuto: ").append(toIndentedString(runCountsAuto)).append("\n"); + sb.append(" scaleNeutralPercentage: ").append(toIndentedString(scaleNeutralPercentage)).append("\n"); + sb.append(" scaleNeutralPercentageAuto: ").append(toIndentedString(scaleNeutralPercentageAuto)).append("\n"); + sb.append(" scaleNeutralPercentageTeleop: ").append(toIndentedString(scaleNeutralPercentageTeleop)).append("\n"); + sb.append(" switchOwnedCountsAuto: ").append(toIndentedString(switchOwnedCountsAuto)).append("\n"); + sb.append(" unicornMatches: ").append(toIndentedString(unicornMatches)).append("\n"); + sb.append(" winningOppSwitchDenialPercentageTeleop: ").append(toIndentedString(winningOppSwitchDenialPercentageTeleop)).append("\n"); + sb.append(" winningOwnSwitchOwnershipPercentage: ").append(toIndentedString(winningOwnSwitchOwnershipPercentage)).append("\n"); + sb.append(" winningOwnSwitchOwnershipPercentageAuto: ").append(toIndentedString(winningOwnSwitchOwnershipPercentageAuto)).append("\n"); + sb.append(" winningOwnSwitchOwnershipPercentageTeleop: ").append(toIndentedString(winningOwnSwitchOwnershipPercentageTeleop)).append("\n"); + sb.append(" winningScaleOwnershipPercentage: ").append(toIndentedString(winningScaleOwnershipPercentage)).append("\n"); + sb.append(" winningScaleOwnershipPercentageAuto: ").append(toIndentedString(winningScaleOwnershipPercentageAuto)).append("\n"); + sb.append(" winningScaleOwnershipPercentageTeleop: ").append(toIndentedString(winningScaleOwnershipPercentageTeleop)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/EventOPRs.java b/tba-api/src/main/java/thebluealliance/api/model/EventOPRs.java new file mode 100644 index 000000000..8c365f036 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/EventOPRs.java @@ -0,0 +1,179 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; + +/** + * OPR, DPR, and CCWM for teams at the event. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class EventOPRs { + public static final String SERIALIZED_NAME_OPRS = "oprs"; + @SerializedName(SERIALIZED_NAME_OPRS) + @javax.annotation.Nullable + private Map oprs = new HashMap<>(); + + public static final String SERIALIZED_NAME_DPRS = "dprs"; + @SerializedName(SERIALIZED_NAME_DPRS) + @javax.annotation.Nullable + private Map dprs = new HashMap<>(); + + public static final String SERIALIZED_NAME_CCWMS = "ccwms"; + @SerializedName(SERIALIZED_NAME_CCWMS) + @javax.annotation.Nullable + private Map ccwms = new HashMap<>(); + + public EventOPRs() { + } + + public EventOPRs oprs(@javax.annotation.Nullable Map oprs) { + + this.oprs = oprs; + return this; + } + + public EventOPRs putOprsItem(String key, Float oprsItem) { + if (this.oprs == null) { + this.oprs = new HashMap<>(); + } + this.oprs.put(key, oprsItem); + return this; + } + + /** + * A key-value pair with team key (eg `frc254`) as key and OPR as value. + * @return oprs + */ + @javax.annotation.Nullable + + public Map getOprs() { + return oprs; + } + + + public void setOprs(@javax.annotation.Nullable Map oprs) { + this.oprs = oprs; + } + + public EventOPRs dprs(@javax.annotation.Nullable Map dprs) { + + this.dprs = dprs; + return this; + } + + public EventOPRs putDprsItem(String key, Float dprsItem) { + if (this.dprs == null) { + this.dprs = new HashMap<>(); + } + this.dprs.put(key, dprsItem); + return this; + } + + /** + * A key-value pair with team key (eg `frc254`) as key and DPR as value. + * @return dprs + */ + @javax.annotation.Nullable + + public Map getDprs() { + return dprs; + } + + + public void setDprs(@javax.annotation.Nullable Map dprs) { + this.dprs = dprs; + } + + public EventOPRs ccwms(@javax.annotation.Nullable Map ccwms) { + + this.ccwms = ccwms; + return this; + } + + public EventOPRs putCcwmsItem(String key, Float ccwmsItem) { + if (this.ccwms == null) { + this.ccwms = new HashMap<>(); + } + this.ccwms.put(key, ccwmsItem); + return this; + } + + /** + * A key-value pair with team key (eg `frc254`) as key and CCWM as value. + * @return ccwms + */ + @javax.annotation.Nullable + + public Map getCcwms() { + return ccwms; + } + + + public void setCcwms(@javax.annotation.Nullable Map ccwms) { + this.ccwms = ccwms; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventOPRs eventOPRs = (EventOPRs) o; + return Objects.equals(this.oprs, eventOPRs.oprs) && + Objects.equals(this.dprs, eventOPRs.dprs) && + Objects.equals(this.ccwms, eventOPRs.ccwms); + } + + @Override + public int hashCode() { + return Objects.hash(oprs, dprs, ccwms); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventOPRs {\n"); + sb.append(" oprs: ").append(toIndentedString(oprs)).append("\n"); + sb.append(" dprs: ").append(toIndentedString(dprs)).append("\n"); + sb.append(" ccwms: ").append(toIndentedString(ccwms)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/EventRanking.java b/tba-api/src/main/java/thebluealliance/api/model/EventRanking.java new file mode 100644 index 000000000..94145b7a0 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/EventRanking.java @@ -0,0 +1,183 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import thebluealliance.api.model.EventRankingExtraStatsInfoInner; +import thebluealliance.api.model.EventRankingRankingsInner; +import thebluealliance.api.model.EventRankingSortOrderInfoInner; + +/** + * EventRanking + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class EventRanking { + public static final String SERIALIZED_NAME_RANKINGS = "rankings"; + @SerializedName(SERIALIZED_NAME_RANKINGS) + @javax.annotation.Nonnull + private List rankings = new ArrayList<>(); + + public static final String SERIALIZED_NAME_EXTRA_STATS_INFO = "extra_stats_info"; + @SerializedName(SERIALIZED_NAME_EXTRA_STATS_INFO) + @javax.annotation.Nonnull + private List extraStatsInfo = new ArrayList<>(); + + public static final String SERIALIZED_NAME_SORT_ORDER_INFO = "sort_order_info"; + @SerializedName(SERIALIZED_NAME_SORT_ORDER_INFO) + @javax.annotation.Nonnull + private List sortOrderInfo = new ArrayList<>(); + + public EventRanking() { + } + + public EventRanking rankings(@javax.annotation.Nonnull List rankings) { + + this.rankings = rankings; + return this; + } + + public EventRanking addRankingsItem(EventRankingRankingsInner rankingsItem) { + if (this.rankings == null) { + this.rankings = new ArrayList<>(); + } + this.rankings.add(rankingsItem); + return this; + } + + /** + * List of rankings at the event. + * @return rankings + */ + @javax.annotation.Nonnull + + public List getRankings() { + return rankings; + } + + + public void setRankings(@javax.annotation.Nonnull List rankings) { + this.rankings = rankings; + } + + public EventRanking extraStatsInfo(@javax.annotation.Nonnull List extraStatsInfo) { + + this.extraStatsInfo = extraStatsInfo; + return this; + } + + public EventRanking addExtraStatsInfoItem(EventRankingExtraStatsInfoInner extraStatsInfoItem) { + if (this.extraStatsInfo == null) { + this.extraStatsInfo = new ArrayList<>(); + } + this.extraStatsInfo.add(extraStatsInfoItem); + return this; + } + + /** + * List of special TBA-generated values provided in the `extra_stats` array for each item. + * @return extraStatsInfo + */ + @javax.annotation.Nonnull + + public List getExtraStatsInfo() { + return extraStatsInfo; + } + + + public void setExtraStatsInfo(@javax.annotation.Nonnull List extraStatsInfo) { + this.extraStatsInfo = extraStatsInfo; + } + + public EventRanking sortOrderInfo(@javax.annotation.Nonnull List sortOrderInfo) { + + this.sortOrderInfo = sortOrderInfo; + return this; + } + + public EventRanking addSortOrderInfoItem(EventRankingSortOrderInfoInner sortOrderInfoItem) { + if (this.sortOrderInfo == null) { + this.sortOrderInfo = new ArrayList<>(); + } + this.sortOrderInfo.add(sortOrderInfoItem); + return this; + } + + /** + * List of year-specific values provided in the `sort_orders` array for each team. + * @return sortOrderInfo + */ + @javax.annotation.Nonnull + + public List getSortOrderInfo() { + return sortOrderInfo; + } + + + public void setSortOrderInfo(@javax.annotation.Nonnull List sortOrderInfo) { + this.sortOrderInfo = sortOrderInfo; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventRanking eventRanking = (EventRanking) o; + return Objects.equals(this.rankings, eventRanking.rankings) && + Objects.equals(this.extraStatsInfo, eventRanking.extraStatsInfo) && + Objects.equals(this.sortOrderInfo, eventRanking.sortOrderInfo); + } + + @Override + public int hashCode() { + return Objects.hash(rankings, extraStatsInfo, sortOrderInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventRanking {\n"); + sb.append(" rankings: ").append(toIndentedString(rankings)).append("\n"); + sb.append(" extraStatsInfo: ").append(toIndentedString(extraStatsInfo)).append("\n"); + sb.append(" sortOrderInfo: ").append(toIndentedString(sortOrderInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/EventRankingExtraStatsInfoInner.java b/tba-api/src/main/java/thebluealliance/api/model/EventRankingExtraStatsInfoInner.java new file mode 100644 index 000000000..13cffba53 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/EventRankingExtraStatsInfoInner.java @@ -0,0 +1,126 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.math.BigDecimal; + +/** + * EventRankingExtraStatsInfoInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class EventRankingExtraStatsInfoInner { + public static final String SERIALIZED_NAME_PRECISION = "precision"; + @SerializedName(SERIALIZED_NAME_PRECISION) + @javax.annotation.Nonnull + private BigDecimal precision; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull + private String name; + + public EventRankingExtraStatsInfoInner() { + } + + public EventRankingExtraStatsInfoInner precision(@javax.annotation.Nonnull BigDecimal precision) { + + this.precision = precision; + return this; + } + + /** + * Integer expressing the number of digits of precision in the number provided in `sort_orders`. + * @return precision + */ + @javax.annotation.Nonnull + + public BigDecimal getPrecision() { + return precision; + } + + + public void setPrecision(@javax.annotation.Nonnull BigDecimal precision) { + this.precision = precision; + } + + public EventRankingExtraStatsInfoInner name(@javax.annotation.Nonnull String name) { + + this.name = name; + return this; + } + + /** + * Name of the field used in the `extra_stats` array. + * @return name + */ + @javax.annotation.Nonnull + + public String getName() { + return name; + } + + + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventRankingExtraStatsInfoInner eventRankingExtraStatsInfoInner = (EventRankingExtraStatsInfoInner) o; + return Objects.equals(this.precision, eventRankingExtraStatsInfoInner.precision) && + Objects.equals(this.name, eventRankingExtraStatsInfoInner.name); + } + + @Override + public int hashCode() { + return Objects.hash(precision, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventRankingExtraStatsInfoInner {\n"); + sb.append(" precision: ").append(toIndentedString(precision)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/EventRankingRankingsInner.java b/tba-api/src/main/java/thebluealliance/api/model/EventRankingRankingsInner.java new file mode 100644 index 000000000..8f2fd3c30 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/EventRankingRankingsInner.java @@ -0,0 +1,314 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import thebluealliance.api.model.WLTRecord; + +/** + * EventRankingRankingsInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class EventRankingRankingsInner { + public static final String SERIALIZED_NAME_MATCHES_PLAYED = "matches_played"; + @SerializedName(SERIALIZED_NAME_MATCHES_PLAYED) + @javax.annotation.Nonnull + private Integer matchesPlayed; + + public static final String SERIALIZED_NAME_QUAL_AVERAGE = "qual_average"; + @SerializedName(SERIALIZED_NAME_QUAL_AVERAGE) + @javax.annotation.Nullable + private Integer qualAverage; + + public static final String SERIALIZED_NAME_EXTRA_STATS = "extra_stats"; + @SerializedName(SERIALIZED_NAME_EXTRA_STATS) + @javax.annotation.Nonnull + private List extraStats = new ArrayList<>(); + + public static final String SERIALIZED_NAME_SORT_ORDERS = "sort_orders"; + @SerializedName(SERIALIZED_NAME_SORT_ORDERS) + @javax.annotation.Nullable + private List sortOrders; + + public static final String SERIALIZED_NAME_RECORD = "record"; + @SerializedName(SERIALIZED_NAME_RECORD) + @javax.annotation.Nullable + private WLTRecord record; + + public static final String SERIALIZED_NAME_RANK = "rank"; + @SerializedName(SERIALIZED_NAME_RANK) + @javax.annotation.Nonnull + private Integer rank; + + public static final String SERIALIZED_NAME_DQ = "dq"; + @SerializedName(SERIALIZED_NAME_DQ) + @javax.annotation.Nonnull + private Integer dq; + + public static final String SERIALIZED_NAME_TEAM_KEY = "team_key"; + @SerializedName(SERIALIZED_NAME_TEAM_KEY) + @javax.annotation.Nonnull + private String teamKey; + + public EventRankingRankingsInner() { + } + + public EventRankingRankingsInner matchesPlayed(@javax.annotation.Nonnull Integer matchesPlayed) { + + this.matchesPlayed = matchesPlayed; + return this; + } + + /** + * Number of matches played by this team. + * @return matchesPlayed + */ + @javax.annotation.Nonnull + + public Integer getMatchesPlayed() { + return matchesPlayed; + } + + + public void setMatchesPlayed(@javax.annotation.Nonnull Integer matchesPlayed) { + this.matchesPlayed = matchesPlayed; + } + + public EventRankingRankingsInner qualAverage(@javax.annotation.Nullable Integer qualAverage) { + + this.qualAverage = qualAverage; + return this; + } + + /** + * The average match score during qualifications. Year specific. May be null if not relevant for a given year. + * @return qualAverage + */ + @javax.annotation.Nullable + + public Integer getQualAverage() { + return qualAverage; + } + + + public void setQualAverage(@javax.annotation.Nullable Integer qualAverage) { + this.qualAverage = qualAverage; + } + + public EventRankingRankingsInner extraStats(@javax.annotation.Nonnull List extraStats) { + + this.extraStats = extraStats; + return this; + } + + public EventRankingRankingsInner addExtraStatsItem(BigDecimal extraStatsItem) { + if (this.extraStats == null) { + this.extraStats = new ArrayList<>(); + } + this.extraStats.add(extraStatsItem); + return this; + } + + /** + * Additional special data on the team's performance calculated by TBA. + * @return extraStats + */ + @javax.annotation.Nonnull + + public List getExtraStats() { + return extraStats; + } + + + public void setExtraStats(@javax.annotation.Nonnull List extraStats) { + this.extraStats = extraStats; + } + + public EventRankingRankingsInner sortOrders(@javax.annotation.Nullable List sortOrders) { + + this.sortOrders = sortOrders; + return this; + } + + public EventRankingRankingsInner addSortOrdersItem(BigDecimal sortOrdersItem) { + if (this.sortOrders == null) { + this.sortOrders = new ArrayList<>(); + } + this.sortOrders.add(sortOrdersItem); + return this; + } + + /** + * Additional year-specific information, may be null. See parent `sort_order_info` for details. + * @return sortOrders + */ + @javax.annotation.Nullable + + public List getSortOrders() { + return sortOrders; + } + + + public void setSortOrders(@javax.annotation.Nullable List sortOrders) { + this.sortOrders = sortOrders; + } + + public EventRankingRankingsInner record(@javax.annotation.Nullable WLTRecord record) { + + this.record = record; + return this; + } + + /** + * Get record + * @return record + */ + @javax.annotation.Nullable + + public WLTRecord getRecord() { + return record; + } + + + public void setRecord(@javax.annotation.Nullable WLTRecord record) { + this.record = record; + } + + public EventRankingRankingsInner rank(@javax.annotation.Nonnull Integer rank) { + + this.rank = rank; + return this; + } + + /** + * The team's rank at the event as provided by FIRST. + * @return rank + */ + @javax.annotation.Nonnull + + public Integer getRank() { + return rank; + } + + + public void setRank(@javax.annotation.Nonnull Integer rank) { + this.rank = rank; + } + + public EventRankingRankingsInner dq(@javax.annotation.Nonnull Integer dq) { + + this.dq = dq; + return this; + } + + /** + * Number of times disqualified. + * @return dq + */ + @javax.annotation.Nonnull + + public Integer getDq() { + return dq; + } + + + public void setDq(@javax.annotation.Nonnull Integer dq) { + this.dq = dq; + } + + public EventRankingRankingsInner teamKey(@javax.annotation.Nonnull String teamKey) { + + this.teamKey = teamKey; + return this; + } + + /** + * The team with this rank. + * @return teamKey + */ + @javax.annotation.Nonnull + + public String getTeamKey() { + return teamKey; + } + + + public void setTeamKey(@javax.annotation.Nonnull String teamKey) { + this.teamKey = teamKey; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventRankingRankingsInner eventRankingRankingsInner = (EventRankingRankingsInner) o; + return Objects.equals(this.matchesPlayed, eventRankingRankingsInner.matchesPlayed) && + Objects.equals(this.qualAverage, eventRankingRankingsInner.qualAverage) && + Objects.equals(this.extraStats, eventRankingRankingsInner.extraStats) && + Objects.equals(this.sortOrders, eventRankingRankingsInner.sortOrders) && + Objects.equals(this.record, eventRankingRankingsInner.record) && + Objects.equals(this.rank, eventRankingRankingsInner.rank) && + Objects.equals(this.dq, eventRankingRankingsInner.dq) && + Objects.equals(this.teamKey, eventRankingRankingsInner.teamKey); + } + + @Override + public int hashCode() { + return Objects.hash(matchesPlayed, qualAverage, extraStats, sortOrders, record, rank, dq, teamKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventRankingRankingsInner {\n"); + sb.append(" matchesPlayed: ").append(toIndentedString(matchesPlayed)).append("\n"); + sb.append(" qualAverage: ").append(toIndentedString(qualAverage)).append("\n"); + sb.append(" extraStats: ").append(toIndentedString(extraStats)).append("\n"); + sb.append(" sortOrders: ").append(toIndentedString(sortOrders)).append("\n"); + sb.append(" record: ").append(toIndentedString(record)).append("\n"); + sb.append(" rank: ").append(toIndentedString(rank)).append("\n"); + sb.append(" dq: ").append(toIndentedString(dq)).append("\n"); + sb.append(" teamKey: ").append(toIndentedString(teamKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/EventRankingSortOrderInfoInner.java b/tba-api/src/main/java/thebluealliance/api/model/EventRankingSortOrderInfoInner.java new file mode 100644 index 000000000..b68e0d29f --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/EventRankingSortOrderInfoInner.java @@ -0,0 +1,125 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * EventRankingSortOrderInfoInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class EventRankingSortOrderInfoInner { + public static final String SERIALIZED_NAME_PRECISION = "precision"; + @SerializedName(SERIALIZED_NAME_PRECISION) + @javax.annotation.Nonnull + private Integer precision; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull + private String name; + + public EventRankingSortOrderInfoInner() { + } + + public EventRankingSortOrderInfoInner precision(@javax.annotation.Nonnull Integer precision) { + + this.precision = precision; + return this; + } + + /** + * Integer expressing the number of digits of precision in the number provided in `sort_orders`. + * @return precision + */ + @javax.annotation.Nonnull + + public Integer getPrecision() { + return precision; + } + + + public void setPrecision(@javax.annotation.Nonnull Integer precision) { + this.precision = precision; + } + + public EventRankingSortOrderInfoInner name(@javax.annotation.Nonnull String name) { + + this.name = name; + return this; + } + + /** + * Name of the field used in the `sort_order` array. + * @return name + */ + @javax.annotation.Nonnull + + public String getName() { + return name; + } + + + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventRankingSortOrderInfoInner eventRankingSortOrderInfoInner = (EventRankingSortOrderInfoInner) o; + return Objects.equals(this.precision, eventRankingSortOrderInfoInner.precision) && + Objects.equals(this.name, eventRankingSortOrderInfoInner.name); + } + + @Override + public int hashCode() { + return Objects.hash(precision, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventRankingSortOrderInfoInner {\n"); + sb.append(" precision: ").append(toIndentedString(precision)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/EventSimple.java b/tba-api/src/main/java/thebluealliance/api/model/EventSimple.java new file mode 100644 index 000000000..ed73c9c30 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/EventSimple.java @@ -0,0 +1,379 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.time.LocalDate; +import thebluealliance.api.model.DistrictList; + +/** + * EventSimple + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class EventSimple { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @javax.annotation.Nonnull + private String key; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_EVENT_CODE = "event_code"; + @SerializedName(SERIALIZED_NAME_EVENT_CODE) + @javax.annotation.Nonnull + private String eventCode; + + public static final String SERIALIZED_NAME_EVENT_TYPE = "event_type"; + @SerializedName(SERIALIZED_NAME_EVENT_TYPE) + @javax.annotation.Nonnull + private Integer eventType; + + public static final String SERIALIZED_NAME_DISTRICT = "district"; + @SerializedName(SERIALIZED_NAME_DISTRICT) + @javax.annotation.Nullable + private DistrictList district; + + public static final String SERIALIZED_NAME_CITY = "city"; + @SerializedName(SERIALIZED_NAME_CITY) + @javax.annotation.Nullable + private String city; + + public static final String SERIALIZED_NAME_STATE_PROV = "state_prov"; + @SerializedName(SERIALIZED_NAME_STATE_PROV) + @javax.annotation.Nullable + private String stateProv; + + public static final String SERIALIZED_NAME_COUNTRY = "country"; + @SerializedName(SERIALIZED_NAME_COUNTRY) + @javax.annotation.Nullable + private String country; + + public static final String SERIALIZED_NAME_START_DATE = "start_date"; + @SerializedName(SERIALIZED_NAME_START_DATE) + @javax.annotation.Nonnull + private LocalDate startDate; + + public static final String SERIALIZED_NAME_END_DATE = "end_date"; + @SerializedName(SERIALIZED_NAME_END_DATE) + @javax.annotation.Nonnull + private LocalDate endDate; + + public static final String SERIALIZED_NAME_YEAR = "year"; + @SerializedName(SERIALIZED_NAME_YEAR) + @javax.annotation.Nonnull + private Integer year; + + public EventSimple() { + } + + public EventSimple key(@javax.annotation.Nonnull String key) { + + this.key = key; + return this; + } + + /** + * TBA event key with the format yyyy[EVENT_CODE], where yyyy is the year, and EVENT_CODE is the event code of the event. + * @return key + */ + @javax.annotation.Nonnull + + public String getKey() { + return key; + } + + + public void setKey(@javax.annotation.Nonnull String key) { + this.key = key; + } + + public EventSimple name(@javax.annotation.Nonnull String name) { + + this.name = name; + return this; + } + + /** + * Official name of event on record either provided by FIRST or organizers of offseason event. + * @return name + */ + @javax.annotation.Nonnull + + public String getName() { + return name; + } + + + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; + } + + public EventSimple eventCode(@javax.annotation.Nonnull String eventCode) { + + this.eventCode = eventCode; + return this; + } + + /** + * Event short code, as provided by FIRST. + * @return eventCode + */ + @javax.annotation.Nonnull + + public String getEventCode() { + return eventCode; + } + + + public void setEventCode(@javax.annotation.Nonnull String eventCode) { + this.eventCode = eventCode; + } + + public EventSimple eventType(@javax.annotation.Nonnull Integer eventType) { + + this.eventType = eventType; + return this; + } + + /** + * Event Type, as defined here: https://github.com/the-blue-alliance/the-blue-alliance/blob/master/consts/event_type.py#L2 + * @return eventType + */ + @javax.annotation.Nonnull + + public Integer getEventType() { + return eventType; + } + + + public void setEventType(@javax.annotation.Nonnull Integer eventType) { + this.eventType = eventType; + } + + public EventSimple district(@javax.annotation.Nullable DistrictList district) { + + this.district = district; + return this; + } + + /** + * Get district + * @return district + */ + @javax.annotation.Nullable + + public DistrictList getDistrict() { + return district; + } + + + public void setDistrict(@javax.annotation.Nullable DistrictList district) { + this.district = district; + } + + public EventSimple city(@javax.annotation.Nullable String city) { + + this.city = city; + return this; + } + + /** + * City, town, village, etc. the event is located in. + * @return city + */ + @javax.annotation.Nullable + + public String getCity() { + return city; + } + + + public void setCity(@javax.annotation.Nullable String city) { + this.city = city; + } + + public EventSimple stateProv(@javax.annotation.Nullable String stateProv) { + + this.stateProv = stateProv; + return this; + } + + /** + * State or Province the event is located in. + * @return stateProv + */ + @javax.annotation.Nullable + + public String getStateProv() { + return stateProv; + } + + + public void setStateProv(@javax.annotation.Nullable String stateProv) { + this.stateProv = stateProv; + } + + public EventSimple country(@javax.annotation.Nullable String country) { + + this.country = country; + return this; + } + + /** + * Country the event is located in. + * @return country + */ + @javax.annotation.Nullable + + public String getCountry() { + return country; + } + + + public void setCountry(@javax.annotation.Nullable String country) { + this.country = country; + } + + public EventSimple startDate(@javax.annotation.Nonnull LocalDate startDate) { + + this.startDate = startDate; + return this; + } + + /** + * Event start date in `yyyy-mm-dd` format. + * @return startDate + */ + @javax.annotation.Nonnull + + public LocalDate getStartDate() { + return startDate; + } + + + public void setStartDate(@javax.annotation.Nonnull LocalDate startDate) { + this.startDate = startDate; + } + + public EventSimple endDate(@javax.annotation.Nonnull LocalDate endDate) { + + this.endDate = endDate; + return this; + } + + /** + * Event end date in `yyyy-mm-dd` format. + * @return endDate + */ + @javax.annotation.Nonnull + + public LocalDate getEndDate() { + return endDate; + } + + + public void setEndDate(@javax.annotation.Nonnull LocalDate endDate) { + this.endDate = endDate; + } + + public EventSimple year(@javax.annotation.Nonnull Integer year) { + + this.year = year; + return this; + } + + /** + * Year the event data is for. + * @return year + */ + @javax.annotation.Nonnull + + public Integer getYear() { + return year; + } + + + public void setYear(@javax.annotation.Nonnull Integer year) { + this.year = year; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EventSimple eventSimple = (EventSimple) o; + return Objects.equals(this.key, eventSimple.key) && + Objects.equals(this.name, eventSimple.name) && + Objects.equals(this.eventCode, eventSimple.eventCode) && + Objects.equals(this.eventType, eventSimple.eventType) && + Objects.equals(this.district, eventSimple.district) && + Objects.equals(this.city, eventSimple.city) && + Objects.equals(this.stateProv, eventSimple.stateProv) && + Objects.equals(this.country, eventSimple.country) && + Objects.equals(this.startDate, eventSimple.startDate) && + Objects.equals(this.endDate, eventSimple.endDate) && + Objects.equals(this.year, eventSimple.year); + } + + @Override + public int hashCode() { + return Objects.hash(key, name, eventCode, eventType, district, city, stateProv, country, startDate, endDate, year); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EventSimple {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" eventCode: ").append(toIndentedString(eventCode)).append("\n"); + sb.append(" eventType: ").append(toIndentedString(eventType)).append("\n"); + sb.append(" district: ").append(toIndentedString(district)).append("\n"); + sb.append(" city: ").append(toIndentedString(city)).append("\n"); + sb.append(" stateProv: ").append(toIndentedString(stateProv)).append("\n"); + sb.append(" country: ").append(toIndentedString(country)).append("\n"); + sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); + sb.append(" endDate: ").append(toIndentedString(endDate)).append("\n"); + sb.append(" year: ").append(toIndentedString(year)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/GetStatus401Response.java b/tba-api/src/main/java/thebluealliance/api/model/GetStatus401Response.java new file mode 100644 index 000000000..f6fe543e7 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/GetStatus401Response.java @@ -0,0 +1,97 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * GetStatus401Response + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class GetStatus401Response { + public static final String SERIALIZED_NAME_ERROR = "Error"; + @SerializedName(SERIALIZED_NAME_ERROR) + @javax.annotation.Nonnull + private String error; + + public GetStatus401Response() { + } + + public GetStatus401Response error(@javax.annotation.Nonnull String error) { + + this.error = error; + return this; + } + + /** + * Authorization error description. + * @return error + */ + @javax.annotation.Nonnull + + public String getError() { + return error; + } + + + public void setError(@javax.annotation.Nonnull String error) { + this.error = error; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetStatus401Response getStatus401Response = (GetStatus401Response) o; + return Objects.equals(this.error, getStatus401Response.error); + } + + @Override + public int hashCode() { + return Objects.hash(error); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetStatus401Response {\n"); + sb.append(" error: ").append(toIndentedString(error)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/GetTeamEventsStatusesByYear200ResponseValue.java b/tba-api/src/main/java/thebluealliance/api/model/GetTeamEventsStatusesByYear200ResponseValue.java new file mode 100644 index 000000000..b5ec08d1b --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/GetTeamEventsStatusesByYear200ResponseValue.java @@ -0,0 +1,309 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; +import thebluealliance.api.model.TeamEventStatus; +import thebluealliance.api.model.TeamEventStatusAlliance; +import thebluealliance.api.model.TeamEventStatusPlayoff; +import thebluealliance.api.model.TeamEventStatusRank; + +/** + * GetTeamEventsStatusesByYear200ResponseValue + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class GetTeamEventsStatusesByYear200ResponseValue { + public static final String SERIALIZED_NAME_QUAL = "qual"; + @SerializedName(SERIALIZED_NAME_QUAL) + @javax.annotation.Nullable + private TeamEventStatusRank qual; + + public static final String SERIALIZED_NAME_ALLIANCE = "alliance"; + @SerializedName(SERIALIZED_NAME_ALLIANCE) + @javax.annotation.Nullable + private TeamEventStatusAlliance alliance; + + public static final String SERIALIZED_NAME_PLAYOFF = "playoff"; + @SerializedName(SERIALIZED_NAME_PLAYOFF) + @javax.annotation.Nullable + private TeamEventStatusPlayoff playoff; + + public static final String SERIALIZED_NAME_ALLIANCE_STATUS_STR = "alliance_status_str"; + @SerializedName(SERIALIZED_NAME_ALLIANCE_STATUS_STR) + @javax.annotation.Nullable + private String allianceStatusStr; + + public static final String SERIALIZED_NAME_PLAYOFF_STATUS_STR = "playoff_status_str"; + @SerializedName(SERIALIZED_NAME_PLAYOFF_STATUS_STR) + @javax.annotation.Nullable + private String playoffStatusStr; + + public static final String SERIALIZED_NAME_OVERALL_STATUS_STR = "overall_status_str"; + @SerializedName(SERIALIZED_NAME_OVERALL_STATUS_STR) + @javax.annotation.Nullable + private String overallStatusStr; + + public static final String SERIALIZED_NAME_NEXT_MATCH_KEY = "next_match_key"; + @SerializedName(SERIALIZED_NAME_NEXT_MATCH_KEY) + @javax.annotation.Nullable + private String nextMatchKey; + + public static final String SERIALIZED_NAME_LAST_MATCH_KEY = "last_match_key"; + @SerializedName(SERIALIZED_NAME_LAST_MATCH_KEY) + @javax.annotation.Nullable + private String lastMatchKey; + + public GetTeamEventsStatusesByYear200ResponseValue() { + } + + public GetTeamEventsStatusesByYear200ResponseValue qual(@javax.annotation.Nullable TeamEventStatusRank qual) { + + this.qual = qual; + return this; + } + + /** + * Get qual + * @return qual + */ + @javax.annotation.Nullable + + public TeamEventStatusRank getQual() { + return qual; + } + + + public void setQual(@javax.annotation.Nullable TeamEventStatusRank qual) { + this.qual = qual; + } + + public GetTeamEventsStatusesByYear200ResponseValue alliance(@javax.annotation.Nullable TeamEventStatusAlliance alliance) { + + this.alliance = alliance; + return this; + } + + /** + * Get alliance + * @return alliance + */ + @javax.annotation.Nullable + + public TeamEventStatusAlliance getAlliance() { + return alliance; + } + + + public void setAlliance(@javax.annotation.Nullable TeamEventStatusAlliance alliance) { + this.alliance = alliance; + } + + public GetTeamEventsStatusesByYear200ResponseValue playoff(@javax.annotation.Nullable TeamEventStatusPlayoff playoff) { + + this.playoff = playoff; + return this; + } + + /** + * Get playoff + * @return playoff + */ + @javax.annotation.Nullable + + public TeamEventStatusPlayoff getPlayoff() { + return playoff; + } + + + public void setPlayoff(@javax.annotation.Nullable TeamEventStatusPlayoff playoff) { + this.playoff = playoff; + } + + public GetTeamEventsStatusesByYear200ResponseValue allianceStatusStr(@javax.annotation.Nullable String allianceStatusStr) { + + this.allianceStatusStr = allianceStatusStr; + return this; + } + + /** + * An HTML formatted string suitable for display to the user containing the team's alliance pick status. + * @return allianceStatusStr + */ + @javax.annotation.Nullable + + public String getAllianceStatusStr() { + return allianceStatusStr; + } + + + public void setAllianceStatusStr(@javax.annotation.Nullable String allianceStatusStr) { + this.allianceStatusStr = allianceStatusStr; + } + + public GetTeamEventsStatusesByYear200ResponseValue playoffStatusStr(@javax.annotation.Nullable String playoffStatusStr) { + + this.playoffStatusStr = playoffStatusStr; + return this; + } + + /** + * An HTML formatter string suitable for display to the user containing the team's playoff status. + * @return playoffStatusStr + */ + @javax.annotation.Nullable + + public String getPlayoffStatusStr() { + return playoffStatusStr; + } + + + public void setPlayoffStatusStr(@javax.annotation.Nullable String playoffStatusStr) { + this.playoffStatusStr = playoffStatusStr; + } + + public GetTeamEventsStatusesByYear200ResponseValue overallStatusStr(@javax.annotation.Nullable String overallStatusStr) { + + this.overallStatusStr = overallStatusStr; + return this; + } + + /** + * An HTML formatted string suitable for display to the user containing the team's overall status summary of the event. + * @return overallStatusStr + */ + @javax.annotation.Nullable + + public String getOverallStatusStr() { + return overallStatusStr; + } + + + public void setOverallStatusStr(@javax.annotation.Nullable String overallStatusStr) { + this.overallStatusStr = overallStatusStr; + } + + public GetTeamEventsStatusesByYear200ResponseValue nextMatchKey(@javax.annotation.Nullable String nextMatchKey) { + + this.nextMatchKey = nextMatchKey; + return this; + } + + /** + * TBA match key for the next match the team is scheduled to play in at this event, or null. + * @return nextMatchKey + */ + @javax.annotation.Nullable + + public String getNextMatchKey() { + return nextMatchKey; + } + + + public void setNextMatchKey(@javax.annotation.Nullable String nextMatchKey) { + this.nextMatchKey = nextMatchKey; + } + + public GetTeamEventsStatusesByYear200ResponseValue lastMatchKey(@javax.annotation.Nullable String lastMatchKey) { + + this.lastMatchKey = lastMatchKey; + return this; + } + + /** + * TBA match key for the last match the team played in at this event, or null. + * @return lastMatchKey + */ + @javax.annotation.Nullable + + public String getLastMatchKey() { + return lastMatchKey; + } + + + public void setLastMatchKey(@javax.annotation.Nullable String lastMatchKey) { + this.lastMatchKey = lastMatchKey; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetTeamEventsStatusesByYear200ResponseValue getTeamEventsStatusesByYear200ResponseValue = (GetTeamEventsStatusesByYear200ResponseValue) o; + return Objects.equals(this.qual, getTeamEventsStatusesByYear200ResponseValue.qual) && + Objects.equals(this.alliance, getTeamEventsStatusesByYear200ResponseValue.alliance) && + Objects.equals(this.playoff, getTeamEventsStatusesByYear200ResponseValue.playoff) && + Objects.equals(this.allianceStatusStr, getTeamEventsStatusesByYear200ResponseValue.allianceStatusStr) && + Objects.equals(this.playoffStatusStr, getTeamEventsStatusesByYear200ResponseValue.playoffStatusStr) && + Objects.equals(this.overallStatusStr, getTeamEventsStatusesByYear200ResponseValue.overallStatusStr) && + Objects.equals(this.nextMatchKey, getTeamEventsStatusesByYear200ResponseValue.nextMatchKey) && + Objects.equals(this.lastMatchKey, getTeamEventsStatusesByYear200ResponseValue.lastMatchKey); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(qual, alliance, playoff, allianceStatusStr, playoffStatusStr, overallStatusStr, nextMatchKey, lastMatchKey); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetTeamEventsStatusesByYear200ResponseValue {\n"); + sb.append(" qual: ").append(toIndentedString(qual)).append("\n"); + sb.append(" alliance: ").append(toIndentedString(alliance)).append("\n"); + sb.append(" playoff: ").append(toIndentedString(playoff)).append("\n"); + sb.append(" allianceStatusStr: ").append(toIndentedString(allianceStatusStr)).append("\n"); + sb.append(" playoffStatusStr: ").append(toIndentedString(playoffStatusStr)).append("\n"); + sb.append(" overallStatusStr: ").append(toIndentedString(overallStatusStr)).append("\n"); + sb.append(" nextMatchKey: ").append(toIndentedString(nextMatchKey)).append("\n"); + sb.append(" lastMatchKey: ").append(toIndentedString(lastMatchKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/History.java b/tba-api/src/main/java/thebluealliance/api/model/History.java new file mode 100644 index 000000000..997b5c15b --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/History.java @@ -0,0 +1,146 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import thebluealliance.api.model.Award; +import thebluealliance.api.model.Event; + +/** + * History + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class History { + public static final String SERIALIZED_NAME_EVENTS = "events"; + @SerializedName(SERIALIZED_NAME_EVENTS) + @javax.annotation.Nonnull + private List events = new ArrayList<>(); + + public static final String SERIALIZED_NAME_AWARDS = "awards"; + @SerializedName(SERIALIZED_NAME_AWARDS) + @javax.annotation.Nonnull + private List awards = new ArrayList<>(); + + public History() { + } + + public History events(@javax.annotation.Nonnull List events) { + + this.events = events; + return this; + } + + public History addEventsItem(Event eventsItem) { + if (this.events == null) { + this.events = new ArrayList<>(); + } + this.events.add(eventsItem); + return this; + } + + /** + * Get events + * @return events + */ + @javax.annotation.Nonnull + + public List getEvents() { + return events; + } + + + public void setEvents(@javax.annotation.Nonnull List events) { + this.events = events; + } + + public History awards(@javax.annotation.Nonnull List awards) { + + this.awards = awards; + return this; + } + + public History addAwardsItem(Award awardsItem) { + if (this.awards == null) { + this.awards = new ArrayList<>(); + } + this.awards.add(awardsItem); + return this; + } + + /** + * Get awards + * @return awards + */ + @javax.annotation.Nonnull + + public List getAwards() { + return awards; + } + + + public void setAwards(@javax.annotation.Nonnull List awards) { + this.awards = awards; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + History history = (History) o; + return Objects.equals(this.events, history.events) && + Objects.equals(this.awards, history.awards); + } + + @Override + public int hashCode() { + return Objects.hash(events, awards); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class History {\n"); + sb.append(" events: ").append(toIndentedString(events)).append("\n"); + sb.append(" awards: ").append(toIndentedString(awards)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/LeaderboardInsight.java b/tba-api/src/main/java/thebluealliance/api/model/LeaderboardInsight.java new file mode 100644 index 000000000..271a30d9d --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/LeaderboardInsight.java @@ -0,0 +1,154 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import thebluealliance.api.model.LeaderboardInsightData; + +/** + * LeaderboardInsight + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class LeaderboardInsight { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + @javax.annotation.Nonnull + private LeaderboardInsightData data; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_YEAR = "year"; + @SerializedName(SERIALIZED_NAME_YEAR) + @javax.annotation.Nonnull + private Integer year; + + public LeaderboardInsight() { + } + + public LeaderboardInsight data(@javax.annotation.Nonnull LeaderboardInsightData data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + */ + @javax.annotation.Nonnull + + public LeaderboardInsightData getData() { + return data; + } + + + public void setData(@javax.annotation.Nonnull LeaderboardInsightData data) { + this.data = data; + } + + public LeaderboardInsight name(@javax.annotation.Nonnull String name) { + + this.name = name; + return this; + } + + /** + * Name of the insight. + * @return name + */ + @javax.annotation.Nonnull + + public String getName() { + return name; + } + + + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; + } + + public LeaderboardInsight year(@javax.annotation.Nonnull Integer year) { + + this.year = year; + return this; + } + + /** + * Year the insight was measured in (year=0 for overall insights). + * @return year + */ + @javax.annotation.Nonnull + + public Integer getYear() { + return year; + } + + + public void setYear(@javax.annotation.Nonnull Integer year) { + this.year = year; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LeaderboardInsight leaderboardInsight = (LeaderboardInsight) o; + return Objects.equals(this.data, leaderboardInsight.data) && + Objects.equals(this.name, leaderboardInsight.name) && + Objects.equals(this.year, leaderboardInsight.year); + } + + @Override + public int hashCode() { + return Objects.hash(data, name, year); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LeaderboardInsight {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" year: ").append(toIndentedString(year)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/LeaderboardInsightData.java b/tba-api/src/main/java/thebluealliance/api/model/LeaderboardInsightData.java new file mode 100644 index 000000000..5420cf600 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/LeaderboardInsightData.java @@ -0,0 +1,186 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import thebluealliance.api.model.LeaderboardInsightDataRankingsInner; + +/** + * LeaderboardInsightData + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class LeaderboardInsightData { + public static final String SERIALIZED_NAME_RANKINGS = "rankings"; + @SerializedName(SERIALIZED_NAME_RANKINGS) + @javax.annotation.Nonnull + private List rankings = new ArrayList<>(); + + /** + * What type of key is used in the rankings; either 'team', 'event', or 'match'. + */ + @JsonAdapter(KeyTypeEnum.Adapter.class) + public enum KeyTypeEnum { + TEAM(String.valueOf("team")), + + EVENT(String.valueOf("event")), + + MATCH(String.valueOf("match")); + + private String value; + + KeyTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static KeyTypeEnum fromValue(String value) { + for (KeyTypeEnum b : KeyTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final KeyTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public KeyTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return KeyTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_KEY_TYPE = "key_type"; + @SerializedName(SERIALIZED_NAME_KEY_TYPE) + @javax.annotation.Nonnull + private KeyTypeEnum keyType; + + public LeaderboardInsightData() { + } + + public LeaderboardInsightData rankings(@javax.annotation.Nonnull List rankings) { + + this.rankings = rankings; + return this; + } + + public LeaderboardInsightData addRankingsItem(LeaderboardInsightDataRankingsInner rankingsItem) { + if (this.rankings == null) { + this.rankings = new ArrayList<>(); + } + this.rankings.add(rankingsItem); + return this; + } + + /** + * Get rankings + * @return rankings + */ + @javax.annotation.Nonnull + + public List getRankings() { + return rankings; + } + + + public void setRankings(@javax.annotation.Nonnull List rankings) { + this.rankings = rankings; + } + + public LeaderboardInsightData keyType(@javax.annotation.Nonnull KeyTypeEnum keyType) { + + this.keyType = keyType; + return this; + } + + /** + * What type of key is used in the rankings; either 'team', 'event', or 'match'. + * @return keyType + */ + @javax.annotation.Nonnull + + public KeyTypeEnum getKeyType() { + return keyType; + } + + + public void setKeyType(@javax.annotation.Nonnull KeyTypeEnum keyType) { + this.keyType = keyType; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LeaderboardInsightData leaderboardInsightData = (LeaderboardInsightData) o; + return Objects.equals(this.rankings, leaderboardInsightData.rankings) && + Objects.equals(this.keyType, leaderboardInsightData.keyType); + } + + @Override + public int hashCode() { + return Objects.hash(rankings, keyType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LeaderboardInsightData {\n"); + sb.append(" rankings: ").append(toIndentedString(rankings)).append("\n"); + sb.append(" keyType: ").append(toIndentedString(keyType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/LeaderboardInsightDataRankingsInner.java b/tba-api/src/main/java/thebluealliance/api/model/LeaderboardInsightDataRankingsInner.java new file mode 100644 index 000000000..c673a0c60 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/LeaderboardInsightDataRankingsInner.java @@ -0,0 +1,137 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +/** + * LeaderboardInsightDataRankingsInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class LeaderboardInsightDataRankingsInner { + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + @javax.annotation.Nonnull + private BigDecimal value; + + public static final String SERIALIZED_NAME_KEYS = "keys"; + @SerializedName(SERIALIZED_NAME_KEYS) + @javax.annotation.Nonnull + private List keys = new ArrayList<>(); + + public LeaderboardInsightDataRankingsInner() { + } + + public LeaderboardInsightDataRankingsInner value(@javax.annotation.Nonnull BigDecimal value) { + + this.value = value; + return this; + } + + /** + * Value of the insight that the corresponding team/event/matches have, e.g. number of blue banners, or number of matches played. + * @return value + */ + @javax.annotation.Nonnull + + public BigDecimal getValue() { + return value; + } + + + public void setValue(@javax.annotation.Nonnull BigDecimal value) { + this.value = value; + } + + public LeaderboardInsightDataRankingsInner keys(@javax.annotation.Nonnull List keys) { + + this.keys = keys; + return this; + } + + public LeaderboardInsightDataRankingsInner addKeysItem(String keysItem) { + if (this.keys == null) { + this.keys = new ArrayList<>(); + } + this.keys.add(keysItem); + return this; + } + + /** + * Team/Event/Match keys that have the corresponding value. + * @return keys + */ + @javax.annotation.Nonnull + + public List getKeys() { + return keys; + } + + + public void setKeys(@javax.annotation.Nonnull List keys) { + this.keys = keys; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LeaderboardInsightDataRankingsInner leaderboardInsightDataRankingsInner = (LeaderboardInsightDataRankingsInner) o; + return Objects.equals(this.value, leaderboardInsightDataRankingsInner.value) && + Objects.equals(this.keys, leaderboardInsightDataRankingsInner.keys); + } + + @Override + public int hashCode() { + return Objects.hash(value, keys); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LeaderboardInsightDataRankingsInner {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" keys: ").append(toIndentedString(keys)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/Match.java b/tba-api/src/main/java/thebluealliance/api/model/Match.java new file mode 100644 index 000000000..fb7912a00 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/Match.java @@ -0,0 +1,549 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import thebluealliance.api.model.MatchScoreBreakdown; +import thebluealliance.api.model.MatchSimpleAlliances; +import thebluealliance.api.model.MatchVideosInner; + +/** + * Match + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class Match { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @javax.annotation.Nonnull + private String key; + + /** + * The competition level the match was played at. + */ + @JsonAdapter(CompLevelEnum.Adapter.class) + public enum CompLevelEnum { + QM(String.valueOf("qm")), + + EF(String.valueOf("ef")), + + QF(String.valueOf("qf")), + + SF(String.valueOf("sf")), + + F(String.valueOf("f")); + + private String value; + + CompLevelEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CompLevelEnum fromValue(String value) { + for (CompLevelEnum b : CompLevelEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CompLevelEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CompLevelEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CompLevelEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_COMP_LEVEL = "comp_level"; + @SerializedName(SERIALIZED_NAME_COMP_LEVEL) + @javax.annotation.Nonnull + private CompLevelEnum compLevel; + + public static final String SERIALIZED_NAME_SET_NUMBER = "set_number"; + @SerializedName(SERIALIZED_NAME_SET_NUMBER) + @javax.annotation.Nonnull + private Integer setNumber; + + public static final String SERIALIZED_NAME_MATCH_NUMBER = "match_number"; + @SerializedName(SERIALIZED_NAME_MATCH_NUMBER) + @javax.annotation.Nonnull + private Integer matchNumber; + + public static final String SERIALIZED_NAME_ALLIANCES = "alliances"; + @SerializedName(SERIALIZED_NAME_ALLIANCES) + @javax.annotation.Nonnull + private MatchSimpleAlliances alliances; + + /** + * The color (red/blue) of the winning alliance. Will contain an empty string in the event of no winner, or a tie. + */ + @JsonAdapter(WinningAllianceEnum.Adapter.class) + public enum WinningAllianceEnum { + RED(String.valueOf("red")), + + BLUE(String.valueOf("blue")), + + EMPTY(String.valueOf("")); + + private String value; + + WinningAllianceEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static WinningAllianceEnum fromValue(String value) { + for (WinningAllianceEnum b : WinningAllianceEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final WinningAllianceEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public WinningAllianceEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return WinningAllianceEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_WINNING_ALLIANCE = "winning_alliance"; + @SerializedName(SERIALIZED_NAME_WINNING_ALLIANCE) + @javax.annotation.Nonnull + private WinningAllianceEnum winningAlliance; + + public static final String SERIALIZED_NAME_EVENT_KEY = "event_key"; + @SerializedName(SERIALIZED_NAME_EVENT_KEY) + @javax.annotation.Nonnull + private String eventKey; + + public static final String SERIALIZED_NAME_TIME = "time"; + @SerializedName(SERIALIZED_NAME_TIME) + @javax.annotation.Nullable + private Long time; + + public static final String SERIALIZED_NAME_ACTUAL_TIME = "actual_time"; + @SerializedName(SERIALIZED_NAME_ACTUAL_TIME) + @javax.annotation.Nullable + private Long actualTime; + + public static final String SERIALIZED_NAME_PREDICTED_TIME = "predicted_time"; + @SerializedName(SERIALIZED_NAME_PREDICTED_TIME) + @javax.annotation.Nullable + private Long predictedTime; + + public static final String SERIALIZED_NAME_POST_RESULT_TIME = "post_result_time"; + @SerializedName(SERIALIZED_NAME_POST_RESULT_TIME) + @javax.annotation.Nullable + private Long postResultTime; + + public static final String SERIALIZED_NAME_SCORE_BREAKDOWN = "score_breakdown"; + @SerializedName(SERIALIZED_NAME_SCORE_BREAKDOWN) + @javax.annotation.Nullable + private MatchScoreBreakdown scoreBreakdown; + + public static final String SERIALIZED_NAME_VIDEOS = "videos"; + @SerializedName(SERIALIZED_NAME_VIDEOS) + @javax.annotation.Nonnull + private List videos = new ArrayList<>(); + + public Match() { + } + + public Match key(@javax.annotation.Nonnull String key) { + + this.key = key; + return this; + } + + /** + * TBA match key with the format `yyyy[EVENT_CODE]_[COMP_LEVEL]m[MATCH_NUMBER]`, where `yyyy` is the year, and `EVENT_CODE` is the event code of the event, `COMP_LEVEL` is (qm, ef, qf, sf, f), and `MATCH_NUMBER` is the match number in the competition level. A set number may be appended to the competition level if more than one match in required per set. + * @return key + */ + @javax.annotation.Nonnull + + public String getKey() { + return key; + } + + + public void setKey(@javax.annotation.Nonnull String key) { + this.key = key; + } + + public Match compLevel(@javax.annotation.Nonnull CompLevelEnum compLevel) { + + this.compLevel = compLevel; + return this; + } + + /** + * The competition level the match was played at. + * @return compLevel + */ + @javax.annotation.Nonnull + + public CompLevelEnum getCompLevel() { + return compLevel; + } + + + public void setCompLevel(@javax.annotation.Nonnull CompLevelEnum compLevel) { + this.compLevel = compLevel; + } + + public Match setNumber(@javax.annotation.Nonnull Integer setNumber) { + + this.setNumber = setNumber; + return this; + } + + /** + * The set number in a series of matches where more than one match is required in the match series. + * @return setNumber + */ + @javax.annotation.Nonnull + + public Integer getSetNumber() { + return setNumber; + } + + + public void setSetNumber(@javax.annotation.Nonnull Integer setNumber) { + this.setNumber = setNumber; + } + + public Match matchNumber(@javax.annotation.Nonnull Integer matchNumber) { + + this.matchNumber = matchNumber; + return this; + } + + /** + * The match number of the match in the competition level. + * @return matchNumber + */ + @javax.annotation.Nonnull + + public Integer getMatchNumber() { + return matchNumber; + } + + + public void setMatchNumber(@javax.annotation.Nonnull Integer matchNumber) { + this.matchNumber = matchNumber; + } + + public Match alliances(@javax.annotation.Nonnull MatchSimpleAlliances alliances) { + + this.alliances = alliances; + return this; + } + + /** + * Get alliances + * @return alliances + */ + @javax.annotation.Nonnull + + public MatchSimpleAlliances getAlliances() { + return alliances; + } + + + public void setAlliances(@javax.annotation.Nonnull MatchSimpleAlliances alliances) { + this.alliances = alliances; + } + + public Match winningAlliance(@javax.annotation.Nonnull WinningAllianceEnum winningAlliance) { + + this.winningAlliance = winningAlliance; + return this; + } + + /** + * The color (red/blue) of the winning alliance. Will contain an empty string in the event of no winner, or a tie. + * @return winningAlliance + */ + @javax.annotation.Nonnull + + public WinningAllianceEnum getWinningAlliance() { + return winningAlliance; + } + + + public void setWinningAlliance(@javax.annotation.Nonnull WinningAllianceEnum winningAlliance) { + this.winningAlliance = winningAlliance; + } + + public Match eventKey(@javax.annotation.Nonnull String eventKey) { + + this.eventKey = eventKey; + return this; + } + + /** + * Event key of the event the match was played at. + * @return eventKey + */ + @javax.annotation.Nonnull + + public String getEventKey() { + return eventKey; + } + + + public void setEventKey(@javax.annotation.Nonnull String eventKey) { + this.eventKey = eventKey; + } + + public Match time(@javax.annotation.Nullable Long time) { + + this.time = time; + return this; + } + + /** + * UNIX timestamp (seconds since 1-Jan-1970 00:00:00) of the scheduled match time, as taken from the published schedule. + * @return time + */ + @javax.annotation.Nullable + + public Long getTime() { + return time; + } + + + public void setTime(@javax.annotation.Nullable Long time) { + this.time = time; + } + + public Match actualTime(@javax.annotation.Nullable Long actualTime) { + + this.actualTime = actualTime; + return this; + } + + /** + * UNIX timestamp (seconds since 1-Jan-1970 00:00:00) of actual match start time. + * @return actualTime + */ + @javax.annotation.Nullable + + public Long getActualTime() { + return actualTime; + } + + + public void setActualTime(@javax.annotation.Nullable Long actualTime) { + this.actualTime = actualTime; + } + + public Match predictedTime(@javax.annotation.Nullable Long predictedTime) { + + this.predictedTime = predictedTime; + return this; + } + + /** + * UNIX timestamp (seconds since 1-Jan-1970 00:00:00) of the TBA predicted match start time. + * @return predictedTime + */ + @javax.annotation.Nullable + + public Long getPredictedTime() { + return predictedTime; + } + + + public void setPredictedTime(@javax.annotation.Nullable Long predictedTime) { + this.predictedTime = predictedTime; + } + + public Match postResultTime(@javax.annotation.Nullable Long postResultTime) { + + this.postResultTime = postResultTime; + return this; + } + + /** + * UNIX timestamp (seconds since 1-Jan-1970 00:00:00) when the match result was posted. + * @return postResultTime + */ + @javax.annotation.Nullable + + public Long getPostResultTime() { + return postResultTime; + } + + + public void setPostResultTime(@javax.annotation.Nullable Long postResultTime) { + this.postResultTime = postResultTime; + } + + public Match scoreBreakdown(@javax.annotation.Nullable MatchScoreBreakdown scoreBreakdown) { + + this.scoreBreakdown = scoreBreakdown; + return this; + } + + /** + * Get scoreBreakdown + * @return scoreBreakdown + */ + @javax.annotation.Nullable + + public MatchScoreBreakdown getScoreBreakdown() { + return scoreBreakdown; + } + + + public void setScoreBreakdown(@javax.annotation.Nullable MatchScoreBreakdown scoreBreakdown) { + this.scoreBreakdown = scoreBreakdown; + } + + public Match videos(@javax.annotation.Nonnull List videos) { + + this.videos = videos; + return this; + } + + public Match addVideosItem(MatchVideosInner videosItem) { + if (this.videos == null) { + this.videos = new ArrayList<>(); + } + this.videos.add(videosItem); + return this; + } + + /** + * Array of video objects associated with this match. + * @return videos + */ + @javax.annotation.Nonnull + + public List getVideos() { + return videos; + } + + + public void setVideos(@javax.annotation.Nonnull List videos) { + this.videos = videos; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Match match = (Match) o; + return Objects.equals(this.key, match.key) && + Objects.equals(this.compLevel, match.compLevel) && + Objects.equals(this.setNumber, match.setNumber) && + Objects.equals(this.matchNumber, match.matchNumber) && + Objects.equals(this.alliances, match.alliances) && + Objects.equals(this.winningAlliance, match.winningAlliance) && + Objects.equals(this.eventKey, match.eventKey) && + Objects.equals(this.time, match.time) && + Objects.equals(this.actualTime, match.actualTime) && + Objects.equals(this.predictedTime, match.predictedTime) && + Objects.equals(this.postResultTime, match.postResultTime) && + Objects.equals(this.scoreBreakdown, match.scoreBreakdown) && + Objects.equals(this.videos, match.videos); + } + + @Override + public int hashCode() { + return Objects.hash(key, compLevel, setNumber, matchNumber, alliances, winningAlliance, eventKey, time, actualTime, predictedTime, postResultTime, scoreBreakdown, videos); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Match {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" compLevel: ").append(toIndentedString(compLevel)).append("\n"); + sb.append(" setNumber: ").append(toIndentedString(setNumber)).append("\n"); + sb.append(" matchNumber: ").append(toIndentedString(matchNumber)).append("\n"); + sb.append(" alliances: ").append(toIndentedString(alliances)).append("\n"); + sb.append(" winningAlliance: ").append(toIndentedString(winningAlliance)).append("\n"); + sb.append(" eventKey: ").append(toIndentedString(eventKey)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" actualTime: ").append(toIndentedString(actualTime)).append("\n"); + sb.append(" predictedTime: ").append(toIndentedString(predictedTime)).append("\n"); + sb.append(" postResultTime: ").append(toIndentedString(postResultTime)).append("\n"); + sb.append(" scoreBreakdown: ").append(toIndentedString(scoreBreakdown)).append("\n"); + sb.append(" videos: ").append(toIndentedString(videos)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchAlliance.java b/tba-api/src/main/java/thebluealliance/api/model/MatchAlliance.java new file mode 100644 index 000000000..b1302fda7 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchAlliance.java @@ -0,0 +1,208 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +/** + * MatchAlliance + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchAlliance { + public static final String SERIALIZED_NAME_SCORE = "score"; + @SerializedName(SERIALIZED_NAME_SCORE) + @javax.annotation.Nonnull + private Integer score; + + public static final String SERIALIZED_NAME_TEAM_KEYS = "team_keys"; + @SerializedName(SERIALIZED_NAME_TEAM_KEYS) + @javax.annotation.Nonnull + private List teamKeys = new ArrayList<>(); + + public static final String SERIALIZED_NAME_SURROGATE_TEAM_KEYS = "surrogate_team_keys"; + @SerializedName(SERIALIZED_NAME_SURROGATE_TEAM_KEYS) + @javax.annotation.Nonnull + private List surrogateTeamKeys = new ArrayList<>(); + + public static final String SERIALIZED_NAME_DQ_TEAM_KEYS = "dq_team_keys"; + @SerializedName(SERIALIZED_NAME_DQ_TEAM_KEYS) + @javax.annotation.Nonnull + private List dqTeamKeys = new ArrayList<>(); + + public MatchAlliance() { + } + + public MatchAlliance score(@javax.annotation.Nonnull Integer score) { + + this.score = score; + return this; + } + + /** + * Score for this alliance. Will be null or -1 for an unplayed match. + * @return score + */ + @javax.annotation.Nonnull + + public Integer getScore() { + return score; + } + + + public void setScore(@javax.annotation.Nonnull Integer score) { + this.score = score; + } + + public MatchAlliance teamKeys(@javax.annotation.Nonnull List teamKeys) { + + this.teamKeys = teamKeys; + return this; + } + + public MatchAlliance addTeamKeysItem(String teamKeysItem) { + if (this.teamKeys == null) { + this.teamKeys = new ArrayList<>(); + } + this.teamKeys.add(teamKeysItem); + return this; + } + + /** + * Get teamKeys + * @return teamKeys + */ + @javax.annotation.Nonnull + + public List getTeamKeys() { + return teamKeys; + } + + + public void setTeamKeys(@javax.annotation.Nonnull List teamKeys) { + this.teamKeys = teamKeys; + } + + public MatchAlliance surrogateTeamKeys(@javax.annotation.Nonnull List surrogateTeamKeys) { + + this.surrogateTeamKeys = surrogateTeamKeys; + return this; + } + + public MatchAlliance addSurrogateTeamKeysItem(String surrogateTeamKeysItem) { + if (this.surrogateTeamKeys == null) { + this.surrogateTeamKeys = new ArrayList<>(); + } + this.surrogateTeamKeys.add(surrogateTeamKeysItem); + return this; + } + + /** + * TBA team keys (eg `frc254`) of any teams playing as a surrogate. + * @return surrogateTeamKeys + */ + @javax.annotation.Nonnull + + public List getSurrogateTeamKeys() { + return surrogateTeamKeys; + } + + + public void setSurrogateTeamKeys(@javax.annotation.Nonnull List surrogateTeamKeys) { + this.surrogateTeamKeys = surrogateTeamKeys; + } + + public MatchAlliance dqTeamKeys(@javax.annotation.Nonnull List dqTeamKeys) { + + this.dqTeamKeys = dqTeamKeys; + return this; + } + + public MatchAlliance addDqTeamKeysItem(String dqTeamKeysItem) { + if (this.dqTeamKeys == null) { + this.dqTeamKeys = new ArrayList<>(); + } + this.dqTeamKeys.add(dqTeamKeysItem); + return this; + } + + /** + * TBA team keys (eg `frc254`) of any disqualified teams. + * @return dqTeamKeys + */ + @javax.annotation.Nonnull + + public List getDqTeamKeys() { + return dqTeamKeys; + } + + + public void setDqTeamKeys(@javax.annotation.Nonnull List dqTeamKeys) { + this.dqTeamKeys = dqTeamKeys; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchAlliance matchAlliance = (MatchAlliance) o; + return Objects.equals(this.score, matchAlliance.score) && + Objects.equals(this.teamKeys, matchAlliance.teamKeys) && + Objects.equals(this.surrogateTeamKeys, matchAlliance.surrogateTeamKeys) && + Objects.equals(this.dqTeamKeys, matchAlliance.dqTeamKeys); + } + + @Override + public int hashCode() { + return Objects.hash(score, teamKeys, surrogateTeamKeys, dqTeamKeys); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchAlliance {\n"); + sb.append(" score: ").append(toIndentedString(score)).append("\n"); + sb.append(" teamKeys: ").append(toIndentedString(teamKeys)).append("\n"); + sb.append(" surrogateTeamKeys: ").append(toIndentedString(surrogateTeamKeys)).append("\n"); + sb.append(" dqTeamKeys: ").append(toIndentedString(dqTeamKeys)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown.java new file mode 100644 index 000000000..78cb23732 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown.java @@ -0,0 +1,240 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import thebluealliance.api.model.MatchScoreBreakdown2015; +import thebluealliance.api.model.MatchScoreBreakdown2016; +import thebluealliance.api.model.MatchScoreBreakdown2017; +import thebluealliance.api.model.MatchScoreBreakdown2018; +import thebluealliance.api.model.MatchScoreBreakdown2019; +import thebluealliance.api.model.MatchScoreBreakdown2020; +import thebluealliance.api.model.MatchScoreBreakdown2022; +import thebluealliance.api.model.MatchScoreBreakdown2023; +import thebluealliance.api.model.MatchScoreBreakdown2024; +import thebluealliance.api.model.MatchScoreBreakdown2024Alliance; + +/** + * Score breakdown for auto, teleop, etc. points. Varies from year to year. May be null. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown { + public static final String SERIALIZED_NAME_BLUE = "blue"; + @SerializedName(SERIALIZED_NAME_BLUE) + @javax.annotation.Nonnull + private MatchScoreBreakdown2024Alliance blue; + + public static final String SERIALIZED_NAME_RED = "red"; + @SerializedName(SERIALIZED_NAME_RED) + @javax.annotation.Nonnull + private MatchScoreBreakdown2024Alliance red; + + /** + * Gets or Sets coopertition + */ + @JsonAdapter(CoopertitionEnum.Adapter.class) + public enum CoopertitionEnum { + NONE(String.valueOf("None")), + + UNKNOWN(String.valueOf("Unknown")), + + STACK(String.valueOf("Stack")); + + private String value; + + CoopertitionEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CoopertitionEnum fromValue(String value) { + for (CoopertitionEnum b : CoopertitionEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CoopertitionEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CoopertitionEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CoopertitionEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_COOPERTITION = "coopertition"; + @SerializedName(SERIALIZED_NAME_COOPERTITION) + @javax.annotation.Nonnull + private CoopertitionEnum coopertition; + + public static final String SERIALIZED_NAME_COOPERTITION_POINTS = "coopertition_points"; + @SerializedName(SERIALIZED_NAME_COOPERTITION_POINTS) + @javax.annotation.Nonnull + private Integer coopertitionPoints; + + public MatchScoreBreakdown() { + } + + public MatchScoreBreakdown blue(@javax.annotation.Nonnull MatchScoreBreakdown2024Alliance blue) { + + this.blue = blue; + return this; + } + + /** + * Get blue + * @return blue + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2024Alliance getBlue() { + return blue; + } + + + public void setBlue(@javax.annotation.Nonnull MatchScoreBreakdown2024Alliance blue) { + this.blue = blue; + } + + public MatchScoreBreakdown red(@javax.annotation.Nonnull MatchScoreBreakdown2024Alliance red) { + + this.red = red; + return this; + } + + /** + * Get red + * @return red + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2024Alliance getRed() { + return red; + } + + + public void setRed(@javax.annotation.Nonnull MatchScoreBreakdown2024Alliance red) { + this.red = red; + } + + public MatchScoreBreakdown coopertition(@javax.annotation.Nonnull CoopertitionEnum coopertition) { + + this.coopertition = coopertition; + return this; + } + + /** + * Get coopertition + * @return coopertition + */ + @javax.annotation.Nonnull + + public CoopertitionEnum getCoopertition() { + return coopertition; + } + + + public void setCoopertition(@javax.annotation.Nonnull CoopertitionEnum coopertition) { + this.coopertition = coopertition; + } + + public MatchScoreBreakdown coopertitionPoints(@javax.annotation.Nonnull Integer coopertitionPoints) { + + this.coopertitionPoints = coopertitionPoints; + return this; + } + + /** + * Get coopertitionPoints + * @return coopertitionPoints + */ + @javax.annotation.Nonnull + + public Integer getCoopertitionPoints() { + return coopertitionPoints; + } + + + public void setCoopertitionPoints(@javax.annotation.Nonnull Integer coopertitionPoints) { + this.coopertitionPoints = coopertitionPoints; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown matchScoreBreakdown = (MatchScoreBreakdown) o; + return Objects.equals(this.blue, matchScoreBreakdown.blue) && + Objects.equals(this.red, matchScoreBreakdown.red) && + Objects.equals(this.coopertition, matchScoreBreakdown.coopertition) && + Objects.equals(this.coopertitionPoints, matchScoreBreakdown.coopertitionPoints); + } + + @Override + public int hashCode() { + return Objects.hash(blue, red, coopertition, coopertitionPoints); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown {\n"); + sb.append(" blue: ").append(toIndentedString(blue)).append("\n"); + sb.append(" red: ").append(toIndentedString(red)).append("\n"); + sb.append(" coopertition: ").append(toIndentedString(coopertition)).append("\n"); + sb.append(" coopertitionPoints: ").append(toIndentedString(coopertitionPoints)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2015.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2015.java new file mode 100644 index 000000000..88e861b29 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2015.java @@ -0,0 +1,231 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import thebluealliance.api.model.MatchScoreBreakdown2015Alliance; + +/** + * See the 2015 FMS API documentation for a description of each value + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2015 { + public static final String SERIALIZED_NAME_BLUE = "blue"; + @SerializedName(SERIALIZED_NAME_BLUE) + @javax.annotation.Nonnull + private MatchScoreBreakdown2015Alliance blue; + + public static final String SERIALIZED_NAME_RED = "red"; + @SerializedName(SERIALIZED_NAME_RED) + @javax.annotation.Nonnull + private MatchScoreBreakdown2015Alliance red; + + /** + * Gets or Sets coopertition + */ + @JsonAdapter(CoopertitionEnum.Adapter.class) + public enum CoopertitionEnum { + NONE(String.valueOf("None")), + + UNKNOWN(String.valueOf("Unknown")), + + STACK(String.valueOf("Stack")); + + private String value; + + CoopertitionEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CoopertitionEnum fromValue(String value) { + for (CoopertitionEnum b : CoopertitionEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CoopertitionEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CoopertitionEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CoopertitionEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_COOPERTITION = "coopertition"; + @SerializedName(SERIALIZED_NAME_COOPERTITION) + @javax.annotation.Nonnull + private CoopertitionEnum coopertition; + + public static final String SERIALIZED_NAME_COOPERTITION_POINTS = "coopertition_points"; + @SerializedName(SERIALIZED_NAME_COOPERTITION_POINTS) + @javax.annotation.Nonnull + private Integer coopertitionPoints; + + public MatchScoreBreakdown2015() { + } + + public MatchScoreBreakdown2015 blue(@javax.annotation.Nonnull MatchScoreBreakdown2015Alliance blue) { + + this.blue = blue; + return this; + } + + /** + * Get blue + * @return blue + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2015Alliance getBlue() { + return blue; + } + + + public void setBlue(@javax.annotation.Nonnull MatchScoreBreakdown2015Alliance blue) { + this.blue = blue; + } + + public MatchScoreBreakdown2015 red(@javax.annotation.Nonnull MatchScoreBreakdown2015Alliance red) { + + this.red = red; + return this; + } + + /** + * Get red + * @return red + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2015Alliance getRed() { + return red; + } + + + public void setRed(@javax.annotation.Nonnull MatchScoreBreakdown2015Alliance red) { + this.red = red; + } + + public MatchScoreBreakdown2015 coopertition(@javax.annotation.Nonnull CoopertitionEnum coopertition) { + + this.coopertition = coopertition; + return this; + } + + /** + * Get coopertition + * @return coopertition + */ + @javax.annotation.Nonnull + + public CoopertitionEnum getCoopertition() { + return coopertition; + } + + + public void setCoopertition(@javax.annotation.Nonnull CoopertitionEnum coopertition) { + this.coopertition = coopertition; + } + + public MatchScoreBreakdown2015 coopertitionPoints(@javax.annotation.Nonnull Integer coopertitionPoints) { + + this.coopertitionPoints = coopertitionPoints; + return this; + } + + /** + * Get coopertitionPoints + * @return coopertitionPoints + */ + @javax.annotation.Nonnull + + public Integer getCoopertitionPoints() { + return coopertitionPoints; + } + + + public void setCoopertitionPoints(@javax.annotation.Nonnull Integer coopertitionPoints) { + this.coopertitionPoints = coopertitionPoints; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2015 matchScoreBreakdown2015 = (MatchScoreBreakdown2015) o; + return Objects.equals(this.blue, matchScoreBreakdown2015.blue) && + Objects.equals(this.red, matchScoreBreakdown2015.red) && + Objects.equals(this.coopertition, matchScoreBreakdown2015.coopertition) && + Objects.equals(this.coopertitionPoints, matchScoreBreakdown2015.coopertitionPoints); + } + + @Override + public int hashCode() { + return Objects.hash(blue, red, coopertition, coopertitionPoints); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2015 {\n"); + sb.append(" blue: ").append(toIndentedString(blue)).append("\n"); + sb.append(" red: ").append(toIndentedString(red)).append("\n"); + sb.append(" coopertition: ").append(toIndentedString(coopertition)).append("\n"); + sb.append(" coopertitionPoints: ").append(toIndentedString(coopertitionPoints)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2015Alliance.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2015Alliance.java new file mode 100644 index 000000000..89cd40171 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2015Alliance.java @@ -0,0 +1,741 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * MatchScoreBreakdown2015Alliance + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2015Alliance { + public static final String SERIALIZED_NAME_AUTO_POINTS = "auto_points"; + @SerializedName(SERIALIZED_NAME_AUTO_POINTS) + @javax.annotation.Nullable + private Integer autoPoints; + + public static final String SERIALIZED_NAME_TELEOP_POINTS = "teleop_points"; + @SerializedName(SERIALIZED_NAME_TELEOP_POINTS) + @javax.annotation.Nullable + private Integer teleopPoints; + + public static final String SERIALIZED_NAME_CONTAINER_POINTS = "container_points"; + @SerializedName(SERIALIZED_NAME_CONTAINER_POINTS) + @javax.annotation.Nullable + private Integer containerPoints; + + public static final String SERIALIZED_NAME_TOTE_POINTS = "tote_points"; + @SerializedName(SERIALIZED_NAME_TOTE_POINTS) + @javax.annotation.Nullable + private Integer totePoints; + + public static final String SERIALIZED_NAME_LITTER_POINTS = "litter_points"; + @SerializedName(SERIALIZED_NAME_LITTER_POINTS) + @javax.annotation.Nullable + private Integer litterPoints; + + public static final String SERIALIZED_NAME_FOUL_POINTS = "foul_points"; + @SerializedName(SERIALIZED_NAME_FOUL_POINTS) + @javax.annotation.Nullable + private Integer foulPoints; + + public static final String SERIALIZED_NAME_ADJUST_POINTS = "adjust_points"; + @SerializedName(SERIALIZED_NAME_ADJUST_POINTS) + @javax.annotation.Nullable + private Integer adjustPoints; + + public static final String SERIALIZED_NAME_TOTAL_POINTS = "total_points"; + @SerializedName(SERIALIZED_NAME_TOTAL_POINTS) + @javax.annotation.Nullable + private Integer totalPoints; + + public static final String SERIALIZED_NAME_FOUL_COUNT = "foul_count"; + @SerializedName(SERIALIZED_NAME_FOUL_COUNT) + @javax.annotation.Nullable + private Integer foulCount; + + public static final String SERIALIZED_NAME_TOTE_COUNT_FAR = "tote_count_far"; + @SerializedName(SERIALIZED_NAME_TOTE_COUNT_FAR) + @javax.annotation.Nullable + private Integer toteCountFar; + + public static final String SERIALIZED_NAME_TOTE_COUNT_NEAR = "tote_count_near"; + @SerializedName(SERIALIZED_NAME_TOTE_COUNT_NEAR) + @javax.annotation.Nullable + private Integer toteCountNear; + + public static final String SERIALIZED_NAME_TOTE_SET = "tote_set"; + @SerializedName(SERIALIZED_NAME_TOTE_SET) + @javax.annotation.Nullable + private Boolean toteSet; + + public static final String SERIALIZED_NAME_TOTE_STACK = "tote_stack"; + @SerializedName(SERIALIZED_NAME_TOTE_STACK) + @javax.annotation.Nullable + private Boolean toteStack; + + public static final String SERIALIZED_NAME_CONTAINER_COUNT_LEVEL1 = "container_count_level1"; + @SerializedName(SERIALIZED_NAME_CONTAINER_COUNT_LEVEL1) + @javax.annotation.Nullable + private Integer containerCountLevel1; + + public static final String SERIALIZED_NAME_CONTAINER_COUNT_LEVEL2 = "container_count_level2"; + @SerializedName(SERIALIZED_NAME_CONTAINER_COUNT_LEVEL2) + @javax.annotation.Nullable + private Integer containerCountLevel2; + + public static final String SERIALIZED_NAME_CONTAINER_COUNT_LEVEL3 = "container_count_level3"; + @SerializedName(SERIALIZED_NAME_CONTAINER_COUNT_LEVEL3) + @javax.annotation.Nullable + private Integer containerCountLevel3; + + public static final String SERIALIZED_NAME_CONTAINER_COUNT_LEVEL4 = "container_count_level4"; + @SerializedName(SERIALIZED_NAME_CONTAINER_COUNT_LEVEL4) + @javax.annotation.Nullable + private Integer containerCountLevel4; + + public static final String SERIALIZED_NAME_CONTAINER_COUNT_LEVEL5 = "container_count_level5"; + @SerializedName(SERIALIZED_NAME_CONTAINER_COUNT_LEVEL5) + @javax.annotation.Nullable + private Integer containerCountLevel5; + + public static final String SERIALIZED_NAME_CONTAINER_COUNT_LEVEL6 = "container_count_level6"; + @SerializedName(SERIALIZED_NAME_CONTAINER_COUNT_LEVEL6) + @javax.annotation.Nullable + private Integer containerCountLevel6; + + public static final String SERIALIZED_NAME_CONTAINER_SET = "container_set"; + @SerializedName(SERIALIZED_NAME_CONTAINER_SET) + @javax.annotation.Nullable + private Boolean containerSet; + + public static final String SERIALIZED_NAME_LITTER_COUNT_CONTAINER = "litter_count_container"; + @SerializedName(SERIALIZED_NAME_LITTER_COUNT_CONTAINER) + @javax.annotation.Nullable + private Integer litterCountContainer; + + public static final String SERIALIZED_NAME_LITTER_COUNT_LANDFILL = "litter_count_landfill"; + @SerializedName(SERIALIZED_NAME_LITTER_COUNT_LANDFILL) + @javax.annotation.Nullable + private Integer litterCountLandfill; + + public static final String SERIALIZED_NAME_LITTER_COUNT_UNPROCESSED = "litter_count_unprocessed"; + @SerializedName(SERIALIZED_NAME_LITTER_COUNT_UNPROCESSED) + @javax.annotation.Nullable + private Integer litterCountUnprocessed; + + public static final String SERIALIZED_NAME_ROBOT_SET = "robot_set"; + @SerializedName(SERIALIZED_NAME_ROBOT_SET) + @javax.annotation.Nullable + private Boolean robotSet; + + public MatchScoreBreakdown2015Alliance() { + } + + public MatchScoreBreakdown2015Alliance autoPoints(@javax.annotation.Nullable Integer autoPoints) { + + this.autoPoints = autoPoints; + return this; + } + + /** + * Get autoPoints + * @return autoPoints + */ + @javax.annotation.Nullable + + public Integer getAutoPoints() { + return autoPoints; + } + + + public void setAutoPoints(@javax.annotation.Nullable Integer autoPoints) { + this.autoPoints = autoPoints; + } + + public MatchScoreBreakdown2015Alliance teleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + + this.teleopPoints = teleopPoints; + return this; + } + + /** + * Get teleopPoints + * @return teleopPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopPoints() { + return teleopPoints; + } + + + public void setTeleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + this.teleopPoints = teleopPoints; + } + + public MatchScoreBreakdown2015Alliance containerPoints(@javax.annotation.Nullable Integer containerPoints) { + + this.containerPoints = containerPoints; + return this; + } + + /** + * Get containerPoints + * @return containerPoints + */ + @javax.annotation.Nullable + + public Integer getContainerPoints() { + return containerPoints; + } + + + public void setContainerPoints(@javax.annotation.Nullable Integer containerPoints) { + this.containerPoints = containerPoints; + } + + public MatchScoreBreakdown2015Alliance totePoints(@javax.annotation.Nullable Integer totePoints) { + + this.totePoints = totePoints; + return this; + } + + /** + * Get totePoints + * @return totePoints + */ + @javax.annotation.Nullable + + public Integer getTotePoints() { + return totePoints; + } + + + public void setTotePoints(@javax.annotation.Nullable Integer totePoints) { + this.totePoints = totePoints; + } + + public MatchScoreBreakdown2015Alliance litterPoints(@javax.annotation.Nullable Integer litterPoints) { + + this.litterPoints = litterPoints; + return this; + } + + /** + * Get litterPoints + * @return litterPoints + */ + @javax.annotation.Nullable + + public Integer getLitterPoints() { + return litterPoints; + } + + + public void setLitterPoints(@javax.annotation.Nullable Integer litterPoints) { + this.litterPoints = litterPoints; + } + + public MatchScoreBreakdown2015Alliance foulPoints(@javax.annotation.Nullable Integer foulPoints) { + + this.foulPoints = foulPoints; + return this; + } + + /** + * Get foulPoints + * @return foulPoints + */ + @javax.annotation.Nullable + + public Integer getFoulPoints() { + return foulPoints; + } + + + public void setFoulPoints(@javax.annotation.Nullable Integer foulPoints) { + this.foulPoints = foulPoints; + } + + public MatchScoreBreakdown2015Alliance adjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + + this.adjustPoints = adjustPoints; + return this; + } + + /** + * Get adjustPoints + * @return adjustPoints + */ + @javax.annotation.Nullable + + public Integer getAdjustPoints() { + return adjustPoints; + } + + + public void setAdjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + this.adjustPoints = adjustPoints; + } + + public MatchScoreBreakdown2015Alliance totalPoints(@javax.annotation.Nullable Integer totalPoints) { + + this.totalPoints = totalPoints; + return this; + } + + /** + * Get totalPoints + * @return totalPoints + */ + @javax.annotation.Nullable + + public Integer getTotalPoints() { + return totalPoints; + } + + + public void setTotalPoints(@javax.annotation.Nullable Integer totalPoints) { + this.totalPoints = totalPoints; + } + + public MatchScoreBreakdown2015Alliance foulCount(@javax.annotation.Nullable Integer foulCount) { + + this.foulCount = foulCount; + return this; + } + + /** + * Get foulCount + * @return foulCount + */ + @javax.annotation.Nullable + + public Integer getFoulCount() { + return foulCount; + } + + + public void setFoulCount(@javax.annotation.Nullable Integer foulCount) { + this.foulCount = foulCount; + } + + public MatchScoreBreakdown2015Alliance toteCountFar(@javax.annotation.Nullable Integer toteCountFar) { + + this.toteCountFar = toteCountFar; + return this; + } + + /** + * Get toteCountFar + * @return toteCountFar + */ + @javax.annotation.Nullable + + public Integer getToteCountFar() { + return toteCountFar; + } + + + public void setToteCountFar(@javax.annotation.Nullable Integer toteCountFar) { + this.toteCountFar = toteCountFar; + } + + public MatchScoreBreakdown2015Alliance toteCountNear(@javax.annotation.Nullable Integer toteCountNear) { + + this.toteCountNear = toteCountNear; + return this; + } + + /** + * Get toteCountNear + * @return toteCountNear + */ + @javax.annotation.Nullable + + public Integer getToteCountNear() { + return toteCountNear; + } + + + public void setToteCountNear(@javax.annotation.Nullable Integer toteCountNear) { + this.toteCountNear = toteCountNear; + } + + public MatchScoreBreakdown2015Alliance toteSet(@javax.annotation.Nullable Boolean toteSet) { + + this.toteSet = toteSet; + return this; + } + + /** + * Get toteSet + * @return toteSet + */ + @javax.annotation.Nullable + + public Boolean getToteSet() { + return toteSet; + } + + + public void setToteSet(@javax.annotation.Nullable Boolean toteSet) { + this.toteSet = toteSet; + } + + public MatchScoreBreakdown2015Alliance toteStack(@javax.annotation.Nullable Boolean toteStack) { + + this.toteStack = toteStack; + return this; + } + + /** + * Get toteStack + * @return toteStack + */ + @javax.annotation.Nullable + + public Boolean getToteStack() { + return toteStack; + } + + + public void setToteStack(@javax.annotation.Nullable Boolean toteStack) { + this.toteStack = toteStack; + } + + public MatchScoreBreakdown2015Alliance containerCountLevel1(@javax.annotation.Nullable Integer containerCountLevel1) { + + this.containerCountLevel1 = containerCountLevel1; + return this; + } + + /** + * Get containerCountLevel1 + * @return containerCountLevel1 + */ + @javax.annotation.Nullable + + public Integer getContainerCountLevel1() { + return containerCountLevel1; + } + + + public void setContainerCountLevel1(@javax.annotation.Nullable Integer containerCountLevel1) { + this.containerCountLevel1 = containerCountLevel1; + } + + public MatchScoreBreakdown2015Alliance containerCountLevel2(@javax.annotation.Nullable Integer containerCountLevel2) { + + this.containerCountLevel2 = containerCountLevel2; + return this; + } + + /** + * Get containerCountLevel2 + * @return containerCountLevel2 + */ + @javax.annotation.Nullable + + public Integer getContainerCountLevel2() { + return containerCountLevel2; + } + + + public void setContainerCountLevel2(@javax.annotation.Nullable Integer containerCountLevel2) { + this.containerCountLevel2 = containerCountLevel2; + } + + public MatchScoreBreakdown2015Alliance containerCountLevel3(@javax.annotation.Nullable Integer containerCountLevel3) { + + this.containerCountLevel3 = containerCountLevel3; + return this; + } + + /** + * Get containerCountLevel3 + * @return containerCountLevel3 + */ + @javax.annotation.Nullable + + public Integer getContainerCountLevel3() { + return containerCountLevel3; + } + + + public void setContainerCountLevel3(@javax.annotation.Nullable Integer containerCountLevel3) { + this.containerCountLevel3 = containerCountLevel3; + } + + public MatchScoreBreakdown2015Alliance containerCountLevel4(@javax.annotation.Nullable Integer containerCountLevel4) { + + this.containerCountLevel4 = containerCountLevel4; + return this; + } + + /** + * Get containerCountLevel4 + * @return containerCountLevel4 + */ + @javax.annotation.Nullable + + public Integer getContainerCountLevel4() { + return containerCountLevel4; + } + + + public void setContainerCountLevel4(@javax.annotation.Nullable Integer containerCountLevel4) { + this.containerCountLevel4 = containerCountLevel4; + } + + public MatchScoreBreakdown2015Alliance containerCountLevel5(@javax.annotation.Nullable Integer containerCountLevel5) { + + this.containerCountLevel5 = containerCountLevel5; + return this; + } + + /** + * Get containerCountLevel5 + * @return containerCountLevel5 + */ + @javax.annotation.Nullable + + public Integer getContainerCountLevel5() { + return containerCountLevel5; + } + + + public void setContainerCountLevel5(@javax.annotation.Nullable Integer containerCountLevel5) { + this.containerCountLevel5 = containerCountLevel5; + } + + public MatchScoreBreakdown2015Alliance containerCountLevel6(@javax.annotation.Nullable Integer containerCountLevel6) { + + this.containerCountLevel6 = containerCountLevel6; + return this; + } + + /** + * Get containerCountLevel6 + * @return containerCountLevel6 + */ + @javax.annotation.Nullable + + public Integer getContainerCountLevel6() { + return containerCountLevel6; + } + + + public void setContainerCountLevel6(@javax.annotation.Nullable Integer containerCountLevel6) { + this.containerCountLevel6 = containerCountLevel6; + } + + public MatchScoreBreakdown2015Alliance containerSet(@javax.annotation.Nullable Boolean containerSet) { + + this.containerSet = containerSet; + return this; + } + + /** + * Get containerSet + * @return containerSet + */ + @javax.annotation.Nullable + + public Boolean getContainerSet() { + return containerSet; + } + + + public void setContainerSet(@javax.annotation.Nullable Boolean containerSet) { + this.containerSet = containerSet; + } + + public MatchScoreBreakdown2015Alliance litterCountContainer(@javax.annotation.Nullable Integer litterCountContainer) { + + this.litterCountContainer = litterCountContainer; + return this; + } + + /** + * Get litterCountContainer + * @return litterCountContainer + */ + @javax.annotation.Nullable + + public Integer getLitterCountContainer() { + return litterCountContainer; + } + + + public void setLitterCountContainer(@javax.annotation.Nullable Integer litterCountContainer) { + this.litterCountContainer = litterCountContainer; + } + + public MatchScoreBreakdown2015Alliance litterCountLandfill(@javax.annotation.Nullable Integer litterCountLandfill) { + + this.litterCountLandfill = litterCountLandfill; + return this; + } + + /** + * Get litterCountLandfill + * @return litterCountLandfill + */ + @javax.annotation.Nullable + + public Integer getLitterCountLandfill() { + return litterCountLandfill; + } + + + public void setLitterCountLandfill(@javax.annotation.Nullable Integer litterCountLandfill) { + this.litterCountLandfill = litterCountLandfill; + } + + public MatchScoreBreakdown2015Alliance litterCountUnprocessed(@javax.annotation.Nullable Integer litterCountUnprocessed) { + + this.litterCountUnprocessed = litterCountUnprocessed; + return this; + } + + /** + * Get litterCountUnprocessed + * @return litterCountUnprocessed + */ + @javax.annotation.Nullable + + public Integer getLitterCountUnprocessed() { + return litterCountUnprocessed; + } + + + public void setLitterCountUnprocessed(@javax.annotation.Nullable Integer litterCountUnprocessed) { + this.litterCountUnprocessed = litterCountUnprocessed; + } + + public MatchScoreBreakdown2015Alliance robotSet(@javax.annotation.Nullable Boolean robotSet) { + + this.robotSet = robotSet; + return this; + } + + /** + * Get robotSet + * @return robotSet + */ + @javax.annotation.Nullable + + public Boolean getRobotSet() { + return robotSet; + } + + + public void setRobotSet(@javax.annotation.Nullable Boolean robotSet) { + this.robotSet = robotSet; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2015Alliance matchScoreBreakdown2015Alliance = (MatchScoreBreakdown2015Alliance) o; + return Objects.equals(this.autoPoints, matchScoreBreakdown2015Alliance.autoPoints) && + Objects.equals(this.teleopPoints, matchScoreBreakdown2015Alliance.teleopPoints) && + Objects.equals(this.containerPoints, matchScoreBreakdown2015Alliance.containerPoints) && + Objects.equals(this.totePoints, matchScoreBreakdown2015Alliance.totePoints) && + Objects.equals(this.litterPoints, matchScoreBreakdown2015Alliance.litterPoints) && + Objects.equals(this.foulPoints, matchScoreBreakdown2015Alliance.foulPoints) && + Objects.equals(this.adjustPoints, matchScoreBreakdown2015Alliance.adjustPoints) && + Objects.equals(this.totalPoints, matchScoreBreakdown2015Alliance.totalPoints) && + Objects.equals(this.foulCount, matchScoreBreakdown2015Alliance.foulCount) && + Objects.equals(this.toteCountFar, matchScoreBreakdown2015Alliance.toteCountFar) && + Objects.equals(this.toteCountNear, matchScoreBreakdown2015Alliance.toteCountNear) && + Objects.equals(this.toteSet, matchScoreBreakdown2015Alliance.toteSet) && + Objects.equals(this.toteStack, matchScoreBreakdown2015Alliance.toteStack) && + Objects.equals(this.containerCountLevel1, matchScoreBreakdown2015Alliance.containerCountLevel1) && + Objects.equals(this.containerCountLevel2, matchScoreBreakdown2015Alliance.containerCountLevel2) && + Objects.equals(this.containerCountLevel3, matchScoreBreakdown2015Alliance.containerCountLevel3) && + Objects.equals(this.containerCountLevel4, matchScoreBreakdown2015Alliance.containerCountLevel4) && + Objects.equals(this.containerCountLevel5, matchScoreBreakdown2015Alliance.containerCountLevel5) && + Objects.equals(this.containerCountLevel6, matchScoreBreakdown2015Alliance.containerCountLevel6) && + Objects.equals(this.containerSet, matchScoreBreakdown2015Alliance.containerSet) && + Objects.equals(this.litterCountContainer, matchScoreBreakdown2015Alliance.litterCountContainer) && + Objects.equals(this.litterCountLandfill, matchScoreBreakdown2015Alliance.litterCountLandfill) && + Objects.equals(this.litterCountUnprocessed, matchScoreBreakdown2015Alliance.litterCountUnprocessed) && + Objects.equals(this.robotSet, matchScoreBreakdown2015Alliance.robotSet); + } + + @Override + public int hashCode() { + return Objects.hash(autoPoints, teleopPoints, containerPoints, totePoints, litterPoints, foulPoints, adjustPoints, totalPoints, foulCount, toteCountFar, toteCountNear, toteSet, toteStack, containerCountLevel1, containerCountLevel2, containerCountLevel3, containerCountLevel4, containerCountLevel5, containerCountLevel6, containerSet, litterCountContainer, litterCountLandfill, litterCountUnprocessed, robotSet); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2015Alliance {\n"); + sb.append(" autoPoints: ").append(toIndentedString(autoPoints)).append("\n"); + sb.append(" teleopPoints: ").append(toIndentedString(teleopPoints)).append("\n"); + sb.append(" containerPoints: ").append(toIndentedString(containerPoints)).append("\n"); + sb.append(" totePoints: ").append(toIndentedString(totePoints)).append("\n"); + sb.append(" litterPoints: ").append(toIndentedString(litterPoints)).append("\n"); + sb.append(" foulPoints: ").append(toIndentedString(foulPoints)).append("\n"); + sb.append(" adjustPoints: ").append(toIndentedString(adjustPoints)).append("\n"); + sb.append(" totalPoints: ").append(toIndentedString(totalPoints)).append("\n"); + sb.append(" foulCount: ").append(toIndentedString(foulCount)).append("\n"); + sb.append(" toteCountFar: ").append(toIndentedString(toteCountFar)).append("\n"); + sb.append(" toteCountNear: ").append(toIndentedString(toteCountNear)).append("\n"); + sb.append(" toteSet: ").append(toIndentedString(toteSet)).append("\n"); + sb.append(" toteStack: ").append(toIndentedString(toteStack)).append("\n"); + sb.append(" containerCountLevel1: ").append(toIndentedString(containerCountLevel1)).append("\n"); + sb.append(" containerCountLevel2: ").append(toIndentedString(containerCountLevel2)).append("\n"); + sb.append(" containerCountLevel3: ").append(toIndentedString(containerCountLevel3)).append("\n"); + sb.append(" containerCountLevel4: ").append(toIndentedString(containerCountLevel4)).append("\n"); + sb.append(" containerCountLevel5: ").append(toIndentedString(containerCountLevel5)).append("\n"); + sb.append(" containerCountLevel6: ").append(toIndentedString(containerCountLevel6)).append("\n"); + sb.append(" containerSet: ").append(toIndentedString(containerSet)).append("\n"); + sb.append(" litterCountContainer: ").append(toIndentedString(litterCountContainer)).append("\n"); + sb.append(" litterCountLandfill: ").append(toIndentedString(litterCountLandfill)).append("\n"); + sb.append(" litterCountUnprocessed: ").append(toIndentedString(litterCountUnprocessed)).append("\n"); + sb.append(" robotSet: ").append(toIndentedString(robotSet)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2016.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2016.java new file mode 100644 index 000000000..4bc2404e4 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2016.java @@ -0,0 +1,126 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import thebluealliance.api.model.MatchScoreBreakdown2016Alliance; + +/** + * See the 2016 FMS API documentation for a description of each value. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2016 { + public static final String SERIALIZED_NAME_BLUE = "blue"; + @SerializedName(SERIALIZED_NAME_BLUE) + @javax.annotation.Nonnull + private MatchScoreBreakdown2016Alliance blue; + + public static final String SERIALIZED_NAME_RED = "red"; + @SerializedName(SERIALIZED_NAME_RED) + @javax.annotation.Nonnull + private MatchScoreBreakdown2016Alliance red; + + public MatchScoreBreakdown2016() { + } + + public MatchScoreBreakdown2016 blue(@javax.annotation.Nonnull MatchScoreBreakdown2016Alliance blue) { + + this.blue = blue; + return this; + } + + /** + * Get blue + * @return blue + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2016Alliance getBlue() { + return blue; + } + + + public void setBlue(@javax.annotation.Nonnull MatchScoreBreakdown2016Alliance blue) { + this.blue = blue; + } + + public MatchScoreBreakdown2016 red(@javax.annotation.Nonnull MatchScoreBreakdown2016Alliance red) { + + this.red = red; + return this; + } + + /** + * Get red + * @return red + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2016Alliance getRed() { + return red; + } + + + public void setRed(@javax.annotation.Nonnull MatchScoreBreakdown2016Alliance red) { + this.red = red; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2016 matchScoreBreakdown2016 = (MatchScoreBreakdown2016) o; + return Objects.equals(this.blue, matchScoreBreakdown2016.blue) && + Objects.equals(this.red, matchScoreBreakdown2016.red); + } + + @Override + public int hashCode() { + return Objects.hash(blue, red); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2016 {\n"); + sb.append(" blue: ").append(toIndentedString(blue)).append("\n"); + sb.append(" red: ").append(toIndentedString(red)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2016Alliance.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2016Alliance.java new file mode 100644 index 000000000..d7d5daf17 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2016Alliance.java @@ -0,0 +1,1280 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * MatchScoreBreakdown2016Alliance + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2016Alliance { + public static final String SERIALIZED_NAME_AUTO_POINTS = "autoPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_POINTS) + @javax.annotation.Nullable + private Integer autoPoints; + + public static final String SERIALIZED_NAME_TELEOP_POINTS = "teleopPoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_POINTS) + @javax.annotation.Nullable + private Integer teleopPoints; + + public static final String SERIALIZED_NAME_BREACH_POINTS = "breachPoints"; + @SerializedName(SERIALIZED_NAME_BREACH_POINTS) + @javax.annotation.Nullable + private Integer breachPoints; + + public static final String SERIALIZED_NAME_FOUL_POINTS = "foulPoints"; + @SerializedName(SERIALIZED_NAME_FOUL_POINTS) + @javax.annotation.Nullable + private Integer foulPoints; + + public static final String SERIALIZED_NAME_CAPTURE_POINTS = "capturePoints"; + @SerializedName(SERIALIZED_NAME_CAPTURE_POINTS) + @javax.annotation.Nullable + private Integer capturePoints; + + public static final String SERIALIZED_NAME_ADJUST_POINTS = "adjustPoints"; + @SerializedName(SERIALIZED_NAME_ADJUST_POINTS) + @javax.annotation.Nullable + private Integer adjustPoints; + + public static final String SERIALIZED_NAME_TOTAL_POINTS = "totalPoints"; + @SerializedName(SERIALIZED_NAME_TOTAL_POINTS) + @javax.annotation.Nullable + private Integer totalPoints; + + /** + * Gets or Sets robot1Auto + */ + @JsonAdapter(Robot1AutoEnum.Adapter.class) + public enum Robot1AutoEnum { + CROSSED(String.valueOf("Crossed")), + + REACHED(String.valueOf("Reached")), + + NONE(String.valueOf("None")); + + private String value; + + Robot1AutoEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static Robot1AutoEnum fromValue(String value) { + for (Robot1AutoEnum b : Robot1AutoEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final Robot1AutoEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public Robot1AutoEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return Robot1AutoEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ROBOT1_AUTO = "robot1Auto"; + @SerializedName(SERIALIZED_NAME_ROBOT1_AUTO) + @javax.annotation.Nullable + private Robot1AutoEnum robot1Auto; + + /** + * Gets or Sets robot2Auto + */ + @JsonAdapter(Robot2AutoEnum.Adapter.class) + public enum Robot2AutoEnum { + CROSSED(String.valueOf("Crossed")), + + REACHED(String.valueOf("Reached")), + + NONE(String.valueOf("None")); + + private String value; + + Robot2AutoEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static Robot2AutoEnum fromValue(String value) { + for (Robot2AutoEnum b : Robot2AutoEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final Robot2AutoEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public Robot2AutoEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return Robot2AutoEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ROBOT2_AUTO = "robot2Auto"; + @SerializedName(SERIALIZED_NAME_ROBOT2_AUTO) + @javax.annotation.Nullable + private Robot2AutoEnum robot2Auto; + + /** + * Gets or Sets robot3Auto + */ + @JsonAdapter(Robot3AutoEnum.Adapter.class) + public enum Robot3AutoEnum { + CROSSED(String.valueOf("Crossed")), + + REACHED(String.valueOf("Reached")), + + NONE(String.valueOf("None")); + + private String value; + + Robot3AutoEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static Robot3AutoEnum fromValue(String value) { + for (Robot3AutoEnum b : Robot3AutoEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final Robot3AutoEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public Robot3AutoEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return Robot3AutoEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ROBOT3_AUTO = "robot3Auto"; + @SerializedName(SERIALIZED_NAME_ROBOT3_AUTO) + @javax.annotation.Nullable + private Robot3AutoEnum robot3Auto; + + public static final String SERIALIZED_NAME_AUTO_REACH_POINTS = "autoReachPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_REACH_POINTS) + @javax.annotation.Nullable + private Integer autoReachPoints; + + public static final String SERIALIZED_NAME_AUTO_CROSSING_POINTS = "autoCrossingPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_CROSSING_POINTS) + @javax.annotation.Nullable + private Integer autoCrossingPoints; + + public static final String SERIALIZED_NAME_AUTO_BOULDERS_LOW = "autoBouldersLow"; + @SerializedName(SERIALIZED_NAME_AUTO_BOULDERS_LOW) + @javax.annotation.Nullable + private Integer autoBouldersLow; + + public static final String SERIALIZED_NAME_AUTO_BOULDERS_HIGH = "autoBouldersHigh"; + @SerializedName(SERIALIZED_NAME_AUTO_BOULDERS_HIGH) + @javax.annotation.Nullable + private Integer autoBouldersHigh; + + public static final String SERIALIZED_NAME_AUTO_BOULDER_POINTS = "autoBoulderPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_BOULDER_POINTS) + @javax.annotation.Nullable + private Integer autoBoulderPoints; + + public static final String SERIALIZED_NAME_TELEOP_CROSSING_POINTS = "teleopCrossingPoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_CROSSING_POINTS) + @javax.annotation.Nullable + private Integer teleopCrossingPoints; + + public static final String SERIALIZED_NAME_TELEOP_BOULDERS_LOW = "teleopBouldersLow"; + @SerializedName(SERIALIZED_NAME_TELEOP_BOULDERS_LOW) + @javax.annotation.Nullable + private Integer teleopBouldersLow; + + public static final String SERIALIZED_NAME_TELEOP_BOULDERS_HIGH = "teleopBouldersHigh"; + @SerializedName(SERIALIZED_NAME_TELEOP_BOULDERS_HIGH) + @javax.annotation.Nullable + private Integer teleopBouldersHigh; + + public static final String SERIALIZED_NAME_TELEOP_BOULDER_POINTS = "teleopBoulderPoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_BOULDER_POINTS) + @javax.annotation.Nullable + private Integer teleopBoulderPoints; + + public static final String SERIALIZED_NAME_TELEOP_DEFENSES_BREACHED = "teleopDefensesBreached"; + @SerializedName(SERIALIZED_NAME_TELEOP_DEFENSES_BREACHED) + @javax.annotation.Nullable + private Boolean teleopDefensesBreached; + + public static final String SERIALIZED_NAME_TELEOP_CHALLENGE_POINTS = "teleopChallengePoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_CHALLENGE_POINTS) + @javax.annotation.Nullable + private Integer teleopChallengePoints; + + public static final String SERIALIZED_NAME_TELEOP_SCALE_POINTS = "teleopScalePoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_SCALE_POINTS) + @javax.annotation.Nullable + private Integer teleopScalePoints; + + public static final String SERIALIZED_NAME_TELEOP_TOWER_CAPTURED = "teleopTowerCaptured"; + @SerializedName(SERIALIZED_NAME_TELEOP_TOWER_CAPTURED) + @javax.annotation.Nullable + private Integer teleopTowerCaptured; + + public static final String SERIALIZED_NAME_TOWER_FACE_A = "towerFaceA"; + @SerializedName(SERIALIZED_NAME_TOWER_FACE_A) + @javax.annotation.Nullable + private String towerFaceA; + + public static final String SERIALIZED_NAME_TOWER_FACE_B = "towerFaceB"; + @SerializedName(SERIALIZED_NAME_TOWER_FACE_B) + @javax.annotation.Nullable + private String towerFaceB; + + public static final String SERIALIZED_NAME_TOWER_FACE_C = "towerFaceC"; + @SerializedName(SERIALIZED_NAME_TOWER_FACE_C) + @javax.annotation.Nullable + private String towerFaceC; + + public static final String SERIALIZED_NAME_TOWER_END_STRENGTH = "towerEndStrength"; + @SerializedName(SERIALIZED_NAME_TOWER_END_STRENGTH) + @javax.annotation.Nullable + private Integer towerEndStrength; + + public static final String SERIALIZED_NAME_TECH_FOUL_COUNT = "techFoulCount"; + @SerializedName(SERIALIZED_NAME_TECH_FOUL_COUNT) + @javax.annotation.Nullable + private Integer techFoulCount; + + public static final String SERIALIZED_NAME_FOUL_COUNT = "foulCount"; + @SerializedName(SERIALIZED_NAME_FOUL_COUNT) + @javax.annotation.Nullable + private Integer foulCount; + + public static final String SERIALIZED_NAME_POSITION2 = "position2"; + @SerializedName(SERIALIZED_NAME_POSITION2) + @javax.annotation.Nullable + private String position2; + + public static final String SERIALIZED_NAME_POSITION3 = "position3"; + @SerializedName(SERIALIZED_NAME_POSITION3) + @javax.annotation.Nullable + private String position3; + + public static final String SERIALIZED_NAME_POSITION4 = "position4"; + @SerializedName(SERIALIZED_NAME_POSITION4) + @javax.annotation.Nullable + private String position4; + + public static final String SERIALIZED_NAME_POSITION5 = "position5"; + @SerializedName(SERIALIZED_NAME_POSITION5) + @javax.annotation.Nullable + private String position5; + + public static final String SERIALIZED_NAME_POSITION1CROSSINGS = "position1crossings"; + @SerializedName(SERIALIZED_NAME_POSITION1CROSSINGS) + @javax.annotation.Nullable + private Integer position1crossings; + + public static final String SERIALIZED_NAME_POSITION2CROSSINGS = "position2crossings"; + @SerializedName(SERIALIZED_NAME_POSITION2CROSSINGS) + @javax.annotation.Nullable + private Integer position2crossings; + + public static final String SERIALIZED_NAME_POSITION3CROSSINGS = "position3crossings"; + @SerializedName(SERIALIZED_NAME_POSITION3CROSSINGS) + @javax.annotation.Nullable + private Integer position3crossings; + + public static final String SERIALIZED_NAME_POSITION4CROSSINGS = "position4crossings"; + @SerializedName(SERIALIZED_NAME_POSITION4CROSSINGS) + @javax.annotation.Nullable + private Integer position4crossings; + + public static final String SERIALIZED_NAME_POSITION5CROSSINGS = "position5crossings"; + @SerializedName(SERIALIZED_NAME_POSITION5CROSSINGS) + @javax.annotation.Nullable + private Integer position5crossings; + + public MatchScoreBreakdown2016Alliance() { + } + + public MatchScoreBreakdown2016Alliance autoPoints(@javax.annotation.Nullable Integer autoPoints) { + + this.autoPoints = autoPoints; + return this; + } + + /** + * Get autoPoints + * @return autoPoints + */ + @javax.annotation.Nullable + + public Integer getAutoPoints() { + return autoPoints; + } + + + public void setAutoPoints(@javax.annotation.Nullable Integer autoPoints) { + this.autoPoints = autoPoints; + } + + public MatchScoreBreakdown2016Alliance teleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + + this.teleopPoints = teleopPoints; + return this; + } + + /** + * Get teleopPoints + * @return teleopPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopPoints() { + return teleopPoints; + } + + + public void setTeleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + this.teleopPoints = teleopPoints; + } + + public MatchScoreBreakdown2016Alliance breachPoints(@javax.annotation.Nullable Integer breachPoints) { + + this.breachPoints = breachPoints; + return this; + } + + /** + * Get breachPoints + * @return breachPoints + */ + @javax.annotation.Nullable + + public Integer getBreachPoints() { + return breachPoints; + } + + + public void setBreachPoints(@javax.annotation.Nullable Integer breachPoints) { + this.breachPoints = breachPoints; + } + + public MatchScoreBreakdown2016Alliance foulPoints(@javax.annotation.Nullable Integer foulPoints) { + + this.foulPoints = foulPoints; + return this; + } + + /** + * Get foulPoints + * @return foulPoints + */ + @javax.annotation.Nullable + + public Integer getFoulPoints() { + return foulPoints; + } + + + public void setFoulPoints(@javax.annotation.Nullable Integer foulPoints) { + this.foulPoints = foulPoints; + } + + public MatchScoreBreakdown2016Alliance capturePoints(@javax.annotation.Nullable Integer capturePoints) { + + this.capturePoints = capturePoints; + return this; + } + + /** + * Get capturePoints + * @return capturePoints + */ + @javax.annotation.Nullable + + public Integer getCapturePoints() { + return capturePoints; + } + + + public void setCapturePoints(@javax.annotation.Nullable Integer capturePoints) { + this.capturePoints = capturePoints; + } + + public MatchScoreBreakdown2016Alliance adjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + + this.adjustPoints = adjustPoints; + return this; + } + + /** + * Get adjustPoints + * @return adjustPoints + */ + @javax.annotation.Nullable + + public Integer getAdjustPoints() { + return adjustPoints; + } + + + public void setAdjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + this.adjustPoints = adjustPoints; + } + + public MatchScoreBreakdown2016Alliance totalPoints(@javax.annotation.Nullable Integer totalPoints) { + + this.totalPoints = totalPoints; + return this; + } + + /** + * Get totalPoints + * @return totalPoints + */ + @javax.annotation.Nullable + + public Integer getTotalPoints() { + return totalPoints; + } + + + public void setTotalPoints(@javax.annotation.Nullable Integer totalPoints) { + this.totalPoints = totalPoints; + } + + public MatchScoreBreakdown2016Alliance robot1Auto(@javax.annotation.Nullable Robot1AutoEnum robot1Auto) { + + this.robot1Auto = robot1Auto; + return this; + } + + /** + * Get robot1Auto + * @return robot1Auto + */ + @javax.annotation.Nullable + + public Robot1AutoEnum getRobot1Auto() { + return robot1Auto; + } + + + public void setRobot1Auto(@javax.annotation.Nullable Robot1AutoEnum robot1Auto) { + this.robot1Auto = robot1Auto; + } + + public MatchScoreBreakdown2016Alliance robot2Auto(@javax.annotation.Nullable Robot2AutoEnum robot2Auto) { + + this.robot2Auto = robot2Auto; + return this; + } + + /** + * Get robot2Auto + * @return robot2Auto + */ + @javax.annotation.Nullable + + public Robot2AutoEnum getRobot2Auto() { + return robot2Auto; + } + + + public void setRobot2Auto(@javax.annotation.Nullable Robot2AutoEnum robot2Auto) { + this.robot2Auto = robot2Auto; + } + + public MatchScoreBreakdown2016Alliance robot3Auto(@javax.annotation.Nullable Robot3AutoEnum robot3Auto) { + + this.robot3Auto = robot3Auto; + return this; + } + + /** + * Get robot3Auto + * @return robot3Auto + */ + @javax.annotation.Nullable + + public Robot3AutoEnum getRobot3Auto() { + return robot3Auto; + } + + + public void setRobot3Auto(@javax.annotation.Nullable Robot3AutoEnum robot3Auto) { + this.robot3Auto = robot3Auto; + } + + public MatchScoreBreakdown2016Alliance autoReachPoints(@javax.annotation.Nullable Integer autoReachPoints) { + + this.autoReachPoints = autoReachPoints; + return this; + } + + /** + * Get autoReachPoints + * @return autoReachPoints + */ + @javax.annotation.Nullable + + public Integer getAutoReachPoints() { + return autoReachPoints; + } + + + public void setAutoReachPoints(@javax.annotation.Nullable Integer autoReachPoints) { + this.autoReachPoints = autoReachPoints; + } + + public MatchScoreBreakdown2016Alliance autoCrossingPoints(@javax.annotation.Nullable Integer autoCrossingPoints) { + + this.autoCrossingPoints = autoCrossingPoints; + return this; + } + + /** + * Get autoCrossingPoints + * @return autoCrossingPoints + */ + @javax.annotation.Nullable + + public Integer getAutoCrossingPoints() { + return autoCrossingPoints; + } + + + public void setAutoCrossingPoints(@javax.annotation.Nullable Integer autoCrossingPoints) { + this.autoCrossingPoints = autoCrossingPoints; + } + + public MatchScoreBreakdown2016Alliance autoBouldersLow(@javax.annotation.Nullable Integer autoBouldersLow) { + + this.autoBouldersLow = autoBouldersLow; + return this; + } + + /** + * Get autoBouldersLow + * @return autoBouldersLow + */ + @javax.annotation.Nullable + + public Integer getAutoBouldersLow() { + return autoBouldersLow; + } + + + public void setAutoBouldersLow(@javax.annotation.Nullable Integer autoBouldersLow) { + this.autoBouldersLow = autoBouldersLow; + } + + public MatchScoreBreakdown2016Alliance autoBouldersHigh(@javax.annotation.Nullable Integer autoBouldersHigh) { + + this.autoBouldersHigh = autoBouldersHigh; + return this; + } + + /** + * Get autoBouldersHigh + * @return autoBouldersHigh + */ + @javax.annotation.Nullable + + public Integer getAutoBouldersHigh() { + return autoBouldersHigh; + } + + + public void setAutoBouldersHigh(@javax.annotation.Nullable Integer autoBouldersHigh) { + this.autoBouldersHigh = autoBouldersHigh; + } + + public MatchScoreBreakdown2016Alliance autoBoulderPoints(@javax.annotation.Nullable Integer autoBoulderPoints) { + + this.autoBoulderPoints = autoBoulderPoints; + return this; + } + + /** + * Get autoBoulderPoints + * @return autoBoulderPoints + */ + @javax.annotation.Nullable + + public Integer getAutoBoulderPoints() { + return autoBoulderPoints; + } + + + public void setAutoBoulderPoints(@javax.annotation.Nullable Integer autoBoulderPoints) { + this.autoBoulderPoints = autoBoulderPoints; + } + + public MatchScoreBreakdown2016Alliance teleopCrossingPoints(@javax.annotation.Nullable Integer teleopCrossingPoints) { + + this.teleopCrossingPoints = teleopCrossingPoints; + return this; + } + + /** + * Get teleopCrossingPoints + * @return teleopCrossingPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopCrossingPoints() { + return teleopCrossingPoints; + } + + + public void setTeleopCrossingPoints(@javax.annotation.Nullable Integer teleopCrossingPoints) { + this.teleopCrossingPoints = teleopCrossingPoints; + } + + public MatchScoreBreakdown2016Alliance teleopBouldersLow(@javax.annotation.Nullable Integer teleopBouldersLow) { + + this.teleopBouldersLow = teleopBouldersLow; + return this; + } + + /** + * Get teleopBouldersLow + * @return teleopBouldersLow + */ + @javax.annotation.Nullable + + public Integer getTeleopBouldersLow() { + return teleopBouldersLow; + } + + + public void setTeleopBouldersLow(@javax.annotation.Nullable Integer teleopBouldersLow) { + this.teleopBouldersLow = teleopBouldersLow; + } + + public MatchScoreBreakdown2016Alliance teleopBouldersHigh(@javax.annotation.Nullable Integer teleopBouldersHigh) { + + this.teleopBouldersHigh = teleopBouldersHigh; + return this; + } + + /** + * Get teleopBouldersHigh + * @return teleopBouldersHigh + */ + @javax.annotation.Nullable + + public Integer getTeleopBouldersHigh() { + return teleopBouldersHigh; + } + + + public void setTeleopBouldersHigh(@javax.annotation.Nullable Integer teleopBouldersHigh) { + this.teleopBouldersHigh = teleopBouldersHigh; + } + + public MatchScoreBreakdown2016Alliance teleopBoulderPoints(@javax.annotation.Nullable Integer teleopBoulderPoints) { + + this.teleopBoulderPoints = teleopBoulderPoints; + return this; + } + + /** + * Get teleopBoulderPoints + * @return teleopBoulderPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopBoulderPoints() { + return teleopBoulderPoints; + } + + + public void setTeleopBoulderPoints(@javax.annotation.Nullable Integer teleopBoulderPoints) { + this.teleopBoulderPoints = teleopBoulderPoints; + } + + public MatchScoreBreakdown2016Alliance teleopDefensesBreached(@javax.annotation.Nullable Boolean teleopDefensesBreached) { + + this.teleopDefensesBreached = teleopDefensesBreached; + return this; + } + + /** + * Get teleopDefensesBreached + * @return teleopDefensesBreached + */ + @javax.annotation.Nullable + + public Boolean getTeleopDefensesBreached() { + return teleopDefensesBreached; + } + + + public void setTeleopDefensesBreached(@javax.annotation.Nullable Boolean teleopDefensesBreached) { + this.teleopDefensesBreached = teleopDefensesBreached; + } + + public MatchScoreBreakdown2016Alliance teleopChallengePoints(@javax.annotation.Nullable Integer teleopChallengePoints) { + + this.teleopChallengePoints = teleopChallengePoints; + return this; + } + + /** + * Get teleopChallengePoints + * @return teleopChallengePoints + */ + @javax.annotation.Nullable + + public Integer getTeleopChallengePoints() { + return teleopChallengePoints; + } + + + public void setTeleopChallengePoints(@javax.annotation.Nullable Integer teleopChallengePoints) { + this.teleopChallengePoints = teleopChallengePoints; + } + + public MatchScoreBreakdown2016Alliance teleopScalePoints(@javax.annotation.Nullable Integer teleopScalePoints) { + + this.teleopScalePoints = teleopScalePoints; + return this; + } + + /** + * Get teleopScalePoints + * @return teleopScalePoints + */ + @javax.annotation.Nullable + + public Integer getTeleopScalePoints() { + return teleopScalePoints; + } + + + public void setTeleopScalePoints(@javax.annotation.Nullable Integer teleopScalePoints) { + this.teleopScalePoints = teleopScalePoints; + } + + public MatchScoreBreakdown2016Alliance teleopTowerCaptured(@javax.annotation.Nullable Integer teleopTowerCaptured) { + + this.teleopTowerCaptured = teleopTowerCaptured; + return this; + } + + /** + * Get teleopTowerCaptured + * @return teleopTowerCaptured + */ + @javax.annotation.Nullable + + public Integer getTeleopTowerCaptured() { + return teleopTowerCaptured; + } + + + public void setTeleopTowerCaptured(@javax.annotation.Nullable Integer teleopTowerCaptured) { + this.teleopTowerCaptured = teleopTowerCaptured; + } + + public MatchScoreBreakdown2016Alliance towerFaceA(@javax.annotation.Nullable String towerFaceA) { + + this.towerFaceA = towerFaceA; + return this; + } + + /** + * Get towerFaceA + * @return towerFaceA + */ + @javax.annotation.Nullable + + public String getTowerFaceA() { + return towerFaceA; + } + + + public void setTowerFaceA(@javax.annotation.Nullable String towerFaceA) { + this.towerFaceA = towerFaceA; + } + + public MatchScoreBreakdown2016Alliance towerFaceB(@javax.annotation.Nullable String towerFaceB) { + + this.towerFaceB = towerFaceB; + return this; + } + + /** + * Get towerFaceB + * @return towerFaceB + */ + @javax.annotation.Nullable + + public String getTowerFaceB() { + return towerFaceB; + } + + + public void setTowerFaceB(@javax.annotation.Nullable String towerFaceB) { + this.towerFaceB = towerFaceB; + } + + public MatchScoreBreakdown2016Alliance towerFaceC(@javax.annotation.Nullable String towerFaceC) { + + this.towerFaceC = towerFaceC; + return this; + } + + /** + * Get towerFaceC + * @return towerFaceC + */ + @javax.annotation.Nullable + + public String getTowerFaceC() { + return towerFaceC; + } + + + public void setTowerFaceC(@javax.annotation.Nullable String towerFaceC) { + this.towerFaceC = towerFaceC; + } + + public MatchScoreBreakdown2016Alliance towerEndStrength(@javax.annotation.Nullable Integer towerEndStrength) { + + this.towerEndStrength = towerEndStrength; + return this; + } + + /** + * Get towerEndStrength + * @return towerEndStrength + */ + @javax.annotation.Nullable + + public Integer getTowerEndStrength() { + return towerEndStrength; + } + + + public void setTowerEndStrength(@javax.annotation.Nullable Integer towerEndStrength) { + this.towerEndStrength = towerEndStrength; + } + + public MatchScoreBreakdown2016Alliance techFoulCount(@javax.annotation.Nullable Integer techFoulCount) { + + this.techFoulCount = techFoulCount; + return this; + } + + /** + * Get techFoulCount + * @return techFoulCount + */ + @javax.annotation.Nullable + + public Integer getTechFoulCount() { + return techFoulCount; + } + + + public void setTechFoulCount(@javax.annotation.Nullable Integer techFoulCount) { + this.techFoulCount = techFoulCount; + } + + public MatchScoreBreakdown2016Alliance foulCount(@javax.annotation.Nullable Integer foulCount) { + + this.foulCount = foulCount; + return this; + } + + /** + * Get foulCount + * @return foulCount + */ + @javax.annotation.Nullable + + public Integer getFoulCount() { + return foulCount; + } + + + public void setFoulCount(@javax.annotation.Nullable Integer foulCount) { + this.foulCount = foulCount; + } + + public MatchScoreBreakdown2016Alliance position2(@javax.annotation.Nullable String position2) { + + this.position2 = position2; + return this; + } + + /** + * Get position2 + * @return position2 + */ + @javax.annotation.Nullable + + public String getPosition2() { + return position2; + } + + + public void setPosition2(@javax.annotation.Nullable String position2) { + this.position2 = position2; + } + + public MatchScoreBreakdown2016Alliance position3(@javax.annotation.Nullable String position3) { + + this.position3 = position3; + return this; + } + + /** + * Get position3 + * @return position3 + */ + @javax.annotation.Nullable + + public String getPosition3() { + return position3; + } + + + public void setPosition3(@javax.annotation.Nullable String position3) { + this.position3 = position3; + } + + public MatchScoreBreakdown2016Alliance position4(@javax.annotation.Nullable String position4) { + + this.position4 = position4; + return this; + } + + /** + * Get position4 + * @return position4 + */ + @javax.annotation.Nullable + + public String getPosition4() { + return position4; + } + + + public void setPosition4(@javax.annotation.Nullable String position4) { + this.position4 = position4; + } + + public MatchScoreBreakdown2016Alliance position5(@javax.annotation.Nullable String position5) { + + this.position5 = position5; + return this; + } + + /** + * Get position5 + * @return position5 + */ + @javax.annotation.Nullable + + public String getPosition5() { + return position5; + } + + + public void setPosition5(@javax.annotation.Nullable String position5) { + this.position5 = position5; + } + + public MatchScoreBreakdown2016Alliance position1crossings(@javax.annotation.Nullable Integer position1crossings) { + + this.position1crossings = position1crossings; + return this; + } + + /** + * Get position1crossings + * @return position1crossings + */ + @javax.annotation.Nullable + + public Integer getPosition1crossings() { + return position1crossings; + } + + + public void setPosition1crossings(@javax.annotation.Nullable Integer position1crossings) { + this.position1crossings = position1crossings; + } + + public MatchScoreBreakdown2016Alliance position2crossings(@javax.annotation.Nullable Integer position2crossings) { + + this.position2crossings = position2crossings; + return this; + } + + /** + * Get position2crossings + * @return position2crossings + */ + @javax.annotation.Nullable + + public Integer getPosition2crossings() { + return position2crossings; + } + + + public void setPosition2crossings(@javax.annotation.Nullable Integer position2crossings) { + this.position2crossings = position2crossings; + } + + public MatchScoreBreakdown2016Alliance position3crossings(@javax.annotation.Nullable Integer position3crossings) { + + this.position3crossings = position3crossings; + return this; + } + + /** + * Get position3crossings + * @return position3crossings + */ + @javax.annotation.Nullable + + public Integer getPosition3crossings() { + return position3crossings; + } + + + public void setPosition3crossings(@javax.annotation.Nullable Integer position3crossings) { + this.position3crossings = position3crossings; + } + + public MatchScoreBreakdown2016Alliance position4crossings(@javax.annotation.Nullable Integer position4crossings) { + + this.position4crossings = position4crossings; + return this; + } + + /** + * Get position4crossings + * @return position4crossings + */ + @javax.annotation.Nullable + + public Integer getPosition4crossings() { + return position4crossings; + } + + + public void setPosition4crossings(@javax.annotation.Nullable Integer position4crossings) { + this.position4crossings = position4crossings; + } + + public MatchScoreBreakdown2016Alliance position5crossings(@javax.annotation.Nullable Integer position5crossings) { + + this.position5crossings = position5crossings; + return this; + } + + /** + * Get position5crossings + * @return position5crossings + */ + @javax.annotation.Nullable + + public Integer getPosition5crossings() { + return position5crossings; + } + + + public void setPosition5crossings(@javax.annotation.Nullable Integer position5crossings) { + this.position5crossings = position5crossings; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2016Alliance matchScoreBreakdown2016Alliance = (MatchScoreBreakdown2016Alliance) o; + return Objects.equals(this.autoPoints, matchScoreBreakdown2016Alliance.autoPoints) && + Objects.equals(this.teleopPoints, matchScoreBreakdown2016Alliance.teleopPoints) && + Objects.equals(this.breachPoints, matchScoreBreakdown2016Alliance.breachPoints) && + Objects.equals(this.foulPoints, matchScoreBreakdown2016Alliance.foulPoints) && + Objects.equals(this.capturePoints, matchScoreBreakdown2016Alliance.capturePoints) && + Objects.equals(this.adjustPoints, matchScoreBreakdown2016Alliance.adjustPoints) && + Objects.equals(this.totalPoints, matchScoreBreakdown2016Alliance.totalPoints) && + Objects.equals(this.robot1Auto, matchScoreBreakdown2016Alliance.robot1Auto) && + Objects.equals(this.robot2Auto, matchScoreBreakdown2016Alliance.robot2Auto) && + Objects.equals(this.robot3Auto, matchScoreBreakdown2016Alliance.robot3Auto) && + Objects.equals(this.autoReachPoints, matchScoreBreakdown2016Alliance.autoReachPoints) && + Objects.equals(this.autoCrossingPoints, matchScoreBreakdown2016Alliance.autoCrossingPoints) && + Objects.equals(this.autoBouldersLow, matchScoreBreakdown2016Alliance.autoBouldersLow) && + Objects.equals(this.autoBouldersHigh, matchScoreBreakdown2016Alliance.autoBouldersHigh) && + Objects.equals(this.autoBoulderPoints, matchScoreBreakdown2016Alliance.autoBoulderPoints) && + Objects.equals(this.teleopCrossingPoints, matchScoreBreakdown2016Alliance.teleopCrossingPoints) && + Objects.equals(this.teleopBouldersLow, matchScoreBreakdown2016Alliance.teleopBouldersLow) && + Objects.equals(this.teleopBouldersHigh, matchScoreBreakdown2016Alliance.teleopBouldersHigh) && + Objects.equals(this.teleopBoulderPoints, matchScoreBreakdown2016Alliance.teleopBoulderPoints) && + Objects.equals(this.teleopDefensesBreached, matchScoreBreakdown2016Alliance.teleopDefensesBreached) && + Objects.equals(this.teleopChallengePoints, matchScoreBreakdown2016Alliance.teleopChallengePoints) && + Objects.equals(this.teleopScalePoints, matchScoreBreakdown2016Alliance.teleopScalePoints) && + Objects.equals(this.teleopTowerCaptured, matchScoreBreakdown2016Alliance.teleopTowerCaptured) && + Objects.equals(this.towerFaceA, matchScoreBreakdown2016Alliance.towerFaceA) && + Objects.equals(this.towerFaceB, matchScoreBreakdown2016Alliance.towerFaceB) && + Objects.equals(this.towerFaceC, matchScoreBreakdown2016Alliance.towerFaceC) && + Objects.equals(this.towerEndStrength, matchScoreBreakdown2016Alliance.towerEndStrength) && + Objects.equals(this.techFoulCount, matchScoreBreakdown2016Alliance.techFoulCount) && + Objects.equals(this.foulCount, matchScoreBreakdown2016Alliance.foulCount) && + Objects.equals(this.position2, matchScoreBreakdown2016Alliance.position2) && + Objects.equals(this.position3, matchScoreBreakdown2016Alliance.position3) && + Objects.equals(this.position4, matchScoreBreakdown2016Alliance.position4) && + Objects.equals(this.position5, matchScoreBreakdown2016Alliance.position5) && + Objects.equals(this.position1crossings, matchScoreBreakdown2016Alliance.position1crossings) && + Objects.equals(this.position2crossings, matchScoreBreakdown2016Alliance.position2crossings) && + Objects.equals(this.position3crossings, matchScoreBreakdown2016Alliance.position3crossings) && + Objects.equals(this.position4crossings, matchScoreBreakdown2016Alliance.position4crossings) && + Objects.equals(this.position5crossings, matchScoreBreakdown2016Alliance.position5crossings); + } + + @Override + public int hashCode() { + return Objects.hash(autoPoints, teleopPoints, breachPoints, foulPoints, capturePoints, adjustPoints, totalPoints, robot1Auto, robot2Auto, robot3Auto, autoReachPoints, autoCrossingPoints, autoBouldersLow, autoBouldersHigh, autoBoulderPoints, teleopCrossingPoints, teleopBouldersLow, teleopBouldersHigh, teleopBoulderPoints, teleopDefensesBreached, teleopChallengePoints, teleopScalePoints, teleopTowerCaptured, towerFaceA, towerFaceB, towerFaceC, towerEndStrength, techFoulCount, foulCount, position2, position3, position4, position5, position1crossings, position2crossings, position3crossings, position4crossings, position5crossings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2016Alliance {\n"); + sb.append(" autoPoints: ").append(toIndentedString(autoPoints)).append("\n"); + sb.append(" teleopPoints: ").append(toIndentedString(teleopPoints)).append("\n"); + sb.append(" breachPoints: ").append(toIndentedString(breachPoints)).append("\n"); + sb.append(" foulPoints: ").append(toIndentedString(foulPoints)).append("\n"); + sb.append(" capturePoints: ").append(toIndentedString(capturePoints)).append("\n"); + sb.append(" adjustPoints: ").append(toIndentedString(adjustPoints)).append("\n"); + sb.append(" totalPoints: ").append(toIndentedString(totalPoints)).append("\n"); + sb.append(" robot1Auto: ").append(toIndentedString(robot1Auto)).append("\n"); + sb.append(" robot2Auto: ").append(toIndentedString(robot2Auto)).append("\n"); + sb.append(" robot3Auto: ").append(toIndentedString(robot3Auto)).append("\n"); + sb.append(" autoReachPoints: ").append(toIndentedString(autoReachPoints)).append("\n"); + sb.append(" autoCrossingPoints: ").append(toIndentedString(autoCrossingPoints)).append("\n"); + sb.append(" autoBouldersLow: ").append(toIndentedString(autoBouldersLow)).append("\n"); + sb.append(" autoBouldersHigh: ").append(toIndentedString(autoBouldersHigh)).append("\n"); + sb.append(" autoBoulderPoints: ").append(toIndentedString(autoBoulderPoints)).append("\n"); + sb.append(" teleopCrossingPoints: ").append(toIndentedString(teleopCrossingPoints)).append("\n"); + sb.append(" teleopBouldersLow: ").append(toIndentedString(teleopBouldersLow)).append("\n"); + sb.append(" teleopBouldersHigh: ").append(toIndentedString(teleopBouldersHigh)).append("\n"); + sb.append(" teleopBoulderPoints: ").append(toIndentedString(teleopBoulderPoints)).append("\n"); + sb.append(" teleopDefensesBreached: ").append(toIndentedString(teleopDefensesBreached)).append("\n"); + sb.append(" teleopChallengePoints: ").append(toIndentedString(teleopChallengePoints)).append("\n"); + sb.append(" teleopScalePoints: ").append(toIndentedString(teleopScalePoints)).append("\n"); + sb.append(" teleopTowerCaptured: ").append(toIndentedString(teleopTowerCaptured)).append("\n"); + sb.append(" towerFaceA: ").append(toIndentedString(towerFaceA)).append("\n"); + sb.append(" towerFaceB: ").append(toIndentedString(towerFaceB)).append("\n"); + sb.append(" towerFaceC: ").append(toIndentedString(towerFaceC)).append("\n"); + sb.append(" towerEndStrength: ").append(toIndentedString(towerEndStrength)).append("\n"); + sb.append(" techFoulCount: ").append(toIndentedString(techFoulCount)).append("\n"); + sb.append(" foulCount: ").append(toIndentedString(foulCount)).append("\n"); + sb.append(" position2: ").append(toIndentedString(position2)).append("\n"); + sb.append(" position3: ").append(toIndentedString(position3)).append("\n"); + sb.append(" position4: ").append(toIndentedString(position4)).append("\n"); + sb.append(" position5: ").append(toIndentedString(position5)).append("\n"); + sb.append(" position1crossings: ").append(toIndentedString(position1crossings)).append("\n"); + sb.append(" position2crossings: ").append(toIndentedString(position2crossings)).append("\n"); + sb.append(" position3crossings: ").append(toIndentedString(position3crossings)).append("\n"); + sb.append(" position4crossings: ").append(toIndentedString(position4crossings)).append("\n"); + sb.append(" position5crossings: ").append(toIndentedString(position5crossings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2017.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2017.java new file mode 100644 index 000000000..82150828a --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2017.java @@ -0,0 +1,126 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import thebluealliance.api.model.MatchScoreBreakdown2017Alliance; + +/** + * See the 2017 FMS API documentation for a description of each value. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2017 { + public static final String SERIALIZED_NAME_BLUE = "blue"; + @SerializedName(SERIALIZED_NAME_BLUE) + @javax.annotation.Nonnull + private MatchScoreBreakdown2017Alliance blue; + + public static final String SERIALIZED_NAME_RED = "red"; + @SerializedName(SERIALIZED_NAME_RED) + @javax.annotation.Nonnull + private MatchScoreBreakdown2017Alliance red; + + public MatchScoreBreakdown2017() { + } + + public MatchScoreBreakdown2017 blue(@javax.annotation.Nonnull MatchScoreBreakdown2017Alliance blue) { + + this.blue = blue; + return this; + } + + /** + * Get blue + * @return blue + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2017Alliance getBlue() { + return blue; + } + + + public void setBlue(@javax.annotation.Nonnull MatchScoreBreakdown2017Alliance blue) { + this.blue = blue; + } + + public MatchScoreBreakdown2017 red(@javax.annotation.Nonnull MatchScoreBreakdown2017Alliance red) { + + this.red = red; + return this; + } + + /** + * Get red + * @return red + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2017Alliance getRed() { + return red; + } + + + public void setRed(@javax.annotation.Nonnull MatchScoreBreakdown2017Alliance red) { + this.red = red; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2017 matchScoreBreakdown2017 = (MatchScoreBreakdown2017) o; + return Objects.equals(this.blue, matchScoreBreakdown2017.blue) && + Objects.equals(this.red, matchScoreBreakdown2017.red); + } + + @Override + public int hashCode() { + return Objects.hash(blue, red); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2017 {\n"); + sb.append(" blue: ").append(toIndentedString(blue)).append("\n"); + sb.append(" red: ").append(toIndentedString(red)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2017Alliance.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2017Alliance.java new file mode 100644 index 000000000..8267313f8 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2017Alliance.java @@ -0,0 +1,1140 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * MatchScoreBreakdown2017Alliance + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2017Alliance { + public static final String SERIALIZED_NAME_AUTO_POINTS = "autoPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_POINTS) + @javax.annotation.Nullable + private Integer autoPoints; + + public static final String SERIALIZED_NAME_TELEOP_POINTS = "teleopPoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_POINTS) + @javax.annotation.Nullable + private Integer teleopPoints; + + public static final String SERIALIZED_NAME_FOUL_POINTS = "foulPoints"; + @SerializedName(SERIALIZED_NAME_FOUL_POINTS) + @javax.annotation.Nullable + private Integer foulPoints; + + public static final String SERIALIZED_NAME_ADJUST_POINTS = "adjustPoints"; + @SerializedName(SERIALIZED_NAME_ADJUST_POINTS) + @javax.annotation.Nullable + private Integer adjustPoints; + + public static final String SERIALIZED_NAME_TOTAL_POINTS = "totalPoints"; + @SerializedName(SERIALIZED_NAME_TOTAL_POINTS) + @javax.annotation.Nullable + private Integer totalPoints; + + /** + * Gets or Sets robot1Auto + */ + @JsonAdapter(Robot1AutoEnum.Adapter.class) + public enum Robot1AutoEnum { + UNKNOWN(String.valueOf("Unknown")), + + MOBILITY(String.valueOf("Mobility")), + + NONE(String.valueOf("None")); + + private String value; + + Robot1AutoEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static Robot1AutoEnum fromValue(String value) { + for (Robot1AutoEnum b : Robot1AutoEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final Robot1AutoEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public Robot1AutoEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return Robot1AutoEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ROBOT1_AUTO = "robot1Auto"; + @SerializedName(SERIALIZED_NAME_ROBOT1_AUTO) + @javax.annotation.Nullable + private Robot1AutoEnum robot1Auto; + + /** + * Gets or Sets robot2Auto + */ + @JsonAdapter(Robot2AutoEnum.Adapter.class) + public enum Robot2AutoEnum { + UNKNOWN(String.valueOf("Unknown")), + + MOBILITY(String.valueOf("Mobility")), + + NONE(String.valueOf("None")); + + private String value; + + Robot2AutoEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static Robot2AutoEnum fromValue(String value) { + for (Robot2AutoEnum b : Robot2AutoEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final Robot2AutoEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public Robot2AutoEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return Robot2AutoEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ROBOT2_AUTO = "robot2Auto"; + @SerializedName(SERIALIZED_NAME_ROBOT2_AUTO) + @javax.annotation.Nullable + private Robot2AutoEnum robot2Auto; + + /** + * Gets or Sets robot3Auto + */ + @JsonAdapter(Robot3AutoEnum.Adapter.class) + public enum Robot3AutoEnum { + UNKNOWN(String.valueOf("Unknown")), + + MOBILITY(String.valueOf("Mobility")), + + NONE(String.valueOf("None")); + + private String value; + + Robot3AutoEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static Robot3AutoEnum fromValue(String value) { + for (Robot3AutoEnum b : Robot3AutoEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final Robot3AutoEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public Robot3AutoEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return Robot3AutoEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ROBOT3_AUTO = "robot3Auto"; + @SerializedName(SERIALIZED_NAME_ROBOT3_AUTO) + @javax.annotation.Nullable + private Robot3AutoEnum robot3Auto; + + public static final String SERIALIZED_NAME_ROTOR1_AUTO = "rotor1Auto"; + @SerializedName(SERIALIZED_NAME_ROTOR1_AUTO) + @javax.annotation.Nullable + private Boolean rotor1Auto; + + public static final String SERIALIZED_NAME_ROTOR2_AUTO = "rotor2Auto"; + @SerializedName(SERIALIZED_NAME_ROTOR2_AUTO) + @javax.annotation.Nullable + private Boolean rotor2Auto; + + public static final String SERIALIZED_NAME_AUTO_FUEL_LOW = "autoFuelLow"; + @SerializedName(SERIALIZED_NAME_AUTO_FUEL_LOW) + @javax.annotation.Nullable + private Integer autoFuelLow; + + public static final String SERIALIZED_NAME_AUTO_FUEL_HIGH = "autoFuelHigh"; + @SerializedName(SERIALIZED_NAME_AUTO_FUEL_HIGH) + @javax.annotation.Nullable + private Integer autoFuelHigh; + + public static final String SERIALIZED_NAME_AUTO_MOBILITY_POINTS = "autoMobilityPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_MOBILITY_POINTS) + @javax.annotation.Nullable + private Integer autoMobilityPoints; + + public static final String SERIALIZED_NAME_AUTO_ROTOR_POINTS = "autoRotorPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_ROTOR_POINTS) + @javax.annotation.Nullable + private Integer autoRotorPoints; + + public static final String SERIALIZED_NAME_AUTO_FUEL_POINTS = "autoFuelPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_FUEL_POINTS) + @javax.annotation.Nullable + private Integer autoFuelPoints; + + public static final String SERIALIZED_NAME_TELEOP_FUEL_POINTS = "teleopFuelPoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_FUEL_POINTS) + @javax.annotation.Nullable + private Integer teleopFuelPoints; + + public static final String SERIALIZED_NAME_TELEOP_FUEL_LOW = "teleopFuelLow"; + @SerializedName(SERIALIZED_NAME_TELEOP_FUEL_LOW) + @javax.annotation.Nullable + private Integer teleopFuelLow; + + public static final String SERIALIZED_NAME_TELEOP_FUEL_HIGH = "teleopFuelHigh"; + @SerializedName(SERIALIZED_NAME_TELEOP_FUEL_HIGH) + @javax.annotation.Nullable + private Integer teleopFuelHigh; + + public static final String SERIALIZED_NAME_TELEOP_ROTOR_POINTS = "teleopRotorPoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_ROTOR_POINTS) + @javax.annotation.Nullable + private Integer teleopRotorPoints; + + public static final String SERIALIZED_NAME_K_PA_RANKING_POINT_ACHIEVED = "kPaRankingPointAchieved"; + @SerializedName(SERIALIZED_NAME_K_PA_RANKING_POINT_ACHIEVED) + @javax.annotation.Nullable + private Boolean kPaRankingPointAchieved; + + public static final String SERIALIZED_NAME_TELEOP_TAKEOFF_POINTS = "teleopTakeoffPoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_TAKEOFF_POINTS) + @javax.annotation.Nullable + private Integer teleopTakeoffPoints; + + public static final String SERIALIZED_NAME_K_PA_BONUS_POINTS = "kPaBonusPoints"; + @SerializedName(SERIALIZED_NAME_K_PA_BONUS_POINTS) + @javax.annotation.Nullable + private Integer kPaBonusPoints; + + public static final String SERIALIZED_NAME_ROTOR_BONUS_POINTS = "rotorBonusPoints"; + @SerializedName(SERIALIZED_NAME_ROTOR_BONUS_POINTS) + @javax.annotation.Nullable + private Integer rotorBonusPoints; + + public static final String SERIALIZED_NAME_ROTOR1_ENGAGED = "rotor1Engaged"; + @SerializedName(SERIALIZED_NAME_ROTOR1_ENGAGED) + @javax.annotation.Nullable + private Boolean rotor1Engaged; + + public static final String SERIALIZED_NAME_ROTOR2_ENGAGED = "rotor2Engaged"; + @SerializedName(SERIALIZED_NAME_ROTOR2_ENGAGED) + @javax.annotation.Nullable + private Boolean rotor2Engaged; + + public static final String SERIALIZED_NAME_ROTOR3_ENGAGED = "rotor3Engaged"; + @SerializedName(SERIALIZED_NAME_ROTOR3_ENGAGED) + @javax.annotation.Nullable + private Boolean rotor3Engaged; + + public static final String SERIALIZED_NAME_ROTOR4_ENGAGED = "rotor4Engaged"; + @SerializedName(SERIALIZED_NAME_ROTOR4_ENGAGED) + @javax.annotation.Nullable + private Boolean rotor4Engaged; + + public static final String SERIALIZED_NAME_ROTOR_RANKING_POINT_ACHIEVED = "rotorRankingPointAchieved"; + @SerializedName(SERIALIZED_NAME_ROTOR_RANKING_POINT_ACHIEVED) + @javax.annotation.Nullable + private Boolean rotorRankingPointAchieved; + + public static final String SERIALIZED_NAME_TECH_FOUL_COUNT = "techFoulCount"; + @SerializedName(SERIALIZED_NAME_TECH_FOUL_COUNT) + @javax.annotation.Nullable + private Integer techFoulCount; + + public static final String SERIALIZED_NAME_FOUL_COUNT = "foulCount"; + @SerializedName(SERIALIZED_NAME_FOUL_COUNT) + @javax.annotation.Nullable + private Integer foulCount; + + public static final String SERIALIZED_NAME_TOUCHPAD_NEAR = "touchpadNear"; + @SerializedName(SERIALIZED_NAME_TOUCHPAD_NEAR) + @javax.annotation.Nullable + private String touchpadNear; + + public static final String SERIALIZED_NAME_TOUCHPAD_MIDDLE = "touchpadMiddle"; + @SerializedName(SERIALIZED_NAME_TOUCHPAD_MIDDLE) + @javax.annotation.Nullable + private String touchpadMiddle; + + public static final String SERIALIZED_NAME_TOUCHPAD_FAR = "touchpadFar"; + @SerializedName(SERIALIZED_NAME_TOUCHPAD_FAR) + @javax.annotation.Nullable + private String touchpadFar; + + public MatchScoreBreakdown2017Alliance() { + } + + public MatchScoreBreakdown2017Alliance autoPoints(@javax.annotation.Nullable Integer autoPoints) { + + this.autoPoints = autoPoints; + return this; + } + + /** + * Get autoPoints + * @return autoPoints + */ + @javax.annotation.Nullable + + public Integer getAutoPoints() { + return autoPoints; + } + + + public void setAutoPoints(@javax.annotation.Nullable Integer autoPoints) { + this.autoPoints = autoPoints; + } + + public MatchScoreBreakdown2017Alliance teleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + + this.teleopPoints = teleopPoints; + return this; + } + + /** + * Get teleopPoints + * @return teleopPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopPoints() { + return teleopPoints; + } + + + public void setTeleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + this.teleopPoints = teleopPoints; + } + + public MatchScoreBreakdown2017Alliance foulPoints(@javax.annotation.Nullable Integer foulPoints) { + + this.foulPoints = foulPoints; + return this; + } + + /** + * Get foulPoints + * @return foulPoints + */ + @javax.annotation.Nullable + + public Integer getFoulPoints() { + return foulPoints; + } + + + public void setFoulPoints(@javax.annotation.Nullable Integer foulPoints) { + this.foulPoints = foulPoints; + } + + public MatchScoreBreakdown2017Alliance adjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + + this.adjustPoints = adjustPoints; + return this; + } + + /** + * Get adjustPoints + * @return adjustPoints + */ + @javax.annotation.Nullable + + public Integer getAdjustPoints() { + return adjustPoints; + } + + + public void setAdjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + this.adjustPoints = adjustPoints; + } + + public MatchScoreBreakdown2017Alliance totalPoints(@javax.annotation.Nullable Integer totalPoints) { + + this.totalPoints = totalPoints; + return this; + } + + /** + * Get totalPoints + * @return totalPoints + */ + @javax.annotation.Nullable + + public Integer getTotalPoints() { + return totalPoints; + } + + + public void setTotalPoints(@javax.annotation.Nullable Integer totalPoints) { + this.totalPoints = totalPoints; + } + + public MatchScoreBreakdown2017Alliance robot1Auto(@javax.annotation.Nullable Robot1AutoEnum robot1Auto) { + + this.robot1Auto = robot1Auto; + return this; + } + + /** + * Get robot1Auto + * @return robot1Auto + */ + @javax.annotation.Nullable + + public Robot1AutoEnum getRobot1Auto() { + return robot1Auto; + } + + + public void setRobot1Auto(@javax.annotation.Nullable Robot1AutoEnum robot1Auto) { + this.robot1Auto = robot1Auto; + } + + public MatchScoreBreakdown2017Alliance robot2Auto(@javax.annotation.Nullable Robot2AutoEnum robot2Auto) { + + this.robot2Auto = robot2Auto; + return this; + } + + /** + * Get robot2Auto + * @return robot2Auto + */ + @javax.annotation.Nullable + + public Robot2AutoEnum getRobot2Auto() { + return robot2Auto; + } + + + public void setRobot2Auto(@javax.annotation.Nullable Robot2AutoEnum robot2Auto) { + this.robot2Auto = robot2Auto; + } + + public MatchScoreBreakdown2017Alliance robot3Auto(@javax.annotation.Nullable Robot3AutoEnum robot3Auto) { + + this.robot3Auto = robot3Auto; + return this; + } + + /** + * Get robot3Auto + * @return robot3Auto + */ + @javax.annotation.Nullable + + public Robot3AutoEnum getRobot3Auto() { + return robot3Auto; + } + + + public void setRobot3Auto(@javax.annotation.Nullable Robot3AutoEnum robot3Auto) { + this.robot3Auto = robot3Auto; + } + + public MatchScoreBreakdown2017Alliance rotor1Auto(@javax.annotation.Nullable Boolean rotor1Auto) { + + this.rotor1Auto = rotor1Auto; + return this; + } + + /** + * Get rotor1Auto + * @return rotor1Auto + */ + @javax.annotation.Nullable + + public Boolean getRotor1Auto() { + return rotor1Auto; + } + + + public void setRotor1Auto(@javax.annotation.Nullable Boolean rotor1Auto) { + this.rotor1Auto = rotor1Auto; + } + + public MatchScoreBreakdown2017Alliance rotor2Auto(@javax.annotation.Nullable Boolean rotor2Auto) { + + this.rotor2Auto = rotor2Auto; + return this; + } + + /** + * Get rotor2Auto + * @return rotor2Auto + */ + @javax.annotation.Nullable + + public Boolean getRotor2Auto() { + return rotor2Auto; + } + + + public void setRotor2Auto(@javax.annotation.Nullable Boolean rotor2Auto) { + this.rotor2Auto = rotor2Auto; + } + + public MatchScoreBreakdown2017Alliance autoFuelLow(@javax.annotation.Nullable Integer autoFuelLow) { + + this.autoFuelLow = autoFuelLow; + return this; + } + + /** + * Get autoFuelLow + * @return autoFuelLow + */ + @javax.annotation.Nullable + + public Integer getAutoFuelLow() { + return autoFuelLow; + } + + + public void setAutoFuelLow(@javax.annotation.Nullable Integer autoFuelLow) { + this.autoFuelLow = autoFuelLow; + } + + public MatchScoreBreakdown2017Alliance autoFuelHigh(@javax.annotation.Nullable Integer autoFuelHigh) { + + this.autoFuelHigh = autoFuelHigh; + return this; + } + + /** + * Get autoFuelHigh + * @return autoFuelHigh + */ + @javax.annotation.Nullable + + public Integer getAutoFuelHigh() { + return autoFuelHigh; + } + + + public void setAutoFuelHigh(@javax.annotation.Nullable Integer autoFuelHigh) { + this.autoFuelHigh = autoFuelHigh; + } + + public MatchScoreBreakdown2017Alliance autoMobilityPoints(@javax.annotation.Nullable Integer autoMobilityPoints) { + + this.autoMobilityPoints = autoMobilityPoints; + return this; + } + + /** + * Get autoMobilityPoints + * @return autoMobilityPoints + */ + @javax.annotation.Nullable + + public Integer getAutoMobilityPoints() { + return autoMobilityPoints; + } + + + public void setAutoMobilityPoints(@javax.annotation.Nullable Integer autoMobilityPoints) { + this.autoMobilityPoints = autoMobilityPoints; + } + + public MatchScoreBreakdown2017Alliance autoRotorPoints(@javax.annotation.Nullable Integer autoRotorPoints) { + + this.autoRotorPoints = autoRotorPoints; + return this; + } + + /** + * Get autoRotorPoints + * @return autoRotorPoints + */ + @javax.annotation.Nullable + + public Integer getAutoRotorPoints() { + return autoRotorPoints; + } + + + public void setAutoRotorPoints(@javax.annotation.Nullable Integer autoRotorPoints) { + this.autoRotorPoints = autoRotorPoints; + } + + public MatchScoreBreakdown2017Alliance autoFuelPoints(@javax.annotation.Nullable Integer autoFuelPoints) { + + this.autoFuelPoints = autoFuelPoints; + return this; + } + + /** + * Get autoFuelPoints + * @return autoFuelPoints + */ + @javax.annotation.Nullable + + public Integer getAutoFuelPoints() { + return autoFuelPoints; + } + + + public void setAutoFuelPoints(@javax.annotation.Nullable Integer autoFuelPoints) { + this.autoFuelPoints = autoFuelPoints; + } + + public MatchScoreBreakdown2017Alliance teleopFuelPoints(@javax.annotation.Nullable Integer teleopFuelPoints) { + + this.teleopFuelPoints = teleopFuelPoints; + return this; + } + + /** + * Get teleopFuelPoints + * @return teleopFuelPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopFuelPoints() { + return teleopFuelPoints; + } + + + public void setTeleopFuelPoints(@javax.annotation.Nullable Integer teleopFuelPoints) { + this.teleopFuelPoints = teleopFuelPoints; + } + + public MatchScoreBreakdown2017Alliance teleopFuelLow(@javax.annotation.Nullable Integer teleopFuelLow) { + + this.teleopFuelLow = teleopFuelLow; + return this; + } + + /** + * Get teleopFuelLow + * @return teleopFuelLow + */ + @javax.annotation.Nullable + + public Integer getTeleopFuelLow() { + return teleopFuelLow; + } + + + public void setTeleopFuelLow(@javax.annotation.Nullable Integer teleopFuelLow) { + this.teleopFuelLow = teleopFuelLow; + } + + public MatchScoreBreakdown2017Alliance teleopFuelHigh(@javax.annotation.Nullable Integer teleopFuelHigh) { + + this.teleopFuelHigh = teleopFuelHigh; + return this; + } + + /** + * Get teleopFuelHigh + * @return teleopFuelHigh + */ + @javax.annotation.Nullable + + public Integer getTeleopFuelHigh() { + return teleopFuelHigh; + } + + + public void setTeleopFuelHigh(@javax.annotation.Nullable Integer teleopFuelHigh) { + this.teleopFuelHigh = teleopFuelHigh; + } + + public MatchScoreBreakdown2017Alliance teleopRotorPoints(@javax.annotation.Nullable Integer teleopRotorPoints) { + + this.teleopRotorPoints = teleopRotorPoints; + return this; + } + + /** + * Get teleopRotorPoints + * @return teleopRotorPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopRotorPoints() { + return teleopRotorPoints; + } + + + public void setTeleopRotorPoints(@javax.annotation.Nullable Integer teleopRotorPoints) { + this.teleopRotorPoints = teleopRotorPoints; + } + + public MatchScoreBreakdown2017Alliance kPaRankingPointAchieved(@javax.annotation.Nullable Boolean kPaRankingPointAchieved) { + + this.kPaRankingPointAchieved = kPaRankingPointAchieved; + return this; + } + + /** + * Get kPaRankingPointAchieved + * @return kPaRankingPointAchieved + */ + @javax.annotation.Nullable + + public Boolean getkPaRankingPointAchieved() { + return kPaRankingPointAchieved; + } + + + public void setkPaRankingPointAchieved(@javax.annotation.Nullable Boolean kPaRankingPointAchieved) { + this.kPaRankingPointAchieved = kPaRankingPointAchieved; + } + + public MatchScoreBreakdown2017Alliance teleopTakeoffPoints(@javax.annotation.Nullable Integer teleopTakeoffPoints) { + + this.teleopTakeoffPoints = teleopTakeoffPoints; + return this; + } + + /** + * Get teleopTakeoffPoints + * @return teleopTakeoffPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopTakeoffPoints() { + return teleopTakeoffPoints; + } + + + public void setTeleopTakeoffPoints(@javax.annotation.Nullable Integer teleopTakeoffPoints) { + this.teleopTakeoffPoints = teleopTakeoffPoints; + } + + public MatchScoreBreakdown2017Alliance kPaBonusPoints(@javax.annotation.Nullable Integer kPaBonusPoints) { + + this.kPaBonusPoints = kPaBonusPoints; + return this; + } + + /** + * Get kPaBonusPoints + * @return kPaBonusPoints + */ + @javax.annotation.Nullable + + public Integer getkPaBonusPoints() { + return kPaBonusPoints; + } + + + public void setkPaBonusPoints(@javax.annotation.Nullable Integer kPaBonusPoints) { + this.kPaBonusPoints = kPaBonusPoints; + } + + public MatchScoreBreakdown2017Alliance rotorBonusPoints(@javax.annotation.Nullable Integer rotorBonusPoints) { + + this.rotorBonusPoints = rotorBonusPoints; + return this; + } + + /** + * Get rotorBonusPoints + * @return rotorBonusPoints + */ + @javax.annotation.Nullable + + public Integer getRotorBonusPoints() { + return rotorBonusPoints; + } + + + public void setRotorBonusPoints(@javax.annotation.Nullable Integer rotorBonusPoints) { + this.rotorBonusPoints = rotorBonusPoints; + } + + public MatchScoreBreakdown2017Alliance rotor1Engaged(@javax.annotation.Nullable Boolean rotor1Engaged) { + + this.rotor1Engaged = rotor1Engaged; + return this; + } + + /** + * Get rotor1Engaged + * @return rotor1Engaged + */ + @javax.annotation.Nullable + + public Boolean getRotor1Engaged() { + return rotor1Engaged; + } + + + public void setRotor1Engaged(@javax.annotation.Nullable Boolean rotor1Engaged) { + this.rotor1Engaged = rotor1Engaged; + } + + public MatchScoreBreakdown2017Alliance rotor2Engaged(@javax.annotation.Nullable Boolean rotor2Engaged) { + + this.rotor2Engaged = rotor2Engaged; + return this; + } + + /** + * Get rotor2Engaged + * @return rotor2Engaged + */ + @javax.annotation.Nullable + + public Boolean getRotor2Engaged() { + return rotor2Engaged; + } + + + public void setRotor2Engaged(@javax.annotation.Nullable Boolean rotor2Engaged) { + this.rotor2Engaged = rotor2Engaged; + } + + public MatchScoreBreakdown2017Alliance rotor3Engaged(@javax.annotation.Nullable Boolean rotor3Engaged) { + + this.rotor3Engaged = rotor3Engaged; + return this; + } + + /** + * Get rotor3Engaged + * @return rotor3Engaged + */ + @javax.annotation.Nullable + + public Boolean getRotor3Engaged() { + return rotor3Engaged; + } + + + public void setRotor3Engaged(@javax.annotation.Nullable Boolean rotor3Engaged) { + this.rotor3Engaged = rotor3Engaged; + } + + public MatchScoreBreakdown2017Alliance rotor4Engaged(@javax.annotation.Nullable Boolean rotor4Engaged) { + + this.rotor4Engaged = rotor4Engaged; + return this; + } + + /** + * Get rotor4Engaged + * @return rotor4Engaged + */ + @javax.annotation.Nullable + + public Boolean getRotor4Engaged() { + return rotor4Engaged; + } + + + public void setRotor4Engaged(@javax.annotation.Nullable Boolean rotor4Engaged) { + this.rotor4Engaged = rotor4Engaged; + } + + public MatchScoreBreakdown2017Alliance rotorRankingPointAchieved(@javax.annotation.Nullable Boolean rotorRankingPointAchieved) { + + this.rotorRankingPointAchieved = rotorRankingPointAchieved; + return this; + } + + /** + * Get rotorRankingPointAchieved + * @return rotorRankingPointAchieved + */ + @javax.annotation.Nullable + + public Boolean getRotorRankingPointAchieved() { + return rotorRankingPointAchieved; + } + + + public void setRotorRankingPointAchieved(@javax.annotation.Nullable Boolean rotorRankingPointAchieved) { + this.rotorRankingPointAchieved = rotorRankingPointAchieved; + } + + public MatchScoreBreakdown2017Alliance techFoulCount(@javax.annotation.Nullable Integer techFoulCount) { + + this.techFoulCount = techFoulCount; + return this; + } + + /** + * Get techFoulCount + * @return techFoulCount + */ + @javax.annotation.Nullable + + public Integer getTechFoulCount() { + return techFoulCount; + } + + + public void setTechFoulCount(@javax.annotation.Nullable Integer techFoulCount) { + this.techFoulCount = techFoulCount; + } + + public MatchScoreBreakdown2017Alliance foulCount(@javax.annotation.Nullable Integer foulCount) { + + this.foulCount = foulCount; + return this; + } + + /** + * Get foulCount + * @return foulCount + */ + @javax.annotation.Nullable + + public Integer getFoulCount() { + return foulCount; + } + + + public void setFoulCount(@javax.annotation.Nullable Integer foulCount) { + this.foulCount = foulCount; + } + + public MatchScoreBreakdown2017Alliance touchpadNear(@javax.annotation.Nullable String touchpadNear) { + + this.touchpadNear = touchpadNear; + return this; + } + + /** + * Get touchpadNear + * @return touchpadNear + */ + @javax.annotation.Nullable + + public String getTouchpadNear() { + return touchpadNear; + } + + + public void setTouchpadNear(@javax.annotation.Nullable String touchpadNear) { + this.touchpadNear = touchpadNear; + } + + public MatchScoreBreakdown2017Alliance touchpadMiddle(@javax.annotation.Nullable String touchpadMiddle) { + + this.touchpadMiddle = touchpadMiddle; + return this; + } + + /** + * Get touchpadMiddle + * @return touchpadMiddle + */ + @javax.annotation.Nullable + + public String getTouchpadMiddle() { + return touchpadMiddle; + } + + + public void setTouchpadMiddle(@javax.annotation.Nullable String touchpadMiddle) { + this.touchpadMiddle = touchpadMiddle; + } + + public MatchScoreBreakdown2017Alliance touchpadFar(@javax.annotation.Nullable String touchpadFar) { + + this.touchpadFar = touchpadFar; + return this; + } + + /** + * Get touchpadFar + * @return touchpadFar + */ + @javax.annotation.Nullable + + public String getTouchpadFar() { + return touchpadFar; + } + + + public void setTouchpadFar(@javax.annotation.Nullable String touchpadFar) { + this.touchpadFar = touchpadFar; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2017Alliance matchScoreBreakdown2017Alliance = (MatchScoreBreakdown2017Alliance) o; + return Objects.equals(this.autoPoints, matchScoreBreakdown2017Alliance.autoPoints) && + Objects.equals(this.teleopPoints, matchScoreBreakdown2017Alliance.teleopPoints) && + Objects.equals(this.foulPoints, matchScoreBreakdown2017Alliance.foulPoints) && + Objects.equals(this.adjustPoints, matchScoreBreakdown2017Alliance.adjustPoints) && + Objects.equals(this.totalPoints, matchScoreBreakdown2017Alliance.totalPoints) && + Objects.equals(this.robot1Auto, matchScoreBreakdown2017Alliance.robot1Auto) && + Objects.equals(this.robot2Auto, matchScoreBreakdown2017Alliance.robot2Auto) && + Objects.equals(this.robot3Auto, matchScoreBreakdown2017Alliance.robot3Auto) && + Objects.equals(this.rotor1Auto, matchScoreBreakdown2017Alliance.rotor1Auto) && + Objects.equals(this.rotor2Auto, matchScoreBreakdown2017Alliance.rotor2Auto) && + Objects.equals(this.autoFuelLow, matchScoreBreakdown2017Alliance.autoFuelLow) && + Objects.equals(this.autoFuelHigh, matchScoreBreakdown2017Alliance.autoFuelHigh) && + Objects.equals(this.autoMobilityPoints, matchScoreBreakdown2017Alliance.autoMobilityPoints) && + Objects.equals(this.autoRotorPoints, matchScoreBreakdown2017Alliance.autoRotorPoints) && + Objects.equals(this.autoFuelPoints, matchScoreBreakdown2017Alliance.autoFuelPoints) && + Objects.equals(this.teleopFuelPoints, matchScoreBreakdown2017Alliance.teleopFuelPoints) && + Objects.equals(this.teleopFuelLow, matchScoreBreakdown2017Alliance.teleopFuelLow) && + Objects.equals(this.teleopFuelHigh, matchScoreBreakdown2017Alliance.teleopFuelHigh) && + Objects.equals(this.teleopRotorPoints, matchScoreBreakdown2017Alliance.teleopRotorPoints) && + Objects.equals(this.kPaRankingPointAchieved, matchScoreBreakdown2017Alliance.kPaRankingPointAchieved) && + Objects.equals(this.teleopTakeoffPoints, matchScoreBreakdown2017Alliance.teleopTakeoffPoints) && + Objects.equals(this.kPaBonusPoints, matchScoreBreakdown2017Alliance.kPaBonusPoints) && + Objects.equals(this.rotorBonusPoints, matchScoreBreakdown2017Alliance.rotorBonusPoints) && + Objects.equals(this.rotor1Engaged, matchScoreBreakdown2017Alliance.rotor1Engaged) && + Objects.equals(this.rotor2Engaged, matchScoreBreakdown2017Alliance.rotor2Engaged) && + Objects.equals(this.rotor3Engaged, matchScoreBreakdown2017Alliance.rotor3Engaged) && + Objects.equals(this.rotor4Engaged, matchScoreBreakdown2017Alliance.rotor4Engaged) && + Objects.equals(this.rotorRankingPointAchieved, matchScoreBreakdown2017Alliance.rotorRankingPointAchieved) && + Objects.equals(this.techFoulCount, matchScoreBreakdown2017Alliance.techFoulCount) && + Objects.equals(this.foulCount, matchScoreBreakdown2017Alliance.foulCount) && + Objects.equals(this.touchpadNear, matchScoreBreakdown2017Alliance.touchpadNear) && + Objects.equals(this.touchpadMiddle, matchScoreBreakdown2017Alliance.touchpadMiddle) && + Objects.equals(this.touchpadFar, matchScoreBreakdown2017Alliance.touchpadFar); + } + + @Override + public int hashCode() { + return Objects.hash(autoPoints, teleopPoints, foulPoints, adjustPoints, totalPoints, robot1Auto, robot2Auto, robot3Auto, rotor1Auto, rotor2Auto, autoFuelLow, autoFuelHigh, autoMobilityPoints, autoRotorPoints, autoFuelPoints, teleopFuelPoints, teleopFuelLow, teleopFuelHigh, teleopRotorPoints, kPaRankingPointAchieved, teleopTakeoffPoints, kPaBonusPoints, rotorBonusPoints, rotor1Engaged, rotor2Engaged, rotor3Engaged, rotor4Engaged, rotorRankingPointAchieved, techFoulCount, foulCount, touchpadNear, touchpadMiddle, touchpadFar); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2017Alliance {\n"); + sb.append(" autoPoints: ").append(toIndentedString(autoPoints)).append("\n"); + sb.append(" teleopPoints: ").append(toIndentedString(teleopPoints)).append("\n"); + sb.append(" foulPoints: ").append(toIndentedString(foulPoints)).append("\n"); + sb.append(" adjustPoints: ").append(toIndentedString(adjustPoints)).append("\n"); + sb.append(" totalPoints: ").append(toIndentedString(totalPoints)).append("\n"); + sb.append(" robot1Auto: ").append(toIndentedString(robot1Auto)).append("\n"); + sb.append(" robot2Auto: ").append(toIndentedString(robot2Auto)).append("\n"); + sb.append(" robot3Auto: ").append(toIndentedString(robot3Auto)).append("\n"); + sb.append(" rotor1Auto: ").append(toIndentedString(rotor1Auto)).append("\n"); + sb.append(" rotor2Auto: ").append(toIndentedString(rotor2Auto)).append("\n"); + sb.append(" autoFuelLow: ").append(toIndentedString(autoFuelLow)).append("\n"); + sb.append(" autoFuelHigh: ").append(toIndentedString(autoFuelHigh)).append("\n"); + sb.append(" autoMobilityPoints: ").append(toIndentedString(autoMobilityPoints)).append("\n"); + sb.append(" autoRotorPoints: ").append(toIndentedString(autoRotorPoints)).append("\n"); + sb.append(" autoFuelPoints: ").append(toIndentedString(autoFuelPoints)).append("\n"); + sb.append(" teleopFuelPoints: ").append(toIndentedString(teleopFuelPoints)).append("\n"); + sb.append(" teleopFuelLow: ").append(toIndentedString(teleopFuelLow)).append("\n"); + sb.append(" teleopFuelHigh: ").append(toIndentedString(teleopFuelHigh)).append("\n"); + sb.append(" teleopRotorPoints: ").append(toIndentedString(teleopRotorPoints)).append("\n"); + sb.append(" kPaRankingPointAchieved: ").append(toIndentedString(kPaRankingPointAchieved)).append("\n"); + sb.append(" teleopTakeoffPoints: ").append(toIndentedString(teleopTakeoffPoints)).append("\n"); + sb.append(" kPaBonusPoints: ").append(toIndentedString(kPaBonusPoints)).append("\n"); + sb.append(" rotorBonusPoints: ").append(toIndentedString(rotorBonusPoints)).append("\n"); + sb.append(" rotor1Engaged: ").append(toIndentedString(rotor1Engaged)).append("\n"); + sb.append(" rotor2Engaged: ").append(toIndentedString(rotor2Engaged)).append("\n"); + sb.append(" rotor3Engaged: ").append(toIndentedString(rotor3Engaged)).append("\n"); + sb.append(" rotor4Engaged: ").append(toIndentedString(rotor4Engaged)).append("\n"); + sb.append(" rotorRankingPointAchieved: ").append(toIndentedString(rotorRankingPointAchieved)).append("\n"); + sb.append(" techFoulCount: ").append(toIndentedString(techFoulCount)).append("\n"); + sb.append(" foulCount: ").append(toIndentedString(foulCount)).append("\n"); + sb.append(" touchpadNear: ").append(toIndentedString(touchpadNear)).append("\n"); + sb.append(" touchpadMiddle: ").append(toIndentedString(touchpadMiddle)).append("\n"); + sb.append(" touchpadFar: ").append(toIndentedString(touchpadFar)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2018.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2018.java new file mode 100644 index 000000000..9bd2bfbeb --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2018.java @@ -0,0 +1,126 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import thebluealliance.api.model.MatchScoreBreakdown2018Alliance; + +/** + * See the 2018 FMS API documentation for a description of each value. https://frcevents2.docs.apiary.io/#/reference/match-results/score-details + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2018 { + public static final String SERIALIZED_NAME_BLUE = "blue"; + @SerializedName(SERIALIZED_NAME_BLUE) + @javax.annotation.Nonnull + private MatchScoreBreakdown2018Alliance blue; + + public static final String SERIALIZED_NAME_RED = "red"; + @SerializedName(SERIALIZED_NAME_RED) + @javax.annotation.Nonnull + private MatchScoreBreakdown2018Alliance red; + + public MatchScoreBreakdown2018() { + } + + public MatchScoreBreakdown2018 blue(@javax.annotation.Nonnull MatchScoreBreakdown2018Alliance blue) { + + this.blue = blue; + return this; + } + + /** + * Get blue + * @return blue + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2018Alliance getBlue() { + return blue; + } + + + public void setBlue(@javax.annotation.Nonnull MatchScoreBreakdown2018Alliance blue) { + this.blue = blue; + } + + public MatchScoreBreakdown2018 red(@javax.annotation.Nonnull MatchScoreBreakdown2018Alliance red) { + + this.red = red; + return this; + } + + /** + * Get red + * @return red + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2018Alliance getRed() { + return red; + } + + + public void setRed(@javax.annotation.Nonnull MatchScoreBreakdown2018Alliance red) { + this.red = red; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2018 matchScoreBreakdown2018 = (MatchScoreBreakdown2018) o; + return Objects.equals(this.blue, matchScoreBreakdown2018.blue) && + Objects.equals(this.red, matchScoreBreakdown2018.red); + } + + @Override + public int hashCode() { + return Objects.hash(blue, red); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2018 {\n"); + sb.append(" blue: ").append(toIndentedString(blue)).append("\n"); + sb.append(" red: ").append(toIndentedString(red)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2018Alliance.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2018Alliance.java new file mode 100644 index 000000000..235dc859c --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2018Alliance.java @@ -0,0 +1,1105 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * MatchScoreBreakdown2018Alliance + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2018Alliance { + public static final String SERIALIZED_NAME_ADJUST_POINTS = "adjustPoints"; + @SerializedName(SERIALIZED_NAME_ADJUST_POINTS) + @javax.annotation.Nullable + private Integer adjustPoints; + + public static final String SERIALIZED_NAME_AUTO_OWNERSHIP_POINTS = "autoOwnershipPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_OWNERSHIP_POINTS) + @javax.annotation.Nullable + private Integer autoOwnershipPoints; + + public static final String SERIALIZED_NAME_AUTO_POINTS = "autoPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_POINTS) + @javax.annotation.Nullable + private Integer autoPoints; + + public static final String SERIALIZED_NAME_AUTO_QUEST_RANKING_POINT = "autoQuestRankingPoint"; + @SerializedName(SERIALIZED_NAME_AUTO_QUEST_RANKING_POINT) + @javax.annotation.Nullable + private Boolean autoQuestRankingPoint; + + public static final String SERIALIZED_NAME_AUTO_ROBOT1 = "autoRobot1"; + @SerializedName(SERIALIZED_NAME_AUTO_ROBOT1) + @javax.annotation.Nullable + private String autoRobot1; + + public static final String SERIALIZED_NAME_AUTO_ROBOT2 = "autoRobot2"; + @SerializedName(SERIALIZED_NAME_AUTO_ROBOT2) + @javax.annotation.Nullable + private String autoRobot2; + + public static final String SERIALIZED_NAME_AUTO_ROBOT3 = "autoRobot3"; + @SerializedName(SERIALIZED_NAME_AUTO_ROBOT3) + @javax.annotation.Nullable + private String autoRobot3; + + public static final String SERIALIZED_NAME_AUTO_RUN_POINTS = "autoRunPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_RUN_POINTS) + @javax.annotation.Nullable + private Integer autoRunPoints; + + public static final String SERIALIZED_NAME_AUTO_SCALE_OWNERSHIP_SEC = "autoScaleOwnershipSec"; + @SerializedName(SERIALIZED_NAME_AUTO_SCALE_OWNERSHIP_SEC) + @javax.annotation.Nullable + private Integer autoScaleOwnershipSec; + + public static final String SERIALIZED_NAME_AUTO_SWITCH_AT_ZERO = "autoSwitchAtZero"; + @SerializedName(SERIALIZED_NAME_AUTO_SWITCH_AT_ZERO) + @javax.annotation.Nullable + private Boolean autoSwitchAtZero; + + public static final String SERIALIZED_NAME_AUTO_SWITCH_OWNERSHIP_SEC = "autoSwitchOwnershipSec"; + @SerializedName(SERIALIZED_NAME_AUTO_SWITCH_OWNERSHIP_SEC) + @javax.annotation.Nullable + private Integer autoSwitchOwnershipSec; + + public static final String SERIALIZED_NAME_ENDGAME_POINTS = "endgamePoints"; + @SerializedName(SERIALIZED_NAME_ENDGAME_POINTS) + @javax.annotation.Nullable + private Integer endgamePoints; + + public static final String SERIALIZED_NAME_ENDGAME_ROBOT1 = "endgameRobot1"; + @SerializedName(SERIALIZED_NAME_ENDGAME_ROBOT1) + @javax.annotation.Nullable + private String endgameRobot1; + + public static final String SERIALIZED_NAME_ENDGAME_ROBOT2 = "endgameRobot2"; + @SerializedName(SERIALIZED_NAME_ENDGAME_ROBOT2) + @javax.annotation.Nullable + private String endgameRobot2; + + public static final String SERIALIZED_NAME_ENDGAME_ROBOT3 = "endgameRobot3"; + @SerializedName(SERIALIZED_NAME_ENDGAME_ROBOT3) + @javax.annotation.Nullable + private String endgameRobot3; + + public static final String SERIALIZED_NAME_FACE_THE_BOSS_RANKING_POINT = "faceTheBossRankingPoint"; + @SerializedName(SERIALIZED_NAME_FACE_THE_BOSS_RANKING_POINT) + @javax.annotation.Nullable + private Boolean faceTheBossRankingPoint; + + public static final String SERIALIZED_NAME_FOUL_COUNT = "foulCount"; + @SerializedName(SERIALIZED_NAME_FOUL_COUNT) + @javax.annotation.Nullable + private Integer foulCount; + + public static final String SERIALIZED_NAME_FOUL_POINTS = "foulPoints"; + @SerializedName(SERIALIZED_NAME_FOUL_POINTS) + @javax.annotation.Nullable + private Integer foulPoints; + + public static final String SERIALIZED_NAME_RP = "rp"; + @SerializedName(SERIALIZED_NAME_RP) + @javax.annotation.Nullable + private Integer rp; + + public static final String SERIALIZED_NAME_TECH_FOUL_COUNT = "techFoulCount"; + @SerializedName(SERIALIZED_NAME_TECH_FOUL_COUNT) + @javax.annotation.Nullable + private Integer techFoulCount; + + public static final String SERIALIZED_NAME_TELEOP_OWNERSHIP_POINTS = "teleopOwnershipPoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_OWNERSHIP_POINTS) + @javax.annotation.Nullable + private Integer teleopOwnershipPoints; + + public static final String SERIALIZED_NAME_TELEOP_POINTS = "teleopPoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_POINTS) + @javax.annotation.Nullable + private Integer teleopPoints; + + public static final String SERIALIZED_NAME_TELEOP_SCALE_BOOST_SEC = "teleopScaleBoostSec"; + @SerializedName(SERIALIZED_NAME_TELEOP_SCALE_BOOST_SEC) + @javax.annotation.Nullable + private Integer teleopScaleBoostSec; + + public static final String SERIALIZED_NAME_TELEOP_SCALE_FORCE_SEC = "teleopScaleForceSec"; + @SerializedName(SERIALIZED_NAME_TELEOP_SCALE_FORCE_SEC) + @javax.annotation.Nullable + private Integer teleopScaleForceSec; + + public static final String SERIALIZED_NAME_TELEOP_SCALE_OWNERSHIP_SEC = "teleopScaleOwnershipSec"; + @SerializedName(SERIALIZED_NAME_TELEOP_SCALE_OWNERSHIP_SEC) + @javax.annotation.Nullable + private Integer teleopScaleOwnershipSec; + + public static final String SERIALIZED_NAME_TELEOP_SWITCH_BOOST_SEC = "teleopSwitchBoostSec"; + @SerializedName(SERIALIZED_NAME_TELEOP_SWITCH_BOOST_SEC) + @javax.annotation.Nullable + private Integer teleopSwitchBoostSec; + + public static final String SERIALIZED_NAME_TELEOP_SWITCH_FORCE_SEC = "teleopSwitchForceSec"; + @SerializedName(SERIALIZED_NAME_TELEOP_SWITCH_FORCE_SEC) + @javax.annotation.Nullable + private Integer teleopSwitchForceSec; + + public static final String SERIALIZED_NAME_TELEOP_SWITCH_OWNERSHIP_SEC = "teleopSwitchOwnershipSec"; + @SerializedName(SERIALIZED_NAME_TELEOP_SWITCH_OWNERSHIP_SEC) + @javax.annotation.Nullable + private Integer teleopSwitchOwnershipSec; + + public static final String SERIALIZED_NAME_TOTAL_POINTS = "totalPoints"; + @SerializedName(SERIALIZED_NAME_TOTAL_POINTS) + @javax.annotation.Nullable + private Integer totalPoints; + + public static final String SERIALIZED_NAME_VAULT_BOOST_PLAYED = "vaultBoostPlayed"; + @SerializedName(SERIALIZED_NAME_VAULT_BOOST_PLAYED) + @javax.annotation.Nullable + private Integer vaultBoostPlayed; + + public static final String SERIALIZED_NAME_VAULT_BOOST_TOTAL = "vaultBoostTotal"; + @SerializedName(SERIALIZED_NAME_VAULT_BOOST_TOTAL) + @javax.annotation.Nullable + private Integer vaultBoostTotal; + + public static final String SERIALIZED_NAME_VAULT_FORCE_PLAYED = "vaultForcePlayed"; + @SerializedName(SERIALIZED_NAME_VAULT_FORCE_PLAYED) + @javax.annotation.Nullable + private Integer vaultForcePlayed; + + public static final String SERIALIZED_NAME_VAULT_FORCE_TOTAL = "vaultForceTotal"; + @SerializedName(SERIALIZED_NAME_VAULT_FORCE_TOTAL) + @javax.annotation.Nullable + private Integer vaultForceTotal; + + public static final String SERIALIZED_NAME_VAULT_LEVITATE_PLAYED = "vaultLevitatePlayed"; + @SerializedName(SERIALIZED_NAME_VAULT_LEVITATE_PLAYED) + @javax.annotation.Nullable + private Integer vaultLevitatePlayed; + + public static final String SERIALIZED_NAME_VAULT_LEVITATE_TOTAL = "vaultLevitateTotal"; + @SerializedName(SERIALIZED_NAME_VAULT_LEVITATE_TOTAL) + @javax.annotation.Nullable + private Integer vaultLevitateTotal; + + public static final String SERIALIZED_NAME_VAULT_POINTS = "vaultPoints"; + @SerializedName(SERIALIZED_NAME_VAULT_POINTS) + @javax.annotation.Nullable + private Integer vaultPoints; + + public static final String SERIALIZED_NAME_TBA_GAME_DATA = "tba_gameData"; + @SerializedName(SERIALIZED_NAME_TBA_GAME_DATA) + @javax.annotation.Nullable + private String tbaGameData; + + public MatchScoreBreakdown2018Alliance() { + } + + public MatchScoreBreakdown2018Alliance adjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + + this.adjustPoints = adjustPoints; + return this; + } + + /** + * Get adjustPoints + * @return adjustPoints + */ + @javax.annotation.Nullable + + public Integer getAdjustPoints() { + return adjustPoints; + } + + + public void setAdjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + this.adjustPoints = adjustPoints; + } + + public MatchScoreBreakdown2018Alliance autoOwnershipPoints(@javax.annotation.Nullable Integer autoOwnershipPoints) { + + this.autoOwnershipPoints = autoOwnershipPoints; + return this; + } + + /** + * Get autoOwnershipPoints + * @return autoOwnershipPoints + */ + @javax.annotation.Nullable + + public Integer getAutoOwnershipPoints() { + return autoOwnershipPoints; + } + + + public void setAutoOwnershipPoints(@javax.annotation.Nullable Integer autoOwnershipPoints) { + this.autoOwnershipPoints = autoOwnershipPoints; + } + + public MatchScoreBreakdown2018Alliance autoPoints(@javax.annotation.Nullable Integer autoPoints) { + + this.autoPoints = autoPoints; + return this; + } + + /** + * Get autoPoints + * @return autoPoints + */ + @javax.annotation.Nullable + + public Integer getAutoPoints() { + return autoPoints; + } + + + public void setAutoPoints(@javax.annotation.Nullable Integer autoPoints) { + this.autoPoints = autoPoints; + } + + public MatchScoreBreakdown2018Alliance autoQuestRankingPoint(@javax.annotation.Nullable Boolean autoQuestRankingPoint) { + + this.autoQuestRankingPoint = autoQuestRankingPoint; + return this; + } + + /** + * Get autoQuestRankingPoint + * @return autoQuestRankingPoint + */ + @javax.annotation.Nullable + + public Boolean getAutoQuestRankingPoint() { + return autoQuestRankingPoint; + } + + + public void setAutoQuestRankingPoint(@javax.annotation.Nullable Boolean autoQuestRankingPoint) { + this.autoQuestRankingPoint = autoQuestRankingPoint; + } + + public MatchScoreBreakdown2018Alliance autoRobot1(@javax.annotation.Nullable String autoRobot1) { + + this.autoRobot1 = autoRobot1; + return this; + } + + /** + * Get autoRobot1 + * @return autoRobot1 + */ + @javax.annotation.Nullable + + public String getAutoRobot1() { + return autoRobot1; + } + + + public void setAutoRobot1(@javax.annotation.Nullable String autoRobot1) { + this.autoRobot1 = autoRobot1; + } + + public MatchScoreBreakdown2018Alliance autoRobot2(@javax.annotation.Nullable String autoRobot2) { + + this.autoRobot2 = autoRobot2; + return this; + } + + /** + * Get autoRobot2 + * @return autoRobot2 + */ + @javax.annotation.Nullable + + public String getAutoRobot2() { + return autoRobot2; + } + + + public void setAutoRobot2(@javax.annotation.Nullable String autoRobot2) { + this.autoRobot2 = autoRobot2; + } + + public MatchScoreBreakdown2018Alliance autoRobot3(@javax.annotation.Nullable String autoRobot3) { + + this.autoRobot3 = autoRobot3; + return this; + } + + /** + * Get autoRobot3 + * @return autoRobot3 + */ + @javax.annotation.Nullable + + public String getAutoRobot3() { + return autoRobot3; + } + + + public void setAutoRobot3(@javax.annotation.Nullable String autoRobot3) { + this.autoRobot3 = autoRobot3; + } + + public MatchScoreBreakdown2018Alliance autoRunPoints(@javax.annotation.Nullable Integer autoRunPoints) { + + this.autoRunPoints = autoRunPoints; + return this; + } + + /** + * Get autoRunPoints + * @return autoRunPoints + */ + @javax.annotation.Nullable + + public Integer getAutoRunPoints() { + return autoRunPoints; + } + + + public void setAutoRunPoints(@javax.annotation.Nullable Integer autoRunPoints) { + this.autoRunPoints = autoRunPoints; + } + + public MatchScoreBreakdown2018Alliance autoScaleOwnershipSec(@javax.annotation.Nullable Integer autoScaleOwnershipSec) { + + this.autoScaleOwnershipSec = autoScaleOwnershipSec; + return this; + } + + /** + * Get autoScaleOwnershipSec + * @return autoScaleOwnershipSec + */ + @javax.annotation.Nullable + + public Integer getAutoScaleOwnershipSec() { + return autoScaleOwnershipSec; + } + + + public void setAutoScaleOwnershipSec(@javax.annotation.Nullable Integer autoScaleOwnershipSec) { + this.autoScaleOwnershipSec = autoScaleOwnershipSec; + } + + public MatchScoreBreakdown2018Alliance autoSwitchAtZero(@javax.annotation.Nullable Boolean autoSwitchAtZero) { + + this.autoSwitchAtZero = autoSwitchAtZero; + return this; + } + + /** + * Get autoSwitchAtZero + * @return autoSwitchAtZero + */ + @javax.annotation.Nullable + + public Boolean getAutoSwitchAtZero() { + return autoSwitchAtZero; + } + + + public void setAutoSwitchAtZero(@javax.annotation.Nullable Boolean autoSwitchAtZero) { + this.autoSwitchAtZero = autoSwitchAtZero; + } + + public MatchScoreBreakdown2018Alliance autoSwitchOwnershipSec(@javax.annotation.Nullable Integer autoSwitchOwnershipSec) { + + this.autoSwitchOwnershipSec = autoSwitchOwnershipSec; + return this; + } + + /** + * Get autoSwitchOwnershipSec + * @return autoSwitchOwnershipSec + */ + @javax.annotation.Nullable + + public Integer getAutoSwitchOwnershipSec() { + return autoSwitchOwnershipSec; + } + + + public void setAutoSwitchOwnershipSec(@javax.annotation.Nullable Integer autoSwitchOwnershipSec) { + this.autoSwitchOwnershipSec = autoSwitchOwnershipSec; + } + + public MatchScoreBreakdown2018Alliance endgamePoints(@javax.annotation.Nullable Integer endgamePoints) { + + this.endgamePoints = endgamePoints; + return this; + } + + /** + * Get endgamePoints + * @return endgamePoints + */ + @javax.annotation.Nullable + + public Integer getEndgamePoints() { + return endgamePoints; + } + + + public void setEndgamePoints(@javax.annotation.Nullable Integer endgamePoints) { + this.endgamePoints = endgamePoints; + } + + public MatchScoreBreakdown2018Alliance endgameRobot1(@javax.annotation.Nullable String endgameRobot1) { + + this.endgameRobot1 = endgameRobot1; + return this; + } + + /** + * Get endgameRobot1 + * @return endgameRobot1 + */ + @javax.annotation.Nullable + + public String getEndgameRobot1() { + return endgameRobot1; + } + + + public void setEndgameRobot1(@javax.annotation.Nullable String endgameRobot1) { + this.endgameRobot1 = endgameRobot1; + } + + public MatchScoreBreakdown2018Alliance endgameRobot2(@javax.annotation.Nullable String endgameRobot2) { + + this.endgameRobot2 = endgameRobot2; + return this; + } + + /** + * Get endgameRobot2 + * @return endgameRobot2 + */ + @javax.annotation.Nullable + + public String getEndgameRobot2() { + return endgameRobot2; + } + + + public void setEndgameRobot2(@javax.annotation.Nullable String endgameRobot2) { + this.endgameRobot2 = endgameRobot2; + } + + public MatchScoreBreakdown2018Alliance endgameRobot3(@javax.annotation.Nullable String endgameRobot3) { + + this.endgameRobot3 = endgameRobot3; + return this; + } + + /** + * Get endgameRobot3 + * @return endgameRobot3 + */ + @javax.annotation.Nullable + + public String getEndgameRobot3() { + return endgameRobot3; + } + + + public void setEndgameRobot3(@javax.annotation.Nullable String endgameRobot3) { + this.endgameRobot3 = endgameRobot3; + } + + public MatchScoreBreakdown2018Alliance faceTheBossRankingPoint(@javax.annotation.Nullable Boolean faceTheBossRankingPoint) { + + this.faceTheBossRankingPoint = faceTheBossRankingPoint; + return this; + } + + /** + * Get faceTheBossRankingPoint + * @return faceTheBossRankingPoint + */ + @javax.annotation.Nullable + + public Boolean getFaceTheBossRankingPoint() { + return faceTheBossRankingPoint; + } + + + public void setFaceTheBossRankingPoint(@javax.annotation.Nullable Boolean faceTheBossRankingPoint) { + this.faceTheBossRankingPoint = faceTheBossRankingPoint; + } + + public MatchScoreBreakdown2018Alliance foulCount(@javax.annotation.Nullable Integer foulCount) { + + this.foulCount = foulCount; + return this; + } + + /** + * Get foulCount + * @return foulCount + */ + @javax.annotation.Nullable + + public Integer getFoulCount() { + return foulCount; + } + + + public void setFoulCount(@javax.annotation.Nullable Integer foulCount) { + this.foulCount = foulCount; + } + + public MatchScoreBreakdown2018Alliance foulPoints(@javax.annotation.Nullable Integer foulPoints) { + + this.foulPoints = foulPoints; + return this; + } + + /** + * Get foulPoints + * @return foulPoints + */ + @javax.annotation.Nullable + + public Integer getFoulPoints() { + return foulPoints; + } + + + public void setFoulPoints(@javax.annotation.Nullable Integer foulPoints) { + this.foulPoints = foulPoints; + } + + public MatchScoreBreakdown2018Alliance rp(@javax.annotation.Nullable Integer rp) { + + this.rp = rp; + return this; + } + + /** + * Get rp + * @return rp + */ + @javax.annotation.Nullable + + public Integer getRp() { + return rp; + } + + + public void setRp(@javax.annotation.Nullable Integer rp) { + this.rp = rp; + } + + public MatchScoreBreakdown2018Alliance techFoulCount(@javax.annotation.Nullable Integer techFoulCount) { + + this.techFoulCount = techFoulCount; + return this; + } + + /** + * Get techFoulCount + * @return techFoulCount + */ + @javax.annotation.Nullable + + public Integer getTechFoulCount() { + return techFoulCount; + } + + + public void setTechFoulCount(@javax.annotation.Nullable Integer techFoulCount) { + this.techFoulCount = techFoulCount; + } + + public MatchScoreBreakdown2018Alliance teleopOwnershipPoints(@javax.annotation.Nullable Integer teleopOwnershipPoints) { + + this.teleopOwnershipPoints = teleopOwnershipPoints; + return this; + } + + /** + * Get teleopOwnershipPoints + * @return teleopOwnershipPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopOwnershipPoints() { + return teleopOwnershipPoints; + } + + + public void setTeleopOwnershipPoints(@javax.annotation.Nullable Integer teleopOwnershipPoints) { + this.teleopOwnershipPoints = teleopOwnershipPoints; + } + + public MatchScoreBreakdown2018Alliance teleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + + this.teleopPoints = teleopPoints; + return this; + } + + /** + * Get teleopPoints + * @return teleopPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopPoints() { + return teleopPoints; + } + + + public void setTeleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + this.teleopPoints = teleopPoints; + } + + public MatchScoreBreakdown2018Alliance teleopScaleBoostSec(@javax.annotation.Nullable Integer teleopScaleBoostSec) { + + this.teleopScaleBoostSec = teleopScaleBoostSec; + return this; + } + + /** + * Get teleopScaleBoostSec + * @return teleopScaleBoostSec + */ + @javax.annotation.Nullable + + public Integer getTeleopScaleBoostSec() { + return teleopScaleBoostSec; + } + + + public void setTeleopScaleBoostSec(@javax.annotation.Nullable Integer teleopScaleBoostSec) { + this.teleopScaleBoostSec = teleopScaleBoostSec; + } + + public MatchScoreBreakdown2018Alliance teleopScaleForceSec(@javax.annotation.Nullable Integer teleopScaleForceSec) { + + this.teleopScaleForceSec = teleopScaleForceSec; + return this; + } + + /** + * Get teleopScaleForceSec + * @return teleopScaleForceSec + */ + @javax.annotation.Nullable + + public Integer getTeleopScaleForceSec() { + return teleopScaleForceSec; + } + + + public void setTeleopScaleForceSec(@javax.annotation.Nullable Integer teleopScaleForceSec) { + this.teleopScaleForceSec = teleopScaleForceSec; + } + + public MatchScoreBreakdown2018Alliance teleopScaleOwnershipSec(@javax.annotation.Nullable Integer teleopScaleOwnershipSec) { + + this.teleopScaleOwnershipSec = teleopScaleOwnershipSec; + return this; + } + + /** + * Get teleopScaleOwnershipSec + * @return teleopScaleOwnershipSec + */ + @javax.annotation.Nullable + + public Integer getTeleopScaleOwnershipSec() { + return teleopScaleOwnershipSec; + } + + + public void setTeleopScaleOwnershipSec(@javax.annotation.Nullable Integer teleopScaleOwnershipSec) { + this.teleopScaleOwnershipSec = teleopScaleOwnershipSec; + } + + public MatchScoreBreakdown2018Alliance teleopSwitchBoostSec(@javax.annotation.Nullable Integer teleopSwitchBoostSec) { + + this.teleopSwitchBoostSec = teleopSwitchBoostSec; + return this; + } + + /** + * Get teleopSwitchBoostSec + * @return teleopSwitchBoostSec + */ + @javax.annotation.Nullable + + public Integer getTeleopSwitchBoostSec() { + return teleopSwitchBoostSec; + } + + + public void setTeleopSwitchBoostSec(@javax.annotation.Nullable Integer teleopSwitchBoostSec) { + this.teleopSwitchBoostSec = teleopSwitchBoostSec; + } + + public MatchScoreBreakdown2018Alliance teleopSwitchForceSec(@javax.annotation.Nullable Integer teleopSwitchForceSec) { + + this.teleopSwitchForceSec = teleopSwitchForceSec; + return this; + } + + /** + * Get teleopSwitchForceSec + * @return teleopSwitchForceSec + */ + @javax.annotation.Nullable + + public Integer getTeleopSwitchForceSec() { + return teleopSwitchForceSec; + } + + + public void setTeleopSwitchForceSec(@javax.annotation.Nullable Integer teleopSwitchForceSec) { + this.teleopSwitchForceSec = teleopSwitchForceSec; + } + + public MatchScoreBreakdown2018Alliance teleopSwitchOwnershipSec(@javax.annotation.Nullable Integer teleopSwitchOwnershipSec) { + + this.teleopSwitchOwnershipSec = teleopSwitchOwnershipSec; + return this; + } + + /** + * Get teleopSwitchOwnershipSec + * @return teleopSwitchOwnershipSec + */ + @javax.annotation.Nullable + + public Integer getTeleopSwitchOwnershipSec() { + return teleopSwitchOwnershipSec; + } + + + public void setTeleopSwitchOwnershipSec(@javax.annotation.Nullable Integer teleopSwitchOwnershipSec) { + this.teleopSwitchOwnershipSec = teleopSwitchOwnershipSec; + } + + public MatchScoreBreakdown2018Alliance totalPoints(@javax.annotation.Nullable Integer totalPoints) { + + this.totalPoints = totalPoints; + return this; + } + + /** + * Get totalPoints + * @return totalPoints + */ + @javax.annotation.Nullable + + public Integer getTotalPoints() { + return totalPoints; + } + + + public void setTotalPoints(@javax.annotation.Nullable Integer totalPoints) { + this.totalPoints = totalPoints; + } + + public MatchScoreBreakdown2018Alliance vaultBoostPlayed(@javax.annotation.Nullable Integer vaultBoostPlayed) { + + this.vaultBoostPlayed = vaultBoostPlayed; + return this; + } + + /** + * Get vaultBoostPlayed + * @return vaultBoostPlayed + */ + @javax.annotation.Nullable + + public Integer getVaultBoostPlayed() { + return vaultBoostPlayed; + } + + + public void setVaultBoostPlayed(@javax.annotation.Nullable Integer vaultBoostPlayed) { + this.vaultBoostPlayed = vaultBoostPlayed; + } + + public MatchScoreBreakdown2018Alliance vaultBoostTotal(@javax.annotation.Nullable Integer vaultBoostTotal) { + + this.vaultBoostTotal = vaultBoostTotal; + return this; + } + + /** + * Get vaultBoostTotal + * @return vaultBoostTotal + */ + @javax.annotation.Nullable + + public Integer getVaultBoostTotal() { + return vaultBoostTotal; + } + + + public void setVaultBoostTotal(@javax.annotation.Nullable Integer vaultBoostTotal) { + this.vaultBoostTotal = vaultBoostTotal; + } + + public MatchScoreBreakdown2018Alliance vaultForcePlayed(@javax.annotation.Nullable Integer vaultForcePlayed) { + + this.vaultForcePlayed = vaultForcePlayed; + return this; + } + + /** + * Get vaultForcePlayed + * @return vaultForcePlayed + */ + @javax.annotation.Nullable + + public Integer getVaultForcePlayed() { + return vaultForcePlayed; + } + + + public void setVaultForcePlayed(@javax.annotation.Nullable Integer vaultForcePlayed) { + this.vaultForcePlayed = vaultForcePlayed; + } + + public MatchScoreBreakdown2018Alliance vaultForceTotal(@javax.annotation.Nullable Integer vaultForceTotal) { + + this.vaultForceTotal = vaultForceTotal; + return this; + } + + /** + * Get vaultForceTotal + * @return vaultForceTotal + */ + @javax.annotation.Nullable + + public Integer getVaultForceTotal() { + return vaultForceTotal; + } + + + public void setVaultForceTotal(@javax.annotation.Nullable Integer vaultForceTotal) { + this.vaultForceTotal = vaultForceTotal; + } + + public MatchScoreBreakdown2018Alliance vaultLevitatePlayed(@javax.annotation.Nullable Integer vaultLevitatePlayed) { + + this.vaultLevitatePlayed = vaultLevitatePlayed; + return this; + } + + /** + * Get vaultLevitatePlayed + * @return vaultLevitatePlayed + */ + @javax.annotation.Nullable + + public Integer getVaultLevitatePlayed() { + return vaultLevitatePlayed; + } + + + public void setVaultLevitatePlayed(@javax.annotation.Nullable Integer vaultLevitatePlayed) { + this.vaultLevitatePlayed = vaultLevitatePlayed; + } + + public MatchScoreBreakdown2018Alliance vaultLevitateTotal(@javax.annotation.Nullable Integer vaultLevitateTotal) { + + this.vaultLevitateTotal = vaultLevitateTotal; + return this; + } + + /** + * Get vaultLevitateTotal + * @return vaultLevitateTotal + */ + @javax.annotation.Nullable + + public Integer getVaultLevitateTotal() { + return vaultLevitateTotal; + } + + + public void setVaultLevitateTotal(@javax.annotation.Nullable Integer vaultLevitateTotal) { + this.vaultLevitateTotal = vaultLevitateTotal; + } + + public MatchScoreBreakdown2018Alliance vaultPoints(@javax.annotation.Nullable Integer vaultPoints) { + + this.vaultPoints = vaultPoints; + return this; + } + + /** + * Get vaultPoints + * @return vaultPoints + */ + @javax.annotation.Nullable + + public Integer getVaultPoints() { + return vaultPoints; + } + + + public void setVaultPoints(@javax.annotation.Nullable Integer vaultPoints) { + this.vaultPoints = vaultPoints; + } + + public MatchScoreBreakdown2018Alliance tbaGameData(@javax.annotation.Nullable String tbaGameData) { + + this.tbaGameData = tbaGameData; + return this; + } + + /** + * Unofficial TBA-computed value of the FMS provided GameData given to the alliance teams at the start of the match. 3 Character String containing `L` and `R` only. The first character represents the near switch, the 2nd the scale, and the 3rd the far, opposing, switch from the alliance's perspective. An `L` in a position indicates the platform on the left will be lit for the alliance while an `R` will indicate the right platform will be lit for the alliance. See also [WPI Screen Steps](https://wpilib.screenstepslive.com/s/currentCS/m/getting_started/l/826278-2018-game-data-details). + * @return tbaGameData + */ + @javax.annotation.Nullable + + public String getTbaGameData() { + return tbaGameData; + } + + + public void setTbaGameData(@javax.annotation.Nullable String tbaGameData) { + this.tbaGameData = tbaGameData; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2018Alliance matchScoreBreakdown2018Alliance = (MatchScoreBreakdown2018Alliance) o; + return Objects.equals(this.adjustPoints, matchScoreBreakdown2018Alliance.adjustPoints) && + Objects.equals(this.autoOwnershipPoints, matchScoreBreakdown2018Alliance.autoOwnershipPoints) && + Objects.equals(this.autoPoints, matchScoreBreakdown2018Alliance.autoPoints) && + Objects.equals(this.autoQuestRankingPoint, matchScoreBreakdown2018Alliance.autoQuestRankingPoint) && + Objects.equals(this.autoRobot1, matchScoreBreakdown2018Alliance.autoRobot1) && + Objects.equals(this.autoRobot2, matchScoreBreakdown2018Alliance.autoRobot2) && + Objects.equals(this.autoRobot3, matchScoreBreakdown2018Alliance.autoRobot3) && + Objects.equals(this.autoRunPoints, matchScoreBreakdown2018Alliance.autoRunPoints) && + Objects.equals(this.autoScaleOwnershipSec, matchScoreBreakdown2018Alliance.autoScaleOwnershipSec) && + Objects.equals(this.autoSwitchAtZero, matchScoreBreakdown2018Alliance.autoSwitchAtZero) && + Objects.equals(this.autoSwitchOwnershipSec, matchScoreBreakdown2018Alliance.autoSwitchOwnershipSec) && + Objects.equals(this.endgamePoints, matchScoreBreakdown2018Alliance.endgamePoints) && + Objects.equals(this.endgameRobot1, matchScoreBreakdown2018Alliance.endgameRobot1) && + Objects.equals(this.endgameRobot2, matchScoreBreakdown2018Alliance.endgameRobot2) && + Objects.equals(this.endgameRobot3, matchScoreBreakdown2018Alliance.endgameRobot3) && + Objects.equals(this.faceTheBossRankingPoint, matchScoreBreakdown2018Alliance.faceTheBossRankingPoint) && + Objects.equals(this.foulCount, matchScoreBreakdown2018Alliance.foulCount) && + Objects.equals(this.foulPoints, matchScoreBreakdown2018Alliance.foulPoints) && + Objects.equals(this.rp, matchScoreBreakdown2018Alliance.rp) && + Objects.equals(this.techFoulCount, matchScoreBreakdown2018Alliance.techFoulCount) && + Objects.equals(this.teleopOwnershipPoints, matchScoreBreakdown2018Alliance.teleopOwnershipPoints) && + Objects.equals(this.teleopPoints, matchScoreBreakdown2018Alliance.teleopPoints) && + Objects.equals(this.teleopScaleBoostSec, matchScoreBreakdown2018Alliance.teleopScaleBoostSec) && + Objects.equals(this.teleopScaleForceSec, matchScoreBreakdown2018Alliance.teleopScaleForceSec) && + Objects.equals(this.teleopScaleOwnershipSec, matchScoreBreakdown2018Alliance.teleopScaleOwnershipSec) && + Objects.equals(this.teleopSwitchBoostSec, matchScoreBreakdown2018Alliance.teleopSwitchBoostSec) && + Objects.equals(this.teleopSwitchForceSec, matchScoreBreakdown2018Alliance.teleopSwitchForceSec) && + Objects.equals(this.teleopSwitchOwnershipSec, matchScoreBreakdown2018Alliance.teleopSwitchOwnershipSec) && + Objects.equals(this.totalPoints, matchScoreBreakdown2018Alliance.totalPoints) && + Objects.equals(this.vaultBoostPlayed, matchScoreBreakdown2018Alliance.vaultBoostPlayed) && + Objects.equals(this.vaultBoostTotal, matchScoreBreakdown2018Alliance.vaultBoostTotal) && + Objects.equals(this.vaultForcePlayed, matchScoreBreakdown2018Alliance.vaultForcePlayed) && + Objects.equals(this.vaultForceTotal, matchScoreBreakdown2018Alliance.vaultForceTotal) && + Objects.equals(this.vaultLevitatePlayed, matchScoreBreakdown2018Alliance.vaultLevitatePlayed) && + Objects.equals(this.vaultLevitateTotal, matchScoreBreakdown2018Alliance.vaultLevitateTotal) && + Objects.equals(this.vaultPoints, matchScoreBreakdown2018Alliance.vaultPoints) && + Objects.equals(this.tbaGameData, matchScoreBreakdown2018Alliance.tbaGameData); + } + + @Override + public int hashCode() { + return Objects.hash(adjustPoints, autoOwnershipPoints, autoPoints, autoQuestRankingPoint, autoRobot1, autoRobot2, autoRobot3, autoRunPoints, autoScaleOwnershipSec, autoSwitchAtZero, autoSwitchOwnershipSec, endgamePoints, endgameRobot1, endgameRobot2, endgameRobot3, faceTheBossRankingPoint, foulCount, foulPoints, rp, techFoulCount, teleopOwnershipPoints, teleopPoints, teleopScaleBoostSec, teleopScaleForceSec, teleopScaleOwnershipSec, teleopSwitchBoostSec, teleopSwitchForceSec, teleopSwitchOwnershipSec, totalPoints, vaultBoostPlayed, vaultBoostTotal, vaultForcePlayed, vaultForceTotal, vaultLevitatePlayed, vaultLevitateTotal, vaultPoints, tbaGameData); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2018Alliance {\n"); + sb.append(" adjustPoints: ").append(toIndentedString(adjustPoints)).append("\n"); + sb.append(" autoOwnershipPoints: ").append(toIndentedString(autoOwnershipPoints)).append("\n"); + sb.append(" autoPoints: ").append(toIndentedString(autoPoints)).append("\n"); + sb.append(" autoQuestRankingPoint: ").append(toIndentedString(autoQuestRankingPoint)).append("\n"); + sb.append(" autoRobot1: ").append(toIndentedString(autoRobot1)).append("\n"); + sb.append(" autoRobot2: ").append(toIndentedString(autoRobot2)).append("\n"); + sb.append(" autoRobot3: ").append(toIndentedString(autoRobot3)).append("\n"); + sb.append(" autoRunPoints: ").append(toIndentedString(autoRunPoints)).append("\n"); + sb.append(" autoScaleOwnershipSec: ").append(toIndentedString(autoScaleOwnershipSec)).append("\n"); + sb.append(" autoSwitchAtZero: ").append(toIndentedString(autoSwitchAtZero)).append("\n"); + sb.append(" autoSwitchOwnershipSec: ").append(toIndentedString(autoSwitchOwnershipSec)).append("\n"); + sb.append(" endgamePoints: ").append(toIndentedString(endgamePoints)).append("\n"); + sb.append(" endgameRobot1: ").append(toIndentedString(endgameRobot1)).append("\n"); + sb.append(" endgameRobot2: ").append(toIndentedString(endgameRobot2)).append("\n"); + sb.append(" endgameRobot3: ").append(toIndentedString(endgameRobot3)).append("\n"); + sb.append(" faceTheBossRankingPoint: ").append(toIndentedString(faceTheBossRankingPoint)).append("\n"); + sb.append(" foulCount: ").append(toIndentedString(foulCount)).append("\n"); + sb.append(" foulPoints: ").append(toIndentedString(foulPoints)).append("\n"); + sb.append(" rp: ").append(toIndentedString(rp)).append("\n"); + sb.append(" techFoulCount: ").append(toIndentedString(techFoulCount)).append("\n"); + sb.append(" teleopOwnershipPoints: ").append(toIndentedString(teleopOwnershipPoints)).append("\n"); + sb.append(" teleopPoints: ").append(toIndentedString(teleopPoints)).append("\n"); + sb.append(" teleopScaleBoostSec: ").append(toIndentedString(teleopScaleBoostSec)).append("\n"); + sb.append(" teleopScaleForceSec: ").append(toIndentedString(teleopScaleForceSec)).append("\n"); + sb.append(" teleopScaleOwnershipSec: ").append(toIndentedString(teleopScaleOwnershipSec)).append("\n"); + sb.append(" teleopSwitchBoostSec: ").append(toIndentedString(teleopSwitchBoostSec)).append("\n"); + sb.append(" teleopSwitchForceSec: ").append(toIndentedString(teleopSwitchForceSec)).append("\n"); + sb.append(" teleopSwitchOwnershipSec: ").append(toIndentedString(teleopSwitchOwnershipSec)).append("\n"); + sb.append(" totalPoints: ").append(toIndentedString(totalPoints)).append("\n"); + sb.append(" vaultBoostPlayed: ").append(toIndentedString(vaultBoostPlayed)).append("\n"); + sb.append(" vaultBoostTotal: ").append(toIndentedString(vaultBoostTotal)).append("\n"); + sb.append(" vaultForcePlayed: ").append(toIndentedString(vaultForcePlayed)).append("\n"); + sb.append(" vaultForceTotal: ").append(toIndentedString(vaultForceTotal)).append("\n"); + sb.append(" vaultLevitatePlayed: ").append(toIndentedString(vaultLevitatePlayed)).append("\n"); + sb.append(" vaultLevitateTotal: ").append(toIndentedString(vaultLevitateTotal)).append("\n"); + sb.append(" vaultPoints: ").append(toIndentedString(vaultPoints)).append("\n"); + sb.append(" tbaGameData: ").append(toIndentedString(tbaGameData)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2019.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2019.java new file mode 100644 index 000000000..996f439c5 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2019.java @@ -0,0 +1,126 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import thebluealliance.api.model.MatchScoreBreakdown2019Alliance; + +/** + * See the 2019 FMS API documentation for a description of each value. https://frcevents2.docs.apiary.io/#/reference/match-results/score-details + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2019 { + public static final String SERIALIZED_NAME_BLUE = "blue"; + @SerializedName(SERIALIZED_NAME_BLUE) + @javax.annotation.Nonnull + private MatchScoreBreakdown2019Alliance blue; + + public static final String SERIALIZED_NAME_RED = "red"; + @SerializedName(SERIALIZED_NAME_RED) + @javax.annotation.Nonnull + private MatchScoreBreakdown2019Alliance red; + + public MatchScoreBreakdown2019() { + } + + public MatchScoreBreakdown2019 blue(@javax.annotation.Nonnull MatchScoreBreakdown2019Alliance blue) { + + this.blue = blue; + return this; + } + + /** + * Get blue + * @return blue + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2019Alliance getBlue() { + return blue; + } + + + public void setBlue(@javax.annotation.Nonnull MatchScoreBreakdown2019Alliance blue) { + this.blue = blue; + } + + public MatchScoreBreakdown2019 red(@javax.annotation.Nonnull MatchScoreBreakdown2019Alliance red) { + + this.red = red; + return this; + } + + /** + * Get red + * @return red + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2019Alliance getRed() { + return red; + } + + + public void setRed(@javax.annotation.Nonnull MatchScoreBreakdown2019Alliance red) { + this.red = red; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2019 matchScoreBreakdown2019 = (MatchScoreBreakdown2019) o; + return Objects.equals(this.blue, matchScoreBreakdown2019.blue) && + Objects.equals(this.red, matchScoreBreakdown2019.red); + } + + @Override + public int hashCode() { + return Objects.hash(blue, red); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2019 {\n"); + sb.append(" blue: ").append(toIndentedString(blue)).append("\n"); + sb.append(" red: ").append(toIndentedString(red)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2019Alliance.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2019Alliance.java new file mode 100644 index 000000000..bb101a5ee --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2019Alliance.java @@ -0,0 +1,1497 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * MatchScoreBreakdown2019Alliance + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2019Alliance { + public static final String SERIALIZED_NAME_ADJUST_POINTS = "adjustPoints"; + @SerializedName(SERIALIZED_NAME_ADJUST_POINTS) + @javax.annotation.Nullable + private Integer adjustPoints; + + public static final String SERIALIZED_NAME_AUTO_POINTS = "autoPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_POINTS) + @javax.annotation.Nullable + private Integer autoPoints; + + public static final String SERIALIZED_NAME_BAY1 = "bay1"; + @SerializedName(SERIALIZED_NAME_BAY1) + @javax.annotation.Nullable + private String bay1; + + public static final String SERIALIZED_NAME_BAY2 = "bay2"; + @SerializedName(SERIALIZED_NAME_BAY2) + @javax.annotation.Nullable + private String bay2; + + public static final String SERIALIZED_NAME_BAY3 = "bay3"; + @SerializedName(SERIALIZED_NAME_BAY3) + @javax.annotation.Nullable + private String bay3; + + public static final String SERIALIZED_NAME_BAY4 = "bay4"; + @SerializedName(SERIALIZED_NAME_BAY4) + @javax.annotation.Nullable + private String bay4; + + public static final String SERIALIZED_NAME_BAY5 = "bay5"; + @SerializedName(SERIALIZED_NAME_BAY5) + @javax.annotation.Nullable + private String bay5; + + public static final String SERIALIZED_NAME_BAY6 = "bay6"; + @SerializedName(SERIALIZED_NAME_BAY6) + @javax.annotation.Nullable + private String bay6; + + public static final String SERIALIZED_NAME_BAY7 = "bay7"; + @SerializedName(SERIALIZED_NAME_BAY7) + @javax.annotation.Nullable + private String bay7; + + public static final String SERIALIZED_NAME_BAY8 = "bay8"; + @SerializedName(SERIALIZED_NAME_BAY8) + @javax.annotation.Nullable + private String bay8; + + public static final String SERIALIZED_NAME_CARGO_POINTS = "cargoPoints"; + @SerializedName(SERIALIZED_NAME_CARGO_POINTS) + @javax.annotation.Nullable + private Integer cargoPoints; + + public static final String SERIALIZED_NAME_COMPLETE_ROCKET_RANKING_POINT = "completeRocketRankingPoint"; + @SerializedName(SERIALIZED_NAME_COMPLETE_ROCKET_RANKING_POINT) + @javax.annotation.Nullable + private Boolean completeRocketRankingPoint; + + public static final String SERIALIZED_NAME_COMPLETED_ROCKET_FAR = "completedRocketFar"; + @SerializedName(SERIALIZED_NAME_COMPLETED_ROCKET_FAR) + @javax.annotation.Nullable + private Boolean completedRocketFar; + + public static final String SERIALIZED_NAME_COMPLETED_ROCKET_NEAR = "completedRocketNear"; + @SerializedName(SERIALIZED_NAME_COMPLETED_ROCKET_NEAR) + @javax.annotation.Nullable + private Boolean completedRocketNear; + + public static final String SERIALIZED_NAME_ENDGAME_ROBOT1 = "endgameRobot1"; + @SerializedName(SERIALIZED_NAME_ENDGAME_ROBOT1) + @javax.annotation.Nullable + private String endgameRobot1; + + public static final String SERIALIZED_NAME_ENDGAME_ROBOT2 = "endgameRobot2"; + @SerializedName(SERIALIZED_NAME_ENDGAME_ROBOT2) + @javax.annotation.Nullable + private String endgameRobot2; + + public static final String SERIALIZED_NAME_ENDGAME_ROBOT3 = "endgameRobot3"; + @SerializedName(SERIALIZED_NAME_ENDGAME_ROBOT3) + @javax.annotation.Nullable + private String endgameRobot3; + + public static final String SERIALIZED_NAME_FOUL_COUNT = "foulCount"; + @SerializedName(SERIALIZED_NAME_FOUL_COUNT) + @javax.annotation.Nullable + private Integer foulCount; + + public static final String SERIALIZED_NAME_FOUL_POINTS = "foulPoints"; + @SerializedName(SERIALIZED_NAME_FOUL_POINTS) + @javax.annotation.Nullable + private Integer foulPoints; + + public static final String SERIALIZED_NAME_HAB_CLIMB_POINTS = "habClimbPoints"; + @SerializedName(SERIALIZED_NAME_HAB_CLIMB_POINTS) + @javax.annotation.Nullable + private Integer habClimbPoints; + + public static final String SERIALIZED_NAME_HAB_DOCKING_RANKING_POINT = "habDockingRankingPoint"; + @SerializedName(SERIALIZED_NAME_HAB_DOCKING_RANKING_POINT) + @javax.annotation.Nullable + private Boolean habDockingRankingPoint; + + public static final String SERIALIZED_NAME_HAB_LINE_ROBOT1 = "habLineRobot1"; + @SerializedName(SERIALIZED_NAME_HAB_LINE_ROBOT1) + @javax.annotation.Nullable + private String habLineRobot1; + + public static final String SERIALIZED_NAME_HAB_LINE_ROBOT2 = "habLineRobot2"; + @SerializedName(SERIALIZED_NAME_HAB_LINE_ROBOT2) + @javax.annotation.Nullable + private String habLineRobot2; + + public static final String SERIALIZED_NAME_HAB_LINE_ROBOT3 = "habLineRobot3"; + @SerializedName(SERIALIZED_NAME_HAB_LINE_ROBOT3) + @javax.annotation.Nullable + private String habLineRobot3; + + public static final String SERIALIZED_NAME_HATCH_PANEL_POINTS = "hatchPanelPoints"; + @SerializedName(SERIALIZED_NAME_HATCH_PANEL_POINTS) + @javax.annotation.Nullable + private Integer hatchPanelPoints; + + public static final String SERIALIZED_NAME_LOW_LEFT_ROCKET_FAR = "lowLeftRocketFar"; + @SerializedName(SERIALIZED_NAME_LOW_LEFT_ROCKET_FAR) + @javax.annotation.Nullable + private String lowLeftRocketFar; + + public static final String SERIALIZED_NAME_LOW_LEFT_ROCKET_NEAR = "lowLeftRocketNear"; + @SerializedName(SERIALIZED_NAME_LOW_LEFT_ROCKET_NEAR) + @javax.annotation.Nullable + private String lowLeftRocketNear; + + public static final String SERIALIZED_NAME_LOW_RIGHT_ROCKET_FAR = "lowRightRocketFar"; + @SerializedName(SERIALIZED_NAME_LOW_RIGHT_ROCKET_FAR) + @javax.annotation.Nullable + private String lowRightRocketFar; + + public static final String SERIALIZED_NAME_LOW_RIGHT_ROCKET_NEAR = "lowRightRocketNear"; + @SerializedName(SERIALIZED_NAME_LOW_RIGHT_ROCKET_NEAR) + @javax.annotation.Nullable + private String lowRightRocketNear; + + public static final String SERIALIZED_NAME_MID_LEFT_ROCKET_FAR = "midLeftRocketFar"; + @SerializedName(SERIALIZED_NAME_MID_LEFT_ROCKET_FAR) + @javax.annotation.Nullable + private String midLeftRocketFar; + + public static final String SERIALIZED_NAME_MID_LEFT_ROCKET_NEAR = "midLeftRocketNear"; + @SerializedName(SERIALIZED_NAME_MID_LEFT_ROCKET_NEAR) + @javax.annotation.Nullable + private String midLeftRocketNear; + + public static final String SERIALIZED_NAME_MID_RIGHT_ROCKET_FAR = "midRightRocketFar"; + @SerializedName(SERIALIZED_NAME_MID_RIGHT_ROCKET_FAR) + @javax.annotation.Nullable + private String midRightRocketFar; + + public static final String SERIALIZED_NAME_MID_RIGHT_ROCKET_NEAR = "midRightRocketNear"; + @SerializedName(SERIALIZED_NAME_MID_RIGHT_ROCKET_NEAR) + @javax.annotation.Nullable + private String midRightRocketNear; + + public static final String SERIALIZED_NAME_PRE_MATCH_BAY1 = "preMatchBay1"; + @SerializedName(SERIALIZED_NAME_PRE_MATCH_BAY1) + @javax.annotation.Nullable + private String preMatchBay1; + + public static final String SERIALIZED_NAME_PRE_MATCH_BAY2 = "preMatchBay2"; + @SerializedName(SERIALIZED_NAME_PRE_MATCH_BAY2) + @javax.annotation.Nullable + private String preMatchBay2; + + public static final String SERIALIZED_NAME_PRE_MATCH_BAY3 = "preMatchBay3"; + @SerializedName(SERIALIZED_NAME_PRE_MATCH_BAY3) + @javax.annotation.Nullable + private String preMatchBay3; + + public static final String SERIALIZED_NAME_PRE_MATCH_BAY6 = "preMatchBay6"; + @SerializedName(SERIALIZED_NAME_PRE_MATCH_BAY6) + @javax.annotation.Nullable + private String preMatchBay6; + + public static final String SERIALIZED_NAME_PRE_MATCH_BAY7 = "preMatchBay7"; + @SerializedName(SERIALIZED_NAME_PRE_MATCH_BAY7) + @javax.annotation.Nullable + private String preMatchBay7; + + public static final String SERIALIZED_NAME_PRE_MATCH_BAY8 = "preMatchBay8"; + @SerializedName(SERIALIZED_NAME_PRE_MATCH_BAY8) + @javax.annotation.Nullable + private String preMatchBay8; + + public static final String SERIALIZED_NAME_PRE_MATCH_LEVEL_ROBOT1 = "preMatchLevelRobot1"; + @SerializedName(SERIALIZED_NAME_PRE_MATCH_LEVEL_ROBOT1) + @javax.annotation.Nullable + private String preMatchLevelRobot1; + + public static final String SERIALIZED_NAME_PRE_MATCH_LEVEL_ROBOT2 = "preMatchLevelRobot2"; + @SerializedName(SERIALIZED_NAME_PRE_MATCH_LEVEL_ROBOT2) + @javax.annotation.Nullable + private String preMatchLevelRobot2; + + public static final String SERIALIZED_NAME_PRE_MATCH_LEVEL_ROBOT3 = "preMatchLevelRobot3"; + @SerializedName(SERIALIZED_NAME_PRE_MATCH_LEVEL_ROBOT3) + @javax.annotation.Nullable + private String preMatchLevelRobot3; + + public static final String SERIALIZED_NAME_RP = "rp"; + @SerializedName(SERIALIZED_NAME_RP) + @javax.annotation.Nullable + private Integer rp; + + public static final String SERIALIZED_NAME_SAND_STORM_BONUS_POINTS = "sandStormBonusPoints"; + @SerializedName(SERIALIZED_NAME_SAND_STORM_BONUS_POINTS) + @javax.annotation.Nullable + private Integer sandStormBonusPoints; + + public static final String SERIALIZED_NAME_TECH_FOUL_COUNT = "techFoulCount"; + @SerializedName(SERIALIZED_NAME_TECH_FOUL_COUNT) + @javax.annotation.Nullable + private Integer techFoulCount; + + public static final String SERIALIZED_NAME_TELEOP_POINTS = "teleopPoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_POINTS) + @javax.annotation.Nullable + private Integer teleopPoints; + + public static final String SERIALIZED_NAME_TOP_LEFT_ROCKET_FAR = "topLeftRocketFar"; + @SerializedName(SERIALIZED_NAME_TOP_LEFT_ROCKET_FAR) + @javax.annotation.Nullable + private String topLeftRocketFar; + + public static final String SERIALIZED_NAME_TOP_LEFT_ROCKET_NEAR = "topLeftRocketNear"; + @SerializedName(SERIALIZED_NAME_TOP_LEFT_ROCKET_NEAR) + @javax.annotation.Nullable + private String topLeftRocketNear; + + public static final String SERIALIZED_NAME_TOP_RIGHT_ROCKET_FAR = "topRightRocketFar"; + @SerializedName(SERIALIZED_NAME_TOP_RIGHT_ROCKET_FAR) + @javax.annotation.Nullable + private String topRightRocketFar; + + public static final String SERIALIZED_NAME_TOP_RIGHT_ROCKET_NEAR = "topRightRocketNear"; + @SerializedName(SERIALIZED_NAME_TOP_RIGHT_ROCKET_NEAR) + @javax.annotation.Nullable + private String topRightRocketNear; + + public static final String SERIALIZED_NAME_TOTAL_POINTS = "totalPoints"; + @SerializedName(SERIALIZED_NAME_TOTAL_POINTS) + @javax.annotation.Nullable + private Integer totalPoints; + + public MatchScoreBreakdown2019Alliance() { + } + + public MatchScoreBreakdown2019Alliance adjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + + this.adjustPoints = adjustPoints; + return this; + } + + /** + * Get adjustPoints + * @return adjustPoints + */ + @javax.annotation.Nullable + + public Integer getAdjustPoints() { + return adjustPoints; + } + + + public void setAdjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + this.adjustPoints = adjustPoints; + } + + public MatchScoreBreakdown2019Alliance autoPoints(@javax.annotation.Nullable Integer autoPoints) { + + this.autoPoints = autoPoints; + return this; + } + + /** + * Get autoPoints + * @return autoPoints + */ + @javax.annotation.Nullable + + public Integer getAutoPoints() { + return autoPoints; + } + + + public void setAutoPoints(@javax.annotation.Nullable Integer autoPoints) { + this.autoPoints = autoPoints; + } + + public MatchScoreBreakdown2019Alliance bay1(@javax.annotation.Nullable String bay1) { + + this.bay1 = bay1; + return this; + } + + /** + * Get bay1 + * @return bay1 + */ + @javax.annotation.Nullable + + public String getBay1() { + return bay1; + } + + + public void setBay1(@javax.annotation.Nullable String bay1) { + this.bay1 = bay1; + } + + public MatchScoreBreakdown2019Alliance bay2(@javax.annotation.Nullable String bay2) { + + this.bay2 = bay2; + return this; + } + + /** + * Get bay2 + * @return bay2 + */ + @javax.annotation.Nullable + + public String getBay2() { + return bay2; + } + + + public void setBay2(@javax.annotation.Nullable String bay2) { + this.bay2 = bay2; + } + + public MatchScoreBreakdown2019Alliance bay3(@javax.annotation.Nullable String bay3) { + + this.bay3 = bay3; + return this; + } + + /** + * Get bay3 + * @return bay3 + */ + @javax.annotation.Nullable + + public String getBay3() { + return bay3; + } + + + public void setBay3(@javax.annotation.Nullable String bay3) { + this.bay3 = bay3; + } + + public MatchScoreBreakdown2019Alliance bay4(@javax.annotation.Nullable String bay4) { + + this.bay4 = bay4; + return this; + } + + /** + * Get bay4 + * @return bay4 + */ + @javax.annotation.Nullable + + public String getBay4() { + return bay4; + } + + + public void setBay4(@javax.annotation.Nullable String bay4) { + this.bay4 = bay4; + } + + public MatchScoreBreakdown2019Alliance bay5(@javax.annotation.Nullable String bay5) { + + this.bay5 = bay5; + return this; + } + + /** + * Get bay5 + * @return bay5 + */ + @javax.annotation.Nullable + + public String getBay5() { + return bay5; + } + + + public void setBay5(@javax.annotation.Nullable String bay5) { + this.bay5 = bay5; + } + + public MatchScoreBreakdown2019Alliance bay6(@javax.annotation.Nullable String bay6) { + + this.bay6 = bay6; + return this; + } + + /** + * Get bay6 + * @return bay6 + */ + @javax.annotation.Nullable + + public String getBay6() { + return bay6; + } + + + public void setBay6(@javax.annotation.Nullable String bay6) { + this.bay6 = bay6; + } + + public MatchScoreBreakdown2019Alliance bay7(@javax.annotation.Nullable String bay7) { + + this.bay7 = bay7; + return this; + } + + /** + * Get bay7 + * @return bay7 + */ + @javax.annotation.Nullable + + public String getBay7() { + return bay7; + } + + + public void setBay7(@javax.annotation.Nullable String bay7) { + this.bay7 = bay7; + } + + public MatchScoreBreakdown2019Alliance bay8(@javax.annotation.Nullable String bay8) { + + this.bay8 = bay8; + return this; + } + + /** + * Get bay8 + * @return bay8 + */ + @javax.annotation.Nullable + + public String getBay8() { + return bay8; + } + + + public void setBay8(@javax.annotation.Nullable String bay8) { + this.bay8 = bay8; + } + + public MatchScoreBreakdown2019Alliance cargoPoints(@javax.annotation.Nullable Integer cargoPoints) { + + this.cargoPoints = cargoPoints; + return this; + } + + /** + * Get cargoPoints + * @return cargoPoints + */ + @javax.annotation.Nullable + + public Integer getCargoPoints() { + return cargoPoints; + } + + + public void setCargoPoints(@javax.annotation.Nullable Integer cargoPoints) { + this.cargoPoints = cargoPoints; + } + + public MatchScoreBreakdown2019Alliance completeRocketRankingPoint(@javax.annotation.Nullable Boolean completeRocketRankingPoint) { + + this.completeRocketRankingPoint = completeRocketRankingPoint; + return this; + } + + /** + * Get completeRocketRankingPoint + * @return completeRocketRankingPoint + */ + @javax.annotation.Nullable + + public Boolean getCompleteRocketRankingPoint() { + return completeRocketRankingPoint; + } + + + public void setCompleteRocketRankingPoint(@javax.annotation.Nullable Boolean completeRocketRankingPoint) { + this.completeRocketRankingPoint = completeRocketRankingPoint; + } + + public MatchScoreBreakdown2019Alliance completedRocketFar(@javax.annotation.Nullable Boolean completedRocketFar) { + + this.completedRocketFar = completedRocketFar; + return this; + } + + /** + * Get completedRocketFar + * @return completedRocketFar + */ + @javax.annotation.Nullable + + public Boolean getCompletedRocketFar() { + return completedRocketFar; + } + + + public void setCompletedRocketFar(@javax.annotation.Nullable Boolean completedRocketFar) { + this.completedRocketFar = completedRocketFar; + } + + public MatchScoreBreakdown2019Alliance completedRocketNear(@javax.annotation.Nullable Boolean completedRocketNear) { + + this.completedRocketNear = completedRocketNear; + return this; + } + + /** + * Get completedRocketNear + * @return completedRocketNear + */ + @javax.annotation.Nullable + + public Boolean getCompletedRocketNear() { + return completedRocketNear; + } + + + public void setCompletedRocketNear(@javax.annotation.Nullable Boolean completedRocketNear) { + this.completedRocketNear = completedRocketNear; + } + + public MatchScoreBreakdown2019Alliance endgameRobot1(@javax.annotation.Nullable String endgameRobot1) { + + this.endgameRobot1 = endgameRobot1; + return this; + } + + /** + * Get endgameRobot1 + * @return endgameRobot1 + */ + @javax.annotation.Nullable + + public String getEndgameRobot1() { + return endgameRobot1; + } + + + public void setEndgameRobot1(@javax.annotation.Nullable String endgameRobot1) { + this.endgameRobot1 = endgameRobot1; + } + + public MatchScoreBreakdown2019Alliance endgameRobot2(@javax.annotation.Nullable String endgameRobot2) { + + this.endgameRobot2 = endgameRobot2; + return this; + } + + /** + * Get endgameRobot2 + * @return endgameRobot2 + */ + @javax.annotation.Nullable + + public String getEndgameRobot2() { + return endgameRobot2; + } + + + public void setEndgameRobot2(@javax.annotation.Nullable String endgameRobot2) { + this.endgameRobot2 = endgameRobot2; + } + + public MatchScoreBreakdown2019Alliance endgameRobot3(@javax.annotation.Nullable String endgameRobot3) { + + this.endgameRobot3 = endgameRobot3; + return this; + } + + /** + * Get endgameRobot3 + * @return endgameRobot3 + */ + @javax.annotation.Nullable + + public String getEndgameRobot3() { + return endgameRobot3; + } + + + public void setEndgameRobot3(@javax.annotation.Nullable String endgameRobot3) { + this.endgameRobot3 = endgameRobot3; + } + + public MatchScoreBreakdown2019Alliance foulCount(@javax.annotation.Nullable Integer foulCount) { + + this.foulCount = foulCount; + return this; + } + + /** + * Get foulCount + * @return foulCount + */ + @javax.annotation.Nullable + + public Integer getFoulCount() { + return foulCount; + } + + + public void setFoulCount(@javax.annotation.Nullable Integer foulCount) { + this.foulCount = foulCount; + } + + public MatchScoreBreakdown2019Alliance foulPoints(@javax.annotation.Nullable Integer foulPoints) { + + this.foulPoints = foulPoints; + return this; + } + + /** + * Get foulPoints + * @return foulPoints + */ + @javax.annotation.Nullable + + public Integer getFoulPoints() { + return foulPoints; + } + + + public void setFoulPoints(@javax.annotation.Nullable Integer foulPoints) { + this.foulPoints = foulPoints; + } + + public MatchScoreBreakdown2019Alliance habClimbPoints(@javax.annotation.Nullable Integer habClimbPoints) { + + this.habClimbPoints = habClimbPoints; + return this; + } + + /** + * Get habClimbPoints + * @return habClimbPoints + */ + @javax.annotation.Nullable + + public Integer getHabClimbPoints() { + return habClimbPoints; + } + + + public void setHabClimbPoints(@javax.annotation.Nullable Integer habClimbPoints) { + this.habClimbPoints = habClimbPoints; + } + + public MatchScoreBreakdown2019Alliance habDockingRankingPoint(@javax.annotation.Nullable Boolean habDockingRankingPoint) { + + this.habDockingRankingPoint = habDockingRankingPoint; + return this; + } + + /** + * Get habDockingRankingPoint + * @return habDockingRankingPoint + */ + @javax.annotation.Nullable + + public Boolean getHabDockingRankingPoint() { + return habDockingRankingPoint; + } + + + public void setHabDockingRankingPoint(@javax.annotation.Nullable Boolean habDockingRankingPoint) { + this.habDockingRankingPoint = habDockingRankingPoint; + } + + public MatchScoreBreakdown2019Alliance habLineRobot1(@javax.annotation.Nullable String habLineRobot1) { + + this.habLineRobot1 = habLineRobot1; + return this; + } + + /** + * Get habLineRobot1 + * @return habLineRobot1 + */ + @javax.annotation.Nullable + + public String getHabLineRobot1() { + return habLineRobot1; + } + + + public void setHabLineRobot1(@javax.annotation.Nullable String habLineRobot1) { + this.habLineRobot1 = habLineRobot1; + } + + public MatchScoreBreakdown2019Alliance habLineRobot2(@javax.annotation.Nullable String habLineRobot2) { + + this.habLineRobot2 = habLineRobot2; + return this; + } + + /** + * Get habLineRobot2 + * @return habLineRobot2 + */ + @javax.annotation.Nullable + + public String getHabLineRobot2() { + return habLineRobot2; + } + + + public void setHabLineRobot2(@javax.annotation.Nullable String habLineRobot2) { + this.habLineRobot2 = habLineRobot2; + } + + public MatchScoreBreakdown2019Alliance habLineRobot3(@javax.annotation.Nullable String habLineRobot3) { + + this.habLineRobot3 = habLineRobot3; + return this; + } + + /** + * Get habLineRobot3 + * @return habLineRobot3 + */ + @javax.annotation.Nullable + + public String getHabLineRobot3() { + return habLineRobot3; + } + + + public void setHabLineRobot3(@javax.annotation.Nullable String habLineRobot3) { + this.habLineRobot3 = habLineRobot3; + } + + public MatchScoreBreakdown2019Alliance hatchPanelPoints(@javax.annotation.Nullable Integer hatchPanelPoints) { + + this.hatchPanelPoints = hatchPanelPoints; + return this; + } + + /** + * Get hatchPanelPoints + * @return hatchPanelPoints + */ + @javax.annotation.Nullable + + public Integer getHatchPanelPoints() { + return hatchPanelPoints; + } + + + public void setHatchPanelPoints(@javax.annotation.Nullable Integer hatchPanelPoints) { + this.hatchPanelPoints = hatchPanelPoints; + } + + public MatchScoreBreakdown2019Alliance lowLeftRocketFar(@javax.annotation.Nullable String lowLeftRocketFar) { + + this.lowLeftRocketFar = lowLeftRocketFar; + return this; + } + + /** + * Get lowLeftRocketFar + * @return lowLeftRocketFar + */ + @javax.annotation.Nullable + + public String getLowLeftRocketFar() { + return lowLeftRocketFar; + } + + + public void setLowLeftRocketFar(@javax.annotation.Nullable String lowLeftRocketFar) { + this.lowLeftRocketFar = lowLeftRocketFar; + } + + public MatchScoreBreakdown2019Alliance lowLeftRocketNear(@javax.annotation.Nullable String lowLeftRocketNear) { + + this.lowLeftRocketNear = lowLeftRocketNear; + return this; + } + + /** + * Get lowLeftRocketNear + * @return lowLeftRocketNear + */ + @javax.annotation.Nullable + + public String getLowLeftRocketNear() { + return lowLeftRocketNear; + } + + + public void setLowLeftRocketNear(@javax.annotation.Nullable String lowLeftRocketNear) { + this.lowLeftRocketNear = lowLeftRocketNear; + } + + public MatchScoreBreakdown2019Alliance lowRightRocketFar(@javax.annotation.Nullable String lowRightRocketFar) { + + this.lowRightRocketFar = lowRightRocketFar; + return this; + } + + /** + * Get lowRightRocketFar + * @return lowRightRocketFar + */ + @javax.annotation.Nullable + + public String getLowRightRocketFar() { + return lowRightRocketFar; + } + + + public void setLowRightRocketFar(@javax.annotation.Nullable String lowRightRocketFar) { + this.lowRightRocketFar = lowRightRocketFar; + } + + public MatchScoreBreakdown2019Alliance lowRightRocketNear(@javax.annotation.Nullable String lowRightRocketNear) { + + this.lowRightRocketNear = lowRightRocketNear; + return this; + } + + /** + * Get lowRightRocketNear + * @return lowRightRocketNear + */ + @javax.annotation.Nullable + + public String getLowRightRocketNear() { + return lowRightRocketNear; + } + + + public void setLowRightRocketNear(@javax.annotation.Nullable String lowRightRocketNear) { + this.lowRightRocketNear = lowRightRocketNear; + } + + public MatchScoreBreakdown2019Alliance midLeftRocketFar(@javax.annotation.Nullable String midLeftRocketFar) { + + this.midLeftRocketFar = midLeftRocketFar; + return this; + } + + /** + * Get midLeftRocketFar + * @return midLeftRocketFar + */ + @javax.annotation.Nullable + + public String getMidLeftRocketFar() { + return midLeftRocketFar; + } + + + public void setMidLeftRocketFar(@javax.annotation.Nullable String midLeftRocketFar) { + this.midLeftRocketFar = midLeftRocketFar; + } + + public MatchScoreBreakdown2019Alliance midLeftRocketNear(@javax.annotation.Nullable String midLeftRocketNear) { + + this.midLeftRocketNear = midLeftRocketNear; + return this; + } + + /** + * Get midLeftRocketNear + * @return midLeftRocketNear + */ + @javax.annotation.Nullable + + public String getMidLeftRocketNear() { + return midLeftRocketNear; + } + + + public void setMidLeftRocketNear(@javax.annotation.Nullable String midLeftRocketNear) { + this.midLeftRocketNear = midLeftRocketNear; + } + + public MatchScoreBreakdown2019Alliance midRightRocketFar(@javax.annotation.Nullable String midRightRocketFar) { + + this.midRightRocketFar = midRightRocketFar; + return this; + } + + /** + * Get midRightRocketFar + * @return midRightRocketFar + */ + @javax.annotation.Nullable + + public String getMidRightRocketFar() { + return midRightRocketFar; + } + + + public void setMidRightRocketFar(@javax.annotation.Nullable String midRightRocketFar) { + this.midRightRocketFar = midRightRocketFar; + } + + public MatchScoreBreakdown2019Alliance midRightRocketNear(@javax.annotation.Nullable String midRightRocketNear) { + + this.midRightRocketNear = midRightRocketNear; + return this; + } + + /** + * Get midRightRocketNear + * @return midRightRocketNear + */ + @javax.annotation.Nullable + + public String getMidRightRocketNear() { + return midRightRocketNear; + } + + + public void setMidRightRocketNear(@javax.annotation.Nullable String midRightRocketNear) { + this.midRightRocketNear = midRightRocketNear; + } + + public MatchScoreBreakdown2019Alliance preMatchBay1(@javax.annotation.Nullable String preMatchBay1) { + + this.preMatchBay1 = preMatchBay1; + return this; + } + + /** + * Get preMatchBay1 + * @return preMatchBay1 + */ + @javax.annotation.Nullable + + public String getPreMatchBay1() { + return preMatchBay1; + } + + + public void setPreMatchBay1(@javax.annotation.Nullable String preMatchBay1) { + this.preMatchBay1 = preMatchBay1; + } + + public MatchScoreBreakdown2019Alliance preMatchBay2(@javax.annotation.Nullable String preMatchBay2) { + + this.preMatchBay2 = preMatchBay2; + return this; + } + + /** + * Get preMatchBay2 + * @return preMatchBay2 + */ + @javax.annotation.Nullable + + public String getPreMatchBay2() { + return preMatchBay2; + } + + + public void setPreMatchBay2(@javax.annotation.Nullable String preMatchBay2) { + this.preMatchBay2 = preMatchBay2; + } + + public MatchScoreBreakdown2019Alliance preMatchBay3(@javax.annotation.Nullable String preMatchBay3) { + + this.preMatchBay3 = preMatchBay3; + return this; + } + + /** + * Get preMatchBay3 + * @return preMatchBay3 + */ + @javax.annotation.Nullable + + public String getPreMatchBay3() { + return preMatchBay3; + } + + + public void setPreMatchBay3(@javax.annotation.Nullable String preMatchBay3) { + this.preMatchBay3 = preMatchBay3; + } + + public MatchScoreBreakdown2019Alliance preMatchBay6(@javax.annotation.Nullable String preMatchBay6) { + + this.preMatchBay6 = preMatchBay6; + return this; + } + + /** + * Get preMatchBay6 + * @return preMatchBay6 + */ + @javax.annotation.Nullable + + public String getPreMatchBay6() { + return preMatchBay6; + } + + + public void setPreMatchBay6(@javax.annotation.Nullable String preMatchBay6) { + this.preMatchBay6 = preMatchBay6; + } + + public MatchScoreBreakdown2019Alliance preMatchBay7(@javax.annotation.Nullable String preMatchBay7) { + + this.preMatchBay7 = preMatchBay7; + return this; + } + + /** + * Get preMatchBay7 + * @return preMatchBay7 + */ + @javax.annotation.Nullable + + public String getPreMatchBay7() { + return preMatchBay7; + } + + + public void setPreMatchBay7(@javax.annotation.Nullable String preMatchBay7) { + this.preMatchBay7 = preMatchBay7; + } + + public MatchScoreBreakdown2019Alliance preMatchBay8(@javax.annotation.Nullable String preMatchBay8) { + + this.preMatchBay8 = preMatchBay8; + return this; + } + + /** + * Get preMatchBay8 + * @return preMatchBay8 + */ + @javax.annotation.Nullable + + public String getPreMatchBay8() { + return preMatchBay8; + } + + + public void setPreMatchBay8(@javax.annotation.Nullable String preMatchBay8) { + this.preMatchBay8 = preMatchBay8; + } + + public MatchScoreBreakdown2019Alliance preMatchLevelRobot1(@javax.annotation.Nullable String preMatchLevelRobot1) { + + this.preMatchLevelRobot1 = preMatchLevelRobot1; + return this; + } + + /** + * Get preMatchLevelRobot1 + * @return preMatchLevelRobot1 + */ + @javax.annotation.Nullable + + public String getPreMatchLevelRobot1() { + return preMatchLevelRobot1; + } + + + public void setPreMatchLevelRobot1(@javax.annotation.Nullable String preMatchLevelRobot1) { + this.preMatchLevelRobot1 = preMatchLevelRobot1; + } + + public MatchScoreBreakdown2019Alliance preMatchLevelRobot2(@javax.annotation.Nullable String preMatchLevelRobot2) { + + this.preMatchLevelRobot2 = preMatchLevelRobot2; + return this; + } + + /** + * Get preMatchLevelRobot2 + * @return preMatchLevelRobot2 + */ + @javax.annotation.Nullable + + public String getPreMatchLevelRobot2() { + return preMatchLevelRobot2; + } + + + public void setPreMatchLevelRobot2(@javax.annotation.Nullable String preMatchLevelRobot2) { + this.preMatchLevelRobot2 = preMatchLevelRobot2; + } + + public MatchScoreBreakdown2019Alliance preMatchLevelRobot3(@javax.annotation.Nullable String preMatchLevelRobot3) { + + this.preMatchLevelRobot3 = preMatchLevelRobot3; + return this; + } + + /** + * Get preMatchLevelRobot3 + * @return preMatchLevelRobot3 + */ + @javax.annotation.Nullable + + public String getPreMatchLevelRobot3() { + return preMatchLevelRobot3; + } + + + public void setPreMatchLevelRobot3(@javax.annotation.Nullable String preMatchLevelRobot3) { + this.preMatchLevelRobot3 = preMatchLevelRobot3; + } + + public MatchScoreBreakdown2019Alliance rp(@javax.annotation.Nullable Integer rp) { + + this.rp = rp; + return this; + } + + /** + * Get rp + * @return rp + */ + @javax.annotation.Nullable + + public Integer getRp() { + return rp; + } + + + public void setRp(@javax.annotation.Nullable Integer rp) { + this.rp = rp; + } + + public MatchScoreBreakdown2019Alliance sandStormBonusPoints(@javax.annotation.Nullable Integer sandStormBonusPoints) { + + this.sandStormBonusPoints = sandStormBonusPoints; + return this; + } + + /** + * Get sandStormBonusPoints + * @return sandStormBonusPoints + */ + @javax.annotation.Nullable + + public Integer getSandStormBonusPoints() { + return sandStormBonusPoints; + } + + + public void setSandStormBonusPoints(@javax.annotation.Nullable Integer sandStormBonusPoints) { + this.sandStormBonusPoints = sandStormBonusPoints; + } + + public MatchScoreBreakdown2019Alliance techFoulCount(@javax.annotation.Nullable Integer techFoulCount) { + + this.techFoulCount = techFoulCount; + return this; + } + + /** + * Get techFoulCount + * @return techFoulCount + */ + @javax.annotation.Nullable + + public Integer getTechFoulCount() { + return techFoulCount; + } + + + public void setTechFoulCount(@javax.annotation.Nullable Integer techFoulCount) { + this.techFoulCount = techFoulCount; + } + + public MatchScoreBreakdown2019Alliance teleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + + this.teleopPoints = teleopPoints; + return this; + } + + /** + * Get teleopPoints + * @return teleopPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopPoints() { + return teleopPoints; + } + + + public void setTeleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + this.teleopPoints = teleopPoints; + } + + public MatchScoreBreakdown2019Alliance topLeftRocketFar(@javax.annotation.Nullable String topLeftRocketFar) { + + this.topLeftRocketFar = topLeftRocketFar; + return this; + } + + /** + * Get topLeftRocketFar + * @return topLeftRocketFar + */ + @javax.annotation.Nullable + + public String getTopLeftRocketFar() { + return topLeftRocketFar; + } + + + public void setTopLeftRocketFar(@javax.annotation.Nullable String topLeftRocketFar) { + this.topLeftRocketFar = topLeftRocketFar; + } + + public MatchScoreBreakdown2019Alliance topLeftRocketNear(@javax.annotation.Nullable String topLeftRocketNear) { + + this.topLeftRocketNear = topLeftRocketNear; + return this; + } + + /** + * Get topLeftRocketNear + * @return topLeftRocketNear + */ + @javax.annotation.Nullable + + public String getTopLeftRocketNear() { + return topLeftRocketNear; + } + + + public void setTopLeftRocketNear(@javax.annotation.Nullable String topLeftRocketNear) { + this.topLeftRocketNear = topLeftRocketNear; + } + + public MatchScoreBreakdown2019Alliance topRightRocketFar(@javax.annotation.Nullable String topRightRocketFar) { + + this.topRightRocketFar = topRightRocketFar; + return this; + } + + /** + * Get topRightRocketFar + * @return topRightRocketFar + */ + @javax.annotation.Nullable + + public String getTopRightRocketFar() { + return topRightRocketFar; + } + + + public void setTopRightRocketFar(@javax.annotation.Nullable String topRightRocketFar) { + this.topRightRocketFar = topRightRocketFar; + } + + public MatchScoreBreakdown2019Alliance topRightRocketNear(@javax.annotation.Nullable String topRightRocketNear) { + + this.topRightRocketNear = topRightRocketNear; + return this; + } + + /** + * Get topRightRocketNear + * @return topRightRocketNear + */ + @javax.annotation.Nullable + + public String getTopRightRocketNear() { + return topRightRocketNear; + } + + + public void setTopRightRocketNear(@javax.annotation.Nullable String topRightRocketNear) { + this.topRightRocketNear = topRightRocketNear; + } + + public MatchScoreBreakdown2019Alliance totalPoints(@javax.annotation.Nullable Integer totalPoints) { + + this.totalPoints = totalPoints; + return this; + } + + /** + * Get totalPoints + * @return totalPoints + */ + @javax.annotation.Nullable + + public Integer getTotalPoints() { + return totalPoints; + } + + + public void setTotalPoints(@javax.annotation.Nullable Integer totalPoints) { + this.totalPoints = totalPoints; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2019Alliance matchScoreBreakdown2019Alliance = (MatchScoreBreakdown2019Alliance) o; + return Objects.equals(this.adjustPoints, matchScoreBreakdown2019Alliance.adjustPoints) && + Objects.equals(this.autoPoints, matchScoreBreakdown2019Alliance.autoPoints) && + Objects.equals(this.bay1, matchScoreBreakdown2019Alliance.bay1) && + Objects.equals(this.bay2, matchScoreBreakdown2019Alliance.bay2) && + Objects.equals(this.bay3, matchScoreBreakdown2019Alliance.bay3) && + Objects.equals(this.bay4, matchScoreBreakdown2019Alliance.bay4) && + Objects.equals(this.bay5, matchScoreBreakdown2019Alliance.bay5) && + Objects.equals(this.bay6, matchScoreBreakdown2019Alliance.bay6) && + Objects.equals(this.bay7, matchScoreBreakdown2019Alliance.bay7) && + Objects.equals(this.bay8, matchScoreBreakdown2019Alliance.bay8) && + Objects.equals(this.cargoPoints, matchScoreBreakdown2019Alliance.cargoPoints) && + Objects.equals(this.completeRocketRankingPoint, matchScoreBreakdown2019Alliance.completeRocketRankingPoint) && + Objects.equals(this.completedRocketFar, matchScoreBreakdown2019Alliance.completedRocketFar) && + Objects.equals(this.completedRocketNear, matchScoreBreakdown2019Alliance.completedRocketNear) && + Objects.equals(this.endgameRobot1, matchScoreBreakdown2019Alliance.endgameRobot1) && + Objects.equals(this.endgameRobot2, matchScoreBreakdown2019Alliance.endgameRobot2) && + Objects.equals(this.endgameRobot3, matchScoreBreakdown2019Alliance.endgameRobot3) && + Objects.equals(this.foulCount, matchScoreBreakdown2019Alliance.foulCount) && + Objects.equals(this.foulPoints, matchScoreBreakdown2019Alliance.foulPoints) && + Objects.equals(this.habClimbPoints, matchScoreBreakdown2019Alliance.habClimbPoints) && + Objects.equals(this.habDockingRankingPoint, matchScoreBreakdown2019Alliance.habDockingRankingPoint) && + Objects.equals(this.habLineRobot1, matchScoreBreakdown2019Alliance.habLineRobot1) && + Objects.equals(this.habLineRobot2, matchScoreBreakdown2019Alliance.habLineRobot2) && + Objects.equals(this.habLineRobot3, matchScoreBreakdown2019Alliance.habLineRobot3) && + Objects.equals(this.hatchPanelPoints, matchScoreBreakdown2019Alliance.hatchPanelPoints) && + Objects.equals(this.lowLeftRocketFar, matchScoreBreakdown2019Alliance.lowLeftRocketFar) && + Objects.equals(this.lowLeftRocketNear, matchScoreBreakdown2019Alliance.lowLeftRocketNear) && + Objects.equals(this.lowRightRocketFar, matchScoreBreakdown2019Alliance.lowRightRocketFar) && + Objects.equals(this.lowRightRocketNear, matchScoreBreakdown2019Alliance.lowRightRocketNear) && + Objects.equals(this.midLeftRocketFar, matchScoreBreakdown2019Alliance.midLeftRocketFar) && + Objects.equals(this.midLeftRocketNear, matchScoreBreakdown2019Alliance.midLeftRocketNear) && + Objects.equals(this.midRightRocketFar, matchScoreBreakdown2019Alliance.midRightRocketFar) && + Objects.equals(this.midRightRocketNear, matchScoreBreakdown2019Alliance.midRightRocketNear) && + Objects.equals(this.preMatchBay1, matchScoreBreakdown2019Alliance.preMatchBay1) && + Objects.equals(this.preMatchBay2, matchScoreBreakdown2019Alliance.preMatchBay2) && + Objects.equals(this.preMatchBay3, matchScoreBreakdown2019Alliance.preMatchBay3) && + Objects.equals(this.preMatchBay6, matchScoreBreakdown2019Alliance.preMatchBay6) && + Objects.equals(this.preMatchBay7, matchScoreBreakdown2019Alliance.preMatchBay7) && + Objects.equals(this.preMatchBay8, matchScoreBreakdown2019Alliance.preMatchBay8) && + Objects.equals(this.preMatchLevelRobot1, matchScoreBreakdown2019Alliance.preMatchLevelRobot1) && + Objects.equals(this.preMatchLevelRobot2, matchScoreBreakdown2019Alliance.preMatchLevelRobot2) && + Objects.equals(this.preMatchLevelRobot3, matchScoreBreakdown2019Alliance.preMatchLevelRobot3) && + Objects.equals(this.rp, matchScoreBreakdown2019Alliance.rp) && + Objects.equals(this.sandStormBonusPoints, matchScoreBreakdown2019Alliance.sandStormBonusPoints) && + Objects.equals(this.techFoulCount, matchScoreBreakdown2019Alliance.techFoulCount) && + Objects.equals(this.teleopPoints, matchScoreBreakdown2019Alliance.teleopPoints) && + Objects.equals(this.topLeftRocketFar, matchScoreBreakdown2019Alliance.topLeftRocketFar) && + Objects.equals(this.topLeftRocketNear, matchScoreBreakdown2019Alliance.topLeftRocketNear) && + Objects.equals(this.topRightRocketFar, matchScoreBreakdown2019Alliance.topRightRocketFar) && + Objects.equals(this.topRightRocketNear, matchScoreBreakdown2019Alliance.topRightRocketNear) && + Objects.equals(this.totalPoints, matchScoreBreakdown2019Alliance.totalPoints); + } + + @Override + public int hashCode() { + return Objects.hash(adjustPoints, autoPoints, bay1, bay2, bay3, bay4, bay5, bay6, bay7, bay8, cargoPoints, completeRocketRankingPoint, completedRocketFar, completedRocketNear, endgameRobot1, endgameRobot2, endgameRobot3, foulCount, foulPoints, habClimbPoints, habDockingRankingPoint, habLineRobot1, habLineRobot2, habLineRobot3, hatchPanelPoints, lowLeftRocketFar, lowLeftRocketNear, lowRightRocketFar, lowRightRocketNear, midLeftRocketFar, midLeftRocketNear, midRightRocketFar, midRightRocketNear, preMatchBay1, preMatchBay2, preMatchBay3, preMatchBay6, preMatchBay7, preMatchBay8, preMatchLevelRobot1, preMatchLevelRobot2, preMatchLevelRobot3, rp, sandStormBonusPoints, techFoulCount, teleopPoints, topLeftRocketFar, topLeftRocketNear, topRightRocketFar, topRightRocketNear, totalPoints); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2019Alliance {\n"); + sb.append(" adjustPoints: ").append(toIndentedString(adjustPoints)).append("\n"); + sb.append(" autoPoints: ").append(toIndentedString(autoPoints)).append("\n"); + sb.append(" bay1: ").append(toIndentedString(bay1)).append("\n"); + sb.append(" bay2: ").append(toIndentedString(bay2)).append("\n"); + sb.append(" bay3: ").append(toIndentedString(bay3)).append("\n"); + sb.append(" bay4: ").append(toIndentedString(bay4)).append("\n"); + sb.append(" bay5: ").append(toIndentedString(bay5)).append("\n"); + sb.append(" bay6: ").append(toIndentedString(bay6)).append("\n"); + sb.append(" bay7: ").append(toIndentedString(bay7)).append("\n"); + sb.append(" bay8: ").append(toIndentedString(bay8)).append("\n"); + sb.append(" cargoPoints: ").append(toIndentedString(cargoPoints)).append("\n"); + sb.append(" completeRocketRankingPoint: ").append(toIndentedString(completeRocketRankingPoint)).append("\n"); + sb.append(" completedRocketFar: ").append(toIndentedString(completedRocketFar)).append("\n"); + sb.append(" completedRocketNear: ").append(toIndentedString(completedRocketNear)).append("\n"); + sb.append(" endgameRobot1: ").append(toIndentedString(endgameRobot1)).append("\n"); + sb.append(" endgameRobot2: ").append(toIndentedString(endgameRobot2)).append("\n"); + sb.append(" endgameRobot3: ").append(toIndentedString(endgameRobot3)).append("\n"); + sb.append(" foulCount: ").append(toIndentedString(foulCount)).append("\n"); + sb.append(" foulPoints: ").append(toIndentedString(foulPoints)).append("\n"); + sb.append(" habClimbPoints: ").append(toIndentedString(habClimbPoints)).append("\n"); + sb.append(" habDockingRankingPoint: ").append(toIndentedString(habDockingRankingPoint)).append("\n"); + sb.append(" habLineRobot1: ").append(toIndentedString(habLineRobot1)).append("\n"); + sb.append(" habLineRobot2: ").append(toIndentedString(habLineRobot2)).append("\n"); + sb.append(" habLineRobot3: ").append(toIndentedString(habLineRobot3)).append("\n"); + sb.append(" hatchPanelPoints: ").append(toIndentedString(hatchPanelPoints)).append("\n"); + sb.append(" lowLeftRocketFar: ").append(toIndentedString(lowLeftRocketFar)).append("\n"); + sb.append(" lowLeftRocketNear: ").append(toIndentedString(lowLeftRocketNear)).append("\n"); + sb.append(" lowRightRocketFar: ").append(toIndentedString(lowRightRocketFar)).append("\n"); + sb.append(" lowRightRocketNear: ").append(toIndentedString(lowRightRocketNear)).append("\n"); + sb.append(" midLeftRocketFar: ").append(toIndentedString(midLeftRocketFar)).append("\n"); + sb.append(" midLeftRocketNear: ").append(toIndentedString(midLeftRocketNear)).append("\n"); + sb.append(" midRightRocketFar: ").append(toIndentedString(midRightRocketFar)).append("\n"); + sb.append(" midRightRocketNear: ").append(toIndentedString(midRightRocketNear)).append("\n"); + sb.append(" preMatchBay1: ").append(toIndentedString(preMatchBay1)).append("\n"); + sb.append(" preMatchBay2: ").append(toIndentedString(preMatchBay2)).append("\n"); + sb.append(" preMatchBay3: ").append(toIndentedString(preMatchBay3)).append("\n"); + sb.append(" preMatchBay6: ").append(toIndentedString(preMatchBay6)).append("\n"); + sb.append(" preMatchBay7: ").append(toIndentedString(preMatchBay7)).append("\n"); + sb.append(" preMatchBay8: ").append(toIndentedString(preMatchBay8)).append("\n"); + sb.append(" preMatchLevelRobot1: ").append(toIndentedString(preMatchLevelRobot1)).append("\n"); + sb.append(" preMatchLevelRobot2: ").append(toIndentedString(preMatchLevelRobot2)).append("\n"); + sb.append(" preMatchLevelRobot3: ").append(toIndentedString(preMatchLevelRobot3)).append("\n"); + sb.append(" rp: ").append(toIndentedString(rp)).append("\n"); + sb.append(" sandStormBonusPoints: ").append(toIndentedString(sandStormBonusPoints)).append("\n"); + sb.append(" techFoulCount: ").append(toIndentedString(techFoulCount)).append("\n"); + sb.append(" teleopPoints: ").append(toIndentedString(teleopPoints)).append("\n"); + sb.append(" topLeftRocketFar: ").append(toIndentedString(topLeftRocketFar)).append("\n"); + sb.append(" topLeftRocketNear: ").append(toIndentedString(topLeftRocketNear)).append("\n"); + sb.append(" topRightRocketFar: ").append(toIndentedString(topRightRocketFar)).append("\n"); + sb.append(" topRightRocketNear: ").append(toIndentedString(topRightRocketNear)).append("\n"); + sb.append(" totalPoints: ").append(toIndentedString(totalPoints)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2020.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2020.java new file mode 100644 index 000000000..eae319120 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2020.java @@ -0,0 +1,126 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import thebluealliance.api.model.MatchScoreBreakdown2020Alliance; + +/** + * See the 2020 FMS API documentation for a description of each value. https://frcevents2.docs.apiary.io/#/reference/match-results/score-details + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2020 { + public static final String SERIALIZED_NAME_BLUE = "blue"; + @SerializedName(SERIALIZED_NAME_BLUE) + @javax.annotation.Nonnull + private MatchScoreBreakdown2020Alliance blue; + + public static final String SERIALIZED_NAME_RED = "red"; + @SerializedName(SERIALIZED_NAME_RED) + @javax.annotation.Nonnull + private MatchScoreBreakdown2020Alliance red; + + public MatchScoreBreakdown2020() { + } + + public MatchScoreBreakdown2020 blue(@javax.annotation.Nonnull MatchScoreBreakdown2020Alliance blue) { + + this.blue = blue; + return this; + } + + /** + * Get blue + * @return blue + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2020Alliance getBlue() { + return blue; + } + + + public void setBlue(@javax.annotation.Nonnull MatchScoreBreakdown2020Alliance blue) { + this.blue = blue; + } + + public MatchScoreBreakdown2020 red(@javax.annotation.Nonnull MatchScoreBreakdown2020Alliance red) { + + this.red = red; + return this; + } + + /** + * Get red + * @return red + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2020Alliance getRed() { + return red; + } + + + public void setRed(@javax.annotation.Nonnull MatchScoreBreakdown2020Alliance red) { + this.red = red; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2020 matchScoreBreakdown2020 = (MatchScoreBreakdown2020) o; + return Objects.equals(this.blue, matchScoreBreakdown2020.blue) && + Objects.equals(this.red, matchScoreBreakdown2020.red); + } + + @Override + public int hashCode() { + return Objects.hash(blue, red); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2020 {\n"); + sb.append(" blue: ").append(toIndentedString(blue)).append("\n"); + sb.append(" red: ").append(toIndentedString(red)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2020Alliance.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2020Alliance.java new file mode 100644 index 000000000..79be317fb --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2020Alliance.java @@ -0,0 +1,1021 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * MatchScoreBreakdown2020Alliance + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2020Alliance { + public static final String SERIALIZED_NAME_INIT_LINE_ROBOT1 = "initLineRobot1"; + @SerializedName(SERIALIZED_NAME_INIT_LINE_ROBOT1) + @javax.annotation.Nullable + private String initLineRobot1; + + public static final String SERIALIZED_NAME_ENDGAME_ROBOT1 = "endgameRobot1"; + @SerializedName(SERIALIZED_NAME_ENDGAME_ROBOT1) + @javax.annotation.Nullable + private String endgameRobot1; + + public static final String SERIALIZED_NAME_INIT_LINE_ROBOT2 = "initLineRobot2"; + @SerializedName(SERIALIZED_NAME_INIT_LINE_ROBOT2) + @javax.annotation.Nullable + private String initLineRobot2; + + public static final String SERIALIZED_NAME_ENDGAME_ROBOT2 = "endgameRobot2"; + @SerializedName(SERIALIZED_NAME_ENDGAME_ROBOT2) + @javax.annotation.Nullable + private String endgameRobot2; + + public static final String SERIALIZED_NAME_INIT_LINE_ROBOT3 = "initLineRobot3"; + @SerializedName(SERIALIZED_NAME_INIT_LINE_ROBOT3) + @javax.annotation.Nullable + private String initLineRobot3; + + public static final String SERIALIZED_NAME_ENDGAME_ROBOT3 = "endgameRobot3"; + @SerializedName(SERIALIZED_NAME_ENDGAME_ROBOT3) + @javax.annotation.Nullable + private String endgameRobot3; + + public static final String SERIALIZED_NAME_AUTO_CELLS_BOTTOM = "autoCellsBottom"; + @SerializedName(SERIALIZED_NAME_AUTO_CELLS_BOTTOM) + @javax.annotation.Nullable + private Integer autoCellsBottom; + + public static final String SERIALIZED_NAME_AUTO_CELLS_OUTER = "autoCellsOuter"; + @SerializedName(SERIALIZED_NAME_AUTO_CELLS_OUTER) + @javax.annotation.Nullable + private Integer autoCellsOuter; + + public static final String SERIALIZED_NAME_AUTO_CELLS_INNER = "autoCellsInner"; + @SerializedName(SERIALIZED_NAME_AUTO_CELLS_INNER) + @javax.annotation.Nullable + private Integer autoCellsInner; + + public static final String SERIALIZED_NAME_TELEOP_CELLS_BOTTOM = "teleopCellsBottom"; + @SerializedName(SERIALIZED_NAME_TELEOP_CELLS_BOTTOM) + @javax.annotation.Nullable + private Integer teleopCellsBottom; + + public static final String SERIALIZED_NAME_TELEOP_CELLS_OUTER = "teleopCellsOuter"; + @SerializedName(SERIALIZED_NAME_TELEOP_CELLS_OUTER) + @javax.annotation.Nullable + private Integer teleopCellsOuter; + + public static final String SERIALIZED_NAME_TELEOP_CELLS_INNER = "teleopCellsInner"; + @SerializedName(SERIALIZED_NAME_TELEOP_CELLS_INNER) + @javax.annotation.Nullable + private Integer teleopCellsInner; + + public static final String SERIALIZED_NAME_STAGE1_ACTIVATED = "stage1Activated"; + @SerializedName(SERIALIZED_NAME_STAGE1_ACTIVATED) + @javax.annotation.Nullable + private Boolean stage1Activated; + + public static final String SERIALIZED_NAME_STAGE2_ACTIVATED = "stage2Activated"; + @SerializedName(SERIALIZED_NAME_STAGE2_ACTIVATED) + @javax.annotation.Nullable + private Boolean stage2Activated; + + public static final String SERIALIZED_NAME_STAGE3_ACTIVATED = "stage3Activated"; + @SerializedName(SERIALIZED_NAME_STAGE3_ACTIVATED) + @javax.annotation.Nullable + private Boolean stage3Activated; + + public static final String SERIALIZED_NAME_STAGE3_TARGET_COLOR = "stage3TargetColor"; + @SerializedName(SERIALIZED_NAME_STAGE3_TARGET_COLOR) + @javax.annotation.Nullable + private String stage3TargetColor; + + public static final String SERIALIZED_NAME_ENDGAME_RUNG_IS_LEVEL = "endgameRungIsLevel"; + @SerializedName(SERIALIZED_NAME_ENDGAME_RUNG_IS_LEVEL) + @javax.annotation.Nullable + private String endgameRungIsLevel; + + public static final String SERIALIZED_NAME_AUTO_INIT_LINE_POINTS = "autoInitLinePoints"; + @SerializedName(SERIALIZED_NAME_AUTO_INIT_LINE_POINTS) + @javax.annotation.Nullable + private Integer autoInitLinePoints; + + public static final String SERIALIZED_NAME_AUTO_CELL_POINTS = "autoCellPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_CELL_POINTS) + @javax.annotation.Nullable + private Integer autoCellPoints; + + public static final String SERIALIZED_NAME_AUTO_POINTS = "autoPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_POINTS) + @javax.annotation.Nullable + private Integer autoPoints; + + public static final String SERIALIZED_NAME_TELEOP_CELL_POINTS = "teleopCellPoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_CELL_POINTS) + @javax.annotation.Nullable + private Integer teleopCellPoints; + + public static final String SERIALIZED_NAME_CONTROL_PANEL_POINTS = "controlPanelPoints"; + @SerializedName(SERIALIZED_NAME_CONTROL_PANEL_POINTS) + @javax.annotation.Nullable + private Integer controlPanelPoints; + + public static final String SERIALIZED_NAME_ENDGAME_POINTS = "endgamePoints"; + @SerializedName(SERIALIZED_NAME_ENDGAME_POINTS) + @javax.annotation.Nullable + private Integer endgamePoints; + + public static final String SERIALIZED_NAME_TELEOP_POINTS = "teleopPoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_POINTS) + @javax.annotation.Nullable + private Integer teleopPoints; + + public static final String SERIALIZED_NAME_SHIELD_OPERATIONAL_RANKING_POINT = "shieldOperationalRankingPoint"; + @SerializedName(SERIALIZED_NAME_SHIELD_OPERATIONAL_RANKING_POINT) + @javax.annotation.Nullable + private Boolean shieldOperationalRankingPoint; + + public static final String SERIALIZED_NAME_SHIELD_ENERGIZED_RANKING_POINT = "shieldEnergizedRankingPoint"; + @SerializedName(SERIALIZED_NAME_SHIELD_ENERGIZED_RANKING_POINT) + @javax.annotation.Nullable + private Boolean shieldEnergizedRankingPoint; + + public static final String SERIALIZED_NAME_TBA_SHIELD_ENERGIZED_RANKING_POINT_FROM_FOUL = "tba_shieldEnergizedRankingPointFromFoul"; + @SerializedName(SERIALIZED_NAME_TBA_SHIELD_ENERGIZED_RANKING_POINT_FROM_FOUL) + @javax.annotation.Nullable + private Boolean tbaShieldEnergizedRankingPointFromFoul; + + public static final String SERIALIZED_NAME_TBA_NUM_ROBOTS_HANGING = "tba_numRobotsHanging"; + @SerializedName(SERIALIZED_NAME_TBA_NUM_ROBOTS_HANGING) + @javax.annotation.Nullable + private Integer tbaNumRobotsHanging; + + public static final String SERIALIZED_NAME_FOUL_COUNT = "foulCount"; + @SerializedName(SERIALIZED_NAME_FOUL_COUNT) + @javax.annotation.Nullable + private Integer foulCount; + + public static final String SERIALIZED_NAME_TECH_FOUL_COUNT = "techFoulCount"; + @SerializedName(SERIALIZED_NAME_TECH_FOUL_COUNT) + @javax.annotation.Nullable + private Integer techFoulCount; + + public static final String SERIALIZED_NAME_ADJUST_POINTS = "adjustPoints"; + @SerializedName(SERIALIZED_NAME_ADJUST_POINTS) + @javax.annotation.Nullable + private Integer adjustPoints; + + public static final String SERIALIZED_NAME_FOUL_POINTS = "foulPoints"; + @SerializedName(SERIALIZED_NAME_FOUL_POINTS) + @javax.annotation.Nullable + private Integer foulPoints; + + public static final String SERIALIZED_NAME_RP = "rp"; + @SerializedName(SERIALIZED_NAME_RP) + @javax.annotation.Nullable + private Integer rp; + + public static final String SERIALIZED_NAME_TOTAL_POINTS = "totalPoints"; + @SerializedName(SERIALIZED_NAME_TOTAL_POINTS) + @javax.annotation.Nullable + private Integer totalPoints; + + public MatchScoreBreakdown2020Alliance() { + } + + public MatchScoreBreakdown2020Alliance initLineRobot1(@javax.annotation.Nullable String initLineRobot1) { + + this.initLineRobot1 = initLineRobot1; + return this; + } + + /** + * Get initLineRobot1 + * @return initLineRobot1 + */ + @javax.annotation.Nullable + + public String getInitLineRobot1() { + return initLineRobot1; + } + + + public void setInitLineRobot1(@javax.annotation.Nullable String initLineRobot1) { + this.initLineRobot1 = initLineRobot1; + } + + public MatchScoreBreakdown2020Alliance endgameRobot1(@javax.annotation.Nullable String endgameRobot1) { + + this.endgameRobot1 = endgameRobot1; + return this; + } + + /** + * Get endgameRobot1 + * @return endgameRobot1 + */ + @javax.annotation.Nullable + + public String getEndgameRobot1() { + return endgameRobot1; + } + + + public void setEndgameRobot1(@javax.annotation.Nullable String endgameRobot1) { + this.endgameRobot1 = endgameRobot1; + } + + public MatchScoreBreakdown2020Alliance initLineRobot2(@javax.annotation.Nullable String initLineRobot2) { + + this.initLineRobot2 = initLineRobot2; + return this; + } + + /** + * Get initLineRobot2 + * @return initLineRobot2 + */ + @javax.annotation.Nullable + + public String getInitLineRobot2() { + return initLineRobot2; + } + + + public void setInitLineRobot2(@javax.annotation.Nullable String initLineRobot2) { + this.initLineRobot2 = initLineRobot2; + } + + public MatchScoreBreakdown2020Alliance endgameRobot2(@javax.annotation.Nullable String endgameRobot2) { + + this.endgameRobot2 = endgameRobot2; + return this; + } + + /** + * Get endgameRobot2 + * @return endgameRobot2 + */ + @javax.annotation.Nullable + + public String getEndgameRobot2() { + return endgameRobot2; + } + + + public void setEndgameRobot2(@javax.annotation.Nullable String endgameRobot2) { + this.endgameRobot2 = endgameRobot2; + } + + public MatchScoreBreakdown2020Alliance initLineRobot3(@javax.annotation.Nullable String initLineRobot3) { + + this.initLineRobot3 = initLineRobot3; + return this; + } + + /** + * Get initLineRobot3 + * @return initLineRobot3 + */ + @javax.annotation.Nullable + + public String getInitLineRobot3() { + return initLineRobot3; + } + + + public void setInitLineRobot3(@javax.annotation.Nullable String initLineRobot3) { + this.initLineRobot3 = initLineRobot3; + } + + public MatchScoreBreakdown2020Alliance endgameRobot3(@javax.annotation.Nullable String endgameRobot3) { + + this.endgameRobot3 = endgameRobot3; + return this; + } + + /** + * Get endgameRobot3 + * @return endgameRobot3 + */ + @javax.annotation.Nullable + + public String getEndgameRobot3() { + return endgameRobot3; + } + + + public void setEndgameRobot3(@javax.annotation.Nullable String endgameRobot3) { + this.endgameRobot3 = endgameRobot3; + } + + public MatchScoreBreakdown2020Alliance autoCellsBottom(@javax.annotation.Nullable Integer autoCellsBottom) { + + this.autoCellsBottom = autoCellsBottom; + return this; + } + + /** + * Get autoCellsBottom + * @return autoCellsBottom + */ + @javax.annotation.Nullable + + public Integer getAutoCellsBottom() { + return autoCellsBottom; + } + + + public void setAutoCellsBottom(@javax.annotation.Nullable Integer autoCellsBottom) { + this.autoCellsBottom = autoCellsBottom; + } + + public MatchScoreBreakdown2020Alliance autoCellsOuter(@javax.annotation.Nullable Integer autoCellsOuter) { + + this.autoCellsOuter = autoCellsOuter; + return this; + } + + /** + * Get autoCellsOuter + * @return autoCellsOuter + */ + @javax.annotation.Nullable + + public Integer getAutoCellsOuter() { + return autoCellsOuter; + } + + + public void setAutoCellsOuter(@javax.annotation.Nullable Integer autoCellsOuter) { + this.autoCellsOuter = autoCellsOuter; + } + + public MatchScoreBreakdown2020Alliance autoCellsInner(@javax.annotation.Nullable Integer autoCellsInner) { + + this.autoCellsInner = autoCellsInner; + return this; + } + + /** + * Get autoCellsInner + * @return autoCellsInner + */ + @javax.annotation.Nullable + + public Integer getAutoCellsInner() { + return autoCellsInner; + } + + + public void setAutoCellsInner(@javax.annotation.Nullable Integer autoCellsInner) { + this.autoCellsInner = autoCellsInner; + } + + public MatchScoreBreakdown2020Alliance teleopCellsBottom(@javax.annotation.Nullable Integer teleopCellsBottom) { + + this.teleopCellsBottom = teleopCellsBottom; + return this; + } + + /** + * Get teleopCellsBottom + * @return teleopCellsBottom + */ + @javax.annotation.Nullable + + public Integer getTeleopCellsBottom() { + return teleopCellsBottom; + } + + + public void setTeleopCellsBottom(@javax.annotation.Nullable Integer teleopCellsBottom) { + this.teleopCellsBottom = teleopCellsBottom; + } + + public MatchScoreBreakdown2020Alliance teleopCellsOuter(@javax.annotation.Nullable Integer teleopCellsOuter) { + + this.teleopCellsOuter = teleopCellsOuter; + return this; + } + + /** + * Get teleopCellsOuter + * @return teleopCellsOuter + */ + @javax.annotation.Nullable + + public Integer getTeleopCellsOuter() { + return teleopCellsOuter; + } + + + public void setTeleopCellsOuter(@javax.annotation.Nullable Integer teleopCellsOuter) { + this.teleopCellsOuter = teleopCellsOuter; + } + + public MatchScoreBreakdown2020Alliance teleopCellsInner(@javax.annotation.Nullable Integer teleopCellsInner) { + + this.teleopCellsInner = teleopCellsInner; + return this; + } + + /** + * Get teleopCellsInner + * @return teleopCellsInner + */ + @javax.annotation.Nullable + + public Integer getTeleopCellsInner() { + return teleopCellsInner; + } + + + public void setTeleopCellsInner(@javax.annotation.Nullable Integer teleopCellsInner) { + this.teleopCellsInner = teleopCellsInner; + } + + public MatchScoreBreakdown2020Alliance stage1Activated(@javax.annotation.Nullable Boolean stage1Activated) { + + this.stage1Activated = stage1Activated; + return this; + } + + /** + * Get stage1Activated + * @return stage1Activated + */ + @javax.annotation.Nullable + + public Boolean getStage1Activated() { + return stage1Activated; + } + + + public void setStage1Activated(@javax.annotation.Nullable Boolean stage1Activated) { + this.stage1Activated = stage1Activated; + } + + public MatchScoreBreakdown2020Alliance stage2Activated(@javax.annotation.Nullable Boolean stage2Activated) { + + this.stage2Activated = stage2Activated; + return this; + } + + /** + * Get stage2Activated + * @return stage2Activated + */ + @javax.annotation.Nullable + + public Boolean getStage2Activated() { + return stage2Activated; + } + + + public void setStage2Activated(@javax.annotation.Nullable Boolean stage2Activated) { + this.stage2Activated = stage2Activated; + } + + public MatchScoreBreakdown2020Alliance stage3Activated(@javax.annotation.Nullable Boolean stage3Activated) { + + this.stage3Activated = stage3Activated; + return this; + } + + /** + * Get stage3Activated + * @return stage3Activated + */ + @javax.annotation.Nullable + + public Boolean getStage3Activated() { + return stage3Activated; + } + + + public void setStage3Activated(@javax.annotation.Nullable Boolean stage3Activated) { + this.stage3Activated = stage3Activated; + } + + public MatchScoreBreakdown2020Alliance stage3TargetColor(@javax.annotation.Nullable String stage3TargetColor) { + + this.stage3TargetColor = stage3TargetColor; + return this; + } + + /** + * Get stage3TargetColor + * @return stage3TargetColor + */ + @javax.annotation.Nullable + + public String getStage3TargetColor() { + return stage3TargetColor; + } + + + public void setStage3TargetColor(@javax.annotation.Nullable String stage3TargetColor) { + this.stage3TargetColor = stage3TargetColor; + } + + public MatchScoreBreakdown2020Alliance endgameRungIsLevel(@javax.annotation.Nullable String endgameRungIsLevel) { + + this.endgameRungIsLevel = endgameRungIsLevel; + return this; + } + + /** + * Get endgameRungIsLevel + * @return endgameRungIsLevel + */ + @javax.annotation.Nullable + + public String getEndgameRungIsLevel() { + return endgameRungIsLevel; + } + + + public void setEndgameRungIsLevel(@javax.annotation.Nullable String endgameRungIsLevel) { + this.endgameRungIsLevel = endgameRungIsLevel; + } + + public MatchScoreBreakdown2020Alliance autoInitLinePoints(@javax.annotation.Nullable Integer autoInitLinePoints) { + + this.autoInitLinePoints = autoInitLinePoints; + return this; + } + + /** + * Get autoInitLinePoints + * @return autoInitLinePoints + */ + @javax.annotation.Nullable + + public Integer getAutoInitLinePoints() { + return autoInitLinePoints; + } + + + public void setAutoInitLinePoints(@javax.annotation.Nullable Integer autoInitLinePoints) { + this.autoInitLinePoints = autoInitLinePoints; + } + + public MatchScoreBreakdown2020Alliance autoCellPoints(@javax.annotation.Nullable Integer autoCellPoints) { + + this.autoCellPoints = autoCellPoints; + return this; + } + + /** + * Get autoCellPoints + * @return autoCellPoints + */ + @javax.annotation.Nullable + + public Integer getAutoCellPoints() { + return autoCellPoints; + } + + + public void setAutoCellPoints(@javax.annotation.Nullable Integer autoCellPoints) { + this.autoCellPoints = autoCellPoints; + } + + public MatchScoreBreakdown2020Alliance autoPoints(@javax.annotation.Nullable Integer autoPoints) { + + this.autoPoints = autoPoints; + return this; + } + + /** + * Get autoPoints + * @return autoPoints + */ + @javax.annotation.Nullable + + public Integer getAutoPoints() { + return autoPoints; + } + + + public void setAutoPoints(@javax.annotation.Nullable Integer autoPoints) { + this.autoPoints = autoPoints; + } + + public MatchScoreBreakdown2020Alliance teleopCellPoints(@javax.annotation.Nullable Integer teleopCellPoints) { + + this.teleopCellPoints = teleopCellPoints; + return this; + } + + /** + * Get teleopCellPoints + * @return teleopCellPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopCellPoints() { + return teleopCellPoints; + } + + + public void setTeleopCellPoints(@javax.annotation.Nullable Integer teleopCellPoints) { + this.teleopCellPoints = teleopCellPoints; + } + + public MatchScoreBreakdown2020Alliance controlPanelPoints(@javax.annotation.Nullable Integer controlPanelPoints) { + + this.controlPanelPoints = controlPanelPoints; + return this; + } + + /** + * Get controlPanelPoints + * @return controlPanelPoints + */ + @javax.annotation.Nullable + + public Integer getControlPanelPoints() { + return controlPanelPoints; + } + + + public void setControlPanelPoints(@javax.annotation.Nullable Integer controlPanelPoints) { + this.controlPanelPoints = controlPanelPoints; + } + + public MatchScoreBreakdown2020Alliance endgamePoints(@javax.annotation.Nullable Integer endgamePoints) { + + this.endgamePoints = endgamePoints; + return this; + } + + /** + * Get endgamePoints + * @return endgamePoints + */ + @javax.annotation.Nullable + + public Integer getEndgamePoints() { + return endgamePoints; + } + + + public void setEndgamePoints(@javax.annotation.Nullable Integer endgamePoints) { + this.endgamePoints = endgamePoints; + } + + public MatchScoreBreakdown2020Alliance teleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + + this.teleopPoints = teleopPoints; + return this; + } + + /** + * Get teleopPoints + * @return teleopPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopPoints() { + return teleopPoints; + } + + + public void setTeleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + this.teleopPoints = teleopPoints; + } + + public MatchScoreBreakdown2020Alliance shieldOperationalRankingPoint(@javax.annotation.Nullable Boolean shieldOperationalRankingPoint) { + + this.shieldOperationalRankingPoint = shieldOperationalRankingPoint; + return this; + } + + /** + * Get shieldOperationalRankingPoint + * @return shieldOperationalRankingPoint + */ + @javax.annotation.Nullable + + public Boolean getShieldOperationalRankingPoint() { + return shieldOperationalRankingPoint; + } + + + public void setShieldOperationalRankingPoint(@javax.annotation.Nullable Boolean shieldOperationalRankingPoint) { + this.shieldOperationalRankingPoint = shieldOperationalRankingPoint; + } + + public MatchScoreBreakdown2020Alliance shieldEnergizedRankingPoint(@javax.annotation.Nullable Boolean shieldEnergizedRankingPoint) { + + this.shieldEnergizedRankingPoint = shieldEnergizedRankingPoint; + return this; + } + + /** + * Get shieldEnergizedRankingPoint + * @return shieldEnergizedRankingPoint + */ + @javax.annotation.Nullable + + public Boolean getShieldEnergizedRankingPoint() { + return shieldEnergizedRankingPoint; + } + + + public void setShieldEnergizedRankingPoint(@javax.annotation.Nullable Boolean shieldEnergizedRankingPoint) { + this.shieldEnergizedRankingPoint = shieldEnergizedRankingPoint; + } + + public MatchScoreBreakdown2020Alliance tbaShieldEnergizedRankingPointFromFoul(@javax.annotation.Nullable Boolean tbaShieldEnergizedRankingPointFromFoul) { + + this.tbaShieldEnergizedRankingPointFromFoul = tbaShieldEnergizedRankingPointFromFoul; + return this; + } + + /** + * Unofficial TBA-computed value that indicates whether the shieldEnergizedRankingPoint was earned normally or awarded due to a foul. + * @return tbaShieldEnergizedRankingPointFromFoul + */ + @javax.annotation.Nullable + + public Boolean getTbaShieldEnergizedRankingPointFromFoul() { + return tbaShieldEnergizedRankingPointFromFoul; + } + + + public void setTbaShieldEnergizedRankingPointFromFoul(@javax.annotation.Nullable Boolean tbaShieldEnergizedRankingPointFromFoul) { + this.tbaShieldEnergizedRankingPointFromFoul = tbaShieldEnergizedRankingPointFromFoul; + } + + public MatchScoreBreakdown2020Alliance tbaNumRobotsHanging(@javax.annotation.Nullable Integer tbaNumRobotsHanging) { + + this.tbaNumRobotsHanging = tbaNumRobotsHanging; + return this; + } + + /** + * Unofficial TBA-computed value that counts the number of robots who were hanging at the end of the match. + * @return tbaNumRobotsHanging + */ + @javax.annotation.Nullable + + public Integer getTbaNumRobotsHanging() { + return tbaNumRobotsHanging; + } + + + public void setTbaNumRobotsHanging(@javax.annotation.Nullable Integer tbaNumRobotsHanging) { + this.tbaNumRobotsHanging = tbaNumRobotsHanging; + } + + public MatchScoreBreakdown2020Alliance foulCount(@javax.annotation.Nullable Integer foulCount) { + + this.foulCount = foulCount; + return this; + } + + /** + * Get foulCount + * @return foulCount + */ + @javax.annotation.Nullable + + public Integer getFoulCount() { + return foulCount; + } + + + public void setFoulCount(@javax.annotation.Nullable Integer foulCount) { + this.foulCount = foulCount; + } + + public MatchScoreBreakdown2020Alliance techFoulCount(@javax.annotation.Nullable Integer techFoulCount) { + + this.techFoulCount = techFoulCount; + return this; + } + + /** + * Get techFoulCount + * @return techFoulCount + */ + @javax.annotation.Nullable + + public Integer getTechFoulCount() { + return techFoulCount; + } + + + public void setTechFoulCount(@javax.annotation.Nullable Integer techFoulCount) { + this.techFoulCount = techFoulCount; + } + + public MatchScoreBreakdown2020Alliance adjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + + this.adjustPoints = adjustPoints; + return this; + } + + /** + * Get adjustPoints + * @return adjustPoints + */ + @javax.annotation.Nullable + + public Integer getAdjustPoints() { + return adjustPoints; + } + + + public void setAdjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + this.adjustPoints = adjustPoints; + } + + public MatchScoreBreakdown2020Alliance foulPoints(@javax.annotation.Nullable Integer foulPoints) { + + this.foulPoints = foulPoints; + return this; + } + + /** + * Get foulPoints + * @return foulPoints + */ + @javax.annotation.Nullable + + public Integer getFoulPoints() { + return foulPoints; + } + + + public void setFoulPoints(@javax.annotation.Nullable Integer foulPoints) { + this.foulPoints = foulPoints; + } + + public MatchScoreBreakdown2020Alliance rp(@javax.annotation.Nullable Integer rp) { + + this.rp = rp; + return this; + } + + /** + * Get rp + * @return rp + */ + @javax.annotation.Nullable + + public Integer getRp() { + return rp; + } + + + public void setRp(@javax.annotation.Nullable Integer rp) { + this.rp = rp; + } + + public MatchScoreBreakdown2020Alliance totalPoints(@javax.annotation.Nullable Integer totalPoints) { + + this.totalPoints = totalPoints; + return this; + } + + /** + * Get totalPoints + * @return totalPoints + */ + @javax.annotation.Nullable + + public Integer getTotalPoints() { + return totalPoints; + } + + + public void setTotalPoints(@javax.annotation.Nullable Integer totalPoints) { + this.totalPoints = totalPoints; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2020Alliance matchScoreBreakdown2020Alliance = (MatchScoreBreakdown2020Alliance) o; + return Objects.equals(this.initLineRobot1, matchScoreBreakdown2020Alliance.initLineRobot1) && + Objects.equals(this.endgameRobot1, matchScoreBreakdown2020Alliance.endgameRobot1) && + Objects.equals(this.initLineRobot2, matchScoreBreakdown2020Alliance.initLineRobot2) && + Objects.equals(this.endgameRobot2, matchScoreBreakdown2020Alliance.endgameRobot2) && + Objects.equals(this.initLineRobot3, matchScoreBreakdown2020Alliance.initLineRobot3) && + Objects.equals(this.endgameRobot3, matchScoreBreakdown2020Alliance.endgameRobot3) && + Objects.equals(this.autoCellsBottom, matchScoreBreakdown2020Alliance.autoCellsBottom) && + Objects.equals(this.autoCellsOuter, matchScoreBreakdown2020Alliance.autoCellsOuter) && + Objects.equals(this.autoCellsInner, matchScoreBreakdown2020Alliance.autoCellsInner) && + Objects.equals(this.teleopCellsBottom, matchScoreBreakdown2020Alliance.teleopCellsBottom) && + Objects.equals(this.teleopCellsOuter, matchScoreBreakdown2020Alliance.teleopCellsOuter) && + Objects.equals(this.teleopCellsInner, matchScoreBreakdown2020Alliance.teleopCellsInner) && + Objects.equals(this.stage1Activated, matchScoreBreakdown2020Alliance.stage1Activated) && + Objects.equals(this.stage2Activated, matchScoreBreakdown2020Alliance.stage2Activated) && + Objects.equals(this.stage3Activated, matchScoreBreakdown2020Alliance.stage3Activated) && + Objects.equals(this.stage3TargetColor, matchScoreBreakdown2020Alliance.stage3TargetColor) && + Objects.equals(this.endgameRungIsLevel, matchScoreBreakdown2020Alliance.endgameRungIsLevel) && + Objects.equals(this.autoInitLinePoints, matchScoreBreakdown2020Alliance.autoInitLinePoints) && + Objects.equals(this.autoCellPoints, matchScoreBreakdown2020Alliance.autoCellPoints) && + Objects.equals(this.autoPoints, matchScoreBreakdown2020Alliance.autoPoints) && + Objects.equals(this.teleopCellPoints, matchScoreBreakdown2020Alliance.teleopCellPoints) && + Objects.equals(this.controlPanelPoints, matchScoreBreakdown2020Alliance.controlPanelPoints) && + Objects.equals(this.endgamePoints, matchScoreBreakdown2020Alliance.endgamePoints) && + Objects.equals(this.teleopPoints, matchScoreBreakdown2020Alliance.teleopPoints) && + Objects.equals(this.shieldOperationalRankingPoint, matchScoreBreakdown2020Alliance.shieldOperationalRankingPoint) && + Objects.equals(this.shieldEnergizedRankingPoint, matchScoreBreakdown2020Alliance.shieldEnergizedRankingPoint) && + Objects.equals(this.tbaShieldEnergizedRankingPointFromFoul, matchScoreBreakdown2020Alliance.tbaShieldEnergizedRankingPointFromFoul) && + Objects.equals(this.tbaNumRobotsHanging, matchScoreBreakdown2020Alliance.tbaNumRobotsHanging) && + Objects.equals(this.foulCount, matchScoreBreakdown2020Alliance.foulCount) && + Objects.equals(this.techFoulCount, matchScoreBreakdown2020Alliance.techFoulCount) && + Objects.equals(this.adjustPoints, matchScoreBreakdown2020Alliance.adjustPoints) && + Objects.equals(this.foulPoints, matchScoreBreakdown2020Alliance.foulPoints) && + Objects.equals(this.rp, matchScoreBreakdown2020Alliance.rp) && + Objects.equals(this.totalPoints, matchScoreBreakdown2020Alliance.totalPoints); + } + + @Override + public int hashCode() { + return Objects.hash(initLineRobot1, endgameRobot1, initLineRobot2, endgameRobot2, initLineRobot3, endgameRobot3, autoCellsBottom, autoCellsOuter, autoCellsInner, teleopCellsBottom, teleopCellsOuter, teleopCellsInner, stage1Activated, stage2Activated, stage3Activated, stage3TargetColor, endgameRungIsLevel, autoInitLinePoints, autoCellPoints, autoPoints, teleopCellPoints, controlPanelPoints, endgamePoints, teleopPoints, shieldOperationalRankingPoint, shieldEnergizedRankingPoint, tbaShieldEnergizedRankingPointFromFoul, tbaNumRobotsHanging, foulCount, techFoulCount, adjustPoints, foulPoints, rp, totalPoints); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2020Alliance {\n"); + sb.append(" initLineRobot1: ").append(toIndentedString(initLineRobot1)).append("\n"); + sb.append(" endgameRobot1: ").append(toIndentedString(endgameRobot1)).append("\n"); + sb.append(" initLineRobot2: ").append(toIndentedString(initLineRobot2)).append("\n"); + sb.append(" endgameRobot2: ").append(toIndentedString(endgameRobot2)).append("\n"); + sb.append(" initLineRobot3: ").append(toIndentedString(initLineRobot3)).append("\n"); + sb.append(" endgameRobot3: ").append(toIndentedString(endgameRobot3)).append("\n"); + sb.append(" autoCellsBottom: ").append(toIndentedString(autoCellsBottom)).append("\n"); + sb.append(" autoCellsOuter: ").append(toIndentedString(autoCellsOuter)).append("\n"); + sb.append(" autoCellsInner: ").append(toIndentedString(autoCellsInner)).append("\n"); + sb.append(" teleopCellsBottom: ").append(toIndentedString(teleopCellsBottom)).append("\n"); + sb.append(" teleopCellsOuter: ").append(toIndentedString(teleopCellsOuter)).append("\n"); + sb.append(" teleopCellsInner: ").append(toIndentedString(teleopCellsInner)).append("\n"); + sb.append(" stage1Activated: ").append(toIndentedString(stage1Activated)).append("\n"); + sb.append(" stage2Activated: ").append(toIndentedString(stage2Activated)).append("\n"); + sb.append(" stage3Activated: ").append(toIndentedString(stage3Activated)).append("\n"); + sb.append(" stage3TargetColor: ").append(toIndentedString(stage3TargetColor)).append("\n"); + sb.append(" endgameRungIsLevel: ").append(toIndentedString(endgameRungIsLevel)).append("\n"); + sb.append(" autoInitLinePoints: ").append(toIndentedString(autoInitLinePoints)).append("\n"); + sb.append(" autoCellPoints: ").append(toIndentedString(autoCellPoints)).append("\n"); + sb.append(" autoPoints: ").append(toIndentedString(autoPoints)).append("\n"); + sb.append(" teleopCellPoints: ").append(toIndentedString(teleopCellPoints)).append("\n"); + sb.append(" controlPanelPoints: ").append(toIndentedString(controlPanelPoints)).append("\n"); + sb.append(" endgamePoints: ").append(toIndentedString(endgamePoints)).append("\n"); + sb.append(" teleopPoints: ").append(toIndentedString(teleopPoints)).append("\n"); + sb.append(" shieldOperationalRankingPoint: ").append(toIndentedString(shieldOperationalRankingPoint)).append("\n"); + sb.append(" shieldEnergizedRankingPoint: ").append(toIndentedString(shieldEnergizedRankingPoint)).append("\n"); + sb.append(" tbaShieldEnergizedRankingPointFromFoul: ").append(toIndentedString(tbaShieldEnergizedRankingPointFromFoul)).append("\n"); + sb.append(" tbaNumRobotsHanging: ").append(toIndentedString(tbaNumRobotsHanging)).append("\n"); + sb.append(" foulCount: ").append(toIndentedString(foulCount)).append("\n"); + sb.append(" techFoulCount: ").append(toIndentedString(techFoulCount)).append("\n"); + sb.append(" adjustPoints: ").append(toIndentedString(adjustPoints)).append("\n"); + sb.append(" foulPoints: ").append(toIndentedString(foulPoints)).append("\n"); + sb.append(" rp: ").append(toIndentedString(rp)).append("\n"); + sb.append(" totalPoints: ").append(toIndentedString(totalPoints)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2022.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2022.java new file mode 100644 index 000000000..27105f78f --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2022.java @@ -0,0 +1,126 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import thebluealliance.api.model.MatchScoreBreakdown2022Alliance; + +/** + * See the 2022 FMS API documentation for a description of each value. https://frc-api-docs.firstinspires.org + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2022 { + public static final String SERIALIZED_NAME_BLUE = "blue"; + @SerializedName(SERIALIZED_NAME_BLUE) + @javax.annotation.Nonnull + private MatchScoreBreakdown2022Alliance blue; + + public static final String SERIALIZED_NAME_RED = "red"; + @SerializedName(SERIALIZED_NAME_RED) + @javax.annotation.Nonnull + private MatchScoreBreakdown2022Alliance red; + + public MatchScoreBreakdown2022() { + } + + public MatchScoreBreakdown2022 blue(@javax.annotation.Nonnull MatchScoreBreakdown2022Alliance blue) { + + this.blue = blue; + return this; + } + + /** + * Get blue + * @return blue + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2022Alliance getBlue() { + return blue; + } + + + public void setBlue(@javax.annotation.Nonnull MatchScoreBreakdown2022Alliance blue) { + this.blue = blue; + } + + public MatchScoreBreakdown2022 red(@javax.annotation.Nonnull MatchScoreBreakdown2022Alliance red) { + + this.red = red; + return this; + } + + /** + * Get red + * @return red + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2022Alliance getRed() { + return red; + } + + + public void setRed(@javax.annotation.Nonnull MatchScoreBreakdown2022Alliance red) { + this.red = red; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2022 matchScoreBreakdown2022 = (MatchScoreBreakdown2022) o; + return Objects.equals(this.blue, matchScoreBreakdown2022.blue) && + Objects.equals(this.red, matchScoreBreakdown2022.red); + } + + @Override + public int hashCode() { + return Objects.hash(blue, red); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2022 {\n"); + sb.append(" blue: ").append(toIndentedString(blue)).append("\n"); + sb.append(" red: ").append(toIndentedString(red)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2022Alliance.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2022Alliance.java new file mode 100644 index 000000000..ddc0ef15e --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2022Alliance.java @@ -0,0 +1,1489 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * MatchScoreBreakdown2022Alliance + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2022Alliance { + /** + * Gets or Sets taxiRobot1 + */ + @JsonAdapter(TaxiRobot1Enum.Adapter.class) + public enum TaxiRobot1Enum { + YES(String.valueOf("Yes")), + + NO(String.valueOf("No")); + + private String value; + + TaxiRobot1Enum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TaxiRobot1Enum fromValue(String value) { + for (TaxiRobot1Enum b : TaxiRobot1Enum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TaxiRobot1Enum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TaxiRobot1Enum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TaxiRobot1Enum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TAXI_ROBOT1 = "taxiRobot1"; + @SerializedName(SERIALIZED_NAME_TAXI_ROBOT1) + @javax.annotation.Nullable + private TaxiRobot1Enum taxiRobot1; + + /** + * Gets or Sets endgameRobot1 + */ + @JsonAdapter(EndgameRobot1Enum.Adapter.class) + public enum EndgameRobot1Enum { + TRAVERSAL(String.valueOf("Traversal")), + + HIGH(String.valueOf("High")), + + MID(String.valueOf("Mid")), + + LOW(String.valueOf("Low")), + + NONE(String.valueOf("None")); + + private String value; + + EndgameRobot1Enum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EndgameRobot1Enum fromValue(String value) { + for (EndgameRobot1Enum b : EndgameRobot1Enum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EndgameRobot1Enum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EndgameRobot1Enum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EndgameRobot1Enum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ENDGAME_ROBOT1 = "endgameRobot1"; + @SerializedName(SERIALIZED_NAME_ENDGAME_ROBOT1) + @javax.annotation.Nullable + private EndgameRobot1Enum endgameRobot1; + + /** + * Gets or Sets taxiRobot2 + */ + @JsonAdapter(TaxiRobot2Enum.Adapter.class) + public enum TaxiRobot2Enum { + YES(String.valueOf("Yes")), + + NO(String.valueOf("No")); + + private String value; + + TaxiRobot2Enum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TaxiRobot2Enum fromValue(String value) { + for (TaxiRobot2Enum b : TaxiRobot2Enum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TaxiRobot2Enum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TaxiRobot2Enum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TaxiRobot2Enum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TAXI_ROBOT2 = "taxiRobot2"; + @SerializedName(SERIALIZED_NAME_TAXI_ROBOT2) + @javax.annotation.Nullable + private TaxiRobot2Enum taxiRobot2; + + /** + * Gets or Sets endgameRobot2 + */ + @JsonAdapter(EndgameRobot2Enum.Adapter.class) + public enum EndgameRobot2Enum { + TRAVERSAL(String.valueOf("Traversal")), + + HIGH(String.valueOf("High")), + + MID(String.valueOf("Mid")), + + LOW(String.valueOf("Low")), + + NONE(String.valueOf("None")); + + private String value; + + EndgameRobot2Enum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EndgameRobot2Enum fromValue(String value) { + for (EndgameRobot2Enum b : EndgameRobot2Enum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EndgameRobot2Enum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EndgameRobot2Enum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EndgameRobot2Enum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ENDGAME_ROBOT2 = "endgameRobot2"; + @SerializedName(SERIALIZED_NAME_ENDGAME_ROBOT2) + @javax.annotation.Nullable + private EndgameRobot2Enum endgameRobot2; + + /** + * Gets or Sets taxiRobot3 + */ + @JsonAdapter(TaxiRobot3Enum.Adapter.class) + public enum TaxiRobot3Enum { + YES(String.valueOf("Yes")), + + NO(String.valueOf("No")); + + private String value; + + TaxiRobot3Enum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TaxiRobot3Enum fromValue(String value) { + for (TaxiRobot3Enum b : TaxiRobot3Enum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TaxiRobot3Enum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TaxiRobot3Enum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TaxiRobot3Enum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TAXI_ROBOT3 = "taxiRobot3"; + @SerializedName(SERIALIZED_NAME_TAXI_ROBOT3) + @javax.annotation.Nullable + private TaxiRobot3Enum taxiRobot3; + + /** + * Gets or Sets endgameRobot3 + */ + @JsonAdapter(EndgameRobot3Enum.Adapter.class) + public enum EndgameRobot3Enum { + TRAVERSAL(String.valueOf("Traversal")), + + HIGH(String.valueOf("High")), + + MID(String.valueOf("Mid")), + + LOW(String.valueOf("Low")), + + NONE(String.valueOf("None")); + + private String value; + + EndgameRobot3Enum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EndgameRobot3Enum fromValue(String value) { + for (EndgameRobot3Enum b : EndgameRobot3Enum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EndgameRobot3Enum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EndgameRobot3Enum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EndgameRobot3Enum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ENDGAME_ROBOT3 = "endgameRobot3"; + @SerializedName(SERIALIZED_NAME_ENDGAME_ROBOT3) + @javax.annotation.Nullable + private EndgameRobot3Enum endgameRobot3; + + public static final String SERIALIZED_NAME_AUTO_CARGO_LOWER_NEAR = "autoCargoLowerNear"; + @SerializedName(SERIALIZED_NAME_AUTO_CARGO_LOWER_NEAR) + @javax.annotation.Nullable + private Integer autoCargoLowerNear; + + public static final String SERIALIZED_NAME_AUTO_CARGO_LOWER_FAR = "autoCargoLowerFar"; + @SerializedName(SERIALIZED_NAME_AUTO_CARGO_LOWER_FAR) + @javax.annotation.Nullable + private Integer autoCargoLowerFar; + + public static final String SERIALIZED_NAME_AUTO_CARGO_LOWER_BLUE = "autoCargoLowerBlue"; + @SerializedName(SERIALIZED_NAME_AUTO_CARGO_LOWER_BLUE) + @javax.annotation.Nullable + private Integer autoCargoLowerBlue; + + public static final String SERIALIZED_NAME_AUTO_CARGO_LOWER_RED = "autoCargoLowerRed"; + @SerializedName(SERIALIZED_NAME_AUTO_CARGO_LOWER_RED) + @javax.annotation.Nullable + private Integer autoCargoLowerRed; + + public static final String SERIALIZED_NAME_AUTO_CARGO_UPPER_NEAR = "autoCargoUpperNear"; + @SerializedName(SERIALIZED_NAME_AUTO_CARGO_UPPER_NEAR) + @javax.annotation.Nullable + private Integer autoCargoUpperNear; + + public static final String SERIALIZED_NAME_AUTO_CARGO_UPPER_FAR = "autoCargoUpperFar"; + @SerializedName(SERIALIZED_NAME_AUTO_CARGO_UPPER_FAR) + @javax.annotation.Nullable + private Integer autoCargoUpperFar; + + public static final String SERIALIZED_NAME_AUTO_CARGO_UPPER_BLUE = "autoCargoUpperBlue"; + @SerializedName(SERIALIZED_NAME_AUTO_CARGO_UPPER_BLUE) + @javax.annotation.Nullable + private Integer autoCargoUpperBlue; + + public static final String SERIALIZED_NAME_AUTO_CARGO_UPPER_RED = "autoCargoUpperRed"; + @SerializedName(SERIALIZED_NAME_AUTO_CARGO_UPPER_RED) + @javax.annotation.Nullable + private Integer autoCargoUpperRed; + + public static final String SERIALIZED_NAME_AUTO_CARGO_TOTAL = "autoCargoTotal"; + @SerializedName(SERIALIZED_NAME_AUTO_CARGO_TOTAL) + @javax.annotation.Nullable + private Integer autoCargoTotal; + + public static final String SERIALIZED_NAME_TELEOP_CARGO_LOWER_NEAR = "teleopCargoLowerNear"; + @SerializedName(SERIALIZED_NAME_TELEOP_CARGO_LOWER_NEAR) + @javax.annotation.Nullable + private Integer teleopCargoLowerNear; + + public static final String SERIALIZED_NAME_TELEOP_CARGO_LOWER_FAR = "teleopCargoLowerFar"; + @SerializedName(SERIALIZED_NAME_TELEOP_CARGO_LOWER_FAR) + @javax.annotation.Nullable + private Integer teleopCargoLowerFar; + + public static final String SERIALIZED_NAME_TELEOP_CARGO_LOWER_BLUE = "teleopCargoLowerBlue"; + @SerializedName(SERIALIZED_NAME_TELEOP_CARGO_LOWER_BLUE) + @javax.annotation.Nullable + private Integer teleopCargoLowerBlue; + + public static final String SERIALIZED_NAME_TELEOP_CARGO_LOWER_RED = "teleopCargoLowerRed"; + @SerializedName(SERIALIZED_NAME_TELEOP_CARGO_LOWER_RED) + @javax.annotation.Nullable + private Integer teleopCargoLowerRed; + + public static final String SERIALIZED_NAME_TELEOP_CARGO_UPPER_NEAR = "teleopCargoUpperNear"; + @SerializedName(SERIALIZED_NAME_TELEOP_CARGO_UPPER_NEAR) + @javax.annotation.Nullable + private Integer teleopCargoUpperNear; + + public static final String SERIALIZED_NAME_TELEOP_CARGO_UPPER_FAR = "teleopCargoUpperFar"; + @SerializedName(SERIALIZED_NAME_TELEOP_CARGO_UPPER_FAR) + @javax.annotation.Nullable + private Integer teleopCargoUpperFar; + + public static final String SERIALIZED_NAME_TELEOP_CARGO_UPPER_BLUE = "teleopCargoUpperBlue"; + @SerializedName(SERIALIZED_NAME_TELEOP_CARGO_UPPER_BLUE) + @javax.annotation.Nullable + private Integer teleopCargoUpperBlue; + + public static final String SERIALIZED_NAME_TELEOP_CARGO_UPPER_RED = "teleopCargoUpperRed"; + @SerializedName(SERIALIZED_NAME_TELEOP_CARGO_UPPER_RED) + @javax.annotation.Nullable + private Integer teleopCargoUpperRed; + + public static final String SERIALIZED_NAME_TELEOP_CARGO_TOTAL = "teleopCargoTotal"; + @SerializedName(SERIALIZED_NAME_TELEOP_CARGO_TOTAL) + @javax.annotation.Nullable + private Integer teleopCargoTotal; + + public static final String SERIALIZED_NAME_MATCH_CARGO_TOTAL = "matchCargoTotal"; + @SerializedName(SERIALIZED_NAME_MATCH_CARGO_TOTAL) + @javax.annotation.Nullable + private Integer matchCargoTotal; + + public static final String SERIALIZED_NAME_AUTO_TAXI_POINTS = "autoTaxiPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_TAXI_POINTS) + @javax.annotation.Nullable + private Integer autoTaxiPoints; + + public static final String SERIALIZED_NAME_AUTO_CARGO_POINTS = "autoCargoPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_CARGO_POINTS) + @javax.annotation.Nullable + private Integer autoCargoPoints; + + public static final String SERIALIZED_NAME_AUTO_POINTS = "autoPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_POINTS) + @javax.annotation.Nullable + private Integer autoPoints; + + public static final String SERIALIZED_NAME_QUINTET_ACHIEVED = "quintetAchieved"; + @SerializedName(SERIALIZED_NAME_QUINTET_ACHIEVED) + @javax.annotation.Nullable + private Boolean quintetAchieved; + + public static final String SERIALIZED_NAME_TELEOP_CARGO_POINTS = "teleopCargoPoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_CARGO_POINTS) + @javax.annotation.Nullable + private Integer teleopCargoPoints; + + public static final String SERIALIZED_NAME_ENDGAME_POINTS = "endgamePoints"; + @SerializedName(SERIALIZED_NAME_ENDGAME_POINTS) + @javax.annotation.Nullable + private Integer endgamePoints; + + public static final String SERIALIZED_NAME_TELEOP_POINTS = "teleopPoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_POINTS) + @javax.annotation.Nullable + private Integer teleopPoints; + + public static final String SERIALIZED_NAME_CARGO_BONUS_RANKING_POINT = "cargoBonusRankingPoint"; + @SerializedName(SERIALIZED_NAME_CARGO_BONUS_RANKING_POINT) + @javax.annotation.Nullable + private Boolean cargoBonusRankingPoint; + + public static final String SERIALIZED_NAME_HANGAR_BONUS_RANKING_POINT = "hangarBonusRankingPoint"; + @SerializedName(SERIALIZED_NAME_HANGAR_BONUS_RANKING_POINT) + @javax.annotation.Nullable + private Boolean hangarBonusRankingPoint; + + public static final String SERIALIZED_NAME_FOUL_COUNT = "foulCount"; + @SerializedName(SERIALIZED_NAME_FOUL_COUNT) + @javax.annotation.Nullable + private Integer foulCount; + + public static final String SERIALIZED_NAME_TECH_FOUL_COUNT = "techFoulCount"; + @SerializedName(SERIALIZED_NAME_TECH_FOUL_COUNT) + @javax.annotation.Nullable + private Integer techFoulCount; + + public static final String SERIALIZED_NAME_ADJUST_POINTS = "adjustPoints"; + @SerializedName(SERIALIZED_NAME_ADJUST_POINTS) + @javax.annotation.Nullable + private Integer adjustPoints; + + public static final String SERIALIZED_NAME_FOUL_POINTS = "foulPoints"; + @SerializedName(SERIALIZED_NAME_FOUL_POINTS) + @javax.annotation.Nullable + private Integer foulPoints; + + public static final String SERIALIZED_NAME_RP = "rp"; + @SerializedName(SERIALIZED_NAME_RP) + @javax.annotation.Nullable + private Integer rp; + + public static final String SERIALIZED_NAME_TOTAL_POINTS = "totalPoints"; + @SerializedName(SERIALIZED_NAME_TOTAL_POINTS) + @javax.annotation.Nullable + private Integer totalPoints; + + public MatchScoreBreakdown2022Alliance() { + } + + public MatchScoreBreakdown2022Alliance taxiRobot1(@javax.annotation.Nullable TaxiRobot1Enum taxiRobot1) { + + this.taxiRobot1 = taxiRobot1; + return this; + } + + /** + * Get taxiRobot1 + * @return taxiRobot1 + */ + @javax.annotation.Nullable + + public TaxiRobot1Enum getTaxiRobot1() { + return taxiRobot1; + } + + + public void setTaxiRobot1(@javax.annotation.Nullable TaxiRobot1Enum taxiRobot1) { + this.taxiRobot1 = taxiRobot1; + } + + public MatchScoreBreakdown2022Alliance endgameRobot1(@javax.annotation.Nullable EndgameRobot1Enum endgameRobot1) { + + this.endgameRobot1 = endgameRobot1; + return this; + } + + /** + * Get endgameRobot1 + * @return endgameRobot1 + */ + @javax.annotation.Nullable + + public EndgameRobot1Enum getEndgameRobot1() { + return endgameRobot1; + } + + + public void setEndgameRobot1(@javax.annotation.Nullable EndgameRobot1Enum endgameRobot1) { + this.endgameRobot1 = endgameRobot1; + } + + public MatchScoreBreakdown2022Alliance taxiRobot2(@javax.annotation.Nullable TaxiRobot2Enum taxiRobot2) { + + this.taxiRobot2 = taxiRobot2; + return this; + } + + /** + * Get taxiRobot2 + * @return taxiRobot2 + */ + @javax.annotation.Nullable + + public TaxiRobot2Enum getTaxiRobot2() { + return taxiRobot2; + } + + + public void setTaxiRobot2(@javax.annotation.Nullable TaxiRobot2Enum taxiRobot2) { + this.taxiRobot2 = taxiRobot2; + } + + public MatchScoreBreakdown2022Alliance endgameRobot2(@javax.annotation.Nullable EndgameRobot2Enum endgameRobot2) { + + this.endgameRobot2 = endgameRobot2; + return this; + } + + /** + * Get endgameRobot2 + * @return endgameRobot2 + */ + @javax.annotation.Nullable + + public EndgameRobot2Enum getEndgameRobot2() { + return endgameRobot2; + } + + + public void setEndgameRobot2(@javax.annotation.Nullable EndgameRobot2Enum endgameRobot2) { + this.endgameRobot2 = endgameRobot2; + } + + public MatchScoreBreakdown2022Alliance taxiRobot3(@javax.annotation.Nullable TaxiRobot3Enum taxiRobot3) { + + this.taxiRobot3 = taxiRobot3; + return this; + } + + /** + * Get taxiRobot3 + * @return taxiRobot3 + */ + @javax.annotation.Nullable + + public TaxiRobot3Enum getTaxiRobot3() { + return taxiRobot3; + } + + + public void setTaxiRobot3(@javax.annotation.Nullable TaxiRobot3Enum taxiRobot3) { + this.taxiRobot3 = taxiRobot3; + } + + public MatchScoreBreakdown2022Alliance endgameRobot3(@javax.annotation.Nullable EndgameRobot3Enum endgameRobot3) { + + this.endgameRobot3 = endgameRobot3; + return this; + } + + /** + * Get endgameRobot3 + * @return endgameRobot3 + */ + @javax.annotation.Nullable + + public EndgameRobot3Enum getEndgameRobot3() { + return endgameRobot3; + } + + + public void setEndgameRobot3(@javax.annotation.Nullable EndgameRobot3Enum endgameRobot3) { + this.endgameRobot3 = endgameRobot3; + } + + public MatchScoreBreakdown2022Alliance autoCargoLowerNear(@javax.annotation.Nullable Integer autoCargoLowerNear) { + + this.autoCargoLowerNear = autoCargoLowerNear; + return this; + } + + /** + * Get autoCargoLowerNear + * @return autoCargoLowerNear + */ + @javax.annotation.Nullable + + public Integer getAutoCargoLowerNear() { + return autoCargoLowerNear; + } + + + public void setAutoCargoLowerNear(@javax.annotation.Nullable Integer autoCargoLowerNear) { + this.autoCargoLowerNear = autoCargoLowerNear; + } + + public MatchScoreBreakdown2022Alliance autoCargoLowerFar(@javax.annotation.Nullable Integer autoCargoLowerFar) { + + this.autoCargoLowerFar = autoCargoLowerFar; + return this; + } + + /** + * Get autoCargoLowerFar + * @return autoCargoLowerFar + */ + @javax.annotation.Nullable + + public Integer getAutoCargoLowerFar() { + return autoCargoLowerFar; + } + + + public void setAutoCargoLowerFar(@javax.annotation.Nullable Integer autoCargoLowerFar) { + this.autoCargoLowerFar = autoCargoLowerFar; + } + + public MatchScoreBreakdown2022Alliance autoCargoLowerBlue(@javax.annotation.Nullable Integer autoCargoLowerBlue) { + + this.autoCargoLowerBlue = autoCargoLowerBlue; + return this; + } + + /** + * Get autoCargoLowerBlue + * @return autoCargoLowerBlue + */ + @javax.annotation.Nullable + + public Integer getAutoCargoLowerBlue() { + return autoCargoLowerBlue; + } + + + public void setAutoCargoLowerBlue(@javax.annotation.Nullable Integer autoCargoLowerBlue) { + this.autoCargoLowerBlue = autoCargoLowerBlue; + } + + public MatchScoreBreakdown2022Alliance autoCargoLowerRed(@javax.annotation.Nullable Integer autoCargoLowerRed) { + + this.autoCargoLowerRed = autoCargoLowerRed; + return this; + } + + /** + * Get autoCargoLowerRed + * @return autoCargoLowerRed + */ + @javax.annotation.Nullable + + public Integer getAutoCargoLowerRed() { + return autoCargoLowerRed; + } + + + public void setAutoCargoLowerRed(@javax.annotation.Nullable Integer autoCargoLowerRed) { + this.autoCargoLowerRed = autoCargoLowerRed; + } + + public MatchScoreBreakdown2022Alliance autoCargoUpperNear(@javax.annotation.Nullable Integer autoCargoUpperNear) { + + this.autoCargoUpperNear = autoCargoUpperNear; + return this; + } + + /** + * Get autoCargoUpperNear + * @return autoCargoUpperNear + */ + @javax.annotation.Nullable + + public Integer getAutoCargoUpperNear() { + return autoCargoUpperNear; + } + + + public void setAutoCargoUpperNear(@javax.annotation.Nullable Integer autoCargoUpperNear) { + this.autoCargoUpperNear = autoCargoUpperNear; + } + + public MatchScoreBreakdown2022Alliance autoCargoUpperFar(@javax.annotation.Nullable Integer autoCargoUpperFar) { + + this.autoCargoUpperFar = autoCargoUpperFar; + return this; + } + + /** + * Get autoCargoUpperFar + * @return autoCargoUpperFar + */ + @javax.annotation.Nullable + + public Integer getAutoCargoUpperFar() { + return autoCargoUpperFar; + } + + + public void setAutoCargoUpperFar(@javax.annotation.Nullable Integer autoCargoUpperFar) { + this.autoCargoUpperFar = autoCargoUpperFar; + } + + public MatchScoreBreakdown2022Alliance autoCargoUpperBlue(@javax.annotation.Nullable Integer autoCargoUpperBlue) { + + this.autoCargoUpperBlue = autoCargoUpperBlue; + return this; + } + + /** + * Get autoCargoUpperBlue + * @return autoCargoUpperBlue + */ + @javax.annotation.Nullable + + public Integer getAutoCargoUpperBlue() { + return autoCargoUpperBlue; + } + + + public void setAutoCargoUpperBlue(@javax.annotation.Nullable Integer autoCargoUpperBlue) { + this.autoCargoUpperBlue = autoCargoUpperBlue; + } + + public MatchScoreBreakdown2022Alliance autoCargoUpperRed(@javax.annotation.Nullable Integer autoCargoUpperRed) { + + this.autoCargoUpperRed = autoCargoUpperRed; + return this; + } + + /** + * Get autoCargoUpperRed + * @return autoCargoUpperRed + */ + @javax.annotation.Nullable + + public Integer getAutoCargoUpperRed() { + return autoCargoUpperRed; + } + + + public void setAutoCargoUpperRed(@javax.annotation.Nullable Integer autoCargoUpperRed) { + this.autoCargoUpperRed = autoCargoUpperRed; + } + + public MatchScoreBreakdown2022Alliance autoCargoTotal(@javax.annotation.Nullable Integer autoCargoTotal) { + + this.autoCargoTotal = autoCargoTotal; + return this; + } + + /** + * Get autoCargoTotal + * @return autoCargoTotal + */ + @javax.annotation.Nullable + + public Integer getAutoCargoTotal() { + return autoCargoTotal; + } + + + public void setAutoCargoTotal(@javax.annotation.Nullable Integer autoCargoTotal) { + this.autoCargoTotal = autoCargoTotal; + } + + public MatchScoreBreakdown2022Alliance teleopCargoLowerNear(@javax.annotation.Nullable Integer teleopCargoLowerNear) { + + this.teleopCargoLowerNear = teleopCargoLowerNear; + return this; + } + + /** + * Get teleopCargoLowerNear + * @return teleopCargoLowerNear + */ + @javax.annotation.Nullable + + public Integer getTeleopCargoLowerNear() { + return teleopCargoLowerNear; + } + + + public void setTeleopCargoLowerNear(@javax.annotation.Nullable Integer teleopCargoLowerNear) { + this.teleopCargoLowerNear = teleopCargoLowerNear; + } + + public MatchScoreBreakdown2022Alliance teleopCargoLowerFar(@javax.annotation.Nullable Integer teleopCargoLowerFar) { + + this.teleopCargoLowerFar = teleopCargoLowerFar; + return this; + } + + /** + * Get teleopCargoLowerFar + * @return teleopCargoLowerFar + */ + @javax.annotation.Nullable + + public Integer getTeleopCargoLowerFar() { + return teleopCargoLowerFar; + } + + + public void setTeleopCargoLowerFar(@javax.annotation.Nullable Integer teleopCargoLowerFar) { + this.teleopCargoLowerFar = teleopCargoLowerFar; + } + + public MatchScoreBreakdown2022Alliance teleopCargoLowerBlue(@javax.annotation.Nullable Integer teleopCargoLowerBlue) { + + this.teleopCargoLowerBlue = teleopCargoLowerBlue; + return this; + } + + /** + * Get teleopCargoLowerBlue + * @return teleopCargoLowerBlue + */ + @javax.annotation.Nullable + + public Integer getTeleopCargoLowerBlue() { + return teleopCargoLowerBlue; + } + + + public void setTeleopCargoLowerBlue(@javax.annotation.Nullable Integer teleopCargoLowerBlue) { + this.teleopCargoLowerBlue = teleopCargoLowerBlue; + } + + public MatchScoreBreakdown2022Alliance teleopCargoLowerRed(@javax.annotation.Nullable Integer teleopCargoLowerRed) { + + this.teleopCargoLowerRed = teleopCargoLowerRed; + return this; + } + + /** + * Get teleopCargoLowerRed + * @return teleopCargoLowerRed + */ + @javax.annotation.Nullable + + public Integer getTeleopCargoLowerRed() { + return teleopCargoLowerRed; + } + + + public void setTeleopCargoLowerRed(@javax.annotation.Nullable Integer teleopCargoLowerRed) { + this.teleopCargoLowerRed = teleopCargoLowerRed; + } + + public MatchScoreBreakdown2022Alliance teleopCargoUpperNear(@javax.annotation.Nullable Integer teleopCargoUpperNear) { + + this.teleopCargoUpperNear = teleopCargoUpperNear; + return this; + } + + /** + * Get teleopCargoUpperNear + * @return teleopCargoUpperNear + */ + @javax.annotation.Nullable + + public Integer getTeleopCargoUpperNear() { + return teleopCargoUpperNear; + } + + + public void setTeleopCargoUpperNear(@javax.annotation.Nullable Integer teleopCargoUpperNear) { + this.teleopCargoUpperNear = teleopCargoUpperNear; + } + + public MatchScoreBreakdown2022Alliance teleopCargoUpperFar(@javax.annotation.Nullable Integer teleopCargoUpperFar) { + + this.teleopCargoUpperFar = teleopCargoUpperFar; + return this; + } + + /** + * Get teleopCargoUpperFar + * @return teleopCargoUpperFar + */ + @javax.annotation.Nullable + + public Integer getTeleopCargoUpperFar() { + return teleopCargoUpperFar; + } + + + public void setTeleopCargoUpperFar(@javax.annotation.Nullable Integer teleopCargoUpperFar) { + this.teleopCargoUpperFar = teleopCargoUpperFar; + } + + public MatchScoreBreakdown2022Alliance teleopCargoUpperBlue(@javax.annotation.Nullable Integer teleopCargoUpperBlue) { + + this.teleopCargoUpperBlue = teleopCargoUpperBlue; + return this; + } + + /** + * Get teleopCargoUpperBlue + * @return teleopCargoUpperBlue + */ + @javax.annotation.Nullable + + public Integer getTeleopCargoUpperBlue() { + return teleopCargoUpperBlue; + } + + + public void setTeleopCargoUpperBlue(@javax.annotation.Nullable Integer teleopCargoUpperBlue) { + this.teleopCargoUpperBlue = teleopCargoUpperBlue; + } + + public MatchScoreBreakdown2022Alliance teleopCargoUpperRed(@javax.annotation.Nullable Integer teleopCargoUpperRed) { + + this.teleopCargoUpperRed = teleopCargoUpperRed; + return this; + } + + /** + * Get teleopCargoUpperRed + * @return teleopCargoUpperRed + */ + @javax.annotation.Nullable + + public Integer getTeleopCargoUpperRed() { + return teleopCargoUpperRed; + } + + + public void setTeleopCargoUpperRed(@javax.annotation.Nullable Integer teleopCargoUpperRed) { + this.teleopCargoUpperRed = teleopCargoUpperRed; + } + + public MatchScoreBreakdown2022Alliance teleopCargoTotal(@javax.annotation.Nullable Integer teleopCargoTotal) { + + this.teleopCargoTotal = teleopCargoTotal; + return this; + } + + /** + * Get teleopCargoTotal + * @return teleopCargoTotal + */ + @javax.annotation.Nullable + + public Integer getTeleopCargoTotal() { + return teleopCargoTotal; + } + + + public void setTeleopCargoTotal(@javax.annotation.Nullable Integer teleopCargoTotal) { + this.teleopCargoTotal = teleopCargoTotal; + } + + public MatchScoreBreakdown2022Alliance matchCargoTotal(@javax.annotation.Nullable Integer matchCargoTotal) { + + this.matchCargoTotal = matchCargoTotal; + return this; + } + + /** + * Get matchCargoTotal + * @return matchCargoTotal + */ + @javax.annotation.Nullable + + public Integer getMatchCargoTotal() { + return matchCargoTotal; + } + + + public void setMatchCargoTotal(@javax.annotation.Nullable Integer matchCargoTotal) { + this.matchCargoTotal = matchCargoTotal; + } + + public MatchScoreBreakdown2022Alliance autoTaxiPoints(@javax.annotation.Nullable Integer autoTaxiPoints) { + + this.autoTaxiPoints = autoTaxiPoints; + return this; + } + + /** + * Get autoTaxiPoints + * @return autoTaxiPoints + */ + @javax.annotation.Nullable + + public Integer getAutoTaxiPoints() { + return autoTaxiPoints; + } + + + public void setAutoTaxiPoints(@javax.annotation.Nullable Integer autoTaxiPoints) { + this.autoTaxiPoints = autoTaxiPoints; + } + + public MatchScoreBreakdown2022Alliance autoCargoPoints(@javax.annotation.Nullable Integer autoCargoPoints) { + + this.autoCargoPoints = autoCargoPoints; + return this; + } + + /** + * Get autoCargoPoints + * @return autoCargoPoints + */ + @javax.annotation.Nullable + + public Integer getAutoCargoPoints() { + return autoCargoPoints; + } + + + public void setAutoCargoPoints(@javax.annotation.Nullable Integer autoCargoPoints) { + this.autoCargoPoints = autoCargoPoints; + } + + public MatchScoreBreakdown2022Alliance autoPoints(@javax.annotation.Nullable Integer autoPoints) { + + this.autoPoints = autoPoints; + return this; + } + + /** + * Get autoPoints + * @return autoPoints + */ + @javax.annotation.Nullable + + public Integer getAutoPoints() { + return autoPoints; + } + + + public void setAutoPoints(@javax.annotation.Nullable Integer autoPoints) { + this.autoPoints = autoPoints; + } + + public MatchScoreBreakdown2022Alliance quintetAchieved(@javax.annotation.Nullable Boolean quintetAchieved) { + + this.quintetAchieved = quintetAchieved; + return this; + } + + /** + * Get quintetAchieved + * @return quintetAchieved + */ + @javax.annotation.Nullable + + public Boolean getQuintetAchieved() { + return quintetAchieved; + } + + + public void setQuintetAchieved(@javax.annotation.Nullable Boolean quintetAchieved) { + this.quintetAchieved = quintetAchieved; + } + + public MatchScoreBreakdown2022Alliance teleopCargoPoints(@javax.annotation.Nullable Integer teleopCargoPoints) { + + this.teleopCargoPoints = teleopCargoPoints; + return this; + } + + /** + * Get teleopCargoPoints + * @return teleopCargoPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopCargoPoints() { + return teleopCargoPoints; + } + + + public void setTeleopCargoPoints(@javax.annotation.Nullable Integer teleopCargoPoints) { + this.teleopCargoPoints = teleopCargoPoints; + } + + public MatchScoreBreakdown2022Alliance endgamePoints(@javax.annotation.Nullable Integer endgamePoints) { + + this.endgamePoints = endgamePoints; + return this; + } + + /** + * Get endgamePoints + * @return endgamePoints + */ + @javax.annotation.Nullable + + public Integer getEndgamePoints() { + return endgamePoints; + } + + + public void setEndgamePoints(@javax.annotation.Nullable Integer endgamePoints) { + this.endgamePoints = endgamePoints; + } + + public MatchScoreBreakdown2022Alliance teleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + + this.teleopPoints = teleopPoints; + return this; + } + + /** + * Get teleopPoints + * @return teleopPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopPoints() { + return teleopPoints; + } + + + public void setTeleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + this.teleopPoints = teleopPoints; + } + + public MatchScoreBreakdown2022Alliance cargoBonusRankingPoint(@javax.annotation.Nullable Boolean cargoBonusRankingPoint) { + + this.cargoBonusRankingPoint = cargoBonusRankingPoint; + return this; + } + + /** + * Get cargoBonusRankingPoint + * @return cargoBonusRankingPoint + */ + @javax.annotation.Nullable + + public Boolean getCargoBonusRankingPoint() { + return cargoBonusRankingPoint; + } + + + public void setCargoBonusRankingPoint(@javax.annotation.Nullable Boolean cargoBonusRankingPoint) { + this.cargoBonusRankingPoint = cargoBonusRankingPoint; + } + + public MatchScoreBreakdown2022Alliance hangarBonusRankingPoint(@javax.annotation.Nullable Boolean hangarBonusRankingPoint) { + + this.hangarBonusRankingPoint = hangarBonusRankingPoint; + return this; + } + + /** + * Get hangarBonusRankingPoint + * @return hangarBonusRankingPoint + */ + @javax.annotation.Nullable + + public Boolean getHangarBonusRankingPoint() { + return hangarBonusRankingPoint; + } + + + public void setHangarBonusRankingPoint(@javax.annotation.Nullable Boolean hangarBonusRankingPoint) { + this.hangarBonusRankingPoint = hangarBonusRankingPoint; + } + + public MatchScoreBreakdown2022Alliance foulCount(@javax.annotation.Nullable Integer foulCount) { + + this.foulCount = foulCount; + return this; + } + + /** + * Get foulCount + * @return foulCount + */ + @javax.annotation.Nullable + + public Integer getFoulCount() { + return foulCount; + } + + + public void setFoulCount(@javax.annotation.Nullable Integer foulCount) { + this.foulCount = foulCount; + } + + public MatchScoreBreakdown2022Alliance techFoulCount(@javax.annotation.Nullable Integer techFoulCount) { + + this.techFoulCount = techFoulCount; + return this; + } + + /** + * Get techFoulCount + * @return techFoulCount + */ + @javax.annotation.Nullable + + public Integer getTechFoulCount() { + return techFoulCount; + } + + + public void setTechFoulCount(@javax.annotation.Nullable Integer techFoulCount) { + this.techFoulCount = techFoulCount; + } + + public MatchScoreBreakdown2022Alliance adjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + + this.adjustPoints = adjustPoints; + return this; + } + + /** + * Get adjustPoints + * @return adjustPoints + */ + @javax.annotation.Nullable + + public Integer getAdjustPoints() { + return adjustPoints; + } + + + public void setAdjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + this.adjustPoints = adjustPoints; + } + + public MatchScoreBreakdown2022Alliance foulPoints(@javax.annotation.Nullable Integer foulPoints) { + + this.foulPoints = foulPoints; + return this; + } + + /** + * Get foulPoints + * @return foulPoints + */ + @javax.annotation.Nullable + + public Integer getFoulPoints() { + return foulPoints; + } + + + public void setFoulPoints(@javax.annotation.Nullable Integer foulPoints) { + this.foulPoints = foulPoints; + } + + public MatchScoreBreakdown2022Alliance rp(@javax.annotation.Nullable Integer rp) { + + this.rp = rp; + return this; + } + + /** + * Get rp + * @return rp + */ + @javax.annotation.Nullable + + public Integer getRp() { + return rp; + } + + + public void setRp(@javax.annotation.Nullable Integer rp) { + this.rp = rp; + } + + public MatchScoreBreakdown2022Alliance totalPoints(@javax.annotation.Nullable Integer totalPoints) { + + this.totalPoints = totalPoints; + return this; + } + + /** + * Get totalPoints + * @return totalPoints + */ + @javax.annotation.Nullable + + public Integer getTotalPoints() { + return totalPoints; + } + + + public void setTotalPoints(@javax.annotation.Nullable Integer totalPoints) { + this.totalPoints = totalPoints; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2022Alliance matchScoreBreakdown2022Alliance = (MatchScoreBreakdown2022Alliance) o; + return Objects.equals(this.taxiRobot1, matchScoreBreakdown2022Alliance.taxiRobot1) && + Objects.equals(this.endgameRobot1, matchScoreBreakdown2022Alliance.endgameRobot1) && + Objects.equals(this.taxiRobot2, matchScoreBreakdown2022Alliance.taxiRobot2) && + Objects.equals(this.endgameRobot2, matchScoreBreakdown2022Alliance.endgameRobot2) && + Objects.equals(this.taxiRobot3, matchScoreBreakdown2022Alliance.taxiRobot3) && + Objects.equals(this.endgameRobot3, matchScoreBreakdown2022Alliance.endgameRobot3) && + Objects.equals(this.autoCargoLowerNear, matchScoreBreakdown2022Alliance.autoCargoLowerNear) && + Objects.equals(this.autoCargoLowerFar, matchScoreBreakdown2022Alliance.autoCargoLowerFar) && + Objects.equals(this.autoCargoLowerBlue, matchScoreBreakdown2022Alliance.autoCargoLowerBlue) && + Objects.equals(this.autoCargoLowerRed, matchScoreBreakdown2022Alliance.autoCargoLowerRed) && + Objects.equals(this.autoCargoUpperNear, matchScoreBreakdown2022Alliance.autoCargoUpperNear) && + Objects.equals(this.autoCargoUpperFar, matchScoreBreakdown2022Alliance.autoCargoUpperFar) && + Objects.equals(this.autoCargoUpperBlue, matchScoreBreakdown2022Alliance.autoCargoUpperBlue) && + Objects.equals(this.autoCargoUpperRed, matchScoreBreakdown2022Alliance.autoCargoUpperRed) && + Objects.equals(this.autoCargoTotal, matchScoreBreakdown2022Alliance.autoCargoTotal) && + Objects.equals(this.teleopCargoLowerNear, matchScoreBreakdown2022Alliance.teleopCargoLowerNear) && + Objects.equals(this.teleopCargoLowerFar, matchScoreBreakdown2022Alliance.teleopCargoLowerFar) && + Objects.equals(this.teleopCargoLowerBlue, matchScoreBreakdown2022Alliance.teleopCargoLowerBlue) && + Objects.equals(this.teleopCargoLowerRed, matchScoreBreakdown2022Alliance.teleopCargoLowerRed) && + Objects.equals(this.teleopCargoUpperNear, matchScoreBreakdown2022Alliance.teleopCargoUpperNear) && + Objects.equals(this.teleopCargoUpperFar, matchScoreBreakdown2022Alliance.teleopCargoUpperFar) && + Objects.equals(this.teleopCargoUpperBlue, matchScoreBreakdown2022Alliance.teleopCargoUpperBlue) && + Objects.equals(this.teleopCargoUpperRed, matchScoreBreakdown2022Alliance.teleopCargoUpperRed) && + Objects.equals(this.teleopCargoTotal, matchScoreBreakdown2022Alliance.teleopCargoTotal) && + Objects.equals(this.matchCargoTotal, matchScoreBreakdown2022Alliance.matchCargoTotal) && + Objects.equals(this.autoTaxiPoints, matchScoreBreakdown2022Alliance.autoTaxiPoints) && + Objects.equals(this.autoCargoPoints, matchScoreBreakdown2022Alliance.autoCargoPoints) && + Objects.equals(this.autoPoints, matchScoreBreakdown2022Alliance.autoPoints) && + Objects.equals(this.quintetAchieved, matchScoreBreakdown2022Alliance.quintetAchieved) && + Objects.equals(this.teleopCargoPoints, matchScoreBreakdown2022Alliance.teleopCargoPoints) && + Objects.equals(this.endgamePoints, matchScoreBreakdown2022Alliance.endgamePoints) && + Objects.equals(this.teleopPoints, matchScoreBreakdown2022Alliance.teleopPoints) && + Objects.equals(this.cargoBonusRankingPoint, matchScoreBreakdown2022Alliance.cargoBonusRankingPoint) && + Objects.equals(this.hangarBonusRankingPoint, matchScoreBreakdown2022Alliance.hangarBonusRankingPoint) && + Objects.equals(this.foulCount, matchScoreBreakdown2022Alliance.foulCount) && + Objects.equals(this.techFoulCount, matchScoreBreakdown2022Alliance.techFoulCount) && + Objects.equals(this.adjustPoints, matchScoreBreakdown2022Alliance.adjustPoints) && + Objects.equals(this.foulPoints, matchScoreBreakdown2022Alliance.foulPoints) && + Objects.equals(this.rp, matchScoreBreakdown2022Alliance.rp) && + Objects.equals(this.totalPoints, matchScoreBreakdown2022Alliance.totalPoints); + } + + @Override + public int hashCode() { + return Objects.hash(taxiRobot1, endgameRobot1, taxiRobot2, endgameRobot2, taxiRobot3, endgameRobot3, autoCargoLowerNear, autoCargoLowerFar, autoCargoLowerBlue, autoCargoLowerRed, autoCargoUpperNear, autoCargoUpperFar, autoCargoUpperBlue, autoCargoUpperRed, autoCargoTotal, teleopCargoLowerNear, teleopCargoLowerFar, teleopCargoLowerBlue, teleopCargoLowerRed, teleopCargoUpperNear, teleopCargoUpperFar, teleopCargoUpperBlue, teleopCargoUpperRed, teleopCargoTotal, matchCargoTotal, autoTaxiPoints, autoCargoPoints, autoPoints, quintetAchieved, teleopCargoPoints, endgamePoints, teleopPoints, cargoBonusRankingPoint, hangarBonusRankingPoint, foulCount, techFoulCount, adjustPoints, foulPoints, rp, totalPoints); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2022Alliance {\n"); + sb.append(" taxiRobot1: ").append(toIndentedString(taxiRobot1)).append("\n"); + sb.append(" endgameRobot1: ").append(toIndentedString(endgameRobot1)).append("\n"); + sb.append(" taxiRobot2: ").append(toIndentedString(taxiRobot2)).append("\n"); + sb.append(" endgameRobot2: ").append(toIndentedString(endgameRobot2)).append("\n"); + sb.append(" taxiRobot3: ").append(toIndentedString(taxiRobot3)).append("\n"); + sb.append(" endgameRobot3: ").append(toIndentedString(endgameRobot3)).append("\n"); + sb.append(" autoCargoLowerNear: ").append(toIndentedString(autoCargoLowerNear)).append("\n"); + sb.append(" autoCargoLowerFar: ").append(toIndentedString(autoCargoLowerFar)).append("\n"); + sb.append(" autoCargoLowerBlue: ").append(toIndentedString(autoCargoLowerBlue)).append("\n"); + sb.append(" autoCargoLowerRed: ").append(toIndentedString(autoCargoLowerRed)).append("\n"); + sb.append(" autoCargoUpperNear: ").append(toIndentedString(autoCargoUpperNear)).append("\n"); + sb.append(" autoCargoUpperFar: ").append(toIndentedString(autoCargoUpperFar)).append("\n"); + sb.append(" autoCargoUpperBlue: ").append(toIndentedString(autoCargoUpperBlue)).append("\n"); + sb.append(" autoCargoUpperRed: ").append(toIndentedString(autoCargoUpperRed)).append("\n"); + sb.append(" autoCargoTotal: ").append(toIndentedString(autoCargoTotal)).append("\n"); + sb.append(" teleopCargoLowerNear: ").append(toIndentedString(teleopCargoLowerNear)).append("\n"); + sb.append(" teleopCargoLowerFar: ").append(toIndentedString(teleopCargoLowerFar)).append("\n"); + sb.append(" teleopCargoLowerBlue: ").append(toIndentedString(teleopCargoLowerBlue)).append("\n"); + sb.append(" teleopCargoLowerRed: ").append(toIndentedString(teleopCargoLowerRed)).append("\n"); + sb.append(" teleopCargoUpperNear: ").append(toIndentedString(teleopCargoUpperNear)).append("\n"); + sb.append(" teleopCargoUpperFar: ").append(toIndentedString(teleopCargoUpperFar)).append("\n"); + sb.append(" teleopCargoUpperBlue: ").append(toIndentedString(teleopCargoUpperBlue)).append("\n"); + sb.append(" teleopCargoUpperRed: ").append(toIndentedString(teleopCargoUpperRed)).append("\n"); + sb.append(" teleopCargoTotal: ").append(toIndentedString(teleopCargoTotal)).append("\n"); + sb.append(" matchCargoTotal: ").append(toIndentedString(matchCargoTotal)).append("\n"); + sb.append(" autoTaxiPoints: ").append(toIndentedString(autoTaxiPoints)).append("\n"); + sb.append(" autoCargoPoints: ").append(toIndentedString(autoCargoPoints)).append("\n"); + sb.append(" autoPoints: ").append(toIndentedString(autoPoints)).append("\n"); + sb.append(" quintetAchieved: ").append(toIndentedString(quintetAchieved)).append("\n"); + sb.append(" teleopCargoPoints: ").append(toIndentedString(teleopCargoPoints)).append("\n"); + sb.append(" endgamePoints: ").append(toIndentedString(endgamePoints)).append("\n"); + sb.append(" teleopPoints: ").append(toIndentedString(teleopPoints)).append("\n"); + sb.append(" cargoBonusRankingPoint: ").append(toIndentedString(cargoBonusRankingPoint)).append("\n"); + sb.append(" hangarBonusRankingPoint: ").append(toIndentedString(hangarBonusRankingPoint)).append("\n"); + sb.append(" foulCount: ").append(toIndentedString(foulCount)).append("\n"); + sb.append(" techFoulCount: ").append(toIndentedString(techFoulCount)).append("\n"); + sb.append(" adjustPoints: ").append(toIndentedString(adjustPoints)).append("\n"); + sb.append(" foulPoints: ").append(toIndentedString(foulPoints)).append("\n"); + sb.append(" rp: ").append(toIndentedString(rp)).append("\n"); + sb.append(" totalPoints: ").append(toIndentedString(totalPoints)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2023.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2023.java new file mode 100644 index 000000000..a6bec0df6 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2023.java @@ -0,0 +1,126 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import thebluealliance.api.model.MatchScoreBreakdown2023Alliance; + +/** + * See the 2023 FMS API documentation for a description of each value. https://frc-api-docs.firstinspires.org + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2023 { + public static final String SERIALIZED_NAME_BLUE = "blue"; + @SerializedName(SERIALIZED_NAME_BLUE) + @javax.annotation.Nonnull + private MatchScoreBreakdown2023Alliance blue; + + public static final String SERIALIZED_NAME_RED = "red"; + @SerializedName(SERIALIZED_NAME_RED) + @javax.annotation.Nonnull + private MatchScoreBreakdown2023Alliance red; + + public MatchScoreBreakdown2023() { + } + + public MatchScoreBreakdown2023 blue(@javax.annotation.Nonnull MatchScoreBreakdown2023Alliance blue) { + + this.blue = blue; + return this; + } + + /** + * Get blue + * @return blue + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2023Alliance getBlue() { + return blue; + } + + + public void setBlue(@javax.annotation.Nonnull MatchScoreBreakdown2023Alliance blue) { + this.blue = blue; + } + + public MatchScoreBreakdown2023 red(@javax.annotation.Nonnull MatchScoreBreakdown2023Alliance red) { + + this.red = red; + return this; + } + + /** + * Get red + * @return red + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2023Alliance getRed() { + return red; + } + + + public void setRed(@javax.annotation.Nonnull MatchScoreBreakdown2023Alliance red) { + this.red = red; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2023 matchScoreBreakdown2023 = (MatchScoreBreakdown2023) o; + return Objects.equals(this.blue, matchScoreBreakdown2023.blue) && + Objects.equals(this.red, matchScoreBreakdown2023.red); + } + + @Override + public int hashCode() { + return Objects.hash(blue, red); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2023 {\n"); + sb.append(" blue: ").append(toIndentedString(blue)).append("\n"); + sb.append(" red: ").append(toIndentedString(red)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2023Alliance.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2023Alliance.java new file mode 100644 index 000000000..df5652a5f --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2023Alliance.java @@ -0,0 +1,1663 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import thebluealliance.api.model.MatchScoreBreakdown2023AllianceAutoCommunity; +import thebluealliance.api.model.MatchScoreBreakdown2023AllianceLinksInner; + +/** + * MatchScoreBreakdown2023Alliance + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2023Alliance { + public static final String SERIALIZED_NAME_ACTIVATION_BONUS_ACHIEVED = "activationBonusAchieved"; + @SerializedName(SERIALIZED_NAME_ACTIVATION_BONUS_ACHIEVED) + @javax.annotation.Nullable + private Boolean activationBonusAchieved; + + public static final String SERIALIZED_NAME_ADJUST_POINTS = "adjustPoints"; + @SerializedName(SERIALIZED_NAME_ADJUST_POINTS) + @javax.annotation.Nullable + private Integer adjustPoints; + + /** + * Gets or Sets autoBridgeState + */ + @JsonAdapter(AutoBridgeStateEnum.Adapter.class) + public enum AutoBridgeStateEnum { + NOT_LEVEL(String.valueOf("NotLevel")), + + LEVEL(String.valueOf("Level")); + + private String value; + + AutoBridgeStateEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AutoBridgeStateEnum fromValue(String value) { + for (AutoBridgeStateEnum b : AutoBridgeStateEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AutoBridgeStateEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AutoBridgeStateEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AutoBridgeStateEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_AUTO_BRIDGE_STATE = "autoBridgeState"; + @SerializedName(SERIALIZED_NAME_AUTO_BRIDGE_STATE) + @javax.annotation.Nullable + private AutoBridgeStateEnum autoBridgeState; + + public static final String SERIALIZED_NAME_AUTO_CHARGE_STATION_POINTS = "autoChargeStationPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_CHARGE_STATION_POINTS) + @javax.annotation.Nullable + private Integer autoChargeStationPoints; + + /** + * Gets or Sets autoChargeStationRobot1 + */ + @JsonAdapter(AutoChargeStationRobot1Enum.Adapter.class) + public enum AutoChargeStationRobot1Enum { + NONE(String.valueOf("None")), + + DOCKED(String.valueOf("Docked")); + + private String value; + + AutoChargeStationRobot1Enum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AutoChargeStationRobot1Enum fromValue(String value) { + for (AutoChargeStationRobot1Enum b : AutoChargeStationRobot1Enum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AutoChargeStationRobot1Enum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AutoChargeStationRobot1Enum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AutoChargeStationRobot1Enum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_AUTO_CHARGE_STATION_ROBOT1 = "autoChargeStationRobot1"; + @SerializedName(SERIALIZED_NAME_AUTO_CHARGE_STATION_ROBOT1) + @javax.annotation.Nullable + private AutoChargeStationRobot1Enum autoChargeStationRobot1; + + /** + * Gets or Sets autoChargeStationRobot2 + */ + @JsonAdapter(AutoChargeStationRobot2Enum.Adapter.class) + public enum AutoChargeStationRobot2Enum { + NONE(String.valueOf("None")), + + DOCKED(String.valueOf("Docked")); + + private String value; + + AutoChargeStationRobot2Enum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AutoChargeStationRobot2Enum fromValue(String value) { + for (AutoChargeStationRobot2Enum b : AutoChargeStationRobot2Enum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AutoChargeStationRobot2Enum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AutoChargeStationRobot2Enum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AutoChargeStationRobot2Enum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_AUTO_CHARGE_STATION_ROBOT2 = "autoChargeStationRobot2"; + @SerializedName(SERIALIZED_NAME_AUTO_CHARGE_STATION_ROBOT2) + @javax.annotation.Nullable + private AutoChargeStationRobot2Enum autoChargeStationRobot2; + + /** + * Gets or Sets autoChargeStationRobot3 + */ + @JsonAdapter(AutoChargeStationRobot3Enum.Adapter.class) + public enum AutoChargeStationRobot3Enum { + NONE(String.valueOf("None")), + + DOCKED(String.valueOf("Docked")); + + private String value; + + AutoChargeStationRobot3Enum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static AutoChargeStationRobot3Enum fromValue(String value) { + for (AutoChargeStationRobot3Enum b : AutoChargeStationRobot3Enum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final AutoChargeStationRobot3Enum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public AutoChargeStationRobot3Enum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return AutoChargeStationRobot3Enum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_AUTO_CHARGE_STATION_ROBOT3 = "autoChargeStationRobot3"; + @SerializedName(SERIALIZED_NAME_AUTO_CHARGE_STATION_ROBOT3) + @javax.annotation.Nullable + private AutoChargeStationRobot3Enum autoChargeStationRobot3; + + public static final String SERIALIZED_NAME_AUTO_DOCKED = "autoDocked"; + @SerializedName(SERIALIZED_NAME_AUTO_DOCKED) + @javax.annotation.Nullable + private Boolean autoDocked; + + public static final String SERIALIZED_NAME_AUTO_COMMUNITY = "autoCommunity"; + @SerializedName(SERIALIZED_NAME_AUTO_COMMUNITY) + @javax.annotation.Nullable + private MatchScoreBreakdown2023AllianceAutoCommunity autoCommunity; + + public static final String SERIALIZED_NAME_AUTO_GAME_PIECE_COUNT = "autoGamePieceCount"; + @SerializedName(SERIALIZED_NAME_AUTO_GAME_PIECE_COUNT) + @javax.annotation.Nullable + private Integer autoGamePieceCount; + + public static final String SERIALIZED_NAME_AUTO_GAME_PIECE_POINTS = "autoGamePiecePoints"; + @SerializedName(SERIALIZED_NAME_AUTO_GAME_PIECE_POINTS) + @javax.annotation.Nullable + private Integer autoGamePiecePoints; + + public static final String SERIALIZED_NAME_AUTO_MOBILITY_POINTS = "autoMobilityPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_MOBILITY_POINTS) + @javax.annotation.Nullable + private Integer autoMobilityPoints; + + /** + * Gets or Sets mobilityRobot1 + */ + @JsonAdapter(MobilityRobot1Enum.Adapter.class) + public enum MobilityRobot1Enum { + YES(String.valueOf("Yes")), + + NO(String.valueOf("No")); + + private String value; + + MobilityRobot1Enum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MobilityRobot1Enum fromValue(String value) { + for (MobilityRobot1Enum b : MobilityRobot1Enum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final MobilityRobot1Enum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MobilityRobot1Enum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return MobilityRobot1Enum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_MOBILITY_ROBOT1 = "mobilityRobot1"; + @SerializedName(SERIALIZED_NAME_MOBILITY_ROBOT1) + @javax.annotation.Nullable + private MobilityRobot1Enum mobilityRobot1; + + /** + * Gets or Sets mobilityRobot2 + */ + @JsonAdapter(MobilityRobot2Enum.Adapter.class) + public enum MobilityRobot2Enum { + YES(String.valueOf("Yes")), + + NO(String.valueOf("No")); + + private String value; + + MobilityRobot2Enum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MobilityRobot2Enum fromValue(String value) { + for (MobilityRobot2Enum b : MobilityRobot2Enum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final MobilityRobot2Enum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MobilityRobot2Enum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return MobilityRobot2Enum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_MOBILITY_ROBOT2 = "mobilityRobot2"; + @SerializedName(SERIALIZED_NAME_MOBILITY_ROBOT2) + @javax.annotation.Nullable + private MobilityRobot2Enum mobilityRobot2; + + /** + * Gets or Sets mobilityRobot3 + */ + @JsonAdapter(MobilityRobot3Enum.Adapter.class) + public enum MobilityRobot3Enum { + YES(String.valueOf("Yes")), + + NO(String.valueOf("No")); + + private String value; + + MobilityRobot3Enum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MobilityRobot3Enum fromValue(String value) { + for (MobilityRobot3Enum b : MobilityRobot3Enum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final MobilityRobot3Enum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MobilityRobot3Enum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return MobilityRobot3Enum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_MOBILITY_ROBOT3 = "mobilityRobot3"; + @SerializedName(SERIALIZED_NAME_MOBILITY_ROBOT3) + @javax.annotation.Nullable + private MobilityRobot3Enum mobilityRobot3; + + public static final String SERIALIZED_NAME_AUTO_POINTS = "autoPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_POINTS) + @javax.annotation.Nullable + private Integer autoPoints; + + public static final String SERIALIZED_NAME_COOP_GAME_PIECE_COUNT = "coopGamePieceCount"; + @SerializedName(SERIALIZED_NAME_COOP_GAME_PIECE_COUNT) + @javax.annotation.Nullable + private Integer coopGamePieceCount; + + public static final String SERIALIZED_NAME_COOPERTITION_CRITERIA_MET = "coopertitionCriteriaMet"; + @SerializedName(SERIALIZED_NAME_COOPERTITION_CRITERIA_MET) + @javax.annotation.Nullable + private Boolean coopertitionCriteriaMet; + + /** + * Gets or Sets endGameBridgeState + */ + @JsonAdapter(EndGameBridgeStateEnum.Adapter.class) + public enum EndGameBridgeStateEnum { + NOT_LEVEL(String.valueOf("NotLevel")), + + LEVEL(String.valueOf("Level")); + + private String value; + + EndGameBridgeStateEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EndGameBridgeStateEnum fromValue(String value) { + for (EndGameBridgeStateEnum b : EndGameBridgeStateEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EndGameBridgeStateEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EndGameBridgeStateEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EndGameBridgeStateEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_END_GAME_BRIDGE_STATE = "endGameBridgeState"; + @SerializedName(SERIALIZED_NAME_END_GAME_BRIDGE_STATE) + @javax.annotation.Nullable + private EndGameBridgeStateEnum endGameBridgeState; + + public static final String SERIALIZED_NAME_END_GAME_CHARGE_STATION_POINTS = "endGameChargeStationPoints"; + @SerializedName(SERIALIZED_NAME_END_GAME_CHARGE_STATION_POINTS) + @javax.annotation.Nullable + private Integer endGameChargeStationPoints; + + /** + * Gets or Sets endGameChargeStationRobot1 + */ + @JsonAdapter(EndGameChargeStationRobot1Enum.Adapter.class) + public enum EndGameChargeStationRobot1Enum { + NONE(String.valueOf("None")), + + DOCKED(String.valueOf("Docked")); + + private String value; + + EndGameChargeStationRobot1Enum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EndGameChargeStationRobot1Enum fromValue(String value) { + for (EndGameChargeStationRobot1Enum b : EndGameChargeStationRobot1Enum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EndGameChargeStationRobot1Enum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EndGameChargeStationRobot1Enum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EndGameChargeStationRobot1Enum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_END_GAME_CHARGE_STATION_ROBOT1 = "endGameChargeStationRobot1"; + @SerializedName(SERIALIZED_NAME_END_GAME_CHARGE_STATION_ROBOT1) + @javax.annotation.Nullable + private EndGameChargeStationRobot1Enum endGameChargeStationRobot1; + + /** + * Gets or Sets endGameChargeStationRobot2 + */ + @JsonAdapter(EndGameChargeStationRobot2Enum.Adapter.class) + public enum EndGameChargeStationRobot2Enum { + NONE(String.valueOf("None")), + + DOCKED(String.valueOf("Docked")); + + private String value; + + EndGameChargeStationRobot2Enum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EndGameChargeStationRobot2Enum fromValue(String value) { + for (EndGameChargeStationRobot2Enum b : EndGameChargeStationRobot2Enum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EndGameChargeStationRobot2Enum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EndGameChargeStationRobot2Enum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EndGameChargeStationRobot2Enum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_END_GAME_CHARGE_STATION_ROBOT2 = "endGameChargeStationRobot2"; + @SerializedName(SERIALIZED_NAME_END_GAME_CHARGE_STATION_ROBOT2) + @javax.annotation.Nullable + private EndGameChargeStationRobot2Enum endGameChargeStationRobot2; + + /** + * Gets or Sets endGameChargeStationRobot3 + */ + @JsonAdapter(EndGameChargeStationRobot3Enum.Adapter.class) + public enum EndGameChargeStationRobot3Enum { + NONE(String.valueOf("None")), + + DOCKED(String.valueOf("Docked")); + + private String value; + + EndGameChargeStationRobot3Enum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EndGameChargeStationRobot3Enum fromValue(String value) { + for (EndGameChargeStationRobot3Enum b : EndGameChargeStationRobot3Enum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EndGameChargeStationRobot3Enum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EndGameChargeStationRobot3Enum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EndGameChargeStationRobot3Enum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_END_GAME_CHARGE_STATION_ROBOT3 = "endGameChargeStationRobot3"; + @SerializedName(SERIALIZED_NAME_END_GAME_CHARGE_STATION_ROBOT3) + @javax.annotation.Nullable + private EndGameChargeStationRobot3Enum endGameChargeStationRobot3; + + public static final String SERIALIZED_NAME_END_GAME_PARK_POINTS = "endGameParkPoints"; + @SerializedName(SERIALIZED_NAME_END_GAME_PARK_POINTS) + @javax.annotation.Nullable + private Integer endGameParkPoints; + + public static final String SERIALIZED_NAME_EXTRA_GAME_PIECE_COUNT = "extraGamePieceCount"; + @SerializedName(SERIALIZED_NAME_EXTRA_GAME_PIECE_COUNT) + @javax.annotation.Nullable + private Integer extraGamePieceCount; + + public static final String SERIALIZED_NAME_FOUL_COUNT = "foulCount"; + @SerializedName(SERIALIZED_NAME_FOUL_COUNT) + @javax.annotation.Nullable + private Integer foulCount; + + public static final String SERIALIZED_NAME_FOUL_POINTS = "foulPoints"; + @SerializedName(SERIALIZED_NAME_FOUL_POINTS) + @javax.annotation.Nullable + private Integer foulPoints; + + public static final String SERIALIZED_NAME_TECH_FOUL_COUNT = "techFoulCount"; + @SerializedName(SERIALIZED_NAME_TECH_FOUL_COUNT) + @javax.annotation.Nullable + private Integer techFoulCount; + + public static final String SERIALIZED_NAME_LINK_POINTS = "linkPoints"; + @SerializedName(SERIALIZED_NAME_LINK_POINTS) + @javax.annotation.Nullable + private Integer linkPoints; + + public static final String SERIALIZED_NAME_LINKS = "links"; + @SerializedName(SERIALIZED_NAME_LINKS) + @javax.annotation.Nullable + private List links = new ArrayList<>(); + + public static final String SERIALIZED_NAME_SUSTAINABILITY_BONUS_ACHIEVED = "sustainabilityBonusAchieved"; + @SerializedName(SERIALIZED_NAME_SUSTAINABILITY_BONUS_ACHIEVED) + @javax.annotation.Nullable + private Boolean sustainabilityBonusAchieved; + + public static final String SERIALIZED_NAME_TELEOP_COMMUNITY = "teleopCommunity"; + @SerializedName(SERIALIZED_NAME_TELEOP_COMMUNITY) + @javax.annotation.Nullable + private MatchScoreBreakdown2023AllianceAutoCommunity teleopCommunity; + + public static final String SERIALIZED_NAME_TELEOP_GAME_PIECE_COUNT = "teleopGamePieceCount"; + @SerializedName(SERIALIZED_NAME_TELEOP_GAME_PIECE_COUNT) + @javax.annotation.Nullable + private Integer teleopGamePieceCount; + + public static final String SERIALIZED_NAME_TELEOP_GAME_PIECE_POINTS = "teleopGamePiecePoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_GAME_PIECE_POINTS) + @javax.annotation.Nullable + private Integer teleopGamePiecePoints; + + public static final String SERIALIZED_NAME_TOTAL_CHARGE_STATION_POINTS = "totalChargeStationPoints"; + @SerializedName(SERIALIZED_NAME_TOTAL_CHARGE_STATION_POINTS) + @javax.annotation.Nullable + private Integer totalChargeStationPoints; + + public static final String SERIALIZED_NAME_TELEOP_POINTS = "teleopPoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_POINTS) + @javax.annotation.Nullable + private Integer teleopPoints; + + public static final String SERIALIZED_NAME_RP = "rp"; + @SerializedName(SERIALIZED_NAME_RP) + @javax.annotation.Nullable + private Integer rp; + + public static final String SERIALIZED_NAME_TOTAL_POINTS = "totalPoints"; + @SerializedName(SERIALIZED_NAME_TOTAL_POINTS) + @javax.annotation.Nullable + private Integer totalPoints; + + public MatchScoreBreakdown2023Alliance() { + } + + public MatchScoreBreakdown2023Alliance activationBonusAchieved(@javax.annotation.Nullable Boolean activationBonusAchieved) { + + this.activationBonusAchieved = activationBonusAchieved; + return this; + } + + /** + * Get activationBonusAchieved + * @return activationBonusAchieved + */ + @javax.annotation.Nullable + + public Boolean getActivationBonusAchieved() { + return activationBonusAchieved; + } + + + public void setActivationBonusAchieved(@javax.annotation.Nullable Boolean activationBonusAchieved) { + this.activationBonusAchieved = activationBonusAchieved; + } + + public MatchScoreBreakdown2023Alliance adjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + + this.adjustPoints = adjustPoints; + return this; + } + + /** + * Get adjustPoints + * @return adjustPoints + */ + @javax.annotation.Nullable + + public Integer getAdjustPoints() { + return adjustPoints; + } + + + public void setAdjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + this.adjustPoints = adjustPoints; + } + + public MatchScoreBreakdown2023Alliance autoBridgeState(@javax.annotation.Nullable AutoBridgeStateEnum autoBridgeState) { + + this.autoBridgeState = autoBridgeState; + return this; + } + + /** + * Get autoBridgeState + * @return autoBridgeState + */ + @javax.annotation.Nullable + + public AutoBridgeStateEnum getAutoBridgeState() { + return autoBridgeState; + } + + + public void setAutoBridgeState(@javax.annotation.Nullable AutoBridgeStateEnum autoBridgeState) { + this.autoBridgeState = autoBridgeState; + } + + public MatchScoreBreakdown2023Alliance autoChargeStationPoints(@javax.annotation.Nullable Integer autoChargeStationPoints) { + + this.autoChargeStationPoints = autoChargeStationPoints; + return this; + } + + /** + * Get autoChargeStationPoints + * @return autoChargeStationPoints + */ + @javax.annotation.Nullable + + public Integer getAutoChargeStationPoints() { + return autoChargeStationPoints; + } + + + public void setAutoChargeStationPoints(@javax.annotation.Nullable Integer autoChargeStationPoints) { + this.autoChargeStationPoints = autoChargeStationPoints; + } + + public MatchScoreBreakdown2023Alliance autoChargeStationRobot1(@javax.annotation.Nullable AutoChargeStationRobot1Enum autoChargeStationRobot1) { + + this.autoChargeStationRobot1 = autoChargeStationRobot1; + return this; + } + + /** + * Get autoChargeStationRobot1 + * @return autoChargeStationRobot1 + */ + @javax.annotation.Nullable + + public AutoChargeStationRobot1Enum getAutoChargeStationRobot1() { + return autoChargeStationRobot1; + } + + + public void setAutoChargeStationRobot1(@javax.annotation.Nullable AutoChargeStationRobot1Enum autoChargeStationRobot1) { + this.autoChargeStationRobot1 = autoChargeStationRobot1; + } + + public MatchScoreBreakdown2023Alliance autoChargeStationRobot2(@javax.annotation.Nullable AutoChargeStationRobot2Enum autoChargeStationRobot2) { + + this.autoChargeStationRobot2 = autoChargeStationRobot2; + return this; + } + + /** + * Get autoChargeStationRobot2 + * @return autoChargeStationRobot2 + */ + @javax.annotation.Nullable + + public AutoChargeStationRobot2Enum getAutoChargeStationRobot2() { + return autoChargeStationRobot2; + } + + + public void setAutoChargeStationRobot2(@javax.annotation.Nullable AutoChargeStationRobot2Enum autoChargeStationRobot2) { + this.autoChargeStationRobot2 = autoChargeStationRobot2; + } + + public MatchScoreBreakdown2023Alliance autoChargeStationRobot3(@javax.annotation.Nullable AutoChargeStationRobot3Enum autoChargeStationRobot3) { + + this.autoChargeStationRobot3 = autoChargeStationRobot3; + return this; + } + + /** + * Get autoChargeStationRobot3 + * @return autoChargeStationRobot3 + */ + @javax.annotation.Nullable + + public AutoChargeStationRobot3Enum getAutoChargeStationRobot3() { + return autoChargeStationRobot3; + } + + + public void setAutoChargeStationRobot3(@javax.annotation.Nullable AutoChargeStationRobot3Enum autoChargeStationRobot3) { + this.autoChargeStationRobot3 = autoChargeStationRobot3; + } + + public MatchScoreBreakdown2023Alliance autoDocked(@javax.annotation.Nullable Boolean autoDocked) { + + this.autoDocked = autoDocked; + return this; + } + + /** + * Get autoDocked + * @return autoDocked + */ + @javax.annotation.Nullable + + public Boolean getAutoDocked() { + return autoDocked; + } + + + public void setAutoDocked(@javax.annotation.Nullable Boolean autoDocked) { + this.autoDocked = autoDocked; + } + + public MatchScoreBreakdown2023Alliance autoCommunity(@javax.annotation.Nullable MatchScoreBreakdown2023AllianceAutoCommunity autoCommunity) { + + this.autoCommunity = autoCommunity; + return this; + } + + /** + * Get autoCommunity + * @return autoCommunity + */ + @javax.annotation.Nullable + + public MatchScoreBreakdown2023AllianceAutoCommunity getAutoCommunity() { + return autoCommunity; + } + + + public void setAutoCommunity(@javax.annotation.Nullable MatchScoreBreakdown2023AllianceAutoCommunity autoCommunity) { + this.autoCommunity = autoCommunity; + } + + public MatchScoreBreakdown2023Alliance autoGamePieceCount(@javax.annotation.Nullable Integer autoGamePieceCount) { + + this.autoGamePieceCount = autoGamePieceCount; + return this; + } + + /** + * Get autoGamePieceCount + * @return autoGamePieceCount + */ + @javax.annotation.Nullable + + public Integer getAutoGamePieceCount() { + return autoGamePieceCount; + } + + + public void setAutoGamePieceCount(@javax.annotation.Nullable Integer autoGamePieceCount) { + this.autoGamePieceCount = autoGamePieceCount; + } + + public MatchScoreBreakdown2023Alliance autoGamePiecePoints(@javax.annotation.Nullable Integer autoGamePiecePoints) { + + this.autoGamePiecePoints = autoGamePiecePoints; + return this; + } + + /** + * Get autoGamePiecePoints + * @return autoGamePiecePoints + */ + @javax.annotation.Nullable + + public Integer getAutoGamePiecePoints() { + return autoGamePiecePoints; + } + + + public void setAutoGamePiecePoints(@javax.annotation.Nullable Integer autoGamePiecePoints) { + this.autoGamePiecePoints = autoGamePiecePoints; + } + + public MatchScoreBreakdown2023Alliance autoMobilityPoints(@javax.annotation.Nullable Integer autoMobilityPoints) { + + this.autoMobilityPoints = autoMobilityPoints; + return this; + } + + /** + * Get autoMobilityPoints + * @return autoMobilityPoints + */ + @javax.annotation.Nullable + + public Integer getAutoMobilityPoints() { + return autoMobilityPoints; + } + + + public void setAutoMobilityPoints(@javax.annotation.Nullable Integer autoMobilityPoints) { + this.autoMobilityPoints = autoMobilityPoints; + } + + public MatchScoreBreakdown2023Alliance mobilityRobot1(@javax.annotation.Nullable MobilityRobot1Enum mobilityRobot1) { + + this.mobilityRobot1 = mobilityRobot1; + return this; + } + + /** + * Get mobilityRobot1 + * @return mobilityRobot1 + */ + @javax.annotation.Nullable + + public MobilityRobot1Enum getMobilityRobot1() { + return mobilityRobot1; + } + + + public void setMobilityRobot1(@javax.annotation.Nullable MobilityRobot1Enum mobilityRobot1) { + this.mobilityRobot1 = mobilityRobot1; + } + + public MatchScoreBreakdown2023Alliance mobilityRobot2(@javax.annotation.Nullable MobilityRobot2Enum mobilityRobot2) { + + this.mobilityRobot2 = mobilityRobot2; + return this; + } + + /** + * Get mobilityRobot2 + * @return mobilityRobot2 + */ + @javax.annotation.Nullable + + public MobilityRobot2Enum getMobilityRobot2() { + return mobilityRobot2; + } + + + public void setMobilityRobot2(@javax.annotation.Nullable MobilityRobot2Enum mobilityRobot2) { + this.mobilityRobot2 = mobilityRobot2; + } + + public MatchScoreBreakdown2023Alliance mobilityRobot3(@javax.annotation.Nullable MobilityRobot3Enum mobilityRobot3) { + + this.mobilityRobot3 = mobilityRobot3; + return this; + } + + /** + * Get mobilityRobot3 + * @return mobilityRobot3 + */ + @javax.annotation.Nullable + + public MobilityRobot3Enum getMobilityRobot3() { + return mobilityRobot3; + } + + + public void setMobilityRobot3(@javax.annotation.Nullable MobilityRobot3Enum mobilityRobot3) { + this.mobilityRobot3 = mobilityRobot3; + } + + public MatchScoreBreakdown2023Alliance autoPoints(@javax.annotation.Nullable Integer autoPoints) { + + this.autoPoints = autoPoints; + return this; + } + + /** + * Get autoPoints + * @return autoPoints + */ + @javax.annotation.Nullable + + public Integer getAutoPoints() { + return autoPoints; + } + + + public void setAutoPoints(@javax.annotation.Nullable Integer autoPoints) { + this.autoPoints = autoPoints; + } + + public MatchScoreBreakdown2023Alliance coopGamePieceCount(@javax.annotation.Nullable Integer coopGamePieceCount) { + + this.coopGamePieceCount = coopGamePieceCount; + return this; + } + + /** + * Get coopGamePieceCount + * @return coopGamePieceCount + */ + @javax.annotation.Nullable + + public Integer getCoopGamePieceCount() { + return coopGamePieceCount; + } + + + public void setCoopGamePieceCount(@javax.annotation.Nullable Integer coopGamePieceCount) { + this.coopGamePieceCount = coopGamePieceCount; + } + + public MatchScoreBreakdown2023Alliance coopertitionCriteriaMet(@javax.annotation.Nullable Boolean coopertitionCriteriaMet) { + + this.coopertitionCriteriaMet = coopertitionCriteriaMet; + return this; + } + + /** + * Get coopertitionCriteriaMet + * @return coopertitionCriteriaMet + */ + @javax.annotation.Nullable + + public Boolean getCoopertitionCriteriaMet() { + return coopertitionCriteriaMet; + } + + + public void setCoopertitionCriteriaMet(@javax.annotation.Nullable Boolean coopertitionCriteriaMet) { + this.coopertitionCriteriaMet = coopertitionCriteriaMet; + } + + public MatchScoreBreakdown2023Alliance endGameBridgeState(@javax.annotation.Nullable EndGameBridgeStateEnum endGameBridgeState) { + + this.endGameBridgeState = endGameBridgeState; + return this; + } + + /** + * Get endGameBridgeState + * @return endGameBridgeState + */ + @javax.annotation.Nullable + + public EndGameBridgeStateEnum getEndGameBridgeState() { + return endGameBridgeState; + } + + + public void setEndGameBridgeState(@javax.annotation.Nullable EndGameBridgeStateEnum endGameBridgeState) { + this.endGameBridgeState = endGameBridgeState; + } + + public MatchScoreBreakdown2023Alliance endGameChargeStationPoints(@javax.annotation.Nullable Integer endGameChargeStationPoints) { + + this.endGameChargeStationPoints = endGameChargeStationPoints; + return this; + } + + /** + * Get endGameChargeStationPoints + * @return endGameChargeStationPoints + */ + @javax.annotation.Nullable + + public Integer getEndGameChargeStationPoints() { + return endGameChargeStationPoints; + } + + + public void setEndGameChargeStationPoints(@javax.annotation.Nullable Integer endGameChargeStationPoints) { + this.endGameChargeStationPoints = endGameChargeStationPoints; + } + + public MatchScoreBreakdown2023Alliance endGameChargeStationRobot1(@javax.annotation.Nullable EndGameChargeStationRobot1Enum endGameChargeStationRobot1) { + + this.endGameChargeStationRobot1 = endGameChargeStationRobot1; + return this; + } + + /** + * Get endGameChargeStationRobot1 + * @return endGameChargeStationRobot1 + */ + @javax.annotation.Nullable + + public EndGameChargeStationRobot1Enum getEndGameChargeStationRobot1() { + return endGameChargeStationRobot1; + } + + + public void setEndGameChargeStationRobot1(@javax.annotation.Nullable EndGameChargeStationRobot1Enum endGameChargeStationRobot1) { + this.endGameChargeStationRobot1 = endGameChargeStationRobot1; + } + + public MatchScoreBreakdown2023Alliance endGameChargeStationRobot2(@javax.annotation.Nullable EndGameChargeStationRobot2Enum endGameChargeStationRobot2) { + + this.endGameChargeStationRobot2 = endGameChargeStationRobot2; + return this; + } + + /** + * Get endGameChargeStationRobot2 + * @return endGameChargeStationRobot2 + */ + @javax.annotation.Nullable + + public EndGameChargeStationRobot2Enum getEndGameChargeStationRobot2() { + return endGameChargeStationRobot2; + } + + + public void setEndGameChargeStationRobot2(@javax.annotation.Nullable EndGameChargeStationRobot2Enum endGameChargeStationRobot2) { + this.endGameChargeStationRobot2 = endGameChargeStationRobot2; + } + + public MatchScoreBreakdown2023Alliance endGameChargeStationRobot3(@javax.annotation.Nullable EndGameChargeStationRobot3Enum endGameChargeStationRobot3) { + + this.endGameChargeStationRobot3 = endGameChargeStationRobot3; + return this; + } + + /** + * Get endGameChargeStationRobot3 + * @return endGameChargeStationRobot3 + */ + @javax.annotation.Nullable + + public EndGameChargeStationRobot3Enum getEndGameChargeStationRobot3() { + return endGameChargeStationRobot3; + } + + + public void setEndGameChargeStationRobot3(@javax.annotation.Nullable EndGameChargeStationRobot3Enum endGameChargeStationRobot3) { + this.endGameChargeStationRobot3 = endGameChargeStationRobot3; + } + + public MatchScoreBreakdown2023Alliance endGameParkPoints(@javax.annotation.Nullable Integer endGameParkPoints) { + + this.endGameParkPoints = endGameParkPoints; + return this; + } + + /** + * Get endGameParkPoints + * @return endGameParkPoints + */ + @javax.annotation.Nullable + + public Integer getEndGameParkPoints() { + return endGameParkPoints; + } + + + public void setEndGameParkPoints(@javax.annotation.Nullable Integer endGameParkPoints) { + this.endGameParkPoints = endGameParkPoints; + } + + public MatchScoreBreakdown2023Alliance extraGamePieceCount(@javax.annotation.Nullable Integer extraGamePieceCount) { + + this.extraGamePieceCount = extraGamePieceCount; + return this; + } + + /** + * Get extraGamePieceCount + * @return extraGamePieceCount + */ + @javax.annotation.Nullable + + public Integer getExtraGamePieceCount() { + return extraGamePieceCount; + } + + + public void setExtraGamePieceCount(@javax.annotation.Nullable Integer extraGamePieceCount) { + this.extraGamePieceCount = extraGamePieceCount; + } + + public MatchScoreBreakdown2023Alliance foulCount(@javax.annotation.Nullable Integer foulCount) { + + this.foulCount = foulCount; + return this; + } + + /** + * Get foulCount + * @return foulCount + */ + @javax.annotation.Nullable + + public Integer getFoulCount() { + return foulCount; + } + + + public void setFoulCount(@javax.annotation.Nullable Integer foulCount) { + this.foulCount = foulCount; + } + + public MatchScoreBreakdown2023Alliance foulPoints(@javax.annotation.Nullable Integer foulPoints) { + + this.foulPoints = foulPoints; + return this; + } + + /** + * Get foulPoints + * @return foulPoints + */ + @javax.annotation.Nullable + + public Integer getFoulPoints() { + return foulPoints; + } + + + public void setFoulPoints(@javax.annotation.Nullable Integer foulPoints) { + this.foulPoints = foulPoints; + } + + public MatchScoreBreakdown2023Alliance techFoulCount(@javax.annotation.Nullable Integer techFoulCount) { + + this.techFoulCount = techFoulCount; + return this; + } + + /** + * Get techFoulCount + * @return techFoulCount + */ + @javax.annotation.Nullable + + public Integer getTechFoulCount() { + return techFoulCount; + } + + + public void setTechFoulCount(@javax.annotation.Nullable Integer techFoulCount) { + this.techFoulCount = techFoulCount; + } + + public MatchScoreBreakdown2023Alliance linkPoints(@javax.annotation.Nullable Integer linkPoints) { + + this.linkPoints = linkPoints; + return this; + } + + /** + * Get linkPoints + * @return linkPoints + */ + @javax.annotation.Nullable + + public Integer getLinkPoints() { + return linkPoints; + } + + + public void setLinkPoints(@javax.annotation.Nullable Integer linkPoints) { + this.linkPoints = linkPoints; + } + + public MatchScoreBreakdown2023Alliance links(@javax.annotation.Nullable List links) { + + this.links = links; + return this; + } + + public MatchScoreBreakdown2023Alliance addLinksItem(MatchScoreBreakdown2023AllianceLinksInner linksItem) { + if (this.links == null) { + this.links = new ArrayList<>(); + } + this.links.add(linksItem); + return this; + } + + /** + * Get links + * @return links + */ + @javax.annotation.Nullable + + public List getLinks() { + return links; + } + + + public void setLinks(@javax.annotation.Nullable List links) { + this.links = links; + } + + public MatchScoreBreakdown2023Alliance sustainabilityBonusAchieved(@javax.annotation.Nullable Boolean sustainabilityBonusAchieved) { + + this.sustainabilityBonusAchieved = sustainabilityBonusAchieved; + return this; + } + + /** + * Get sustainabilityBonusAchieved + * @return sustainabilityBonusAchieved + */ + @javax.annotation.Nullable + + public Boolean getSustainabilityBonusAchieved() { + return sustainabilityBonusAchieved; + } + + + public void setSustainabilityBonusAchieved(@javax.annotation.Nullable Boolean sustainabilityBonusAchieved) { + this.sustainabilityBonusAchieved = sustainabilityBonusAchieved; + } + + public MatchScoreBreakdown2023Alliance teleopCommunity(@javax.annotation.Nullable MatchScoreBreakdown2023AllianceAutoCommunity teleopCommunity) { + + this.teleopCommunity = teleopCommunity; + return this; + } + + /** + * Get teleopCommunity + * @return teleopCommunity + */ + @javax.annotation.Nullable + + public MatchScoreBreakdown2023AllianceAutoCommunity getTeleopCommunity() { + return teleopCommunity; + } + + + public void setTeleopCommunity(@javax.annotation.Nullable MatchScoreBreakdown2023AllianceAutoCommunity teleopCommunity) { + this.teleopCommunity = teleopCommunity; + } + + public MatchScoreBreakdown2023Alliance teleopGamePieceCount(@javax.annotation.Nullable Integer teleopGamePieceCount) { + + this.teleopGamePieceCount = teleopGamePieceCount; + return this; + } + + /** + * Get teleopGamePieceCount + * @return teleopGamePieceCount + */ + @javax.annotation.Nullable + + public Integer getTeleopGamePieceCount() { + return teleopGamePieceCount; + } + + + public void setTeleopGamePieceCount(@javax.annotation.Nullable Integer teleopGamePieceCount) { + this.teleopGamePieceCount = teleopGamePieceCount; + } + + public MatchScoreBreakdown2023Alliance teleopGamePiecePoints(@javax.annotation.Nullable Integer teleopGamePiecePoints) { + + this.teleopGamePiecePoints = teleopGamePiecePoints; + return this; + } + + /** + * Get teleopGamePiecePoints + * @return teleopGamePiecePoints + */ + @javax.annotation.Nullable + + public Integer getTeleopGamePiecePoints() { + return teleopGamePiecePoints; + } + + + public void setTeleopGamePiecePoints(@javax.annotation.Nullable Integer teleopGamePiecePoints) { + this.teleopGamePiecePoints = teleopGamePiecePoints; + } + + public MatchScoreBreakdown2023Alliance totalChargeStationPoints(@javax.annotation.Nullable Integer totalChargeStationPoints) { + + this.totalChargeStationPoints = totalChargeStationPoints; + return this; + } + + /** + * Get totalChargeStationPoints + * @return totalChargeStationPoints + */ + @javax.annotation.Nullable + + public Integer getTotalChargeStationPoints() { + return totalChargeStationPoints; + } + + + public void setTotalChargeStationPoints(@javax.annotation.Nullable Integer totalChargeStationPoints) { + this.totalChargeStationPoints = totalChargeStationPoints; + } + + public MatchScoreBreakdown2023Alliance teleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + + this.teleopPoints = teleopPoints; + return this; + } + + /** + * Get teleopPoints + * @return teleopPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopPoints() { + return teleopPoints; + } + + + public void setTeleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + this.teleopPoints = teleopPoints; + } + + public MatchScoreBreakdown2023Alliance rp(@javax.annotation.Nullable Integer rp) { + + this.rp = rp; + return this; + } + + /** + * Get rp + * @return rp + */ + @javax.annotation.Nullable + + public Integer getRp() { + return rp; + } + + + public void setRp(@javax.annotation.Nullable Integer rp) { + this.rp = rp; + } + + public MatchScoreBreakdown2023Alliance totalPoints(@javax.annotation.Nullable Integer totalPoints) { + + this.totalPoints = totalPoints; + return this; + } + + /** + * Get totalPoints + * @return totalPoints + */ + @javax.annotation.Nullable + + public Integer getTotalPoints() { + return totalPoints; + } + + + public void setTotalPoints(@javax.annotation.Nullable Integer totalPoints) { + this.totalPoints = totalPoints; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2023Alliance matchScoreBreakdown2023Alliance = (MatchScoreBreakdown2023Alliance) o; + return Objects.equals(this.activationBonusAchieved, matchScoreBreakdown2023Alliance.activationBonusAchieved) && + Objects.equals(this.adjustPoints, matchScoreBreakdown2023Alliance.adjustPoints) && + Objects.equals(this.autoBridgeState, matchScoreBreakdown2023Alliance.autoBridgeState) && + Objects.equals(this.autoChargeStationPoints, matchScoreBreakdown2023Alliance.autoChargeStationPoints) && + Objects.equals(this.autoChargeStationRobot1, matchScoreBreakdown2023Alliance.autoChargeStationRobot1) && + Objects.equals(this.autoChargeStationRobot2, matchScoreBreakdown2023Alliance.autoChargeStationRobot2) && + Objects.equals(this.autoChargeStationRobot3, matchScoreBreakdown2023Alliance.autoChargeStationRobot3) && + Objects.equals(this.autoDocked, matchScoreBreakdown2023Alliance.autoDocked) && + Objects.equals(this.autoCommunity, matchScoreBreakdown2023Alliance.autoCommunity) && + Objects.equals(this.autoGamePieceCount, matchScoreBreakdown2023Alliance.autoGamePieceCount) && + Objects.equals(this.autoGamePiecePoints, matchScoreBreakdown2023Alliance.autoGamePiecePoints) && + Objects.equals(this.autoMobilityPoints, matchScoreBreakdown2023Alliance.autoMobilityPoints) && + Objects.equals(this.mobilityRobot1, matchScoreBreakdown2023Alliance.mobilityRobot1) && + Objects.equals(this.mobilityRobot2, matchScoreBreakdown2023Alliance.mobilityRobot2) && + Objects.equals(this.mobilityRobot3, matchScoreBreakdown2023Alliance.mobilityRobot3) && + Objects.equals(this.autoPoints, matchScoreBreakdown2023Alliance.autoPoints) && + Objects.equals(this.coopGamePieceCount, matchScoreBreakdown2023Alliance.coopGamePieceCount) && + Objects.equals(this.coopertitionCriteriaMet, matchScoreBreakdown2023Alliance.coopertitionCriteriaMet) && + Objects.equals(this.endGameBridgeState, matchScoreBreakdown2023Alliance.endGameBridgeState) && + Objects.equals(this.endGameChargeStationPoints, matchScoreBreakdown2023Alliance.endGameChargeStationPoints) && + Objects.equals(this.endGameChargeStationRobot1, matchScoreBreakdown2023Alliance.endGameChargeStationRobot1) && + Objects.equals(this.endGameChargeStationRobot2, matchScoreBreakdown2023Alliance.endGameChargeStationRobot2) && + Objects.equals(this.endGameChargeStationRobot3, matchScoreBreakdown2023Alliance.endGameChargeStationRobot3) && + Objects.equals(this.endGameParkPoints, matchScoreBreakdown2023Alliance.endGameParkPoints) && + Objects.equals(this.extraGamePieceCount, matchScoreBreakdown2023Alliance.extraGamePieceCount) && + Objects.equals(this.foulCount, matchScoreBreakdown2023Alliance.foulCount) && + Objects.equals(this.foulPoints, matchScoreBreakdown2023Alliance.foulPoints) && + Objects.equals(this.techFoulCount, matchScoreBreakdown2023Alliance.techFoulCount) && + Objects.equals(this.linkPoints, matchScoreBreakdown2023Alliance.linkPoints) && + Objects.equals(this.links, matchScoreBreakdown2023Alliance.links) && + Objects.equals(this.sustainabilityBonusAchieved, matchScoreBreakdown2023Alliance.sustainabilityBonusAchieved) && + Objects.equals(this.teleopCommunity, matchScoreBreakdown2023Alliance.teleopCommunity) && + Objects.equals(this.teleopGamePieceCount, matchScoreBreakdown2023Alliance.teleopGamePieceCount) && + Objects.equals(this.teleopGamePiecePoints, matchScoreBreakdown2023Alliance.teleopGamePiecePoints) && + Objects.equals(this.totalChargeStationPoints, matchScoreBreakdown2023Alliance.totalChargeStationPoints) && + Objects.equals(this.teleopPoints, matchScoreBreakdown2023Alliance.teleopPoints) && + Objects.equals(this.rp, matchScoreBreakdown2023Alliance.rp) && + Objects.equals(this.totalPoints, matchScoreBreakdown2023Alliance.totalPoints); + } + + @Override + public int hashCode() { + return Objects.hash(activationBonusAchieved, adjustPoints, autoBridgeState, autoChargeStationPoints, autoChargeStationRobot1, autoChargeStationRobot2, autoChargeStationRobot3, autoDocked, autoCommunity, autoGamePieceCount, autoGamePiecePoints, autoMobilityPoints, mobilityRobot1, mobilityRobot2, mobilityRobot3, autoPoints, coopGamePieceCount, coopertitionCriteriaMet, endGameBridgeState, endGameChargeStationPoints, endGameChargeStationRobot1, endGameChargeStationRobot2, endGameChargeStationRobot3, endGameParkPoints, extraGamePieceCount, foulCount, foulPoints, techFoulCount, linkPoints, links, sustainabilityBonusAchieved, teleopCommunity, teleopGamePieceCount, teleopGamePiecePoints, totalChargeStationPoints, teleopPoints, rp, totalPoints); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2023Alliance {\n"); + sb.append(" activationBonusAchieved: ").append(toIndentedString(activationBonusAchieved)).append("\n"); + sb.append(" adjustPoints: ").append(toIndentedString(adjustPoints)).append("\n"); + sb.append(" autoBridgeState: ").append(toIndentedString(autoBridgeState)).append("\n"); + sb.append(" autoChargeStationPoints: ").append(toIndentedString(autoChargeStationPoints)).append("\n"); + sb.append(" autoChargeStationRobot1: ").append(toIndentedString(autoChargeStationRobot1)).append("\n"); + sb.append(" autoChargeStationRobot2: ").append(toIndentedString(autoChargeStationRobot2)).append("\n"); + sb.append(" autoChargeStationRobot3: ").append(toIndentedString(autoChargeStationRobot3)).append("\n"); + sb.append(" autoDocked: ").append(toIndentedString(autoDocked)).append("\n"); + sb.append(" autoCommunity: ").append(toIndentedString(autoCommunity)).append("\n"); + sb.append(" autoGamePieceCount: ").append(toIndentedString(autoGamePieceCount)).append("\n"); + sb.append(" autoGamePiecePoints: ").append(toIndentedString(autoGamePiecePoints)).append("\n"); + sb.append(" autoMobilityPoints: ").append(toIndentedString(autoMobilityPoints)).append("\n"); + sb.append(" mobilityRobot1: ").append(toIndentedString(mobilityRobot1)).append("\n"); + sb.append(" mobilityRobot2: ").append(toIndentedString(mobilityRobot2)).append("\n"); + sb.append(" mobilityRobot3: ").append(toIndentedString(mobilityRobot3)).append("\n"); + sb.append(" autoPoints: ").append(toIndentedString(autoPoints)).append("\n"); + sb.append(" coopGamePieceCount: ").append(toIndentedString(coopGamePieceCount)).append("\n"); + sb.append(" coopertitionCriteriaMet: ").append(toIndentedString(coopertitionCriteriaMet)).append("\n"); + sb.append(" endGameBridgeState: ").append(toIndentedString(endGameBridgeState)).append("\n"); + sb.append(" endGameChargeStationPoints: ").append(toIndentedString(endGameChargeStationPoints)).append("\n"); + sb.append(" endGameChargeStationRobot1: ").append(toIndentedString(endGameChargeStationRobot1)).append("\n"); + sb.append(" endGameChargeStationRobot2: ").append(toIndentedString(endGameChargeStationRobot2)).append("\n"); + sb.append(" endGameChargeStationRobot3: ").append(toIndentedString(endGameChargeStationRobot3)).append("\n"); + sb.append(" endGameParkPoints: ").append(toIndentedString(endGameParkPoints)).append("\n"); + sb.append(" extraGamePieceCount: ").append(toIndentedString(extraGamePieceCount)).append("\n"); + sb.append(" foulCount: ").append(toIndentedString(foulCount)).append("\n"); + sb.append(" foulPoints: ").append(toIndentedString(foulPoints)).append("\n"); + sb.append(" techFoulCount: ").append(toIndentedString(techFoulCount)).append("\n"); + sb.append(" linkPoints: ").append(toIndentedString(linkPoints)).append("\n"); + sb.append(" links: ").append(toIndentedString(links)).append("\n"); + sb.append(" sustainabilityBonusAchieved: ").append(toIndentedString(sustainabilityBonusAchieved)).append("\n"); + sb.append(" teleopCommunity: ").append(toIndentedString(teleopCommunity)).append("\n"); + sb.append(" teleopGamePieceCount: ").append(toIndentedString(teleopGamePieceCount)).append("\n"); + sb.append(" teleopGamePiecePoints: ").append(toIndentedString(teleopGamePiecePoints)).append("\n"); + sb.append(" totalChargeStationPoints: ").append(toIndentedString(totalChargeStationPoints)).append("\n"); + sb.append(" teleopPoints: ").append(toIndentedString(teleopPoints)).append("\n"); + sb.append(" rp: ").append(toIndentedString(rp)).append("\n"); + sb.append(" totalPoints: ").append(toIndentedString(totalPoints)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2023AllianceAutoCommunity.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2023AllianceAutoCommunity.java new file mode 100644 index 000000000..b4b70d443 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2023AllianceAutoCommunity.java @@ -0,0 +1,327 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +/** + * MatchScoreBreakdown2023AllianceAutoCommunity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2023AllianceAutoCommunity { + /** + * Gets or Sets B + */ + @JsonAdapter(BEnum.Adapter.class) + public enum BEnum { + NONE(String.valueOf("None")), + + CONE(String.valueOf("Cone")), + + CUBE(String.valueOf("Cube")); + + private String value; + + BEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static BEnum fromValue(String value) { + for (BEnum b : BEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final BEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public BEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return BEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_B = "B"; + @SerializedName(SERIALIZED_NAME_B) + @javax.annotation.Nonnull + private List B = new ArrayList<>(); + + /** + * Gets or Sets M + */ + @JsonAdapter(MEnum.Adapter.class) + public enum MEnum { + NONE(String.valueOf("None")), + + CONE(String.valueOf("Cone")), + + CUBE(String.valueOf("Cube")); + + private String value; + + MEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MEnum fromValue(String value) { + for (MEnum b : MEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final MEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return MEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_M = "M"; + @SerializedName(SERIALIZED_NAME_M) + @javax.annotation.Nonnull + private List M = new ArrayList<>(); + + /** + * Gets or Sets T + */ + @JsonAdapter(TEnum.Adapter.class) + public enum TEnum { + NONE(String.valueOf("None")), + + CONE(String.valueOf("Cone")), + + CUBE(String.valueOf("Cube")); + + private String value; + + TEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TEnum fromValue(String value) { + for (TEnum b : TEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_T = "T"; + @SerializedName(SERIALIZED_NAME_T) + @javax.annotation.Nonnull + private List T = new ArrayList<>(); + + public MatchScoreBreakdown2023AllianceAutoCommunity() { + } + + public MatchScoreBreakdown2023AllianceAutoCommunity B(@javax.annotation.Nonnull List B) { + + this.B = B; + return this; + } + + public MatchScoreBreakdown2023AllianceAutoCommunity addBItem(BEnum BItem) { + if (this.B == null) { + this.B = new ArrayList<>(); + } + this.B.add(BItem); + return this; + } + + /** + * Get B + * @return B + */ + @javax.annotation.Nonnull + + public List getB() { + return B; + } + + + public void setB(@javax.annotation.Nonnull List B) { + this.B = B; + } + + public MatchScoreBreakdown2023AllianceAutoCommunity M(@javax.annotation.Nonnull List M) { + + this.M = M; + return this; + } + + public MatchScoreBreakdown2023AllianceAutoCommunity addMItem(MEnum MItem) { + if (this.M == null) { + this.M = new ArrayList<>(); + } + this.M.add(MItem); + return this; + } + + /** + * Get M + * @return M + */ + @javax.annotation.Nonnull + + public List getM() { + return M; + } + + + public void setM(@javax.annotation.Nonnull List M) { + this.M = M; + } + + public MatchScoreBreakdown2023AllianceAutoCommunity T(@javax.annotation.Nonnull List T) { + + this.T = T; + return this; + } + + public MatchScoreBreakdown2023AllianceAutoCommunity addTItem(TEnum TItem) { + if (this.T == null) { + this.T = new ArrayList<>(); + } + this.T.add(TItem); + return this; + } + + /** + * Get T + * @return T + */ + @javax.annotation.Nonnull + + public List getT() { + return T; + } + + + public void setT(@javax.annotation.Nonnull List T) { + this.T = T; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2023AllianceAutoCommunity matchScoreBreakdown2023AllianceAutoCommunity = (MatchScoreBreakdown2023AllianceAutoCommunity) o; + return Objects.equals(this.B, matchScoreBreakdown2023AllianceAutoCommunity.B) && + Objects.equals(this.M, matchScoreBreakdown2023AllianceAutoCommunity.M) && + Objects.equals(this.T, matchScoreBreakdown2023AllianceAutoCommunity.T); + } + + @Override + public int hashCode() { + return Objects.hash(B, M, T); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2023AllianceAutoCommunity {\n"); + sb.append(" B: ").append(toIndentedString(B)).append("\n"); + sb.append(" M: ").append(toIndentedString(M)).append("\n"); + sb.append(" T: ").append(toIndentedString(T)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2023AllianceLinksInner.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2023AllianceLinksInner.java new file mode 100644 index 000000000..8f043c015 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2023AllianceLinksInner.java @@ -0,0 +1,234 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +/** + * MatchScoreBreakdown2023AllianceLinksInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2023AllianceLinksInner { + /** + * Gets or Sets nodes + */ + @JsonAdapter(NodesEnum.Adapter.class) + public enum NodesEnum { + NONE(String.valueOf("None")), + + CONE(String.valueOf("Cone")), + + CUBE(String.valueOf("Cube")); + + private String value; + + NodesEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static NodesEnum fromValue(String value) { + for (NodesEnum b : NodesEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final NodesEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public NodesEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return NodesEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_NODES = "nodes"; + @SerializedName(SERIALIZED_NAME_NODES) + @javax.annotation.Nonnull + private List nodes = new ArrayList<>(); + + /** + * Gets or Sets row + */ + @JsonAdapter(RowEnum.Adapter.class) + public enum RowEnum { + BOTTOM(String.valueOf("Bottom")), + + MID(String.valueOf("Mid")), + + TOP(String.valueOf("Top")); + + private String value; + + RowEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static RowEnum fromValue(String value) { + for (RowEnum b : RowEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final RowEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public RowEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return RowEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ROW = "row"; + @SerializedName(SERIALIZED_NAME_ROW) + @javax.annotation.Nonnull + private RowEnum row; + + public MatchScoreBreakdown2023AllianceLinksInner() { + } + + public MatchScoreBreakdown2023AllianceLinksInner nodes(@javax.annotation.Nonnull List nodes) { + + this.nodes = nodes; + return this; + } + + public MatchScoreBreakdown2023AllianceLinksInner addNodesItem(NodesEnum nodesItem) { + if (this.nodes == null) { + this.nodes = new ArrayList<>(); + } + this.nodes.add(nodesItem); + return this; + } + + /** + * Get nodes + * @return nodes + */ + @javax.annotation.Nonnull + + public List getNodes() { + return nodes; + } + + + public void setNodes(@javax.annotation.Nonnull List nodes) { + this.nodes = nodes; + } + + public MatchScoreBreakdown2023AllianceLinksInner row(@javax.annotation.Nonnull RowEnum row) { + + this.row = row; + return this; + } + + /** + * Get row + * @return row + */ + @javax.annotation.Nonnull + + public RowEnum getRow() { + return row; + } + + + public void setRow(@javax.annotation.Nonnull RowEnum row) { + this.row = row; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2023AllianceLinksInner matchScoreBreakdown2023AllianceLinksInner = (MatchScoreBreakdown2023AllianceLinksInner) o; + return Objects.equals(this.nodes, matchScoreBreakdown2023AllianceLinksInner.nodes) && + Objects.equals(this.row, matchScoreBreakdown2023AllianceLinksInner.row); + } + + @Override + public int hashCode() { + return Objects.hash(nodes, row); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2023AllianceLinksInner {\n"); + sb.append(" nodes: ").append(toIndentedString(nodes)).append("\n"); + sb.append(" row: ").append(toIndentedString(row)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2024.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2024.java new file mode 100644 index 000000000..bafb4d071 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2024.java @@ -0,0 +1,126 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import thebluealliance.api.model.MatchScoreBreakdown2024Alliance; + +/** + * See the 2024 FMS API documentation for a description of each value. https://frc-api-docs.firstinspires.org + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2024 { + public static final String SERIALIZED_NAME_BLUE = "blue"; + @SerializedName(SERIALIZED_NAME_BLUE) + @javax.annotation.Nonnull + private MatchScoreBreakdown2024Alliance blue; + + public static final String SERIALIZED_NAME_RED = "red"; + @SerializedName(SERIALIZED_NAME_RED) + @javax.annotation.Nonnull + private MatchScoreBreakdown2024Alliance red; + + public MatchScoreBreakdown2024() { + } + + public MatchScoreBreakdown2024 blue(@javax.annotation.Nonnull MatchScoreBreakdown2024Alliance blue) { + + this.blue = blue; + return this; + } + + /** + * Get blue + * @return blue + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2024Alliance getBlue() { + return blue; + } + + + public void setBlue(@javax.annotation.Nonnull MatchScoreBreakdown2024Alliance blue) { + this.blue = blue; + } + + public MatchScoreBreakdown2024 red(@javax.annotation.Nonnull MatchScoreBreakdown2024Alliance red) { + + this.red = red; + return this; + } + + /** + * Get red + * @return red + */ + @javax.annotation.Nonnull + + public MatchScoreBreakdown2024Alliance getRed() { + return red; + } + + + public void setRed(@javax.annotation.Nonnull MatchScoreBreakdown2024Alliance red) { + this.red = red; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2024 matchScoreBreakdown2024 = (MatchScoreBreakdown2024) o; + return Objects.equals(this.blue, matchScoreBreakdown2024.blue) && + Objects.equals(this.red, matchScoreBreakdown2024.red); + } + + @Override + public int hashCode() { + return Objects.hash(blue, red); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2024 {\n"); + sb.append(" blue: ").append(toIndentedString(blue)).append("\n"); + sb.append(" red: ").append(toIndentedString(red)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2024Alliance.java b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2024Alliance.java new file mode 100644 index 000000000..93aa6f676 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchScoreBreakdown2024Alliance.java @@ -0,0 +1,1525 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * MatchScoreBreakdown2024Alliance + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchScoreBreakdown2024Alliance { + public static final String SERIALIZED_NAME_ADJUST_POINTS = "adjustPoints"; + @SerializedName(SERIALIZED_NAME_ADJUST_POINTS) + @javax.annotation.Nullable + private Integer adjustPoints; + + public static final String SERIALIZED_NAME_AUTO_AMP_NOTE_COUNT = "autoAmpNoteCount"; + @SerializedName(SERIALIZED_NAME_AUTO_AMP_NOTE_COUNT) + @javax.annotation.Nullable + private Integer autoAmpNoteCount; + + public static final String SERIALIZED_NAME_AUTO_AMP_NOTE_POINTS = "autoAmpNotePoints"; + @SerializedName(SERIALIZED_NAME_AUTO_AMP_NOTE_POINTS) + @javax.annotation.Nullable + private Integer autoAmpNotePoints; + + public static final String SERIALIZED_NAME_AUTO_LEAVE_POINTS = "autoLeavePoints"; + @SerializedName(SERIALIZED_NAME_AUTO_LEAVE_POINTS) + @javax.annotation.Nullable + private Integer autoLeavePoints; + + public static final String SERIALIZED_NAME_AUTO_LINE_ROBOT1 = "autoLineRobot1"; + @SerializedName(SERIALIZED_NAME_AUTO_LINE_ROBOT1) + @javax.annotation.Nullable + private String autoLineRobot1; + + public static final String SERIALIZED_NAME_AUTO_LINE_ROBOT2 = "autoLineRobot2"; + @SerializedName(SERIALIZED_NAME_AUTO_LINE_ROBOT2) + @javax.annotation.Nullable + private String autoLineRobot2; + + public static final String SERIALIZED_NAME_AUTO_LINE_ROBOT3 = "autoLineRobot3"; + @SerializedName(SERIALIZED_NAME_AUTO_LINE_ROBOT3) + @javax.annotation.Nullable + private String autoLineRobot3; + + public static final String SERIALIZED_NAME_AUTO_POINTS = "autoPoints"; + @SerializedName(SERIALIZED_NAME_AUTO_POINTS) + @javax.annotation.Nullable + private Integer autoPoints; + + public static final String SERIALIZED_NAME_AUTO_SPEAKER_NOTE_COUNT = "autoSpeakerNoteCount"; + @SerializedName(SERIALIZED_NAME_AUTO_SPEAKER_NOTE_COUNT) + @javax.annotation.Nullable + private Integer autoSpeakerNoteCount; + + public static final String SERIALIZED_NAME_AUTO_SPEAKER_NOTE_POINTS = "autoSpeakerNotePoints"; + @SerializedName(SERIALIZED_NAME_AUTO_SPEAKER_NOTE_POINTS) + @javax.annotation.Nullable + private Integer autoSpeakerNotePoints; + + public static final String SERIALIZED_NAME_AUTO_TOTAL_NOTE_POINTS = "autoTotalNotePoints"; + @SerializedName(SERIALIZED_NAME_AUTO_TOTAL_NOTE_POINTS) + @javax.annotation.Nullable + private Integer autoTotalNotePoints; + + public static final String SERIALIZED_NAME_COOP_NOTE_PLAYED = "coopNotePlayed"; + @SerializedName(SERIALIZED_NAME_COOP_NOTE_PLAYED) + @javax.annotation.Nullable + private Boolean coopNotePlayed; + + public static final String SERIALIZED_NAME_COOPERTITION_BONUS_ACHIEVED = "coopertitionBonusAchieved"; + @SerializedName(SERIALIZED_NAME_COOPERTITION_BONUS_ACHIEVED) + @javax.annotation.Nullable + private Boolean coopertitionBonusAchieved; + + public static final String SERIALIZED_NAME_COOPERTITION_CRITERIA_MET = "coopertitionCriteriaMet"; + @SerializedName(SERIALIZED_NAME_COOPERTITION_CRITERIA_MET) + @javax.annotation.Nullable + private Boolean coopertitionCriteriaMet; + + public static final String SERIALIZED_NAME_END_GAME_HARMONY_POINTS = "endGameHarmonyPoints"; + @SerializedName(SERIALIZED_NAME_END_GAME_HARMONY_POINTS) + @javax.annotation.Nullable + private Integer endGameHarmonyPoints; + + public static final String SERIALIZED_NAME_END_GAME_NOTE_IN_TRAP_POINTS = "endGameNoteInTrapPoints"; + @SerializedName(SERIALIZED_NAME_END_GAME_NOTE_IN_TRAP_POINTS) + @javax.annotation.Nullable + private Integer endGameNoteInTrapPoints; + + public static final String SERIALIZED_NAME_END_GAME_ON_STAGE_POINTS = "endGameOnStagePoints"; + @SerializedName(SERIALIZED_NAME_END_GAME_ON_STAGE_POINTS) + @javax.annotation.Nullable + private Integer endGameOnStagePoints; + + public static final String SERIALIZED_NAME_END_GAME_PARK_POINTS = "endGameParkPoints"; + @SerializedName(SERIALIZED_NAME_END_GAME_PARK_POINTS) + @javax.annotation.Nullable + private Integer endGameParkPoints; + + public static final String SERIALIZED_NAME_END_GAME_ROBOT1 = "endGameRobot1"; + @SerializedName(SERIALIZED_NAME_END_GAME_ROBOT1) + @javax.annotation.Nullable + private String endGameRobot1; + + public static final String SERIALIZED_NAME_END_GAME_ROBOT2 = "endGameRobot2"; + @SerializedName(SERIALIZED_NAME_END_GAME_ROBOT2) + @javax.annotation.Nullable + private String endGameRobot2; + + public static final String SERIALIZED_NAME_END_GAME_ROBOT3 = "endGameRobot3"; + @SerializedName(SERIALIZED_NAME_END_GAME_ROBOT3) + @javax.annotation.Nullable + private String endGameRobot3; + + public static final String SERIALIZED_NAME_END_GAME_SPOT_LIGHT_BONUS_POINTS = "endGameSpotLightBonusPoints"; + @SerializedName(SERIALIZED_NAME_END_GAME_SPOT_LIGHT_BONUS_POINTS) + @javax.annotation.Nullable + private Integer endGameSpotLightBonusPoints; + + public static final String SERIALIZED_NAME_END_GAME_TOTAL_STAGE_POINTS = "endGameTotalStagePoints"; + @SerializedName(SERIALIZED_NAME_END_GAME_TOTAL_STAGE_POINTS) + @javax.annotation.Nullable + private Integer endGameTotalStagePoints; + + public static final String SERIALIZED_NAME_ENSEMBLE_BONUS_ACHIEVED = "ensembleBonusAchieved"; + @SerializedName(SERIALIZED_NAME_ENSEMBLE_BONUS_ACHIEVED) + @javax.annotation.Nullable + private Boolean ensembleBonusAchieved; + + public static final String SERIALIZED_NAME_ENSEMBLE_BONUS_ON_STAGE_ROBOTS_THRESHOLD = "ensembleBonusOnStageRobotsThreshold"; + @SerializedName(SERIALIZED_NAME_ENSEMBLE_BONUS_ON_STAGE_ROBOTS_THRESHOLD) + @javax.annotation.Nullable + private Integer ensembleBonusOnStageRobotsThreshold; + + public static final String SERIALIZED_NAME_ENSEMBLE_BONUS_STAGE_POINTS_THRESHOLD = "ensembleBonusStagePointsThreshold"; + @SerializedName(SERIALIZED_NAME_ENSEMBLE_BONUS_STAGE_POINTS_THRESHOLD) + @javax.annotation.Nullable + private Integer ensembleBonusStagePointsThreshold; + + public static final String SERIALIZED_NAME_FOUL_COUNT = "foulCount"; + @SerializedName(SERIALIZED_NAME_FOUL_COUNT) + @javax.annotation.Nullable + private Integer foulCount; + + public static final String SERIALIZED_NAME_FOUL_POINTS = "foulPoints"; + @SerializedName(SERIALIZED_NAME_FOUL_POINTS) + @javax.annotation.Nullable + private Integer foulPoints; + + public static final String SERIALIZED_NAME_G206_PENALTY = "g206Penalty"; + @SerializedName(SERIALIZED_NAME_G206_PENALTY) + @javax.annotation.Nullable + private Boolean g206Penalty; + + public static final String SERIALIZED_NAME_G408_PENALTY = "g408Penalty"; + @SerializedName(SERIALIZED_NAME_G408_PENALTY) + @javax.annotation.Nullable + private Boolean g408Penalty; + + public static final String SERIALIZED_NAME_G424_PENALTY = "g424Penalty"; + @SerializedName(SERIALIZED_NAME_G424_PENALTY) + @javax.annotation.Nullable + private Boolean g424Penalty; + + public static final String SERIALIZED_NAME_MELODY_BONUS_ACHIEVED = "melodyBonusAchieved"; + @SerializedName(SERIALIZED_NAME_MELODY_BONUS_ACHIEVED) + @javax.annotation.Nullable + private Boolean melodyBonusAchieved; + + public static final String SERIALIZED_NAME_MELODY_BONUS_THRESHOLD = "melodyBonusThreshold"; + @SerializedName(SERIALIZED_NAME_MELODY_BONUS_THRESHOLD) + @javax.annotation.Nullable + private Integer melodyBonusThreshold; + + public static final String SERIALIZED_NAME_MELODY_BONUS_THRESHOLD_COOP = "melodyBonusThresholdCoop"; + @SerializedName(SERIALIZED_NAME_MELODY_BONUS_THRESHOLD_COOP) + @javax.annotation.Nullable + private Integer melodyBonusThresholdCoop; + + public static final String SERIALIZED_NAME_MELODY_BONUS_THRESHOLD_NON_COOP = "melodyBonusThresholdNonCoop"; + @SerializedName(SERIALIZED_NAME_MELODY_BONUS_THRESHOLD_NON_COOP) + @javax.annotation.Nullable + private Integer melodyBonusThresholdNonCoop; + + public static final String SERIALIZED_NAME_MIC_CENTER_STAGE = "micCenterStage"; + @SerializedName(SERIALIZED_NAME_MIC_CENTER_STAGE) + @javax.annotation.Nullable + private Boolean micCenterStage; + + public static final String SERIALIZED_NAME_MIC_STAGE_LEFT = "micStageLeft"; + @SerializedName(SERIALIZED_NAME_MIC_STAGE_LEFT) + @javax.annotation.Nullable + private Boolean micStageLeft; + + public static final String SERIALIZED_NAME_MIC_STAGE_RIGHT = "micStageRight"; + @SerializedName(SERIALIZED_NAME_MIC_STAGE_RIGHT) + @javax.annotation.Nullable + private Boolean micStageRight; + + public static final String SERIALIZED_NAME_RP = "rp"; + @SerializedName(SERIALIZED_NAME_RP) + @javax.annotation.Nullable + private Integer rp; + + public static final String SERIALIZED_NAME_TECH_FOUL_COUNT = "techFoulCount"; + @SerializedName(SERIALIZED_NAME_TECH_FOUL_COUNT) + @javax.annotation.Nullable + private Integer techFoulCount; + + public static final String SERIALIZED_NAME_TELEOP_AMP_NOTE_COUNT = "teleopAmpNoteCount"; + @SerializedName(SERIALIZED_NAME_TELEOP_AMP_NOTE_COUNT) + @javax.annotation.Nullable + private Integer teleopAmpNoteCount; + + public static final String SERIALIZED_NAME_TELEOP_AMP_NOTE_POINTS = "teleopAmpNotePoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_AMP_NOTE_POINTS) + @javax.annotation.Nullable + private Integer teleopAmpNotePoints; + + public static final String SERIALIZED_NAME_TELEOP_POINTS = "teleopPoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_POINTS) + @javax.annotation.Nullable + private Integer teleopPoints; + + public static final String SERIALIZED_NAME_TELEOP_SPEAKER_NOTE_AMPLIFIED_COUNT = "teleopSpeakerNoteAmplifiedCount"; + @SerializedName(SERIALIZED_NAME_TELEOP_SPEAKER_NOTE_AMPLIFIED_COUNT) + @javax.annotation.Nullable + private Integer teleopSpeakerNoteAmplifiedCount; + + public static final String SERIALIZED_NAME_TELEOP_SPEAKER_NOTE_AMPLIFIED_POINTS = "teleopSpeakerNoteAmplifiedPoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_SPEAKER_NOTE_AMPLIFIED_POINTS) + @javax.annotation.Nullable + private Integer teleopSpeakerNoteAmplifiedPoints; + + public static final String SERIALIZED_NAME_TELEOP_SPEAKER_NOTE_COUNT = "teleopSpeakerNoteCount"; + @SerializedName(SERIALIZED_NAME_TELEOP_SPEAKER_NOTE_COUNT) + @javax.annotation.Nullable + private Integer teleopSpeakerNoteCount; + + public static final String SERIALIZED_NAME_TELEOP_SPEAKER_NOTE_POINTS = "teleopSpeakerNotePoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_SPEAKER_NOTE_POINTS) + @javax.annotation.Nullable + private Integer teleopSpeakerNotePoints; + + public static final String SERIALIZED_NAME_TELEOP_TOTAL_NOTE_POINTS = "teleopTotalNotePoints"; + @SerializedName(SERIALIZED_NAME_TELEOP_TOTAL_NOTE_POINTS) + @javax.annotation.Nullable + private Integer teleopTotalNotePoints; + + public static final String SERIALIZED_NAME_TOTAL_POINTS = "totalPoints"; + @SerializedName(SERIALIZED_NAME_TOTAL_POINTS) + @javax.annotation.Nullable + private Integer totalPoints; + + public static final String SERIALIZED_NAME_TRAP_CENTER_STAGE = "trapCenterStage"; + @SerializedName(SERIALIZED_NAME_TRAP_CENTER_STAGE) + @javax.annotation.Nullable + private Boolean trapCenterStage; + + public static final String SERIALIZED_NAME_TRAP_STAGE_LEFT = "trapStageLeft"; + @SerializedName(SERIALIZED_NAME_TRAP_STAGE_LEFT) + @javax.annotation.Nullable + private Boolean trapStageLeft; + + public static final String SERIALIZED_NAME_TRAP_STAGE_RIGHT = "trapStageRight"; + @SerializedName(SERIALIZED_NAME_TRAP_STAGE_RIGHT) + @javax.annotation.Nullable + private Boolean trapStageRight; + + public MatchScoreBreakdown2024Alliance() { + } + + public MatchScoreBreakdown2024Alliance adjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + + this.adjustPoints = adjustPoints; + return this; + } + + /** + * Get adjustPoints + * @return adjustPoints + */ + @javax.annotation.Nullable + + public Integer getAdjustPoints() { + return adjustPoints; + } + + + public void setAdjustPoints(@javax.annotation.Nullable Integer adjustPoints) { + this.adjustPoints = adjustPoints; + } + + public MatchScoreBreakdown2024Alliance autoAmpNoteCount(@javax.annotation.Nullable Integer autoAmpNoteCount) { + + this.autoAmpNoteCount = autoAmpNoteCount; + return this; + } + + /** + * Get autoAmpNoteCount + * @return autoAmpNoteCount + */ + @javax.annotation.Nullable + + public Integer getAutoAmpNoteCount() { + return autoAmpNoteCount; + } + + + public void setAutoAmpNoteCount(@javax.annotation.Nullable Integer autoAmpNoteCount) { + this.autoAmpNoteCount = autoAmpNoteCount; + } + + public MatchScoreBreakdown2024Alliance autoAmpNotePoints(@javax.annotation.Nullable Integer autoAmpNotePoints) { + + this.autoAmpNotePoints = autoAmpNotePoints; + return this; + } + + /** + * Get autoAmpNotePoints + * @return autoAmpNotePoints + */ + @javax.annotation.Nullable + + public Integer getAutoAmpNotePoints() { + return autoAmpNotePoints; + } + + + public void setAutoAmpNotePoints(@javax.annotation.Nullable Integer autoAmpNotePoints) { + this.autoAmpNotePoints = autoAmpNotePoints; + } + + public MatchScoreBreakdown2024Alliance autoLeavePoints(@javax.annotation.Nullable Integer autoLeavePoints) { + + this.autoLeavePoints = autoLeavePoints; + return this; + } + + /** + * Get autoLeavePoints + * @return autoLeavePoints + */ + @javax.annotation.Nullable + + public Integer getAutoLeavePoints() { + return autoLeavePoints; + } + + + public void setAutoLeavePoints(@javax.annotation.Nullable Integer autoLeavePoints) { + this.autoLeavePoints = autoLeavePoints; + } + + public MatchScoreBreakdown2024Alliance autoLineRobot1(@javax.annotation.Nullable String autoLineRobot1) { + + this.autoLineRobot1 = autoLineRobot1; + return this; + } + + /** + * Get autoLineRobot1 + * @return autoLineRobot1 + */ + @javax.annotation.Nullable + + public String getAutoLineRobot1() { + return autoLineRobot1; + } + + + public void setAutoLineRobot1(@javax.annotation.Nullable String autoLineRobot1) { + this.autoLineRobot1 = autoLineRobot1; + } + + public MatchScoreBreakdown2024Alliance autoLineRobot2(@javax.annotation.Nullable String autoLineRobot2) { + + this.autoLineRobot2 = autoLineRobot2; + return this; + } + + /** + * Get autoLineRobot2 + * @return autoLineRobot2 + */ + @javax.annotation.Nullable + + public String getAutoLineRobot2() { + return autoLineRobot2; + } + + + public void setAutoLineRobot2(@javax.annotation.Nullable String autoLineRobot2) { + this.autoLineRobot2 = autoLineRobot2; + } + + public MatchScoreBreakdown2024Alliance autoLineRobot3(@javax.annotation.Nullable String autoLineRobot3) { + + this.autoLineRobot3 = autoLineRobot3; + return this; + } + + /** + * Get autoLineRobot3 + * @return autoLineRobot3 + */ + @javax.annotation.Nullable + + public String getAutoLineRobot3() { + return autoLineRobot3; + } + + + public void setAutoLineRobot3(@javax.annotation.Nullable String autoLineRobot3) { + this.autoLineRobot3 = autoLineRobot3; + } + + public MatchScoreBreakdown2024Alliance autoPoints(@javax.annotation.Nullable Integer autoPoints) { + + this.autoPoints = autoPoints; + return this; + } + + /** + * Get autoPoints + * @return autoPoints + */ + @javax.annotation.Nullable + + public Integer getAutoPoints() { + return autoPoints; + } + + + public void setAutoPoints(@javax.annotation.Nullable Integer autoPoints) { + this.autoPoints = autoPoints; + } + + public MatchScoreBreakdown2024Alliance autoSpeakerNoteCount(@javax.annotation.Nullable Integer autoSpeakerNoteCount) { + + this.autoSpeakerNoteCount = autoSpeakerNoteCount; + return this; + } + + /** + * Get autoSpeakerNoteCount + * @return autoSpeakerNoteCount + */ + @javax.annotation.Nullable + + public Integer getAutoSpeakerNoteCount() { + return autoSpeakerNoteCount; + } + + + public void setAutoSpeakerNoteCount(@javax.annotation.Nullable Integer autoSpeakerNoteCount) { + this.autoSpeakerNoteCount = autoSpeakerNoteCount; + } + + public MatchScoreBreakdown2024Alliance autoSpeakerNotePoints(@javax.annotation.Nullable Integer autoSpeakerNotePoints) { + + this.autoSpeakerNotePoints = autoSpeakerNotePoints; + return this; + } + + /** + * Get autoSpeakerNotePoints + * @return autoSpeakerNotePoints + */ + @javax.annotation.Nullable + + public Integer getAutoSpeakerNotePoints() { + return autoSpeakerNotePoints; + } + + + public void setAutoSpeakerNotePoints(@javax.annotation.Nullable Integer autoSpeakerNotePoints) { + this.autoSpeakerNotePoints = autoSpeakerNotePoints; + } + + public MatchScoreBreakdown2024Alliance autoTotalNotePoints(@javax.annotation.Nullable Integer autoTotalNotePoints) { + + this.autoTotalNotePoints = autoTotalNotePoints; + return this; + } + + /** + * Get autoTotalNotePoints + * @return autoTotalNotePoints + */ + @javax.annotation.Nullable + + public Integer getAutoTotalNotePoints() { + return autoTotalNotePoints; + } + + + public void setAutoTotalNotePoints(@javax.annotation.Nullable Integer autoTotalNotePoints) { + this.autoTotalNotePoints = autoTotalNotePoints; + } + + public MatchScoreBreakdown2024Alliance coopNotePlayed(@javax.annotation.Nullable Boolean coopNotePlayed) { + + this.coopNotePlayed = coopNotePlayed; + return this; + } + + /** + * Get coopNotePlayed + * @return coopNotePlayed + */ + @javax.annotation.Nullable + + public Boolean getCoopNotePlayed() { + return coopNotePlayed; + } + + + public void setCoopNotePlayed(@javax.annotation.Nullable Boolean coopNotePlayed) { + this.coopNotePlayed = coopNotePlayed; + } + + public MatchScoreBreakdown2024Alliance coopertitionBonusAchieved(@javax.annotation.Nullable Boolean coopertitionBonusAchieved) { + + this.coopertitionBonusAchieved = coopertitionBonusAchieved; + return this; + } + + /** + * Get coopertitionBonusAchieved + * @return coopertitionBonusAchieved + */ + @javax.annotation.Nullable + + public Boolean getCoopertitionBonusAchieved() { + return coopertitionBonusAchieved; + } + + + public void setCoopertitionBonusAchieved(@javax.annotation.Nullable Boolean coopertitionBonusAchieved) { + this.coopertitionBonusAchieved = coopertitionBonusAchieved; + } + + public MatchScoreBreakdown2024Alliance coopertitionCriteriaMet(@javax.annotation.Nullable Boolean coopertitionCriteriaMet) { + + this.coopertitionCriteriaMet = coopertitionCriteriaMet; + return this; + } + + /** + * Get coopertitionCriteriaMet + * @return coopertitionCriteriaMet + */ + @javax.annotation.Nullable + + public Boolean getCoopertitionCriteriaMet() { + return coopertitionCriteriaMet; + } + + + public void setCoopertitionCriteriaMet(@javax.annotation.Nullable Boolean coopertitionCriteriaMet) { + this.coopertitionCriteriaMet = coopertitionCriteriaMet; + } + + public MatchScoreBreakdown2024Alliance endGameHarmonyPoints(@javax.annotation.Nullable Integer endGameHarmonyPoints) { + + this.endGameHarmonyPoints = endGameHarmonyPoints; + return this; + } + + /** + * Get endGameHarmonyPoints + * @return endGameHarmonyPoints + */ + @javax.annotation.Nullable + + public Integer getEndGameHarmonyPoints() { + return endGameHarmonyPoints; + } + + + public void setEndGameHarmonyPoints(@javax.annotation.Nullable Integer endGameHarmonyPoints) { + this.endGameHarmonyPoints = endGameHarmonyPoints; + } + + public MatchScoreBreakdown2024Alliance endGameNoteInTrapPoints(@javax.annotation.Nullable Integer endGameNoteInTrapPoints) { + + this.endGameNoteInTrapPoints = endGameNoteInTrapPoints; + return this; + } + + /** + * Get endGameNoteInTrapPoints + * @return endGameNoteInTrapPoints + */ + @javax.annotation.Nullable + + public Integer getEndGameNoteInTrapPoints() { + return endGameNoteInTrapPoints; + } + + + public void setEndGameNoteInTrapPoints(@javax.annotation.Nullable Integer endGameNoteInTrapPoints) { + this.endGameNoteInTrapPoints = endGameNoteInTrapPoints; + } + + public MatchScoreBreakdown2024Alliance endGameOnStagePoints(@javax.annotation.Nullable Integer endGameOnStagePoints) { + + this.endGameOnStagePoints = endGameOnStagePoints; + return this; + } + + /** + * Get endGameOnStagePoints + * @return endGameOnStagePoints + */ + @javax.annotation.Nullable + + public Integer getEndGameOnStagePoints() { + return endGameOnStagePoints; + } + + + public void setEndGameOnStagePoints(@javax.annotation.Nullable Integer endGameOnStagePoints) { + this.endGameOnStagePoints = endGameOnStagePoints; + } + + public MatchScoreBreakdown2024Alliance endGameParkPoints(@javax.annotation.Nullable Integer endGameParkPoints) { + + this.endGameParkPoints = endGameParkPoints; + return this; + } + + /** + * Get endGameParkPoints + * @return endGameParkPoints + */ + @javax.annotation.Nullable + + public Integer getEndGameParkPoints() { + return endGameParkPoints; + } + + + public void setEndGameParkPoints(@javax.annotation.Nullable Integer endGameParkPoints) { + this.endGameParkPoints = endGameParkPoints; + } + + public MatchScoreBreakdown2024Alliance endGameRobot1(@javax.annotation.Nullable String endGameRobot1) { + + this.endGameRobot1 = endGameRobot1; + return this; + } + + /** + * Get endGameRobot1 + * @return endGameRobot1 + */ + @javax.annotation.Nullable + + public String getEndGameRobot1() { + return endGameRobot1; + } + + + public void setEndGameRobot1(@javax.annotation.Nullable String endGameRobot1) { + this.endGameRobot1 = endGameRobot1; + } + + public MatchScoreBreakdown2024Alliance endGameRobot2(@javax.annotation.Nullable String endGameRobot2) { + + this.endGameRobot2 = endGameRobot2; + return this; + } + + /** + * Get endGameRobot2 + * @return endGameRobot2 + */ + @javax.annotation.Nullable + + public String getEndGameRobot2() { + return endGameRobot2; + } + + + public void setEndGameRobot2(@javax.annotation.Nullable String endGameRobot2) { + this.endGameRobot2 = endGameRobot2; + } + + public MatchScoreBreakdown2024Alliance endGameRobot3(@javax.annotation.Nullable String endGameRobot3) { + + this.endGameRobot3 = endGameRobot3; + return this; + } + + /** + * Get endGameRobot3 + * @return endGameRobot3 + */ + @javax.annotation.Nullable + + public String getEndGameRobot3() { + return endGameRobot3; + } + + + public void setEndGameRobot3(@javax.annotation.Nullable String endGameRobot3) { + this.endGameRobot3 = endGameRobot3; + } + + public MatchScoreBreakdown2024Alliance endGameSpotLightBonusPoints(@javax.annotation.Nullable Integer endGameSpotLightBonusPoints) { + + this.endGameSpotLightBonusPoints = endGameSpotLightBonusPoints; + return this; + } + + /** + * Get endGameSpotLightBonusPoints + * @return endGameSpotLightBonusPoints + */ + @javax.annotation.Nullable + + public Integer getEndGameSpotLightBonusPoints() { + return endGameSpotLightBonusPoints; + } + + + public void setEndGameSpotLightBonusPoints(@javax.annotation.Nullable Integer endGameSpotLightBonusPoints) { + this.endGameSpotLightBonusPoints = endGameSpotLightBonusPoints; + } + + public MatchScoreBreakdown2024Alliance endGameTotalStagePoints(@javax.annotation.Nullable Integer endGameTotalStagePoints) { + + this.endGameTotalStagePoints = endGameTotalStagePoints; + return this; + } + + /** + * Get endGameTotalStagePoints + * @return endGameTotalStagePoints + */ + @javax.annotation.Nullable + + public Integer getEndGameTotalStagePoints() { + return endGameTotalStagePoints; + } + + + public void setEndGameTotalStagePoints(@javax.annotation.Nullable Integer endGameTotalStagePoints) { + this.endGameTotalStagePoints = endGameTotalStagePoints; + } + + public MatchScoreBreakdown2024Alliance ensembleBonusAchieved(@javax.annotation.Nullable Boolean ensembleBonusAchieved) { + + this.ensembleBonusAchieved = ensembleBonusAchieved; + return this; + } + + /** + * Get ensembleBonusAchieved + * @return ensembleBonusAchieved + */ + @javax.annotation.Nullable + + public Boolean getEnsembleBonusAchieved() { + return ensembleBonusAchieved; + } + + + public void setEnsembleBonusAchieved(@javax.annotation.Nullable Boolean ensembleBonusAchieved) { + this.ensembleBonusAchieved = ensembleBonusAchieved; + } + + public MatchScoreBreakdown2024Alliance ensembleBonusOnStageRobotsThreshold(@javax.annotation.Nullable Integer ensembleBonusOnStageRobotsThreshold) { + + this.ensembleBonusOnStageRobotsThreshold = ensembleBonusOnStageRobotsThreshold; + return this; + } + + /** + * Get ensembleBonusOnStageRobotsThreshold + * @return ensembleBonusOnStageRobotsThreshold + */ + @javax.annotation.Nullable + + public Integer getEnsembleBonusOnStageRobotsThreshold() { + return ensembleBonusOnStageRobotsThreshold; + } + + + public void setEnsembleBonusOnStageRobotsThreshold(@javax.annotation.Nullable Integer ensembleBonusOnStageRobotsThreshold) { + this.ensembleBonusOnStageRobotsThreshold = ensembleBonusOnStageRobotsThreshold; + } + + public MatchScoreBreakdown2024Alliance ensembleBonusStagePointsThreshold(@javax.annotation.Nullable Integer ensembleBonusStagePointsThreshold) { + + this.ensembleBonusStagePointsThreshold = ensembleBonusStagePointsThreshold; + return this; + } + + /** + * Get ensembleBonusStagePointsThreshold + * @return ensembleBonusStagePointsThreshold + */ + @javax.annotation.Nullable + + public Integer getEnsembleBonusStagePointsThreshold() { + return ensembleBonusStagePointsThreshold; + } + + + public void setEnsembleBonusStagePointsThreshold(@javax.annotation.Nullable Integer ensembleBonusStagePointsThreshold) { + this.ensembleBonusStagePointsThreshold = ensembleBonusStagePointsThreshold; + } + + public MatchScoreBreakdown2024Alliance foulCount(@javax.annotation.Nullable Integer foulCount) { + + this.foulCount = foulCount; + return this; + } + + /** + * Get foulCount + * @return foulCount + */ + @javax.annotation.Nullable + + public Integer getFoulCount() { + return foulCount; + } + + + public void setFoulCount(@javax.annotation.Nullable Integer foulCount) { + this.foulCount = foulCount; + } + + public MatchScoreBreakdown2024Alliance foulPoints(@javax.annotation.Nullable Integer foulPoints) { + + this.foulPoints = foulPoints; + return this; + } + + /** + * Get foulPoints + * @return foulPoints + */ + @javax.annotation.Nullable + + public Integer getFoulPoints() { + return foulPoints; + } + + + public void setFoulPoints(@javax.annotation.Nullable Integer foulPoints) { + this.foulPoints = foulPoints; + } + + public MatchScoreBreakdown2024Alliance g206Penalty(@javax.annotation.Nullable Boolean g206Penalty) { + + this.g206Penalty = g206Penalty; + return this; + } + + /** + * Get g206Penalty + * @return g206Penalty + */ + @javax.annotation.Nullable + + public Boolean getG206Penalty() { + return g206Penalty; + } + + + public void setG206Penalty(@javax.annotation.Nullable Boolean g206Penalty) { + this.g206Penalty = g206Penalty; + } + + public MatchScoreBreakdown2024Alliance g408Penalty(@javax.annotation.Nullable Boolean g408Penalty) { + + this.g408Penalty = g408Penalty; + return this; + } + + /** + * Get g408Penalty + * @return g408Penalty + */ + @javax.annotation.Nullable + + public Boolean getG408Penalty() { + return g408Penalty; + } + + + public void setG408Penalty(@javax.annotation.Nullable Boolean g408Penalty) { + this.g408Penalty = g408Penalty; + } + + public MatchScoreBreakdown2024Alliance g424Penalty(@javax.annotation.Nullable Boolean g424Penalty) { + + this.g424Penalty = g424Penalty; + return this; + } + + /** + * Get g424Penalty + * @return g424Penalty + */ + @javax.annotation.Nullable + + public Boolean getG424Penalty() { + return g424Penalty; + } + + + public void setG424Penalty(@javax.annotation.Nullable Boolean g424Penalty) { + this.g424Penalty = g424Penalty; + } + + public MatchScoreBreakdown2024Alliance melodyBonusAchieved(@javax.annotation.Nullable Boolean melodyBonusAchieved) { + + this.melodyBonusAchieved = melodyBonusAchieved; + return this; + } + + /** + * Get melodyBonusAchieved + * @return melodyBonusAchieved + */ + @javax.annotation.Nullable + + public Boolean getMelodyBonusAchieved() { + return melodyBonusAchieved; + } + + + public void setMelodyBonusAchieved(@javax.annotation.Nullable Boolean melodyBonusAchieved) { + this.melodyBonusAchieved = melodyBonusAchieved; + } + + public MatchScoreBreakdown2024Alliance melodyBonusThreshold(@javax.annotation.Nullable Integer melodyBonusThreshold) { + + this.melodyBonusThreshold = melodyBonusThreshold; + return this; + } + + /** + * Get melodyBonusThreshold + * @return melodyBonusThreshold + */ + @javax.annotation.Nullable + + public Integer getMelodyBonusThreshold() { + return melodyBonusThreshold; + } + + + public void setMelodyBonusThreshold(@javax.annotation.Nullable Integer melodyBonusThreshold) { + this.melodyBonusThreshold = melodyBonusThreshold; + } + + public MatchScoreBreakdown2024Alliance melodyBonusThresholdCoop(@javax.annotation.Nullable Integer melodyBonusThresholdCoop) { + + this.melodyBonusThresholdCoop = melodyBonusThresholdCoop; + return this; + } + + /** + * Get melodyBonusThresholdCoop + * @return melodyBonusThresholdCoop + */ + @javax.annotation.Nullable + + public Integer getMelodyBonusThresholdCoop() { + return melodyBonusThresholdCoop; + } + + + public void setMelodyBonusThresholdCoop(@javax.annotation.Nullable Integer melodyBonusThresholdCoop) { + this.melodyBonusThresholdCoop = melodyBonusThresholdCoop; + } + + public MatchScoreBreakdown2024Alliance melodyBonusThresholdNonCoop(@javax.annotation.Nullable Integer melodyBonusThresholdNonCoop) { + + this.melodyBonusThresholdNonCoop = melodyBonusThresholdNonCoop; + return this; + } + + /** + * Get melodyBonusThresholdNonCoop + * @return melodyBonusThresholdNonCoop + */ + @javax.annotation.Nullable + + public Integer getMelodyBonusThresholdNonCoop() { + return melodyBonusThresholdNonCoop; + } + + + public void setMelodyBonusThresholdNonCoop(@javax.annotation.Nullable Integer melodyBonusThresholdNonCoop) { + this.melodyBonusThresholdNonCoop = melodyBonusThresholdNonCoop; + } + + public MatchScoreBreakdown2024Alliance micCenterStage(@javax.annotation.Nullable Boolean micCenterStage) { + + this.micCenterStage = micCenterStage; + return this; + } + + /** + * Get micCenterStage + * @return micCenterStage + */ + @javax.annotation.Nullable + + public Boolean getMicCenterStage() { + return micCenterStage; + } + + + public void setMicCenterStage(@javax.annotation.Nullable Boolean micCenterStage) { + this.micCenterStage = micCenterStage; + } + + public MatchScoreBreakdown2024Alliance micStageLeft(@javax.annotation.Nullable Boolean micStageLeft) { + + this.micStageLeft = micStageLeft; + return this; + } + + /** + * Get micStageLeft + * @return micStageLeft + */ + @javax.annotation.Nullable + + public Boolean getMicStageLeft() { + return micStageLeft; + } + + + public void setMicStageLeft(@javax.annotation.Nullable Boolean micStageLeft) { + this.micStageLeft = micStageLeft; + } + + public MatchScoreBreakdown2024Alliance micStageRight(@javax.annotation.Nullable Boolean micStageRight) { + + this.micStageRight = micStageRight; + return this; + } + + /** + * Get micStageRight + * @return micStageRight + */ + @javax.annotation.Nullable + + public Boolean getMicStageRight() { + return micStageRight; + } + + + public void setMicStageRight(@javax.annotation.Nullable Boolean micStageRight) { + this.micStageRight = micStageRight; + } + + public MatchScoreBreakdown2024Alliance rp(@javax.annotation.Nullable Integer rp) { + + this.rp = rp; + return this; + } + + /** + * Get rp + * @return rp + */ + @javax.annotation.Nullable + + public Integer getRp() { + return rp; + } + + + public void setRp(@javax.annotation.Nullable Integer rp) { + this.rp = rp; + } + + public MatchScoreBreakdown2024Alliance techFoulCount(@javax.annotation.Nullable Integer techFoulCount) { + + this.techFoulCount = techFoulCount; + return this; + } + + /** + * Get techFoulCount + * @return techFoulCount + */ + @javax.annotation.Nullable + + public Integer getTechFoulCount() { + return techFoulCount; + } + + + public void setTechFoulCount(@javax.annotation.Nullable Integer techFoulCount) { + this.techFoulCount = techFoulCount; + } + + public MatchScoreBreakdown2024Alliance teleopAmpNoteCount(@javax.annotation.Nullable Integer teleopAmpNoteCount) { + + this.teleopAmpNoteCount = teleopAmpNoteCount; + return this; + } + + /** + * Get teleopAmpNoteCount + * @return teleopAmpNoteCount + */ + @javax.annotation.Nullable + + public Integer getTeleopAmpNoteCount() { + return teleopAmpNoteCount; + } + + + public void setTeleopAmpNoteCount(@javax.annotation.Nullable Integer teleopAmpNoteCount) { + this.teleopAmpNoteCount = teleopAmpNoteCount; + } + + public MatchScoreBreakdown2024Alliance teleopAmpNotePoints(@javax.annotation.Nullable Integer teleopAmpNotePoints) { + + this.teleopAmpNotePoints = teleopAmpNotePoints; + return this; + } + + /** + * Get teleopAmpNotePoints + * @return teleopAmpNotePoints + */ + @javax.annotation.Nullable + + public Integer getTeleopAmpNotePoints() { + return teleopAmpNotePoints; + } + + + public void setTeleopAmpNotePoints(@javax.annotation.Nullable Integer teleopAmpNotePoints) { + this.teleopAmpNotePoints = teleopAmpNotePoints; + } + + public MatchScoreBreakdown2024Alliance teleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + + this.teleopPoints = teleopPoints; + return this; + } + + /** + * Get teleopPoints + * @return teleopPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopPoints() { + return teleopPoints; + } + + + public void setTeleopPoints(@javax.annotation.Nullable Integer teleopPoints) { + this.teleopPoints = teleopPoints; + } + + public MatchScoreBreakdown2024Alliance teleopSpeakerNoteAmplifiedCount(@javax.annotation.Nullable Integer teleopSpeakerNoteAmplifiedCount) { + + this.teleopSpeakerNoteAmplifiedCount = teleopSpeakerNoteAmplifiedCount; + return this; + } + + /** + * Get teleopSpeakerNoteAmplifiedCount + * @return teleopSpeakerNoteAmplifiedCount + */ + @javax.annotation.Nullable + + public Integer getTeleopSpeakerNoteAmplifiedCount() { + return teleopSpeakerNoteAmplifiedCount; + } + + + public void setTeleopSpeakerNoteAmplifiedCount(@javax.annotation.Nullable Integer teleopSpeakerNoteAmplifiedCount) { + this.teleopSpeakerNoteAmplifiedCount = teleopSpeakerNoteAmplifiedCount; + } + + public MatchScoreBreakdown2024Alliance teleopSpeakerNoteAmplifiedPoints(@javax.annotation.Nullable Integer teleopSpeakerNoteAmplifiedPoints) { + + this.teleopSpeakerNoteAmplifiedPoints = teleopSpeakerNoteAmplifiedPoints; + return this; + } + + /** + * Get teleopSpeakerNoteAmplifiedPoints + * @return teleopSpeakerNoteAmplifiedPoints + */ + @javax.annotation.Nullable + + public Integer getTeleopSpeakerNoteAmplifiedPoints() { + return teleopSpeakerNoteAmplifiedPoints; + } + + + public void setTeleopSpeakerNoteAmplifiedPoints(@javax.annotation.Nullable Integer teleopSpeakerNoteAmplifiedPoints) { + this.teleopSpeakerNoteAmplifiedPoints = teleopSpeakerNoteAmplifiedPoints; + } + + public MatchScoreBreakdown2024Alliance teleopSpeakerNoteCount(@javax.annotation.Nullable Integer teleopSpeakerNoteCount) { + + this.teleopSpeakerNoteCount = teleopSpeakerNoteCount; + return this; + } + + /** + * Get teleopSpeakerNoteCount + * @return teleopSpeakerNoteCount + */ + @javax.annotation.Nullable + + public Integer getTeleopSpeakerNoteCount() { + return teleopSpeakerNoteCount; + } + + + public void setTeleopSpeakerNoteCount(@javax.annotation.Nullable Integer teleopSpeakerNoteCount) { + this.teleopSpeakerNoteCount = teleopSpeakerNoteCount; + } + + public MatchScoreBreakdown2024Alliance teleopSpeakerNotePoints(@javax.annotation.Nullable Integer teleopSpeakerNotePoints) { + + this.teleopSpeakerNotePoints = teleopSpeakerNotePoints; + return this; + } + + /** + * Get teleopSpeakerNotePoints + * @return teleopSpeakerNotePoints + */ + @javax.annotation.Nullable + + public Integer getTeleopSpeakerNotePoints() { + return teleopSpeakerNotePoints; + } + + + public void setTeleopSpeakerNotePoints(@javax.annotation.Nullable Integer teleopSpeakerNotePoints) { + this.teleopSpeakerNotePoints = teleopSpeakerNotePoints; + } + + public MatchScoreBreakdown2024Alliance teleopTotalNotePoints(@javax.annotation.Nullable Integer teleopTotalNotePoints) { + + this.teleopTotalNotePoints = teleopTotalNotePoints; + return this; + } + + /** + * Get teleopTotalNotePoints + * @return teleopTotalNotePoints + */ + @javax.annotation.Nullable + + public Integer getTeleopTotalNotePoints() { + return teleopTotalNotePoints; + } + + + public void setTeleopTotalNotePoints(@javax.annotation.Nullable Integer teleopTotalNotePoints) { + this.teleopTotalNotePoints = teleopTotalNotePoints; + } + + public MatchScoreBreakdown2024Alliance totalPoints(@javax.annotation.Nullable Integer totalPoints) { + + this.totalPoints = totalPoints; + return this; + } + + /** + * Get totalPoints + * @return totalPoints + */ + @javax.annotation.Nullable + + public Integer getTotalPoints() { + return totalPoints; + } + + + public void setTotalPoints(@javax.annotation.Nullable Integer totalPoints) { + this.totalPoints = totalPoints; + } + + public MatchScoreBreakdown2024Alliance trapCenterStage(@javax.annotation.Nullable Boolean trapCenterStage) { + + this.trapCenterStage = trapCenterStage; + return this; + } + + /** + * Get trapCenterStage + * @return trapCenterStage + */ + @javax.annotation.Nullable + + public Boolean getTrapCenterStage() { + return trapCenterStage; + } + + + public void setTrapCenterStage(@javax.annotation.Nullable Boolean trapCenterStage) { + this.trapCenterStage = trapCenterStage; + } + + public MatchScoreBreakdown2024Alliance trapStageLeft(@javax.annotation.Nullable Boolean trapStageLeft) { + + this.trapStageLeft = trapStageLeft; + return this; + } + + /** + * Get trapStageLeft + * @return trapStageLeft + */ + @javax.annotation.Nullable + + public Boolean getTrapStageLeft() { + return trapStageLeft; + } + + + public void setTrapStageLeft(@javax.annotation.Nullable Boolean trapStageLeft) { + this.trapStageLeft = trapStageLeft; + } + + public MatchScoreBreakdown2024Alliance trapStageRight(@javax.annotation.Nullable Boolean trapStageRight) { + + this.trapStageRight = trapStageRight; + return this; + } + + /** + * Get trapStageRight + * @return trapStageRight + */ + @javax.annotation.Nullable + + public Boolean getTrapStageRight() { + return trapStageRight; + } + + + public void setTrapStageRight(@javax.annotation.Nullable Boolean trapStageRight) { + this.trapStageRight = trapStageRight; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchScoreBreakdown2024Alliance matchScoreBreakdown2024Alliance = (MatchScoreBreakdown2024Alliance) o; + return Objects.equals(this.adjustPoints, matchScoreBreakdown2024Alliance.adjustPoints) && + Objects.equals(this.autoAmpNoteCount, matchScoreBreakdown2024Alliance.autoAmpNoteCount) && + Objects.equals(this.autoAmpNotePoints, matchScoreBreakdown2024Alliance.autoAmpNotePoints) && + Objects.equals(this.autoLeavePoints, matchScoreBreakdown2024Alliance.autoLeavePoints) && + Objects.equals(this.autoLineRobot1, matchScoreBreakdown2024Alliance.autoLineRobot1) && + Objects.equals(this.autoLineRobot2, matchScoreBreakdown2024Alliance.autoLineRobot2) && + Objects.equals(this.autoLineRobot3, matchScoreBreakdown2024Alliance.autoLineRobot3) && + Objects.equals(this.autoPoints, matchScoreBreakdown2024Alliance.autoPoints) && + Objects.equals(this.autoSpeakerNoteCount, matchScoreBreakdown2024Alliance.autoSpeakerNoteCount) && + Objects.equals(this.autoSpeakerNotePoints, matchScoreBreakdown2024Alliance.autoSpeakerNotePoints) && + Objects.equals(this.autoTotalNotePoints, matchScoreBreakdown2024Alliance.autoTotalNotePoints) && + Objects.equals(this.coopNotePlayed, matchScoreBreakdown2024Alliance.coopNotePlayed) && + Objects.equals(this.coopertitionBonusAchieved, matchScoreBreakdown2024Alliance.coopertitionBonusAchieved) && + Objects.equals(this.coopertitionCriteriaMet, matchScoreBreakdown2024Alliance.coopertitionCriteriaMet) && + Objects.equals(this.endGameHarmonyPoints, matchScoreBreakdown2024Alliance.endGameHarmonyPoints) && + Objects.equals(this.endGameNoteInTrapPoints, matchScoreBreakdown2024Alliance.endGameNoteInTrapPoints) && + Objects.equals(this.endGameOnStagePoints, matchScoreBreakdown2024Alliance.endGameOnStagePoints) && + Objects.equals(this.endGameParkPoints, matchScoreBreakdown2024Alliance.endGameParkPoints) && + Objects.equals(this.endGameRobot1, matchScoreBreakdown2024Alliance.endGameRobot1) && + Objects.equals(this.endGameRobot2, matchScoreBreakdown2024Alliance.endGameRobot2) && + Objects.equals(this.endGameRobot3, matchScoreBreakdown2024Alliance.endGameRobot3) && + Objects.equals(this.endGameSpotLightBonusPoints, matchScoreBreakdown2024Alliance.endGameSpotLightBonusPoints) && + Objects.equals(this.endGameTotalStagePoints, matchScoreBreakdown2024Alliance.endGameTotalStagePoints) && + Objects.equals(this.ensembleBonusAchieved, matchScoreBreakdown2024Alliance.ensembleBonusAchieved) && + Objects.equals(this.ensembleBonusOnStageRobotsThreshold, matchScoreBreakdown2024Alliance.ensembleBonusOnStageRobotsThreshold) && + Objects.equals(this.ensembleBonusStagePointsThreshold, matchScoreBreakdown2024Alliance.ensembleBonusStagePointsThreshold) && + Objects.equals(this.foulCount, matchScoreBreakdown2024Alliance.foulCount) && + Objects.equals(this.foulPoints, matchScoreBreakdown2024Alliance.foulPoints) && + Objects.equals(this.g206Penalty, matchScoreBreakdown2024Alliance.g206Penalty) && + Objects.equals(this.g408Penalty, matchScoreBreakdown2024Alliance.g408Penalty) && + Objects.equals(this.g424Penalty, matchScoreBreakdown2024Alliance.g424Penalty) && + Objects.equals(this.melodyBonusAchieved, matchScoreBreakdown2024Alliance.melodyBonusAchieved) && + Objects.equals(this.melodyBonusThreshold, matchScoreBreakdown2024Alliance.melodyBonusThreshold) && + Objects.equals(this.melodyBonusThresholdCoop, matchScoreBreakdown2024Alliance.melodyBonusThresholdCoop) && + Objects.equals(this.melodyBonusThresholdNonCoop, matchScoreBreakdown2024Alliance.melodyBonusThresholdNonCoop) && + Objects.equals(this.micCenterStage, matchScoreBreakdown2024Alliance.micCenterStage) && + Objects.equals(this.micStageLeft, matchScoreBreakdown2024Alliance.micStageLeft) && + Objects.equals(this.micStageRight, matchScoreBreakdown2024Alliance.micStageRight) && + Objects.equals(this.rp, matchScoreBreakdown2024Alliance.rp) && + Objects.equals(this.techFoulCount, matchScoreBreakdown2024Alliance.techFoulCount) && + Objects.equals(this.teleopAmpNoteCount, matchScoreBreakdown2024Alliance.teleopAmpNoteCount) && + Objects.equals(this.teleopAmpNotePoints, matchScoreBreakdown2024Alliance.teleopAmpNotePoints) && + Objects.equals(this.teleopPoints, matchScoreBreakdown2024Alliance.teleopPoints) && + Objects.equals(this.teleopSpeakerNoteAmplifiedCount, matchScoreBreakdown2024Alliance.teleopSpeakerNoteAmplifiedCount) && + Objects.equals(this.teleopSpeakerNoteAmplifiedPoints, matchScoreBreakdown2024Alliance.teleopSpeakerNoteAmplifiedPoints) && + Objects.equals(this.teleopSpeakerNoteCount, matchScoreBreakdown2024Alliance.teleopSpeakerNoteCount) && + Objects.equals(this.teleopSpeakerNotePoints, matchScoreBreakdown2024Alliance.teleopSpeakerNotePoints) && + Objects.equals(this.teleopTotalNotePoints, matchScoreBreakdown2024Alliance.teleopTotalNotePoints) && + Objects.equals(this.totalPoints, matchScoreBreakdown2024Alliance.totalPoints) && + Objects.equals(this.trapCenterStage, matchScoreBreakdown2024Alliance.trapCenterStage) && + Objects.equals(this.trapStageLeft, matchScoreBreakdown2024Alliance.trapStageLeft) && + Objects.equals(this.trapStageRight, matchScoreBreakdown2024Alliance.trapStageRight); + } + + @Override + public int hashCode() { + return Objects.hash(adjustPoints, autoAmpNoteCount, autoAmpNotePoints, autoLeavePoints, autoLineRobot1, autoLineRobot2, autoLineRobot3, autoPoints, autoSpeakerNoteCount, autoSpeakerNotePoints, autoTotalNotePoints, coopNotePlayed, coopertitionBonusAchieved, coopertitionCriteriaMet, endGameHarmonyPoints, endGameNoteInTrapPoints, endGameOnStagePoints, endGameParkPoints, endGameRobot1, endGameRobot2, endGameRobot3, endGameSpotLightBonusPoints, endGameTotalStagePoints, ensembleBonusAchieved, ensembleBonusOnStageRobotsThreshold, ensembleBonusStagePointsThreshold, foulCount, foulPoints, g206Penalty, g408Penalty, g424Penalty, melodyBonusAchieved, melodyBonusThreshold, melodyBonusThresholdCoop, melodyBonusThresholdNonCoop, micCenterStage, micStageLeft, micStageRight, rp, techFoulCount, teleopAmpNoteCount, teleopAmpNotePoints, teleopPoints, teleopSpeakerNoteAmplifiedCount, teleopSpeakerNoteAmplifiedPoints, teleopSpeakerNoteCount, teleopSpeakerNotePoints, teleopTotalNotePoints, totalPoints, trapCenterStage, trapStageLeft, trapStageRight); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchScoreBreakdown2024Alliance {\n"); + sb.append(" adjustPoints: ").append(toIndentedString(adjustPoints)).append("\n"); + sb.append(" autoAmpNoteCount: ").append(toIndentedString(autoAmpNoteCount)).append("\n"); + sb.append(" autoAmpNotePoints: ").append(toIndentedString(autoAmpNotePoints)).append("\n"); + sb.append(" autoLeavePoints: ").append(toIndentedString(autoLeavePoints)).append("\n"); + sb.append(" autoLineRobot1: ").append(toIndentedString(autoLineRobot1)).append("\n"); + sb.append(" autoLineRobot2: ").append(toIndentedString(autoLineRobot2)).append("\n"); + sb.append(" autoLineRobot3: ").append(toIndentedString(autoLineRobot3)).append("\n"); + sb.append(" autoPoints: ").append(toIndentedString(autoPoints)).append("\n"); + sb.append(" autoSpeakerNoteCount: ").append(toIndentedString(autoSpeakerNoteCount)).append("\n"); + sb.append(" autoSpeakerNotePoints: ").append(toIndentedString(autoSpeakerNotePoints)).append("\n"); + sb.append(" autoTotalNotePoints: ").append(toIndentedString(autoTotalNotePoints)).append("\n"); + sb.append(" coopNotePlayed: ").append(toIndentedString(coopNotePlayed)).append("\n"); + sb.append(" coopertitionBonusAchieved: ").append(toIndentedString(coopertitionBonusAchieved)).append("\n"); + sb.append(" coopertitionCriteriaMet: ").append(toIndentedString(coopertitionCriteriaMet)).append("\n"); + sb.append(" endGameHarmonyPoints: ").append(toIndentedString(endGameHarmonyPoints)).append("\n"); + sb.append(" endGameNoteInTrapPoints: ").append(toIndentedString(endGameNoteInTrapPoints)).append("\n"); + sb.append(" endGameOnStagePoints: ").append(toIndentedString(endGameOnStagePoints)).append("\n"); + sb.append(" endGameParkPoints: ").append(toIndentedString(endGameParkPoints)).append("\n"); + sb.append(" endGameRobot1: ").append(toIndentedString(endGameRobot1)).append("\n"); + sb.append(" endGameRobot2: ").append(toIndentedString(endGameRobot2)).append("\n"); + sb.append(" endGameRobot3: ").append(toIndentedString(endGameRobot3)).append("\n"); + sb.append(" endGameSpotLightBonusPoints: ").append(toIndentedString(endGameSpotLightBonusPoints)).append("\n"); + sb.append(" endGameTotalStagePoints: ").append(toIndentedString(endGameTotalStagePoints)).append("\n"); + sb.append(" ensembleBonusAchieved: ").append(toIndentedString(ensembleBonusAchieved)).append("\n"); + sb.append(" ensembleBonusOnStageRobotsThreshold: ").append(toIndentedString(ensembleBonusOnStageRobotsThreshold)).append("\n"); + sb.append(" ensembleBonusStagePointsThreshold: ").append(toIndentedString(ensembleBonusStagePointsThreshold)).append("\n"); + sb.append(" foulCount: ").append(toIndentedString(foulCount)).append("\n"); + sb.append(" foulPoints: ").append(toIndentedString(foulPoints)).append("\n"); + sb.append(" g206Penalty: ").append(toIndentedString(g206Penalty)).append("\n"); + sb.append(" g408Penalty: ").append(toIndentedString(g408Penalty)).append("\n"); + sb.append(" g424Penalty: ").append(toIndentedString(g424Penalty)).append("\n"); + sb.append(" melodyBonusAchieved: ").append(toIndentedString(melodyBonusAchieved)).append("\n"); + sb.append(" melodyBonusThreshold: ").append(toIndentedString(melodyBonusThreshold)).append("\n"); + sb.append(" melodyBonusThresholdCoop: ").append(toIndentedString(melodyBonusThresholdCoop)).append("\n"); + sb.append(" melodyBonusThresholdNonCoop: ").append(toIndentedString(melodyBonusThresholdNonCoop)).append("\n"); + sb.append(" micCenterStage: ").append(toIndentedString(micCenterStage)).append("\n"); + sb.append(" micStageLeft: ").append(toIndentedString(micStageLeft)).append("\n"); + sb.append(" micStageRight: ").append(toIndentedString(micStageRight)).append("\n"); + sb.append(" rp: ").append(toIndentedString(rp)).append("\n"); + sb.append(" techFoulCount: ").append(toIndentedString(techFoulCount)).append("\n"); + sb.append(" teleopAmpNoteCount: ").append(toIndentedString(teleopAmpNoteCount)).append("\n"); + sb.append(" teleopAmpNotePoints: ").append(toIndentedString(teleopAmpNotePoints)).append("\n"); + sb.append(" teleopPoints: ").append(toIndentedString(teleopPoints)).append("\n"); + sb.append(" teleopSpeakerNoteAmplifiedCount: ").append(toIndentedString(teleopSpeakerNoteAmplifiedCount)).append("\n"); + sb.append(" teleopSpeakerNoteAmplifiedPoints: ").append(toIndentedString(teleopSpeakerNoteAmplifiedPoints)).append("\n"); + sb.append(" teleopSpeakerNoteCount: ").append(toIndentedString(teleopSpeakerNoteCount)).append("\n"); + sb.append(" teleopSpeakerNotePoints: ").append(toIndentedString(teleopSpeakerNotePoints)).append("\n"); + sb.append(" teleopTotalNotePoints: ").append(toIndentedString(teleopTotalNotePoints)).append("\n"); + sb.append(" totalPoints: ").append(toIndentedString(totalPoints)).append("\n"); + sb.append(" trapCenterStage: ").append(toIndentedString(trapCenterStage)).append("\n"); + sb.append(" trapStageLeft: ").append(toIndentedString(trapStageLeft)).append("\n"); + sb.append(" trapStageRight: ").append(toIndentedString(trapStageRight)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchSimple.java b/tba-api/src/main/java/thebluealliance/api/model/MatchSimple.java new file mode 100644 index 000000000..4fd9b5845 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchSimple.java @@ -0,0 +1,452 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import thebluealliance.api.model.MatchSimpleAlliances; + +/** + * MatchSimple + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchSimple { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @javax.annotation.Nonnull + private String key; + + /** + * The competition level the match was played at. + */ + @JsonAdapter(CompLevelEnum.Adapter.class) + public enum CompLevelEnum { + QM(String.valueOf("qm")), + + EF(String.valueOf("ef")), + + QF(String.valueOf("qf")), + + SF(String.valueOf("sf")), + + F(String.valueOf("f")); + + private String value; + + CompLevelEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CompLevelEnum fromValue(String value) { + for (CompLevelEnum b : CompLevelEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CompLevelEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CompLevelEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CompLevelEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_COMP_LEVEL = "comp_level"; + @SerializedName(SERIALIZED_NAME_COMP_LEVEL) + @javax.annotation.Nonnull + private CompLevelEnum compLevel; + + public static final String SERIALIZED_NAME_SET_NUMBER = "set_number"; + @SerializedName(SERIALIZED_NAME_SET_NUMBER) + @javax.annotation.Nonnull + private Integer setNumber; + + public static final String SERIALIZED_NAME_MATCH_NUMBER = "match_number"; + @SerializedName(SERIALIZED_NAME_MATCH_NUMBER) + @javax.annotation.Nonnull + private Integer matchNumber; + + public static final String SERIALIZED_NAME_ALLIANCES = "alliances"; + @SerializedName(SERIALIZED_NAME_ALLIANCES) + @javax.annotation.Nonnull + private MatchSimpleAlliances alliances; + + /** + * The color (red/blue) of the winning alliance. Will contain an empty string in the event of no winner, or a tie. + */ + @JsonAdapter(WinningAllianceEnum.Adapter.class) + public enum WinningAllianceEnum { + RED(String.valueOf("red")), + + BLUE(String.valueOf("blue")), + + EMPTY(String.valueOf("")); + + private String value; + + WinningAllianceEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static WinningAllianceEnum fromValue(String value) { + for (WinningAllianceEnum b : WinningAllianceEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final WinningAllianceEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public WinningAllianceEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return WinningAllianceEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_WINNING_ALLIANCE = "winning_alliance"; + @SerializedName(SERIALIZED_NAME_WINNING_ALLIANCE) + @javax.annotation.Nonnull + private WinningAllianceEnum winningAlliance; + + public static final String SERIALIZED_NAME_EVENT_KEY = "event_key"; + @SerializedName(SERIALIZED_NAME_EVENT_KEY) + @javax.annotation.Nonnull + private String eventKey; + + public static final String SERIALIZED_NAME_TIME = "time"; + @SerializedName(SERIALIZED_NAME_TIME) + @javax.annotation.Nullable + private Long time; + + public static final String SERIALIZED_NAME_PREDICTED_TIME = "predicted_time"; + @SerializedName(SERIALIZED_NAME_PREDICTED_TIME) + @javax.annotation.Nullable + private Long predictedTime; + + public static final String SERIALIZED_NAME_ACTUAL_TIME = "actual_time"; + @SerializedName(SERIALIZED_NAME_ACTUAL_TIME) + @javax.annotation.Nullable + private Long actualTime; + + public MatchSimple() { + } + + public MatchSimple key(@javax.annotation.Nonnull String key) { + + this.key = key; + return this; + } + + /** + * TBA match key with the format `yyyy[EVENT_CODE]_[COMP_LEVEL]m[MATCH_NUMBER]`, where `yyyy` is the year, and `EVENT_CODE` is the event code of the event, `COMP_LEVEL` is (qm, ef, qf, sf, f), and `MATCH_NUMBER` is the match number in the competition level. A set number may append the competition level if more than one match in required per set. + * @return key + */ + @javax.annotation.Nonnull + + public String getKey() { + return key; + } + + + public void setKey(@javax.annotation.Nonnull String key) { + this.key = key; + } + + public MatchSimple compLevel(@javax.annotation.Nonnull CompLevelEnum compLevel) { + + this.compLevel = compLevel; + return this; + } + + /** + * The competition level the match was played at. + * @return compLevel + */ + @javax.annotation.Nonnull + + public CompLevelEnum getCompLevel() { + return compLevel; + } + + + public void setCompLevel(@javax.annotation.Nonnull CompLevelEnum compLevel) { + this.compLevel = compLevel; + } + + public MatchSimple setNumber(@javax.annotation.Nonnull Integer setNumber) { + + this.setNumber = setNumber; + return this; + } + + /** + * The set number in a series of matches where more than one match is required in the match series. + * @return setNumber + */ + @javax.annotation.Nonnull + + public Integer getSetNumber() { + return setNumber; + } + + + public void setSetNumber(@javax.annotation.Nonnull Integer setNumber) { + this.setNumber = setNumber; + } + + public MatchSimple matchNumber(@javax.annotation.Nonnull Integer matchNumber) { + + this.matchNumber = matchNumber; + return this; + } + + /** + * The match number of the match in the competition level. + * @return matchNumber + */ + @javax.annotation.Nonnull + + public Integer getMatchNumber() { + return matchNumber; + } + + + public void setMatchNumber(@javax.annotation.Nonnull Integer matchNumber) { + this.matchNumber = matchNumber; + } + + public MatchSimple alliances(@javax.annotation.Nonnull MatchSimpleAlliances alliances) { + + this.alliances = alliances; + return this; + } + + /** + * Get alliances + * @return alliances + */ + @javax.annotation.Nonnull + + public MatchSimpleAlliances getAlliances() { + return alliances; + } + + + public void setAlliances(@javax.annotation.Nonnull MatchSimpleAlliances alliances) { + this.alliances = alliances; + } + + public MatchSimple winningAlliance(@javax.annotation.Nonnull WinningAllianceEnum winningAlliance) { + + this.winningAlliance = winningAlliance; + return this; + } + + /** + * The color (red/blue) of the winning alliance. Will contain an empty string in the event of no winner, or a tie. + * @return winningAlliance + */ + @javax.annotation.Nonnull + + public WinningAllianceEnum getWinningAlliance() { + return winningAlliance; + } + + + public void setWinningAlliance(@javax.annotation.Nonnull WinningAllianceEnum winningAlliance) { + this.winningAlliance = winningAlliance; + } + + public MatchSimple eventKey(@javax.annotation.Nonnull String eventKey) { + + this.eventKey = eventKey; + return this; + } + + /** + * Event key of the event the match was played at. + * @return eventKey + */ + @javax.annotation.Nonnull + + public String getEventKey() { + return eventKey; + } + + + public void setEventKey(@javax.annotation.Nonnull String eventKey) { + this.eventKey = eventKey; + } + + public MatchSimple time(@javax.annotation.Nullable Long time) { + + this.time = time; + return this; + } + + /** + * UNIX timestamp (seconds since 1-Jan-1970 00:00:00) of the scheduled match time, as taken from the published schedule. + * @return time + */ + @javax.annotation.Nullable + + public Long getTime() { + return time; + } + + + public void setTime(@javax.annotation.Nullable Long time) { + this.time = time; + } + + public MatchSimple predictedTime(@javax.annotation.Nullable Long predictedTime) { + + this.predictedTime = predictedTime; + return this; + } + + /** + * UNIX timestamp (seconds since 1-Jan-1970 00:00:00) of the TBA predicted match start time. + * @return predictedTime + */ + @javax.annotation.Nullable + + public Long getPredictedTime() { + return predictedTime; + } + + + public void setPredictedTime(@javax.annotation.Nullable Long predictedTime) { + this.predictedTime = predictedTime; + } + + public MatchSimple actualTime(@javax.annotation.Nullable Long actualTime) { + + this.actualTime = actualTime; + return this; + } + + /** + * UNIX timestamp (seconds since 1-Jan-1970 00:00:00) of actual match start time. + * @return actualTime + */ + @javax.annotation.Nullable + + public Long getActualTime() { + return actualTime; + } + + + public void setActualTime(@javax.annotation.Nullable Long actualTime) { + this.actualTime = actualTime; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchSimple matchSimple = (MatchSimple) o; + return Objects.equals(this.key, matchSimple.key) && + Objects.equals(this.compLevel, matchSimple.compLevel) && + Objects.equals(this.setNumber, matchSimple.setNumber) && + Objects.equals(this.matchNumber, matchSimple.matchNumber) && + Objects.equals(this.alliances, matchSimple.alliances) && + Objects.equals(this.winningAlliance, matchSimple.winningAlliance) && + Objects.equals(this.eventKey, matchSimple.eventKey) && + Objects.equals(this.time, matchSimple.time) && + Objects.equals(this.predictedTime, matchSimple.predictedTime) && + Objects.equals(this.actualTime, matchSimple.actualTime); + } + + @Override + public int hashCode() { + return Objects.hash(key, compLevel, setNumber, matchNumber, alliances, winningAlliance, eventKey, time, predictedTime, actualTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchSimple {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" compLevel: ").append(toIndentedString(compLevel)).append("\n"); + sb.append(" setNumber: ").append(toIndentedString(setNumber)).append("\n"); + sb.append(" matchNumber: ").append(toIndentedString(matchNumber)).append("\n"); + sb.append(" alliances: ").append(toIndentedString(alliances)).append("\n"); + sb.append(" winningAlliance: ").append(toIndentedString(winningAlliance)).append("\n"); + sb.append(" eventKey: ").append(toIndentedString(eventKey)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" predictedTime: ").append(toIndentedString(predictedTime)).append("\n"); + sb.append(" actualTime: ").append(toIndentedString(actualTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchSimpleAlliances.java b/tba-api/src/main/java/thebluealliance/api/model/MatchSimpleAlliances.java new file mode 100644 index 000000000..5afbff640 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchSimpleAlliances.java @@ -0,0 +1,126 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import thebluealliance.api.model.MatchAlliance; + +/** + * A list of alliances, the teams on the alliances, and their score. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchSimpleAlliances { + public static final String SERIALIZED_NAME_RED = "red"; + @SerializedName(SERIALIZED_NAME_RED) + @javax.annotation.Nonnull + private MatchAlliance red; + + public static final String SERIALIZED_NAME_BLUE = "blue"; + @SerializedName(SERIALIZED_NAME_BLUE) + @javax.annotation.Nonnull + private MatchAlliance blue; + + public MatchSimpleAlliances() { + } + + public MatchSimpleAlliances red(@javax.annotation.Nonnull MatchAlliance red) { + + this.red = red; + return this; + } + + /** + * Get red + * @return red + */ + @javax.annotation.Nonnull + + public MatchAlliance getRed() { + return red; + } + + + public void setRed(@javax.annotation.Nonnull MatchAlliance red) { + this.red = red; + } + + public MatchSimpleAlliances blue(@javax.annotation.Nonnull MatchAlliance blue) { + + this.blue = blue; + return this; + } + + /** + * Get blue + * @return blue + */ + @javax.annotation.Nonnull + + public MatchAlliance getBlue() { + return blue; + } + + + public void setBlue(@javax.annotation.Nonnull MatchAlliance blue) { + this.blue = blue; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchSimpleAlliances matchSimpleAlliances = (MatchSimpleAlliances) o; + return Objects.equals(this.red, matchSimpleAlliances.red) && + Objects.equals(this.blue, matchSimpleAlliances.blue); + } + + @Override + public int hashCode() { + return Objects.hash(red, blue); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchSimpleAlliances {\n"); + sb.append(" red: ").append(toIndentedString(red)).append("\n"); + sb.append(" blue: ").append(toIndentedString(blue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchTimeseries2018.java b/tba-api/src/main/java/thebluealliance/api/model/MatchTimeseries2018.java new file mode 100644 index 000000000..c7f9ce3d4 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchTimeseries2018.java @@ -0,0 +1,937 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * Timeseries data for the 2018 game *FIRST* POWER UP. *WARNING:* This is *not* official data, and is subject to a significant possibility of error, or missing data. Do not rely on this data for any purpose. In fact, pretend we made it up. *WARNING:* This model is currently under active development and may change at any time, including in breaking ways. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchTimeseries2018 { + public static final String SERIALIZED_NAME_EVENT_KEY = "event_key"; + @SerializedName(SERIALIZED_NAME_EVENT_KEY) + @javax.annotation.Nullable + private String eventKey; + + public static final String SERIALIZED_NAME_MATCH_ID = "match_id"; + @SerializedName(SERIALIZED_NAME_MATCH_ID) + @javax.annotation.Nullable + private String matchId; + + public static final String SERIALIZED_NAME_MODE = "mode"; + @SerializedName(SERIALIZED_NAME_MODE) + @javax.annotation.Nullable + private String mode; + + public static final String SERIALIZED_NAME_PLAY = "play"; + @SerializedName(SERIALIZED_NAME_PLAY) + @javax.annotation.Nullable + private Integer play; + + public static final String SERIALIZED_NAME_TIME_REMAINING = "time_remaining"; + @SerializedName(SERIALIZED_NAME_TIME_REMAINING) + @javax.annotation.Nullable + private Integer timeRemaining; + + public static final String SERIALIZED_NAME_BLUE_AUTO_QUEST = "blue_auto_quest"; + @SerializedName(SERIALIZED_NAME_BLUE_AUTO_QUEST) + @javax.annotation.Nullable + private Integer blueAutoQuest; + + public static final String SERIALIZED_NAME_BLUE_BOOST_COUNT = "blue_boost_count"; + @SerializedName(SERIALIZED_NAME_BLUE_BOOST_COUNT) + @javax.annotation.Nullable + private Integer blueBoostCount; + + public static final String SERIALIZED_NAME_BLUE_BOOST_PLAYED = "blue_boost_played"; + @SerializedName(SERIALIZED_NAME_BLUE_BOOST_PLAYED) + @javax.annotation.Nullable + private Integer blueBoostPlayed; + + public static final String SERIALIZED_NAME_BLUE_CURRENT_POWERUP = "blue_current_powerup"; + @SerializedName(SERIALIZED_NAME_BLUE_CURRENT_POWERUP) + @javax.annotation.Nullable + private String blueCurrentPowerup; + + public static final String SERIALIZED_NAME_BLUE_FACE_THE_BOSS = "blue_face_the_boss"; + @SerializedName(SERIALIZED_NAME_BLUE_FACE_THE_BOSS) + @javax.annotation.Nullable + private Integer blueFaceTheBoss; + + public static final String SERIALIZED_NAME_BLUE_FORCE_COUNT = "blue_force_count"; + @SerializedName(SERIALIZED_NAME_BLUE_FORCE_COUNT) + @javax.annotation.Nullable + private Integer blueForceCount; + + public static final String SERIALIZED_NAME_BLUE_FORCE_PLAYED = "blue_force_played"; + @SerializedName(SERIALIZED_NAME_BLUE_FORCE_PLAYED) + @javax.annotation.Nullable + private Integer blueForcePlayed; + + public static final String SERIALIZED_NAME_BLUE_LEVITATE_COUNT = "blue_levitate_count"; + @SerializedName(SERIALIZED_NAME_BLUE_LEVITATE_COUNT) + @javax.annotation.Nullable + private Integer blueLevitateCount; + + public static final String SERIALIZED_NAME_BLUE_LEVITATE_PLAYED = "blue_levitate_played"; + @SerializedName(SERIALIZED_NAME_BLUE_LEVITATE_PLAYED) + @javax.annotation.Nullable + private Integer blueLevitatePlayed; + + public static final String SERIALIZED_NAME_BLUE_POWERUP_TIME_REMAINING = "blue_powerup_time_remaining"; + @SerializedName(SERIALIZED_NAME_BLUE_POWERUP_TIME_REMAINING) + @javax.annotation.Nullable + private String bluePowerupTimeRemaining; + + public static final String SERIALIZED_NAME_BLUE_SCALE_OWNED = "blue_scale_owned"; + @SerializedName(SERIALIZED_NAME_BLUE_SCALE_OWNED) + @javax.annotation.Nullable + private Integer blueScaleOwned; + + public static final String SERIALIZED_NAME_BLUE_SCORE = "blue_score"; + @SerializedName(SERIALIZED_NAME_BLUE_SCORE) + @javax.annotation.Nullable + private Integer blueScore; + + public static final String SERIALIZED_NAME_BLUE_SWITCH_OWNED = "blue_switch_owned"; + @SerializedName(SERIALIZED_NAME_BLUE_SWITCH_OWNED) + @javax.annotation.Nullable + private Integer blueSwitchOwned; + + public static final String SERIALIZED_NAME_RED_AUTO_QUEST = "red_auto_quest"; + @SerializedName(SERIALIZED_NAME_RED_AUTO_QUEST) + @javax.annotation.Nullable + private Integer redAutoQuest; + + public static final String SERIALIZED_NAME_RED_BOOST_COUNT = "red_boost_count"; + @SerializedName(SERIALIZED_NAME_RED_BOOST_COUNT) + @javax.annotation.Nullable + private Integer redBoostCount; + + public static final String SERIALIZED_NAME_RED_BOOST_PLAYED = "red_boost_played"; + @SerializedName(SERIALIZED_NAME_RED_BOOST_PLAYED) + @javax.annotation.Nullable + private Integer redBoostPlayed; + + public static final String SERIALIZED_NAME_RED_CURRENT_POWERUP = "red_current_powerup"; + @SerializedName(SERIALIZED_NAME_RED_CURRENT_POWERUP) + @javax.annotation.Nullable + private String redCurrentPowerup; + + public static final String SERIALIZED_NAME_RED_FACE_THE_BOSS = "red_face_the_boss"; + @SerializedName(SERIALIZED_NAME_RED_FACE_THE_BOSS) + @javax.annotation.Nullable + private Integer redFaceTheBoss; + + public static final String SERIALIZED_NAME_RED_FORCE_COUNT = "red_force_count"; + @SerializedName(SERIALIZED_NAME_RED_FORCE_COUNT) + @javax.annotation.Nullable + private Integer redForceCount; + + public static final String SERIALIZED_NAME_RED_FORCE_PLAYED = "red_force_played"; + @SerializedName(SERIALIZED_NAME_RED_FORCE_PLAYED) + @javax.annotation.Nullable + private Integer redForcePlayed; + + public static final String SERIALIZED_NAME_RED_LEVITATE_COUNT = "red_levitate_count"; + @SerializedName(SERIALIZED_NAME_RED_LEVITATE_COUNT) + @javax.annotation.Nullable + private Integer redLevitateCount; + + public static final String SERIALIZED_NAME_RED_LEVITATE_PLAYED = "red_levitate_played"; + @SerializedName(SERIALIZED_NAME_RED_LEVITATE_PLAYED) + @javax.annotation.Nullable + private Integer redLevitatePlayed; + + public static final String SERIALIZED_NAME_RED_POWERUP_TIME_REMAINING = "red_powerup_time_remaining"; + @SerializedName(SERIALIZED_NAME_RED_POWERUP_TIME_REMAINING) + @javax.annotation.Nullable + private String redPowerupTimeRemaining; + + public static final String SERIALIZED_NAME_RED_SCALE_OWNED = "red_scale_owned"; + @SerializedName(SERIALIZED_NAME_RED_SCALE_OWNED) + @javax.annotation.Nullable + private Integer redScaleOwned; + + public static final String SERIALIZED_NAME_RED_SCORE = "red_score"; + @SerializedName(SERIALIZED_NAME_RED_SCORE) + @javax.annotation.Nullable + private Integer redScore; + + public static final String SERIALIZED_NAME_RED_SWITCH_OWNED = "red_switch_owned"; + @SerializedName(SERIALIZED_NAME_RED_SWITCH_OWNED) + @javax.annotation.Nullable + private Integer redSwitchOwned; + + public MatchTimeseries2018() { + } + + public MatchTimeseries2018 eventKey(@javax.annotation.Nullable String eventKey) { + + this.eventKey = eventKey; + return this; + } + + /** + * TBA event key with the format yyyy[EVENT_CODE], where yyyy is the year, and EVENT_CODE is the event code of the event. + * @return eventKey + */ + @javax.annotation.Nullable + + public String getEventKey() { + return eventKey; + } + + + public void setEventKey(@javax.annotation.Nullable String eventKey) { + this.eventKey = eventKey; + } + + public MatchTimeseries2018 matchId(@javax.annotation.Nullable String matchId) { + + this.matchId = matchId; + return this; + } + + /** + * Match ID consisting of the level, match number, and set number, eg `qm45` or `f1m1`. + * @return matchId + */ + @javax.annotation.Nullable + + public String getMatchId() { + return matchId; + } + + + public void setMatchId(@javax.annotation.Nullable String matchId) { + this.matchId = matchId; + } + + public MatchTimeseries2018 mode(@javax.annotation.Nullable String mode) { + + this.mode = mode; + return this; + } + + /** + * Current mode of play, can be `pre_match`, `auto`, `telop`, or `post_match`. + * @return mode + */ + @javax.annotation.Nullable + + public String getMode() { + return mode; + } + + + public void setMode(@javax.annotation.Nullable String mode) { + this.mode = mode; + } + + public MatchTimeseries2018 play(@javax.annotation.Nullable Integer play) { + + this.play = play; + return this; + } + + /** + * Get play + * @return play + */ + @javax.annotation.Nullable + + public Integer getPlay() { + return play; + } + + + public void setPlay(@javax.annotation.Nullable Integer play) { + this.play = play; + } + + public MatchTimeseries2018 timeRemaining(@javax.annotation.Nullable Integer timeRemaining) { + + this.timeRemaining = timeRemaining; + return this; + } + + /** + * Amount of time remaining in the match, only valid during `auto` and `teleop` modes. + * @return timeRemaining + */ + @javax.annotation.Nullable + + public Integer getTimeRemaining() { + return timeRemaining; + } + + + public void setTimeRemaining(@javax.annotation.Nullable Integer timeRemaining) { + this.timeRemaining = timeRemaining; + } + + public MatchTimeseries2018 blueAutoQuest(@javax.annotation.Nullable Integer blueAutoQuest) { + + this.blueAutoQuest = blueAutoQuest; + return this; + } + + /** + * 1 if the blue alliance is credited with the AUTO QUEST, 0 if not. + * @return blueAutoQuest + */ + @javax.annotation.Nullable + + public Integer getBlueAutoQuest() { + return blueAutoQuest; + } + + + public void setBlueAutoQuest(@javax.annotation.Nullable Integer blueAutoQuest) { + this.blueAutoQuest = blueAutoQuest; + } + + public MatchTimeseries2018 blueBoostCount(@javax.annotation.Nullable Integer blueBoostCount) { + + this.blueBoostCount = blueBoostCount; + return this; + } + + /** + * Number of POWER CUBES in the BOOST section of the blue alliance VAULT. + * @return blueBoostCount + */ + @javax.annotation.Nullable + + public Integer getBlueBoostCount() { + return blueBoostCount; + } + + + public void setBlueBoostCount(@javax.annotation.Nullable Integer blueBoostCount) { + this.blueBoostCount = blueBoostCount; + } + + public MatchTimeseries2018 blueBoostPlayed(@javax.annotation.Nullable Integer blueBoostPlayed) { + + this.blueBoostPlayed = blueBoostPlayed; + return this; + } + + /** + * Returns 1 if the blue alliance BOOST was played, or 0 if not played. + * @return blueBoostPlayed + */ + @javax.annotation.Nullable + + public Integer getBlueBoostPlayed() { + return blueBoostPlayed; + } + + + public void setBlueBoostPlayed(@javax.annotation.Nullable Integer blueBoostPlayed) { + this.blueBoostPlayed = blueBoostPlayed; + } + + public MatchTimeseries2018 blueCurrentPowerup(@javax.annotation.Nullable String blueCurrentPowerup) { + + this.blueCurrentPowerup = blueCurrentPowerup; + return this; + } + + /** + * Name of the current blue alliance POWER UP being played, or `null`. + * @return blueCurrentPowerup + */ + @javax.annotation.Nullable + + public String getBlueCurrentPowerup() { + return blueCurrentPowerup; + } + + + public void setBlueCurrentPowerup(@javax.annotation.Nullable String blueCurrentPowerup) { + this.blueCurrentPowerup = blueCurrentPowerup; + } + + public MatchTimeseries2018 blueFaceTheBoss(@javax.annotation.Nullable Integer blueFaceTheBoss) { + + this.blueFaceTheBoss = blueFaceTheBoss; + return this; + } + + /** + * 1 if the blue alliance is credited with FACING THE BOSS, 0 if not. + * @return blueFaceTheBoss + */ + @javax.annotation.Nullable + + public Integer getBlueFaceTheBoss() { + return blueFaceTheBoss; + } + + + public void setBlueFaceTheBoss(@javax.annotation.Nullable Integer blueFaceTheBoss) { + this.blueFaceTheBoss = blueFaceTheBoss; + } + + public MatchTimeseries2018 blueForceCount(@javax.annotation.Nullable Integer blueForceCount) { + + this.blueForceCount = blueForceCount; + return this; + } + + /** + * Number of POWER CUBES in the FORCE section of the blue alliance VAULT. + * @return blueForceCount + */ + @javax.annotation.Nullable + + public Integer getBlueForceCount() { + return blueForceCount; + } + + + public void setBlueForceCount(@javax.annotation.Nullable Integer blueForceCount) { + this.blueForceCount = blueForceCount; + } + + public MatchTimeseries2018 blueForcePlayed(@javax.annotation.Nullable Integer blueForcePlayed) { + + this.blueForcePlayed = blueForcePlayed; + return this; + } + + /** + * Returns 1 if the blue alliance FORCE was played, or 0 if not played. + * @return blueForcePlayed + */ + @javax.annotation.Nullable + + public Integer getBlueForcePlayed() { + return blueForcePlayed; + } + + + public void setBlueForcePlayed(@javax.annotation.Nullable Integer blueForcePlayed) { + this.blueForcePlayed = blueForcePlayed; + } + + public MatchTimeseries2018 blueLevitateCount(@javax.annotation.Nullable Integer blueLevitateCount) { + + this.blueLevitateCount = blueLevitateCount; + return this; + } + + /** + * Number of POWER CUBES in the LEVITATE section of the blue alliance VAULT. + * @return blueLevitateCount + */ + @javax.annotation.Nullable + + public Integer getBlueLevitateCount() { + return blueLevitateCount; + } + + + public void setBlueLevitateCount(@javax.annotation.Nullable Integer blueLevitateCount) { + this.blueLevitateCount = blueLevitateCount; + } + + public MatchTimeseries2018 blueLevitatePlayed(@javax.annotation.Nullable Integer blueLevitatePlayed) { + + this.blueLevitatePlayed = blueLevitatePlayed; + return this; + } + + /** + * Returns 1 if the blue alliance LEVITATE was played, or 0 if not played. + * @return blueLevitatePlayed + */ + @javax.annotation.Nullable + + public Integer getBlueLevitatePlayed() { + return blueLevitatePlayed; + } + + + public void setBlueLevitatePlayed(@javax.annotation.Nullable Integer blueLevitatePlayed) { + this.blueLevitatePlayed = blueLevitatePlayed; + } + + public MatchTimeseries2018 bluePowerupTimeRemaining(@javax.annotation.Nullable String bluePowerupTimeRemaining) { + + this.bluePowerupTimeRemaining = bluePowerupTimeRemaining; + return this; + } + + /** + * Number of seconds remaining in the blue alliance POWER UP time, or 0 if none is active. + * @return bluePowerupTimeRemaining + */ + @javax.annotation.Nullable + + public String getBluePowerupTimeRemaining() { + return bluePowerupTimeRemaining; + } + + + public void setBluePowerupTimeRemaining(@javax.annotation.Nullable String bluePowerupTimeRemaining) { + this.bluePowerupTimeRemaining = bluePowerupTimeRemaining; + } + + public MatchTimeseries2018 blueScaleOwned(@javax.annotation.Nullable Integer blueScaleOwned) { + + this.blueScaleOwned = blueScaleOwned; + return this; + } + + /** + * 1 if the blue alliance owns the SCALE, 0 if not. + * @return blueScaleOwned + */ + @javax.annotation.Nullable + + public Integer getBlueScaleOwned() { + return blueScaleOwned; + } + + + public void setBlueScaleOwned(@javax.annotation.Nullable Integer blueScaleOwned) { + this.blueScaleOwned = blueScaleOwned; + } + + public MatchTimeseries2018 blueScore(@javax.annotation.Nullable Integer blueScore) { + + this.blueScore = blueScore; + return this; + } + + /** + * Current score for the blue alliance. + * @return blueScore + */ + @javax.annotation.Nullable + + public Integer getBlueScore() { + return blueScore; + } + + + public void setBlueScore(@javax.annotation.Nullable Integer blueScore) { + this.blueScore = blueScore; + } + + public MatchTimeseries2018 blueSwitchOwned(@javax.annotation.Nullable Integer blueSwitchOwned) { + + this.blueSwitchOwned = blueSwitchOwned; + return this; + } + + /** + * 1 if the blue alliance owns their SWITCH, 0 if not. + * @return blueSwitchOwned + */ + @javax.annotation.Nullable + + public Integer getBlueSwitchOwned() { + return blueSwitchOwned; + } + + + public void setBlueSwitchOwned(@javax.annotation.Nullable Integer blueSwitchOwned) { + this.blueSwitchOwned = blueSwitchOwned; + } + + public MatchTimeseries2018 redAutoQuest(@javax.annotation.Nullable Integer redAutoQuest) { + + this.redAutoQuest = redAutoQuest; + return this; + } + + /** + * 1 if the red alliance is credited with the AUTO QUEST, 0 if not. + * @return redAutoQuest + */ + @javax.annotation.Nullable + + public Integer getRedAutoQuest() { + return redAutoQuest; + } + + + public void setRedAutoQuest(@javax.annotation.Nullable Integer redAutoQuest) { + this.redAutoQuest = redAutoQuest; + } + + public MatchTimeseries2018 redBoostCount(@javax.annotation.Nullable Integer redBoostCount) { + + this.redBoostCount = redBoostCount; + return this; + } + + /** + * Number of POWER CUBES in the BOOST section of the red alliance VAULT. + * @return redBoostCount + */ + @javax.annotation.Nullable + + public Integer getRedBoostCount() { + return redBoostCount; + } + + + public void setRedBoostCount(@javax.annotation.Nullable Integer redBoostCount) { + this.redBoostCount = redBoostCount; + } + + public MatchTimeseries2018 redBoostPlayed(@javax.annotation.Nullable Integer redBoostPlayed) { + + this.redBoostPlayed = redBoostPlayed; + return this; + } + + /** + * Returns 1 if the red alliance BOOST was played, or 0 if not played. + * @return redBoostPlayed + */ + @javax.annotation.Nullable + + public Integer getRedBoostPlayed() { + return redBoostPlayed; + } + + + public void setRedBoostPlayed(@javax.annotation.Nullable Integer redBoostPlayed) { + this.redBoostPlayed = redBoostPlayed; + } + + public MatchTimeseries2018 redCurrentPowerup(@javax.annotation.Nullable String redCurrentPowerup) { + + this.redCurrentPowerup = redCurrentPowerup; + return this; + } + + /** + * Name of the current red alliance POWER UP being played, or `null`. + * @return redCurrentPowerup + */ + @javax.annotation.Nullable + + public String getRedCurrentPowerup() { + return redCurrentPowerup; + } + + + public void setRedCurrentPowerup(@javax.annotation.Nullable String redCurrentPowerup) { + this.redCurrentPowerup = redCurrentPowerup; + } + + public MatchTimeseries2018 redFaceTheBoss(@javax.annotation.Nullable Integer redFaceTheBoss) { + + this.redFaceTheBoss = redFaceTheBoss; + return this; + } + + /** + * 1 if the red alliance is credited with FACING THE BOSS, 0 if not. + * @return redFaceTheBoss + */ + @javax.annotation.Nullable + + public Integer getRedFaceTheBoss() { + return redFaceTheBoss; + } + + + public void setRedFaceTheBoss(@javax.annotation.Nullable Integer redFaceTheBoss) { + this.redFaceTheBoss = redFaceTheBoss; + } + + public MatchTimeseries2018 redForceCount(@javax.annotation.Nullable Integer redForceCount) { + + this.redForceCount = redForceCount; + return this; + } + + /** + * Number of POWER CUBES in the FORCE section of the red alliance VAULT. + * @return redForceCount + */ + @javax.annotation.Nullable + + public Integer getRedForceCount() { + return redForceCount; + } + + + public void setRedForceCount(@javax.annotation.Nullable Integer redForceCount) { + this.redForceCount = redForceCount; + } + + public MatchTimeseries2018 redForcePlayed(@javax.annotation.Nullable Integer redForcePlayed) { + + this.redForcePlayed = redForcePlayed; + return this; + } + + /** + * Returns 1 if the red alliance FORCE was played, or 0 if not played. + * @return redForcePlayed + */ + @javax.annotation.Nullable + + public Integer getRedForcePlayed() { + return redForcePlayed; + } + + + public void setRedForcePlayed(@javax.annotation.Nullable Integer redForcePlayed) { + this.redForcePlayed = redForcePlayed; + } + + public MatchTimeseries2018 redLevitateCount(@javax.annotation.Nullable Integer redLevitateCount) { + + this.redLevitateCount = redLevitateCount; + return this; + } + + /** + * Number of POWER CUBES in the LEVITATE section of the red alliance VAULT. + * @return redLevitateCount + */ + @javax.annotation.Nullable + + public Integer getRedLevitateCount() { + return redLevitateCount; + } + + + public void setRedLevitateCount(@javax.annotation.Nullable Integer redLevitateCount) { + this.redLevitateCount = redLevitateCount; + } + + public MatchTimeseries2018 redLevitatePlayed(@javax.annotation.Nullable Integer redLevitatePlayed) { + + this.redLevitatePlayed = redLevitatePlayed; + return this; + } + + /** + * Returns 1 if the red alliance LEVITATE was played, or 0 if not played. + * @return redLevitatePlayed + */ + @javax.annotation.Nullable + + public Integer getRedLevitatePlayed() { + return redLevitatePlayed; + } + + + public void setRedLevitatePlayed(@javax.annotation.Nullable Integer redLevitatePlayed) { + this.redLevitatePlayed = redLevitatePlayed; + } + + public MatchTimeseries2018 redPowerupTimeRemaining(@javax.annotation.Nullable String redPowerupTimeRemaining) { + + this.redPowerupTimeRemaining = redPowerupTimeRemaining; + return this; + } + + /** + * Number of seconds remaining in the red alliance POWER UP time, or 0 if none is active. + * @return redPowerupTimeRemaining + */ + @javax.annotation.Nullable + + public String getRedPowerupTimeRemaining() { + return redPowerupTimeRemaining; + } + + + public void setRedPowerupTimeRemaining(@javax.annotation.Nullable String redPowerupTimeRemaining) { + this.redPowerupTimeRemaining = redPowerupTimeRemaining; + } + + public MatchTimeseries2018 redScaleOwned(@javax.annotation.Nullable Integer redScaleOwned) { + + this.redScaleOwned = redScaleOwned; + return this; + } + + /** + * 1 if the red alliance owns the SCALE, 0 if not. + * @return redScaleOwned + */ + @javax.annotation.Nullable + + public Integer getRedScaleOwned() { + return redScaleOwned; + } + + + public void setRedScaleOwned(@javax.annotation.Nullable Integer redScaleOwned) { + this.redScaleOwned = redScaleOwned; + } + + public MatchTimeseries2018 redScore(@javax.annotation.Nullable Integer redScore) { + + this.redScore = redScore; + return this; + } + + /** + * Current score for the red alliance. + * @return redScore + */ + @javax.annotation.Nullable + + public Integer getRedScore() { + return redScore; + } + + + public void setRedScore(@javax.annotation.Nullable Integer redScore) { + this.redScore = redScore; + } + + public MatchTimeseries2018 redSwitchOwned(@javax.annotation.Nullable Integer redSwitchOwned) { + + this.redSwitchOwned = redSwitchOwned; + return this; + } + + /** + * 1 if the red alliance owns their SWITCH, 0 if not. + * @return redSwitchOwned + */ + @javax.annotation.Nullable + + public Integer getRedSwitchOwned() { + return redSwitchOwned; + } + + + public void setRedSwitchOwned(@javax.annotation.Nullable Integer redSwitchOwned) { + this.redSwitchOwned = redSwitchOwned; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchTimeseries2018 matchTimeseries2018 = (MatchTimeseries2018) o; + return Objects.equals(this.eventKey, matchTimeseries2018.eventKey) && + Objects.equals(this.matchId, matchTimeseries2018.matchId) && + Objects.equals(this.mode, matchTimeseries2018.mode) && + Objects.equals(this.play, matchTimeseries2018.play) && + Objects.equals(this.timeRemaining, matchTimeseries2018.timeRemaining) && + Objects.equals(this.blueAutoQuest, matchTimeseries2018.blueAutoQuest) && + Objects.equals(this.blueBoostCount, matchTimeseries2018.blueBoostCount) && + Objects.equals(this.blueBoostPlayed, matchTimeseries2018.blueBoostPlayed) && + Objects.equals(this.blueCurrentPowerup, matchTimeseries2018.blueCurrentPowerup) && + Objects.equals(this.blueFaceTheBoss, matchTimeseries2018.blueFaceTheBoss) && + Objects.equals(this.blueForceCount, matchTimeseries2018.blueForceCount) && + Objects.equals(this.blueForcePlayed, matchTimeseries2018.blueForcePlayed) && + Objects.equals(this.blueLevitateCount, matchTimeseries2018.blueLevitateCount) && + Objects.equals(this.blueLevitatePlayed, matchTimeseries2018.blueLevitatePlayed) && + Objects.equals(this.bluePowerupTimeRemaining, matchTimeseries2018.bluePowerupTimeRemaining) && + Objects.equals(this.blueScaleOwned, matchTimeseries2018.blueScaleOwned) && + Objects.equals(this.blueScore, matchTimeseries2018.blueScore) && + Objects.equals(this.blueSwitchOwned, matchTimeseries2018.blueSwitchOwned) && + Objects.equals(this.redAutoQuest, matchTimeseries2018.redAutoQuest) && + Objects.equals(this.redBoostCount, matchTimeseries2018.redBoostCount) && + Objects.equals(this.redBoostPlayed, matchTimeseries2018.redBoostPlayed) && + Objects.equals(this.redCurrentPowerup, matchTimeseries2018.redCurrentPowerup) && + Objects.equals(this.redFaceTheBoss, matchTimeseries2018.redFaceTheBoss) && + Objects.equals(this.redForceCount, matchTimeseries2018.redForceCount) && + Objects.equals(this.redForcePlayed, matchTimeseries2018.redForcePlayed) && + Objects.equals(this.redLevitateCount, matchTimeseries2018.redLevitateCount) && + Objects.equals(this.redLevitatePlayed, matchTimeseries2018.redLevitatePlayed) && + Objects.equals(this.redPowerupTimeRemaining, matchTimeseries2018.redPowerupTimeRemaining) && + Objects.equals(this.redScaleOwned, matchTimeseries2018.redScaleOwned) && + Objects.equals(this.redScore, matchTimeseries2018.redScore) && + Objects.equals(this.redSwitchOwned, matchTimeseries2018.redSwitchOwned); + } + + @Override + public int hashCode() { + return Objects.hash(eventKey, matchId, mode, play, timeRemaining, blueAutoQuest, blueBoostCount, blueBoostPlayed, blueCurrentPowerup, blueFaceTheBoss, blueForceCount, blueForcePlayed, blueLevitateCount, blueLevitatePlayed, bluePowerupTimeRemaining, blueScaleOwned, blueScore, blueSwitchOwned, redAutoQuest, redBoostCount, redBoostPlayed, redCurrentPowerup, redFaceTheBoss, redForceCount, redForcePlayed, redLevitateCount, redLevitatePlayed, redPowerupTimeRemaining, redScaleOwned, redScore, redSwitchOwned); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchTimeseries2018 {\n"); + sb.append(" eventKey: ").append(toIndentedString(eventKey)).append("\n"); + sb.append(" matchId: ").append(toIndentedString(matchId)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" play: ").append(toIndentedString(play)).append("\n"); + sb.append(" timeRemaining: ").append(toIndentedString(timeRemaining)).append("\n"); + sb.append(" blueAutoQuest: ").append(toIndentedString(blueAutoQuest)).append("\n"); + sb.append(" blueBoostCount: ").append(toIndentedString(blueBoostCount)).append("\n"); + sb.append(" blueBoostPlayed: ").append(toIndentedString(blueBoostPlayed)).append("\n"); + sb.append(" blueCurrentPowerup: ").append(toIndentedString(blueCurrentPowerup)).append("\n"); + sb.append(" blueFaceTheBoss: ").append(toIndentedString(blueFaceTheBoss)).append("\n"); + sb.append(" blueForceCount: ").append(toIndentedString(blueForceCount)).append("\n"); + sb.append(" blueForcePlayed: ").append(toIndentedString(blueForcePlayed)).append("\n"); + sb.append(" blueLevitateCount: ").append(toIndentedString(blueLevitateCount)).append("\n"); + sb.append(" blueLevitatePlayed: ").append(toIndentedString(blueLevitatePlayed)).append("\n"); + sb.append(" bluePowerupTimeRemaining: ").append(toIndentedString(bluePowerupTimeRemaining)).append("\n"); + sb.append(" blueScaleOwned: ").append(toIndentedString(blueScaleOwned)).append("\n"); + sb.append(" blueScore: ").append(toIndentedString(blueScore)).append("\n"); + sb.append(" blueSwitchOwned: ").append(toIndentedString(blueSwitchOwned)).append("\n"); + sb.append(" redAutoQuest: ").append(toIndentedString(redAutoQuest)).append("\n"); + sb.append(" redBoostCount: ").append(toIndentedString(redBoostCount)).append("\n"); + sb.append(" redBoostPlayed: ").append(toIndentedString(redBoostPlayed)).append("\n"); + sb.append(" redCurrentPowerup: ").append(toIndentedString(redCurrentPowerup)).append("\n"); + sb.append(" redFaceTheBoss: ").append(toIndentedString(redFaceTheBoss)).append("\n"); + sb.append(" redForceCount: ").append(toIndentedString(redForceCount)).append("\n"); + sb.append(" redForcePlayed: ").append(toIndentedString(redForcePlayed)).append("\n"); + sb.append(" redLevitateCount: ").append(toIndentedString(redLevitateCount)).append("\n"); + sb.append(" redLevitatePlayed: ").append(toIndentedString(redLevitatePlayed)).append("\n"); + sb.append(" redPowerupTimeRemaining: ").append(toIndentedString(redPowerupTimeRemaining)).append("\n"); + sb.append(" redScaleOwned: ").append(toIndentedString(redScaleOwned)).append("\n"); + sb.append(" redScore: ").append(toIndentedString(redScore)).append("\n"); + sb.append(" redSwitchOwned: ").append(toIndentedString(redSwitchOwned)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/MatchVideosInner.java b/tba-api/src/main/java/thebluealliance/api/model/MatchVideosInner.java new file mode 100644 index 000000000..fdbfe4440 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/MatchVideosInner.java @@ -0,0 +1,125 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * MatchVideosInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class MatchVideosInner { + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nonnull + private String type; + + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @javax.annotation.Nonnull + private String key; + + public MatchVideosInner() { + } + + public MatchVideosInner type(@javax.annotation.Nonnull String type) { + + this.type = type; + return this; + } + + /** + * Can be one of 'youtube' or 'tba' + * @return type + */ + @javax.annotation.Nonnull + + public String getType() { + return type; + } + + + public void setType(@javax.annotation.Nonnull String type) { + this.type = type; + } + + public MatchVideosInner key(@javax.annotation.Nonnull String key) { + + this.key = key; + return this; + } + + /** + * Unique key representing this video + * @return key + */ + @javax.annotation.Nonnull + + public String getKey() { + return key; + } + + + public void setKey(@javax.annotation.Nonnull String key) { + this.key = key; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MatchVideosInner matchVideosInner = (MatchVideosInner) o; + return Objects.equals(this.type, matchVideosInner.type) && + Objects.equals(this.key, matchVideosInner.key); + } + + @Override + public int hashCode() { + return Objects.hash(type, key); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MatchVideosInner {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/Media.java b/tba-api/src/main/java/thebluealliance/api/model/Media.java new file mode 100644 index 000000000..70c13d3f7 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/Media.java @@ -0,0 +1,357 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * The `Media` object contains a reference for most any media associated with a team or event on TBA. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class Media { + /** + * String type of the media element. + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + YOUTUBE(String.valueOf("youtube")), + + CDPHOTOTHREAD(String.valueOf("cdphotothread")), + + IMGUR(String.valueOf("imgur")), + + FACEBOOK_PROFILE(String.valueOf("facebook-profile")), + + YOUTUBE_CHANNEL(String.valueOf("youtube-channel")), + + TWITTER_PROFILE(String.valueOf("twitter-profile")), + + GITHUB_PROFILE(String.valueOf("github-profile")), + + INSTAGRAM_PROFILE(String.valueOf("instagram-profile")), + + PERISCOPE_PROFILE(String.valueOf("periscope-profile")), + + GITLAB_PROFILE(String.valueOf("gitlab-profile")), + + GRABCAD(String.valueOf("grabcad")), + + INSTAGRAM_IMAGE(String.valueOf("instagram-image")), + + EXTERNAL_LINK(String.valueOf("external-link")), + + AVATAR(String.valueOf("avatar")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nonnull + private TypeEnum type; + + public static final String SERIALIZED_NAME_FOREIGN_KEY = "foreign_key"; + @SerializedName(SERIALIZED_NAME_FOREIGN_KEY) + @javax.annotation.Nonnull + private String foreignKey; + + public static final String SERIALIZED_NAME_DETAILS = "details"; + @SerializedName(SERIALIZED_NAME_DETAILS) + @javax.annotation.Nullable + private Map details = new HashMap<>(); + + public static final String SERIALIZED_NAME_PREFERRED = "preferred"; + @SerializedName(SERIALIZED_NAME_PREFERRED) + @javax.annotation.Nullable + private Boolean preferred; + + public static final String SERIALIZED_NAME_TEAM_KEYS = "team_keys"; + @SerializedName(SERIALIZED_NAME_TEAM_KEYS) + @javax.annotation.Nonnull + private List teamKeys = new ArrayList<>(); + + public static final String SERIALIZED_NAME_DIRECT_URL = "direct_url"; + @SerializedName(SERIALIZED_NAME_DIRECT_URL) + @javax.annotation.Nullable + private String directUrl; + + public static final String SERIALIZED_NAME_VIEW_URL = "view_url"; + @SerializedName(SERIALIZED_NAME_VIEW_URL) + @javax.annotation.Nullable + private String viewUrl; + + public Media() { + } + + public Media type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * String type of the media element. + * @return type + */ + @javax.annotation.Nonnull + + public TypeEnum getType() { + return type; + } + + + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public Media foreignKey(@javax.annotation.Nonnull String foreignKey) { + + this.foreignKey = foreignKey; + return this; + } + + /** + * The key used to identify this media on the media site. + * @return foreignKey + */ + @javax.annotation.Nonnull + + public String getForeignKey() { + return foreignKey; + } + + + public void setForeignKey(@javax.annotation.Nonnull String foreignKey) { + this.foreignKey = foreignKey; + } + + public Media details(@javax.annotation.Nullable Map details) { + + this.details = details; + return this; + } + + public Media putDetailsItem(String key, Object detailsItem) { + if (this.details == null) { + this.details = new HashMap<>(); + } + this.details.put(key, detailsItem); + return this; + } + + /** + * If required, a JSON dict of additional media information. + * @return details + */ + @javax.annotation.Nullable + + public Map getDetails() { + return details; + } + + + public void setDetails(@javax.annotation.Nullable Map details) { + this.details = details; + } + + public Media preferred(@javax.annotation.Nullable Boolean preferred) { + + this.preferred = preferred; + return this; + } + + /** + * True if the media is of high quality. + * @return preferred + */ + @javax.annotation.Nullable + + public Boolean getPreferred() { + return preferred; + } + + + public void setPreferred(@javax.annotation.Nullable Boolean preferred) { + this.preferred = preferred; + } + + public Media teamKeys(@javax.annotation.Nonnull List teamKeys) { + + this.teamKeys = teamKeys; + return this; + } + + public Media addTeamKeysItem(String teamKeysItem) { + if (this.teamKeys == null) { + this.teamKeys = new ArrayList<>(); + } + this.teamKeys.add(teamKeysItem); + return this; + } + + /** + * List of teams that this media belongs to. Most likely length 1. + * @return teamKeys + */ + @javax.annotation.Nonnull + + public List getTeamKeys() { + return teamKeys; + } + + + public void setTeamKeys(@javax.annotation.Nonnull List teamKeys) { + this.teamKeys = teamKeys; + } + + public Media directUrl(@javax.annotation.Nullable String directUrl) { + + this.directUrl = directUrl; + return this; + } + + /** + * Direct URL to the media. + * @return directUrl + */ + @javax.annotation.Nullable + + public String getDirectUrl() { + return directUrl; + } + + + public void setDirectUrl(@javax.annotation.Nullable String directUrl) { + this.directUrl = directUrl; + } + + public Media viewUrl(@javax.annotation.Nullable String viewUrl) { + + this.viewUrl = viewUrl; + return this; + } + + /** + * The URL that leads to the full web page for the media, if one exists. + * @return viewUrl + */ + @javax.annotation.Nullable + + public String getViewUrl() { + return viewUrl; + } + + + public void setViewUrl(@javax.annotation.Nullable String viewUrl) { + this.viewUrl = viewUrl; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Media media = (Media) o; + return Objects.equals(this.type, media.type) && + Objects.equals(this.foreignKey, media.foreignKey) && + Objects.equals(this.details, media.details) && + Objects.equals(this.preferred, media.preferred) && + Objects.equals(this.teamKeys, media.teamKeys) && + Objects.equals(this.directUrl, media.directUrl) && + Objects.equals(this.viewUrl, media.viewUrl); + } + + @Override + public int hashCode() { + return Objects.hash(type, foreignKey, details, preferred, teamKeys, directUrl, viewUrl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Media {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" foreignKey: ").append(toIndentedString(foreignKey)).append("\n"); + sb.append(" details: ").append(toIndentedString(details)).append("\n"); + sb.append(" preferred: ").append(toIndentedString(preferred)).append("\n"); + sb.append(" teamKeys: ").append(toIndentedString(teamKeys)).append("\n"); + sb.append(" directUrl: ").append(toIndentedString(directUrl)).append("\n"); + sb.append(" viewUrl: ").append(toIndentedString(viewUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/NotablesInsight.java b/tba-api/src/main/java/thebluealliance/api/model/NotablesInsight.java new file mode 100644 index 000000000..9353151fb --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/NotablesInsight.java @@ -0,0 +1,154 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import thebluealliance.api.model.NotablesInsightData; + +/** + * NotablesInsight + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class NotablesInsight { + public static final String SERIALIZED_NAME_DATA = "data"; + @SerializedName(SERIALIZED_NAME_DATA) + @javax.annotation.Nonnull + private NotablesInsightData data; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_YEAR = "year"; + @SerializedName(SERIALIZED_NAME_YEAR) + @javax.annotation.Nonnull + private Integer year; + + public NotablesInsight() { + } + + public NotablesInsight data(@javax.annotation.Nonnull NotablesInsightData data) { + + this.data = data; + return this; + } + + /** + * Get data + * @return data + */ + @javax.annotation.Nonnull + + public NotablesInsightData getData() { + return data; + } + + + public void setData(@javax.annotation.Nonnull NotablesInsightData data) { + this.data = data; + } + + public NotablesInsight name(@javax.annotation.Nonnull String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + */ + @javax.annotation.Nonnull + + public String getName() { + return name; + } + + + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; + } + + public NotablesInsight year(@javax.annotation.Nonnull Integer year) { + + this.year = year; + return this; + } + + /** + * Get year + * @return year + */ + @javax.annotation.Nonnull + + public Integer getYear() { + return year; + } + + + public void setYear(@javax.annotation.Nonnull Integer year) { + this.year = year; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NotablesInsight notablesInsight = (NotablesInsight) o; + return Objects.equals(this.data, notablesInsight.data) && + Objects.equals(this.name, notablesInsight.name) && + Objects.equals(this.year, notablesInsight.year); + } + + @Override + public int hashCode() { + return Objects.hash(data, name, year); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NotablesInsight {\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" year: ").append(toIndentedString(year)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/NotablesInsightData.java b/tba-api/src/main/java/thebluealliance/api/model/NotablesInsightData.java new file mode 100644 index 000000000..ec9395ca5 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/NotablesInsightData.java @@ -0,0 +1,109 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import thebluealliance.api.model.NotablesInsightDataEntriesInner; + +/** + * NotablesInsightData + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class NotablesInsightData { + public static final String SERIALIZED_NAME_ENTRIES = "entries"; + @SerializedName(SERIALIZED_NAME_ENTRIES) + @javax.annotation.Nonnull + private List entries = new ArrayList<>(); + + public NotablesInsightData() { + } + + public NotablesInsightData entries(@javax.annotation.Nonnull List entries) { + + this.entries = entries; + return this; + } + + public NotablesInsightData addEntriesItem(NotablesInsightDataEntriesInner entriesItem) { + if (this.entries == null) { + this.entries = new ArrayList<>(); + } + this.entries.add(entriesItem); + return this; + } + + /** + * Get entries + * @return entries + */ + @javax.annotation.Nonnull + + public List getEntries() { + return entries; + } + + + public void setEntries(@javax.annotation.Nonnull List entries) { + this.entries = entries; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NotablesInsightData notablesInsightData = (NotablesInsightData) o; + return Objects.equals(this.entries, notablesInsightData.entries); + } + + @Override + public int hashCode() { + return Objects.hash(entries); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NotablesInsightData {\n"); + sb.append(" entries: ").append(toIndentedString(entries)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/NotablesInsightDataEntriesInner.java b/tba-api/src/main/java/thebluealliance/api/model/NotablesInsightDataEntriesInner.java new file mode 100644 index 000000000..8ec4fdc40 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/NotablesInsightDataEntriesInner.java @@ -0,0 +1,136 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +/** + * NotablesInsightDataEntriesInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class NotablesInsightDataEntriesInner { + public static final String SERIALIZED_NAME_CONTEXT = "context"; + @SerializedName(SERIALIZED_NAME_CONTEXT) + @javax.annotation.Nonnull + private List context = new ArrayList<>(); + + public static final String SERIALIZED_NAME_TEAM_KEY = "team_key"; + @SerializedName(SERIALIZED_NAME_TEAM_KEY) + @javax.annotation.Nonnull + private String teamKey; + + public NotablesInsightDataEntriesInner() { + } + + public NotablesInsightDataEntriesInner context(@javax.annotation.Nonnull List context) { + + this.context = context; + return this; + } + + public NotablesInsightDataEntriesInner addContextItem(String contextItem) { + if (this.context == null) { + this.context = new ArrayList<>(); + } + this.context.add(contextItem); + return this; + } + + /** + * A list of events this team achieved the notable at. This type may change over time. + * @return context + */ + @javax.annotation.Nonnull + + public List getContext() { + return context; + } + + + public void setContext(@javax.annotation.Nonnull List context) { + this.context = context; + } + + public NotablesInsightDataEntriesInner teamKey(@javax.annotation.Nonnull String teamKey) { + + this.teamKey = teamKey; + return this; + } + + /** + * Get teamKey + * @return teamKey + */ + @javax.annotation.Nonnull + + public String getTeamKey() { + return teamKey; + } + + + public void setTeamKey(@javax.annotation.Nonnull String teamKey) { + this.teamKey = teamKey; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NotablesInsightDataEntriesInner notablesInsightDataEntriesInner = (NotablesInsightDataEntriesInner) o; + return Objects.equals(this.context, notablesInsightDataEntriesInner.context) && + Objects.equals(this.teamKey, notablesInsightDataEntriesInner.teamKey); + } + + @Override + public int hashCode() { + return Objects.hash(context, teamKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NotablesInsightDataEntriesInner {\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); + sb.append(" teamKey: ").append(toIndentedString(teamKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/SearchIndex.java b/tba-api/src/main/java/thebluealliance/api/model/SearchIndex.java new file mode 100644 index 000000000..f40d7a527 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/SearchIndex.java @@ -0,0 +1,146 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import thebluealliance.api.model.SearchIndexEventsInner; +import thebluealliance.api.model.SearchIndexTeamsInner; + +/** + * SearchIndex + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class SearchIndex { + public static final String SERIALIZED_NAME_TEAMS = "teams"; + @SerializedName(SERIALIZED_NAME_TEAMS) + @javax.annotation.Nonnull + private List teams = new ArrayList<>(); + + public static final String SERIALIZED_NAME_EVENTS = "events"; + @SerializedName(SERIALIZED_NAME_EVENTS) + @javax.annotation.Nonnull + private List events = new ArrayList<>(); + + public SearchIndex() { + } + + public SearchIndex teams(@javax.annotation.Nonnull List teams) { + + this.teams = teams; + return this; + } + + public SearchIndex addTeamsItem(SearchIndexTeamsInner teamsItem) { + if (this.teams == null) { + this.teams = new ArrayList<>(); + } + this.teams.add(teamsItem); + return this; + } + + /** + * Get teams + * @return teams + */ + @javax.annotation.Nonnull + + public List getTeams() { + return teams; + } + + + public void setTeams(@javax.annotation.Nonnull List teams) { + this.teams = teams; + } + + public SearchIndex events(@javax.annotation.Nonnull List events) { + + this.events = events; + return this; + } + + public SearchIndex addEventsItem(SearchIndexEventsInner eventsItem) { + if (this.events == null) { + this.events = new ArrayList<>(); + } + this.events.add(eventsItem); + return this; + } + + /** + * Get events + * @return events + */ + @javax.annotation.Nonnull + + public List getEvents() { + return events; + } + + + public void setEvents(@javax.annotation.Nonnull List events) { + this.events = events; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SearchIndex searchIndex = (SearchIndex) o; + return Objects.equals(this.teams, searchIndex.teams) && + Objects.equals(this.events, searchIndex.events); + } + + @Override + public int hashCode() { + return Objects.hash(teams, events); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchIndex {\n"); + sb.append(" teams: ").append(toIndentedString(teams)).append("\n"); + sb.append(" events: ").append(toIndentedString(events)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/SearchIndexEventsInner.java b/tba-api/src/main/java/thebluealliance/api/model/SearchIndexEventsInner.java new file mode 100644 index 000000000..2b99580d0 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/SearchIndexEventsInner.java @@ -0,0 +1,125 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * SearchIndexEventsInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class SearchIndexEventsInner { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @javax.annotation.Nonnull + private String key; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull + private String name; + + public SearchIndexEventsInner() { + } + + public SearchIndexEventsInner key(@javax.annotation.Nonnull String key) { + + this.key = key; + return this; + } + + /** + * Get key + * @return key + */ + @javax.annotation.Nonnull + + public String getKey() { + return key; + } + + + public void setKey(@javax.annotation.Nonnull String key) { + this.key = key; + } + + public SearchIndexEventsInner name(@javax.annotation.Nonnull String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + */ + @javax.annotation.Nonnull + + public String getName() { + return name; + } + + + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SearchIndexEventsInner searchIndexEventsInner = (SearchIndexEventsInner) o; + return Objects.equals(this.key, searchIndexEventsInner.key) && + Objects.equals(this.name, searchIndexEventsInner.name); + } + + @Override + public int hashCode() { + return Objects.hash(key, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchIndexEventsInner {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/SearchIndexTeamsInner.java b/tba-api/src/main/java/thebluealliance/api/model/SearchIndexTeamsInner.java new file mode 100644 index 000000000..4970ee297 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/SearchIndexTeamsInner.java @@ -0,0 +1,125 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * SearchIndexTeamsInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class SearchIndexTeamsInner { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @javax.annotation.Nonnull + private String key; + + public static final String SERIALIZED_NAME_NICKNAME = "nickname"; + @SerializedName(SERIALIZED_NAME_NICKNAME) + @javax.annotation.Nonnull + private String nickname; + + public SearchIndexTeamsInner() { + } + + public SearchIndexTeamsInner key(@javax.annotation.Nonnull String key) { + + this.key = key; + return this; + } + + /** + * Get key + * @return key + */ + @javax.annotation.Nonnull + + public String getKey() { + return key; + } + + + public void setKey(@javax.annotation.Nonnull String key) { + this.key = key; + } + + public SearchIndexTeamsInner nickname(@javax.annotation.Nonnull String nickname) { + + this.nickname = nickname; + return this; + } + + /** + * Get nickname + * @return nickname + */ + @javax.annotation.Nonnull + + public String getNickname() { + return nickname; + } + + + public void setNickname(@javax.annotation.Nonnull String nickname) { + this.nickname = nickname; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SearchIndexTeamsInner searchIndexTeamsInner = (SearchIndexTeamsInner) o; + return Objects.equals(this.key, searchIndexTeamsInner.key) && + Objects.equals(this.nickname, searchIndexTeamsInner.nickname); + } + + @Override + public int hashCode() { + return Objects.hash(key, nickname); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SearchIndexTeamsInner {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" nickname: ").append(toIndentedString(nickname)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/Team.java b/tba-api/src/main/java/thebluealliance/api/model/Team.java new file mode 100644 index 000000000..e2f503da7 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/Team.java @@ -0,0 +1,557 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Team + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class Team { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @javax.annotation.Nonnull + private String key; + + public static final String SERIALIZED_NAME_TEAM_NUMBER = "team_number"; + @SerializedName(SERIALIZED_NAME_TEAM_NUMBER) + @javax.annotation.Nonnull + private Integer teamNumber; + + public static final String SERIALIZED_NAME_NICKNAME = "nickname"; + @SerializedName(SERIALIZED_NAME_NICKNAME) + @javax.annotation.Nonnull + private String nickname; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_SCHOOL_NAME = "school_name"; + @SerializedName(SERIALIZED_NAME_SCHOOL_NAME) + @javax.annotation.Nullable + private String schoolName; + + public static final String SERIALIZED_NAME_CITY = "city"; + @SerializedName(SERIALIZED_NAME_CITY) + @javax.annotation.Nullable + private String city; + + public static final String SERIALIZED_NAME_STATE_PROV = "state_prov"; + @SerializedName(SERIALIZED_NAME_STATE_PROV) + @javax.annotation.Nullable + private String stateProv; + + public static final String SERIALIZED_NAME_COUNTRY = "country"; + @SerializedName(SERIALIZED_NAME_COUNTRY) + @javax.annotation.Nullable + private String country; + + public static final String SERIALIZED_NAME_ADDRESS = "address"; + @SerializedName(SERIALIZED_NAME_ADDRESS) + @javax.annotation.Nullable + private String address; + + public static final String SERIALIZED_NAME_POSTAL_CODE = "postal_code"; + @SerializedName(SERIALIZED_NAME_POSTAL_CODE) + @javax.annotation.Nullable + private String postalCode; + + public static final String SERIALIZED_NAME_GMAPS_PLACE_ID = "gmaps_place_id"; + @SerializedName(SERIALIZED_NAME_GMAPS_PLACE_ID) + @javax.annotation.Nullable + private String gmapsPlaceId; + + public static final String SERIALIZED_NAME_GMAPS_URL = "gmaps_url"; + @SerializedName(SERIALIZED_NAME_GMAPS_URL) + @javax.annotation.Nullable + private String gmapsUrl; + + public static final String SERIALIZED_NAME_LAT = "lat"; + @SerializedName(SERIALIZED_NAME_LAT) + @javax.annotation.Nullable + private Double lat; + + public static final String SERIALIZED_NAME_LNG = "lng"; + @SerializedName(SERIALIZED_NAME_LNG) + @javax.annotation.Nullable + private Double lng; + + public static final String SERIALIZED_NAME_LOCATION_NAME = "location_name"; + @SerializedName(SERIALIZED_NAME_LOCATION_NAME) + @javax.annotation.Nullable + private String locationName; + + public static final String SERIALIZED_NAME_WEBSITE = "website"; + @SerializedName(SERIALIZED_NAME_WEBSITE) + @javax.annotation.Nullable + private String website; + + public static final String SERIALIZED_NAME_ROOKIE_YEAR = "rookie_year"; + @SerializedName(SERIALIZED_NAME_ROOKIE_YEAR) + @javax.annotation.Nullable + private Integer rookieYear; + + public Team() { + } + + public Team key(@javax.annotation.Nonnull String key) { + + this.key = key; + return this; + } + + /** + * TBA team key with the format `frcXXXX` with `XXXX` representing the team number. + * @return key + */ + @javax.annotation.Nonnull + + public String getKey() { + return key; + } + + + public void setKey(@javax.annotation.Nonnull String key) { + this.key = key; + } + + public Team teamNumber(@javax.annotation.Nonnull Integer teamNumber) { + + this.teamNumber = teamNumber; + return this; + } + + /** + * Official team number issued by FIRST. + * @return teamNumber + */ + @javax.annotation.Nonnull + + public Integer getTeamNumber() { + return teamNumber; + } + + + public void setTeamNumber(@javax.annotation.Nonnull Integer teamNumber) { + this.teamNumber = teamNumber; + } + + public Team nickname(@javax.annotation.Nonnull String nickname) { + + this.nickname = nickname; + return this; + } + + /** + * Team nickname provided by FIRST. + * @return nickname + */ + @javax.annotation.Nonnull + + public String getNickname() { + return nickname; + } + + + public void setNickname(@javax.annotation.Nonnull String nickname) { + this.nickname = nickname; + } + + public Team name(@javax.annotation.Nonnull String name) { + + this.name = name; + return this; + } + + /** + * Official long name registered with FIRST. + * @return name + */ + @javax.annotation.Nonnull + + public String getName() { + return name; + } + + + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; + } + + public Team schoolName(@javax.annotation.Nullable String schoolName) { + + this.schoolName = schoolName; + return this; + } + + /** + * Name of team school or affilited group registered with FIRST. + * @return schoolName + */ + @javax.annotation.Nullable + + public String getSchoolName() { + return schoolName; + } + + + public void setSchoolName(@javax.annotation.Nullable String schoolName) { + this.schoolName = schoolName; + } + + public Team city(@javax.annotation.Nullable String city) { + + this.city = city; + return this; + } + + /** + * City of team derived from parsing the address registered with FIRST. + * @return city + */ + @javax.annotation.Nullable + + public String getCity() { + return city; + } + + + public void setCity(@javax.annotation.Nullable String city) { + this.city = city; + } + + public Team stateProv(@javax.annotation.Nullable String stateProv) { + + this.stateProv = stateProv; + return this; + } + + /** + * State of team derived from parsing the address registered with FIRST. + * @return stateProv + */ + @javax.annotation.Nullable + + public String getStateProv() { + return stateProv; + } + + + public void setStateProv(@javax.annotation.Nullable String stateProv) { + this.stateProv = stateProv; + } + + public Team country(@javax.annotation.Nullable String country) { + + this.country = country; + return this; + } + + /** + * Country of team derived from parsing the address registered with FIRST. + * @return country + */ + @javax.annotation.Nullable + + public String getCountry() { + return country; + } + + + public void setCountry(@javax.annotation.Nullable String country) { + this.country = country; + } + + public Team address(@javax.annotation.Nullable String address) { + + this.address = address; + return this; + } + + /** + * Will be NULL, for future development. + * @return address + */ + @javax.annotation.Nullable + + public String getAddress() { + return address; + } + + + public void setAddress(@javax.annotation.Nullable String address) { + this.address = address; + } + + public Team postalCode(@javax.annotation.Nullable String postalCode) { + + this.postalCode = postalCode; + return this; + } + + /** + * Postal code from the team address. + * @return postalCode + */ + @javax.annotation.Nullable + + public String getPostalCode() { + return postalCode; + } + + + public void setPostalCode(@javax.annotation.Nullable String postalCode) { + this.postalCode = postalCode; + } + + public Team gmapsPlaceId(@javax.annotation.Nullable String gmapsPlaceId) { + + this.gmapsPlaceId = gmapsPlaceId; + return this; + } + + /** + * Will be NULL, for future development. + * @return gmapsPlaceId + */ + @javax.annotation.Nullable + + public String getGmapsPlaceId() { + return gmapsPlaceId; + } + + + public void setGmapsPlaceId(@javax.annotation.Nullable String gmapsPlaceId) { + this.gmapsPlaceId = gmapsPlaceId; + } + + public Team gmapsUrl(@javax.annotation.Nullable String gmapsUrl) { + + this.gmapsUrl = gmapsUrl; + return this; + } + + /** + * Will be NULL, for future development. + * @return gmapsUrl + */ + @javax.annotation.Nullable + + public String getGmapsUrl() { + return gmapsUrl; + } + + + public void setGmapsUrl(@javax.annotation.Nullable String gmapsUrl) { + this.gmapsUrl = gmapsUrl; + } + + public Team lat(@javax.annotation.Nullable Double lat) { + + this.lat = lat; + return this; + } + + /** + * Will be NULL, for future development. + * @return lat + */ + @javax.annotation.Nullable + + public Double getLat() { + return lat; + } + + + public void setLat(@javax.annotation.Nullable Double lat) { + this.lat = lat; + } + + public Team lng(@javax.annotation.Nullable Double lng) { + + this.lng = lng; + return this; + } + + /** + * Will be NULL, for future development. + * @return lng + */ + @javax.annotation.Nullable + + public Double getLng() { + return lng; + } + + + public void setLng(@javax.annotation.Nullable Double lng) { + this.lng = lng; + } + + public Team locationName(@javax.annotation.Nullable String locationName) { + + this.locationName = locationName; + return this; + } + + /** + * Will be NULL, for future development. + * @return locationName + */ + @javax.annotation.Nullable + + public String getLocationName() { + return locationName; + } + + + public void setLocationName(@javax.annotation.Nullable String locationName) { + this.locationName = locationName; + } + + public Team website(@javax.annotation.Nullable String website) { + + this.website = website; + return this; + } + + /** + * Official website associated with the team. + * @return website + */ + @javax.annotation.Nullable + + public String getWebsite() { + return website; + } + + + public void setWebsite(@javax.annotation.Nullable String website) { + this.website = website; + } + + public Team rookieYear(@javax.annotation.Nullable Integer rookieYear) { + + this.rookieYear = rookieYear; + return this; + } + + /** + * First year the team officially competed. + * @return rookieYear + */ + @javax.annotation.Nullable + + public Integer getRookieYear() { + return rookieYear; + } + + + public void setRookieYear(@javax.annotation.Nullable Integer rookieYear) { + this.rookieYear = rookieYear; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Team team = (Team) o; + return Objects.equals(this.key, team.key) && + Objects.equals(this.teamNumber, team.teamNumber) && + Objects.equals(this.nickname, team.nickname) && + Objects.equals(this.name, team.name) && + Objects.equals(this.schoolName, team.schoolName) && + Objects.equals(this.city, team.city) && + Objects.equals(this.stateProv, team.stateProv) && + Objects.equals(this.country, team.country) && + Objects.equals(this.address, team.address) && + Objects.equals(this.postalCode, team.postalCode) && + Objects.equals(this.gmapsPlaceId, team.gmapsPlaceId) && + Objects.equals(this.gmapsUrl, team.gmapsUrl) && + Objects.equals(this.lat, team.lat) && + Objects.equals(this.lng, team.lng) && + Objects.equals(this.locationName, team.locationName) && + Objects.equals(this.website, team.website) && + Objects.equals(this.rookieYear, team.rookieYear); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(key, teamNumber, nickname, name, schoolName, city, stateProv, country, address, postalCode, gmapsPlaceId, gmapsUrl, lat, lng, locationName, website, rookieYear); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Team {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" teamNumber: ").append(toIndentedString(teamNumber)).append("\n"); + sb.append(" nickname: ").append(toIndentedString(nickname)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" schoolName: ").append(toIndentedString(schoolName)).append("\n"); + sb.append(" city: ").append(toIndentedString(city)).append("\n"); + sb.append(" stateProv: ").append(toIndentedString(stateProv)).append("\n"); + sb.append(" country: ").append(toIndentedString(country)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); + sb.append(" gmapsPlaceId: ").append(toIndentedString(gmapsPlaceId)).append("\n"); + sb.append(" gmapsUrl: ").append(toIndentedString(gmapsUrl)).append("\n"); + sb.append(" lat: ").append(toIndentedString(lat)).append("\n"); + sb.append(" lng: ").append(toIndentedString(lng)).append("\n"); + sb.append(" locationName: ").append(toIndentedString(locationName)).append("\n"); + sb.append(" website: ").append(toIndentedString(website)).append("\n"); + sb.append(" rookieYear: ").append(toIndentedString(rookieYear)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatus.java b/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatus.java new file mode 100644 index 000000000..3a9a7d05a --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatus.java @@ -0,0 +1,308 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; +import thebluealliance.api.model.TeamEventStatusAlliance; +import thebluealliance.api.model.TeamEventStatusPlayoff; +import thebluealliance.api.model.TeamEventStatusRank; + +/** + * TeamEventStatus + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class TeamEventStatus { + public static final String SERIALIZED_NAME_QUAL = "qual"; + @SerializedName(SERIALIZED_NAME_QUAL) + @javax.annotation.Nullable + private TeamEventStatusRank qual; + + public static final String SERIALIZED_NAME_ALLIANCE = "alliance"; + @SerializedName(SERIALIZED_NAME_ALLIANCE) + @javax.annotation.Nullable + private TeamEventStatusAlliance alliance; + + public static final String SERIALIZED_NAME_PLAYOFF = "playoff"; + @SerializedName(SERIALIZED_NAME_PLAYOFF) + @javax.annotation.Nullable + private TeamEventStatusPlayoff playoff; + + public static final String SERIALIZED_NAME_ALLIANCE_STATUS_STR = "alliance_status_str"; + @SerializedName(SERIALIZED_NAME_ALLIANCE_STATUS_STR) + @javax.annotation.Nullable + private String allianceStatusStr; + + public static final String SERIALIZED_NAME_PLAYOFF_STATUS_STR = "playoff_status_str"; + @SerializedName(SERIALIZED_NAME_PLAYOFF_STATUS_STR) + @javax.annotation.Nullable + private String playoffStatusStr; + + public static final String SERIALIZED_NAME_OVERALL_STATUS_STR = "overall_status_str"; + @SerializedName(SERIALIZED_NAME_OVERALL_STATUS_STR) + @javax.annotation.Nullable + private String overallStatusStr; + + public static final String SERIALIZED_NAME_NEXT_MATCH_KEY = "next_match_key"; + @SerializedName(SERIALIZED_NAME_NEXT_MATCH_KEY) + @javax.annotation.Nullable + private String nextMatchKey; + + public static final String SERIALIZED_NAME_LAST_MATCH_KEY = "last_match_key"; + @SerializedName(SERIALIZED_NAME_LAST_MATCH_KEY) + @javax.annotation.Nullable + private String lastMatchKey; + + public TeamEventStatus() { + } + + public TeamEventStatus qual(@javax.annotation.Nullable TeamEventStatusRank qual) { + + this.qual = qual; + return this; + } + + /** + * Get qual + * @return qual + */ + @javax.annotation.Nullable + + public TeamEventStatusRank getQual() { + return qual; + } + + + public void setQual(@javax.annotation.Nullable TeamEventStatusRank qual) { + this.qual = qual; + } + + public TeamEventStatus alliance(@javax.annotation.Nullable TeamEventStatusAlliance alliance) { + + this.alliance = alliance; + return this; + } + + /** + * Get alliance + * @return alliance + */ + @javax.annotation.Nullable + + public TeamEventStatusAlliance getAlliance() { + return alliance; + } + + + public void setAlliance(@javax.annotation.Nullable TeamEventStatusAlliance alliance) { + this.alliance = alliance; + } + + public TeamEventStatus playoff(@javax.annotation.Nullable TeamEventStatusPlayoff playoff) { + + this.playoff = playoff; + return this; + } + + /** + * Get playoff + * @return playoff + */ + @javax.annotation.Nullable + + public TeamEventStatusPlayoff getPlayoff() { + return playoff; + } + + + public void setPlayoff(@javax.annotation.Nullable TeamEventStatusPlayoff playoff) { + this.playoff = playoff; + } + + public TeamEventStatus allianceStatusStr(@javax.annotation.Nullable String allianceStatusStr) { + + this.allianceStatusStr = allianceStatusStr; + return this; + } + + /** + * An HTML formatted string suitable for display to the user containing the team's alliance pick status. + * @return allianceStatusStr + */ + @javax.annotation.Nullable + + public String getAllianceStatusStr() { + return allianceStatusStr; + } + + + public void setAllianceStatusStr(@javax.annotation.Nullable String allianceStatusStr) { + this.allianceStatusStr = allianceStatusStr; + } + + public TeamEventStatus playoffStatusStr(@javax.annotation.Nullable String playoffStatusStr) { + + this.playoffStatusStr = playoffStatusStr; + return this; + } + + /** + * An HTML formatter string suitable for display to the user containing the team's playoff status. + * @return playoffStatusStr + */ + @javax.annotation.Nullable + + public String getPlayoffStatusStr() { + return playoffStatusStr; + } + + + public void setPlayoffStatusStr(@javax.annotation.Nullable String playoffStatusStr) { + this.playoffStatusStr = playoffStatusStr; + } + + public TeamEventStatus overallStatusStr(@javax.annotation.Nullable String overallStatusStr) { + + this.overallStatusStr = overallStatusStr; + return this; + } + + /** + * An HTML formatted string suitable for display to the user containing the team's overall status summary of the event. + * @return overallStatusStr + */ + @javax.annotation.Nullable + + public String getOverallStatusStr() { + return overallStatusStr; + } + + + public void setOverallStatusStr(@javax.annotation.Nullable String overallStatusStr) { + this.overallStatusStr = overallStatusStr; + } + + public TeamEventStatus nextMatchKey(@javax.annotation.Nullable String nextMatchKey) { + + this.nextMatchKey = nextMatchKey; + return this; + } + + /** + * TBA match key for the next match the team is scheduled to play in at this event, or null. + * @return nextMatchKey + */ + @javax.annotation.Nullable + + public String getNextMatchKey() { + return nextMatchKey; + } + + + public void setNextMatchKey(@javax.annotation.Nullable String nextMatchKey) { + this.nextMatchKey = nextMatchKey; + } + + public TeamEventStatus lastMatchKey(@javax.annotation.Nullable String lastMatchKey) { + + this.lastMatchKey = lastMatchKey; + return this; + } + + /** + * TBA match key for the last match the team played in at this event, or null. + * @return lastMatchKey + */ + @javax.annotation.Nullable + + public String getLastMatchKey() { + return lastMatchKey; + } + + + public void setLastMatchKey(@javax.annotation.Nullable String lastMatchKey) { + this.lastMatchKey = lastMatchKey; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TeamEventStatus teamEventStatus = (TeamEventStatus) o; + return Objects.equals(this.qual, teamEventStatus.qual) && + Objects.equals(this.alliance, teamEventStatus.alliance) && + Objects.equals(this.playoff, teamEventStatus.playoff) && + Objects.equals(this.allianceStatusStr, teamEventStatus.allianceStatusStr) && + Objects.equals(this.playoffStatusStr, teamEventStatus.playoffStatusStr) && + Objects.equals(this.overallStatusStr, teamEventStatus.overallStatusStr) && + Objects.equals(this.nextMatchKey, teamEventStatus.nextMatchKey) && + Objects.equals(this.lastMatchKey, teamEventStatus.lastMatchKey); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(qual, alliance, playoff, allianceStatusStr, playoffStatusStr, overallStatusStr, nextMatchKey, lastMatchKey); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TeamEventStatus {\n"); + sb.append(" qual: ").append(toIndentedString(qual)).append("\n"); + sb.append(" alliance: ").append(toIndentedString(alliance)).append("\n"); + sb.append(" playoff: ").append(toIndentedString(playoff)).append("\n"); + sb.append(" allianceStatusStr: ").append(toIndentedString(allianceStatusStr)).append("\n"); + sb.append(" playoffStatusStr: ").append(toIndentedString(playoffStatusStr)).append("\n"); + sb.append(" overallStatusStr: ").append(toIndentedString(overallStatusStr)).append("\n"); + sb.append(" nextMatchKey: ").append(toIndentedString(nextMatchKey)).append("\n"); + sb.append(" lastMatchKey: ").append(toIndentedString(lastMatchKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusAlliance.java b/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusAlliance.java new file mode 100644 index 000000000..730416377 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusAlliance.java @@ -0,0 +1,194 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; +import thebluealliance.api.model.TeamEventStatusAllianceBackup; + +/** + * TeamEventStatusAlliance + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class TeamEventStatusAlliance { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable + private String name; + + public static final String SERIALIZED_NAME_NUMBER = "number"; + @SerializedName(SERIALIZED_NAME_NUMBER) + @javax.annotation.Nonnull + private Integer number; + + public static final String SERIALIZED_NAME_BACKUP = "backup"; + @SerializedName(SERIALIZED_NAME_BACKUP) + @javax.annotation.Nullable + private TeamEventStatusAllianceBackup backup; + + public static final String SERIALIZED_NAME_PICK = "pick"; + @SerializedName(SERIALIZED_NAME_PICK) + @javax.annotation.Nonnull + private Integer pick; + + public TeamEventStatusAlliance() { + } + + public TeamEventStatusAlliance name(@javax.annotation.Nullable String name) { + + this.name = name; + return this; + } + + /** + * Alliance name, may be null. + * @return name + */ + @javax.annotation.Nullable + + public String getName() { + return name; + } + + + public void setName(@javax.annotation.Nullable String name) { + this.name = name; + } + + public TeamEventStatusAlliance number(@javax.annotation.Nonnull Integer number) { + + this.number = number; + return this; + } + + /** + * Alliance number. + * @return number + */ + @javax.annotation.Nonnull + + public Integer getNumber() { + return number; + } + + + public void setNumber(@javax.annotation.Nonnull Integer number) { + this.number = number; + } + + public TeamEventStatusAlliance backup(@javax.annotation.Nullable TeamEventStatusAllianceBackup backup) { + + this.backup = backup; + return this; + } + + /** + * Get backup + * @return backup + */ + @javax.annotation.Nullable + + public TeamEventStatusAllianceBackup getBackup() { + return backup; + } + + + public void setBackup(@javax.annotation.Nullable TeamEventStatusAllianceBackup backup) { + this.backup = backup; + } + + public TeamEventStatusAlliance pick(@javax.annotation.Nonnull Integer pick) { + + this.pick = pick; + return this; + } + + /** + * Order the team was picked in the alliance from 0-2, with 0 being alliance captain. + * @return pick + */ + @javax.annotation.Nonnull + + public Integer getPick() { + return pick; + } + + + public void setPick(@javax.annotation.Nonnull Integer pick) { + this.pick = pick; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TeamEventStatusAlliance teamEventStatusAlliance = (TeamEventStatusAlliance) o; + return Objects.equals(this.name, teamEventStatusAlliance.name) && + Objects.equals(this.number, teamEventStatusAlliance.number) && + Objects.equals(this.backup, teamEventStatusAlliance.backup) && + Objects.equals(this.pick, teamEventStatusAlliance.pick); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(name, number, backup, pick); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TeamEventStatusAlliance {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" number: ").append(toIndentedString(number)).append("\n"); + sb.append(" backup: ").append(toIndentedString(backup)).append("\n"); + sb.append(" pick: ").append(toIndentedString(pick)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusAllianceBackup.java b/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusAllianceBackup.java new file mode 100644 index 000000000..94d26acc2 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusAllianceBackup.java @@ -0,0 +1,125 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * Backup status, may be null. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class TeamEventStatusAllianceBackup { + public static final String SERIALIZED_NAME_OUT = "out"; + @SerializedName(SERIALIZED_NAME_OUT) + @javax.annotation.Nullable + private String out; + + public static final String SERIALIZED_NAME_IN = "in"; + @SerializedName(SERIALIZED_NAME_IN) + @javax.annotation.Nullable + private String in; + + public TeamEventStatusAllianceBackup() { + } + + public TeamEventStatusAllianceBackup out(@javax.annotation.Nullable String out) { + + this.out = out; + return this; + } + + /** + * TBA key for the team replaced by the backup. + * @return out + */ + @javax.annotation.Nullable + + public String getOut() { + return out; + } + + + public void setOut(@javax.annotation.Nullable String out) { + this.out = out; + } + + public TeamEventStatusAllianceBackup in(@javax.annotation.Nullable String in) { + + this.in = in; + return this; + } + + /** + * TBA key for the backup team called in. + * @return in + */ + @javax.annotation.Nullable + + public String getIn() { + return in; + } + + + public void setIn(@javax.annotation.Nullable String in) { + this.in = in; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TeamEventStatusAllianceBackup teamEventStatusAllianceBackup = (TeamEventStatusAllianceBackup) o; + return Objects.equals(this.out, teamEventStatusAllianceBackup.out) && + Objects.equals(this.in, teamEventStatusAllianceBackup.in); + } + + @Override + public int hashCode() { + return Objects.hash(out, in); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TeamEventStatusAllianceBackup {\n"); + sb.append(" out: ").append(toIndentedString(out)).append("\n"); + sb.append(" in: ").append(toIndentedString(in)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusPlayoff.java b/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusPlayoff.java new file mode 100644 index 000000000..7ec4920b3 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusPlayoff.java @@ -0,0 +1,324 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; +import thebluealliance.api.model.WLTRecord; + +/** + * Playoff status for this team, may be null if the team did not make playoffs, or playoffs have not begun. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class TeamEventStatusPlayoff { + /** + * The highest playoff level the team reached. + */ + @JsonAdapter(LevelEnum.Adapter.class) + public enum LevelEnum { + QM(String.valueOf("qm")), + + EF(String.valueOf("ef")), + + QF(String.valueOf("qf")), + + SF(String.valueOf("sf")), + + F(String.valueOf("f")); + + private String value; + + LevelEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static LevelEnum fromValue(String value) { + for (LevelEnum b : LevelEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final LevelEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public LevelEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return LevelEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_LEVEL = "level"; + @SerializedName(SERIALIZED_NAME_LEVEL) + @javax.annotation.Nullable + private LevelEnum level; + + public static final String SERIALIZED_NAME_CURRENT_LEVEL_RECORD = "current_level_record"; + @SerializedName(SERIALIZED_NAME_CURRENT_LEVEL_RECORD) + @javax.annotation.Nullable + private WLTRecord currentLevelRecord; + + public static final String SERIALIZED_NAME_RECORD = "record"; + @SerializedName(SERIALIZED_NAME_RECORD) + @javax.annotation.Nullable + private WLTRecord record; + + /** + * Current competition status for the playoffs. + */ + @JsonAdapter(StatusEnum.Adapter.class) + public enum StatusEnum { + WON(String.valueOf("won")), + + ELIMINATED(String.valueOf("eliminated")), + + PLAYING(String.valueOf("playing")); + + private String value; + + StatusEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StatusEnum fromValue(String value) { + for (StatusEnum b : StatusEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StatusEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StatusEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StatusEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable + private StatusEnum status; + + public static final String SERIALIZED_NAME_PLAYOFF_AVERAGE = "playoff_average"; + @SerializedName(SERIALIZED_NAME_PLAYOFF_AVERAGE) + @javax.annotation.Nullable + private Integer playoffAverage; + + public TeamEventStatusPlayoff() { + } + + public TeamEventStatusPlayoff level(@javax.annotation.Nullable LevelEnum level) { + + this.level = level; + return this; + } + + /** + * The highest playoff level the team reached. + * @return level + */ + @javax.annotation.Nullable + + public LevelEnum getLevel() { + return level; + } + + + public void setLevel(@javax.annotation.Nullable LevelEnum level) { + this.level = level; + } + + public TeamEventStatusPlayoff currentLevelRecord(@javax.annotation.Nullable WLTRecord currentLevelRecord) { + + this.currentLevelRecord = currentLevelRecord; + return this; + } + + /** + * Get currentLevelRecord + * @return currentLevelRecord + */ + @javax.annotation.Nullable + + public WLTRecord getCurrentLevelRecord() { + return currentLevelRecord; + } + + + public void setCurrentLevelRecord(@javax.annotation.Nullable WLTRecord currentLevelRecord) { + this.currentLevelRecord = currentLevelRecord; + } + + public TeamEventStatusPlayoff record(@javax.annotation.Nullable WLTRecord record) { + + this.record = record; + return this; + } + + /** + * Get record + * @return record + */ + @javax.annotation.Nullable + + public WLTRecord getRecord() { + return record; + } + + + public void setRecord(@javax.annotation.Nullable WLTRecord record) { + this.record = record; + } + + public TeamEventStatusPlayoff status(@javax.annotation.Nullable StatusEnum status) { + + this.status = status; + return this; + } + + /** + * Current competition status for the playoffs. + * @return status + */ + @javax.annotation.Nullable + + public StatusEnum getStatus() { + return status; + } + + + public void setStatus(@javax.annotation.Nullable StatusEnum status) { + this.status = status; + } + + public TeamEventStatusPlayoff playoffAverage(@javax.annotation.Nullable Integer playoffAverage) { + + this.playoffAverage = playoffAverage; + return this; + } + + /** + * The average match score during playoffs. Year specific. May be null if not relevant for a given year. + * @return playoffAverage + */ + @javax.annotation.Nullable + + public Integer getPlayoffAverage() { + return playoffAverage; + } + + + public void setPlayoffAverage(@javax.annotation.Nullable Integer playoffAverage) { + this.playoffAverage = playoffAverage; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TeamEventStatusPlayoff teamEventStatusPlayoff = (TeamEventStatusPlayoff) o; + return Objects.equals(this.level, teamEventStatusPlayoff.level) && + Objects.equals(this.currentLevelRecord, teamEventStatusPlayoff.currentLevelRecord) && + Objects.equals(this.record, teamEventStatusPlayoff.record) && + Objects.equals(this.status, teamEventStatusPlayoff.status) && + Objects.equals(this.playoffAverage, teamEventStatusPlayoff.playoffAverage); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(level, currentLevelRecord, record, status, playoffAverage); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TeamEventStatusPlayoff {\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" currentLevelRecord: ").append(toIndentedString(currentLevelRecord)).append("\n"); + sb.append(" record: ").append(toIndentedString(record)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" playoffAverage: ").append(toIndentedString(playoffAverage)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusRank.java b/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusRank.java new file mode 100644 index 000000000..dc9ba51f6 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusRank.java @@ -0,0 +1,194 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import thebluealliance.api.model.TeamEventStatusRankRanking; +import thebluealliance.api.model.TeamEventStatusRankSortOrderInfoInner; + +/** + * TeamEventStatusRank + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class TeamEventStatusRank { + public static final String SERIALIZED_NAME_NUM_TEAMS = "num_teams"; + @SerializedName(SERIALIZED_NAME_NUM_TEAMS) + @javax.annotation.Nullable + private Integer numTeams; + + public static final String SERIALIZED_NAME_RANKING = "ranking"; + @SerializedName(SERIALIZED_NAME_RANKING) + @javax.annotation.Nullable + private TeamEventStatusRankRanking ranking; + + public static final String SERIALIZED_NAME_SORT_ORDER_INFO = "sort_order_info"; + @SerializedName(SERIALIZED_NAME_SORT_ORDER_INFO) + @javax.annotation.Nullable + private List sortOrderInfo = new ArrayList<>(); + + public static final String SERIALIZED_NAME_STATUS = "status"; + @SerializedName(SERIALIZED_NAME_STATUS) + @javax.annotation.Nullable + private String status; + + public TeamEventStatusRank() { + } + + public TeamEventStatusRank numTeams(@javax.annotation.Nullable Integer numTeams) { + + this.numTeams = numTeams; + return this; + } + + /** + * Number of teams ranked. + * @return numTeams + */ + @javax.annotation.Nullable + + public Integer getNumTeams() { + return numTeams; + } + + + public void setNumTeams(@javax.annotation.Nullable Integer numTeams) { + this.numTeams = numTeams; + } + + public TeamEventStatusRank ranking(@javax.annotation.Nullable TeamEventStatusRankRanking ranking) { + + this.ranking = ranking; + return this; + } + + /** + * Get ranking + * @return ranking + */ + @javax.annotation.Nullable + + public TeamEventStatusRankRanking getRanking() { + return ranking; + } + + + public void setRanking(@javax.annotation.Nullable TeamEventStatusRankRanking ranking) { + this.ranking = ranking; + } + + public TeamEventStatusRank sortOrderInfo(@javax.annotation.Nullable List sortOrderInfo) { + + this.sortOrderInfo = sortOrderInfo; + return this; + } + + public TeamEventStatusRank addSortOrderInfoItem(TeamEventStatusRankSortOrderInfoInner sortOrderInfoItem) { + if (this.sortOrderInfo == null) { + this.sortOrderInfo = new ArrayList<>(); + } + this.sortOrderInfo.add(sortOrderInfoItem); + return this; + } + + /** + * Ordered list of names corresponding to the elements of the `sort_orders` array. + * @return sortOrderInfo + */ + @javax.annotation.Nullable + + public List getSortOrderInfo() { + return sortOrderInfo; + } + + + public void setSortOrderInfo(@javax.annotation.Nullable List sortOrderInfo) { + this.sortOrderInfo = sortOrderInfo; + } + + public TeamEventStatusRank status(@javax.annotation.Nullable String status) { + + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @javax.annotation.Nullable + + public String getStatus() { + return status; + } + + + public void setStatus(@javax.annotation.Nullable String status) { + this.status = status; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TeamEventStatusRank teamEventStatusRank = (TeamEventStatusRank) o; + return Objects.equals(this.numTeams, teamEventStatusRank.numTeams) && + Objects.equals(this.ranking, teamEventStatusRank.ranking) && + Objects.equals(this.sortOrderInfo, teamEventStatusRank.sortOrderInfo) && + Objects.equals(this.status, teamEventStatusRank.status); + } + + @Override + public int hashCode() { + return Objects.hash(numTeams, ranking, sortOrderInfo, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TeamEventStatusRank {\n"); + sb.append(" numTeams: ").append(toIndentedString(numTeams)).append("\n"); + sb.append(" ranking: ").append(toIndentedString(ranking)).append("\n"); + sb.append(" sortOrderInfo: ").append(toIndentedString(sortOrderInfo)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusRankRanking.java b/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusRankRanking.java new file mode 100644 index 000000000..80a464fbe --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusRankRanking.java @@ -0,0 +1,290 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; +import thebluealliance.api.model.WLTRecord; + +/** + * TeamEventStatusRankRanking + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class TeamEventStatusRankRanking { + public static final String SERIALIZED_NAME_MATCHES_PLAYED = "matches_played"; + @SerializedName(SERIALIZED_NAME_MATCHES_PLAYED) + @javax.annotation.Nullable + private Integer matchesPlayed; + + public static final String SERIALIZED_NAME_QUAL_AVERAGE = "qual_average"; + @SerializedName(SERIALIZED_NAME_QUAL_AVERAGE) + @javax.annotation.Nullable + private Double qualAverage; + + public static final String SERIALIZED_NAME_SORT_ORDERS = "sort_orders"; + @SerializedName(SERIALIZED_NAME_SORT_ORDERS) + @javax.annotation.Nullable + private List sortOrders = new ArrayList<>(); + + public static final String SERIALIZED_NAME_RECORD = "record"; + @SerializedName(SERIALIZED_NAME_RECORD) + @javax.annotation.Nullable + private WLTRecord record; + + public static final String SERIALIZED_NAME_RANK = "rank"; + @SerializedName(SERIALIZED_NAME_RANK) + @javax.annotation.Nullable + private Integer rank; + + public static final String SERIALIZED_NAME_DQ = "dq"; + @SerializedName(SERIALIZED_NAME_DQ) + @javax.annotation.Nullable + private Integer dq; + + public static final String SERIALIZED_NAME_TEAM_KEY = "team_key"; + @SerializedName(SERIALIZED_NAME_TEAM_KEY) + @javax.annotation.Nullable + private String teamKey; + + public TeamEventStatusRankRanking() { + } + + public TeamEventStatusRankRanking matchesPlayed(@javax.annotation.Nullable Integer matchesPlayed) { + + this.matchesPlayed = matchesPlayed; + return this; + } + + /** + * Number of matches played. + * @return matchesPlayed + */ + @javax.annotation.Nullable + + public Integer getMatchesPlayed() { + return matchesPlayed; + } + + + public void setMatchesPlayed(@javax.annotation.Nullable Integer matchesPlayed) { + this.matchesPlayed = matchesPlayed; + } + + public TeamEventStatusRankRanking qualAverage(@javax.annotation.Nullable Double qualAverage) { + + this.qualAverage = qualAverage; + return this; + } + + /** + * For some years, average qualification score. Can be null. + * @return qualAverage + */ + @javax.annotation.Nullable + + public Double getQualAverage() { + return qualAverage; + } + + + public void setQualAverage(@javax.annotation.Nullable Double qualAverage) { + this.qualAverage = qualAverage; + } + + public TeamEventStatusRankRanking sortOrders(@javax.annotation.Nullable List sortOrders) { + + this.sortOrders = sortOrders; + return this; + } + + public TeamEventStatusRankRanking addSortOrdersItem(BigDecimal sortOrdersItem) { + if (this.sortOrders == null) { + this.sortOrders = new ArrayList<>(); + } + this.sortOrders.add(sortOrdersItem); + return this; + } + + /** + * Ordered list of values used to determine the rank. See the `sort_order_info` property for the name of each value. + * @return sortOrders + */ + @javax.annotation.Nullable + + public List getSortOrders() { + return sortOrders; + } + + + public void setSortOrders(@javax.annotation.Nullable List sortOrders) { + this.sortOrders = sortOrders; + } + + public TeamEventStatusRankRanking record(@javax.annotation.Nullable WLTRecord record) { + + this.record = record; + return this; + } + + /** + * Get record + * @return record + */ + @javax.annotation.Nullable + + public WLTRecord getRecord() { + return record; + } + + + public void setRecord(@javax.annotation.Nullable WLTRecord record) { + this.record = record; + } + + public TeamEventStatusRankRanking rank(@javax.annotation.Nullable Integer rank) { + + this.rank = rank; + return this; + } + + /** + * Relative rank of this team. + * @return rank + */ + @javax.annotation.Nullable + + public Integer getRank() { + return rank; + } + + + public void setRank(@javax.annotation.Nullable Integer rank) { + this.rank = rank; + } + + public TeamEventStatusRankRanking dq(@javax.annotation.Nullable Integer dq) { + + this.dq = dq; + return this; + } + + /** + * Number of matches the team was disqualified for. + * @return dq + */ + @javax.annotation.Nullable + + public Integer getDq() { + return dq; + } + + + public void setDq(@javax.annotation.Nullable Integer dq) { + this.dq = dq; + } + + public TeamEventStatusRankRanking teamKey(@javax.annotation.Nullable String teamKey) { + + this.teamKey = teamKey; + return this; + } + + /** + * TBA team key for this rank. + * @return teamKey + */ + @javax.annotation.Nullable + + public String getTeamKey() { + return teamKey; + } + + + public void setTeamKey(@javax.annotation.Nullable String teamKey) { + this.teamKey = teamKey; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TeamEventStatusRankRanking teamEventStatusRankRanking = (TeamEventStatusRankRanking) o; + return Objects.equals(this.matchesPlayed, teamEventStatusRankRanking.matchesPlayed) && + Objects.equals(this.qualAverage, teamEventStatusRankRanking.qualAverage) && + Objects.equals(this.sortOrders, teamEventStatusRankRanking.sortOrders) && + Objects.equals(this.record, teamEventStatusRankRanking.record) && + Objects.equals(this.rank, teamEventStatusRankRanking.rank) && + Objects.equals(this.dq, teamEventStatusRankRanking.dq) && + Objects.equals(this.teamKey, teamEventStatusRankRanking.teamKey); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(matchesPlayed, qualAverage, sortOrders, record, rank, dq, teamKey); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TeamEventStatusRankRanking {\n"); + sb.append(" matchesPlayed: ").append(toIndentedString(matchesPlayed)).append("\n"); + sb.append(" qualAverage: ").append(toIndentedString(qualAverage)).append("\n"); + sb.append(" sortOrders: ").append(toIndentedString(sortOrders)).append("\n"); + sb.append(" record: ").append(toIndentedString(record)).append("\n"); + sb.append(" rank: ").append(toIndentedString(rank)).append("\n"); + sb.append(" dq: ").append(toIndentedString(dq)).append("\n"); + sb.append(" teamKey: ").append(toIndentedString(teamKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusRankSortOrderInfoInner.java b/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusRankSortOrderInfoInner.java new file mode 100644 index 000000000..c74e6de36 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/TeamEventStatusRankSortOrderInfoInner.java @@ -0,0 +1,125 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * TeamEventStatusRankSortOrderInfoInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class TeamEventStatusRankSortOrderInfoInner { + public static final String SERIALIZED_NAME_PRECISION = "precision"; + @SerializedName(SERIALIZED_NAME_PRECISION) + @javax.annotation.Nullable + private Integer precision; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nullable + private String name; + + public TeamEventStatusRankSortOrderInfoInner() { + } + + public TeamEventStatusRankSortOrderInfoInner precision(@javax.annotation.Nullable Integer precision) { + + this.precision = precision; + return this; + } + + /** + * The number of digits of precision used for this value, eg `2` would correspond to a value of `101.11` while `0` would correspond to `101`. + * @return precision + */ + @javax.annotation.Nullable + + public Integer getPrecision() { + return precision; + } + + + public void setPrecision(@javax.annotation.Nullable Integer precision) { + this.precision = precision; + } + + public TeamEventStatusRankSortOrderInfoInner name(@javax.annotation.Nullable String name) { + + this.name = name; + return this; + } + + /** + * The descriptive name of the value used to sort the ranking. + * @return name + */ + @javax.annotation.Nullable + + public String getName() { + return name; + } + + + public void setName(@javax.annotation.Nullable String name) { + this.name = name; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TeamEventStatusRankSortOrderInfoInner teamEventStatusRankSortOrderInfoInner = (TeamEventStatusRankSortOrderInfoInner) o; + return Objects.equals(this.precision, teamEventStatusRankSortOrderInfoInner.precision) && + Objects.equals(this.name, teamEventStatusRankSortOrderInfoInner.name); + } + + @Override + public int hashCode() { + return Objects.hash(precision, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TeamEventStatusRankSortOrderInfoInner {\n"); + sb.append(" precision: ").append(toIndentedString(precision)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/TeamRobot.java b/tba-api/src/main/java/thebluealliance/api/model/TeamRobot.java new file mode 100644 index 000000000..003ab5670 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/TeamRobot.java @@ -0,0 +1,181 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * TeamRobot + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class TeamRobot { + public static final String SERIALIZED_NAME_YEAR = "year"; + @SerializedName(SERIALIZED_NAME_YEAR) + @javax.annotation.Nonnull + private Integer year; + + public static final String SERIALIZED_NAME_ROBOT_NAME = "robot_name"; + @SerializedName(SERIALIZED_NAME_ROBOT_NAME) + @javax.annotation.Nonnull + private String robotName; + + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @javax.annotation.Nonnull + private String key; + + public static final String SERIALIZED_NAME_TEAM_KEY = "team_key"; + @SerializedName(SERIALIZED_NAME_TEAM_KEY) + @javax.annotation.Nonnull + private String teamKey; + + public TeamRobot() { + } + + public TeamRobot year(@javax.annotation.Nonnull Integer year) { + + this.year = year; + return this; + } + + /** + * Year this robot competed in. + * @return year + */ + @javax.annotation.Nonnull + + public Integer getYear() { + return year; + } + + + public void setYear(@javax.annotation.Nonnull Integer year) { + this.year = year; + } + + public TeamRobot robotName(@javax.annotation.Nonnull String robotName) { + + this.robotName = robotName; + return this; + } + + /** + * Name of the robot as provided by the team. + * @return robotName + */ + @javax.annotation.Nonnull + + public String getRobotName() { + return robotName; + } + + + public void setRobotName(@javax.annotation.Nonnull String robotName) { + this.robotName = robotName; + } + + public TeamRobot key(@javax.annotation.Nonnull String key) { + + this.key = key; + return this; + } + + /** + * Internal TBA identifier for this robot. + * @return key + */ + @javax.annotation.Nonnull + + public String getKey() { + return key; + } + + + public void setKey(@javax.annotation.Nonnull String key) { + this.key = key; + } + + public TeamRobot teamKey(@javax.annotation.Nonnull String teamKey) { + + this.teamKey = teamKey; + return this; + } + + /** + * TBA team key for this robot. + * @return teamKey + */ + @javax.annotation.Nonnull + + public String getTeamKey() { + return teamKey; + } + + + public void setTeamKey(@javax.annotation.Nonnull String teamKey) { + this.teamKey = teamKey; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TeamRobot teamRobot = (TeamRobot) o; + return Objects.equals(this.year, teamRobot.year) && + Objects.equals(this.robotName, teamRobot.robotName) && + Objects.equals(this.key, teamRobot.key) && + Objects.equals(this.teamKey, teamRobot.teamKey); + } + + @Override + public int hashCode() { + return Objects.hash(year, robotName, key, teamKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TeamRobot {\n"); + sb.append(" year: ").append(toIndentedString(year)).append("\n"); + sb.append(" robotName: ").append(toIndentedString(robotName)).append("\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" teamKey: ").append(toIndentedString(teamKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/TeamSimple.java b/tba-api/src/main/java/thebluealliance/api/model/TeamSimple.java new file mode 100644 index 000000000..7a68073cb --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/TeamSimple.java @@ -0,0 +1,265 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * TeamSimple + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class TeamSimple { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @javax.annotation.Nonnull + private String key; + + public static final String SERIALIZED_NAME_TEAM_NUMBER = "team_number"; + @SerializedName(SERIALIZED_NAME_TEAM_NUMBER) + @javax.annotation.Nonnull + private Integer teamNumber; + + public static final String SERIALIZED_NAME_NICKNAME = "nickname"; + @SerializedName(SERIALIZED_NAME_NICKNAME) + @javax.annotation.Nonnull + private String nickname; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + @javax.annotation.Nonnull + private String name; + + public static final String SERIALIZED_NAME_CITY = "city"; + @SerializedName(SERIALIZED_NAME_CITY) + @javax.annotation.Nullable + private String city; + + public static final String SERIALIZED_NAME_STATE_PROV = "state_prov"; + @SerializedName(SERIALIZED_NAME_STATE_PROV) + @javax.annotation.Nullable + private String stateProv; + + public static final String SERIALIZED_NAME_COUNTRY = "country"; + @SerializedName(SERIALIZED_NAME_COUNTRY) + @javax.annotation.Nullable + private String country; + + public TeamSimple() { + } + + public TeamSimple key(@javax.annotation.Nonnull String key) { + + this.key = key; + return this; + } + + /** + * TBA team key with the format `frcXXXX` with `XXXX` representing the team number. + * @return key + */ + @javax.annotation.Nonnull + + public String getKey() { + return key; + } + + + public void setKey(@javax.annotation.Nonnull String key) { + this.key = key; + } + + public TeamSimple teamNumber(@javax.annotation.Nonnull Integer teamNumber) { + + this.teamNumber = teamNumber; + return this; + } + + /** + * Official team number issued by FIRST. + * @return teamNumber + */ + @javax.annotation.Nonnull + + public Integer getTeamNumber() { + return teamNumber; + } + + + public void setTeamNumber(@javax.annotation.Nonnull Integer teamNumber) { + this.teamNumber = teamNumber; + } + + public TeamSimple nickname(@javax.annotation.Nonnull String nickname) { + + this.nickname = nickname; + return this; + } + + /** + * Team nickname provided by FIRST. + * @return nickname + */ + @javax.annotation.Nonnull + + public String getNickname() { + return nickname; + } + + + public void setNickname(@javax.annotation.Nonnull String nickname) { + this.nickname = nickname; + } + + public TeamSimple name(@javax.annotation.Nonnull String name) { + + this.name = name; + return this; + } + + /** + * Official long name registered with FIRST. + * @return name + */ + @javax.annotation.Nonnull + + public String getName() { + return name; + } + + + public void setName(@javax.annotation.Nonnull String name) { + this.name = name; + } + + public TeamSimple city(@javax.annotation.Nullable String city) { + + this.city = city; + return this; + } + + /** + * City of team derived from parsing the address registered with FIRST. + * @return city + */ + @javax.annotation.Nullable + + public String getCity() { + return city; + } + + + public void setCity(@javax.annotation.Nullable String city) { + this.city = city; + } + + public TeamSimple stateProv(@javax.annotation.Nullable String stateProv) { + + this.stateProv = stateProv; + return this; + } + + /** + * State of team derived from parsing the address registered with FIRST. + * @return stateProv + */ + @javax.annotation.Nullable + + public String getStateProv() { + return stateProv; + } + + + public void setStateProv(@javax.annotation.Nullable String stateProv) { + this.stateProv = stateProv; + } + + public TeamSimple country(@javax.annotation.Nullable String country) { + + this.country = country; + return this; + } + + /** + * Country of team derived from parsing the address registered with FIRST. + * @return country + */ + @javax.annotation.Nullable + + public String getCountry() { + return country; + } + + + public void setCountry(@javax.annotation.Nullable String country) { + this.country = country; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TeamSimple teamSimple = (TeamSimple) o; + return Objects.equals(this.key, teamSimple.key) && + Objects.equals(this.teamNumber, teamSimple.teamNumber) && + Objects.equals(this.nickname, teamSimple.nickname) && + Objects.equals(this.name, teamSimple.name) && + Objects.equals(this.city, teamSimple.city) && + Objects.equals(this.stateProv, teamSimple.stateProv) && + Objects.equals(this.country, teamSimple.country); + } + + @Override + public int hashCode() { + return Objects.hash(key, teamNumber, nickname, name, city, stateProv, country); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TeamSimple {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" teamNumber: ").append(toIndentedString(teamNumber)).append("\n"); + sb.append(" nickname: ").append(toIndentedString(nickname)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" city: ").append(toIndentedString(city)).append("\n"); + sb.append(" stateProv: ").append(toIndentedString(stateProv)).append("\n"); + sb.append(" country: ").append(toIndentedString(country)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/WLTRecord.java b/tba-api/src/main/java/thebluealliance/api/model/WLTRecord.java new file mode 100644 index 000000000..dc6792eb3 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/WLTRecord.java @@ -0,0 +1,153 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; + +/** + * A Win-Loss-Tie record for a team, or an alliance. + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class WLTRecord { + public static final String SERIALIZED_NAME_LOSSES = "losses"; + @SerializedName(SERIALIZED_NAME_LOSSES) + @javax.annotation.Nonnull + private Integer losses; + + public static final String SERIALIZED_NAME_WINS = "wins"; + @SerializedName(SERIALIZED_NAME_WINS) + @javax.annotation.Nonnull + private Integer wins; + + public static final String SERIALIZED_NAME_TIES = "ties"; + @SerializedName(SERIALIZED_NAME_TIES) + @javax.annotation.Nonnull + private Integer ties; + + public WLTRecord() { + } + + public WLTRecord losses(@javax.annotation.Nonnull Integer losses) { + + this.losses = losses; + return this; + } + + /** + * Number of losses. + * @return losses + */ + @javax.annotation.Nonnull + + public Integer getLosses() { + return losses; + } + + + public void setLosses(@javax.annotation.Nonnull Integer losses) { + this.losses = losses; + } + + public WLTRecord wins(@javax.annotation.Nonnull Integer wins) { + + this.wins = wins; + return this; + } + + /** + * Number of wins. + * @return wins + */ + @javax.annotation.Nonnull + + public Integer getWins() { + return wins; + } + + + public void setWins(@javax.annotation.Nonnull Integer wins) { + this.wins = wins; + } + + public WLTRecord ties(@javax.annotation.Nonnull Integer ties) { + + this.ties = ties; + return this; + } + + /** + * Number of ties. + * @return ties + */ + @javax.annotation.Nonnull + + public Integer getTies() { + return ties; + } + + + public void setTies(@javax.annotation.Nonnull Integer ties) { + this.ties = ties; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WLTRecord wlTRecord = (WLTRecord) o; + return Objects.equals(this.losses, wlTRecord.losses) && + Objects.equals(this.wins, wlTRecord.wins) && + Objects.equals(this.ties, wlTRecord.ties); + } + + @Override + public int hashCode() { + return Objects.hash(losses, wins, ties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WLTRecord {\n"); + sb.append(" losses: ").append(toIndentedString(losses)).append("\n"); + sb.append(" wins: ").append(toIndentedString(wins)).append("\n"); + sb.append(" ties: ").append(toIndentedString(ties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/Webcast.java b/tba-api/src/main/java/thebluealliance/api/model/Webcast.java new file mode 100644 index 000000000..88a67a814 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/Webcast.java @@ -0,0 +1,260 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import org.openapitools.jackson.nullable.JsonNullable; + +/** + * Webcast + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class Webcast { + /** + * Type of webcast, typically descriptive of the streaming provider. + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + YOUTUBE(String.valueOf("youtube")), + + TWITCH(String.valueOf("twitch")), + + USTREAM(String.valueOf("ustream")), + + IFRAME(String.valueOf("iframe")), + + HTML5(String.valueOf("html5")), + + RTMP(String.valueOf("rtmp")), + + LIVESTREAM(String.valueOf("livestream")), + + DIRECT_LINK(String.valueOf("direct_link")), + + MMS(String.valueOf("mms")), + + JUSTIN(String.valueOf("justin")), + + STEMTV(String.valueOf("stemtv")), + + DACAST(String.valueOf("dacast")); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + @javax.annotation.Nonnull + private TypeEnum type; + + public static final String SERIALIZED_NAME_CHANNEL = "channel"; + @SerializedName(SERIALIZED_NAME_CHANNEL) + @javax.annotation.Nonnull + private String channel; + + public static final String SERIALIZED_NAME_DATE = "date"; + @SerializedName(SERIALIZED_NAME_DATE) + @javax.annotation.Nullable + private String date; + + public static final String SERIALIZED_NAME_FILE = "file"; + @SerializedName(SERIALIZED_NAME_FILE) + @javax.annotation.Nullable + private String _file; + + public Webcast() { + } + + public Webcast type(@javax.annotation.Nonnull TypeEnum type) { + + this.type = type; + return this; + } + + /** + * Type of webcast, typically descriptive of the streaming provider. + * @return type + */ + @javax.annotation.Nonnull + + public TypeEnum getType() { + return type; + } + + + public void setType(@javax.annotation.Nonnull TypeEnum type) { + this.type = type; + } + + public Webcast channel(@javax.annotation.Nonnull String channel) { + + this.channel = channel; + return this; + } + + /** + * Type specific channel information. May be the YouTube stream, or Twitch channel name. In the case of iframe types, contains HTML to embed the stream in an HTML iframe. + * @return channel + */ + @javax.annotation.Nonnull + + public String getChannel() { + return channel; + } + + + public void setChannel(@javax.annotation.Nonnull String channel) { + this.channel = channel; + } + + public Webcast date(@javax.annotation.Nullable String date) { + + this.date = date; + return this; + } + + /** + * The date for the webcast in `yyyy-mm-dd` format. May be null. + * @return date + */ + @javax.annotation.Nullable + + public String getDate() { + return date; + } + + + public void setDate(@javax.annotation.Nullable String date) { + this.date = date; + } + + public Webcast _file(@javax.annotation.Nullable String _file) { + + this._file = _file; + return this; + } + + /** + * File identification as may be required for some types. May be null. + * @return _file + */ + @javax.annotation.Nullable + + public String getFile() { + return _file; + } + + + public void setFile(@javax.annotation.Nullable String _file) { + this._file = _file; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Webcast webcast = (Webcast) o; + return Objects.equals(this.type, webcast.type) && + Objects.equals(this.channel, webcast.channel) && + Objects.equals(this.date, webcast.date) && + Objects.equals(this._file, webcast._file); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(type, channel, date, _file); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Webcast {\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); + sb.append(" date: ").append(toIndentedString(date)).append("\n"); + sb.append(" _file: ").append(toIndentedString(_file)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/Zebra.java b/tba-api/src/main/java/thebluealliance/api/model/Zebra.java new file mode 100644 index 000000000..f159567f5 --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/Zebra.java @@ -0,0 +1,165 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import thebluealliance.api.model.ZebraAlliances; + +/** + * Zebra + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class Zebra { + public static final String SERIALIZED_NAME_KEY = "key"; + @SerializedName(SERIALIZED_NAME_KEY) + @javax.annotation.Nonnull + private String key; + + public static final String SERIALIZED_NAME_TIMES = "times"; + @SerializedName(SERIALIZED_NAME_TIMES) + @javax.annotation.Nonnull + private List times = new ArrayList<>(); + + public static final String SERIALIZED_NAME_ALLIANCES = "alliances"; + @SerializedName(SERIALIZED_NAME_ALLIANCES) + @javax.annotation.Nonnull + private ZebraAlliances alliances; + + public Zebra() { + } + + public Zebra key(@javax.annotation.Nonnull String key) { + + this.key = key; + return this; + } + + /** + * TBA match key with the format `yyyy[EVENT_CODE]_[COMP_LEVEL]m[MATCH_NUMBER]`, where `yyyy` is the year, and `EVENT_CODE` is the event code of the event, `COMP_LEVEL` is (qm, ef, qf, sf, f), and `MATCH_NUMBER` is the match number in the competition level. A set number may be appended to the competition level if more than one match in required per set. + * @return key + */ + @javax.annotation.Nonnull + + public String getKey() { + return key; + } + + + public void setKey(@javax.annotation.Nonnull String key) { + this.key = key; + } + + public Zebra times(@javax.annotation.Nonnull List times) { + + this.times = times; + return this; + } + + public Zebra addTimesItem(Double timesItem) { + if (this.times == null) { + this.times = new ArrayList<>(); + } + this.times.add(timesItem); + return this; + } + + /** + * A list of relative timestamps for each data point. Each timestamp will correspond to the X and Y value at the same index in a team xs and ys arrays. `times`, all teams `xs` and all teams `ys` are guarenteed to be the same length. + * @return times + */ + @javax.annotation.Nonnull + + public List getTimes() { + return times; + } + + + public void setTimes(@javax.annotation.Nonnull List times) { + this.times = times; + } + + public Zebra alliances(@javax.annotation.Nonnull ZebraAlliances alliances) { + + this.alliances = alliances; + return this; + } + + /** + * Get alliances + * @return alliances + */ + @javax.annotation.Nonnull + + public ZebraAlliances getAlliances() { + return alliances; + } + + + public void setAlliances(@javax.annotation.Nonnull ZebraAlliances alliances) { + this.alliances = alliances; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Zebra zebra = (Zebra) o; + return Objects.equals(this.key, zebra.key) && + Objects.equals(this.times, zebra.times) && + Objects.equals(this.alliances, zebra.alliances); + } + + @Override + public int hashCode() { + return Objects.hash(key, times, alliances); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Zebra {\n"); + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" times: ").append(toIndentedString(times)).append("\n"); + sb.append(" alliances: ").append(toIndentedString(alliances)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/ZebraAlliances.java b/tba-api/src/main/java/thebluealliance/api/model/ZebraAlliances.java new file mode 100644 index 000000000..ac7931d3d --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/ZebraAlliances.java @@ -0,0 +1,145 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; +import thebluealliance.api.model.ZebraTeam; + +/** + * ZebraAlliances + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class ZebraAlliances { + public static final String SERIALIZED_NAME_RED = "red"; + @SerializedName(SERIALIZED_NAME_RED) + @javax.annotation.Nullable + private List red = new ArrayList<>(); + + public static final String SERIALIZED_NAME_BLUE = "blue"; + @SerializedName(SERIALIZED_NAME_BLUE) + @javax.annotation.Nullable + private List blue = new ArrayList<>(); + + public ZebraAlliances() { + } + + public ZebraAlliances red(@javax.annotation.Nullable List red) { + + this.red = red; + return this; + } + + public ZebraAlliances addRedItem(ZebraTeam redItem) { + if (this.red == null) { + this.red = new ArrayList<>(); + } + this.red.add(redItem); + return this; + } + + /** + * Zebra MotionWorks data for teams on the red alliance + * @return red + */ + @javax.annotation.Nullable + + public List getRed() { + return red; + } + + + public void setRed(@javax.annotation.Nullable List red) { + this.red = red; + } + + public ZebraAlliances blue(@javax.annotation.Nullable List blue) { + + this.blue = blue; + return this; + } + + public ZebraAlliances addBlueItem(ZebraTeam blueItem) { + if (this.blue == null) { + this.blue = new ArrayList<>(); + } + this.blue.add(blueItem); + return this; + } + + /** + * Zebra data for teams on the blue alliance + * @return blue + */ + @javax.annotation.Nullable + + public List getBlue() { + return blue; + } + + + public void setBlue(@javax.annotation.Nullable List blue) { + this.blue = blue; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ZebraAlliances zebraAlliances = (ZebraAlliances) o; + return Objects.equals(this.red, zebraAlliances.red) && + Objects.equals(this.blue, zebraAlliances.blue); + } + + @Override + public int hashCode() { + return Objects.hash(red, blue); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ZebraAlliances {\n"); + sb.append(" red: ").append(toIndentedString(red)).append("\n"); + sb.append(" blue: ").append(toIndentedString(blue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} + diff --git a/tba-api/src/main/java/thebluealliance/api/model/ZebraTeam.java b/tba-api/src/main/java/thebluealliance/api/model/ZebraTeam.java new file mode 100644 index 000000000..8233c699e --- /dev/null +++ b/tba-api/src/main/java/thebluealliance/api/model/ZebraTeam.java @@ -0,0 +1,172 @@ +/* + * The Blue Alliance API v3 + * # Overview Information and statistics about FIRST Robotics Competition teams and events. # Authentication All endpoints require an Auth Key to be passed in the header `X-TBA-Auth-Key`. If you do not have an auth key yet, you can obtain one from your [Account Page](/account). + * + * The version of the OpenAPI document: 3.9.7 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package thebluealliance.api.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.List; + +/** + * ZebraTeam + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2025-01-12T10:04:04.013721-06:00[America/Chicago]", comments = "Generator version: 7.10.0") +public class ZebraTeam { + public static final String SERIALIZED_NAME_TEAM_KEY = "team_key"; + @SerializedName(SERIALIZED_NAME_TEAM_KEY) + @javax.annotation.Nonnull + private String teamKey; + + public static final String SERIALIZED_NAME_XS = "xs"; + @SerializedName(SERIALIZED_NAME_XS) + @javax.annotation.Nonnull + private List xs = new ArrayList<>(); + + public static final String SERIALIZED_NAME_YS = "ys"; + @SerializedName(SERIALIZED_NAME_YS) + @javax.annotation.Nonnull + private List ys = new ArrayList<>(); + + public ZebraTeam() { + } + + public ZebraTeam teamKey(@javax.annotation.Nonnull String teamKey) { + + this.teamKey = teamKey; + return this; + } + + /** + * The TBA team key for the Zebra MotionWorks data. + * @return teamKey + */ + @javax.annotation.Nonnull + + public String getTeamKey() { + return teamKey; + } + + + public void setTeamKey(@javax.annotation.Nonnull String teamKey) { + this.teamKey = teamKey; + } + + public ZebraTeam xs(@javax.annotation.Nonnull List xs) { + + this.xs = xs; + return this; + } + + public ZebraTeam addXsItem(Double xsItem) { + if (this.xs == null) { + this.xs = new ArrayList<>(); + } + this.xs.add(xsItem); + return this; + } + + /** + * A list containing doubles and nulls representing a teams X position in feet at the corresponding timestamp. A null value represents no tracking data for a given timestamp. + * @return xs + */ + @javax.annotation.Nonnull + + public List getXs() { + return xs; + } + + + public void setXs(@javax.annotation.Nonnull List xs) { + this.xs = xs; + } + + public ZebraTeam ys(@javax.annotation.Nonnull List ys) { + + this.ys = ys; + return this; + } + + public ZebraTeam addYsItem(Double ysItem) { + if (this.ys == null) { + this.ys = new ArrayList<>(); + } + this.ys.add(ysItem); + return this; + } + + /** + * A list containing doubles and nulls representing a teams Y position in feet at the corresponding timestamp. A null value represents no tracking data for a given timestamp. + * @return ys + */ + @javax.annotation.Nonnull + + public List getYs() { + return ys; + } + + + public void setYs(@javax.annotation.Nonnull List ys) { + this.ys = ys; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ZebraTeam zebraTeam = (ZebraTeam) o; + return Objects.equals(this.teamKey, zebraTeam.teamKey) && + Objects.equals(this.xs, zebraTeam.xs) && + Objects.equals(this.ys, zebraTeam.ys); + } + + @Override + public int hashCode() { + return Objects.hash(teamKey, xs, ys); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ZebraTeam {\n"); + sb.append(" teamKey: ").append(toIndentedString(teamKey)).append("\n"); + sb.append(" xs: ").append(toIndentedString(xs)).append("\n"); + sb.append(" ys: ").append(toIndentedString(ys)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +} +