-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
- Loading branch information
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#Thu Jan 19 00:16:22 CET 2017 | ||
#Fri May 26 14:41:09 CEST 2017 | ||
distributionBase=GRADLE_USER_HOME | ||
distributionPath=wrapper/dists | ||
zipStoreBase=GRADLE_USER_HOME | ||
zipStorePath=wrapper/dists | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.2.1-all.zip | ||
distributionUrl=https\://services.gradle.org/distributions/gradle-3.5-all.zip |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
rootProject.name = 'faf-server' | ||
rootProject.name = 'faf-java-server' |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/bin/sh | ||
|
||
wget -q -o /dev/null http://localhost:8010 | ||
|
||
exit $? |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
package com.faforever.server.api.dto; | ||
|
||
import com.faforever.server.stats.event.EventUpdate; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Data; | ||
|
||
@Data | ||
@AllArgsConstructor | ||
public class EventUpdateRequest { | ||
|
||
private final String playerId; | ||
private final String eventId; | ||
private final int count; | ||
|
||
public static EventUpdateRequest fromInternal(EventUpdate eventUpdate) { | ||
return new EventUpdateRequest( | ||
String.valueOf(eventUpdate.getPlayerId()), | ||
eventUpdate.getEventId().getId(), | ||
eventUpdate.getUpdateCount() | ||
); | ||
} | ||
} |