public PersonMedium(PrivateId privateId, PublicId publicId, Ptal ptal, Name name, DateTime?dateOfBirth, Gender gender, Address address, string placeOfBirth, SpecialMarks specialMarks, Incapacity incapacity, CivilStatus civilStatus, DateTime?dateOfDeath) : base(privateId, name, gender, address, placeOfBirth, incapacity, specialMarks, dateOfDeath) { PublicId = publicId; Ptal = ptal; DateOfBirth = dateOfBirth; CivilStatus = civilStatus; }
public PersonSmall(PrivateId privateId, Name name, Gender gender, Address address, string placeOfBirth, Incapacity incapacity, SpecialMarks specialMarks, DateTime?dateOfDeath) { PrivateId = privateId; Name = name; Gender = gender; Address = address; PlaceOfBirth = placeOfBirth; Incapacity = incapacity; SpecialMarks = specialMarks; DateOfDeath = dateOfDeath; }
public CommunityPerson(PersonSmall person, PrivateId existingId, CommunityPersonStatus status) { Status = Util.RequireNonNull(status, "status"); if (person == null && status.Equals(CommunityPersonStatus.Added)) { throw new FolkApiException("person must not be null when status is " + CommunityPersonStatus.Added); } if (existingId == null && status.Equals(CommunityPersonStatus.AlreadyExists)) { throw new FolkApiException("existingId must not be null when status is " + CommunityPersonStatus.AlreadyExists); } Person = Status.Equals(CommunityPersonStatus.AlreadyExists) ? null : person; ExistingId = existingId; }