C# Class RTDealsScanerEngine.ScanDeals

Show file Open project: jediskywalker/RTDeals

Public Methods

Method Description
AlterDealURL ( string OriginalURL, int SourceID, DataSet ds ) : string
GetCategoryNameByKeyword ( string keyword ) : string
GetDealsCatetogry ( string dealTitle, DataSet ds ) : string
GetRSSDeals ( int PercentageLimitation ) : void
GetRtDealsDataSet ( ) : DataSet
InsertRssDeals ( int Sourceid, string title, string url, int rate, string UniqueParameter, string SendContent, string publicDate, int IsAppliances, int IsFinance, int IsTravel, int IsDrug, int IsElectronic, int IsBeauty, int IsOfficeSupplies, int IsRestaurant, int IsJewelry, int IsOthers, int IsAppeal, int IsHot ) : string
InsertRssDealsDuplicate ( int Sourceid, string title, string url, int rate, string UniqueParameter, string SendContent, string publicDate, int IsAppliances, int IsFinance, int IsTravel, int IsDrug, int IsElectronic, int IsBeauty, int IsOfficeSupplies, int IsRestaurant, int IsJewelry, int IsOthers, int IsAppeal, int IsHot ) : string
InsertRssDealsHistory ( int Sourceid, string title, string url, int rate, string UniqueParameter, string SendContent, string publicDate, int IsAppliances, int IsFinance, int IsTravel, int IsDrug, int IsElectronic, int IsBeauty, int IsOfficeSupplies, int IsRestaurant, int IsJewelry, int IsOthers, int IsAppeal, int IsHot ) : string
isRssDealDuplicateExist ( string UniqueParameter ) : bool
isRssDealExist ( string UniqueParameter ) : bool
isRssTitleExsit ( string Title ) : bool

Private Methods

Method Description
SimilarWordsCompare ( string p, string Title ) : int

Method Details

AlterDealURL() public static method

public static AlterDealURL ( string OriginalURL, int SourceID, DataSet ds ) : string
OriginalURL string
SourceID int
ds System.Data.DataSet
return string

GetCategoryNameByKeyword() public static method

public static GetCategoryNameByKeyword ( string keyword ) : string
keyword string
return string

GetDealsCatetogry() public static method

public static GetDealsCatetogry ( string dealTitle, DataSet ds ) : string
dealTitle string
ds System.Data.DataSet
return string

GetRSSDeals() public static method

public static GetRSSDeals ( int PercentageLimitation ) : void
PercentageLimitation int
return void

GetRtDealsDataSet() public static method

public static GetRtDealsDataSet ( ) : DataSet
return System.Data.DataSet

InsertRssDeals() public static method

public static InsertRssDeals ( int Sourceid, string title, string url, int rate, string UniqueParameter, string SendContent, string publicDate, int IsAppliances, int IsFinance, int IsTravel, int IsDrug, int IsElectronic, int IsBeauty, int IsOfficeSupplies, int IsRestaurant, int IsJewelry, int IsOthers, int IsAppeal, int IsHot ) : string
Sourceid int
title string
url string
rate int
UniqueParameter string
SendContent string
publicDate string
IsAppliances int
IsFinance int
IsTravel int
IsDrug int
IsElectronic int
IsBeauty int
IsOfficeSupplies int
IsRestaurant int
IsJewelry int
IsOthers int
IsAppeal int
IsHot int
return string

InsertRssDealsDuplicate() public static method

public static InsertRssDealsDuplicate ( int Sourceid, string title, string url, int rate, string UniqueParameter, string SendContent, string publicDate, int IsAppliances, int IsFinance, int IsTravel, int IsDrug, int IsElectronic, int IsBeauty, int IsOfficeSupplies, int IsRestaurant, int IsJewelry, int IsOthers, int IsAppeal, int IsHot ) : string
Sourceid int
title string
url string
rate int
UniqueParameter string
SendContent string
publicDate string
IsAppliances int
IsFinance int
IsTravel int
IsDrug int
IsElectronic int
IsBeauty int
IsOfficeSupplies int
IsRestaurant int
IsJewelry int
IsOthers int
IsAppeal int
IsHot int
return string

InsertRssDealsHistory() public static method

public static InsertRssDealsHistory ( int Sourceid, string title, string url, int rate, string UniqueParameter, string SendContent, string publicDate, int IsAppliances, int IsFinance, int IsTravel, int IsDrug, int IsElectronic, int IsBeauty, int IsOfficeSupplies, int IsRestaurant, int IsJewelry, int IsOthers, int IsAppeal, int IsHot ) : string
Sourceid int
title string
url string
rate int
UniqueParameter string
SendContent string
publicDate string
IsAppliances int
IsFinance int
IsTravel int
IsDrug int
IsElectronic int
IsBeauty int
IsOfficeSupplies int
IsRestaurant int
IsJewelry int
IsOthers int
IsAppeal int
IsHot int
return string

isRssDealDuplicateExist() public static method

public static isRssDealDuplicateExist ( string UniqueParameter ) : bool
UniqueParameter string
return bool

isRssDealExist() public static method

public static isRssDealExist ( string UniqueParameter ) : bool
UniqueParameter string
return bool

isRssTitleExsit() public static method

public static isRssTitleExsit ( string Title ) : bool
Title string
return bool