bitcoin-atm
bitcoin atm for pyc inc.
git clone https://9o.is/git/bitcoin-atm.git
Configurations.scala
(723B)
1 package inc.pyc.chimera
2 package snippet
3
4 import lycia._
5 import System._
6
7 /**
8 * Snippet to update the client about system configurations.
9 */
10 class Configurations extends ChimeraEventRegister {
11 val topic = Topic configUpdate
12
13 override val postSubscribe = () => {
14 val name = Settings(system).name
15 val adImage = "https://s3.amazonaws.com/assets-pyc/atm/%s/ad-chimera.jpg" format name
16
17 client.updateConfig(SystemConfig(
18 name,
19 adImage,
20 Settings(system).adProductName,
21 Settings(system).adProductMsg,
22 currency,
23 currency.symbol,
24 Settings(system).techPhone,
25 Settings(system).techEmail,
26 Lycia.phoneVerifiedBuyLimit,
27 Lycia.maxBuyLimit
28 ))
29 }
30 }