Files
narya/src/java/com/threerings/presents/net/SubscribeRequest.java
T
Michael Bayne 48823b10f9 More revamped serialization cleanup.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2079 542714f4-19e9-0310-aa3c-eee0fc999fb1
2002-12-20 23:41:27 +00:00

44 lines
885 B
Java

//
// $Id: SubscribeRequest.java,v 1.8 2002/12/20 23:41:26 mdb Exp $
package com.threerings.presents.net;
public class SubscribeRequest extends UpstreamMessage
{
/**
* Zero argument constructor used when unserializing an instance.
*/
public SubscribeRequest ()
{
super();
}
/**
* Constructs a subscribe request for the distributed object with the
* specified object id.
*/
public SubscribeRequest (int oid)
{
_oid = oid;
}
/**
* Returns the oid of the object to which we desire subscription.
*/
public int getOid ()
{
return _oid;
}
public String toString ()
{
return "[type=SUB, msgid=" + messageId + ", oid=" + _oid + "]";
}
/**
* The object id of the distributed object to which we are
* subscribing.
*/
protected int _oid;
}