#ifndef __GNET_FREEZEPLAYERDATARES_RPCDATA
#define __GNET_FREEZEPLAYERDATARES_RPCDATA

#include "rpcdefs.h"


namespace GNET
{
	class FreezePlayerDataRes : public GNET::Rpc::Data
	{
	public:
		int retcode;
		short cross_type;
		int64_t unifid;

	public:
		FreezePlayerDataRes (int l_retcode = 0,short l_cross_type = -1)
			: retcode(l_retcode),cross_type(l_cross_type)
		{
		}

		FreezePlayerDataRes(const FreezePlayerDataRes &rhs)
			: retcode(rhs.retcode),cross_type(rhs.cross_type),unifid(rhs.unifid) { }

		Rpc::Data *Clone() const { return new FreezePlayerDataRes(*this); }

		Rpc::Data& operator = (const Rpc::Data &rhs)
		{
			const FreezePlayerDataRes *r = dynamic_cast<const FreezePlayerDataRes *>(&rhs);
			if (r && r != this)
			{
				retcode = r->retcode;
				cross_type = r->cross_type;
				unifid = r->unifid;
			}
			return *this;
		}

		FreezePlayerDataRes& operator = (const FreezePlayerDataRes &rhs)
		{
			const FreezePlayerDataRes *r = &rhs;
			if (r && r != this)
			{
				retcode = r->retcode;
				cross_type = r->cross_type;
				unifid = r->unifid;
			}
			return *this;
		}

		OctetsStream& marshal(OctetsStream & os) const
		{
			os << retcode;
			os << cross_type;
			os << unifid;
			return os;
		}

		const OctetsStream& unmarshal(const OctetsStream &os)
		{
			os >> retcode;
			os >> cross_type;
			os >> unifid;
			return os;
		}

	};
};
#endif
