mirror of
https://github.com/chylex/TweetDuck.git
synced 2024-10-17 09:42:45 +02: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;
|
|
}
|
|
}
|
|
}
|
|
}
|