using System; namespace ET { [ActorMessageHandler] public class C2M_RequestChatHandler : AMActorLocationRpcHandler { protected override async ETTask Run(Unit unit, C2M_RequestChat request, M2C_RequestChat response, Action reply) { string ret =await Chat.Instance.RequestCaht(unit, request.Type, request.Content, request.Id); if (!ret.Equals(string.Empty)) { response.Message = ret; } reply(); await ETTask.CompletedTask; } } }