70 lines
2.4 KiB
C#
70 lines
2.4 KiB
C#
using BS.Shared.DataContracts.Compact;
|
|
using BS.Shared.DataContracts.Invoicing;
|
|
using System;
|
|
using System.Runtime.Serialization;
|
|
using System.Windows.Media;
|
|
|
|
namespace BeWoPlanerMobil.Models
|
|
{
|
|
[Serializable]
|
|
public class MokSupportConceptListObject
|
|
{
|
|
public string NameAndDateOfBirth { get; set; }
|
|
|
|
public string SupportConceptTimeSpan { get; set; }
|
|
|
|
public long SupportConceptOid { get; }
|
|
|
|
public long CostBearer2SupportConceptOid { get; }
|
|
|
|
public string CostBearer2SupportConceptOidName { get; }
|
|
|
|
public bool IsAboutToExpire { get; }
|
|
public bool ExpiresInThreeMonthsOrLess { get; }
|
|
public bool IsArchived { get; }
|
|
public bool IsDeleted { get; }
|
|
|
|
public MokSupportConceptListObject(long supportConceptOid, long costBearer2SupportConceptOid, bool isAboutToExpire, bool expiresIn3MonthOrLess, bool isArchived, bool isDeleted)
|
|
{
|
|
SupportConceptOid = supportConceptOid;
|
|
CostBearer2SupportConceptOid = costBearer2SupportConceptOid;
|
|
CostBearer2SupportConceptOidName = String.Format("OidHolder_{0}", CostBearer2SupportConceptOid);
|
|
|
|
IsAboutToExpire = isAboutToExpire;
|
|
ExpiresInThreeMonthsOrLess = expiresIn3MonthOrLess;
|
|
IsArchived = isArchived;
|
|
IsDeleted = isDeleted;
|
|
}
|
|
|
|
public override bool Equals(object obj)
|
|
{
|
|
if (!(obj is MokSupportConceptListObject))
|
|
{
|
|
return false;
|
|
}
|
|
|
|
var obj2 = (MokSupportConceptListObject)obj;
|
|
|
|
return Equals(CostBearer2SupportConceptOid, obj2.CostBearer2SupportConceptOid);
|
|
}
|
|
|
|
public override int GetHashCode()
|
|
{
|
|
unchecked
|
|
{
|
|
const int hashingBase = (int)2166136261;
|
|
const int hashingMultiplier = 16777619;
|
|
|
|
var hash = hashingBase;
|
|
|
|
hash = (hash * hashingMultiplier) ^ (NameAndDateOfBirth?.GetHashCode() ?? 0);
|
|
hash = (hash * hashingMultiplier) ^ (SupportConceptTimeSpan?.GetHashCode() ?? 0);
|
|
hash = (hash * hashingMultiplier) ^ (CostBearer2SupportConceptOid.GetHashCode());
|
|
hash = (hash * hashingMultiplier) ^ IsAboutToExpire.GetHashCode();
|
|
hash = (hash * hashingMultiplier) ^ ExpiresInThreeMonthsOrLess.GetHashCode();
|
|
|
|
return hash;
|
|
}
|
|
}
|
|
}
|
|
} |