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:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: AuthResponseData.java,v 1.6 2001/07/19 07:09:16 mdb Exp $
|
||||
// $Id: AuthResponseData.java,v 1.7 2001/10/01 22:14:55 mdb Exp $
|
||||
|
||||
package com.threerings.cocktail.cher.net;
|
||||
|
||||
@@ -13,14 +13,18 @@ import com.threerings.cocktail.cher.dobj.DObject;
|
||||
*/
|
||||
public class AuthResponseData extends DObject
|
||||
{
|
||||
/** The constant used to indicate a successful authentication. */
|
||||
public static final String SUCCESS = "success";
|
||||
|
||||
/**
|
||||
* Either the string "success" or a reason code for why authentication
|
||||
* failed.
|
||||
* Either the {@link #SUCCESS} constant or a reason code indicating
|
||||
* why the authentication failed.
|
||||
*/
|
||||
public String code;
|
||||
|
||||
public String toString ()
|
||||
// documentation inherited
|
||||
protected void toString (StringBuffer buf)
|
||||
{
|
||||
return "[code=" + code + "]";
|
||||
buf.append(", code=").append(code);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user