C# Class Cydin.Models.StatsModel

ファイルを表示 Open project: slluis/cydin

Public Methods

Method Description
GetDownloadStatsCSV ( ) : string
GetDownloadSummary ( Cydin.Models.Project p ) : string
GetDownloadSummary ( Cydin.Models.Release rel ) : string
GetProjectDownloadStats ( int projectId, TimePeriod period, System.DateTime startDate, System.DateTime endDate ) : Cydin.Models.DownloadStats
GetReleaseDownloadStats ( int releaseId, TimePeriod period, System.DateTime startDate, System.DateTime endDate ) : Cydin.Models.DownloadStats
GetRepoDownloadStatsCSV ( ) : string
GetTopDownloads ( System.DateTime startDate, System.DateTime endDate ) : List
GetTotalDownloadStats ( TimePeriod period, System.DateTime startDate, System.DateTime endDate ) : Cydin.Models.DownloadStats
GetTotalRepoDownloadStats ( TimePeriod period, System.DateTime startDate, System.DateTime endDate ) : Cydin.Models.DownloadStats
IncDownloadCount ( string file ) : void
IncRepoDownloadCount ( string platform, string version ) : void

Private Methods

Method Description
GetDownloadStats ( TimePeriod period, System.DateTime startDate, System.DateTime endDate, string from, string filter, object arg ) : Cydin.Models.DownloadStats
GetPeriod ( TimePeriod period, System.DateTime t, System.DateTime &start, System.DateTime &end ) : void
StatsModel ( UserModel um, MySqlConnection db ) : System

Method Details

GetDownloadStatsCSV() public method

public GetDownloadStatsCSV ( ) : string
return string

GetDownloadSummary() public method

public GetDownloadSummary ( Cydin.Models.Project p ) : string
p Cydin.Models.Project
return string

GetDownloadSummary() public method

public GetDownloadSummary ( Cydin.Models.Release rel ) : string
rel Cydin.Models.Release
return string

GetProjectDownloadStats() public method

public GetProjectDownloadStats ( int projectId, TimePeriod period, System.DateTime startDate, System.DateTime endDate ) : Cydin.Models.DownloadStats
projectId int
period TimePeriod
startDate System.DateTime
endDate System.DateTime
return Cydin.Models.DownloadStats

GetReleaseDownloadStats() public method

public GetReleaseDownloadStats ( int releaseId, TimePeriod period, System.DateTime startDate, System.DateTime endDate ) : Cydin.Models.DownloadStats
releaseId int
period TimePeriod
startDate System.DateTime
endDate System.DateTime
return Cydin.Models.DownloadStats

GetRepoDownloadStatsCSV() public method

public GetRepoDownloadStatsCSV ( ) : string
return string

GetTopDownloads() public method

public GetTopDownloads ( System.DateTime startDate, System.DateTime endDate ) : List
startDate System.DateTime
endDate System.DateTime
return List

GetTotalDownloadStats() public method

public GetTotalDownloadStats ( TimePeriod period, System.DateTime startDate, System.DateTime endDate ) : Cydin.Models.DownloadStats
period TimePeriod
startDate System.DateTime
endDate System.DateTime
return Cydin.Models.DownloadStats

GetTotalRepoDownloadStats() public method

public GetTotalRepoDownloadStats ( TimePeriod period, System.DateTime startDate, System.DateTime endDate ) : Cydin.Models.DownloadStats
period TimePeriod
startDate System.DateTime
endDate System.DateTime
return Cydin.Models.DownloadStats

IncDownloadCount() public method

public IncDownloadCount ( string file ) : void
file string
return void

IncRepoDownloadCount() public method

public IncRepoDownloadCount ( string platform, string version ) : void
platform string
version string
return void