init
This commit is contained in:
+29
@@ -0,0 +1,29 @@
|
||||
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
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user