C# Class AnalyticsApi.AnalyticsService

Datei anzeigen Open project: alexandernyquist/AnalyticsApi

Protected Properties

Property Type Description
_password string
_profile int?
_token string
_username string

Public Methods

Method Description
Account ( int accountId ) : AnalyticsService

Set account id for current context

AnalyticsService ( IAnalyticsDataProvider dataProvider ) : System
GetAccounts ( ) : IEnumerable

Get all accounts for a specific user

GetDashboard ( string start, string end ) : DashboardRequest

Get dashboard summary for a given profile

GetGoalCompletions ( Goal goal, string end ) : Goal
GetGoalCompletions ( IEnumerable goals, string start, string end ) : IEnumerable
GetGoals ( ) : IEnumerable
GetPassword ( ) : string

Get current password

GetProfile ( ) : int?

Get current profile id

GetToken ( ) : string

Get current token

GetTopTrafficSources ( string start, string end ) : void
GetUsername ( ) : string

Get current username

Logon ( ) : AnalyticsService

Login to service

Password ( string password ) : AnalyticsService

Set password for current context

Profile ( int id ) : AnalyticsService

Set profile id for current context

Username ( string username ) : AnalyticsService

Set username for current context

Method Details

Account() public method

Set account id for current context
public Account ( int accountId ) : AnalyticsService
accountId int
return AnalyticsService

AnalyticsService() public method

public AnalyticsService ( IAnalyticsDataProvider dataProvider ) : System
dataProvider IAnalyticsDataProvider
return System

GetAccounts() public method

Get all accounts for a specific user
public GetAccounts ( ) : IEnumerable
return IEnumerable

GetDashboard() public method

Get dashboard summary for a given profile
public GetDashboard ( string start, string end ) : DashboardRequest
start string
end string
return DashboardRequest

GetGoalCompletions() public method

public GetGoalCompletions ( Goal goal, string end ) : Goal
goal Goal
end string
return Goal

GetGoalCompletions() public method

public GetGoalCompletions ( IEnumerable goals, string start, string end ) : IEnumerable
goals IEnumerable
start string
end string
return IEnumerable

GetGoals() public method

public GetGoals ( ) : IEnumerable
return IEnumerable

GetPassword() public method

Get current password
public GetPassword ( ) : string
return string

GetProfile() public method

Get current profile id
public GetProfile ( ) : int?
return int?

GetToken() public method

Get current token
public GetToken ( ) : string
return string

GetTopTrafficSources() public method

public GetTopTrafficSources ( string start, string end ) : void
start string
end string
return void

GetUsername() public method

Get current username
public GetUsername ( ) : string
return string

Logon() public method

Login to service
public Logon ( ) : AnalyticsService
return AnalyticsService

Password() public method

Set password for current context
public Password ( string password ) : AnalyticsService
password string
return AnalyticsService

Profile() public method

Set profile id for current context
public Profile ( int id ) : AnalyticsService
id int
return AnalyticsService

Username() public method

Set username for current context
public Username ( string username ) : AnalyticsService
username string
return AnalyticsService

Property Details

_password protected_oe property

protected string _password
return string

_profile protected_oe property

protected int? _profile
return int?

_token protected_oe property

protected string _token
return string

_username protected_oe property

protected string _username
return string