fdfce50d01
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@4151 542714f4-19e9-0310-aa3c-eee0fc999fb1
30 lines
816 B
ActionScript
30 lines
816 B
ActionScript
package com.threerings.crowd.chat.data {
|
|
|
|
import com.threerings.util.Long;
|
|
|
|
import com.threerings.presents.data.InvocationMarshaller_ListenerMarshaller;
|
|
|
|
import com.threerings.crowd.chat.client.TellListener;
|
|
|
|
public class TellMarshaller extends InvocationMarshaller_ListenerMarshaller
|
|
{
|
|
/** The method id used to dispatch {@link #tellSucceeded}
|
|
* responses. */
|
|
public static const TELL_SUCCEEDED :int = 1;
|
|
|
|
// documentation inherited
|
|
public override function dispatchResponse (methodId :int, args :Array) :void
|
|
{
|
|
switch (methodId) {
|
|
case TELL_SUCCEEDED:
|
|
(listener as TellListener).tellSucceeded(
|
|
(args[0] as Long), (args[1] as String));
|
|
return;
|
|
|
|
default:
|
|
super.dispatchResponse(methodId, args);
|
|
}
|
|
}
|
|
}
|
|
}
|