C# Class Terrarium.Server.UsageReporting

Exibir arquivo Open project: eugeniomiro/Terrarium

Public Methods

Method Description
GetTeamDetails ( string pumAlias, UsagePeriod period ) : List

Returns an array of UserUsageSummary items for a team

GetTeamSummaries ( UsagePeriod period ) : List
GetTeamUsage ( string pumAlias, UsagePeriod period ) : TeamUsageSummary
GetTeamUsageForUser ( string alias, UsagePeriod period ) : TeamUsageSummary
GetUserDetails ( string alias, UsagePeriod period ) : ReadOnlyCollection
GetUserSummaries ( UsagePeriod period ) : ReadOnlyCollection
GetUserUsage ( string alias, UsagePeriod period ) : UserUsageSummary

Private Methods

Method Description
GetPeriodDates ( UsagePeriod period, System.DateTime &startDate, System.DateTime &endDate ) : void

This is a helper function to give proper dates given the UsagePeriod

Method Details

GetTeamDetails() public static method

Returns an array of UserUsageSummary items for a team
public static GetTeamDetails ( string pumAlias, UsagePeriod period ) : List
pumAlias string The Pum for the team
period UsagePeriod Which period we care about
return List

GetTeamSummaries() public static method

public static GetTeamSummaries ( UsagePeriod period ) : List
period UsagePeriod
return List

GetTeamUsage() public static method

public static GetTeamUsage ( string pumAlias, UsagePeriod period ) : TeamUsageSummary
pumAlias string
period UsagePeriod
return TeamUsageSummary

GetTeamUsageForUser() public static method

public static GetTeamUsageForUser ( string alias, UsagePeriod period ) : TeamUsageSummary
alias string
period UsagePeriod
return TeamUsageSummary

GetUserDetails() public static method

public static GetUserDetails ( string alias, UsagePeriod period ) : ReadOnlyCollection
alias string
period UsagePeriod
return ReadOnlyCollection

GetUserSummaries() public static method

public static GetUserSummaries ( UsagePeriod period ) : ReadOnlyCollection
period UsagePeriod
return ReadOnlyCollection

GetUserUsage() public static method

public static GetUserUsage ( string alias, UsagePeriod period ) : UserUsageSummary
alias string
period UsagePeriod
return UserUsageSummary