48823b10f9
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2079 542714f4-19e9-0310-aa3c-eee0fc999fb1
44 lines
885 B
Java
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;
|
|
}
|