More progress.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3849 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
package com.threerings.presents.net {
|
||||
|
||||
import com.threerings.presents.dobj.DObject;
|
||||
|
||||
import com.threerings.io.ObjectInputStream;
|
||||
import com.threerings.io.ObjectOutputStream;
|
||||
|
||||
public class AuthResponseData extends DObject
|
||||
{
|
||||
/** A constant used to indicate a successful authentication. */
|
||||
public static const SUCCESS :String = "success";
|
||||
|
||||
/** Either the SUCCESS constant or a reason code indicating
|
||||
* why the authentication failed. */
|
||||
public var code :String;
|
||||
|
||||
// documentation inherited
|
||||
public function writeObject (out :ObjectOutputStream) :void
|
||||
{
|
||||
super.writeObject(out);
|
||||
out.writeField(code);
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
code = ins.readField(String);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user