mirror of
https://github.com/project-redbud/FunGame-Core.git
synced 2025-12-05 00:06:02 +00:00
23 lines
779 B
C#
23 lines
779 B
C#
using Milimoe.FunGame.Core.Interface.Entity;
|
|
using Milimoe.FunGame.Core.Library.Constant;
|
|
|
|
namespace Milimoe.FunGame.Core.Entity
|
|
{
|
|
public class Offer : BaseEntity
|
|
{
|
|
public long Offeror { get; set; } = 0;
|
|
public long Offeree { get; set; } = 0;
|
|
public HashSet<Guid> OfferorItems { get; set; } = [];
|
|
public HashSet<Guid> OffereeItems { get; set; } = [];
|
|
public DateTime CreateTime { get; set; } = DateTime.Now;
|
|
public DateTime? FinishTime { get; set; } = null;
|
|
public OfferState Status { get; set; } = OfferState.Created;
|
|
public int NegotiatedTimes { get; set; } = 0;
|
|
|
|
public override bool Equals(IBaseEntity? other)
|
|
{
|
|
return other is Offer && other?.Id == Id;
|
|
}
|
|
}
|
|
}
|