-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
code cleanup, global toggle buttons , bossview height slider
- Loading branch information
Showing
18 changed files
with
184 additions
and
105 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 |
---|---|---|
@@ -1,33 +1,28 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using GbfRaidfinder.Common; | ||
using GbfRaidfinder.Common; | ||
using GbfRaidfinder.Interfaces; | ||
|
||
namespace GbfRaidfinder.Factorys { | ||
public class ControllerFactory { | ||
private readonly ISettingsController _settingsController; | ||
private readonly ITweetObserver _tweetObserver; | ||
private readonly IRaidsController _raidsController; | ||
private readonly IRaidlistController _raidlistController; | ||
public ControllerFactory(ISettingsController settingsController, ITweetObserver tweetObserver, | ||
public ControllerFactory(ISettingsController settingsController, ITweetObserver tweetObserver, | ||
IRaidsController raidsController, IRaidlistController raidlistController) { | ||
_settingsController = settingsController; | ||
_tweetObserver = tweetObserver; | ||
_raidsController = raidsController; | ||
_raidlistController = raidlistController; | ||
GetSettingsController = settingsController; | ||
GetTweetObserver = tweetObserver; | ||
GetRaidsController = raidsController; | ||
GetRaidlistController = raidlistController; | ||
|
||
_settingsController.Load(); | ||
_raidsController.Load(); | ||
_raidlistController.Load(); | ||
GetSettingsController.Load(); | ||
GetRaidsController.Load(); | ||
GetRaidlistController.Load(); | ||
} | ||
|
||
public ISettingsController GetSettingsController => _settingsController; | ||
public IRaidsController GetRaidsController => _raidsController; | ||
public IRaidlistController GetRaidlistController => _raidlistController; | ||
public ITweetObserver GetTweetObserver => _tweetObserver; | ||
public ILoginController CreateLoginController => new LoginController(_settingsController); | ||
public ISettingsController GetSettingsController { get; } | ||
|
||
public IRaidsController GetRaidsController { get; } | ||
|
||
public IRaidlistController GetRaidlistController { get; } | ||
|
||
public ITweetObserver GetTweetObserver { get; } | ||
|
||
public ILoginController CreateLoginController => new LoginController(GetSettingsController); | ||
} | ||
} | ||
} |
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 |
---|---|---|
@@ -1,10 +1,17 @@ | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
using Newtonsoft.Json; | ||
using PropertyChanged; | ||
|
||
namespace GbfRaidfinder.Models { | ||
[ImplementPropertyChanged] | ||
public class SettingsModel { | ||
public string AccessToken { get; set; } | ||
public string AccessTokenSecret { get; set; } | ||
|
||
public Dictionary<string, string> Raids { get; set; } = new Dictionary<string, string>(); | ||
[DefaultValue(true), JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)] | ||
public bool GlobalCopy { get; set; } = true; | ||
|
||
[DefaultValue(true), JsonProperty(DefaultValueHandling = DefaultValueHandling.Populate)] | ||
public bool GlobalSound { get; set; } = true; | ||
} | ||
} |
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ public class SoundFileModel { | |
public string Name { get; set; } | ||
public string Path { get; set; } | ||
} | ||
} | ||
} |
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
Oops, something went wrong.