/****************************************************************************************************************
*                                                                                                               *
* Copyright (C) 2010 5173.com                                                                                   *
* 5173DFS .Net Client may be copied only under the terms of the GNU General Public License V3,                  *
* which may be found in the 5173DFS .Net Client source kit.                                                     *
* Please visit the 5173DFS .Net Client Home Page http://code.google.com/p/5173dfs-client/ for more detail.      *
*                                                                                                               *
* Author:Seapeak.Xu/xvhfeng                                                                                     *
*                                                                                                               *
****************************************************************************************************************/
namespace FastDFS.Client.Component
{
    /// <summary>
    /// ´«Êä°üÐÅÏ¢
    /// </summary>
    public class PackageInfo
    {
        private byte[] _body;

        /// <summary>
        /// µÃµ½»òÕßÉèÖÃ´«Êä°üÌå
        /// </summary>
        /// <value>The body.</value>
        public byte[] Body
        {
            get { return _body; }
            set { _body = value; }
        }

        private byte _errorNo;

        /// <summary>
        /// µÃµ½»òÕßÉèÖÃ´íÎóºÅ
        /// </summary>
        /// <value>The error no.</value>
        public byte ErrorNo
        {
            get { return _errorNo; }
            set { _errorNo = value; }
        }

        /// <summary>
        /// ³õÊ¼»¯ <see cref="PackageInfo"/> ¶ÔÏó.
        /// </summary>
        /// <param name="errorNo">´íÎóºÅ.</param>
        /// <param name="body">´«Êä°üÌå.</param>
        public PackageInfo(byte errorNo, byte[] body)
        {
            _errorNo = errorNo;
            _body = body;
        }
    }
}