using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Message = Cn.Sagacloud.Proto.Message; namespace NettyClient.proto { public class MessageUtil { //public static Message generateMessage(string cmd, int taskId, string content) { // Message msg = new Message(); // msg.Cmd = cmd; // msg.TaskId = taskId; // msg.Content = content; // return msg; //} public static Message generateMessageStr(string cmd, string taskId, string content) { Message msg = new Message(); msg.Cmd = cmd; msg.TaskId = taskId; msg.Content = content; return msg; } } }