1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2024-11-23 17:42:46 +01:00
TweetDuck/windows/TweetImpl.CefSharp/Adapters/CefErrorCodeAdapter.cs

20 lines
498 B
C#

using System;
using CefSharp;
using TweetLib.Browser.CEF.Interfaces;
namespace TweetImpl.CefSharp.Adapters {
sealed class CefErrorCodeAdapter : IErrorCodeAdapter<CefErrorCode> {
public static CefErrorCodeAdapter Instance { get; } = new ();
private CefErrorCodeAdapter() {}
public bool IsAborted(CefErrorCode errorCode) {
return errorCode == CefErrorCode.Aborted;
}
public string? GetName(CefErrorCode errorCode) {
return Enum.GetName(typeof(CefErrorCode), errorCode);
}
}
}