mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-08-16 06:31:42 +02:00
.github
.idea
bld
lib
TweetLib.Browser
TweetLib.Browser.CEF
TweetLib.Communication
TweetLib.Core
TweetLib.Utils
Collections
Data
Dialogs
Globalization
IO
Serialization
Startup
LockFile.cs
LockResult.cs
UnlockResult.cs
Static
Lib.cs
TweetLib.Utils.csproj
TweetTest.Browser.CEF
TweetTest.Core
TweetTest.Utils
linux
resources
windows
.gitattributes
.gitignore
LICENSE.md
README.md
TweetDuck.sln
TweetDuck.sln.DotSettings
Version.cs
global.json
26 lines
489 B
C#
26 lines
489 B
C#
using System;
|
|
|
|
namespace TweetLib.Utils.Startup {
|
|
public class UnlockResult {
|
|
private readonly string name;
|
|
|
|
private UnlockResult(string name) {
|
|
this.name = name;
|
|
}
|
|
|
|
public override string ToString() {
|
|
return name;
|
|
}
|
|
|
|
public static UnlockResult Success { get; } = new ("Success");
|
|
|
|
public sealed class Fail : UnlockResult {
|
|
public Exception Exception { get; }
|
|
|
|
internal Fail(Exception exception) : base("Fail") {
|
|
this.Exception = exception;
|
|
}
|
|
}
|
|
}
|
|
}
|