

package com.flipkart.flux.examples.externalevents;

import com.flipkart.flux.client.model.ExternalEvent;
import com.flipkart.flux.client.model.Task;

import javax.inject.Singleton;

@Singleton
public class ManualSellerVerificationService {
    @Task(version = 1, timeout = 1000l)
    public SellerVerificationStatus waitForVerification(@ExternalEvent("sellerVerification") SellerVerificationStatus verificationStatus) {
        System.out.println("[ManualSellerVerificationService] Received verification status " + verificationStatus.isVerifiedSeller() + " for seller " + verificationStatus.getSellerId());
        return verificationStatus;
    }
}
