37 lines
1.2 KiB
C#
37 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using Kreta.Ellenorzo.Domain.VN.UniqueIdentifier;
|
|
|
|
namespace Kreta.Ellenorzo.Domain.VN.Felhasznalo.Tanulo
|
|
{
|
|
[Serializable]
|
|
public class GondviseloGetResponse : IEqualityComparer<GondviseloGetResponse>
|
|
{
|
|
public GondviseloUid Uid { get; set; }
|
|
|
|
public Guid IdpUniqueId { get; set; }
|
|
|
|
public string Nev { get; set; }
|
|
|
|
public string EmailCim { get; set; }
|
|
|
|
public string Telefonszam { get; set; }
|
|
|
|
public bool IsTorvenyesKepviselo { get; set; }
|
|
|
|
public bool Equals(GondviseloGetResponse x, GondviseloGetResponse y) => x.Uid.Equals(x.Uid, y.Uid);
|
|
|
|
public int GetHashCode(GondviseloGetResponse obj) => obj.Uid.UidRaw.GetHashCode();
|
|
|
|
public static explicit operator GondviseloGetResponse(Gondviselo.GondviseloResponse model) => model == null ? null :
|
|
new GondviseloGetResponse
|
|
{
|
|
Uid = model.Uid,
|
|
IdpUniqueId = model.IdpUniqueId,
|
|
Nev = model.Nev,
|
|
EmailCim = model.EmailCim,
|
|
Telefonszam = model.Telefonszam,
|
|
IsTorvenyesKepviselo = model.IsTorvenyesKepviselo
|
|
};
|
|
}
|
|
}
|