	public:
		int roleid;
		int start_index;
		int localsid;
		enum { PROTOCOL_TYPE = PROTOCOL_GETREWARDLIST };
	public:
		GetRewardList() { type = PROTOCOL_GETREWARDLIST; }
		GetRewardList(void*) : Protocol(PROTOCOL_GETREWARDLIST) { }
		GetRewardList (int l_roleid,int l_start_index = 0,int l_localsid = 0)
			 : roleid(l_roleid),start_index(l_start_index),localsid(l_localsid)
		{
			type = PROTOCOL_GETREWARDLIST;
		}

		GetRewardList(const GetRewardList &rhs)
			: Protocol(rhs),roleid(rhs.roleid),start_index(rhs.start_index),localsid(rhs.localsid) { }

		GNET::Protocol *Clone() const { return new GetRewardList(*this); }

		OctetsStream& marshal(OctetsStream & os) const
		{
			os << roleid;
			os << start_index;
			os << localsid;
			return os;
		}

		const OctetsStream& unmarshal(const OctetsStream &os)
		{
			os >> roleid;
			os >> start_index;
			os >> localsid;
			return os;
		}

		int PriorPolicy( ) const { return 1; }

		bool SizePolicy(size_t size) const { return size <= 32; }
