Research Article
An Architecture for Anonymous Mobile Coupons in a Large Network
Algorithm 1
Pseudocode for request processing at the centralized service. The storeId value is an attribute of the authenticated HTTPS session.
CheckAndUpdate (D-code): | RetVal ≔ not-ok; | Begin Atomic Transaction | row ≔ row of CouponCodeStatusTable such that row.CouponCode = D-code; | if (row <> null AND row.RedeemedStatus == false) | then | row.RedeemedStatus ≔ true; | row.RedeemedBy ≔ storeId; | row.RedeemedWhen ≔ now; | RetVal ≔ ok | End Atomic Transaction | return RetVal |
|