public override string ToString() { return("Guest Request Key: " + GuestRequestKey.ToString() + "\n" + "PrivateName: " + PrivateName.ToString() + "\n" + "FamilyName: " + FamilyName.ToString() + "\n" + "Area: " + Area.ToString() + "\n" + "Sub Area: " + SubArea.ToString() + "\n" + "Type: " + Type.ToString() + "\n" + "Adults: " + Adults.ToString() + "\n" + "Children: " + Children.ToString() + "\n" + "Pool: " + Pool.ToString() + "\n" + "Jacuzzi " + Jacuzzi.ToString() + "\n" + "Garden: " + Garden.ToString() + "\n" + "Status: " + Status.ToString() + "\n" + "Mail Address: " + MailAddress.ToString() + "\n" + "Registration Date: " + RegistrationDate.ToString() + "\n" + "EntryDate: " + EntryDate.ToString() + "\n" + "ReleaseDate: " + ReleaseDate.ToString() + "\n" + "Synagogue: " + Synagogue.ToString() + "\n" + "Childrens Attractions: " + ChildrensAttractions.ToString() + "\n" ); }
public override string ToString() { string s; /*$@"status : {Status} * GuestRequestKey : {GuestRequestKey} * MailAddress: {MailAddress} * Status:*/ string information; information = " GuestRequestKey: " + GuestRequestKey.ToString() + ',' + guest.ToString(); // information += " PrivateName: " + PrivateName + ','+" FamilyName: " + FamilyName + ','; // information += " MailAddress: " + MailAddress + '\n'; switch ((int)Status) { case 0: information += " status: open,"; break; case 1: information += " status: a deal was closed through the site,"; break; case 2: information += " status: closed because it expired,"; break; } information += " Registration Date: " + RegistrationDate.Day.ToString() + '.' + RegistrationDate.Month.ToString() + '.' + RegistrationDate.Year.ToString() + ','; information += " Entry Date: " + EntryDate.Day.ToString() + '.' + EntryDate.Month.ToString() + ',' + EntryDate.Year.ToString() + ','; information += " release date: " + ReleaseDate.Day.ToString() + ',' + ReleaseDate.Month.ToString() + ',' + ReleaseDate.Year.ToString() + '\n'; information += " Area: " + Area.ToString() + ',' + " SubArea: " + SubArea.ToString() + ','; information += " Type: " + Type.ToString() + ','; information += " Adults: " + Adults.ToString() + ',' + " Children:" + Children.ToString() + ','; information += " pool:" + Pool.ToString() + ',' + " Jacuzz:" + Jacuzz.ToString() + ',' + " Garden:" + Garden.ToString() + ',' + " ChildrensAttractions:" + ChildrensAttractions.ToString() + ','; return(information); }