MessageUtil.cs 477 B

1234567891011121314151617181920
  1. using Cn.Sagacloud.Proto;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace NettyClient.proto
  8. {
  9. public class MessageUtil
  10. {
  11. public static Message generateMessage(string cmd, int taskId, string content) {
  12. Message msg = new Message();
  13. msg.Cmd = cmd;
  14. msg.TaskId = taskId;
  15. msg.Content = content;
  16. return msg;
  17. }
  18. }
  19. }