public static void ChatMessage(ChatAudienceTypeE audienceType, ChatMessageTypeE messageType, ChatTypeE chatType, int id, string message, int gameID)
        {
            Kv kv = new Kv();

            kv.Set("MethodName", (int)MethodNameE.ChatMessage);
            kv.Set(StdKv.CurrentUserID, Ap.CurrentUserID);
            kv.Set("AudienceType", (int)audienceType);
            kv.Set("MessageType", (int)messageType);
            kv.Set("ChatType", (int)chatType);
            kv.Set("Id", id);
            kv.Set("Message", message);
            kv.Set("GameID", gameID);
            SocketClient.Instance.InvokeAsync(kv.DataTable);
        }
示例#2
0
 public static void Send(ChatAudienceTypeE audienceType, ChatMessageTypeE messageType, ChatTypeE chatType, int id, string message, int gameID)
 {
     SocketClient.ChatMessage(audienceType, messageType, chatType, id, message, gameID);
 }