Loto Quebec Reader

Version 1.0.0.36

Changes

1.0.0.36
- expiry is the next day if the time we receive the xml is after 6am else it's today

1.0.0.35
- make Grande Vie highest priority

1.0.0.34

- add support for new lottery: Grande Vie

1.0.0.33
- always force a disclaimer for QuébecMax

1.0.0.32
- skip all bonus/secondary numbers whether there is a bonus disclaimer or not

1.0.0.31
- new logic to never show bonuses and only show bonus disclaimers if a bonus is evident

1.0.0.30
- some disclaimers were double escaped leaving us with stray characters

1.0.0,29
- when writing bonus disclaimers, use dynamic field "disclaimer" instead of "bonus disclaimer"

1.0.0.28
- spelt description wrong for dynamic field
- don't show bonus numbers for 6/49

1.0.0.27
- use french names for poker cards

1.0.0.26
- only show one result for sprinto

1.0.0.25
- bonus disclaimers weren't writing "disclaimer" into the header

1.0.0.24
- disclaimers could be missed due to not escaping the disclaimer in the sql insert
- move files to an archive directory instead of deleting after reading

1.0.0.23
- special support for La Mini

1.0.0.22
- add priority support when adding lotteries to get the requested order

1.0.0.21
- for "Québec MAX", only show the first result (no bonuses)
- check for updates support

1.0.0.20
- for Lotto :D, only show the first result (no bonuses)

1.0.0.19
- set the read timeout to 30 seconds. we previously were using the default.
- allow setting the expiry of lotteries saved to the database
- set the default encoding of the ftpclient from ascii to utf-8

1.0.0.18
- for LottoD, replace the dashes between the numbers with spaces

1.0.0.17
- write description of results
- include bonus disclaimer
- dashes between lottoD result numbers
- bonus numbers for some lotteries were ignored

1.0.0.16
- for astro, switch year and zodiac sign order

1.0.0.15
- media wasn't being assigned for La Quotidienne
- write "disclaimer" in header

1.0.0.14
- write disclaimer flag as a dynamic field
- improve performance by using a transaction

1.0.0.13
- remove '/' and ':' for lottery media names
- fix La Quotidienne lotter media name

1.0.0.12
- forgot to attach the media item to the disclaimer

1.0.0.11
- support for La Quotidienne 2
- support for guaranteed 6/49 prizes
- show disclaimers as required

1.0.0.10
- include extra spaces to spread out the results
- wasn't reading/writing accent characters for Astro

1.0.0.9
- use a "using" when reading the ftp file to prevent resource errors
- show the results after each read in the logs

1.0.0.8
- support for ASTRO

1.0.0.7
- support source id
- support for Poker and Astro
- delete the xml file from the ftp prior to trying to parse it so it's gone in case of an error

1.0.0.6
- move to new ftp control
- change in formatting based on spec document

1.0.0.5
- improvements in how I escape the fields prior to making mysql inserts
- ftp or db errors could cause the feed to be in a bad state

1.0.0.4
- agent status fixes

1.0.0.3
- protect against directories on the ftp
- have the try/catch for each file as opposed to all

1.0.0.2
- the ftp test connection button had an error and would always fail

1.0.1.0
- Renamed xml elements that changed in the schema
- ResultatsDesLoteries to Resultats
- Resultats/Resultat to NumerosGagnants