1
0
mirror of https://github.com/chylex/TweetDuck.git synced 2024-11-21 20:42:46 +01:00
TweetDuck/linux/TweetImpl.CefGlue/Adapters/CefErrorCodeAdapter.cs
2022-02-19 18:19:13 +01:00

20 lines
518 B
C#

using System;
using TweetLib.Browser.CEF.Interfaces;
using Xilium.CefGlue;
namespace TweetImpl.CefGlue.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) ?? string.Empty;
}
}
}