This repository has been archived by the owner on Jun 19, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
117 additions
and
107 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
using System.Text.Json.Serialization; | ||
using TsinghuaNet.Models; | ||
|
||
namespace TsinghuaNet.CLI | ||
{ | ||
class NetCLISettings : NetSettingsBase | ||
{ | ||
[JsonIgnore] | ||
public override bool AutoLogin { get; set; } | ||
[JsonIgnore] | ||
public override bool EnableFluxLimit { get; set; } | ||
[JsonIgnore] | ||
public override ByteSize FluxLimit { get; set; } | ||
public string Username { get; set; } | ||
public string Password { get; set; } | ||
} | ||
} |
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 was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
using System.Collections.Generic; | ||
using System.ComponentModel; | ||
|
||
namespace TsinghuaNet.Models | ||
{ | ||
public abstract class NetSettingsBase : INotifyPropertyChanged | ||
{ | ||
protected static readonly List<int> PredefinedAcIds = new List<int> { 1, 25, 33, 35, 37, 159 }; | ||
|
||
#pragma warning disable 0067 | ||
public event PropertyChangedEventHandler PropertyChanged; | ||
#pragma warning restore 0067 | ||
|
||
public abstract bool AutoLogin { get; set; } | ||
|
||
public abstract bool EnableFluxLimit { get; set; } | ||
|
||
public abstract ByteSize FluxLimit { get; set; } | ||
|
||
public List<int> AcIds { get; set; } = new List<int>(PredefinedAcIds); | ||
} | ||
} |
Oops, something went wrong.