Progress on the presents client.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@3848 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -0,0 +1,40 @@
|
||||
package com.threerings.presents.net {
|
||||
|
||||
import com.threerings.io.ObjectInputStream;
|
||||
import com.threerings.io.ObjectOutputStream;
|
||||
|
||||
public class AuthRequest extends UpstreamMessage
|
||||
{
|
||||
public function AuthRequest ()
|
||||
{
|
||||
super();
|
||||
}
|
||||
|
||||
public function AuthRequest (creds :Credentials, version :String)
|
||||
{
|
||||
super();
|
||||
_creds = creds;
|
||||
_version = version;
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public function writeObject (out :ObjectOutputStream) :void
|
||||
{
|
||||
super.writeObject(out);
|
||||
|
||||
out.writeField(_creds);
|
||||
out.writeField(_version);
|
||||
}
|
||||
|
||||
// documentation inherited
|
||||
public function readObject (ins :ObjectInputStream) :void
|
||||
{
|
||||
super.readObject(ins);
|
||||
_creds = ins.readField(Credentials);
|
||||
_version = ins.readField(String);
|
||||
}
|
||||
|
||||
protected var _creds :Credentials;
|
||||
protected var _version :String;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user