Commit Graph

40 Commits

Author SHA1 Message Date
c68c2cf8db Add Initial Logic for EuroMillions Draw Code. 2024-02-13 13:17:00 +00:00
4017e1eeb1 Add Logic for EuroMillions Draw Balls. 2024-02-13 13:16:41 +00:00
df616fd42c Small refactor for readability. 2024-02-10 22:36:20 +00:00
Ross Healy
3fd0218db3 Remove comment, can't be made private or internal until I restructure. 2024-02-10 21:29:06 +00:00
Ross Healy
ad24dacac6 Now going to be disposed of in program.cs 2024-02-10 21:27:04 +00:00
Ross Healy
113a4bb19d Removed duplicacte processing of rollover. 2024-02-10 18:41:01 +00:00
Ross Healy
21923291b4 removed unused using. 2024-02-08 02:45:59 +00:00
Ross Healy
fdbe498237 Foreach statement implicitly converts object to system.text.RegularExpression.matchadding an explicit cast to make the intent cleaner as it may fail at runtime. 2024-02-08 02:42:54 +00:00
Ross Healy
ed42745ff4 New & collection expression can be simplified. 2024-02-08 02:40:17 +00:00
Ross Healy
ea3f91e28d Use generated Regex attribute to generate the expression implementation at compile time. 2024-02-08 02:39:07 +00:00
Ross Healy
10039eff21 Create unique index for DrawNumber and associated SQL Migration. 2024-02-08 02:33:07 +00:00
Ross Healy
30151d876a Include Migrations folder. 2024-02-08 02:32:29 +00:00
Ross Healy
915faa0dca Add reference to EFCore Abstractions 2024-02-08 02:31:59 +00:00
Ross Healy
394f046225 Updated from decimal to Int 2024-02-07 22:59:50 +00:00
Ross Healy
4ce62dcb35 Removed dispose as i didn't think about the look and it is closed by the second iteration. Will look into another time. 2024-02-07 22:51:53 +00:00
Ross Healy
c897f58128 Setup database configuration for storing information 2024-02-07 22:47:41 +00:00
Ross Healy
4981570d4e Match 2 didn't always exist, adding logic to work around. 2024-02-07 20:22:38 +00:00
Ross Healy
92faf19549 Updated extractor, omitted urls. 2024-02-07 19:54:34 +00:00
Ross Healy
f08949a912 Updated url being passed. 2024-02-07 19:54:19 +00:00
Ross Healy
47c587926e URL Extractor from information source. 2024-02-07 19:26:59 +00:00
Ross Healy
9106dd85d7 remove url 2024-02-07 19:17:40 +00:00
Ross Healy
734bcd0725 Reordered methods called to decide which information is pulled. 2024-02-07 19:17:19 +00:00
Ross Healy
f40ecfff58 Ugly AF but now processes rolldown values. 2024-02-07 19:16:52 +00:00
Ross Healy
bc35ff7c2c Additional properties for rolldown prizes. 2024-02-06 21:52:03 +00:00
Ross Healy
1129a38e65 Massive update! Reoganised alot of stuff but there is also some duplicated. Introducded additional projects to handle data and core items. Overall this will run to get results. Need to add in workings for Rollover and Rolldown! 2024-02-06 20:57:42 +00:00
Ross Healy
62abaee988 Updated code structure to allow for easy modification. 2024-02-04 00:15:56 +00:00
Ross Healy
7b350a8c01 Implemented ternary expression to make this if-else more concise. 2024-02-04 00:10:44 +00:00
Ross Healy
2f089a5a58 Updated code organization for readability and maintainability. 2024-02-04 00:03:02 +00:00
Ross Healy
36e89c8ae0 Implement Dependency Injection for HttpClient 2024-02-03 23:50:03 +00:00
Ross Healy
c4dc67241f When parsing integers, switched to int.TryParse instead of int.Parse to handle cases where the parsing fails without throwing an exception. 2024-02-03 23:43:19 +00:00
Ross Healy
87be058354 Ensure that the HttpClient is properly disposed of, even if an exception occurs. 2024-02-03 23:04:25 +00:00
Ross Healy
fb453c6f34 Handle exceptions more gracefully 2024-02-03 22:59:46 +00:00
Ross Healy
4b7622bee2 Use HttpClient correctly: Awaited the result. Hopefully can improve the efficiency and prevent potential deadlocks. 2024-02-03 22:55:43 +00:00
Ross Healy
1b1963e7f9 Substring can be simplified using range operator 2024-02-03 22:36:21 +00:00
Ross Healy
5901dd4557 Use generated RegexAttribute to generate the regular expression implementation at compile-time 2024-02-03 22:35:04 +00:00
Ross Healy
0cd68968d9 Helper methods to clear up parsed text 2024-02-03 22:28:35 +00:00
Ross Healy
fbbb2e9d6f Code to extract drawNumber and drawDate 2024-02-03 22:28:09 +00:00
Ross Healy
58d6b821f6 Break getting lotto numbers from main to own class/method. 2024-02-03 19:48:32 +00:00
Ross Healy
aa5f230578 Added gitignore and readme 2024-02-03 19:34:49 +00:00
Ross Healy
b6c59420ad Initial commit 2024-02-03 19:29:58 +00:00