Skip to content

Commit

Permalink
Update package structure and version number
Browse files Browse the repository at this point in the history
The package structure for Data Transfer Object (DTO) classes have been updated, moving from 'eddn.data' to 'edpn.intermodulecommunication'. This change organizes code in a more logical, easily maintainable structure. Additionally, the backend-util library version has been updated to 0.2.0-SNAPSHOT, and current project version has been bumped to 1.0.0-SNAPSHOT.
  • Loading branch information
pveeckhout committed Mar 11, 2024
1 parent 91cc1bf commit b9add40
Show file tree
Hide file tree
Showing 18 changed files with 115 additions and 77 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ plugins {
}

group = 'io.edpn.backend'
version = '0.0.5-SNAPSHOT'
version = '1.0.0-SNAPSHOT'
compileJava.options.encoding = 'UTF-8'

java {
Expand All @@ -32,7 +32,7 @@ repositories {
}

ext {
backendUtilVersion = '0.0.3-SNAPSHOT'
backendUtilVersion = '0.2.0-SNAPSHOT'
jacksonVersion = '2.14.2'
junitJupiterVersion = "5.9.3"
}
Expand Down

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package io.edpn.backend.messageprocessorlib.application.dto.edpn.intermodulecommunication;

import com.fasterxml.jackson.annotation.JsonProperty;

public interface StationArrivalDistanceResponse {
@JsonProperty("stationName")
String stationName();

@JsonProperty("systemName")
String systemName();

@JsonProperty("arrivalDistance")
double arrivalDistance();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
package io.edpn.backend.messageprocessorlib.application.dto.edpn.intermodulecommunication;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.edpn.backend.util.Module;

public interface StationDataRequest {
@JsonProperty("requestingModule")
Module requestingModule();

@JsonProperty("stationName")
String stationName();

@JsonProperty("systemName")
String systemName();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package io.edpn.backend.messageprocessorlib.application.dto.edpn.intermodulecommunication;

import com.fasterxml.jackson.annotation.JsonProperty;

public interface StationMaxLandingPadSizeResponse {
@JsonProperty("stationName")
String stationName();

@JsonProperty("systemName")
String systemName();

@JsonProperty("maxLandingPadSize")
String maxLandingPadSize();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package io.edpn.backend.messageprocessorlib.application.dto.edpn.intermodulecommunication;

import com.fasterxml.jackson.annotation.JsonProperty;

public interface StationPlanetaryResponse {
@JsonProperty("stationName")
String stationName();

@JsonProperty("systemName")
String systemName();

@JsonProperty("planetary")
boolean planetary();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package io.edpn.backend.messageprocessorlib.application.dto.edpn.intermodulecommunication;

import com.fasterxml.jackson.annotation.JsonProperty;

public interface StationRequireOdysseyResponse {
@JsonProperty("stationName")
String stationName();

@JsonProperty("systemName")
String systemName();

@JsonProperty("requireOdyssey")
boolean requireOdyssey();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
package io.edpn.backend.messageprocessorlib.application.dto.edpn.intermodulecommunication;

import com.fasterxml.jackson.annotation.JsonProperty;

public interface SystemCoordinatesResponse {
@JsonProperty("systemName")
String systemName();

@JsonProperty("xCoordinate")
double xCoordinate();

@JsonProperty("yCoordinate")
double yCoordinate();

@JsonProperty("zCoordinate")
double zCoordinate();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package io.edpn.backend.messageprocessorlib.application.dto.edpn.intermodulecommunication;

import com.fasterxml.jackson.annotation.JsonProperty;
import io.edpn.backend.util.Module;

public interface SystemDataRequest {
@JsonProperty("requestingModule")
Module requestingModule();

@JsonProperty("systemName")
String systemName();
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package io.edpn.backend.messageprocessorlib.application.dto.edpn.intermodulecommunication;

import com.fasterxml.jackson.annotation.JsonProperty;

public interface SystemEliteIdResponse {
@JsonProperty("systemName")
String systemName();

@JsonProperty("eliteId")
long eliteId();
}
4 changes: 2 additions & 2 deletions src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

exports io.edpn.backend.messageprocessorlib.application.dto.eddn;
exports io.edpn.backend.messageprocessorlib.application.dto.eddn.journal;
exports io.edpn.backend.messageprocessorlib.application.dto.eddn.data;
exports io.edpn.backend.messageprocessorlib.application.dto.edpn.intermodulecommunication;
exports io.edpn.backend.messageprocessorlib.infrastructure.kafka.processor;

opens io.edpn.backend.messageprocessorlib.application.dto.eddn to com.fasterxml.jackson.databind;
opens io.edpn.backend.messageprocessorlib.application.dto.eddn.journal to com.fasterxml.jackson.databind;
opens io.edpn.backend.messageprocessorlib.application.dto.eddn.data to com.fasterxml.jackson.databind;
opens io.edpn.backend.messageprocessorlib.application.dto.edpn.intermodulecommunication to com.fasterxml.jackson.databind;
}

0 comments on commit b9add40

Please sign in to comment.