Beispiel #1
0
        /// <summary>
        ///
        /// 创建标准信息</summary>
        /// <param name="MessType">类型</param>
        /// <param name="from">发送者</param>
        /// <param name="to">接受者</param>
        /// <param name="txt">内容</param>
        /// <returns></returns>
        public static string CretemessStr(messtypes MessType, string from, string to, string txt)
        {
            string mess = string.Empty;

            mess = (int)MessType + splitestr + from + splitestr + to + splitestr + txt + splitestr;
            return(mess);
        }
Beispiel #2
0
        /// <summary>
        /// 创建消息,包含真假
        /// </summary>
        /// <param name="MessType">消息类型</param>
        /// <param name="status">消息状态</param>
        /// <returns></returns>
        public static string CretemessStr(messtypes MessType, bool status)
        {
            string mess = string.Empty;

            mess = (int)MessType + splitestr + splitestr + splitestr + status.ToString();
            return(mess);
        }