Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 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.4-SNAPSHOT'
version = '0.0.5-SNAPSHOT'
compileJava.options.encoding = 'UTF-8'

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public LocalDateTime messageTimeStamp() {

public record Payload(
@JsonProperty("SystemAddress") long systemAddress,
@JsonProperty("StarSystem")String starSystem,
@JsonProperty("StarSystem") String starSystem,
@JsonProperty("StarPos") double[] starPos,
@JsonProperty("MarketID") long marketId,
@JsonProperty("horizons") boolean horizons,
Expand All @@ -31,7 +31,13 @@ public record Payload(
@JsonProperty("Name") String name,
@JsonProperty("Latitude") long latitude,
@JsonProperty("Longitude") long longitude,
@JsonProperty("timestamp") String timestamp
@JsonProperty("timestamp") String timestamp,
@JsonProperty("StationGovernment") String stationGovernment,
@JsonProperty("StationAllegiance") String stationAllegiance,
@JsonProperty("StationEconomies") Economy[] stationEconomies,
@JsonProperty("StationFaction") Faction stationFaction,
@JsonProperty("StationServices") String[] stationServices,
@JsonProperty("StationEconomy") String stationEconomy
) implements EddnMessage.Payload {

@JsonProperty(value = "event", access = JsonProperty.Access.READ_ONLY)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ public record Commodity(
@JsonProperty("statusFlags") String[] statusFlags
) {}

record Economy(
@JsonProperty("name") String name,
@JsonProperty("proportion") double proportion
) {}
}

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

import com.fasterxml.jackson.annotation.JsonProperty;

public record Economy(
@JsonProperty("name") String name,
@JsonProperty("proportion") double proportion
) {}
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package io.edpn.backend.messageprocessorlib.application.dto.eddn;

import com.fasterxml.jackson.annotation.JsonProperty;

public record Faction(
@JsonProperty("Name") String name
) {}