public ActiveParticipantContents(RoleIDCode roleId, string _userIDField, string alternateUserId, string _userNameField, string _networkAccessPointIDField, NetworkAccessPointTypeEnum?_networkAccessPointTypeCode, bool?userIsRequestor) { if (roleId != null) { RoleIDCode = new RoleIDCode[1]; RoleIDCode[0] = roleId; } if (userIsRequestor.HasValue) { UserIsRequestor = userIsRequestor.Value; } if (_userIDField != null) { UserID = _userIDField; } if (alternateUserId != null) { AlternativeUserID = alternateUserId; } if (_userNameField != null) { UserName = _userNameField; } if (_networkAccessPointIDField != null) { NetworkAccessPointID = _networkAccessPointIDField; } if (_networkAccessPointTypeCode.HasValue) { NetworkAccessPointTypeCode = (ActiveParticipantContentsNetworkAccessPointTypeCode)_networkAccessPointTypeCode.Value; NetworkAccessPointTypeCodeSpecified = true; } else { NetworkAccessPointTypeCodeSpecified = false; } }
public ActiveParticipantContents(AuditActiveParticipant participant) { if (participant.RoleIdCode != null) { RoleIDCode = new RoleIDCode[1]; RoleIDCode[0] = participant.RoleIdCode; } if (participant.UserIsRequestor.HasValue) { UserIsRequestor = participant.UserIsRequestor.Value; } if (participant.UserId != null) { UserID = participant.UserId; } if (participant.AlternateUserId != null) { AlternativeUserID = participant.AlternateUserId; } if (participant.UserName != null) { UserName = participant.UserName; } if (participant.NetworkAccessPointId != null) { NetworkAccessPointID = participant.NetworkAccessPointId; } if (participant.NetworkAccessPointType.HasValue) { NetworkAccessPointTypeCode = (ActiveParticipantContentsNetworkAccessPointTypeCode)participant.NetworkAccessPointType.Value; NetworkAccessPointTypeCodeSpecified = true; } else { NetworkAccessPointTypeCodeSpecified = false; } }