Skip to content

Commit

Permalink
coinichiwa, bugs, compression
Browse files Browse the repository at this point in the history
added compression for all rest api sites
added coinichiwa
fixed betking
probably fixed primedices login problems
speeded up the simulation somwhat
bitdice is not fixed yet
  • Loading branch information
Seuntjie900 committed Dec 18, 2015
1 parent 5b1e2a7 commit fe23f87
Show file tree
Hide file tree
Showing 18 changed files with 628 additions and 121 deletions.
13 changes: 11 additions & 2 deletions DiceBot.sln
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.23107.0
# Visual Studio 2013
VisualStudioVersion = 12.0.40629.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DiceBot", "DiceBot\DiceBot.csproj", "{7E0D59CC-D9A0-4EB4-96BF-11C0DDD8A8B5}"
EndProject
Expand All @@ -13,21 +13,30 @@ EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{7E0D59CC-D9A0-4EB4-96BF-11C0DDD8A8B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{7E0D59CC-D9A0-4EB4-96BF-11C0DDD8A8B5}.Debug|Any CPU.Build.0 = Debug|Any CPU
{7E0D59CC-D9A0-4EB4-96BF-11C0DDD8A8B5}.Debug|x64.ActiveCfg = Debug|x64
{7E0D59CC-D9A0-4EB4-96BF-11C0DDD8A8B5}.Debug|x64.Build.0 = Debug|x64
{7E0D59CC-D9A0-4EB4-96BF-11C0DDD8A8B5}.Debug|x86.ActiveCfg = Debug|x86
{7E0D59CC-D9A0-4EB4-96BF-11C0DDD8A8B5}.Debug|x86.Build.0 = Debug|x86
{7E0D59CC-D9A0-4EB4-96BF-11C0DDD8A8B5}.Release|Any CPU.ActiveCfg = Release|Any CPU
{7E0D59CC-D9A0-4EB4-96BF-11C0DDD8A8B5}.Release|Any CPU.Build.0 = Release|Any CPU
{7E0D59CC-D9A0-4EB4-96BF-11C0DDD8A8B5}.Release|x64.ActiveCfg = Release|x64
{7E0D59CC-D9A0-4EB4-96BF-11C0DDD8A8B5}.Release|x64.Build.0 = Release|x64
{7E0D59CC-D9A0-4EB4-96BF-11C0DDD8A8B5}.Release|x86.ActiveCfg = Release|x86
{7E0D59CC-D9A0-4EB4-96BF-11C0DDD8A8B5}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(Performance) = preSolution
HasPerformanceSessions = true
EndGlobalSection
EndGlobal
Binary file modified DiceBot.v12.suo
Binary file not shown.
6 changes: 5 additions & 1 deletion DiceBot/CoinMillions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public CoinMillions(cDiceBot Parent)
TipUsingName = true;
SiteURL = "https://coinmillions.com?a=10156";
new HttpClient { BaseAddress = new Uri("https://coinmillions.com/api/1/") };
Client.DefaultRequestHeaders.AcceptEncoding.Add(new System.Net.Http.Headers.StringWithQualityHeaderValue("gzip"));
Client.DefaultRequestHeaders.AcceptEncoding.Add(new System.Net.Http.Headers.StringWithQualityHeaderValue("deflate"));
}

protected override void CurrencyChanged()
Expand Down Expand Up @@ -159,8 +161,10 @@ public override void GetSeed(long BetID)

public override void Login(string Username, string Password, string twofa)
{
ClientHandlr = new HttpClientHandler { UseCookies = true };
ClientHandlr = new HttpClientHandler { UseCookies = true, AutomaticDecompression= DecompressionMethods.Deflate| DecompressionMethods.GZip };;
Client = new HttpClient(ClientHandlr) { BaseAddress = new Uri("https://coinmillions.com/api/1/") };
Client.DefaultRequestHeaders.AcceptEncoding.Add(new System.Net.Http.Headers.StringWithQualityHeaderValue("gzip"));
Client.DefaultRequestHeaders.AcceptEncoding.Add(new System.Net.Http.Headers.StringWithQualityHeaderValue("deflate"));
Client.DefaultRequestHeaders.Add("Authorization", "Bearer " + Password);
Client.DefaultRequestHeaders.Add("X-Affiliate-ID", "10156");

Expand Down
Loading

0 comments on commit fe23f87

Please sign in to comment.