package cdac.medinfo.sdk.hl7282.hl7net.commons;

import cdac.medinfo.sdk.hl7282.commoninterface.ISegmentSet;
import cdac.medinfo.sdk.hl7282.utils.EnumSubscriptionType;

/**
 * IPublishAgent should be implemented by any class who publish unsolicited update message
 * to interested listener using Query Parameter Definition(QPD) User Parameters (in successive fields) 
 */
public interface IPublishAgent 
{
	/**
	 * This will check that received message is subscription message or not.
	 * @param objSegmentSet object of Segment Set received.
	 * @return true if it is subscription message yes else false.
	 */
	public EnumSubscriptionType getSubscriptionType(ISegmentSet objSegmentSet);
}