Package com.sahuaro.domain

Examples of com.sahuaro.domain.Contact


      sb.append("Last name: " + prospect.getLastName() + "\n");
      sb.append("Email: " + prospect.getEmail() + "\n");
      sb.append("Message:\n " + message + "\n");
     
    }else if(t instanceof Contact){
      Contact contact = (Contact) t;
      sb.append(prospect.getFirstName() + " is trying to contact you.\n");
      sb.append("The prospect info is show below.\n");
      sb.append("First name: " + prospect.getFirstName() + "\n");
      sb.append("Last name: " + prospect.getLastName() + "\n");
      sb.append("Email: " + prospect.getEmail() + "\n");
      sb.append("Company: " + contact.getCompany() + "\n");
      sb.append("Telephone: " + contact.getTelephone() + "\n");
      sb.append("Message:\n " + message + "\n");
     
    }
    return sb.toString();
  }
View Full Code Here


    //creates the contact message
    Message message = new Message(msg, prospectKey.getId());
    Key<Message> messageKey = messagesRepo.save(message);
    System.out.println("Message saved");
    //get the message back to use the id
    Contact contact = new Contact(company, telephone, messageKey.getId());
    //saves the contact at Google servers
    Key<Contact> contactKey = contactsRepo.save(contact);
    System.out.println("Contact saved");
   
    //creates a new email container
View Full Code Here

TOP

Related Classes of com.sahuaro.domain.Contact

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.