-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #225 from Elenpay/show-user-channel-opening-failur…
…e-reason Show user channel opening failure reason
- Loading branch information
Showing
12 changed files
with
1,406 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
using System.Text.Json.Serialization; | ||
|
||
namespace FundsManager.Helpers; | ||
|
||
public class ChannelStatusLog | ||
{ | ||
public DateTime DateTime { get; set; } | ||
public LogLevel Level { get; set; } | ||
public string Description { get; set; } | ||
|
||
[JsonConstructor] | ||
public ChannelStatusLog(DateTime dateTime, LogLevel level, string description) | ||
{ | ||
DateTime = dateTime; | ||
Level = level; | ||
Description = description; | ||
} | ||
|
||
public ChannelStatusLog(LogLevel level, string description) | ||
{ | ||
DateTime = DateTime.Now; | ||
Level = level; | ||
Description = description; | ||
} | ||
|
||
public static ChannelStatusLog Info(string description) | ||
{ | ||
return new ChannelStatusLog(LogLevel.Information, description); | ||
} | ||
|
||
public static ChannelStatusLog Error(string description) | ||
{ | ||
return new ChannelStatusLog(LogLevel.Error, description); | ||
} | ||
|
||
public static ChannelStatusLog Warning(string description) | ||
{ | ||
return new ChannelStatusLog(LogLevel.Warning, description); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.