package Proxy;


public class ConcreteContentGenerator implements ContentGenerator {

    private static ContentGenerator instance;

    private ConcreteContentGenerator() {
    }

    public static ContentGenerator getInstance() {
        if (instance == null) {
            instance = new ConcreteContentGenerator();
        }
        return instance;
    }

    @Override
    public String generateContent(User user) {
        switch (user.getCountry()) {
            case "Russian":
                return ("404 Not found!");
            default:
                return ("Content generated");
        }
    }
}
