예제 #1
0
 public Review(int rate, string description, User author)
 {
     Author = author;
     Date = DateTime.Now;
     Description = description;
     Rate = rate;
 }
 public RealEstate()
 {
     PhotoCollection = new PhotoCollection();
     Location = new Location();
     Owner = new User();
     Reviews = new LinkedList<Review>();
 }
 public RealEstate(string name, string description, PhotoCollection photoCollection,
     Location location, int capacity, int dimension, int rooms, int bedrooms, User owner)
 {
     Owner = owner;
     Bedrooms = bedrooms;
     Rooms = rooms;
     Dimension = dimension;
     Capacity = capacity;
     Location = location;
     Name = name;
     Description = description;
     PhotoCollection = photoCollection;
     Reviews = new LinkedList<Review>();
 }
 public void Update(User obj)
 {
     throw new NotImplementedException();
 }
 public void Add(User objToAdd)
 {
     objToAdd.Id = Id++;
     Users.Add(objToAdd);
 }
예제 #6
0
 public Review()
 {
     Author = new User(22, "Anonymous", null);
     Date = DateTime.Now;
 }
 public RealEstate(int id, string name, string description, PhotoCollection photoCollection,
     Location location, int capacity, int dimension, int rooms, int bedrooms, User owner)
     : this(name, description, photoCollection, location, capacity, dimension, rooms, bedrooms, owner)
 {
     Id = id;
 }