Skip to content

Commit

Permalink
Move namespace "EnergyStarX.Interfaces" to "EnergyStarX.Contracts"
Browse files Browse the repository at this point in the history
For compatibility with TemplateStudio
  • Loading branch information
JasonWei512 committed Sep 12, 2023
1 parent 4445ce3 commit 2f857d9
Show file tree
Hide file tree
Showing 34 changed files with 41 additions and 41 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EnergyStarX.Core.Interfaces.Services;
namespace EnergyStarX.Core.Contracts.Services;

public interface IFileService
{
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyStarX.Core/Services/FileService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using EnergyStarX.Core.Interfaces.Services;
using EnergyStarX.Core.Contracts.Services;
using System.Text;
using System.Text.Json;

Expand Down
2 changes: 1 addition & 1 deletion src/EnergyStarX.Test/Fakes/FakeWindowService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using EnergyStarX.Interfaces.Services;
using EnergyStarX.Contracts.Services;

namespace EnergyStarX.Test.Fakes;

Expand Down
2 changes: 1 addition & 1 deletion src/EnergyStarX.Test/Tests/EnergyServiceTest.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using EnergyStarX.Interfaces.Services;
using EnergyStarX.Contracts.Services;
using EnergyStarX.Services;
using EnergyStarX.Test.Fakes;

Expand Down
2 changes: 1 addition & 1 deletion src/EnergyStarX/Activation/DefaultActivationHandler.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using EnergyStarX.Interfaces.Services;
using EnergyStarX.Contracts.Services;
using EnergyStarX.ViewModels;
using Microsoft.UI.Xaml;

Expand Down
4 changes: 2 additions & 2 deletions src/EnergyStarX/App.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
using EnergyStarX.Activation;
using EnergyStarX.Constants;
using EnergyStarX.Core.Interfaces.Services;
using EnergyStarX.Contracts.Services;
using EnergyStarX.Core.Contracts.Services;
using EnergyStarX.Core.Services;
using EnergyStarX.Helpers;
using EnergyStarX.Interfaces.Services;
using EnergyStarX.Models;
using EnergyStarX.Services;
using EnergyStarX.ViewModels;
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyStarX/Behaviors/NavigationViewHeaderBehavior.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using EnergyStarX.Interfaces.Services;
using EnergyStarX.Contracts.Services;

using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyStarX/Behaviors/TextBlockBehavior.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using DependencyPropertyGenerator;
using EnergyStarX.Interfaces.Services;
using EnergyStarX.Contracts.Services;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Documents;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EnergyStarX.Interfaces.Services;
namespace EnergyStarX.Contracts.Services;

public interface IActivationService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EnergyStarX.Interfaces.Services;
namespace EnergyStarX.Contracts.Services;

public interface IDialogService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EnergyStarX.Interfaces.Services;
namespace EnergyStarX.Contracts.Services;

public enum ThrottleStatus
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
using Microsoft.UI.Xaml.Media.Animation;
using Microsoft.UI.Xaml.Navigation;

namespace EnergyStarX.Interfaces.Services;
namespace EnergyStarX.Contracts.Services;

public interface INavigationService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using Microsoft.UI.Xaml.Controls;

namespace EnergyStarX.Interfaces.Services;
namespace EnergyStarX.Contracts.Services;

public interface INavigationViewService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EnergyStarX.Interfaces.Services;
namespace EnergyStarX.Contracts.Services;

public interface IPageService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EnergyStarX.Interfaces.Services;
namespace EnergyStarX.Contracts.Services;

public interface ISettingsService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EnergyStarX.Interfaces.Services;
namespace EnergyStarX.Contracts.Services;

public enum StartupType
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EnergyStarX.Interfaces.Services;
namespace EnergyStarX.Contracts.Services;

public interface ISystemTrayIconService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EnergyStarX.Interfaces.Services;
namespace EnergyStarX.Contracts.Services;

public interface IWindowService
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace EnergyStarX.Interfaces.ViewModels;
namespace EnergyStarX.Contracts.ViewModels;

public interface INavigationAware
{
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyStarX/Services/ActivationService.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using EnergyStarX.Activation;
using EnergyStarX.Interfaces.Services;
using EnergyStarX.Contracts.Services;
using EnergyStarX.ViewModels;
using EnergyStarX.Views;

Expand Down
4 changes: 2 additions & 2 deletions src/EnergyStarX/Services/DialogService.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using EnergyStarX.Helpers;
using EnergyStarX.Interfaces.Services;
using EnergyStarX.Contracts.Services;
using EnergyStarX.Helpers;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;

Expand Down
2 changes: 1 addition & 1 deletion src/EnergyStarX/Services/EnergyService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
// If you are Microsoft (and/or its affiliates) employee, vendor or contractor who is working on Windows-specific integration projects, you may use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so without the restriction above.

using EnergyStarX.Interfaces.Services;
using EnergyStarX.Contracts.Services;
using EnergyStarX.Interop;
using Microsoft.Windows.System.Power;
using NLog;
Expand Down
6 changes: 3 additions & 3 deletions src/EnergyStarX/Services/NavigationService.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using EnergyStarX.Helpers;
using EnergyStarX.Interfaces.Services;
using EnergyStarX.Interfaces.ViewModels;
using EnergyStarX.Contracts.Services;
using EnergyStarX.Contracts.ViewModels;
using EnergyStarX.Helpers;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Media.Animation;
using Microsoft.UI.Xaml.Navigation;
Expand Down
4 changes: 2 additions & 2 deletions src/EnergyStarX/Services/NavigationViewService.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using EnergyStarX.Helpers;
using EnergyStarX.Interfaces.Services;
using EnergyStarX.Contracts.Services;
using EnergyStarX.Helpers;
using EnergyStarX.ViewModels;
using Microsoft.UI.Xaml.Controls;
using System.Diagnostics.CodeAnalysis;
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyStarX/Services/PageService.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using CommunityToolkit.Mvvm.ComponentModel;

using EnergyStarX.Interfaces.Services;
using EnergyStarX.Contracts.Services;
using EnergyStarX.ViewModels;
using EnergyStarX.Views;

Expand Down
4 changes: 2 additions & 2 deletions src/EnergyStarX/Services/SettingsService.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using EnergyStarX.Helpers;
using EnergyStarX.Interfaces.Services;
using EnergyStarX.Contracts.Services;
using EnergyStarX.Helpers;
using NickJohn.WinUI.ObservableSettings;

namespace EnergyStarX.Services;
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyStarX/Services/StartupService.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
But that requires a double-process and communication app model, which is more complex to implement.
*/

using EnergyStarX.Interfaces.Services;
using EnergyStarX.Contracts.Services;
using NLog;
using System.ComponentModel;
using System.Diagnostics;
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyStarX/Services/SystemTrayIconService.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
using CommunityToolkit.WinUI;
using EnergyStarX.Contracts.Services;
using EnergyStarX.Helpers;
using EnergyStarX.Interfaces.Services;
using H.NotifyIcon.Core;
using Microsoft.UI.Dispatching;
using NLog;
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyStarX/Services/WindowService.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using EnergyStarX.Interfaces.Services;
using EnergyStarX.Contracts.Services;
using Microsoft.AppCenter.Analytics;
using Microsoft.UI.Xaml;

Expand Down
2 changes: 1 addition & 1 deletion src/EnergyStarX/ViewModels/HomeViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.WinUI;
using EnergyStarX.Contracts.Services;
using EnergyStarX.Helpers;
using EnergyStarX.Interfaces.Services;
using Microsoft.UI.Dispatching;
using Microsoft.UI.Xaml.Media;
using Microsoft.UI.Xaml.Media.Imaging;
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyStarX/ViewModels/LogViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using CommunityToolkit.WinUI;
using EnergyStarX.Contracts.Services;
using EnergyStarX.Helpers;
using EnergyStarX.Interfaces.Services;
using Microsoft.UI.Dispatching;
using System.Collections.ObjectModel;
using Windows.ApplicationModel.DataTransfer;
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyStarX/ViewModels/SettingsViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using EnergyStarX.Contracts.Services;
using EnergyStarX.Helpers;
using EnergyStarX.Interfaces.Services;
using Windows.ApplicationModel;
using Windows.Security.ExchangeActiveSyncProvisioning;
using Windows.System;
Expand Down
2 changes: 1 addition & 1 deletion src/EnergyStarX/ViewModels/ShellViewModel.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Input;
using EnergyStarX.Contracts.Services;
using EnergyStarX.Helpers;
using EnergyStarX.Interfaces.Services;
using EnergyStarX.Views;
using Microsoft.UI.Xaml.Controls;
using Microsoft.UI.Xaml.Navigation;
Expand Down
4 changes: 2 additions & 2 deletions src/EnergyStarX/Views/ShellPage.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
using EnergyStarX.Helpers;
using EnergyStarX.Interfaces.Services;
using EnergyStarX.Contracts.Services;
using EnergyStarX.Helpers;
using EnergyStarX.ViewModels;
using Microsoft.UI.Xaml;
using Microsoft.UI.Xaml.Controls;
Expand Down

0 comments on commit 2f857d9

Please sign in to comment.