using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

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 Google.Protobuf.WellKnownTypes.Message generateMessageStr(string cmd, string taskId, string content)
        {
            Google.Protobuf.WellKnownTypes.Message msg = new Google.Protobuf.WellKnownTypes.Message();
            msg.Cmd = cmd;
            msg.TaskId = taskId;
            msg.Content = content;
            return msg;
        }
    }
}