This repository has been archived by the owner on Jul 18, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' of https://github.com/Hyrules/WinHue into dev
- Loading branch information
Showing
19 changed files
with
107 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using System.Net.Http; | ||
using WinHue3.Philips_Hue.HueObjects.LightObject; | ||
using WinHue3.Philips_Hue.HueObjects.Common; | ||
using WinHue3.Functions.Application_Settings.Settings; | ||
|
||
namespace WinHue3.Philips_Hue.Communication2 | ||
{ | ||
class Getters | ||
{ | ||
public async Task<string> GetAsync<T>() where T : IHueObject | ||
{ | ||
HttpClient client = new HttpClient(); | ||
client.Timeout = new TimeSpan(0,0,0,WinHueSettings.settings.Timeout); | ||
client.BaseAddress = new Uri("http://mybridge/api/sgsdfgsdfgsdfgsdfg/"); | ||
client.DefaultRequestHeaders.Accept.Add(new System.Net.Http.Headers.MediaTypeWithQualityHeaderValue("application/json")); | ||
HttpResponseMessage response = client.GetAsync("lights").Result; | ||
|
||
if(response.IsSuccessStatusCode) | ||
{ | ||
return await response.Content.ReadAsStringAsync(); | ||
|
||
} | ||
else | ||
{ | ||
return string.Empty; | ||
} | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file renamed
BIN
+18.1 KB
...es/gong-wpf-dragdrop.2.0.2/.signature.p7s → ...es/gong-wpf-dragdrop.2.0.3/.signature.p7s
Binary file not shown.
File renamed without changes.
Binary file renamed
BIN
+81.6 KB
.../lib/net45/GongSolutions.WPF.DragDrop.dll → .../lib/net45/GongSolutions.WPF.DragDrop.dll
Binary file not shown.
File renamed without changes.
Binary file renamed
BIN
+81.6 KB
.../lib/net46/GongSolutions.WPF.DragDrop.dll → .../lib/net46/GongSolutions.WPF.DragDrop.dll
Binary file not shown.
File renamed without changes.
Binary file renamed
BIN
+81.6 KB
.../lib/net47/GongSolutions.WPF.DragDrop.dll → .../lib/net47/GongSolutions.WPF.DragDrop.dll
Binary file not shown.
File renamed without changes.
Binary file renamed
BIN
+82.1 KB
...coreapp3.0/GongSolutions.WPF.DragDrop.dll → ...coreapp3.0/GongSolutions.WPF.DragDrop.dll
Binary file not shown.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters