mirror of
https://github.com/chylex/TweetDuck.git
synced 2024-11-23 17:42:46 +01:00
26 lines
548 B
C#
26 lines
548 B
C#
using TweetLib.Browser.Interfaces;
|
|
|
|
namespace TweetLib.Browser.Request {
|
|
public class RequestHandleResult {
|
|
public static RequestHandleResult Cancel { get; } = new ();
|
|
|
|
private RequestHandleResult() {}
|
|
|
|
public sealed class Redirect : RequestHandleResult {
|
|
public string Url { get; }
|
|
|
|
public Redirect(string url) {
|
|
Url = url;
|
|
}
|
|
}
|
|
|
|
public sealed class Process : RequestHandleResult {
|
|
public IResponseProcessor Processor { get; }
|
|
|
|
public Process(IResponseProcessor processor) {
|
|
Processor = processor;
|
|
}
|
|
}
|
|
}
|
|
}
|