All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.manywho.sdk.services.validation.social.LikeMessageValidator Maven / Gradle / Ivy

There is a newer version: 2.0.1
Show newest version
package com.manywho.sdk.services.validation.social;

import com.manywho.sdk.api.run.elements.config.SocialServiceRequest;
import com.manywho.sdk.services.validation.AbstractConstraintValidator;
import com.manywho.sdk.services.validation.ServiceRequestValidator;

import javax.inject.Inject;
import javax.validation.ConstraintValidatorContext;

public class LikeMessageValidator extends AbstractConstraintValidator {
    private ServiceRequestValidator serviceRequestValidator;

    @Inject
    public LikeMessageValidator(ServiceRequestValidator serviceRequestValidator) {
        this.serviceRequestValidator = serviceRequestValidator;
    }

    @Override
    public boolean isValid(SocialServiceRequest socialServiceRequest, ConstraintValidatorContext constraintValidatorContext) {
        return serviceRequestValidator.isValid(socialServiceRequest, constraintValidatorContext);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy