package com.gdn.x.beirut.services;

import org.springframework.stereotype.Service;

import com.gdn.common.base.domainevent.subscriber.DomainEventListener;
import com.gdn.common.base.domainevent.subscriber.SubscribeDomainEvent;
import com.gdn.x.beirut.domain.event.model.CandidateNewInsert;
import com.gdn.x.beirut.domain.event.model.DomainEventName;

@Service
@SubscribeDomainEvent(DomainEventName.CANDIDATE_NEW_INSERT)
public class CandidateInsertNewEventListener implements DomainEventListener<CandidateNewInsert> {

  @Override
  public void onDomainEventConsumed(CandidateNewInsert message) throws Exception {
    System.out.println(message.getEmailAddress());
    System.out.println(message.getFirstName());
    System.out.println(message.getLastName());
    System.out.println(message.getPhoneNumber());
    System.out.println(message.getStatus());
    System.out.println(message.getTimestamp());
  }

}

@@ -619,35 +619,40 @@
 System.out.print
-ln(
+(%22%5B %22 + 
 message.getEmail
@@ -660,16 +660,23 @@
 ddress()
+ + %22, %22
 );%0A    S
@@ -682,34 +682,32 @@
 System.out.print
-ln
 (message.getFirs
@@ -705,32 +705,39 @@
 e.getFirstName()
+ + %22, %22
 );%0A    System.ou
@@ -735,34 +735,32 @@
 System.out.print
-ln
 (message.getLast
@@ -765,16 +765,23 @@
 stName()
+ + %22, %22
 );%0A    S
@@ -787,34 +787,32 @@
 System.out.print
-ln
 (message.getPhon
@@ -820,16 +820,23 @@
 Number()
+ + %22, %22
 );%0A    S
@@ -842,34 +842,32 @@
 System.out.print
-ln
 (message.getStat
@@ -870,16 +870,23 @@
 Status()
+ + %22, %22
 );%0A    S
@@ -904,10 +904,8 @@
 rint
-ln
 (mes
@@ -923,16 +923,23 @@
 estamp()
+ + %22 %5D%22
 );%0A  %7D%0A%0A

modify listener