ftc_api_v3_client 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/config.json +1 -1
- data/ftc_api_v3_client-0.1.1.gem +0 -0
- data/lib/ftc_api_v3_client/api/events_api.rb +3 -103
- data/lib/ftc_api_v3_client/api/leagues_api.rb +0 -56
- data/lib/ftc_api_v3_client/api/regions_api.rb +0 -28
- data/lib/ftc_api_v3_client/api/seasons_api.rb +0 -4
- data/lib/ftc_api_v3_client/api/teams_api.rb +0 -28
- data/lib/ftc_api_v3_client/models/api_v3_advancement_from.rb +16 -1
- data/lib/ftc_api_v3_client/models/api_v3_advancement_from_slot.rb +2 -15
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match.rb +32 -43
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_details.rb +32 -43
- data/lib/ftc_api_v3_client/models/api_v3_alliance_match_results.rb +31 -2
- data/lib/ftc_api_v3_client/models/api_v3_alliance_playoff_match_participants.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_alliance_selection.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_alliance_simple_match_participants.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_award.rb +4 -30
- data/lib/ftc_api_v3_client/models/api_v3_award_recipient.rb +2 -1
- data/lib/ftc_api_v3_client/models/api_v3_basic_alliance_description.rb +9 -9
- data/lib/ftc_api_v3_client/models/api_v3_center_stage_remote_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_center_stage_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_cs_achievements_detail.rb +138 -26
- data/lib/ftc_api_v3_client/models/api_v3_cs_points_detail.rb +240 -16
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_achievements_detail.rb +129 -17
- data/lib/ftc_api_v3_client/models/api_v3_cs_remote_points_detail.rb +225 -15
- data/lib/ftc_api_v3_client/models/api_v3_decode_achievements_detail.rb +93 -23
- data/lib/ftc_api_v3_client/models/api_v3_decode_points_detail.rb +180 -12
- data/lib/ftc_api_v3_client/models/api_v3_decode_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_division.rb +2 -30
- data/lib/ftc_api_v3_client/models/api_v3_double_elimination_series_description.rb +34 -19
- data/lib/ftc_api_v3_client/models/api_v3_event.rb +32 -122
- data/lib/ftc_api_v3_client/models/api_v3_event_live_stream.rb +3 -15
- data/lib/ftc_api_v3_client/models/api_v3_event_participant.rb +2 -15
- data/lib/ftc_api_v3_client/models/api_v3_ff_achievements_detail.rb +185 -59
- data/lib/ftc_api_v3_client/models/api_v3_ff_points_detail.rb +285 -19
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_achievements_detail.rb +175 -35
- data/lib/ftc_api_v3_client/models/api_v3_ff_remote_points_detail.rb +240 -16
- data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_remote_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_freight_frenzy_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_into_the_deep_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_itd_achievements_detail.rb +156 -44
- data/lib/ftc_api_v3_client/models/api_v3_itd_points_detail.rb +195 -13
- data/lib/ftc_api_v3_client/models/api_v3_league.rb +4 -30
- data/lib/ftc_api_v3_client/models/api_v3_league_details.rb +4 -30
- data/lib/ftc_api_v3_client/models/api_v3_pit_map.rb +60 -4
- data/lib/ftc_api_v3_client/models/api_v3_pit_map_element.rb +66 -5
- data/lib/ftc_api_v3_client/models/api_v3_playoff_alliance.rb +17 -1
- data/lib/ftc_api_v3_client/models/api_v3_playoff_match_alliance.rb +15 -1
- data/lib/ftc_api_v3_client/models/api_v3_playoff_ranking.rb +90 -6
- data/lib/ftc_api_v3_client/models/api_v3_playoff_series_description.rb +33 -19
- data/lib/ftc_api_v3_client/models/api_v3_playoff_structure.rb +9 -9
- data/lib/ftc_api_v3_client/models/api_v3_power_play_achievements_detail.rb +107 -7
- data/lib/ftc_api_v3_client/models/api_v3_power_play_points_detail.rb +225 -15
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_achievements_detail.rb +121 -8
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_points_detail.rb +210 -14
- data/lib/ftc_api_v3_client/models/api_v3_power_play_remote_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_power_play_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_ranking.rb +90 -6
- data/lib/ftc_api_v3_client/models/api_v3_region.rb +2 -30
- data/lib/ftc_api_v3_client/models/api_v3_round_robin_alliance_description.rb +9 -9
- data/lib/ftc_api_v3_client/models/api_v3_season.rb +11 -39
- data/lib/ftc_api_v3_client/models/api_v3_seasons.rb +15 -1
- data/lib/ftc_api_v3_client/models/api_v3_series_alliance_description.rb +10 -24
- data/lib/ftc_api_v3_client/models/api_v3_simple_event.rb +15 -120
- data/lib/ftc_api_v3_client/models/api_v3_simple_team.rb +3 -45
- data/lib/ftc_api_v3_client/models/api_v3_single_award_recipient.rb +4 -31
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match.rb +32 -43
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_details.rb +32 -43
- data/lib/ftc_api_v3_client/models/api_v3_single_team_match_results.rb +15 -1
- data/lib/ftc_api_v3_client/models/api_v3_skystone_achievements_detail.rb +165 -11
- data/lib/ftc_api_v3_client/models/api_v3_skystone_points_detail.rb +225 -15
- data/lib/ftc_api_v3_client/models/api_v3_skystone_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_team.rb +17 -54
- data/lib/ftc_api_v3_client/models/api_v3_team_avatar.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_team_history.rb +15 -54
- data/lib/ftc_api_v3_client/models/api_v3_ug_achievements_detail.rb +138 -26
- data/lib/ftc_api_v3_client/models/api_v3_ug_points_detail.rb +210 -14
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_achievements_detail.rb +138 -26
- data/lib/ftc_api_v3_client/models/api_v3_ug_remote_points_detail.rb +210 -14
- data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_remote_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/models/api_v3_ultimate_goal_score_detail.rb +1 -15
- data/lib/ftc_api_v3_client/version.rb +1 -1
- data/update.sh +1 -1
- metadata +2 -1
|
@@ -150,16 +150,8 @@ module FtcApiV3Client
|
|
|
150
150
|
# List of attributes with nullable: true
|
|
151
151
|
def self.openapi_nullable
|
|
152
152
|
Set.new([
|
|
153
|
-
:'
|
|
154
|
-
:'
|
|
155
|
-
:'auto_tower_high',
|
|
156
|
-
:'dc_tower_low',
|
|
157
|
-
:'dc_tower_mid',
|
|
158
|
-
:'dc_tower_high',
|
|
159
|
-
:'wobble1_rings',
|
|
160
|
-
:'wobble2_rings',
|
|
161
|
-
:'minor_penalties',
|
|
162
|
-
:'major_penalties'
|
|
153
|
+
:'wobble1_end',
|
|
154
|
+
:'wobble2_end',
|
|
163
155
|
])
|
|
164
156
|
end
|
|
165
157
|
|
|
@@ -333,6 +325,18 @@ module FtcApiV3Client
|
|
|
333
325
|
invalid_properties.push('invalid value for "wobble2_delivered", wobble2_delivered cannot be nil.')
|
|
334
326
|
end
|
|
335
327
|
|
|
328
|
+
if @auto_tower_low.nil?
|
|
329
|
+
invalid_properties.push('invalid value for "auto_tower_low", auto_tower_low cannot be nil.')
|
|
330
|
+
end
|
|
331
|
+
|
|
332
|
+
if @auto_tower_mid.nil?
|
|
333
|
+
invalid_properties.push('invalid value for "auto_tower_mid", auto_tower_mid cannot be nil.')
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
if @auto_tower_high.nil?
|
|
337
|
+
invalid_properties.push('invalid value for "auto_tower_high", auto_tower_high cannot be nil.')
|
|
338
|
+
end
|
|
339
|
+
|
|
336
340
|
if @auto_power_shot_left.nil?
|
|
337
341
|
invalid_properties.push('invalid value for "auto_power_shot_left", auto_power_shot_left cannot be nil.')
|
|
338
342
|
end
|
|
@@ -345,12 +349,24 @@ module FtcApiV3Client
|
|
|
345
349
|
invalid_properties.push('invalid value for "auto_power_shot_right", auto_power_shot_right cannot be nil.')
|
|
346
350
|
end
|
|
347
351
|
|
|
348
|
-
if @
|
|
349
|
-
invalid_properties.push('invalid value for "
|
|
352
|
+
if @dc_tower_low.nil?
|
|
353
|
+
invalid_properties.push('invalid value for "dc_tower_low", dc_tower_low cannot be nil.')
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
if @dc_tower_mid.nil?
|
|
357
|
+
invalid_properties.push('invalid value for "dc_tower_mid", dc_tower_mid cannot be nil.')
|
|
358
|
+
end
|
|
359
|
+
|
|
360
|
+
if @dc_tower_high.nil?
|
|
361
|
+
invalid_properties.push('invalid value for "dc_tower_high", dc_tower_high cannot be nil.')
|
|
350
362
|
end
|
|
351
363
|
|
|
352
|
-
if @
|
|
353
|
-
invalid_properties.push('invalid value for "
|
|
364
|
+
if @wobble1_rings.nil?
|
|
365
|
+
invalid_properties.push('invalid value for "wobble1_rings", wobble1_rings cannot be nil.')
|
|
366
|
+
end
|
|
367
|
+
|
|
368
|
+
if @wobble2_rings.nil?
|
|
369
|
+
invalid_properties.push('invalid value for "wobble2_rings", wobble2_rings cannot be nil.')
|
|
354
370
|
end
|
|
355
371
|
|
|
356
372
|
if @end_power_shot_left.nil?
|
|
@@ -365,6 +381,14 @@ module FtcApiV3Client
|
|
|
365
381
|
invalid_properties.push('invalid value for "end_power_shot_right", end_power_shot_right cannot be nil.')
|
|
366
382
|
end
|
|
367
383
|
|
|
384
|
+
if @minor_penalties.nil?
|
|
385
|
+
invalid_properties.push('invalid value for "minor_penalties", minor_penalties cannot be nil.')
|
|
386
|
+
end
|
|
387
|
+
|
|
388
|
+
if @major_penalties.nil?
|
|
389
|
+
invalid_properties.push('invalid value for "major_penalties", major_penalties cannot be nil.')
|
|
390
|
+
end
|
|
391
|
+
|
|
368
392
|
invalid_properties
|
|
369
393
|
end
|
|
370
394
|
|
|
@@ -376,14 +400,22 @@ module FtcApiV3Client
|
|
|
376
400
|
return false if @robot2_navigated.nil?
|
|
377
401
|
return false if @wobble1_delivered.nil?
|
|
378
402
|
return false if @wobble2_delivered.nil?
|
|
403
|
+
return false if @auto_tower_low.nil?
|
|
404
|
+
return false if @auto_tower_mid.nil?
|
|
405
|
+
return false if @auto_tower_high.nil?
|
|
379
406
|
return false if @auto_power_shot_left.nil?
|
|
380
407
|
return false if @auto_power_shot_center.nil?
|
|
381
408
|
return false if @auto_power_shot_right.nil?
|
|
382
|
-
return false if @
|
|
383
|
-
return false if @
|
|
409
|
+
return false if @dc_tower_low.nil?
|
|
410
|
+
return false if @dc_tower_mid.nil?
|
|
411
|
+
return false if @dc_tower_high.nil?
|
|
412
|
+
return false if @wobble1_rings.nil?
|
|
413
|
+
return false if @wobble2_rings.nil?
|
|
384
414
|
return false if @end_power_shot_left.nil?
|
|
385
415
|
return false if @end_power_shot_center.nil?
|
|
386
416
|
return false if @end_power_shot_right.nil?
|
|
417
|
+
return false if @minor_penalties.nil?
|
|
418
|
+
return false if @major_penalties.nil?
|
|
387
419
|
true
|
|
388
420
|
end
|
|
389
421
|
|
|
@@ -427,6 +459,36 @@ module FtcApiV3Client
|
|
|
427
459
|
@wobble2_delivered = wobble2_delivered
|
|
428
460
|
end
|
|
429
461
|
|
|
462
|
+
# Custom attribute writer method with validation
|
|
463
|
+
# @param [Object] auto_tower_low Value to be assigned
|
|
464
|
+
def auto_tower_low=(auto_tower_low)
|
|
465
|
+
if auto_tower_low.nil?
|
|
466
|
+
fail ArgumentError, 'auto_tower_low cannot be nil'
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
@auto_tower_low = auto_tower_low
|
|
470
|
+
end
|
|
471
|
+
|
|
472
|
+
# Custom attribute writer method with validation
|
|
473
|
+
# @param [Object] auto_tower_mid Value to be assigned
|
|
474
|
+
def auto_tower_mid=(auto_tower_mid)
|
|
475
|
+
if auto_tower_mid.nil?
|
|
476
|
+
fail ArgumentError, 'auto_tower_mid cannot be nil'
|
|
477
|
+
end
|
|
478
|
+
|
|
479
|
+
@auto_tower_mid = auto_tower_mid
|
|
480
|
+
end
|
|
481
|
+
|
|
482
|
+
# Custom attribute writer method with validation
|
|
483
|
+
# @param [Object] auto_tower_high Value to be assigned
|
|
484
|
+
def auto_tower_high=(auto_tower_high)
|
|
485
|
+
if auto_tower_high.nil?
|
|
486
|
+
fail ArgumentError, 'auto_tower_high cannot be nil'
|
|
487
|
+
end
|
|
488
|
+
|
|
489
|
+
@auto_tower_high = auto_tower_high
|
|
490
|
+
end
|
|
491
|
+
|
|
430
492
|
# Custom attribute writer method with validation
|
|
431
493
|
# @param [Object] auto_power_shot_left Value to be assigned
|
|
432
494
|
def auto_power_shot_left=(auto_power_shot_left)
|
|
@@ -458,23 +520,53 @@ module FtcApiV3Client
|
|
|
458
520
|
end
|
|
459
521
|
|
|
460
522
|
# Custom attribute writer method with validation
|
|
461
|
-
# @param [Object]
|
|
462
|
-
def
|
|
463
|
-
if
|
|
464
|
-
fail ArgumentError, '
|
|
523
|
+
# @param [Object] dc_tower_low Value to be assigned
|
|
524
|
+
def dc_tower_low=(dc_tower_low)
|
|
525
|
+
if dc_tower_low.nil?
|
|
526
|
+
fail ArgumentError, 'dc_tower_low cannot be nil'
|
|
527
|
+
end
|
|
528
|
+
|
|
529
|
+
@dc_tower_low = dc_tower_low
|
|
530
|
+
end
|
|
531
|
+
|
|
532
|
+
# Custom attribute writer method with validation
|
|
533
|
+
# @param [Object] dc_tower_mid Value to be assigned
|
|
534
|
+
def dc_tower_mid=(dc_tower_mid)
|
|
535
|
+
if dc_tower_mid.nil?
|
|
536
|
+
fail ArgumentError, 'dc_tower_mid cannot be nil'
|
|
537
|
+
end
|
|
538
|
+
|
|
539
|
+
@dc_tower_mid = dc_tower_mid
|
|
540
|
+
end
|
|
541
|
+
|
|
542
|
+
# Custom attribute writer method with validation
|
|
543
|
+
# @param [Object] dc_tower_high Value to be assigned
|
|
544
|
+
def dc_tower_high=(dc_tower_high)
|
|
545
|
+
if dc_tower_high.nil?
|
|
546
|
+
fail ArgumentError, 'dc_tower_high cannot be nil'
|
|
547
|
+
end
|
|
548
|
+
|
|
549
|
+
@dc_tower_high = dc_tower_high
|
|
550
|
+
end
|
|
551
|
+
|
|
552
|
+
# Custom attribute writer method with validation
|
|
553
|
+
# @param [Object] wobble1_rings Value to be assigned
|
|
554
|
+
def wobble1_rings=(wobble1_rings)
|
|
555
|
+
if wobble1_rings.nil?
|
|
556
|
+
fail ArgumentError, 'wobble1_rings cannot be nil'
|
|
465
557
|
end
|
|
466
558
|
|
|
467
|
-
@
|
|
559
|
+
@wobble1_rings = wobble1_rings
|
|
468
560
|
end
|
|
469
561
|
|
|
470
562
|
# Custom attribute writer method with validation
|
|
471
|
-
# @param [Object]
|
|
472
|
-
def
|
|
473
|
-
if
|
|
474
|
-
fail ArgumentError, '
|
|
563
|
+
# @param [Object] wobble2_rings Value to be assigned
|
|
564
|
+
def wobble2_rings=(wobble2_rings)
|
|
565
|
+
if wobble2_rings.nil?
|
|
566
|
+
fail ArgumentError, 'wobble2_rings cannot be nil'
|
|
475
567
|
end
|
|
476
568
|
|
|
477
|
-
@
|
|
569
|
+
@wobble2_rings = wobble2_rings
|
|
478
570
|
end
|
|
479
571
|
|
|
480
572
|
# Custom attribute writer method with validation
|
|
@@ -507,6 +599,26 @@ module FtcApiV3Client
|
|
|
507
599
|
@end_power_shot_right = end_power_shot_right
|
|
508
600
|
end
|
|
509
601
|
|
|
602
|
+
# Custom attribute writer method with validation
|
|
603
|
+
# @param [Object] minor_penalties Value to be assigned
|
|
604
|
+
def minor_penalties=(minor_penalties)
|
|
605
|
+
if minor_penalties.nil?
|
|
606
|
+
fail ArgumentError, 'minor_penalties cannot be nil'
|
|
607
|
+
end
|
|
608
|
+
|
|
609
|
+
@minor_penalties = minor_penalties
|
|
610
|
+
end
|
|
611
|
+
|
|
612
|
+
# Custom attribute writer method with validation
|
|
613
|
+
# @param [Object] major_penalties Value to be assigned
|
|
614
|
+
def major_penalties=(major_penalties)
|
|
615
|
+
if major_penalties.nil?
|
|
616
|
+
fail ArgumentError, 'major_penalties cannot be nil'
|
|
617
|
+
end
|
|
618
|
+
|
|
619
|
+
@major_penalties = major_penalties
|
|
620
|
+
end
|
|
621
|
+
|
|
510
622
|
# Checks equality by comparing each attribute.
|
|
511
623
|
# @param [Object] Object to be compared
|
|
512
624
|
def ==(o)
|
|
@@ -97,20 +97,6 @@ module FtcApiV3Client
|
|
|
97
97
|
# List of attributes with nullable: true
|
|
98
98
|
def self.openapi_nullable
|
|
99
99
|
Set.new([
|
|
100
|
-
:'auto_navigation_points',
|
|
101
|
-
:'auto_wobble_points',
|
|
102
|
-
:'auto_tower_points',
|
|
103
|
-
:'auto_power_shot_points',
|
|
104
|
-
:'dc_tower_points',
|
|
105
|
-
:'end_wobble_points',
|
|
106
|
-
:'end_wobble_ring_points',
|
|
107
|
-
:'end_power_shot_points',
|
|
108
|
-
:'auto_points',
|
|
109
|
-
:'dc_points',
|
|
110
|
-
:'endgame_points',
|
|
111
|
-
:'penalty_points_committed',
|
|
112
|
-
:'pre_penalty_total',
|
|
113
|
-
:'adjust_points'
|
|
114
100
|
])
|
|
115
101
|
end
|
|
116
102
|
|
|
@@ -220,6 +206,62 @@ module FtcApiV3Client
|
|
|
220
206
|
def list_invalid_properties
|
|
221
207
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
222
208
|
invalid_properties = Array.new
|
|
209
|
+
if @auto_navigation_points.nil?
|
|
210
|
+
invalid_properties.push('invalid value for "auto_navigation_points", auto_navigation_points cannot be nil.')
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if @auto_wobble_points.nil?
|
|
214
|
+
invalid_properties.push('invalid value for "auto_wobble_points", auto_wobble_points cannot be nil.')
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
if @auto_tower_points.nil?
|
|
218
|
+
invalid_properties.push('invalid value for "auto_tower_points", auto_tower_points cannot be nil.')
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if @auto_power_shot_points.nil?
|
|
222
|
+
invalid_properties.push('invalid value for "auto_power_shot_points", auto_power_shot_points cannot be nil.')
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
if @dc_tower_points.nil?
|
|
226
|
+
invalid_properties.push('invalid value for "dc_tower_points", dc_tower_points cannot be nil.')
|
|
227
|
+
end
|
|
228
|
+
|
|
229
|
+
if @end_wobble_points.nil?
|
|
230
|
+
invalid_properties.push('invalid value for "end_wobble_points", end_wobble_points cannot be nil.')
|
|
231
|
+
end
|
|
232
|
+
|
|
233
|
+
if @end_wobble_ring_points.nil?
|
|
234
|
+
invalid_properties.push('invalid value for "end_wobble_ring_points", end_wobble_ring_points cannot be nil.')
|
|
235
|
+
end
|
|
236
|
+
|
|
237
|
+
if @end_power_shot_points.nil?
|
|
238
|
+
invalid_properties.push('invalid value for "end_power_shot_points", end_power_shot_points cannot be nil.')
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
if @auto_points.nil?
|
|
242
|
+
invalid_properties.push('invalid value for "auto_points", auto_points cannot be nil.')
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
if @dc_points.nil?
|
|
246
|
+
invalid_properties.push('invalid value for "dc_points", dc_points cannot be nil.')
|
|
247
|
+
end
|
|
248
|
+
|
|
249
|
+
if @endgame_points.nil?
|
|
250
|
+
invalid_properties.push('invalid value for "endgame_points", endgame_points cannot be nil.')
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
if @penalty_points_committed.nil?
|
|
254
|
+
invalid_properties.push('invalid value for "penalty_points_committed", penalty_points_committed cannot be nil.')
|
|
255
|
+
end
|
|
256
|
+
|
|
257
|
+
if @pre_penalty_total.nil?
|
|
258
|
+
invalid_properties.push('invalid value for "pre_penalty_total", pre_penalty_total cannot be nil.')
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
if @adjust_points.nil?
|
|
262
|
+
invalid_properties.push('invalid value for "adjust_points", adjust_points cannot be nil.')
|
|
263
|
+
end
|
|
264
|
+
|
|
223
265
|
invalid_properties
|
|
224
266
|
end
|
|
225
267
|
|
|
@@ -227,9 +269,163 @@ module FtcApiV3Client
|
|
|
227
269
|
# @return true if the model is valid
|
|
228
270
|
def valid?
|
|
229
271
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
272
|
+
return false if @auto_navigation_points.nil?
|
|
273
|
+
return false if @auto_wobble_points.nil?
|
|
274
|
+
return false if @auto_tower_points.nil?
|
|
275
|
+
return false if @auto_power_shot_points.nil?
|
|
276
|
+
return false if @dc_tower_points.nil?
|
|
277
|
+
return false if @end_wobble_points.nil?
|
|
278
|
+
return false if @end_wobble_ring_points.nil?
|
|
279
|
+
return false if @end_power_shot_points.nil?
|
|
280
|
+
return false if @auto_points.nil?
|
|
281
|
+
return false if @dc_points.nil?
|
|
282
|
+
return false if @endgame_points.nil?
|
|
283
|
+
return false if @penalty_points_committed.nil?
|
|
284
|
+
return false if @pre_penalty_total.nil?
|
|
285
|
+
return false if @adjust_points.nil?
|
|
230
286
|
true
|
|
231
287
|
end
|
|
232
288
|
|
|
289
|
+
# Custom attribute writer method with validation
|
|
290
|
+
# @param [Object] auto_navigation_points Value to be assigned
|
|
291
|
+
def auto_navigation_points=(auto_navigation_points)
|
|
292
|
+
if auto_navigation_points.nil?
|
|
293
|
+
fail ArgumentError, 'auto_navigation_points cannot be nil'
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
@auto_navigation_points = auto_navigation_points
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
# Custom attribute writer method with validation
|
|
300
|
+
# @param [Object] auto_wobble_points Value to be assigned
|
|
301
|
+
def auto_wobble_points=(auto_wobble_points)
|
|
302
|
+
if auto_wobble_points.nil?
|
|
303
|
+
fail ArgumentError, 'auto_wobble_points cannot be nil'
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
@auto_wobble_points = auto_wobble_points
|
|
307
|
+
end
|
|
308
|
+
|
|
309
|
+
# Custom attribute writer method with validation
|
|
310
|
+
# @param [Object] auto_tower_points Value to be assigned
|
|
311
|
+
def auto_tower_points=(auto_tower_points)
|
|
312
|
+
if auto_tower_points.nil?
|
|
313
|
+
fail ArgumentError, 'auto_tower_points cannot be nil'
|
|
314
|
+
end
|
|
315
|
+
|
|
316
|
+
@auto_tower_points = auto_tower_points
|
|
317
|
+
end
|
|
318
|
+
|
|
319
|
+
# Custom attribute writer method with validation
|
|
320
|
+
# @param [Object] auto_power_shot_points Value to be assigned
|
|
321
|
+
def auto_power_shot_points=(auto_power_shot_points)
|
|
322
|
+
if auto_power_shot_points.nil?
|
|
323
|
+
fail ArgumentError, 'auto_power_shot_points cannot be nil'
|
|
324
|
+
end
|
|
325
|
+
|
|
326
|
+
@auto_power_shot_points = auto_power_shot_points
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
# Custom attribute writer method with validation
|
|
330
|
+
# @param [Object] dc_tower_points Value to be assigned
|
|
331
|
+
def dc_tower_points=(dc_tower_points)
|
|
332
|
+
if dc_tower_points.nil?
|
|
333
|
+
fail ArgumentError, 'dc_tower_points cannot be nil'
|
|
334
|
+
end
|
|
335
|
+
|
|
336
|
+
@dc_tower_points = dc_tower_points
|
|
337
|
+
end
|
|
338
|
+
|
|
339
|
+
# Custom attribute writer method with validation
|
|
340
|
+
# @param [Object] end_wobble_points Value to be assigned
|
|
341
|
+
def end_wobble_points=(end_wobble_points)
|
|
342
|
+
if end_wobble_points.nil?
|
|
343
|
+
fail ArgumentError, 'end_wobble_points cannot be nil'
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
@end_wobble_points = end_wobble_points
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
# Custom attribute writer method with validation
|
|
350
|
+
# @param [Object] end_wobble_ring_points Value to be assigned
|
|
351
|
+
def end_wobble_ring_points=(end_wobble_ring_points)
|
|
352
|
+
if end_wobble_ring_points.nil?
|
|
353
|
+
fail ArgumentError, 'end_wobble_ring_points cannot be nil'
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
@end_wobble_ring_points = end_wobble_ring_points
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
# Custom attribute writer method with validation
|
|
360
|
+
# @param [Object] end_power_shot_points Value to be assigned
|
|
361
|
+
def end_power_shot_points=(end_power_shot_points)
|
|
362
|
+
if end_power_shot_points.nil?
|
|
363
|
+
fail ArgumentError, 'end_power_shot_points cannot be nil'
|
|
364
|
+
end
|
|
365
|
+
|
|
366
|
+
@end_power_shot_points = end_power_shot_points
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
# Custom attribute writer method with validation
|
|
370
|
+
# @param [Object] auto_points Value to be assigned
|
|
371
|
+
def auto_points=(auto_points)
|
|
372
|
+
if auto_points.nil?
|
|
373
|
+
fail ArgumentError, 'auto_points cannot be nil'
|
|
374
|
+
end
|
|
375
|
+
|
|
376
|
+
@auto_points = auto_points
|
|
377
|
+
end
|
|
378
|
+
|
|
379
|
+
# Custom attribute writer method with validation
|
|
380
|
+
# @param [Object] dc_points Value to be assigned
|
|
381
|
+
def dc_points=(dc_points)
|
|
382
|
+
if dc_points.nil?
|
|
383
|
+
fail ArgumentError, 'dc_points cannot be nil'
|
|
384
|
+
end
|
|
385
|
+
|
|
386
|
+
@dc_points = dc_points
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
# Custom attribute writer method with validation
|
|
390
|
+
# @param [Object] endgame_points Value to be assigned
|
|
391
|
+
def endgame_points=(endgame_points)
|
|
392
|
+
if endgame_points.nil?
|
|
393
|
+
fail ArgumentError, 'endgame_points cannot be nil'
|
|
394
|
+
end
|
|
395
|
+
|
|
396
|
+
@endgame_points = endgame_points
|
|
397
|
+
end
|
|
398
|
+
|
|
399
|
+
# Custom attribute writer method with validation
|
|
400
|
+
# @param [Object] penalty_points_committed Value to be assigned
|
|
401
|
+
def penalty_points_committed=(penalty_points_committed)
|
|
402
|
+
if penalty_points_committed.nil?
|
|
403
|
+
fail ArgumentError, 'penalty_points_committed cannot be nil'
|
|
404
|
+
end
|
|
405
|
+
|
|
406
|
+
@penalty_points_committed = penalty_points_committed
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
# Custom attribute writer method with validation
|
|
410
|
+
# @param [Object] pre_penalty_total Value to be assigned
|
|
411
|
+
def pre_penalty_total=(pre_penalty_total)
|
|
412
|
+
if pre_penalty_total.nil?
|
|
413
|
+
fail ArgumentError, 'pre_penalty_total cannot be nil'
|
|
414
|
+
end
|
|
415
|
+
|
|
416
|
+
@pre_penalty_total = pre_penalty_total
|
|
417
|
+
end
|
|
418
|
+
|
|
419
|
+
# Custom attribute writer method with validation
|
|
420
|
+
# @param [Object] adjust_points Value to be assigned
|
|
421
|
+
def adjust_points=(adjust_points)
|
|
422
|
+
if adjust_points.nil?
|
|
423
|
+
fail ArgumentError, 'adjust_points cannot be nil'
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
@adjust_points = adjust_points
|
|
427
|
+
end
|
|
428
|
+
|
|
233
429
|
# Checks equality by comparing each attribute.
|
|
234
430
|
# @param [Object] Object to be compared
|
|
235
431
|
def ==(o)
|