use of org.wso2.carbon.apimgt.api.model.botDataAPI.BotDetectionData in project carbon-apimgt by wso2.
the class BotDetectionMappingUtil method fromAlertSubscriptionToDTO.
/**
* Converts a single Bot Detection Alert Subscription model into a Bot Detection Alert Subscription DTO
*
* @param alertSubscription Bot Detection Alert Subscription model object
* @return Converted Bot Detection Alert Subscription DTO object
*/
public static BotDetectionAlertSubscriptionDTO fromAlertSubscriptionToDTO(BotDetectionData alertSubscription) {
BotDetectionAlertSubscriptionDTO alertSubscriptionDTO = new BotDetectionAlertSubscriptionDTO();
alertSubscriptionDTO.setUuid(alertSubscription.getUuid());
alertSubscriptionDTO.setEmail(alertSubscription.getEmail());
return alertSubscriptionDTO;
}
Aggregations