report idle / disconnected times when whispering.

git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@1865 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Ray Greenwell
2002-10-30 01:47:12 +00:00
parent 7adcf49ef3
commit 316634eb58
7 changed files with 138 additions and 16 deletions
@@ -1,5 +1,5 @@
//
// $Id: ChatDirector.java,v 1.35 2002/10/28 00:22:38 ray Exp $
// $Id: ChatDirector.java,v 1.36 2002/10/30 01:47:12 ray Exp $
package com.threerings.crowd.chat;
@@ -14,6 +14,7 @@ import com.threerings.presents.dobj.*;
import com.threerings.util.MessageBundle;
import com.threerings.util.MessageManager;
import com.threerings.util.TimeUtil;
import com.threerings.crowd.Log;
import com.threerings.crowd.client.LocationObserver;
@@ -316,6 +317,16 @@ public class ChatDirector extends BasicDirector
addChatter(target);
}
public void tellSucceededIdle (long idletime) {
String msg = MessageBundle.compose(
"m.told_idle_format", MessageBundle.taint(target),
MessageBundle.taint(message),
TimeUtil.getTimeOrderString(idletime, TimeUtil.MINUTE));
displayFeedbackMessage(_bundle, msg);
addChatter(target);
}
public void requestFailed (String reason) {
String msg =
MessageBundle.compose("m.tell_failed", target, reason);
@@ -1,5 +1,5 @@
//
// $Id: ChatService.java,v 1.8 2002/08/14 19:07:49 mdb Exp $
// $Id: ChatService.java,v 1.9 2002/10/30 01:47:12 ray Exp $
package com.threerings.crowd.chat;
@@ -24,6 +24,13 @@ public interface ChatService extends InvocationService
* Communicates the response to a {@link #tell} request.
*/
public void tellSucceeded ();
/**
* Communicates the response to a {@link #tell} request.
*
* @param idletime, the number of ms the tellee has been idle.
*/
public void tellSucceededIdle (long idletime);
}
/**