1
0
Fork 0
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

59 lines
1.8 KiB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace PhilExampleCrawler.DataBase.Models
{
public class DB_Insertion
{
public string Href { get; }
public int CrawlSessionID { get; }
public string Name { get; }
public int? PostCode { get; set; }
public string? LocationStr { get; set; }
public decimal Price { get; }
public bool Is_VB { get; }
public DateTime? Date { get; }
public bool IsTopAd { get; }
public bool IsHighlight { get; }
public bool IsRequest { get; }
public DB_Insertion(string href, int crawlSessionID, string name,
int? postCode, string? locationStr,
decimal price, bool is_vb, DateTime? date,
bool isTopAd, bool isHighlight, bool isRequest)
{
Href = href;
CrawlSessionID = crawlSessionID;
Name = name;
PostCode = postCode;
LocationStr = locationStr;
Price = price;
Is_VB = is_vb;
Date = date;
IsTopAd = isTopAd;
IsHighlight = isHighlight;
IsRequest = isRequest;
}
public DB_Insertion(DB_Insertion toCopy)
{
Href = toCopy.Href;
CrawlSessionID = toCopy.CrawlSessionID;
Name = toCopy.Name;
PostCode = toCopy.PostCode;
LocationStr = toCopy.LocationStr;
Price = toCopy.Price;
Is_VB = toCopy.Is_VB;
Date = toCopy.Date;
IsTopAd = toCopy.IsTopAd;
IsHighlight = toCopy.IsHighlight;
IsRequest = toCopy.IsRequest;
}
}
}