DocSpace-buildtools/common/ASC.Webhooks.Core/Dao/Models/WebhookEntry.cs
2021-09-03 17:02:52 +03:00

28 lines
765 B
C#

namespace ASC.Webhooks.Core.Dao.Models
{
public class WebhookEntry
{
public int Id { get; set; }
public string Payload { get; set; }
public string Uri { get; set; }
public string SecretKey { get; set; }
public override bool Equals(object other)
{
var toCompareWith = other as WebhookEntry;
if (toCompareWith == null)
return false;
return this.Id == toCompareWith.Id &&
this.Payload == toCompareWith.Payload &&
this.Uri == toCompareWith.Uri &&
this.SecretKey == toCompareWith.SecretKey;
}
public override int GetHashCode()
{
return Id.GetHashCode();
}
}
}