Examples of Contact


Examples of Control.Contact

     
      /*
       * Testdaten f�r das incoming pane und das outgoing
       */
        Message message1 = new Message("Hi, das ist ein Test, um das incoming pane " +
            "mal darzustellen", true, new Contact(
            "333", ChatProvider.ICQ, Status.Invisible, "Felix", "felix"),
            new Date(new Date().getTime() - 1300));
        Message message2 = new Message("Das ist aber ein toller Test", false, new Contact(
            "333", ChatProvider.ICQ, Status.Invisible, "Julia", "felix"),
            new Date(new Date().getTime() - 800));
        Message message3 = new Message("Vor allem weil bei einem abstand von kleiner einer minute " +
            "mein text noch hinter dem anderen angezeigt wird, ohne den Header", false, new Contact(
            "333", ChatProvider.ICQ, Status.Invisible, "Julia", "felix"),
            new Date());
       
        ArrayList<Message> messages = new ArrayList<Message>();
        messages.add(message1);
View Full Code Here

Examples of Singleton.Contact

   
    //Create a contact list
    ContactList myContacts = ContactList.getInstance();
   
    //Add a contact
    Contact newContact1 = new Contact ("Mr", "Fred", "Bloggs", "01234 567890");
    myContacts.addContact(newContact1);
   
    Contact newContact2 = new Contact ("Mrs", "Sheila", "Bloggs", "09876 543210");
    myContacts.addContact(newContact2);
   
    //Output the contacts
    //Get the list name
    System.out.println(myContacts.getListName());
View Full Code Here

Examples of at.bestsolution.efxclipse.runtime.demo.contacts.Contact

  @Inject
  ContactsManager contactsManager;

  @Execute
  void execute() {
    Contact contact = ContactsFactory.eINSTANCE.createContact();
    Command command = AddCommand.create(contactsManager.getEditingDomain(), contactsManager.getRootGroup(), ContactsPackage.Literals.GROUP__CONTACTS, contact);
    if (command != null && command.canExecute())
      contactsManager.getEditingDomain().getCommandStack().execute(command);
  }
View Full Code Here

Examples of at.compax.bbsng.dataimport.app.model.Contact

  public void setAddressRuralDistrict(final Address obj, final long ruralDistrictId) {
    obj.setRuralDistrictId(ruralDistrictId);
  }

  public void setContact(final Company obj, final String[] lineSplit) {
    final Contact embeddedClass = new Contact();
    setContactPhone(embeddedClass, lineSplit[7]);
    setContactFax(embeddedClass, lineSplit[8]);
    setContactMobile(embeddedClass, Integer.valueOf(lineSplit[0]));
    setContactEmail(embeddedClass, lineSplit[9]);
    obj.setContact(embeddedClass);
View Full Code Here

Examples of be.dnsbelgium.vcard.Contact

      }
      Value value = deserializer.deserialize(propertyNode);
      Contact.Property p = new Contact.Property(group, name, builder.build(), value);
      properties.add(p);
    }
    return new Contact(properties);
  }
View Full Code Here

Examples of be.hikage.xml.model.Contact

        XPath queryPrenom = XPath.newInstance("prenom");
        XPath queryEmail = XPath.newInstance("email");


        for (Object contact : contacts) {
            Contact newContact = new Contact();
            Object nom = queryNom.selectSingleNode(contact);
            Object prenom = queryPrenom.selectSingleNode(contact);
            List emails = queryEmail.selectNodes(contact);
            newContact.setNom(((Element) nom).getText());
            newContact.setPrenom(((Element) prenom).getText());
            result.add(newContact);

            for (Object mail : emails) {

                Element elem = (Element) mail;
                String type = elem.getAttributeValue("type");
                Email.EMAIL_TYPE typeEmail = "personnelle".equals(type) ? Email.EMAIL_TYPE.PERSONNELLE : Email.EMAIL_TYPE.PROFESSIONELLE;
                String emailAddresse = elem.getText();


                Email email = new Email(typeEmail, emailAddresse);
                newContact.getEmails().add(email);
            }

        }

        return result;
View Full Code Here

Examples of com.agiletec.plugins.jpaddressbook.aps.system.services.addressbook.model.Contact

  protected void saveProfile(IUserProfile userProfile) {
    try {
      if (userProfile != null) {
        this.getAddressBookDAO().deleteContact(userProfile.getId());
        if (!userProfile.isPublicProfile()) return;
        Contact contact = new Contact(userProfile);
        contact.setOwner(userProfile.getUsername());
        contact.setPublicContact(userProfile.isPublicProfile());
        contact.setId(userProfile.getId());
        this.getAddressBookDAO().addContact(contact);
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "saveProfile");
    }
View Full Code Here

Examples of com.avaje.tests.model.basic.Contact

      }
    }

    contactCache.getStatistics(true);

    Contact c0 = Ebean.find(Contact.class).where().eq("email", emailToSearch).findUnique();

    ServerCacheStatistics stats0 = contactCache.getStatistics(false);

    Contact c1 = Ebean.find(Contact.class).where().eq("email", emailToSearch).findUnique();

    ServerCacheStatistics stats1 = contactCache.getStatistics(false);

    Assert.assertNotNull(c0);
    Assert.assertNotNull(c1);

    Assert.assertEquals(1, stats0.getHitCount());
    Assert.assertEquals(2, stats1.getHitCount());

    c1.setEmail("mychangedemail@what.com");
    Ebean.save(c1);

    Contact c2 = Ebean.find(Contact.class).where().eq("email", "mychangedemail@what.com")
        .findUnique();

    ServerCacheStatistics stats2 = contactCache.getStatistics(false);

    Assert.assertNotNull(c2);
    Assert.assertEquals(c2.getId(), c1.getId());
    Assert.assertEquals(c0.getId(), c1.getId());
    Assert.assertTrue(stats2.getHitCount() > stats1.getHitCount());

  }
View Full Code Here

Examples of com.badlogic.gdx.physics.box2d.Contact

    world.step(Gdx.graphics.getDeltaTime(), 6, 2);
   
 
      List<Contact> contactList = world.getContactList();
      for (int i = 0; i < contactList.size(); i++) {
        Contact contact = contactList.get(i);
        if (contact.isTouching()) {
          Object a = contact.getFixtureA().getBody().getUserData();
          Object b = contact.getFixtureB().getBody().getUserData();

          if (a instanceof CannonBall && b instanceof EnemyShip) {
            if(((CannonBall) a).life < 10) {
              ((EnemyShip) b).life -= 1;
              ((CannonBall) a).life = 10;
View Full Code Here

Examples of com.cloudsponge.model.Contact

  private Contact parseContact(final Node contactNode) {
    // Removing from document for optimized XPath evaluation on large files
    contactNode.getParentNode().removeChild(contactNode);

    Contact contact = new Contact();
    contact.setFirstName(evaluateXPath("first-name", contactNode));
    contact.setLastName(evaluateXPath("last-name", contactNode));

    parseEmailAddresss(contactNode, contact);
    parsePhoneNumbers(contactNode, contact);

    return contact;
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.