29 lines
1,016 B
C#
29 lines
1,016 B
C#
using System.Collections.Generic;
|
|
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
|
|
|
|
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Tanulo
|
|
{
|
|
public class OsztalyfonokGetResponse : IEqualityComparer<OsztalyfonokGetResponse>
|
|
{
|
|
public OsztalyfonokUid Uid { get; set; }
|
|
|
|
public string EmailCim { get; set; }
|
|
|
|
public string Nev { get; set; }
|
|
|
|
public string Telefonszam { get; set; }
|
|
|
|
public bool Equals(OsztalyfonokGetResponse x, OsztalyfonokGetResponse y) => x.Uid.Equals(x.Uid, y.Uid);
|
|
|
|
public int GetHashCode(OsztalyfonokGetResponse obj) => obj.Uid.UidRaw.GetHashCode();
|
|
|
|
public static explicit operator OsztalyfonokGetResponse(Alkalmazott.Tanar.Osztalyfonok.OsztalyfonokGetResponse model) => model == null ? null :
|
|
new OsztalyfonokGetResponse
|
|
{
|
|
Uid = model.Uid,
|
|
Nev = model.Nev,
|
|
EmailCim = model.EmailCim,
|
|
Telefonszam = model.Telefonszam
|
|
};
|
|
}
|
|
}
|