From 87ccdf7eeb366b77792839b2a6ddde19fd737c9d Mon Sep 17 00:00:00 2001 From: PaulBredl Date: Fri, 7 Jun 2024 19:59:30 +0200 Subject: [PATCH] add version to api --- build.gradle | 4 ++-- .../iste/meitrex/scrumgame/ims/ImsConnector.java | 11 +++++++++++ 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/build.gradle b/build.gradle index 9487cb6..68c8eee 100644 --- a/build.gradle +++ b/build.gradle @@ -86,8 +86,8 @@ repositories { } dependencies { - implementation 'de.unistuttgart.iste.meitrex:meitrex-common:1.0.5' - implementation 'de.unistuttgart.iste.meitrex:gamification_engine:1.0.5a' + implementation 'de.unistuttgart.iste.meitrex:meitrex-common:1.0.6' + implementation 'de.unistuttgart.iste.meitrex:gamification_engine:1.0.6' implementation 'org.springframework.boot:spring-boot-starter-data-jpa' implementation 'org.springframework.boot:spring-boot-starter-graphql' implementation 'org.springframework.boot:spring-boot-starter-validation' diff --git a/src/main/java/de/unistuttgart/iste/meitrex/scrumgame/ims/ImsConnector.java b/src/main/java/de/unistuttgart/iste/meitrex/scrumgame/ims/ImsConnector.java index 17a6ae3..50d7308 100644 --- a/src/main/java/de/unistuttgart/iste/meitrex/scrumgame/ims/ImsConnector.java +++ b/src/main/java/de/unistuttgart/iste/meitrex/scrumgame/ims/ImsConnector.java @@ -46,6 +46,17 @@ public interface ImsConnector { */ List getEventsForIssue(String issueId, OffsetDateTime since); + /** + * Retrieves a list of events that have occurred in the ims project for a specific project. + * Returns only events that have occurred since the given timestamp. + * The events are CreateEventInputs, which are used to create events in the Scrum game. + * + * @param projectId The ID of the project. + * @param since The timestamp to retrieve events since. + * @return A list of create event inputs. + */ + List getEventsForProject(UUID projectId, OffsetDateTime since); + /** * Changes the title of an issue. *