2
0
mirror of synced 2025-01-18 20:41:25 +00:00

63 lines
1.7 KiB
C#
Raw Normal View History

2023-12-20 11:34:23 +01:00
#pragma warning disable CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.
using GethPlugin;
2024-04-13 08:57:46 +02:00
using NethereumWorkflow.BlockUtils;
using Newtonsoft.Json;
2023-12-20 11:34:23 +01:00
namespace CodexContractsPlugin.Marketplace
{
public interface IHasBlock
{
BlockTimeEntry Block { get; set; }
}
public partial class Request : RequestBase, IHasBlock
2023-12-20 11:34:23 +01:00
{
[JsonIgnore]
2024-04-13 08:57:46 +02:00
public BlockTimeEntry Block { get; set; }
2023-12-20 11:34:23 +01:00
public byte[] RequestId { get; set; }
public EthAddress ClientAddress { get { return new EthAddress(Client); } }
2024-06-10 14:04:25 +02:00
[JsonIgnore]
public string Id
{
get
{
2024-06-20 12:15:59 +02:00
return BitConverter.ToString(RequestId).Replace("-", "").ToLowerInvariant();
2024-06-10 14:04:25 +02:00
}
}
2023-12-20 11:34:23 +01:00
}
public partial class RequestFulfilledEventDTO : IHasBlock
{
[JsonIgnore]
2024-04-13 08:57:46 +02:00
public BlockTimeEntry Block { get; set; }
}
public partial class RequestCancelledEventDTO : IHasBlock
{
[JsonIgnore]
2024-04-13 08:57:46 +02:00
public BlockTimeEntry Block { get; set; }
}
2024-08-21 13:59:54 +02:00
public partial class RequestFailedEventDTO : IHasBlock
{
[JsonIgnore]
public BlockTimeEntry Block { get; set; }
}
public partial class SlotFilledEventDTO : IHasBlock
{
[JsonIgnore]
2024-04-13 08:57:46 +02:00
public BlockTimeEntry Block { get; set; }
public EthAddress Host { get; set; }
}
public partial class SlotFreedEventDTO : IHasBlock
{
[JsonIgnore]
2024-04-13 08:57:46 +02:00
public BlockTimeEntry Block { get; set; }
}
2023-12-20 11:34:23 +01:00
}
#pragma warning restore CS8618 // Non-nullable field must contain a non-null value when exiting constructor. Consider declaring as nullable.