mirror of
https://github.com/chylex/TweetDuck.git
synced 2025-01-15 05:42:46 +01:00
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;
|
|
}
|
|
}
|
|
}
|
|
}
|