Created fooCodes interfaces to go along with invocation service

packages. These contain all the message codes as well as error response
codes that are used by a particular invocation service.

Also changed client.LocationManager to client.LocationDirector and
chat.ChatManager to chat.ChatDirector to go along with the new philosophy
of naming the client-side managing entity for an invocation service a
director.

Also elimitated cocktail.util.Codes since it's no longer used as a central
repository for codes (instead they are in InvocationCodes and its
derivatives).


git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@368 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
Michael Bayne
2001-10-01 22:14:55 +00:00
parent 543f977475
commit 027bb29769
17 changed files with 186 additions and 113 deletions
@@ -1,5 +1,5 @@
//
// $Id: ChatDisplay.java,v 1.1 2001/08/02 23:46:47 mdb Exp $
// $Id: ChatDisplay.java,v 1.2 2001/10/01 22:14:55 mdb Exp $
package com.threerings.cocktail.party.chat;
@@ -36,10 +36,9 @@ public interface ChatDisplay
* Called in response to a chat request (either speak or tell) that
* originated on this client. The request id supplied will match the
* one returned when the request was generated and the status will
* either indicate success (by being equal to
* <code>Codes.SUCCESS</code>) or failure (in which case it will
* contain a message failure code which can be converted into a
* displayable string).
* either indicate success (by being equal to <code>SUCCESS</code>) or
* failure (in which case it will contain a message failure code which
* can be converted into a displayable string).
*
* <p> A chat display should track outstanding chat requests so that
* it can properly handle the response when it arrives.
@@ -49,8 +48,8 @@ public interface ChatDisplay
* @param status the message code indicating whether the chat request
* was successful or not.
*
* @see ChatManager#requestSpeak
* @see ChatManager#requestTell
* @see ChatDirector#requestSpeak
* @see ChatDirector#requestTell
*/
public void handleResponse (int reqid, String status);
}