public override void OnRelease()
 {
     if (this.stDiamond != null)
     {
         this.stDiamond.Release();
         this.stDiamond = null;
     }
     if (this.stCoupons != null)
     {
         this.stCoupons.Release();
         this.stCoupons = null;
     }
 }
 public SCPKG_LUCKYDRAW_DATA_NTF()
 {
     this.stDiamond = (CSDT_LUCKYDRAW_INFO)ProtocolObjectPool.Get(CSDT_LUCKYDRAW_INFO.CLASS_ID);
     this.stCoupons = (CSDT_LUCKYDRAW_INFO)ProtocolObjectPool.Get(CSDT_LUCKYDRAW_INFO.CLASS_ID);
 }
 public override void OnUse()
 {
     this.stDiamond = (CSDT_LUCKYDRAW_INFO)ProtocolObjectPool.Get(CSDT_LUCKYDRAW_INFO.CLASS_ID);
     this.stCoupons = (CSDT_LUCKYDRAW_INFO)ProtocolObjectPool.Get(CSDT_LUCKYDRAW_INFO.CLASS_ID);
 }