Example #1
0
 public ServiceResult RedeemPoints(RedeemPrizeInfo redeemInfo)
 {
     object[] results = this.Invoke("RedeemPoints", new object[] {
         redeemInfo
     });
     return((ServiceResult)(results[0]));
 }
Example #2
0
 /// <remarks/>
 public void RedeemPointsAsync(RedeemPrizeInfo redeemInfo, object userState)
 {
     if ((this.RedeemPointsOperationCompleted == null))
     {
         this.RedeemPointsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRedeemPointsOperationCompleted);
     }
     this.InvokeAsync("RedeemPoints", new object[] {
         redeemInfo
     }, this.RedeemPointsOperationCompleted, userState);
 }
Example #3
0
        /// <summary>
        /// Redeem Points for Player.
        /// </summary>
        /// <param name="AccountNumber"></param>
        ///
        /// <returns>List of prizes available</returns>
        public bool UpdateRedeempoints(string AcctNumber, string PrizeID, int PrizeQty, int redeempoints, LoginInfoDTO loginInfo, PlayerInfoDTO playerInfo)
        {
            bool IsReedemed = false;

            try
            {
                Dictionary <string, string> CMPDetails = playerInformationDataAccess.GetCMPCredentials(CommonDataAccess.ExchangeConnectionString);

                if (CMPDetails.Count > 0)
                {
                    kioskService = new KioskService(CMPDetails["CMPURL"].ToString());
                }

                RedeemPrizeInfo redeemPrizeInfo = new RedeemPrizeInfo();
                redeemPrizeInfo.AccountNumber  = AcctNumber;
                redeemPrizeInfo.ComputerName   = Environment.MachineName;
                redeemPrizeInfo.GamingDate     = new DateTime(2001, 1, 1);
                redeemPrizeInfo.LocationCode   = loginInfo.LocationCode;
                redeemPrizeInfo.PrintedRemarks = null;
                redeemPrizeInfo.PrivateRemarks = null;
                redeemPrizeInfo.PlayerId       = playerInfo.PlayerID;
                redeemPrizeInfo.Password       = CMPDetails["CMPPWD"];
                redeemPrizeInfo.Shift          = 1;

                redeemPrizeInfo.UserName = CMPDetails["CMPUSER"];

                if (!String.IsNullOrEmpty(PrizeID))
                {
                    redeemPrizeInfo.PrizeId = PrizeID;
                }
                redeemPrizeInfo.PrizeQty     = PrizeQty;
                redeemPrizeInfo.RedeemPoints = redeempoints * redeemPrizeInfo.PrizeQty;

                ServiceResult objServiceResult = (ServiceResult)kioskService.RedeemPoints(redeemPrizeInfo);

                if (MethodResult.Success == objServiceResult.Result)
                {
                    IsReedemed = true;
                }
            }
            catch (Exception ex)
            {
                ExceptionManager.Publish(ex);
                IsReedemed = false;
            }
            return(IsReedemed);
        }
 /// <remarks/>
 public void RedeemPointsAsync(RedeemPrizeInfo redeemInfo, object userState)
 {
     if ((this.RedeemPointsOperationCompleted == null))
     {
         this.RedeemPointsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRedeemPointsOperationCompleted);
     }
     this.InvokeAsync("RedeemPoints", new object[] {
             redeemInfo}, this.RedeemPointsOperationCompleted, userState);
 }
 /// <remarks/>
 public void RedeemPointsAsync(RedeemPrizeInfo redeemInfo)
 {
     this.RedeemPointsAsync(redeemInfo, null);
 }
 /// <remarks/>
 public System.IAsyncResult BeginRedeemPoints(RedeemPrizeInfo redeemInfo, System.AsyncCallback callback, object asyncState)
 {
     return this.BeginInvoke("RedeemPoints", new object[] {
             redeemInfo}, callback, asyncState);
 }
 public ServiceResult RedeemPoints(RedeemPrizeInfo redeemInfo)
 {
     object[] results = this.Invoke("RedeemPoints", new object[] {
             redeemInfo});
     return ((ServiceResult)(results[0]));
 }
Example #8
0
 /// <remarks/>
 public void RedeemPointsAsync(RedeemPrizeInfo redeemInfo)
 {
     this.RedeemPointsAsync(redeemInfo, null);
 }
Example #9
0
 /// <remarks/>
 public System.IAsyncResult BeginRedeemPoints(RedeemPrizeInfo redeemInfo, System.AsyncCallback callback, object asyncState)
 {
     return(this.BeginInvoke("RedeemPoints", new object[] {
         redeemInfo
     }, callback, asyncState));
 }