mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-29 20:03:41 +01:00
refactor: new code style in Configuration
This commit is contained in:
parent
8e43b1703d
commit
cd9a2297f5
5 changed files with 102 additions and 58 deletions
|
|
@ -1,19 +1,30 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Dalamud.Configuration
|
||||
{
|
||||
class ThirdRepoSetting {
|
||||
/// <summary>
|
||||
/// Third party repository for dalamud plugins.
|
||||
/// </summary>
|
||||
internal class ThirdRepoSetting
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the third party repo url.
|
||||
/// </summary>
|
||||
public string Url { get; set; }
|
||||
public bool IsEnabled { get;set; }
|
||||
|
||||
public ThirdRepoSetting Clone() {
|
||||
return new ThirdRepoSetting {
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the third party repo is enabled.
|
||||
/// </summary>
|
||||
public bool IsEnabled { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Create new instance of third party repo object.
|
||||
/// </summary>
|
||||
/// <returns>New instance of third party repo.</returns>
|
||||
public ThirdRepoSetting Clone()
|
||||
{
|
||||
return new ThirdRepoSetting
|
||||
{
|
||||
Url = this.Url,
|
||||
IsEnabled = this.IsEnabled
|
||||
IsEnabled = this.IsEnabled,
|
||||
};
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue