What kind of setup and algorithm do you suggest for dispensing tokens and coins?
1) If Standard.cfg is
Code: Select all
Hopper at 4 Value 50 //Token price = 0.5EUR
Hopper at 5 Value 50 //0.5 EURCode: Select all
AESImhei.Payout(50)Code: Select all
AESImhei.Payout(50)Cons:
- Our application depends on token and coin hopper addresses
- Our application needs to inhibit coin hopper each time when tokens are requested and vice-versa
Code: Select all
Hopper at 4 //Token
Hopper at 5 Value 50 //0.5 EUR Code: Select all
AESImhei.Payout(50)Code: Select all
AESImhei.Payout(50)Pros:
- Our applicaiton does not depend on hopper addresses and can resolve coin and token hopper difference on runtime.
- Our application needs to write token hopper value each time when token are requested
Code: Select all
AESImhei.PaySpecific()Code: Select all
AESImhei.SetDispenseQuantity(int,int,int)My 2 cents of feedback.
Ideally I would like to use your api like:
Standard.cfg
Code: Select all
Hopper at 4 "Token"
Hopper at 5 Value 50 "Coin50"
Hopper at 6 Value 100 "Coin100" Code: Select all
AESImhei.Payout(1, "Token")Code: Select all
AESImhei.Payout(3, "Coin50")Code: Select all
AESImhei.Payout(350)- It is clean and clear (apart from static calls and void return value, but that's another subject)
- No need to read or write dispenser snapshots for paying out
- You can target specific hoppers in configuration
I, as an application developer, care about how many "units" has paylink dispensed and keeping responsibilty of maintaining and handling transaction releated concepts on application layer.