24 lines
545 B
Java
24 lines
545 B
Java
package de.ph87.kleinanzeigen.telegram.chat;
|
|
|
|
import lombok.Data;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
import java.util.ArrayList;
|
|
import java.util.List;
|
|
|
|
@Slf4j
|
|
@Data
|
|
@Component
|
|
@ConfigurationProperties(prefix = "de.ph87.kleinanzeigen.telegram.chat")
|
|
public class ChatConfig {
|
|
|
|
private List<Long> whitelist = new ArrayList<>();
|
|
|
|
public boolean isOnWhitelist(final long id) {
|
|
return whitelist.contains(id);
|
|
}
|
|
|
|
}
|