必须填写至少10个字的日志
nnhy authored at 2012-07-27 18:48:21
1.15 KiB
X
using System;
using System.Collections.Generic;
using System.Text;

namespace NewLife.PeerToPeer.Messages
{
    /// <summary>
    /// 测试信息
    /// </summary>
    public class TestMessage : Message<TestMessage>
    {
        /// <summary>消息类型</summary>
        public override MessageTypes MessageType { get { return MessageTypes.Test; } }

        #region 属性
        private String _Str;
        /// <summary>字符串</summary>
        public String Str
        {
            get { return _Str; }
            set { _Str = value; }
        }
        #endregion

        #region 响应
        /// <summary>
        /// 邀请响应
        /// </summary>
        public class Response : Message< Response>
        {
            /// <summary>消息类型</summary>
            public override MessageTypes MessageType { get { return MessageTypes.TestResponse; } }

            private String _Str;
            /// <summary>属性说明</summary>
            public String Str
            {
                get { return _Str; }
                set { _Str = value; }
            }
        }
        #endregion
    }
}