Package com.bugyal.imentor.frontend.shared

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


  SearchResponse sr1 = new SearchResponse();
  ParticipantVO p1, p2, p3, p4, p5;

  @Before
  public void setup() {
    p1 = new ParticipantVO(null, "name1", "m", "name1@k.c","100002992300278", 17.000000, 75.0, "",
        200000, Arrays.asList("chemistry", "physics"), Arrays.asList(
            "maths", "science"));

    p2 = new ParticipantVO(null, "name2", "m", "name2@k.c","100002992300278", 17.000000, 75.1, "",
        200000, Arrays.asList("maths"), Arrays.asList("chemistry",
            "physics"));

    p3 = new ParticipantVO(null, "name3", "m", "name3@k.c","100002992300278", 17.000000, 75.2, "",
        200000, Arrays.asList("maths", "science"), Arrays
            .asList("chemistry"));

    p4 = new ParticipantVO(null, "name4", "m", "name4@k.c","100002992300278", 17.000000, 75.3, "",
        200000, Arrays.asList("maths"), Arrays.asList("physics"));

    p5 = new ParticipantVO(null, "name5", "m", "name5@k.c","100002992300278", 17.000000, 75.4, "",
        200000, Arrays.asList("science"), Arrays.asList("chemistry",
            "physics"));

    sr1.add(new SearchResult(p1, true, Arrays.asList("maths", "science"), 12));
View Full Code Here


    List<String> subjects = new ArrayList<String>();
    subjects.add("CS");
    subjects.add("Math");   
   

    ParticipantVO pvo = msi.create(new ParticipantVO(null, "raman", "male", "12903138", "dummy facebookid",
        TestLocations.GACHIBOWLI.getLatitude(),
        TestLocations.GACHIBOWLI.getLongitude(),
        TestLocations.GACHIBOWLI.getLocationString(),
        10, subjects, subjects));
   
    assertNotNull(pvo.getId());
    assertTrue(pvo.getId() > 0);
   
    msi.createOpportunity(new OpportunityVO(null, subjects, 2, 6, TestLocations.GACHIBOWLI.getLatitude(),
        TestLocations.GACHIBOWLI.getLongitude(), 10,
        TestLocations.GACHIBOWLI.getLocationString(), "message",0));
   
View Full Code Here

      lData = mapUI.getLocationDetails();
      if (!(subWidgetHas.getSubjects().isEmpty() && subWidgetNeed
          .getSubjects().isEmpty())
          && (tbLocation.getText() != null)) {

        ParticipantVO partVO = new ParticipantVO(id, tbName.getText(),
            rbMale.isChecked() ? "M" : "F", tbEmailId.getText(),
            facebookId, lData.getLatitude(), lData.getLongitude(),
            tbLocation.getText(), lData.getRadius(), subWidgetHas
                .getSubjects(), subWidgetNeed.getSubjects());
        if (!status) {
View Full Code Here

  public static ParticipantVO create(Participant p) {
    if (p == null) {
      return null;
    }
    return new ParticipantVO(p.getKey().getId(), p.getName(),
        p.getGender(), p.getEmail(),p.getFacebookId(), p.getLoc().getLatitude(), p
            .getLoc().getLongitude(), p.getLoc()
            .getLocationString(), p.getLoc().getActiveRadius(),
        p.getHasSubjects(), p.getNeedSubjects());
  }
View Full Code Here

    LOG.info("Created session for " + emailId + ", provider: " + provider
        + ", id: " + providerId);
    System.out.println("Created session for " + emailId + ", provider: "
        + provider + ", id: " + providerId);
    ParticipantVO participant = getParticipantVOByEmailId();
    if (participant != null) {
      LOG.info("Session created for returning user.");
      LOG.info("Facebook ID:: " + participant.getFacebookId());
      // To Handle data migration. Now we need facebookId.
      if (participant.getFacebookId() == null) {
        LOG.info("Null facebookId... trying to update it with " + providerId);
        participant.setFacebookId(providerId);
        update(participant);
      }
      return true;
    } else {
      System.out.println("Session created for new user.");
View Full Code Here

TOP

Related Classes of com.bugyal.imentor.frontend.shared.ParticipantVO

Copyright © 2018 www.massapicom. 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.