00001 using System; 00002 using System.Collections.Generic; 00003 using System.Text; 00004 using HouseOver.THARM.Attributes; 00005 00006 namespace HouseOver.THARM.Buildings 00007 { 00011 [SearchItems] 00012 [Serializable] 00013 public class Apartment : Domicile 00014 { 00016 private int floor; 00017 00021 public Apartment() : base(UniquelyIdentifiable.NextID) { } 00022 00027 public Apartment(int id) : base(id) { } 00028 00038 public Apartment(int id, int postalCode, int area, int buildingYear, int levels, int floor) 00039 : base 00040 (id, postalCode, area, buildingYear, levels) 00041 { 00042 this.floor = floor; 00043 } 00044 00048 [SaleCriteria] 00049 protected int Floor { get { return floor; } set { floor = value; } } 00050 00051 } 00052 }