using System;

namespace ZSocket
{
    /// <summary>
    /// 使用此特性监听服务器发来的RPC消息
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class RpcHandlerAttribute : Attribute
    {
        /// <summary>
        /// 监听的消息类型
        /// </summary>
        public string RecvMsgType;

        /// <summary>
        /// 回复的消息类型
        /// </summary>
        public string ReplyMsgType;
    }

    /// <summary>
    /// 使用此特性监听服务器发来的消息
    /// </summary>
    [AttributeUsage(AttributeTargets.Class)]
    public class MessageHandlerAttribute : Attribute
    {
        /// <summary>
        /// 监听的消息类型
        /// </summary>
        public string MsgType;
    }
}
