Skip to content

Commit

Permalink
Add new field openHours to System
Browse files Browse the repository at this point in the history
  • Loading branch information
testower committed Jun 7, 2024
1 parent a015c00 commit 43d3a40
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ public System mapSystem(GBFSData systemInformation, FeedProvider feedProvider) {
.toList()
)
);
system.setOpeningHours(systemInformation.getOpeningHours());
system.setOperator(mapOperator(systemInformation.getOperator(), feedProvider));
system.setUrl(systemInformation.getUrl());
system.setPurchaseUrl(systemInformation.getPurchaseUrl());
Expand Down
9 changes: 9 additions & 0 deletions src/main/java/org/entur/lamassu/model/entities/System.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ public class System implements Entity {
private List<String> languages;
private TranslatedString name;
private TranslatedString shortName;
private String openingHours;
private Operator operator;
private String url;
private String purchaseUrl;
Expand Down Expand Up @@ -68,6 +69,14 @@ public void setShortName(TranslatedString shortName) {
this.shortName = shortName;
}

public String getOpeningHours() {
return openingHours;
}

public void setOpeningHours(String openingHours) {
this.openingHours = openingHours;
}

public Operator getOperator() {
return operator;
}
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/graphql/schema.graphqls
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ type System {
languages: [String!]!
name: TranslatedString!
shortName: TranslatedString
openingHours: String
operator: Operator!
url: String
purchaseUrl: String
Expand Down

0 comments on commit 43d3a40

Please sign in to comment.