public override void OnActivate(int pinID) { switch (pinID) { case 0: if (string.IsNullOrEmpty(this.mMessage) || this.mChannel < 0) { break; } int mChannel1 = this.mChannel; string message = WebAPI.EscapeString(this.mMessage); Network.IsIndicator = false; this.ExecRequest((WebAPI) new ReqSendChatMessage(mChannel1, message, new Network.ResponseCallback(((FlowNode_Network)this).ResponseCallback))); ((Behaviour)this).set_enabled(true); break; case 4: if (this.mStampId < 0) { break; } int mChannel2 = this.mChannel; int mStampId = this.mStampId; Network.IsIndicator = false; this.ExecRequest((WebAPI) new ReqSendChatStamp(mChannel2, mStampId, new Network.ResponseCallback(((FlowNode_Network)this).ResponseCallback))); ((Behaviour)this).set_enabled(true); break; } }
private void RequestSendMessageToWorld(Network.ResponseCallback callback) { if (string.IsNullOrEmpty(this.mMessage) || this.mChannel < 0) { return; } ((Behaviour)this).set_enabled(true); Network.IsIndicator = false; this.ExecRequest((WebAPI) new ReqSendChatMessageWorld(this.mChannel, WebAPI.EscapeString(this.mMessage), callback)); }
private void RequestSendMessageToRoom(Network.ResponseCallback callback) { if (string.IsNullOrEmpty(this.mMessage) || this.mChannel < 0) { return; } string[] roomMemberUiDs = this.GetRoomMemberUIDs(true); if (roomMemberUiDs == null) { return; } ((Behaviour)this).set_enabled(true); Network.IsIndicator = false; this.ExecRequest((WebAPI) new ReqSendChatMessageRoom(this.mRoomToken, WebAPI.EscapeString(this.mMessage), roomMemberUiDs, callback)); }