-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e5dc1b
commit 257ecdc
Showing
75 changed files
with
17,812 additions
and
1,230 deletions.
There are no files selected for viewing
22 changes: 22 additions & 0 deletions
22
src/main/java/org/teknichrono/mgp/business/RiderService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package org.teknichrono.mgp.business; | ||
|
||
import org.eclipse.microprofile.rest.client.inject.RestClient; | ||
import org.teknichrono.mgp.client.RidersClient; | ||
import org.teknichrono.mgp.model.rider.RiderDetails; | ||
|
||
import javax.enterprise.context.ApplicationScoped; | ||
import javax.inject.Inject; | ||
|
||
@ApplicationScoped | ||
public class RiderService { | ||
|
||
@Inject | ||
@RestClient | ||
RidersClient riderClient; | ||
|
||
|
||
public RiderDetails getRider(Integer legacyId) { | ||
return riderClient.getRider(legacyId); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 2 additions & 4 deletions
6
src/main/java/org/teknichrono/mgp/model/out/ClassificationDetails.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,10 @@ | ||
package org.teknichrono.mgp.model.out; | ||
|
||
import org.teknichrono.mgp.model.result.Classification; | ||
|
||
import java.util.List; | ||
import org.teknichrono.mgp.model.result.RiderClassification; | ||
|
||
public interface ClassificationDetails { | ||
|
||
void fill(Classification c, List<SessionRider> ridersDetails); | ||
void fill(RiderClassification c); | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
44 changes: 4 additions & 40 deletions
44
src/main/java/org/teknichrono/mgp/model/result/Classification.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,45 +1,9 @@ | ||
package org.teknichrono.mgp.model.result; | ||
|
||
import com.opencsv.bean.CsvBindByName; | ||
import com.opencsv.bean.CsvBindByPosition; | ||
import java.util.List; | ||
|
||
public class Classification { | ||
|
||
public String id; | ||
|
||
@CsvBindByName(column = "POSITION") | ||
@CsvBindByPosition(position = 0) | ||
public Integer position; | ||
|
||
@CsvBindByName(column = "RIDER") | ||
@CsvBindByPosition(position = 1) | ||
public Rider rider; | ||
|
||
@CsvBindByName(column = "TEAM") | ||
@CsvBindByPosition(position = 2) | ||
public Team team; | ||
|
||
@CsvBindByName(column = "CONSTRUCTOR") | ||
@CsvBindByPosition(position = 3) | ||
public String constructor; | ||
|
||
@CsvBindByName(column = "BEST_LAP") | ||
@CsvBindByPosition(position = 3) | ||
public Lap best_lap; | ||
|
||
@CsvBindByName(column = "TOTAL_LAPS") | ||
@CsvBindByPosition(position = 4) | ||
public Integer total_laps; | ||
|
||
@CsvBindByPosition(position = 5) | ||
public String status; | ||
|
||
@CsvBindByName(column = "TOP_SPEED") | ||
@CsvBindByPosition(position = 6) | ||
public Float top_speed; | ||
|
||
@CsvBindByName(column = "GAP") | ||
@CsvBindByPosition(position = 7) | ||
public Gap gap; | ||
|
||
} | ||
public List<RiderClassification> classification; | ||
public List<Record> records; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
src/main/java/org/teknichrono/mgp/model/result/RiderClassification.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package org.teknichrono.mgp.model.result; | ||
|
||
import com.opencsv.bean.CsvBindByName; | ||
import com.opencsv.bean.CsvBindByPosition; | ||
|
||
public class RiderClassification { | ||
|
||
public String id; | ||
|
||
@CsvBindByName(column = "POSITION") | ||
@CsvBindByPosition(position = 0) | ||
public Integer position; | ||
|
||
@CsvBindByName(column = "RIDER") | ||
@CsvBindByPosition(position = 1) | ||
public Rider rider; | ||
|
||
@CsvBindByName(column = "TEAM") | ||
@CsvBindByPosition(position = 2) | ||
public Team team; | ||
|
||
@CsvBindByName(column = "CONSTRUCTOR") | ||
@CsvBindByPosition(position = 3) | ||
public Constructor constructor; | ||
|
||
@CsvBindByName(column = "BEST_LAP") | ||
@CsvBindByPosition(position = 3) | ||
public Lap best_lap; | ||
|
||
@CsvBindByName(column = "TOTAL_LAPS") | ||
@CsvBindByPosition(position = 4) | ||
public Integer total_laps; | ||
|
||
@CsvBindByPosition(position = 5) | ||
public String status; | ||
|
||
@CsvBindByName(column = "TOP_SPEED") | ||
@CsvBindByPosition(position = 6) | ||
public Float top_speed; | ||
|
||
@CsvBindByName(column = "GAP") | ||
@CsvBindByPosition(position = 7) | ||
public Gap gap; | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 1 addition & 5 deletions
6
src/main/java/org/teknichrono/mgp/model/result/SessionClassification.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
package org.teknichrono.mgp.model.result; | ||
|
||
import java.util.List; | ||
public class SessionClassification extends Classification { | ||
|
||
public class SessionClassification { | ||
|
||
public List<Classification> classification; | ||
public List<Record> records; | ||
public String file; | ||
|
||
} |
Oops, something went wrong.