Examples of Chat


Examples of chat.model.Chat

  @Test
  public void post_meToMe() throws Exception
  {
    signIn();
    Chat c = new Chat();
    c.in = u1;
    c.text = clob("post1");
    c.datime = DATE0;
    long time = System.currentTimeMillis();
    doChat.post(c, null);
View Full Code Here

Examples of com.calclab.emite.im.chat.Chat

public class PairChatManagerTests extends AbstractChatManagerTests {

  @Test
  public void shouldBeInitiatedByOtherIfMessageArrives() {
    session.receives(new Message("body", ME, OTHER));
    final Chat chat = manager.open(uri("someone@domain"));
    assertFalse(chat.isInitiatedByMe());
  }
View Full Code Here

Examples of com.calclab.emite.im.client.chat.Chat

    new ChatManagerEventsSupervisor(chatManager, display);
    chatManager.addChatChangedHandler(new ChatChangedHandler() {
      @Override
      public void onChatChanged(final ChatChangedEvent event) {
        if (event.is(ChangeTypes.created)) {
          final Chat chat = event.getChat();
          listenToChat(chat);
        }
      }
    });
  }
View Full Code Here

Examples of com.github.iaccidentally.ecm.Chat

public class Commandadduser extends JavaPlugin {

  public void addUser(Player sender, String user)
      throws IOException {

    Chat chat = new Chat();
    FileConfiguration userName = getConfig();
    File configFile = new File("plugins" + File.pathSeparator + "EMC"
        + "users.yml");
    boolean configExists = configFile.exists() && configFile.canRead()
        && configFile.canWrite();
    boolean userIsNotAdded = userName.getString("EMC.Users", user) == null;

    if (userIsNotAdded && sender.hasPermission("ECM.adduser")
        || sender.hasPermission("ECM.*")) {
      if (configExists) {
        userName.set("EMC.Users", user);
        userName.save("plugins" + File.pathSeparator + "ECM"
            + File.pathSeparator + "users.yml");
        chat.finishMessage(sender, "You have let " + user.toLowerCase()
            + " use ECM correctly!");
      } else {
        FileWriter outFile = new FileWriter(configFile, true);
        PrintWriter out = new PrintWriter(outFile);
        out.println("#Users For ECM go in here! Do not touch this! Use the ingame command!");
        out.close();
        userName.set("EMC.Users", user);
        userName.save("plugins" + File.pathSeparator + "ECM"
            + File.pathSeparator + "users.yml");
        chat.finishMessage(
            sender,
            "You have let "
                + user.toLowerCase()
                + " use ECM correctly, there was no 'user' file so I made one!");
      }
View Full Code Here

Examples of com.sandrini.sandelivery.model.Chat

    public List<Chat> getAllChats() {
        return getSession().createQuery("from Chat order by name").list();
    }

    public void deleteChat(Long chatId) {
        Chat chat = getChat(chatId);
        if (chat != null) {
            getSession().delete(chat);
        }
    }
View Full Code Here

Examples of gwlpr.mapshard.controllers.Chat

                .register(new ShutDown(thisContext, parentContext, sysUpdate, heartbeat))
               
                // register for gw-protocol related events
                .register(new LatencyAndSynchonization(clientRegistry))
                .register(new CharacterCreation())
                .register(new Chat(eventAgg))
                .register(new InstanceLoad(world, entityManager))
                .register(new MoveRotateClick(eventAgg, clientRegistry, entityManager))
               
       
        // register the CE systems
View Full Code Here

Examples of me.taylorkelly.bigbrother.datablock.Chat

        //plugin.processPsuedotick();
        final Player player = event.getPlayer();
        BBPlayerInfo pi = BBUsersTable.getInstance().getUserByName(player.getName());
        plugin.closeChestIfOpen(pi);
        if (BBSettings.chat && pi.getWatched()) {
            Chat dataBlock = new Chat(player, event.getMessage(), player.getWorld().getName());
            dataBlock.send();
        }
    }
View Full Code Here

Examples of net.alteiar.beans.chat.Chat

      int port, String specificDir, String globalDocumentPath,
      MyKryoInit kryoInit) {
    connectToServer(serverAdress, port, specificDir, globalDocumentPath,
        kryoInit);

    Chat chat = new Chat();
    DiceRoller diceRoller = new DiceRoller();
    CombatTraker traker = new CombatTraker();

    CampaignClient.INSTANCE.addBean(chat);
    CampaignClient.INSTANCE.addBean(diceRoller);
View Full Code Here

Examples of net.alteiar.beans.chat.Chat

    Player current = CampaignClient.getInstance().getCurrentPlayer();

    assertTrue("Documents should be equals", current.equals(current));
    assertTrue("Documents should be equals", !current.equals(null));

    Chat chat = CampaignClient.getInstance().getChat();
    assertTrue("Documents should not be equals", !current.equals(chat));

    Player newBean = new Player();
    newBean.setId(null);
View Full Code Here

Examples of net.alteiar.beans.chat.Chat

      currentCount = getChat().getMessages().size();
    }
  }

  public Chat getChat() {
    Chat chat = CampaignClient.getInstance().getChat();
    assertNotNull("Current chat must exist", chat);
    return chat;
  }
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.