├── .editorconfig ├── .gitattributes ├── .gitignore ├── .gitmodules ├── Directory.Build.props ├── Directory.Packages.props ├── FreePointsShop.sln ├── FreePointsShop.sln.DotSettings ├── FreePointsShop ├── AssemblyInfo.cs ├── Data │ ├── BatchedQueryRequest.cs │ ├── BatchedQueryResponse.cs │ ├── CommunityInventoryResponse.cs │ ├── EligibleAppsResponse.cs │ ├── FreePointsShopConfig.cs │ └── RewardItemsResponse.cs ├── FreePointsShop.cs └── FreePointsShop.csproj ├── LICENSE └── README.md /.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | ############################### 4 | # Core EditorConfig Options # 5 | ############################### 6 | 7 | [*] 8 | charset = utf-8 9 | #file_header_template = · _ _ _ ____ _ _____\n / \ _ __ ___ | |__ (_)/ ___| | |_ ___ __ _ _ __ ___ | ___|__ _ _ __ _ __ ___\n / _ \ | '__|/ __|| '_ \ | |\___ \ | __|/ _ \ / _` || '_ ` _ \ | |_ / _` || '__|| '_ ` _ \\n / ___ \ | | | (__ | | | || | ___) || |_| __/| (_| || | | | | || _|| (_| || | | | | | | |\n/_/ \_\|_| \___||_| |_||_||____/ \__|\___| \__,_||_| |_| |_||_| \__,_||_| |_| |_| |_|\n\nCopyright 2015-2021 Łukasz "JustArchi" Domeradzki\nContact: JustArchi@JustArchi.net\n\nLicensed under the Apache License, Version 2.0 (the "License")\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an "AS IS" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License. 10 | indent_style = tab 11 | insert_final_newline = true 12 | trim_trailing_whitespace = true 13 | 14 | ############################### 15 | # C# Coding Conventions # 16 | ############################### 17 | 18 | [*.cs] 19 | csharp_indent_block_contents = true 20 | csharp_indent_braces = false 21 | csharp_indent_case_contents = true 22 | csharp_indent_case_contents_when_block = false 23 | csharp_indent_labels = flush_left 24 | csharp_indent_switch_labels = true 25 | 26 | csharp_new_line_before_catch = false 27 | csharp_new_line_before_else = false 28 | csharp_new_line_before_finally = false 29 | csharp_new_line_before_members_in_anonymous_types = false 30 | csharp_new_line_before_members_in_object_initializers = false 31 | csharp_new_line_before_open_brace = none 32 | csharp_new_line_between_query_expression_clauses = false 33 | 34 | csharp_prefer_braces = true:warning 35 | csharp_prefer_simple_default_expression = true:warning 36 | csharp_prefer_simple_using_statement = true:warning 37 | csharp_prefer_static_local_function = true:warning 38 | 39 | csharp_preferred_modifier_order = public, protected, internal, private, file, static, extern, new, virtual, abstract, sealed, override, readonly, unsafe, required, volatile, async:warning 40 | 41 | csharp_preserve_single_line_blocks = true 42 | csharp_preserve_single_line_statements = false 43 | 44 | csharp_space_after_cast = true 45 | csharp_space_after_colon_in_inheritance_clause = true 46 | csharp_space_after_comma = true 47 | csharp_space_after_dot = false 48 | csharp_space_after_keywords_in_control_flow_statements = true 49 | csharp_space_after_semicolon_in_for_statement = true 50 | csharp_space_around_binary_operators = before_and_after 51 | csharp_space_around_declaration_statements = false 52 | csharp_space_before_colon_in_inheritance_clause = true 53 | csharp_space_before_comma = false 54 | csharp_space_before_dot = false 55 | csharp_space_before_open_square_brackets = false 56 | csharp_space_before_semicolon_in_for_statement = false 57 | csharp_space_between_empty_square_brackets = false 58 | csharp_space_between_method_call_empty_parameter_list_parentheses = false 59 | csharp_space_between_method_call_name_and_opening_parenthesis = false 60 | csharp_space_between_method_call_parameter_list_parentheses = false 61 | csharp_space_between_method_declaration_empty_parameter_list_parentheses = false 62 | csharp_space_between_method_declaration_name_and_open_parenthesis = false 63 | csharp_space_between_method_declaration_parameter_list_parentheses = false 64 | csharp_space_between_square_brackets = false 65 | 66 | csharp_style_conditional_delegate_call = true:warning 67 | csharp_style_deconstructed_variable_declaration = true:warning 68 | 69 | csharp_style_expression_bodied_accessors = true:warning 70 | csharp_style_expression_bodied_constructors = true:warning 71 | csharp_style_expression_bodied_indexers = true:warning 72 | csharp_style_expression_bodied_lambdas = true:warning 73 | csharp_style_expression_bodied_local_functions = true:warning 74 | csharp_style_expression_bodied_methods = true:warning 75 | csharp_style_expression_bodied_operators = true:warning 76 | csharp_style_expression_bodied_properties = true:warning 77 | 78 | csharp_style_implicit_object_creation_when_type_is_apparent = true:warning 79 | csharp_style_inlined_variable_declaration = true:warning 80 | 81 | csharp_style_namespace_declarations = file_scoped:warning 82 | 83 | csharp_style_pattern_matching_over_as_with_null_check = true:warning 84 | csharp_style_pattern_matching_over_is_with_cast_check = true:warning 85 | 86 | csharp_style_prefer_extended_property_pattern = true:warning 87 | dotnet_style_prefer_foreach_explicit_cast_in_source = always:warning 88 | csharp_style_prefer_index_operator = true:warning 89 | csharp_style_prefer_local_over_anonymous_function = true:warning 90 | csharp_style_prefer_method_group_conversion = true:warning 91 | csharp_style_prefer_not_pattern = true:warning 92 | csharp_style_prefer_null_check_over_type_check = true:warning 93 | csharp_style_prefer_pattern_matching = true:warning 94 | csharp_style_prefer_primary_constructors = true:warning 95 | csharp_style_prefer_range_operator = true:warning 96 | csharp_style_prefer_readonly_struct = true:warning 97 | csharp_style_prefer_readonly_struct_member = true:warning 98 | csharp_style_prefer_switch_expression = true:warning 99 | csharp_style_prefer_top_level_statements = false:warning 100 | csharp_style_prefer_tuple_swap = true:warning 101 | csharp_style_prefer_utf8_string_literals = true:warning 102 | 103 | csharp_style_throw_expression = true:warning 104 | 105 | csharp_style_unused_value_assignment_preference = discard_variable:warning 106 | csharp_style_unused_value_expression_statement_preference = discard_variable:warning 107 | 108 | csharp_style_var_elsewhere = false:warning 109 | csharp_style_var_for_built_in_types = false:warning 110 | csharp_style_var_when_type_is_apparent = false:warning 111 | 112 | csharp_using_directive_placement = outside_namespace:warning 113 | 114 | ############################### 115 | # .NET Coding Conventions # 116 | ############################### 117 | 118 | dotnet_analyzer_diagnostic.severity = warning 119 | 120 | dotnet_code_quality.ca3003.excluded_symbol_names = BotController 121 | dotnet_code_quality.ca3012.excluded_symbol_names = BotController|CommandController 122 | 123 | dotnet_code_quality_unused_parameters = all:warning 124 | 125 | dotnet_diagnostic.ca1028.severity = silent 126 | dotnet_diagnostic.ca1031.severity = silent 127 | dotnet_diagnostic.ca1863.severity = silent 128 | 129 | # Rule - almost everything 130 | dotnet_naming_rule.almost_everything_must_be_pascal_case.severity = warning 131 | dotnet_naming_rule.almost_everything_must_be_pascal_case.style = pascal_case 132 | dotnet_naming_rule.almost_everything_must_be_pascal_case.symbols = almost_everything 133 | 134 | # Rule - enums 135 | dotnet_naming_rule.enums_must_be_e_pascal_case.severity = warning 136 | dotnet_naming_rule.enums_must_be_e_pascal_case.style = e_pascal_case 137 | dotnet_naming_rule.enums_must_be_e_pascal_case.symbols = enums 138 | 139 | # Rule - interfaces 140 | dotnet_naming_rule.interfaces_must_be_i_pascal_case.severity = warning 141 | dotnet_naming_rule.interfaces_must_be_i_pascal_case.style = i_pascal_case 142 | dotnet_naming_rule.interfaces_must_be_i_pascal_case.symbols = interfaces 143 | 144 | # Rule - local parameters 145 | dotnet_naming_rule.local_parameters_must_be_camel_case.severity = warning 146 | dotnet_naming_rule.local_parameters_must_be_camel_case.style = camel_case 147 | dotnet_naming_rule.local_parameters_must_be_camel_case.symbols = local_parameters 148 | 149 | # Rule - type parameters 150 | dotnet_naming_rule.type_parameters_must_be_t_pascal_case.severity = warning 151 | dotnet_naming_rule.type_parameters_must_be_t_pascal_case.style = t_pascal_case 152 | dotnet_naming_rule.type_parameters_must_be_t_pascal_case.symbols = type_parameters 153 | 154 | # Style - camelCase 155 | dotnet_naming_style.camel_case.capitalization = camel_case 156 | 157 | # Style - EPascalCase 158 | dotnet_naming_style.e_pascal_case.capitalization = pascal_case 159 | dotnet_naming_style.e_pascal_case.required_prefix = E 160 | 161 | # Style - IPascalCase 162 | dotnet_naming_style.i_pascal_case.capitalization = pascal_case 163 | dotnet_naming_style.i_pascal_case.required_prefix = I 164 | 165 | # Style - PascalCase 166 | dotnet_naming_style.pascal_case.capitalization = pascal_case 167 | 168 | # Style - TPascalCase 169 | dotnet_naming_style.t_pascal_case.capitalization = pascal_case 170 | dotnet_naming_style.t_pascal_case.required_prefix = T 171 | 172 | # Symbol - almost everything 173 | dotnet_naming_symbols.almost_everything.applicable_accessibilities = * 174 | dotnet_naming_symbols.almost_everything.applicable_kinds = namespace, class, struct, property, method, field, event, delegate 175 | 176 | # Symbol - enums 177 | dotnet_naming_symbols.enums.applicable_accessibilities = * 178 | dotnet_naming_symbols.enums.applicable_kinds = enum 179 | 180 | # Symbol - interfaces 181 | dotnet_naming_symbols.interfaces.applicable_accessibilities = * 182 | dotnet_naming_symbols.interfaces.applicable_kinds = interface 183 | 184 | # Symbol - local parameters 185 | dotnet_naming_symbols.local_parameters.applicable_accessibilities = * 186 | dotnet_naming_symbols.local_parameters.applicable_kinds = parameter, local, local_function 187 | 188 | # Symbol - type parameters 189 | dotnet_naming_symbols.type_parameters.applicable_accessibilities = * 190 | dotnet_naming_symbols.type_parameters.applicable_kinds = type_parameter 191 | 192 | dotnet_remove_unnecessary_suppression_exclusions = none:warning 193 | dotnet_separate_import_directive_groups = false 194 | dotnet_sort_system_directives_first = true 195 | 196 | dotnet_style_coalesce_expression = true:warning 197 | dotnet_style_collection_initializer = true:warning 198 | dotnet_style_explicit_tuple_names = true:warning 199 | dotnet_style_namespace_match_folder = true:warning 200 | dotnet_style_null_propagation = true:warning 201 | dotnet_style_object_initializer = true:warning 202 | 203 | dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:warning 204 | dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:warning 205 | dotnet_style_parentheses_in_other_operators = never_if_unnecessary:warning 206 | dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:warning 207 | 208 | dotnet_style_predefined_type_for_locals_parameters_members = true:warning 209 | dotnet_style_predefined_type_for_member_access = true:warning 210 | 211 | dotnet_style_prefer_auto_properties = true:warning 212 | dotnet_style_prefer_compound_assignment = true:warning 213 | dotnet_style_prefer_conditional_expression_over_assignment = true:warning 214 | dotnet_style_prefer_conditional_expression_over_return = true:warning 215 | dotnet_style_prefer_inferred_anonymous_type_member_names = true:warning 216 | dotnet_style_prefer_inferred_tuple_names = true:warning 217 | dotnet_style_prefer_is_null_check_over_reference_equality_method = true:warning 218 | dotnet_style_prefer_simplified_boolean_expressions = true:warning 219 | dotnet_style_prefer_simplified_interpolation = true:warning 220 | 221 | dotnet_style_qualification_for_event = false:warning 222 | dotnet_style_qualification_for_field = false:warning 223 | dotnet_style_qualification_for_method = false:warning 224 | dotnet_style_qualification_for_property = false:warning 225 | 226 | dotnet_style_readonly_field = true:warning 227 | dotnet_style_require_accessibility_modifiers = always:warning 228 | 229 | ############################### 230 | # JetBrains, IntelliJ/Rider # 231 | ############################### 232 | 233 | [*.{csproj,props,resx,xml}] 234 | ij_xml_keep_blank_lines = 1 235 | ij_xml_keep_line_breaks = false 236 | ij_xml_keep_line_breaks_in_text = false 237 | ij_xml_space_inside_empty_tag = true 238 | 239 | [*.{json,json5}] 240 | ij_json_keep_line_breaks = false 241 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | *.sh text eol=lf 5 | 6 | # Custom for Visual Studio 7 | *.cs diff=csharp 8 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # _ ____ _____ 2 | # / \ / ___| | ___| 3 | # / _ \ \___ \ | |_ 4 | # / ___ \ ___) || _| 5 | # /_/ \_\|____/ |_| 6 | 7 | # Ignore all files in custom in-tree config directory (if exists) 8 | ArchiSteamFarm/ArchiSteamFarm/config 9 | 10 | # Ignore private SNK key (if exists) 11 | ArchiSteamFarm/resources/ArchiSteamFarm.snk 12 | 13 | # Ignore local log + debug of development builds 14 | ArchiSteamFarm/ArchiSteamFarm/log.txt 15 | ArchiSteamFarm/ArchiSteamFarm/debug 16 | ArchiSteamFarm/ArchiSteamFarm/logs 17 | 18 | # Ignore standard out folders for publishing 19 | **/out 20 | 21 | # _ _ 22 | # | | (_) _ __ _ _ __ __ 23 | # | | | || '_ \ | | | |\ \/ / 24 | # | |___ | || | | || |_| | > < 25 | # |_____||_||_| |_| \__,_|/_/\_\ 26 | # 27 | # https://github.com/github/gitignore/blob/master/Global/Linux.gitignore 28 | # 4f7062e132d7f88e68ab737e64fef872bd3a491f 29 | 30 | *~ 31 | 32 | # temporary files which can be created if a process still has a handle open of a deleted file 33 | .fuse_hidden* 34 | 35 | # KDE directory preferences 36 | .directory 37 | 38 | # Linux trash folder which might appear on any partition or disk 39 | .Trash-* 40 | 41 | # .nfs files are created when an open file is removed but is still being accessed 42 | .nfs* 43 | 44 | # ___ ____ 45 | # _ __ ___ __ _ ___ / _ \ / ___| 46 | # | '_ ` _ \ / _` | / __|| | | |\___ \ 47 | # | | | | | || (_| || (__ | |_| | ___) | 48 | # |_| |_| |_| \__,_| \___| \___/ |____/ 49 | # 50 | # https://github.com/github/gitignore/blob/master/Global/macOS.gitignore 51 | # 2bb963b16a1957c865335e53537036c2e97399b5 52 | 53 | # General 54 | .DS_Store 55 | .AppleDouble 56 | .LSOverride 57 | 58 | # Icon must end with two \r 59 | Icon 60 | 61 | # Thumbnails 62 | ._* 63 | 64 | # Files that might appear in the root of a volume 65 | .DocumentRevisions-V100 66 | .fseventsd 67 | .Spotlight-V100 68 | .TemporaryItems 69 | .Trashes 70 | .VolumeIcon.icns 71 | .com.apple.timemachine.donotpresent 72 | 73 | # Directories potentially created on remote AFP share 74 | .AppleDB 75 | .AppleDesktop 76 | Network Trash Folder 77 | Temporary Items 78 | .apdisk 79 | 80 | # __ __ ____ _ 81 | # | \/ | ___ _ __ ___ | _ \ ___ __ __ ___ | | ___ _ __ 82 | # | |\/| | / _ \ | '_ \ / _ \ | | | | / _ \\ \ / // _ \| | / _ \ | '_ \ 83 | # | | | || (_) || | | || (_) || |_| || __/ \ V /| __/| || (_) || |_) | 84 | # |_| |_| \___/ |_| |_| \___/ |____/ \___| \_/ \___||_| \___/ | .__/ 85 | # |_| 86 | # 87 | # https://github.com/github/gitignore/blob/master/Global/MonoDevelop.gitignore 88 | # e8b2e1a9cc7c9ca49bb05c20a4c4491b85feba6d 89 | 90 | #User Specific 91 | *.userprefs 92 | *.usertasks 93 | 94 | #Mono Project Files 95 | *.pidb 96 | *.resources 97 | test-results/ 98 | 99 | # __ __ _ _ ____ _ _ _ 100 | # \ \ / /(_) ___ _ _ __ _ | |/ ___| | |_ _ _ __| |(_) ___ 101 | # \ \ / / | |/ __|| | | | / _` || |\___ \ | __|| | | | / _` || | / _ \ 102 | # \ V / | |\__ \| |_| || (_| || | ___) || |_ | |_| || (_| || || (_) | 103 | # \_/ |_||___/ \__,_| \__,_||_||____/ \__| \__,_| \__,_||_| \___/ 104 | # 105 | # https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 106 | # 888439ee893d0097862f1d510585bd0e3cfd500f 107 | 108 | ## Ignore Visual Studio temporary files, build results, and 109 | ## files generated by popular Visual Studio add-ons. 110 | ## 111 | ## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore 112 | 113 | # User-specific files 114 | *.rsuser 115 | *.suo 116 | *.user 117 | *.userosscache 118 | *.sln.docstates 119 | 120 | # User-specific files (MonoDevelop/Xamarin Studio) 121 | *.userprefs 122 | 123 | # Mono auto generated files 124 | mono_crash.* 125 | 126 | # Build results 127 | [Dd]ebug/ 128 | [Dd]ebugPublic/ 129 | [Rr]elease/ 130 | [Rr]eleases/ 131 | x64/ 132 | x86/ 133 | [Ww][Ii][Nn]32/ 134 | [Aa][Rr][Mm]/ 135 | [Aa][Rr][Mm]64/ 136 | bld/ 137 | [Bb]in/ 138 | [Oo]bj/ 139 | [Ll]og/ 140 | [Ll]ogs/ 141 | 142 | # Visual Studio 2015/2017 cache/options directory 143 | .vs/ 144 | # Uncomment if you have tasks that create the project's static files in wwwroot 145 | #wwwroot/ 146 | 147 | # Visual Studio 2017 auto generated files 148 | Generated\ Files/ 149 | 150 | # MSTest test Results 151 | [Tt]est[Rr]esult*/ 152 | [Bb]uild[Ll]og.* 153 | 154 | # NUnit 155 | *.VisualState.xml 156 | TestResult.xml 157 | nunit-*.xml 158 | 159 | # Build Results of an ATL Project 160 | [Dd]ebugPS/ 161 | [Rr]eleasePS/ 162 | dlldata.c 163 | 164 | # Benchmark Results 165 | BenchmarkDotNet.Artifacts/ 166 | 167 | # .NET Core 168 | project.lock.json 169 | project.fragment.lock.json 170 | artifacts/ 171 | 172 | # ASP.NET Scaffolding 173 | ScaffoldingReadMe.txt 174 | 175 | # StyleCop 176 | StyleCopReport.xml 177 | 178 | # Files built by Visual Studio 179 | *_i.c 180 | *_p.c 181 | *_h.h 182 | *.ilk 183 | *.meta 184 | *.obj 185 | *.iobj 186 | *.pch 187 | *.pdb 188 | *.ipdb 189 | *.pgc 190 | *.pgd 191 | *.rsp 192 | *.sbr 193 | *.tlb 194 | *.tli 195 | *.tlh 196 | *.tmp 197 | *.tmp_proj 198 | *_wpftmp.csproj 199 | *.log 200 | *.tlog 201 | *.vspscc 202 | *.vssscc 203 | .builds 204 | *.pidb 205 | *.svclog 206 | *.scc 207 | 208 | # Chutzpah Test files 209 | _Chutzpah* 210 | 211 | # Visual C++ cache files 212 | ipch/ 213 | *.aps 214 | *.ncb 215 | *.opendb 216 | *.opensdf 217 | *.sdf 218 | *.cachefile 219 | *.VC.db 220 | *.VC.VC.opendb 221 | 222 | # Visual Studio profiler 223 | *.psess 224 | *.vsp 225 | *.vspx 226 | *.sap 227 | 228 | # Visual Studio Trace Files 229 | *.e2e 230 | 231 | # TFS 2012 Local Workspace 232 | $tf/ 233 | 234 | # Guidance Automation Toolkit 235 | *.gpState 236 | 237 | # ReSharper is a .NET coding add-in 238 | _ReSharper*/ 239 | *.[Rr]e[Ss]harper 240 | *.DotSettings.user 241 | 242 | # TeamCity is a build add-in 243 | _TeamCity* 244 | 245 | # DotCover is a Code Coverage Tool 246 | *.dotCover 247 | 248 | # AxoCover is a Code Coverage Tool 249 | .axoCover/* 250 | !.axoCover/settings.json 251 | 252 | # Coverlet is a free, cross platform Code Coverage Tool 253 | coverage*.json 254 | coverage*.xml 255 | coverage*.info 256 | 257 | # Visual Studio code coverage results 258 | *.coverage 259 | *.coveragexml 260 | 261 | # NCrunch 262 | _NCrunch_* 263 | .*crunch*.local.xml 264 | nCrunchTemp_* 265 | 266 | # MightyMoose 267 | *.mm.* 268 | AutoTest.Net/ 269 | 270 | # Web workbench (sass) 271 | .sass-cache/ 272 | 273 | # Installshield output folder 274 | [Ee]xpress/ 275 | 276 | # DocProject is a documentation generator add-in 277 | DocProject/buildhelp/ 278 | DocProject/Help/*.HxT 279 | DocProject/Help/*.HxC 280 | DocProject/Help/*.hhc 281 | DocProject/Help/*.hhk 282 | DocProject/Help/*.hhp 283 | DocProject/Help/Html2 284 | DocProject/Help/html 285 | 286 | # Click-Once directory 287 | publish/ 288 | 289 | # Publish Web Output 290 | *.[Pp]ublish.xml 291 | *.azurePubxml 292 | # Note: Comment the next line if you want to checkin your web deploy settings, 293 | # but database connection strings (with potential passwords) will be unencrypted 294 | *.pubxml 295 | *.publishproj 296 | 297 | # Microsoft Azure Web App publish settings. Comment the next line if you want to 298 | # checkin your Azure Web App publish settings, but sensitive information contained 299 | # in these scripts will be unencrypted 300 | PublishScripts/ 301 | 302 | # NuGet Packages 303 | *.nupkg 304 | # NuGet Symbol Packages 305 | *.snupkg 306 | # The packages folder can be ignored because of Package Restore 307 | **/[Pp]ackages/* 308 | # except build/, which is used as an MSBuild target. 309 | !**/[Pp]ackages/build/ 310 | # Uncomment if necessary however generally it will be regenerated when needed 311 | #!**/[Pp]ackages/repositories.config 312 | # NuGet v3's project.json files produces more ignorable files 313 | *.nuget.props 314 | *.nuget.targets 315 | 316 | # Nuget personal access tokens and Credentials 317 | nuget.config 318 | 319 | # Microsoft Azure Build Output 320 | csx/ 321 | *.build.csdef 322 | 323 | # Microsoft Azure Emulator 324 | ecf/ 325 | rcf/ 326 | 327 | # Windows Store app package directories and files 328 | AppPackages/ 329 | BundleArtifacts/ 330 | Package.StoreAssociation.xml 331 | _pkginfo.txt 332 | *.appx 333 | *.appxbundle 334 | *.appxupload 335 | 336 | # Visual Studio cache files 337 | # files ending in .cache can be ignored 338 | *.[Cc]ache 339 | # but keep track of directories ending in .cache 340 | !?*.[Cc]ache/ 341 | 342 | # Others 343 | ClientBin/ 344 | ~$* 345 | *~ 346 | *.dbmdl 347 | *.dbproj.schemaview 348 | *.jfm 349 | *.pfx 350 | *.publishsettings 351 | orleans.codegen.cs 352 | 353 | # Including strong name files can present a security risk 354 | # (https://github.com/github/gitignore/pull/2483#issue-259490424) 355 | #*.snk 356 | 357 | # Since there are multiple workflows, uncomment next line to ignore bower_components 358 | # (https://github.com/github/gitignore/pull/1529#issuecomment-104372622) 359 | #bower_components/ 360 | 361 | # RIA/Silverlight projects 362 | Generated_Code/ 363 | 364 | # Backup & report files from converting an old project file 365 | # to a newer Visual Studio version. Backup files are not needed, 366 | # because we have git ;-) 367 | _UpgradeReport_Files/ 368 | Backup*/ 369 | UpgradeLog*.XML 370 | UpgradeLog*.htm 371 | ServiceFabricBackup/ 372 | *.rptproj.bak 373 | 374 | # SQL Server files 375 | *.mdf 376 | *.ldf 377 | *.ndf 378 | 379 | # Business Intelligence projects 380 | *.rdl.data 381 | *.bim.layout 382 | *.bim_*.settings 383 | *.rptproj.rsuser 384 | *- [Bb]ackup.rdl 385 | *- [Bb]ackup ([0-9]).rdl 386 | *- [Bb]ackup ([0-9][0-9]).rdl 387 | 388 | # Microsoft Fakes 389 | FakesAssemblies/ 390 | 391 | # GhostDoc plugin setting file 392 | *.GhostDoc.xml 393 | 394 | # Node.js Tools for Visual Studio 395 | .ntvs_analysis.dat 396 | node_modules/ 397 | 398 | # Visual Studio 6 build log 399 | *.plg 400 | 401 | # Visual Studio 6 workspace options file 402 | *.opt 403 | 404 | # Visual Studio 6 auto-generated workspace file (contains which files were open etc.) 405 | *.vbw 406 | 407 | # Visual Studio LightSwitch build output 408 | **/*.HTMLClient/GeneratedArtifacts 409 | **/*.DesktopClient/GeneratedArtifacts 410 | **/*.DesktopClient/ModelManifest.xml 411 | **/*.Server/GeneratedArtifacts 412 | **/*.Server/ModelManifest.xml 413 | _Pvt_Extensions 414 | 415 | # Paket dependency manager 416 | .paket/paket.exe 417 | paket-files/ 418 | 419 | # FAKE - F# Make 420 | .fake/ 421 | 422 | # CodeRush personal settings 423 | .cr/personal 424 | 425 | # Python Tools for Visual Studio (PTVS) 426 | __pycache__/ 427 | *.pyc 428 | 429 | # Cake - Uncomment if you are using it 430 | # tools/** 431 | # !tools/packages.config 432 | 433 | # Tabs Studio 434 | *.tss 435 | 436 | # Telerik's JustMock configuration file 437 | *.jmconfig 438 | 439 | # BizTalk build output 440 | *.btp.cs 441 | *.btm.cs 442 | *.odx.cs 443 | *.xsd.cs 444 | 445 | # OpenCover UI analysis results 446 | OpenCover/ 447 | 448 | # Azure Stream Analytics local run output 449 | ASALocalRun/ 450 | 451 | # MSBuild Binary and Structured Log 452 | *.binlog 453 | 454 | # NVidia Nsight GPU debugger configuration file 455 | *.nvuser 456 | 457 | # MFractors (Xamarin productivity tool) working folder 458 | .mfractor/ 459 | 460 | # Local History for Visual Studio 461 | .localhistory/ 462 | 463 | # BeatPulse healthcheck temp database 464 | healthchecksdb 465 | 466 | # Backup folder for Package Reference Convert tool in Visual Studio 2017 467 | MigrationBackup/ 468 | 469 | # Ionide (cross platform F# VS Code tools) working folder 470 | .ionide/ 471 | 472 | # Fody - auto-generated XML schema 473 | FodyWeavers.xsd 474 | 475 | # VS Code files for those working on multiple tools 476 | .vscode/* 477 | !.vscode/settings.json 478 | !.vscode/tasks.json 479 | !.vscode/launch.json 480 | !.vscode/extensions.json 481 | *.code-workspace 482 | 483 | # Local History for Visual Studio Code 484 | .history/ 485 | 486 | # Windows Installer files from build outputs 487 | *.cab 488 | *.msi 489 | *.msix 490 | *.msm 491 | *.msp 492 | 493 | # JetBrains Rider 494 | .idea/ 495 | *.sln.iml 496 | 497 | # __ __ _ _ 498 | # \ \ / /(_) _ __ __| | ___ __ __ ___ 499 | # \ \ /\ / / | || '_ \ / _` | / _ \\ \ /\ / // __| 500 | # \ V V / | || | | || (_| || (_) |\ V V / \__ \ 501 | # \_/\_/ |_||_| |_| \__,_| \___/ \_/\_/ |___/ 502 | # 503 | # https://github.com/github/gitignore/blob/master/Global/Windows.gitignore 504 | # 5808b77453dec299d4daf8557b05a80be832a5b8 505 | 506 | # Windows thumbnail cache files 507 | Thumbs.db 508 | Thumbs.db:encryptable 509 | ehthumbs.db 510 | ehthumbs_vista.db 511 | 512 | # Dump file 513 | *.stackdump 514 | 515 | # Folder config file 516 | [Dd]esktop.ini 517 | 518 | # Recycle Bin used on file shares 519 | $RECYCLE.BIN/ 520 | 521 | # Windows Installer files 522 | *.cab 523 | *.msi 524 | *.msix 525 | *.msm 526 | *.msp 527 | 528 | # Windows shortcuts 529 | *.lnk 530 | -------------------------------------------------------------------------------- /.gitmodules: -------------------------------------------------------------------------------- 1 | [submodule "ArchiSteamFarm"] 2 | path = ArchiSteamFarm 3 | url = https://github.com/JustArchiNET/ArchiSteamFarm.git 4 | branch = main 5 | -------------------------------------------------------------------------------- /Directory.Build.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | FreePointsShop 6 | 1.0.0.0 7 | 8 | 9 | 10 | 11 | DevSplash 12 | $(Authors) 13 | Copyright © $([System.DateTime]::UtcNow.Year) $(Company) 14 | 15 | GPL-3.0 16 | https://github.com/$(Company)/$(PluginName) 17 | $(PackageProjectUrl)/releases 18 | $(PackageProjectUrl).git 19 | 20 | 21 | 22 | 23 | 24 | false 25 | false 26 | 27 | 28 | 29 | 30 | ../resources/$(PluginName).snk.pub 31 | true 32 | true 33 | 34 | 35 | 36 | 37 | ../resources/$(PluginName).snk 38 | false 39 | true 40 | 41 | 42 | -------------------------------------------------------------------------------- /Directory.Packages.props: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /FreePointsShop.sln: -------------------------------------------------------------------------------- 1 |  2 | Microsoft Visual Studio Solution File, Format Version 12.00 3 | # Visual Studio Version 17 4 | VisualStudioVersion = 17.12.35527.113 d17.12 5 | MinimumVisualStudioVersion = 10.0.40219.1 6 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FreePointsShop", "FreePointsShop\FreePointsShop.csproj", "{A64A35BD-25B6-4F4F-8C3C-E0CF9CE843B8}" 7 | EndProject 8 | Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ArchiSteamFarm", "ArchiSteamFarm\ArchiSteamFarm\ArchiSteamFarm.csproj", "{50744701-4C54-49BE-8189-518DA2A65797}" 9 | EndProject 10 | Global 11 | GlobalSection(SolutionConfigurationPlatforms) = preSolution 12 | Debug|Any CPU = Debug|Any CPU 13 | DebugFast|Any CPU = DebugFast|Any CPU 14 | Release|Any CPU = Release|Any CPU 15 | EndGlobalSection 16 | GlobalSection(ProjectConfigurationPlatforms) = postSolution 17 | {A64A35BD-25B6-4F4F-8C3C-E0CF9CE843B8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 18 | {A64A35BD-25B6-4F4F-8C3C-E0CF9CE843B8}.Debug|Any CPU.Build.0 = Debug|Any CPU 19 | {A64A35BD-25B6-4F4F-8C3C-E0CF9CE843B8}.DebugFast|Any CPU.ActiveCfg = DebugFast|Any CPU 20 | {A64A35BD-25B6-4F4F-8C3C-E0CF9CE843B8}.DebugFast|Any CPU.Build.0 = DebugFast|Any CPU 21 | {A64A35BD-25B6-4F4F-8C3C-E0CF9CE843B8}.Release|Any CPU.ActiveCfg = Release|Any CPU 22 | {A64A35BD-25B6-4F4F-8C3C-E0CF9CE843B8}.Release|Any CPU.Build.0 = Release|Any CPU 23 | {50744701-4C54-49BE-8189-518DA2A65797}.Debug|Any CPU.ActiveCfg = Debug|Any CPU 24 | {50744701-4C54-49BE-8189-518DA2A65797}.Debug|Any CPU.Build.0 = Debug|Any CPU 25 | {50744701-4C54-49BE-8189-518DA2A65797}.DebugFast|Any CPU.ActiveCfg = DebugFast|Any CPU 26 | {50744701-4C54-49BE-8189-518DA2A65797}.DebugFast|Any CPU.Build.0 = DebugFast|Any CPU 27 | {50744701-4C54-49BE-8189-518DA2A65797}.Release|Any CPU.ActiveCfg = Release|Any CPU 28 | {50744701-4C54-49BE-8189-518DA2A65797}.Release|Any CPU.Build.0 = Release|Any CPU 29 | EndGlobalSection 30 | GlobalSection(SolutionProperties) = preSolution 31 | HideSolutionNode = FALSE 32 | EndGlobalSection 33 | EndGlobal 34 | -------------------------------------------------------------------------------- /FreePointsShop.sln.DotSettings: -------------------------------------------------------------------------------- 1 |  2 | True 3 | True 4 | FullFormat 5 | True 6 | False 7 | True 8 | True 9 | ExplicitlyExcluded 10 | 11 | SOLUTION 12 | True 13 | SUGGESTION 14 | SUGGESTION 15 | SUGGESTION 16 | SUGGESTION 17 | SUGGESTION 18 | SUGGESTION 19 | SUGGESTION 20 | SUGGESTION 21 | SUGGESTION 22 | SUGGESTION 23 | SUGGESTION 24 | SUGGESTION 25 | SUGGESTION 26 | SUGGESTION 27 | SUGGESTION 28 | SUGGESTION 29 | SUGGESTION 30 | SUGGESTION 31 | SUGGESTION 32 | SUGGESTION 33 | SUGGESTION 34 | SUGGESTION 35 | SUGGESTION 36 | SUGGESTION 37 | SUGGESTION 38 | SUGGESTION 39 | SUGGESTION 40 | SUGGESTION 41 | SUGGESTION 42 | SUGGESTION 43 | SUGGESTION 44 | SUGGESTION 45 | SUGGESTION 46 | HINT 47 | WARNING 48 | WARNING 49 | WARNING 50 | WARNING 51 | WARNING 52 | WARNING 53 | WARNING 54 | WARNING 55 | WARNING 56 | WARNING 57 | WARNING 58 | WARNING 59 | WARNING 60 | WARNING 61 | WARNING 62 | WARNING 63 | WARNING 64 | WARNING 65 | WARNING 66 | WARNING 67 | WARNING 68 | WARNING 69 | WARNING 70 | WARNING 71 | WARNING 72 | WARNING 73 | SUGGESTION 74 | SUGGESTION 75 | SUGGESTION 76 | SUGGESTION 77 | SUGGESTION 78 | SUGGESTION 79 | SUGGESTION 80 | SUGGESTION 81 | SUGGESTION 82 | SUGGESTION 83 | SUGGESTION 84 | SUGGESTION 85 | SUGGESTION 86 | SUGGESTION 87 | SUGGESTION 88 | WARNING 89 | SUGGESTION 90 | SUGGESTION 91 | SUGGESTION 92 | SUGGESTION 93 | SUGGESTION 94 | SUGGESTION 95 | SUGGESTION 96 | SUGGESTION 97 | SUGGESTION 98 | SUGGESTION 99 | SUGGESTION 100 | SUGGESTION 101 | SUGGESTION 102 | SUGGESTION 103 | SUGGESTION 104 | SUGGESTION 105 | SUGGESTION 106 | SUGGESTION 107 | SUGGESTION 108 | SUGGESTION 109 | SUGGESTION 110 | SUGGESTION 111 | SUGGESTION 112 | SUGGESTION 113 | SUGGESTION 114 | SUGGESTION 115 | SUGGESTION 116 | SUGGESTION 117 | SUGGESTION 118 | SUGGESTION 119 | SUGGESTION 120 | SUGGESTION 121 | SUGGESTION 122 | SUGGESTION 123 | SUGGESTION 124 | SUGGESTION 125 | SUGGESTION 126 | SUGGESTION 127 | SUGGESTION 128 | SUGGESTION 129 | SUGGESTION 130 | SUGGESTION 131 | SUGGESTION 132 | SUGGESTION 133 | SUGGESTION 134 | SUGGESTION 135 | SUGGESTION 136 | SUGGESTION 137 | SUGGESTION 138 | SUGGESTION 139 | SUGGESTION 140 | SUGGESTION 141 | SUGGESTION 142 | SUGGESTION 143 | SUGGESTION 144 | SUGGESTION 145 | SUGGESTION 146 | SUGGESTION 147 | SUGGESTION 148 | SUGGESTION 149 | SUGGESTION 150 | SUGGESTION 151 | SUGGESTION 152 | SUGGESTION 153 | SUGGESTION 154 | SUGGESTION 155 | SUGGESTION 156 | SUGGESTION 157 | SUGGESTION 158 | SUGGESTION 159 | SUGGESTION 160 | SUGGESTION 161 | SUGGESTION 162 | SUGGESTION 163 | SUGGESTION 164 | SUGGESTION 165 | SUGGESTION 166 | SUGGESTION 167 | SUGGESTION 168 | SUGGESTION 169 | HINT 170 | SUGGESTION 171 | SUGGESTION 172 | SUGGESTION 173 | SUGGESTION 174 | SUGGESTION 175 | SUGGESTION 176 | SUGGESTION 177 | SUGGESTION 178 | SUGGESTION 179 | SUGGESTION 180 | SUGGESTION 181 | SUGGESTION 182 | SUGGESTION 183 | SUGGESTION 184 | WARNING 185 | WARNING 186 | WARNING 187 | WARNING 188 | WARNING 189 | WARNING 190 | WARNING 191 | WARNING 192 | WARNING 193 | SUGGESTION 194 | SUGGESTION 195 | SUGGESTION 196 | SUGGESTION 197 | HINT 198 | HINT 199 | SUGGESTION 200 | WARNING 201 | 202 | SUGGESTION 203 | SUGGESTION 204 | HINT 205 | WARNING 206 | SUGGESTION 207 | 208 | True 209 | SUGGESTION 210 | WARNING 211 | WARNING 212 | SUGGESTION 213 | SUGGESTION 214 | SUGGESTION 215 | HINT 216 | HINT 217 | WARNING 218 | SUGGESTION 219 | SUGGESTION 220 | SUGGESTION 221 | WARNING 222 | SUGGESTION 223 | SUGGESTION 224 | SUGGESTION 225 | SUGGESTION 226 | SUGGESTION 227 | 228 | 229 | WARNING 230 | WARNING 231 | WARNING 232 | SUGGESTION 233 | SUGGESTION 234 | WARNING 235 | WARNING 236 | WARNING 237 | HINT 238 | HINT 239 | WARNING 240 | SUGGESTION 241 | SUGGESTION 242 | SUGGESTION 243 | WARNING 244 | HINT 245 | SUGGESTION 246 | SUGGESTION 247 | SUGGESTION 248 | WARNING 249 | WARNING 250 | WARNING 251 | SUGGESTION 252 | SUGGESTION 253 | SUGGESTION 254 | SUGGESTION 255 | 256 | 257 | SUGGESTION 258 | SUGGESTION 259 | SUGGESTION 260 | SUGGESTION 261 | SUGGESTION 262 | SUGGESTION 263 | WARNING 264 | SUGGESTION 265 | SUGGESTION 266 | WARNING 267 | SUGGESTION 268 | SUGGESTION 269 | WARNING 270 | SUGGESTION 271 | WARNING 272 | SUGGESTION 273 | WARNING 274 | SUGGESTION 275 | SUGGESTION 276 | SUGGESTION 277 | SUGGESTION 278 | SUGGESTION 279 | SUGGESTION 280 | SUGGESTION 281 | SUGGESTION 282 | SUGGESTION 283 | SUGGESTION 284 | SUGGESTION 285 | SUGGESTION 286 | SUGGESTION 287 | SUGGESTION 288 | SUGGESTION 289 | HINT 290 | SUGGESTION 291 | WARNING 292 | SUGGESTION 293 | SUGGESTION 294 | SUGGESTION 295 | SUGGESTION 296 | SUGGESTION 297 | SUGGESTION 298 | SUGGESTION 299 | 300 | True 301 | WARNING 302 | WARNING 303 | 304 | 305 | SUGGESTION 306 | SUGGESTION 307 | SUGGESTION 308 | SUGGESTION 309 | SUGGESTION 310 | SUGGESTION 311 | SUGGESTION 312 | WARNING 313 | SUGGESTION 314 | SUGGESTION 315 | SUGGESTION 316 | SUGGESTION 317 | SUGGESTION 318 | SUGGESTION 319 | SUGGESTION 320 | SUGGESTION 321 | SUGGESTION 322 | SUGGESTION 323 | WARNING 324 | SUGGESTION 325 | SUGGESTION 326 | WARNING 327 | WARNING 328 | WARNING 329 | True 330 | SUGGESTION 331 | Default 332 | Default 333 | Default 334 | 335 | <?xml version="1.0" encoding="utf-16"?><Profile name="Archi"><CSReorderTypeMembers>True</CSReorderTypeMembers><AspOptimizeRegisterDirectives>True</AspOptimizeRegisterDirectives><HtmlReformatCode>True</HtmlReformatCode><JsInsertSemicolon>True</JsInsertSemicolon><FormatAttributeQuoteDescriptor>True</FormatAttributeQuoteDescriptor><CorrectVariableKindsDescriptor>True</CorrectVariableKindsDescriptor><VariablesToInnerScopesDescriptor>True</VariablesToInnerScopesDescriptor><StringToTemplatesDescriptor>True</StringToTemplatesDescriptor><JsReformatCode>True</JsReformatCode><JsFormatDocComments>True</JsFormatDocComments><RemoveRedundantQualifiersTs>True</RemoveRedundantQualifiersTs><OptimizeImportsTs>True</OptimizeImportsTs><OptimizeReferenceCommentsTs>True</OptimizeReferenceCommentsTs><PublicModifierStyleTs>True</PublicModifierStyleTs><ExplicitAnyTs>True</ExplicitAnyTs><TypeAnnotationStyleTs>True</TypeAnnotationStyleTs><RelativePathStyleTs>True</RelativePathStyleTs><AsInsteadOfCastTs>True</AsInsteadOfCastTs><XMLReformatCode>True</XMLReformatCode><CSCodeStyleAttributes ArrangeTypeAccessModifier="True" ArrangeTypeMemberAccessModifier="True" SortModifiers="True" RemoveRedundantParentheses="True" AddMissingParentheses="True" ArrangeBraces="True" ArrangeAttributes="True" ArrangeArgumentsStyle="True" ArrangeCodeBodyStyle="True" ArrangeVarStyle="True" ArrangeTrailingCommas="True" ArrangeObjectCreation="True" ArrangeDefaultValue="True" ArrangeNamespaces="True" /><RemoveCodeRedundanciesVB>True</RemoveCodeRedundanciesVB><CssAlphabetizeProperties>True</CssAlphabetizeProperties><VBOptimizeImports>True</VBOptimizeImports><VBShortenReferences>True</VBShortenReferences><RemoveCodeRedundancies>True</RemoveCodeRedundancies><CSUseAutoProperty>True</CSUseAutoProperty><CSMakeFieldReadonly>True</CSMakeFieldReadonly><CSMakeAutoPropertyGetOnly>True</CSMakeAutoPropertyGetOnly><CSArrangeQualifiers>True</CSArrangeQualifiers><CSFixBuiltinTypeReferences>True</CSFixBuiltinTypeReferences><CssReformatCode>True</CssReformatCode><VBReformatCode>True</VBReformatCode><VBFormatDocComments>True</VBFormatDocComments><CSOptimizeUsings><OptimizeUsings>True</OptimizeUsings></CSOptimizeUsings><CSShortenReferences>True</CSShortenReferences><CSReformatCode>True</CSReformatCode><CSharpFormatDocComments>True</CSharpFormatDocComments><CSUpdateFileHeader>True</CSUpdateFileHeader><Xaml.RedundantFreezeAttribute>True</Xaml.RedundantFreezeAttribute><Xaml.RemoveRedundantModifiersAttribute>True</Xaml.RemoveRedundantModifiersAttribute><Xaml.RemoveRedundantNameAttribute>True</Xaml.RemoveRedundantNameAttribute><Xaml.RemoveRedundantResource>True</Xaml.RemoveRedundantResource><Xaml.RemoveRedundantCollectionProperty>True</Xaml.RemoveRedundantCollectionProperty><Xaml.RemoveRedundantAttachedPropertySetter>True</Xaml.RemoveRedundantAttachedPropertySetter><Xaml.RemoveRedundantStyledValue>True</Xaml.RemoveRedundantStyledValue><Xaml.RemoveRedundantNamespaceAlias>True</Xaml.RemoveRedundantNamespaceAlias><Xaml.RemoveForbiddenResourceName>True</Xaml.RemoveForbiddenResourceName><Xaml.RemoveRedundantGridDefinitionsAttribute>True</Xaml.RemoveRedundantGridDefinitionsAttribute><Xaml.RemoveRedundantGridSpanAttribut>True</Xaml.RemoveRedundantGridSpanAttribut><Xaml.RemoveRedundantUpdateSourceTriggerAttribute>True</Xaml.RemoveRedundantUpdateSourceTriggerAttribute><Xaml.RemoveRedundantBindingModeAttribute>True</Xaml.RemoveRedundantBindingModeAttribute><CppAddTypenameTemplateKeywords>True</CppAddTypenameTemplateKeywords><CppJoinDeclarationAndAssignmentDescriptor>True</CppJoinDeclarationAndAssignmentDescriptor><CppMakeLocalVarConstDescriptor>True</CppMakeLocalVarConstDescriptor><CppMakeMethodConst>True</CppMakeMethodConst><CppMakeMethodStatic>True</CppMakeMethodStatic><CppRemoveElseKeyword>True</CppRemoveElseKeyword><CppRemoveRedundantMemberInitializerDescriptor>True</CppRemoveRedundantMemberInitializerDescriptor><CppRemoveRedundantParentheses>True</CppRemoveRedundantParentheses><CppShortenQualifiedName>True</CppShortenQualifiedName><CppDeleteRedundantSpecifier>True</CppDeleteRedundantSpecifier><CppRemoveStatement>True</CppRemoveStatement><CppRemoveTemplateArgumentsDescriptor>True</CppRemoveTemplateArgumentsDescriptor><CppDeleteRedundantTypenameTemplateKeywords>True</CppDeleteRedundantTypenameTemplateKeywords><CppRemoveUnreachableCode>True</CppRemoveUnreachableCode><CppRemoveUnusedIncludes>True</CppRemoveUnusedIncludes><CppRemoveUnusedLambdaCaptures>True</CppRemoveUnusedLambdaCaptures><CppCStyleToStaticCastDescriptor>True</CppCStyleToStaticCastDescriptor><CppReplaceExpressionWithBooleanConst>True</CppReplaceExpressionWithBooleanConst><CppMakeIfConstexpr>True</CppMakeIfConstexpr><CppMakePostfixOperatorPrefix>True</CppMakePostfixOperatorPrefix><CppChangeSmartPointerToMakeFunction>True</CppChangeSmartPointerToMakeFunction><CppReplaceThrowWithRethrowFix>True</CppReplaceThrowWithRethrowFix><CppReplaceExpressionWithNullptr>True</CppReplaceExpressionWithNullptr><CppCodeStyleCleanupDescriptor ArrangeAuto="True" ArrangeBraces="True" ArrangeCVQualifiers="True" ArrangeFunctionDeclarations="True" ArrangeNestedNamespaces="True" ArrangeOverridingFunctions="True" ArrangeSlashesInIncludeDirectives="True" ArrangeTypeAliases="True" SortIncludeDirectives="True" SortMemberInitializers="True" /><CppReformatCode>True</CppReformatCode><CppUpdateFileHeader>True</CppUpdateFileHeader><IDEA_SETTINGS>&lt;profile version="1.0"&gt; 336 | &lt;option name="myName" value="Archi" /&gt; 337 | &lt;inspection_tool class="ConditionalExpressionWithIdenticalBranchesJS" enabled="true" level="WARNING" enabled_by_default="true" /&gt; 338 | &lt;inspection_tool class="ES6ShorthandObjectProperty" enabled="true" level="WARNING" enabled_by_default="true" /&gt; 339 | &lt;inspection_tool class="JSArrowFunctionBracesCanBeRemoved" enabled="true" level="WARNING" enabled_by_default="true" /&gt; 340 | &lt;inspection_tool class="JSRemoveUnnecessaryParentheses" enabled="true" level="WARNING" enabled_by_default="true" /&gt; 341 | &lt;inspection_tool class="TypeScriptExplicitMemberType" enabled="true" level="WARNING" enabled_by_default="true" /&gt; 342 | &lt;inspection_tool class="UnterminatedStatementJS" enabled="true" level="WARNING" enabled_by_default="true" /&gt; 343 | &lt;/profile&gt;</IDEA_SETTINGS><ShaderLabReformatCode>True</ShaderLabReformatCode><CppRemoveCastDescriptor>True</CppRemoveCastDescriptor><CppRemoveElaboratedTypeSpecifierDescriptor>True</CppRemoveElaboratedTypeSpecifierDescriptor><CppRemoveRedundantLambdaParameterListDescriptor>True</CppRemoveRedundantLambdaParameterListDescriptor><CppTypeTraitAliasDescriptor>True</CppTypeTraitAliasDescriptor><CppReplaceTieWithStructuredBindingDescriptor>True</CppReplaceTieWithStructuredBindingDescriptor><CppUseAssociativeContainsDescriptor>True</CppUseAssociativeContainsDescriptor><CppUseEraseAlgorithmDescriptor>True</CppUseEraseAlgorithmDescriptor><RIDER_SETTINGS>&lt;profile&gt; 344 | &lt;Language id="CSS"&gt; 345 | &lt;Rearrange&gt;true&lt;/Rearrange&gt; 346 | &lt;Reformat&gt;true&lt;/Reformat&gt; 347 | &lt;/Language&gt; 348 | &lt;Language id="EditorConfig"&gt; 349 | &lt;Reformat&gt;true&lt;/Reformat&gt; 350 | &lt;/Language&gt; 351 | &lt;Language id="HTML"&gt; 352 | &lt;OptimizeImports&gt;true&lt;/OptimizeImports&gt; 353 | &lt;Rearrange&gt;true&lt;/Rearrange&gt; 354 | &lt;Reformat&gt;true&lt;/Reformat&gt; 355 | &lt;/Language&gt; 356 | &lt;Language id="HTTP Request"&gt; 357 | &lt;Reformat&gt;true&lt;/Reformat&gt; 358 | &lt;/Language&gt; 359 | &lt;Language id="Handlebars"&gt; 360 | &lt;Reformat&gt;true&lt;/Reformat&gt; 361 | &lt;/Language&gt; 362 | &lt;Language id="Ini"&gt; 363 | &lt;Reformat&gt;true&lt;/Reformat&gt; 364 | &lt;/Language&gt; 365 | &lt;Language id="JSON"&gt; 366 | &lt;Reformat&gt;true&lt;/Reformat&gt; 367 | &lt;/Language&gt; 368 | &lt;Language id="Jade"&gt; 369 | &lt;Reformat&gt;true&lt;/Reformat&gt; 370 | &lt;/Language&gt; 371 | &lt;Language id="JavaScript"&gt; 372 | &lt;OptimizeImports&gt;true&lt;/OptimizeImports&gt; 373 | &lt;Rearrange&gt;true&lt;/Rearrange&gt; 374 | &lt;Reformat&gt;true&lt;/Reformat&gt; 375 | &lt;/Language&gt; 376 | &lt;Language id="Markdown"&gt; 377 | &lt;Reformat&gt;true&lt;/Reformat&gt; 378 | &lt;/Language&gt; 379 | &lt;Language id="Properties"&gt; 380 | &lt;Reformat&gt;true&lt;/Reformat&gt; 381 | &lt;/Language&gt; 382 | &lt;Language id="RELAX-NG"&gt; 383 | &lt;Reformat&gt;true&lt;/Reformat&gt; 384 | &lt;/Language&gt; 385 | &lt;Language id="SQL"&gt; 386 | &lt;Reformat&gt;true&lt;/Reformat&gt; 387 | &lt;/Language&gt; 388 | &lt;Language id="XML"&gt; 389 | &lt;OptimizeImports&gt;true&lt;/OptimizeImports&gt; 390 | &lt;Rearrange&gt;true&lt;/Rearrange&gt; 391 | &lt;Reformat&gt;true&lt;/Reformat&gt; 392 | &lt;/Language&gt; 393 | &lt;Language id="yaml"&gt; 394 | &lt;Reformat&gt;true&lt;/Reformat&gt; 395 | &lt;/Language&gt; 396 | &lt;/profile&gt;</RIDER_SETTINGS></Profile> 397 | Archi 398 | USE_TABS_ONLY 399 | True 400 | Required 401 | Required 402 | Required 403 | Required 404 | ExpressionBody 405 | DefaultExpression 406 | ExpressionBody 407 | ExpressionBody 408 | public protected internal private static extern new virtual abstract sealed override readonly unsafe volatile async 409 | 410 | Arithmetic, Shift, Bitwise, Conditional 411 | END_OF_LINE 412 | END_OF_LINE 413 | USE_TABS_ONLY 414 | False 415 | 416 | END_OF_LINE 417 | 1 418 | 1 419 | 1 420 | 1 421 | 1 422 | 1 423 | 1 424 | 0 425 | 0 426 | END_OF_LINE 427 | TOGETHER_SAME_LINE 428 | Tab 429 | END_OF_LINE 430 | END_OF_LINE 431 | 1 432 | 1 433 | False 434 | False 435 | False 436 | True 437 | False 438 | 439 | True 440 | 1 441 | 442 | END_OF_LINE 443 | NEVER 444 | NEVER 445 | False 446 | False 447 | False 448 | NEVER 449 | False 450 | False 451 | NEVER 452 | LINE_BREAK 453 | LINE_BREAK 454 | 455 | True 456 | True 457 | END_OF_LINE 458 | False 459 | True 460 | True 461 | True 462 | True 463 | WRAP_IF_LONG 464 | 65535 465 | False 466 | USE_TABS_ONLY 467 | USE_TABS_ONLY 468 | Tab 469 | False 470 | USE_TABS_ONLY 471 | USE_TABS_ONLY 472 | USE_TABS_ONLY 473 | USE_TABS_ONLY 474 | USE_TABS_ONLY 475 | 4 476 | Tab 477 | True 478 | 2147483646 479 | OnSingleLine 480 | 4 481 | ByFirstAttr 482 | OnSingleLine 483 | False 484 | 10000 485 | False 486 | USE_TABS_ONLY 487 | 4 488 | Tab 489 | OnSingleLine 490 | 4 491 | OnSingleLine 492 | False 493 | 10000 494 | False 495 | <?xml version="1.0" encoding="utf-16"?> 496 | <Patterns xmlns="urn:schemas-jetbrains-com:member-reordering-patterns"> 497 | <TypePattern DisplayName="ArchiPattern" Priority="150"> 498 | <Entry DisplayName="Public (Events and Delegates)"> 499 | <Entry.Match> 500 | <And> 501 | <Access Is="Public" /> 502 | <Or> 503 | <Kind Is="Delegate" /> 504 | <Kind Is="Event" /> 505 | </Or> 506 | </And> 507 | </Entry.Match> 508 | <Entry.SortBy> 509 | <Access /> 510 | <Kind Is="Member" /> 511 | <Name /> 512 | </Entry.SortBy> 513 | </Entry> 514 | <Entry DisplayName="Constants"> 515 | <Entry.Match> 516 | <Kind Is="Constant" /> 517 | </Entry.Match> 518 | <Entry.SortBy> 519 | <Access /> 520 | <Kind Is="Member" /> 521 | <Name /> 522 | </Entry.SortBy> 523 | </Entry> 524 | <Entry DisplayName="Static (Fields, Properties and Indexers)"> 525 | <Entry.Match> 526 | <Or> 527 | <And> 528 | <Kind Is="Field" /> 529 | <Static /> 530 | </And> 531 | <And> 532 | <Kind Is="Autoproperty" /> 533 | <Static /> 534 | </And> 535 | <And> 536 | <Kind Is="Property" /> 537 | <Static /> 538 | </And> 539 | <And> 540 | <Kind Is="Indexer" /> 541 | <Static /> 542 | </And> 543 | </Or> 544 | </Entry.Match> 545 | <Entry.SortBy> 546 | <Access /> 547 | <Readonly /> 548 | <Kind Is="Member" /> 549 | <Name /> 550 | </Entry.SortBy> 551 | </Entry> 552 | <Entry DisplayName="Non-static (Fields, Properties and Indexers)"> 553 | <Entry.Match> 554 | <And> 555 | <Not> 556 | <Static /> 557 | </Not> 558 | <Or> 559 | <Kind Is="Field" /> 560 | <Kind Is="Autoproperty" /> 561 | <Kind Is="Property" /> 562 | <Kind Is="Indexer" /> 563 | </Or> 564 | </And> 565 | </Entry.Match> 566 | <Entry.SortBy> 567 | <Readonly /> 568 | <Access /> 569 | <Kind Is="Member" /> 570 | <Name /> 571 | </Entry.SortBy> 572 | </Entry> 573 | <Entry DisplayName="Constructors"> 574 | <Entry.Match> 575 | <Kind Is="Constructor" /> 576 | </Entry.Match> 577 | <Entry.SortBy> 578 | <Access /> 579 | <Kind Is="Member" /> 580 | <Name /> 581 | </Entry.SortBy> 582 | </Entry> 583 | <Entry DisplayName="Interfaces"> 584 | <Entry.Match> 585 | <And> 586 | <Kind Is="Member" /> 587 | <ImplementsInterface /> 588 | </And> 589 | </Entry.Match> 590 | <Entry.SortBy> 591 | <Access /> 592 | <Kind Is="Member" /> 593 | <Name /> 594 | </Entry.SortBy> 595 | </Entry> 596 | <Entry DisplayName="Everything else"> 597 | <Entry.SortBy> 598 | <Access /> 599 | <Kind Is="Member" /> 600 | <Name /> 601 | </Entry.SortBy> 602 | </Entry> 603 | <Entry DisplayName="Nested"> 604 | <Entry.Match> 605 | <Kind Is="Type" /> 606 | </Entry.Match> 607 | <Entry.SortBy> 608 | <Access /> 609 | <Kind Is="Member" /> 610 | <Name /> 611 | </Entry.SortBy> 612 | </Entry> 613 | </TypePattern> 614 | <TypePattern DisplayName="COM interfaces or structs"> 615 | <TypePattern.Match> 616 | <Or> 617 | <And> 618 | <Kind Is="Interface" /> 619 | <Or> 620 | <HasAttribute Name="System.Runtime.InteropServices.InterfaceTypeAttribute" /> 621 | <HasAttribute Name="System.Runtime.InteropServices.ComImport" /> 622 | </Or> 623 | </And> 624 | <Kind Is="Struct" /> 625 | </Or> 626 | </TypePattern.Match> 627 | </TypePattern> 628 | <TypePattern DisplayName="xUnit.net Test Classes" RemoveRegions="All"> 629 | <TypePattern.Match> 630 | <And> 631 | <Kind Is="Class" /> 632 | <HasMember> 633 | <And> 634 | <Kind Is="Method" /> 635 | <HasAttribute Name="Xunit.FactAttribute" Inherited="True" /> 636 | </And> 637 | </HasMember> 638 | </And> 639 | </TypePattern.Match> 640 | <Entry DisplayName="Setup/Teardown Methods"> 641 | <Entry.Match> 642 | <Or> 643 | <Kind Is="Constructor" /> 644 | <And> 645 | <Kind Is="Method" /> 646 | <ImplementsInterface Name="System.IDisposable" /> 647 | </And> 648 | </Or> 649 | </Entry.Match> 650 | <Entry.SortBy> 651 | <Kind Order="Constructor" /> 652 | </Entry.SortBy> 653 | </Entry> 654 | <Entry DisplayName="All other members" /> 655 | <Entry DisplayName="Test Methods" Priority="100"> 656 | <Entry.Match> 657 | <And> 658 | <Kind Is="Method" /> 659 | <HasAttribute Name="Xunit.FactAttribute" /> 660 | </And> 661 | </Entry.Match> 662 | <Entry.SortBy> 663 | <Name /> 664 | </Entry.SortBy> 665 | </Entry> 666 | </TypePattern> 667 | <TypePattern DisplayName="NUnit Test Fixtures" RemoveRegions="All"> 668 | <TypePattern.Match> 669 | <And> 670 | <Kind Is="Class" /> 671 | <HasAttribute Name="NUnit.Framework.TestFixtureAttribute" Inherited="True" /> 672 | </And> 673 | </TypePattern.Match> 674 | <Entry DisplayName="Setup/Teardown Methods"> 675 | <Entry.Match> 676 | <And> 677 | <Kind Is="Method" /> 678 | <Or> 679 | <HasAttribute Name="NUnit.Framework.SetUpAttribute" Inherited="True" /> 680 | <HasAttribute Name="NUnit.Framework.TearDownAttribute" Inherited="True" /> 681 | <HasAttribute Name="NUnit.Framework.FixtureSetUpAttribute" Inherited="True" /> 682 | <HasAttribute Name="NUnit.Framework.FixtureTearDownAttribute" Inherited="True" /> 683 | </Or> 684 | </And> 685 | </Entry.Match> 686 | </Entry> 687 | <Entry DisplayName="All other members" /> 688 | <Entry DisplayName="Test Methods" Priority="100"> 689 | <Entry.Match> 690 | <And> 691 | <Kind Is="Method" /> 692 | <HasAttribute Name="NUnit.Framework.TestAttribute" /> 693 | </And> 694 | </Entry.Match> 695 | <Entry.SortBy> 696 | <Name /> 697 | </Entry.SortBy> 698 | </Entry> 699 | </TypePattern> 700 | </Patterns> 701 | UseExplicitType 702 | UseExplicitType 703 | UseExplicitType 704 | False 705 | False 706 | AES 707 | API 708 | ASF 709 | EWCF 710 | FA 711 | FS 712 | GC 713 | GID 714 | HTML 715 | IASF 716 | ID 717 | IP 718 | IPC 719 | OK 720 | OS 721 | PICS 722 | PIN 723 | SC 724 | SMS 725 | TTL 726 | URL 727 | WCF 728 | WS 729 | WTF 730 | WWW 731 | XML 732 | False 733 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb"><ExtraRule Prefix="I" Suffix="" Style="AaBb" /></Policy> 734 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> 735 | <Policy Inspect="True" Prefix="" Suffix="" Style="AaBb" /> 736 | <Policy Inspect="True" Prefix="T" Suffix="" Style="AaBb" /> 737 | 738 | True 739 | OnlyMarkers 740 | Never 741 | Never 742 | True 743 | Never 744 | False 745 | False 746 | LIVE_MONITOR 747 | LIVE_MONITOR 748 | LIVE_MONITOR 749 | LIVE_MONITOR 750 | LIVE_MONITOR 751 | LIVE_MONITOR 752 | LIVE_MONITOR 753 | LIVE_MONITOR 754 | LIVE_MONITOR 755 | LIVE_MONITOR 756 | LIVE_MONITOR 757 | LIVE_MONITOR 758 | DO_NOTHING 759 | LIVE_MONITOR 760 | LIVE_MONITOR 761 | NOTIFY 762 | NOTIFY 763 | 764 | 765 | True 766 | NOTIFY 767 | True 768 | True 769 | True 770 | True 771 | True 772 | True 773 | True 774 | True 775 | True 776 | True 777 | True 778 | True 779 | True 780 | True 781 | True 782 | True 783 | True 784 | True 785 | True 786 | True 787 | True 788 | 8 789 | True 790 | True 791 | True 792 | True 793 | True 794 | True 795 | True 796 | True 797 | True 798 | -------------------------------------------------------------------------------- /FreePointsShop/AssemblyInfo.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | [assembly: CLSCompliant(false)] 4 | -------------------------------------------------------------------------------- /FreePointsShop/Data/BatchedQueryRequest.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Text.Json.Serialization; 3 | 4 | namespace FreePointsShop.Data; 5 | internal sealed record BatchedQueryRequest { 6 | [JsonPropertyName("requests"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 7 | public List? Requests { get; set; } 8 | public BatchedQueryRequest(List? requests = null) => Requests = requests; 9 | } 10 | internal sealed record BatchedQueryRequestData { 11 | [JsonPropertyName("appids"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 12 | public List? AppIds { get; set; } 13 | [JsonPropertyName("time_available"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 14 | public uint? TimeAvailable { get; set; } 15 | [JsonPropertyName("community_item_classes"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 16 | public List? CommunityItemClasses { get; set; } 17 | [JsonPropertyName("language"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 18 | public string? Language { get; set; } 19 | [JsonPropertyName("count"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 20 | public int? Count { get; set; } 21 | [JsonPropertyName("cursor"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 22 | public string? Cursor { get; set; } 23 | [JsonPropertyName("sort"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 24 | public int? Sort { get; set; } 25 | [JsonPropertyName("sort_descending"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 26 | public bool? SortDescending { get; set; } 27 | [JsonPropertyName("reward_types"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 28 | public List? RewardTypes { get; set; } 29 | [JsonPropertyName("excluded_community_item_classes"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 30 | public List? ExcludedCommunityItemClasses { get; set; } 31 | [JsonPropertyName("definitionids"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 32 | public List? DefinitionIds { get; set; } 33 | [JsonPropertyName("filters"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 34 | public List? Filters { get; set; } 35 | [JsonPropertyName("filter_match_all_category_tags"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 36 | public List? FilterMatchAllCategoryTags { get; set; } 37 | [JsonPropertyName("filter_match_any_category_tags"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 38 | public List? FilterMatchAnyCategoryTags { get; set; } 39 | [JsonPropertyName("contains_definitionids"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 40 | public List? ContainsDefinitionIds { get; set; } 41 | [JsonPropertyName("include_direct_purchase_disabled"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 42 | public bool? IncludeDirectPurchaseDisabled { get; set; } 43 | [JsonPropertyName("excluded_content_descriptors"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 44 | public List? ExcludedContentDescriptors { get; set; } 45 | [JsonPropertyName("excluded_appids"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 46 | public List? ExcludedAppIds { get; set; } 47 | [JsonPropertyName("store_tagids"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 48 | public List? StoreTagIds { get; set; } 49 | [JsonPropertyName("excluded_store_tagids"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 50 | public List? ExcludedStoreTagIds { get; set; } 51 | [JsonPropertyName("search_term"), JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)] 52 | public string? SearchTerm { get; set; } 53 | } 54 | -------------------------------------------------------------------------------- /FreePointsShop/Data/BatchedQueryResponse.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Text.Json.Serialization; 3 | 4 | namespace FreePointsShop.Data; 5 | internal sealed record BatchedQueryResponse { 6 | [JsonPropertyName("response"), JsonRequired] 7 | public BatchedQueryResponses? Response { get; init; } 8 | } 9 | internal sealed record BatchedQueryResponses { 10 | [JsonPropertyName("responses")] 11 | public List? Responses { get; init; } 12 | } 13 | internal sealed record BatchedQueryResponseData { 14 | [JsonPropertyName("eresult")] 15 | public int? EResult { get; init; } 16 | [JsonPropertyName("response")] 17 | public RewardItemsData? Response { get; init; } 18 | } 19 | -------------------------------------------------------------------------------- /FreePointsShop/Data/CommunityInventoryResponse.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Text.Json.Serialization; 3 | 4 | namespace FreePointsShop.Data; 5 | internal sealed record CommunityInventoryResponse { 6 | [JsonPropertyName("response"), JsonRequired] 7 | public CommunityInventoryItems? Response { get; init; } 8 | } 9 | internal sealed record CommunityInventoryItems { 10 | [JsonPropertyName("items")] 11 | public List? Items { get; init; } 12 | } 13 | internal sealed record CommunityInventoryData { 14 | [JsonPropertyName("communityitemid")] 15 | public string? CommunityItemId { get; init; } 16 | [JsonPropertyName("item_type")] 17 | public int? ItemType { get; init; } 18 | [JsonPropertyName("appid")] 19 | public uint? AppId { get; init; } 20 | [JsonPropertyName("owner")] 21 | public int? Owner { get; init; } 22 | [JsonPropertyName("attributes")] 23 | public List? Attributes { get; init; } 24 | [JsonPropertyName("used")] 25 | public bool? Used { get; init; } 26 | [JsonPropertyName("owner_origin")] 27 | public int? OwnerOrigin { get; init; } 28 | [JsonPropertyName("amount")] 29 | public string? Amount { get; init; } 30 | } 31 | internal sealed record CommunityInventoryAttribute { 32 | [JsonPropertyName("attributeid")] 33 | public int? AttributeId { get; init; } 34 | [JsonPropertyName("value")] 35 | public string? Value { get; init; } 36 | } 37 | -------------------------------------------------------------------------------- /FreePointsShop/Data/EligibleAppsResponse.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Text.Json.Serialization; 3 | 4 | namespace FreePointsShop.Data; 5 | internal sealed record EligibleAppsResponse { 6 | [JsonPropertyName("response"), JsonRequired] 7 | public EligibleAppsData? Response { get; init; } 8 | } 9 | internal sealed record EligibleAppsData { 10 | [JsonPropertyName("apps")] 11 | public List? Apps { get; init; } 12 | } 13 | internal sealed record EligibleApp { 14 | [JsonPropertyName("appid")] 15 | public uint? AppId { get; init; } 16 | [JsonPropertyName("has_items_anyone_can_purchase")] 17 | public bool? HasItemsAnyoneCanPurchase { get; init; } 18 | [JsonPropertyName("event_app")] 19 | public bool? EventApp { get; init; } 20 | [JsonPropertyName("hero_carousel_image")] 21 | public string? HeroCarouselImage { get; init; } 22 | } 23 | 24 | -------------------------------------------------------------------------------- /FreePointsShop/Data/FreePointsShopConfig.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Immutable; 2 | 3 | namespace FreePointsShop.Data; 4 | internal sealed record FreePointsShopConfig { 5 | public ushort Interval { get; set; } = 60 * 6; 6 | public ushort PageSize { get; set; } = 1000; 7 | public uint MaxPageNum { get; set; } = 1; 8 | public ImmutableHashSet BotBlacklist { get; set; } = []; 9 | public ImmutableHashSet AppBlacklist { get; set; } = []; 10 | } 11 | -------------------------------------------------------------------------------- /FreePointsShop/Data/RewardItemsResponse.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using System.Text.Json.Serialization; 3 | 4 | namespace FreePointsShop.Data; 5 | internal sealed record RewardItemsResponse { 6 | [JsonPropertyName("response"), JsonRequired] 7 | public RewardItemsData? Response { get; init; } 8 | } 9 | internal sealed record RewardItemsData { 10 | [JsonPropertyName("count")] 11 | public uint? Count { get; init; } 12 | [JsonPropertyName("definitions")] 13 | public List? Definitions { get; init; } 14 | [JsonPropertyName("next_cursor")] 15 | public string? NextCursor { get; init; } 16 | [JsonPropertyName("total_count")] 17 | public uint? TotalCount { get; init; } 18 | } 19 | internal sealed record RewardItem { 20 | [JsonPropertyName("appid")] 21 | public uint? AppId { get; init; } 22 | [JsonPropertyName("defid")] 23 | public uint? DefId { get; init; } 24 | [JsonPropertyName("type")] 25 | public int? Type { get; init; } 26 | [JsonPropertyName("community_item_class")] 27 | public int? CommunityItemClass { get; init; } 28 | [JsonPropertyName("community_item_type")] 29 | public int? CommunityItemType { get; init; } 30 | [JsonPropertyName("point_cost")] 31 | public string? PointCost { get; init; } 32 | [JsonPropertyName("timestamp_created")] 33 | public uint? TimestampCreated { get; init; } 34 | [JsonPropertyName("timestamp_updated")] 35 | public uint? TimestampUpdated { get; init; } 36 | [JsonPropertyName("timestamp_available")] 37 | public uint? TimestampAvailable { get; init; } 38 | [JsonPropertyName("timestamp_available_end")] 39 | public uint? TimestampAvailableEnd { get; init; } 40 | [JsonPropertyName("quantity")] 41 | public string? Quantity { get; init; } 42 | [JsonPropertyName("internal_description")] 43 | public string? InternalDescription { get; init; } 44 | [JsonPropertyName("active")] 45 | public bool? Active { get; init; } 46 | [JsonPropertyName("community_item_data")] 47 | public CommunityItemData? CommunityItemData { get; init; } 48 | [JsonPropertyName("bundle_defids")] 49 | public List? BundleDefIds { get; init; } 50 | [JsonPropertyName("usable_duration")] 51 | public int? UsableDuration { get; init; } 52 | [JsonPropertyName("bundle_discount")] 53 | public int? BundleDiscount { get; init; } 54 | } 55 | internal sealed record CommunityItemData { 56 | [JsonPropertyName("item_name")] 57 | public string? ItemName { get; init; } 58 | [JsonPropertyName("item_title")] 59 | public string? ItemTitle { get; init; } 60 | [JsonPropertyName("item_image_large")] 61 | public string? ItemImageLarge { get; init; } 62 | [JsonPropertyName("animated")] 63 | public bool? Animated { get; init; } 64 | [JsonPropertyName("tiled")] 65 | public bool? Tiled { get; init; } 66 | [JsonPropertyName("item_image_small")] 67 | public string? ItemImageSmall { get; init; } 68 | [JsonPropertyName("item_description")] 69 | public string? ItemDescription { get; init; } 70 | [JsonPropertyName("item_movie_webm")] 71 | public string? ItemMovieWebm { get; init; } 72 | [JsonPropertyName("item_movie_mp4")] 73 | public string? ItemMovieMp4 { get; init; } 74 | [JsonPropertyName("item_movie_webm_small")] 75 | public string? ItemMovieWebmSmall { get; init; } 76 | [JsonPropertyName("item_movie_mp4_small")] 77 | public string? ItemMovieMp4Small { get; init; } 78 | [JsonPropertyName("profile_theme_id")] 79 | public string? ProfileThemeId { get; init; } 80 | } 81 | -------------------------------------------------------------------------------- /FreePointsShop/FreePointsShop.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Collections.Immutable; 4 | using System.Collections.Specialized; 5 | using System.Globalization; 6 | using System.Linq; 7 | using System.Text.Json; 8 | using System.Text.RegularExpressions; 9 | using System.Threading; 10 | using System.Threading.Tasks; 11 | using ArchiSteamFarm.Core; 12 | using ArchiSteamFarm.Helpers.Json; 13 | using ArchiSteamFarm.Localization; 14 | using ArchiSteamFarm.Plugins.Interfaces; 15 | using ArchiSteamFarm.Steam; 16 | using ArchiSteamFarm.Web.GitHub; 17 | using ArchiSteamFarm.Web.GitHub.Data; 18 | using ArchiSteamFarm.Web.Responses; 19 | using FreePointsShop.Data; 20 | using JetBrains.Annotations; 21 | using static ArchiSteamFarm.Steam.Integration.ArchiWebHandler; 22 | 23 | namespace FreePointsShop; 24 | 25 | [UsedImplicitly] 26 | internal sealed partial class FreePointsShop : IASF, IGitHubPluginUpdates, IDisposable { 27 | public string Name => nameof(FreePointsShop); 28 | public string RepositoryName => "DevSplash/FreePointsShop"; 29 | public Version Version => typeof(FreePointsShop).Assembly.GetName().Version ?? throw new InvalidOperationException(nameof(Version)); 30 | private static Uri SteamApiURL => new("https://api.steampowered.com"); 31 | private static Uri RefererURL => new(SteamStoreURL, "/points/shop"); 32 | private FreePointsShopConfig Config = new(); 33 | private static Timer? AutoRunTimer; 34 | private static readonly SemaphoreSlim AutoRunSemaphore = new(1, 1); 35 | private static readonly SemaphoreSlim BotSemaphore = new(1, 1); 36 | [GeneratedRegex(@"\[ASFMinimumVersion\]:(\d+\.\d+\.\d+\.\d+)")] 37 | private static partial Regex ASFMinimumVersionRegex(); 38 | [GeneratedRegex(@"\[ASFMaximumVersion\]:(\d+\.\d+\.\d+\.\d+)")] 39 | private static partial Regex ASFMaximumVersionRegex(); 40 | public Task OnLoaded() { 41 | AutoRunTimer = new(OnAutoRunTimer); 42 | return Task.CompletedTask; 43 | } 44 | public Task OnASFInit(IReadOnlyDictionary? additionalConfigProperties = null) { 45 | ArgumentNullException.ThrowIfNull(AutoRunTimer); 46 | if (additionalConfigProperties != null) { 47 | foreach ((string configProperty, JsonElement configValue) in additionalConfigProperties) { 48 | if (configProperty == nameof(FreePointsShop) && configValue.ValueKind == JsonValueKind.Object) { 49 | try { 50 | Config = configValue.ToJsonObject() ?? Config; 51 | } catch (Exception e) { 52 | ASF.ArchiLogger.LogGenericWarning($"Invalid config property: {configProperty}\n{e}"); 53 | } 54 | } 55 | } 56 | } 57 | lock (AutoRunSemaphore) { 58 | if (Config.Interval != 0) { 59 | AutoRunTimer.Change(TimeSpan.FromMinutes(2), TimeSpan.FromMinutes(Config.Interval)); 60 | } else { 61 | AutoRunTimer.Change(Timeout.InfiniteTimeSpan, Timeout.InfiniteTimeSpan); 62 | } 63 | } 64 | return Task.CompletedTask; 65 | } 66 | private static async Task> QueryRewardItems(List? appids = null, List? definitionids = null, List? excludedAppids = null, List? rewardTypes = null, List? communityItemClasses = null, List? excludedCommunityItemClasses = null, ushort? count = null, string? cursor = null, uint maxPageNum = 1) { 67 | NameValueCollection parameters = []; 68 | for (int i = 0; i < appids?.Count; i++) { 69 | parameters.Add($"appids[{i}]", $"{appids[i]}"); 70 | } 71 | for (int i = 0; i < definitionids?.Count; i++) { 72 | parameters.Add($"definitionids[{i}]", $"{definitionids[i]}"); 73 | } 74 | for (int i = 0; i < excludedAppids?.Count; i++) { 75 | parameters.Add($"excluded_appids[{i}]", $"{excludedAppids[i]}"); 76 | } 77 | for (int i = 0; i < rewardTypes?.Count; i++) { 78 | parameters.Add($"reward_types[{i}]", $"{rewardTypes[i]}"); 79 | } 80 | for (int i = 0; i < communityItemClasses?.Count; i++) { 81 | parameters.Add($"community_item_classes[{i}]", $"{communityItemClasses[i]}"); 82 | } 83 | for (int i = 0; i < excludedCommunityItemClasses?.Count; i++) { 84 | parameters.Add($"excluded_community_item_classes[{i}]", $"{excludedCommunityItemClasses[i]}"); 85 | } 86 | if (count.HasValue) { 87 | parameters.Add("count", $"{count}"); 88 | } 89 | List rewardItems = []; 90 | uint page = 0; 91 | uint itemCount = 0; 92 | while (true) { 93 | if (!string.IsNullOrWhiteSpace(cursor)) { 94 | parameters["cursor"] = $"{cursor}"; 95 | } else { 96 | parameters.Remove("cursor"); 97 | } 98 | string queryString = string.Join('&', parameters.AllKeys.Select(name => $"{Uri.EscapeDataString(name ?? string.Empty)}={Uri.EscapeDataString(parameters[name] ?? string.Empty)}")); 99 | Uri uri = new(SteamApiURL, $"/ILoyaltyRewardsService/QueryRewardItems/v1/{(string.IsNullOrWhiteSpace(queryString) ? string.Empty : $"?{queryString}")}"); 100 | ObjectResponse? response = await ASF.WebBrowser!.UrlGetToJsonObject(uri, referer: RefererURL).ConfigureAwait(false); 101 | RewardItemsData? data = response?.Content?.Response; 102 | if (data == null || data.Definitions == null || data.Definitions.Count == 0) { 103 | break; 104 | } 105 | foreach (RewardItem item in data.Definitions) { 106 | if (item.DefId != null && !rewardItems.Any(rewardItem => rewardItem.DefId == item.DefId)) { 107 | rewardItems.Add(item); 108 | } 109 | } 110 | if (maxPageNum != 0 && ++page >= maxPageNum) { 111 | break; 112 | } 113 | itemCount += data.Count ?? 0; 114 | if (itemCount >= data.TotalCount) { 115 | break; 116 | } 117 | if (string.IsNullOrWhiteSpace(data.NextCursor) || cursor == data.NextCursor || data.NextCursor == "*") { 118 | break; 119 | } 120 | cursor = data.NextCursor; 121 | } 122 | return rewardItems; 123 | } 124 | private static async Task GetCommunityInventory(Bot bot, List? appids = null) { 125 | ArgumentNullException.ThrowIfNull(bot.AccessToken); 126 | NameValueCollection parameters = []; 127 | parameters.Add("access_token", $"{bot.AccessToken}"); 128 | for (int i = 0; i < appids?.Count; i++) { 129 | parameters.Add($"filter_appids[{i}]", $"{appids[i]}"); 130 | } 131 | string queryString = string.Join('&', parameters.AllKeys.Select(name => $"{Uri.EscapeDataString(name ?? string.Empty)}={Uri.EscapeDataString(parameters[name] ?? string.Empty)}")); 132 | Uri uri = new(SteamApiURL, $"/IQuestService/GetCommunityInventory/v1/?{queryString}"); 133 | ObjectResponse? response = await bot.ArchiWebHandler.UrlGetToJsonObjectWithSession(uri, referer: RefererURL).ConfigureAwait(false); 134 | return response != null && response.StatusCode.IsSuccessCode() ? response.Content : null; 135 | } 136 | private static async Task RedeemPoints(Bot bot, uint defid, long expectedCost = 0) { 137 | ArgumentNullException.ThrowIfNull(bot.AccessToken); 138 | 139 | Uri uri = new(SteamApiURL, $"/ILoyaltyRewardsService/RedeemPoints/v1/"); 140 | Dictionary data = new() { 141 | { "access_token", bot.AccessToken }, 142 | { "defid", $"{defid}" }, 143 | { "expected_points_cost", $"{expectedCost}"} 144 | }; 145 | return await bot.ArchiWebHandler.UrlPostWithSession(uri, data: data, referer: RefererURL, session: ESession.None).ConfigureAwait(false); 146 | } 147 | private static async Task> QueryBundleItems(List bundleItems, List? rewardItems = null) { 148 | List items = []; 149 | HashSet processedDefIds = []; 150 | HashSet unknownDefIds = []; 151 | HashSet defIds = [.. bundleItems.Where(item => item.BundleDefIds?.Count != 0).SelectMany(item => item.BundleDefIds ?? [])]; 152 | await QueryBundleDefIds(defIds, rewardItems ?? bundleItems, processedDefIds, unknownDefIds, items).ConfigureAwait(false); 153 | if (unknownDefIds.Count > 0) { 154 | ASF.ArchiLogger.LogGenericWarning($"[{nameof(FreePointsShop)}] Definitionids could not be found: ${string.Join(", ", unknownDefIds)}"); 155 | } 156 | return items; 157 | } 158 | private static async Task QueryBundleDefIds(HashSet defIds, List rewardItems, HashSet processedDefIds, HashSet unknownDefIds, List result, bool fetchRemote = true) { 159 | List items = []; 160 | HashSet defIdsToQuery = []; 161 | foreach (uint defId in defIds) { 162 | if (!processedDefIds.Contains(defId)) { 163 | RewardItem? rewardItem = rewardItems.FirstOrDefault(o => o.DefId == defId); 164 | if (rewardItem != null) { 165 | items.Add(rewardItem); 166 | processedDefIds.Add(defId); 167 | } else { 168 | defIdsToQuery.Add(defId); 169 | } 170 | } 171 | } 172 | if (defIdsToQuery.Count != 0) { 173 | HashSet fetchedDefIds = []; 174 | if (fetchRemote) { 175 | List fetchedItems = await QueryRewardItems(definitionids: [.. defIdsToQuery], count: 1000, maxPageNum: 0).ConfigureAwait(false); 176 | foreach (RewardItem item in fetchedItems) { 177 | if (item.DefId != null) { 178 | fetchedDefIds.Add(item.DefId.Value); 179 | if (!processedDefIds.Contains(item.DefId.Value)) { 180 | items.Add(item); 181 | processedDefIds.Add(item.DefId.Value); 182 | } 183 | } 184 | } 185 | } 186 | foreach (uint defId in defIdsToQuery.Except(fetchedDefIds)) { 187 | processedDefIds.Add(defId); 188 | unknownDefIds.Add(defId); 189 | } 190 | } 191 | defIds.Clear(); 192 | foreach (RewardItem item in items) { 193 | if (item.Type == 6) { 194 | if (item.BundleDefIds != null && item.BundleDefIds.Count != 0) { 195 | foreach (uint defId in item.BundleDefIds) { 196 | if (!processedDefIds.Contains(defId)) { 197 | defIds.Add(defId); 198 | } 199 | } 200 | } 201 | } else { 202 | result.Add(item); 203 | } 204 | } 205 | if (defIds.Count != 0) { 206 | await QueryBundleDefIds(defIds, rewardItems, processedDefIds, unknownDefIds, result, fetchRemote).ConfigureAwait(false); 207 | } 208 | } 209 | private static async Task ClaimItemTask(Bot bot, List bundleItems, List singleItems, List bundleDefs) { 210 | ArgumentNullException.ThrowIfNull(bot.AccessToken); 211 | List itemsNotFound; 212 | HashSet ownedDefIds = []; 213 | foreach (RewardItem bundleItem in bundleItems) { 214 | List items = []; 215 | await QueryBundleDefIds([.. bundleItem.BundleDefIds ?? []], bundleDefs, [], [], result: items, fetchRemote: false).ConfigureAwait(false); 216 | if (items.Count != 0) { 217 | itemsNotFound = [.. items.Where(item => !ownedDefIds.Any(defId => defId == item.DefId))]; 218 | if (itemsNotFound.Count == 0) { 219 | continue; 220 | } 221 | List? communityInventory = (await GetCommunityInventory(bot, [.. itemsNotFound.Where(o => o.AppId != null).Select(o => o.AppId!.Value).Distinct()]).ConfigureAwait(false))?.Response?.Items; 222 | if (communityInventory?.Count > 0) { 223 | foreach (CommunityInventoryData inventoryData in communityInventory) { 224 | RewardItem? ownedItem = itemsNotFound.FirstOrDefault(item => item.AppId == inventoryData.AppId && item.CommunityItemType == inventoryData.ItemType); 225 | if (ownedItem != null) { 226 | ownedDefIds.Add(ownedItem.DefId!.Value); 227 | } 228 | } 229 | if (!itemsNotFound.Any(item => !ownedDefIds.Any(defId => defId == item.DefId))) { 230 | continue; 231 | } 232 | } 233 | } 234 | if (await RedeemPoints(bot, bundleItem.DefId!.Value).ConfigureAwait(false)) { 235 | ASF.ArchiLogger.LogGenericInfo($"[{bot.BotName}] Item {bundleItem.DefId!.Value} redeemed successfully!"); 236 | foreach (uint defId in bundleItem.BundleDefIds!) { 237 | ownedDefIds.Add(defId); 238 | } 239 | } else { 240 | ASF.ArchiLogger.LogGenericWarning($"[{bot.BotName}] Item {bundleItem.DefId!.Value} could not be redeemed! ({bundleItem.ToJsonText()})"); 241 | } 242 | } 243 | itemsNotFound = [.. singleItems.Where(item => !ownedDefIds.Any(defId => defId == item.DefId))]; 244 | if (itemsNotFound.Count > 0) { 245 | List? communityInventory = (await GetCommunityInventory(bot, [.. itemsNotFound.Where(o => o.AppId != null).Select(o => o.AppId!.Value).Distinct()]).ConfigureAwait(false))?.Response?.Items; 246 | if (communityInventory?.Count > 0) { 247 | foreach (CommunityInventoryData inventoryData in communityInventory) { 248 | RewardItem? ownedItem = itemsNotFound.FirstOrDefault(item => item.AppId == inventoryData.AppId && item.CommunityItemType == inventoryData.ItemType); 249 | if (ownedItem != null) { 250 | itemsNotFound.Remove(ownedItem); 251 | } 252 | } 253 | } 254 | foreach (RewardItem item in itemsNotFound) { 255 | if (await RedeemPoints(bot, item.DefId!.Value).ConfigureAwait(false)) { 256 | ASF.ArchiLogger.LogGenericInfo($"[{bot.BotName}] Item {item.DefId!.Value} redeemed successfully!"); 257 | } else { 258 | ASF.ArchiLogger.LogGenericWarning($"[{bot.BotName}] Item {item.DefId!.Value} could not be redeemed! ({item.ToJsonText()})"); 259 | } 260 | } 261 | } 262 | } 263 | private async void OnAutoRunTimer(object? state = null) { 264 | if (!await AutoRunSemaphore.WaitAsync(0).ConfigureAwait(false)) { 265 | ASF.ArchiLogger.LogGenericWarning($"[{nameof(FreePointsShop)}] Task is already running!"); 266 | return; 267 | } 268 | try { 269 | ASF.ArchiLogger.LogGenericInfo($"[{nameof(FreePointsShop)}] Query reward items..."); 270 | List rewardItems = await QueryRewardItems(count: Config.PageSize, excludedAppids: [.. Config.AppBlacklist], maxPageNum: Config.MaxPageNum).ConfigureAwait(false); 271 | if (rewardItems.Count == 0) { 272 | return; 273 | } 274 | List bundleItems = [], 275 | singleItems = []; 276 | foreach (RewardItem item in rewardItems) { 277 | if (item.Active != true) { 278 | continue; 279 | } 280 | lock (Config.AppBlacklist) { 281 | if (item.AppId.HasValue && Config.AppBlacklist.Contains(item.AppId.Value)) { 282 | continue; 283 | } 284 | } 285 | if (item.Type == 6) { 286 | if (item.BundleDiscount == 100) { 287 | bundleItems.Add(item); 288 | } 289 | } else if (item.PointCost == "0") { 290 | singleItems.Add(item); 291 | } 292 | } 293 | if (bundleItems.Count == 0 && singleItems.Count == 0) { 294 | return; 295 | } 296 | ASF.ArchiLogger.LogGenericInfo($"[{nameof(FreePointsShop)}] {bundleItems.Count} free bundles and {singleItems.Count} free items found!"); 297 | List bundleDefs = await QueryBundleItems(bundleItems, rewardItems).ConfigureAwait(false); 298 | HashSet? bots = Bot.GetBots("ASF"); 299 | if (bots == null || bots.Count == 0) { 300 | ASF.ArchiLogger.LogGenericWarning($"[{nameof(FreePointsShop)}] Couldn't find any bot!"); 301 | return; 302 | } 303 | List tasks = []; 304 | foreach (Bot bot in bots) { 305 | if (bot.IsConnectedAndLoggedOn) { 306 | lock (Config.BotBlacklist) { 307 | if (Config.BotBlacklist.Any(item => item.Equals(bot.BotName, StringComparison.OrdinalIgnoreCase))) { 308 | continue; 309 | } 310 | } 311 | tasks.Add(Task.Run(async () => { 312 | await BotSemaphore.WaitAsync().ConfigureAwait(false); 313 | try { 314 | await ClaimItemTask(bot, bundleItems, singleItems, bundleDefs).ConfigureAwait(false); 315 | } finally { 316 | BotSemaphore.Release(); 317 | } 318 | })); 319 | } else { 320 | ASF.ArchiLogger.LogGenericWarning($"[{bot.BotName}] {Strings.BotNotConnected}"); 321 | } 322 | } 323 | await Task.WhenAll([.. tasks]).ConfigureAwait(false); 324 | } finally { 325 | AutoRunSemaphore.Release(); 326 | } 327 | } 328 | public async Task GetTargetReleaseURL(Version asfVersion, string asfVariant, bool asfUpdate, bool stable, bool forced) { 329 | ArgumentNullException.ThrowIfNull(asfVersion); 330 | ArgumentException.ThrowIfNullOrEmpty(asfVariant); 331 | if (string.IsNullOrEmpty(RepositoryName)) { 332 | ASF.ArchiLogger.LogGenericError(string.Format(CultureInfo.CurrentCulture, Strings.WarningFailedWithError, nameof(RepositoryName))); 333 | return null; 334 | } 335 | ImmutableList? releases = await GitHubService.GetReleases(RepositoryName, 100).ConfigureAwait(false); 336 | if (releases == null) { 337 | return null; 338 | } 339 | foreach (ReleaseResponse release in releases) { 340 | if (!stable || !release.IsPreRelease) { 341 | Version newVersion = new(release.Tag); 342 | if (!forced) { 343 | if (Version >= newVersion) { 344 | continue; 345 | } 346 | Match match = ASFMinimumVersionRegex().Match(release.MarkdownBody); 347 | if (!match.Success || match.Groups.Count != 2) { 348 | continue; 349 | } 350 | Version minimumVersion = new(match.Groups[1].Value); 351 | if (asfVersion < minimumVersion) { 352 | continue; 353 | } 354 | match = ASFMaximumVersionRegex().Match(release.MarkdownBody); 355 | if (match.Success && match.Groups.Count == 2) { 356 | Version maximumVersion = new(match.Groups[1].Value); 357 | if (asfVersion > maximumVersion) { 358 | continue; 359 | } 360 | } 361 | } 362 | if (release.Assets.Count == 0) { 363 | continue; 364 | } 365 | ReleaseAsset? asset = await ((IGitHubPluginUpdates) this).GetTargetReleaseAsset(asfVersion, asfVariant, newVersion, release.Assets).ConfigureAwait(false); 366 | if ((asset == null) || !release.Assets.Contains(asset)) { 367 | continue; 368 | } 369 | ASF.ArchiLogger.LogGenericInfo(string.Format(CultureInfo.CurrentCulture, Strings.PluginUpdateFound, Name, Version, newVersion)); 370 | return asset.DownloadURL; 371 | } 372 | } 373 | ASF.ArchiLogger.LogGenericInfo($"No update available for {Name} plugin"); 374 | return null; 375 | } 376 | public void Dispose() => AutoRunTimer?.Dispose(); 377 | } 378 | -------------------------------------------------------------------------------- /FreePointsShop/FreePointsShop.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | Library 4 | net9.0 5 | CA1812, IDE0058 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 3, 29 June 2007 3 | 4 | Copyright (C) 2007 Free Software Foundation, Inc. 5 | Everyone is permitted to copy and distribute verbatim copies 6 | of this license document, but changing it is not allowed. 7 | 8 | Preamble 9 | 10 | The GNU General Public License is a free, copyleft license for 11 | software and other kinds of works. 12 | 13 | The licenses for most software and other practical works are designed 14 | to take away your freedom to share and change the works. By contrast, 15 | the GNU General Public License is intended to guarantee your freedom to 16 | share and change all versions of a program--to make sure it remains free 17 | software for all its users. We, the Free Software Foundation, use the 18 | GNU General Public License for most of our software; it applies also to 19 | any other work released this way by its authors. You can apply it to 20 | your programs, too. 21 | 22 | When we speak of free software, we are referring to freedom, not 23 | price. Our General Public Licenses are designed to make sure that you 24 | have the freedom to distribute copies of free software (and charge for 25 | them if you wish), that you receive source code or can get it if you 26 | want it, that you can change the software or use pieces of it in new 27 | free programs, and that you know you can do these things. 28 | 29 | To protect your rights, we need to prevent others from denying you 30 | these rights or asking you to surrender the rights. Therefore, you have 31 | certain responsibilities if you distribute copies of the software, or if 32 | you modify it: responsibilities to respect the freedom of others. 33 | 34 | For example, if you distribute copies of such a program, whether 35 | gratis or for a fee, you must pass on to the recipients the same 36 | freedoms that you received. You must make sure that they, too, receive 37 | or can get the source code. And you must show them these terms so they 38 | know their rights. 39 | 40 | Developers that use the GNU GPL protect your rights with two steps: 41 | (1) assert copyright on the software, and (2) offer you this License 42 | giving you legal permission to copy, distribute and/or modify it. 43 | 44 | For the developers' and authors' protection, the GPL clearly explains 45 | that there is no warranty for this free software. For both users' and 46 | authors' sake, the GPL requires that modified versions be marked as 47 | changed, so that their problems will not be attributed erroneously to 48 | authors of previous versions. 49 | 50 | Some devices are designed to deny users access to install or run 51 | modified versions of the software inside them, although the manufacturer 52 | can do so. This is fundamentally incompatible with the aim of 53 | protecting users' freedom to change the software. The systematic 54 | pattern of such abuse occurs in the area of products for individuals to 55 | use, which is precisely where it is most unacceptable. Therefore, we 56 | have designed this version of the GPL to prohibit the practice for those 57 | products. If such problems arise substantially in other domains, we 58 | stand ready to extend this provision to those domains in future versions 59 | of the GPL, as needed to protect the freedom of users. 60 | 61 | Finally, every program is threatened constantly by software patents. 62 | States should not allow patents to restrict development and use of 63 | software on general-purpose computers, but in those that do, we wish to 64 | avoid the special danger that patents applied to a free program could 65 | make it effectively proprietary. To prevent this, the GPL assures that 66 | patents cannot be used to render the program non-free. 67 | 68 | The precise terms and conditions for copying, distribution and 69 | modification follow. 70 | 71 | TERMS AND CONDITIONS 72 | 73 | 0. Definitions. 74 | 75 | "This License" refers to version 3 of the GNU General Public License. 76 | 77 | "Copyright" also means copyright-like laws that apply to other kinds of 78 | works, such as semiconductor masks. 79 | 80 | "The Program" refers to any copyrightable work licensed under this 81 | License. Each licensee is addressed as "you". "Licensees" and 82 | "recipients" may be individuals or organizations. 83 | 84 | To "modify" a work means to copy from or adapt all or part of the work 85 | in a fashion requiring copyright permission, other than the making of an 86 | exact copy. The resulting work is called a "modified version" of the 87 | earlier work or a work "based on" the earlier work. 88 | 89 | A "covered work" means either the unmodified Program or a work based 90 | on the Program. 91 | 92 | To "propagate" a work means to do anything with it that, without 93 | permission, would make you directly or secondarily liable for 94 | infringement under applicable copyright law, except executing it on a 95 | computer or modifying a private copy. Propagation includes copying, 96 | distribution (with or without modification), making available to the 97 | public, and in some countries other activities as well. 98 | 99 | To "convey" a work means any kind of propagation that enables other 100 | parties to make or receive copies. Mere interaction with a user through 101 | a computer network, with no transfer of a copy, is not conveying. 102 | 103 | An interactive user interface displays "Appropriate Legal Notices" 104 | to the extent that it includes a convenient and prominently visible 105 | feature that (1) displays an appropriate copyright notice, and (2) 106 | tells the user that there is no warranty for the work (except to the 107 | extent that warranties are provided), that licensees may convey the 108 | work under this License, and how to view a copy of this License. If 109 | the interface presents a list of user commands or options, such as a 110 | menu, a prominent item in the list meets this criterion. 111 | 112 | 1. Source Code. 113 | 114 | The "source code" for a work means the preferred form of the work 115 | for making modifications to it. "Object code" means any non-source 116 | form of a work. 117 | 118 | A "Standard Interface" means an interface that either is an official 119 | standard defined by a recognized standards body, or, in the case of 120 | interfaces specified for a particular programming language, one that 121 | is widely used among developers working in that language. 122 | 123 | The "System Libraries" of an executable work include anything, other 124 | than the work as a whole, that (a) is included in the normal form of 125 | packaging a Major Component, but which is not part of that Major 126 | Component, and (b) serves only to enable use of the work with that 127 | Major Component, or to implement a Standard Interface for which an 128 | implementation is available to the public in source code form. A 129 | "Major Component", in this context, means a major essential component 130 | (kernel, window system, and so on) of the specific operating system 131 | (if any) on which the executable work runs, or a compiler used to 132 | produce the work, or an object code interpreter used to run it. 133 | 134 | The "Corresponding Source" for a work in object code form means all 135 | the source code needed to generate, install, and (for an executable 136 | work) run the object code and to modify the work, including scripts to 137 | control those activities. However, it does not include the work's 138 | System Libraries, or general-purpose tools or generally available free 139 | programs which are used unmodified in performing those activities but 140 | which are not part of the work. For example, Corresponding Source 141 | includes interface definition files associated with source files for 142 | the work, and the source code for shared libraries and dynamically 143 | linked subprograms that the work is specifically designed to require, 144 | such as by intimate data communication or control flow between those 145 | subprograms and other parts of the work. 146 | 147 | The Corresponding Source need not include anything that users 148 | can regenerate automatically from other parts of the Corresponding 149 | Source. 150 | 151 | The Corresponding Source for a work in source code form is that 152 | same work. 153 | 154 | 2. Basic Permissions. 155 | 156 | All rights granted under this License are granted for the term of 157 | copyright on the Program, and are irrevocable provided the stated 158 | conditions are met. This License explicitly affirms your unlimited 159 | permission to run the unmodified Program. The output from running a 160 | covered work is covered by this License only if the output, given its 161 | content, constitutes a covered work. This License acknowledges your 162 | rights of fair use or other equivalent, as provided by copyright law. 163 | 164 | You may make, run and propagate covered works that you do not 165 | convey, without conditions so long as your license otherwise remains 166 | in force. You may convey covered works to others for the sole purpose 167 | of having them make modifications exclusively for you, or provide you 168 | with facilities for running those works, provided that you comply with 169 | the terms of this License in conveying all material for which you do 170 | not control copyright. Those thus making or running the covered works 171 | for you must do so exclusively on your behalf, under your direction 172 | and control, on terms that prohibit them from making any copies of 173 | your copyrighted material outside their relationship with you. 174 | 175 | Conveying under any other circumstances is permitted solely under 176 | the conditions stated below. Sublicensing is not allowed; section 10 177 | makes it unnecessary. 178 | 179 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 180 | 181 | No covered work shall be deemed part of an effective technological 182 | measure under any applicable law fulfilling obligations under article 183 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 184 | similar laws prohibiting or restricting circumvention of such 185 | measures. 186 | 187 | When you convey a covered work, you waive any legal power to forbid 188 | circumvention of technological measures to the extent such circumvention 189 | is effected by exercising rights under this License with respect to 190 | the covered work, and you disclaim any intention to limit operation or 191 | modification of the work as a means of enforcing, against the work's 192 | users, your or third parties' legal rights to forbid circumvention of 193 | technological measures. 194 | 195 | 4. Conveying Verbatim Copies. 196 | 197 | You may convey verbatim copies of the Program's source code as you 198 | receive it, in any medium, provided that you conspicuously and 199 | appropriately publish on each copy an appropriate copyright notice; 200 | keep intact all notices stating that this License and any 201 | non-permissive terms added in accord with section 7 apply to the code; 202 | keep intact all notices of the absence of any warranty; and give all 203 | recipients a copy of this License along with the Program. 204 | 205 | You may charge any price or no price for each copy that you convey, 206 | and you may offer support or warranty protection for a fee. 207 | 208 | 5. Conveying Modified Source Versions. 209 | 210 | You may convey a work based on the Program, or the modifications to 211 | produce it from the Program, in the form of source code under the 212 | terms of section 4, provided that you also meet all of these conditions: 213 | 214 | a) The work must carry prominent notices stating that you modified 215 | it, and giving a relevant date. 216 | 217 | b) The work must carry prominent notices stating that it is 218 | released under this License and any conditions added under section 219 | 7. This requirement modifies the requirement in section 4 to 220 | "keep intact all notices". 221 | 222 | c) You must license the entire work, as a whole, under this 223 | License to anyone who comes into possession of a copy. This 224 | License will therefore apply, along with any applicable section 7 225 | additional terms, to the whole of the work, and all its parts, 226 | regardless of how they are packaged. This License gives no 227 | permission to license the work in any other way, but it does not 228 | invalidate such permission if you have separately received it. 229 | 230 | d) If the work has interactive user interfaces, each must display 231 | Appropriate Legal Notices; however, if the Program has interactive 232 | interfaces that do not display Appropriate Legal Notices, your 233 | work need not make them do so. 234 | 235 | A compilation of a covered work with other separate and independent 236 | works, which are not by their nature extensions of the covered work, 237 | and which are not combined with it such as to form a larger program, 238 | in or on a volume of a storage or distribution medium, is called an 239 | "aggregate" if the compilation and its resulting copyright are not 240 | used to limit the access or legal rights of the compilation's users 241 | beyond what the individual works permit. Inclusion of a covered work 242 | in an aggregate does not cause this License to apply to the other 243 | parts of the aggregate. 244 | 245 | 6. Conveying Non-Source Forms. 246 | 247 | You may convey a covered work in object code form under the terms 248 | of sections 4 and 5, provided that you also convey the 249 | machine-readable Corresponding Source under the terms of this License, 250 | in one of these ways: 251 | 252 | a) Convey the object code in, or embodied in, a physical product 253 | (including a physical distribution medium), accompanied by the 254 | Corresponding Source fixed on a durable physical medium 255 | customarily used for software interchange. 256 | 257 | b) Convey the object code in, or embodied in, a physical product 258 | (including a physical distribution medium), accompanied by a 259 | written offer, valid for at least three years and valid for as 260 | long as you offer spare parts or customer support for that product 261 | model, to give anyone who possesses the object code either (1) a 262 | copy of the Corresponding Source for all the software in the 263 | product that is covered by this License, on a durable physical 264 | medium customarily used for software interchange, for a price no 265 | more than your reasonable cost of physically performing this 266 | conveying of source, or (2) access to copy the 267 | Corresponding Source from a network server at no charge. 268 | 269 | c) Convey individual copies of the object code with a copy of the 270 | written offer to provide the Corresponding Source. This 271 | alternative is allowed only occasionally and noncommercially, and 272 | only if you received the object code with such an offer, in accord 273 | with subsection 6b. 274 | 275 | d) Convey the object code by offering access from a designated 276 | place (gratis or for a charge), and offer equivalent access to the 277 | Corresponding Source in the same way through the same place at no 278 | further charge. You need not require recipients to copy the 279 | Corresponding Source along with the object code. If the place to 280 | copy the object code is a network server, the Corresponding Source 281 | may be on a different server (operated by you or a third party) 282 | that supports equivalent copying facilities, provided you maintain 283 | clear directions next to the object code saying where to find the 284 | Corresponding Source. Regardless of what server hosts the 285 | Corresponding Source, you remain obligated to ensure that it is 286 | available for as long as needed to satisfy these requirements. 287 | 288 | e) Convey the object code using peer-to-peer transmission, provided 289 | you inform other peers where the object code and Corresponding 290 | Source of the work are being offered to the general public at no 291 | charge under subsection 6d. 292 | 293 | A separable portion of the object code, whose source code is excluded 294 | from the Corresponding Source as a System Library, need not be 295 | included in conveying the object code work. 296 | 297 | A "User Product" is either (1) a "consumer product", which means any 298 | tangible personal property which is normally used for personal, family, 299 | or household purposes, or (2) anything designed or sold for incorporation 300 | into a dwelling. In determining whether a product is a consumer product, 301 | doubtful cases shall be resolved in favor of coverage. For a particular 302 | product received by a particular user, "normally used" refers to a 303 | typical or common use of that class of product, regardless of the status 304 | of the particular user or of the way in which the particular user 305 | actually uses, or expects or is expected to use, the product. A product 306 | is a consumer product regardless of whether the product has substantial 307 | commercial, industrial or non-consumer uses, unless such uses represent 308 | the only significant mode of use of the product. 309 | 310 | "Installation Information" for a User Product means any methods, 311 | procedures, authorization keys, or other information required to install 312 | and execute modified versions of a covered work in that User Product from 313 | a modified version of its Corresponding Source. The information must 314 | suffice to ensure that the continued functioning of the modified object 315 | code is in no case prevented or interfered with solely because 316 | modification has been made. 317 | 318 | If you convey an object code work under this section in, or with, or 319 | specifically for use in, a User Product, and the conveying occurs as 320 | part of a transaction in which the right of possession and use of the 321 | User Product is transferred to the recipient in perpetuity or for a 322 | fixed term (regardless of how the transaction is characterized), the 323 | Corresponding Source conveyed under this section must be accompanied 324 | by the Installation Information. But this requirement does not apply 325 | if neither you nor any third party retains the ability to install 326 | modified object code on the User Product (for example, the work has 327 | been installed in ROM). 328 | 329 | The requirement to provide Installation Information does not include a 330 | requirement to continue to provide support service, warranty, or updates 331 | for a work that has been modified or installed by the recipient, or for 332 | the User Product in which it has been modified or installed. Access to a 333 | network may be denied when the modification itself materially and 334 | adversely affects the operation of the network or violates the rules and 335 | protocols for communication across the network. 336 | 337 | Corresponding Source conveyed, and Installation Information provided, 338 | in accord with this section must be in a format that is publicly 339 | documented (and with an implementation available to the public in 340 | source code form), and must require no special password or key for 341 | unpacking, reading or copying. 342 | 343 | 7. Additional Terms. 344 | 345 | "Additional permissions" are terms that supplement the terms of this 346 | License by making exceptions from one or more of its conditions. 347 | Additional permissions that are applicable to the entire Program shall 348 | be treated as though they were included in this License, to the extent 349 | that they are valid under applicable law. If additional permissions 350 | apply only to part of the Program, that part may be used separately 351 | under those permissions, but the entire Program remains governed by 352 | this License without regard to the additional permissions. 353 | 354 | When you convey a copy of a covered work, you may at your option 355 | remove any additional permissions from that copy, or from any part of 356 | it. (Additional permissions may be written to require their own 357 | removal in certain cases when you modify the work.) You may place 358 | additional permissions on material, added by you to a covered work, 359 | for which you have or can give appropriate copyright permission. 360 | 361 | Notwithstanding any other provision of this License, for material you 362 | add to a covered work, you may (if authorized by the copyright holders of 363 | that material) supplement the terms of this License with terms: 364 | 365 | a) Disclaiming warranty or limiting liability differently from the 366 | terms of sections 15 and 16 of this License; or 367 | 368 | b) Requiring preservation of specified reasonable legal notices or 369 | author attributions in that material or in the Appropriate Legal 370 | Notices displayed by works containing it; or 371 | 372 | c) Prohibiting misrepresentation of the origin of that material, or 373 | requiring that modified versions of such material be marked in 374 | reasonable ways as different from the original version; or 375 | 376 | d) Limiting the use for publicity purposes of names of licensors or 377 | authors of the material; or 378 | 379 | e) Declining to grant rights under trademark law for use of some 380 | trade names, trademarks, or service marks; or 381 | 382 | f) Requiring indemnification of licensors and authors of that 383 | material by anyone who conveys the material (or modified versions of 384 | it) with contractual assumptions of liability to the recipient, for 385 | any liability that these contractual assumptions directly impose on 386 | those licensors and authors. 387 | 388 | All other non-permissive additional terms are considered "further 389 | restrictions" within the meaning of section 10. If the Program as you 390 | received it, or any part of it, contains a notice stating that it is 391 | governed by this License along with a term that is a further 392 | restriction, you may remove that term. If a license document contains 393 | a further restriction but permits relicensing or conveying under this 394 | License, you may add to a covered work material governed by the terms 395 | of that license document, provided that the further restriction does 396 | not survive such relicensing or conveying. 397 | 398 | If you add terms to a covered work in accord with this section, you 399 | must place, in the relevant source files, a statement of the 400 | additional terms that apply to those files, or a notice indicating 401 | where to find the applicable terms. 402 | 403 | Additional terms, permissive or non-permissive, may be stated in the 404 | form of a separately written license, or stated as exceptions; 405 | the above requirements apply either way. 406 | 407 | 8. Termination. 408 | 409 | You may not propagate or modify a covered work except as expressly 410 | provided under this License. Any attempt otherwise to propagate or 411 | modify it is void, and will automatically terminate your rights under 412 | this License (including any patent licenses granted under the third 413 | paragraph of section 11). 414 | 415 | However, if you cease all violation of this License, then your 416 | license from a particular copyright holder is reinstated (a) 417 | provisionally, unless and until the copyright holder explicitly and 418 | finally terminates your license, and (b) permanently, if the copyright 419 | holder fails to notify you of the violation by some reasonable means 420 | prior to 60 days after the cessation. 421 | 422 | Moreover, your license from a particular copyright holder is 423 | reinstated permanently if the copyright holder notifies you of the 424 | violation by some reasonable means, this is the first time you have 425 | received notice of violation of this License (for any work) from that 426 | copyright holder, and you cure the violation prior to 30 days after 427 | your receipt of the notice. 428 | 429 | Termination of your rights under this section does not terminate the 430 | licenses of parties who have received copies or rights from you under 431 | this License. If your rights have been terminated and not permanently 432 | reinstated, you do not qualify to receive new licenses for the same 433 | material under section 10. 434 | 435 | 9. Acceptance Not Required for Having Copies. 436 | 437 | You are not required to accept this License in order to receive or 438 | run a copy of the Program. Ancillary propagation of a covered work 439 | occurring solely as a consequence of using peer-to-peer transmission 440 | to receive a copy likewise does not require acceptance. However, 441 | nothing other than this License grants you permission to propagate or 442 | modify any covered work. These actions infringe copyright if you do 443 | not accept this License. Therefore, by modifying or propagating a 444 | covered work, you indicate your acceptance of this License to do so. 445 | 446 | 10. Automatic Licensing of Downstream Recipients. 447 | 448 | Each time you convey a covered work, the recipient automatically 449 | receives a license from the original licensors, to run, modify and 450 | propagate that work, subject to this License. You are not responsible 451 | for enforcing compliance by third parties with this License. 452 | 453 | An "entity transaction" is a transaction transferring control of an 454 | organization, or substantially all assets of one, or subdividing an 455 | organization, or merging organizations. If propagation of a covered 456 | work results from an entity transaction, each party to that 457 | transaction who receives a copy of the work also receives whatever 458 | licenses to the work the party's predecessor in interest had or could 459 | give under the previous paragraph, plus a right to possession of the 460 | Corresponding Source of the work from the predecessor in interest, if 461 | the predecessor has it or can get it with reasonable efforts. 462 | 463 | You may not impose any further restrictions on the exercise of the 464 | rights granted or affirmed under this License. For example, you may 465 | not impose a license fee, royalty, or other charge for exercise of 466 | rights granted under this License, and you may not initiate litigation 467 | (including a cross-claim or counterclaim in a lawsuit) alleging that 468 | any patent claim is infringed by making, using, selling, offering for 469 | sale, or importing the Program or any portion of it. 470 | 471 | 11. Patents. 472 | 473 | A "contributor" is a copyright holder who authorizes use under this 474 | License of the Program or a work on which the Program is based. The 475 | work thus licensed is called the contributor's "contributor version". 476 | 477 | A contributor's "essential patent claims" are all patent claims 478 | owned or controlled by the contributor, whether already acquired or 479 | hereafter acquired, that would be infringed by some manner, permitted 480 | by this License, of making, using, or selling its contributor version, 481 | but do not include claims that would be infringed only as a 482 | consequence of further modification of the contributor version. For 483 | purposes of this definition, "control" includes the right to grant 484 | patent sublicenses in a manner consistent with the requirements of 485 | this License. 486 | 487 | Each contributor grants you a non-exclusive, worldwide, royalty-free 488 | patent license under the contributor's essential patent claims, to 489 | make, use, sell, offer for sale, import and otherwise run, modify and 490 | propagate the contents of its contributor version. 491 | 492 | In the following three paragraphs, a "patent license" is any express 493 | agreement or commitment, however denominated, not to enforce a patent 494 | (such as an express permission to practice a patent or covenant not to 495 | sue for patent infringement). To "grant" such a patent license to a 496 | party means to make such an agreement or commitment not to enforce a 497 | patent against the party. 498 | 499 | If you convey a covered work, knowingly relying on a patent license, 500 | and the Corresponding Source of the work is not available for anyone 501 | to copy, free of charge and under the terms of this License, through a 502 | publicly available network server or other readily accessible means, 503 | then you must either (1) cause the Corresponding Source to be so 504 | available, or (2) arrange to deprive yourself of the benefit of the 505 | patent license for this particular work, or (3) arrange, in a manner 506 | consistent with the requirements of this License, to extend the patent 507 | license to downstream recipients. "Knowingly relying" means you have 508 | actual knowledge that, but for the patent license, your conveying the 509 | covered work in a country, or your recipient's use of the covered work 510 | in a country, would infringe one or more identifiable patents in that 511 | country that you have reason to believe are valid. 512 | 513 | If, pursuant to or in connection with a single transaction or 514 | arrangement, you convey, or propagate by procuring conveyance of, a 515 | covered work, and grant a patent license to some of the parties 516 | receiving the covered work authorizing them to use, propagate, modify 517 | or convey a specific copy of the covered work, then the patent license 518 | you grant is automatically extended to all recipients of the covered 519 | work and works based on it. 520 | 521 | A patent license is "discriminatory" if it does not include within 522 | the scope of its coverage, prohibits the exercise of, or is 523 | conditioned on the non-exercise of one or more of the rights that are 524 | specifically granted under this License. You may not convey a covered 525 | work if you are a party to an arrangement with a third party that is 526 | in the business of distributing software, under which you make payment 527 | to the third party based on the extent of your activity of conveying 528 | the work, and under which the third party grants, to any of the 529 | parties who would receive the covered work from you, a discriminatory 530 | patent license (a) in connection with copies of the covered work 531 | conveyed by you (or copies made from those copies), or (b) primarily 532 | for and in connection with specific products or compilations that 533 | contain the covered work, unless you entered into that arrangement, 534 | or that patent license was granted, prior to 28 March 2007. 535 | 536 | Nothing in this License shall be construed as excluding or limiting 537 | any implied license or other defenses to infringement that may 538 | otherwise be available to you under applicable patent law. 539 | 540 | 12. No Surrender of Others' Freedom. 541 | 542 | If conditions are imposed on you (whether by court order, agreement or 543 | otherwise) that contradict the conditions of this License, they do not 544 | excuse you from the conditions of this License. If you cannot convey a 545 | covered work so as to satisfy simultaneously your obligations under this 546 | License and any other pertinent obligations, then as a consequence you may 547 | not convey it at all. For example, if you agree to terms that obligate you 548 | to collect a royalty for further conveying from those to whom you convey 549 | the Program, the only way you could satisfy both those terms and this 550 | License would be to refrain entirely from conveying the Program. 551 | 552 | 13. Use with the GNU Affero General Public License. 553 | 554 | Notwithstanding any other provision of this License, you have 555 | permission to link or combine any covered work with a work licensed 556 | under version 3 of the GNU Affero General Public License into a single 557 | combined work, and to convey the resulting work. The terms of this 558 | License will continue to apply to the part which is the covered work, 559 | but the special requirements of the GNU Affero General Public License, 560 | section 13, concerning interaction through a network will apply to the 561 | combination as such. 562 | 563 | 14. Revised Versions of this License. 564 | 565 | The Free Software Foundation may publish revised and/or new versions of 566 | the GNU General Public License from time to time. Such new versions will 567 | be similar in spirit to the present version, but may differ in detail to 568 | address new problems or concerns. 569 | 570 | Each version is given a distinguishing version number. If the 571 | Program specifies that a certain numbered version of the GNU General 572 | Public License "or any later version" applies to it, you have the 573 | option of following the terms and conditions either of that numbered 574 | version or of any later version published by the Free Software 575 | Foundation. If the Program does not specify a version number of the 576 | GNU General Public License, you may choose any version ever published 577 | by the Free Software Foundation. 578 | 579 | If the Program specifies that a proxy can decide which future 580 | versions of the GNU General Public License can be used, that proxy's 581 | public statement of acceptance of a version permanently authorizes you 582 | to choose that version for the Program. 583 | 584 | Later license versions may give you additional or different 585 | permissions. However, no additional obligations are imposed on any 586 | author or copyright holder as a result of your choosing to follow a 587 | later version. 588 | 589 | 15. Disclaimer of Warranty. 590 | 591 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 592 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 593 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 594 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 595 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 596 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 597 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 598 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 599 | 600 | 16. Limitation of Liability. 601 | 602 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 603 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 604 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 605 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 606 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 607 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 608 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 609 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 610 | SUCH DAMAGES. 611 | 612 | 17. Interpretation of Sections 15 and 16. 613 | 614 | If the disclaimer of warranty and limitation of liability provided 615 | above cannot be given local legal effect according to their terms, 616 | reviewing courts shall apply local law that most closely approximates 617 | an absolute waiver of all civil liability in connection with the 618 | Program, unless a warranty or assumption of liability accompanies a 619 | copy of the Program in return for a fee. 620 | 621 | END OF TERMS AND CONDITIONS 622 | 623 | How to Apply These Terms to Your New Programs 624 | 625 | If you develop a new program, and you want it to be of the greatest 626 | possible use to the public, the best way to achieve this is to make it 627 | free software which everyone can redistribute and change under these terms. 628 | 629 | To do so, attach the following notices to the program. It is safest 630 | to attach them to the start of each source file to most effectively 631 | state the exclusion of warranty; and each file should have at least 632 | the "copyright" line and a pointer to where the full notice is found. 633 | 634 | 635 | Copyright (C) 636 | 637 | This program is free software: you can redistribute it and/or modify 638 | it under the terms of the GNU General Public License as published by 639 | the Free Software Foundation, either version 3 of the License, or 640 | (at your option) any later version. 641 | 642 | This program is distributed in the hope that it will be useful, 643 | but WITHOUT ANY WARRANTY; without even the implied warranty of 644 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 645 | GNU General Public License for more details. 646 | 647 | You should have received a copy of the GNU General Public License 648 | along with this program. If not, see . 649 | 650 | Also add information on how to contact you by electronic and paper mail. 651 | 652 | If the program does terminal interaction, make it output a short 653 | notice like this when it starts in an interactive mode: 654 | 655 | Copyright (C) 656 | This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 657 | This is free software, and you are welcome to redistribute it 658 | under certain conditions; type `show c' for details. 659 | 660 | The hypothetical commands `show w' and `show c' should show the appropriate 661 | parts of the General Public License. Of course, your program's commands 662 | might be different; for a GUI interface, you would use an "about box". 663 | 664 | You should also get your employer (if you work as a programmer) or school, 665 | if any, to sign a "copyright disclaimer" for the program, if necessary. 666 | For more information on this, and how to apply and follow the GNU GPL, see 667 | . 668 | 669 | The GNU General Public License does not permit incorporating your program 670 | into proprietary programs. If your program is a subroutine library, you 671 | may consider it more useful to permit linking proprietary applications with 672 | the library. If this is what you want to do, use the GNU Lesser General 673 | Public License instead of this License. But first, please read 674 | . -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # FreePointsShop 2 | ![GitHub Downloads](https://img.shields.io/github/downloads/DevSplash/FreePointsShop/total) 3 | ![GitHub last commit](https://img.shields.io/github/last-commit/DevSplash/FreePointsShop) 4 | ![GitHub stars](https://img.shields.io/github/stars/DevSplash/FreePointsShop) 5 | 6 | ArchiSteamFarm plugin to automatically redeem free items in the Steam points shop. 7 | ## Config 8 | Plugin config is located in ASF.json: 9 | ```json 10 | { 11 | //ASF global config 12 | ... 13 | "FreePointsShop": { 14 | "Interval": 360, 15 | "PageSize": 1000, 16 | "MaxPageNum": 1, 17 | "BotBlacklist": [ 18 | "bot1", 19 | "bot2" 20 | ], 21 | "AppBlacklist": [ 22 | 10000, 23 | 20000 24 | ] 25 | } 26 | } 27 | ``` 28 | ### 1. **Interval** (`ushort`) 29 | - **Description**: The interval (in minutes) between each check for free items. 30 | - **Default**: `360` (6 hours) 31 | - **Note**: The plugin will not check for free items when the value is set to 0. 32 | 33 | ### 2. **PageSize** (`ushort`) 34 | - **Description**: The number of items to retrieve per page when checking for free items. 35 | - **Default**: `1000` 36 | - **Note**: It is recommended to keep the default value. 37 | 38 | ### 3. **MaxPageNum** (`uint`) 39 | - **Description**: The maximum number of pages to scan for free items. 40 | - **Default**: `1` 41 | - **Note**: It is recommended to keep the default value. 42 | 43 | ### 4. **BotBlacklist** (`ImmutableHashSet`) 44 | - **Description**: A list of bots to exclude when redeeming items. 45 | - **Default**: `[]` 46 | 47 | ### 5. **AppBlacklist** (`ImmutableHashSet`) 48 | - **Description**: A list of App IDs to exclude from the search when looking for free items. 49 | - **Default**: `[]` 50 | 51 | ## Disclaimer 52 | 53 | By using this plugin, you acknowledge and accept the following: 54 | 55 | - The plugin is provided "as-is," without warranties or guarantees. 56 | - The creator is not responsible for any loss or damage resulting from the use of this plugin, including but not limited to accidentally redeeming paid items, account issues, or violations of Steam's Terms of Service. 57 | - Use this plugin at your own risk. 58 | 59 | ## License 60 | 61 | This project is licensed under the [GPL-3.0 License](LICENSE). --------------------------------------------------------------------------------