public static BaseLoginInfoHistory NewHistoryItem(BaseLoginInfo item, Person person, String address, String proxy) { BaseLoginInfoHistory r = new BaseLoginInfoHistory(); r.CreatorInfo = CreatorInfo.Create(item, person, address, proxy); return(r); }
public static BaseLoginInfoHistory NewHistoryItem(Person person, String ipAddress, String proxyIpAddress) { BaseLoginInfoHistory r = new BaseLoginInfoHistory(); r.CreatorInfo = CreatorInfo.Create(person, ipAddress, proxyIpAddress); return(r); }
public static ExternalLoginInfoHistory NewHistoryItem(ExternalLoginInfo item, Person person, String ipAddress, String proxyIpAddress) { ExternalLoginInfoHistory r = new ExternalLoginInfoHistory(); r.CreatorInfo = CreatorInfo.Create(item, person, ipAddress, proxyIpAddress); r.Displayname = (item.Person != null) ? item.Person.SurnameAndName : ""; r.IdPerson = (item.Person != null) ? item.Person.Id : 0; r.IdProvider = (item.Provider != null) ? item.Provider.Id : 0; r.IdExternalLong = item.IdExternalLong; r.IdExternalString = item.IdExternalString; r.ExternalIdentifier = item.ExternalIdentifier; r.isEnabled = item.isEnabled; r.Deleted = item.Deleted; return(r); }
public static InternalLoginInfoHistory NewHistoryItem(InternalLoginInfo item, Person person, String ipAddress, String proxyIpAddress) { InternalLoginInfoHistory r = new InternalLoginInfoHistory(); r.CreatorInfo = CreatorInfo.Create(item, person, ipAddress, proxyIpAddress); r.Displayname = (item.Person != null) ? item.Person.SurnameAndName : ""; r.IdPerson = (item.Person != null) ? item.Person.Id : 0; r.IdProvider = (item.Provider != null) ? item.Provider.Id : 0; r.Login = item.Login; r.Password = item.Password; r.ResetType = item.ResetType; r.PasswordExpiresOn = item.PasswordExpiresOn; r.isEnabled = item.isEnabled; r.Deleted = item.Deleted; return(r); }