-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed TriggerDetailWindow Service Injection Fixed DI Container Distribution Added DeviceService for further developing with other devices
- Loading branch information
Showing
12 changed files
with
97 additions
and
48 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
using System; | ||
using System.Threading.Tasks; | ||
|
||
namespace NanoTwitchLeafs.Interfaces; | ||
|
||
public interface IDeviceService | ||
{ | ||
Task DiscoverDevice(); | ||
Task PairDevice(); | ||
Task SendEffectToDevice(); | ||
Task SendColorToDevice(); | ||
Task SendColorToPart(); | ||
} | ||
|
||
public class DeviceService : IDeviceService | ||
{ | ||
private readonly ISettingsService _settingsService; | ||
|
||
public DeviceService(ISettingsService settingsService) | ||
{ | ||
_settingsService = settingsService ?? throw new ArgumentNullException(nameof(settingsService)); | ||
} | ||
|
||
public async Task DiscoverDevice() | ||
{ | ||
throw new NotImplementedException(); | ||
} | ||
|
||
public async Task PairDevice() | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public async Task SendEffectToDevice() | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public async Task SendColorToDevice() | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
|
||
public async Task SendColorToPart() | ||
{ | ||
throw new System.NotImplementedException(); | ||
} | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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