Examples of PulseVO


Examples of com.bugyal.imentor.frontend.shared.PulseVO

  }

  public static List<PulseVO> createPulseVO(List<ParticipantPulse> pulseList) {
    List<PulseVO> pulseRecords = new ArrayList<PulseVO>();
    for(ParticipantPulse p : pulseList) {
      PulseVO pv=new PulseVO(p.getEmailId(), p.getName(), p.getFacebookId(), p.getLongitude(), p.getLatitude(), p.getLocationString(), p.getState(), p.getOthersFacebookId());
      pulseRecords.add(pv);
    }
    return pulseRecords;   
  }
View Full Code Here

Examples of com.bugyal.imentor.frontend.shared.PulseVO

  public boolean addMentorAndMentee(Boolean isHas, String mentorMailId) {
    try {
      Participant mentor = pm.findParticipantByEmail(mentorMailId);
      Participant mentee = pm.findParticipantByEmail(getUserId());
      if (isHas) {
        PulseVO p = new PulseVO(mentee.getEmail(), mentee.getName(), mentee.getFacebookId(), mentee.getLoc().getLongitude(), mentee.getLoc().getLatitude(), mentee.getLoc().getLocationString(), State.mentee, mentor.getFacebookId());
        boolean pulsestatus = createParticipantPulse(p);
        boolean mentorstatus = pm.addMentorToMentee(mentor, mentee);
        if(pulsestatus && mentorstatus) {
          return true;
        }
        else {
          return false;
        }
      } else {
        PulseVO p = new PulseVO(mentee.getEmail(), mentee.getName(), mentee.getFacebookId(), mentee.getLoc().getLongitude(), mentee.getLoc().getLatitude(), mentee.getLoc().getLocationString(), State.mentor, mentor.getFacebookId());
        boolean pulsestatus = createParticipantPulse(p);
        boolean mentorstatus = pm.addMentorToMentee(mentee, mentor);
        if(pulsestatus && mentorstatus) {
          return true;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.