mirror of
https://github.com/Sheldan/abstracto.git
synced 2026-05-26 15:53:25 +00:00
[AB-xxx] adding ability to refresh twitch stream notification texts
This commit is contained in:
@@ -11,6 +11,9 @@ import java.util.List;
|
||||
|
||||
@Component
|
||||
public class TwitchFeatureConfig implements FeatureConfig {
|
||||
|
||||
public static final String TWITCH_REFRESH_INTERVAL = "twitchRefreshInterval";
|
||||
|
||||
@Override
|
||||
public FeatureDefinition getFeature() {
|
||||
return TwitchFeatureDefinition.TWITCH;
|
||||
@@ -25,4 +28,9 @@ public class TwitchFeatureConfig implements FeatureConfig {
|
||||
public List<FeatureMode> getAvailableModes() {
|
||||
return Arrays.asList(TwitchFeatureMode.DELETE_NOTIFICATION, TwitchFeatureMode.UPDATE_NOTIFICATION);
|
||||
}
|
||||
|
||||
@Override
|
||||
public List<String> getRequiredSystemConfigKeys() {
|
||||
return List.of(TWITCH_REFRESH_INTERVAL);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -39,6 +39,9 @@ public class StreamSession {
|
||||
@Column(name = "updated", insertable = false, updatable = false)
|
||||
private Instant updated;
|
||||
|
||||
@Column(name = "lastUpdated")
|
||||
private Instant lastUpdated;
|
||||
|
||||
@Column(name = "startTime", nullable = false)
|
||||
private Instant startTime;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user