C# Class Foretagsplatsen.Api.Resources.KeyFigureResource

Rest resource for key figures https://web.foretagsplatsen.se/Api/Company/x/KeyFigures/y where x = business identity code and y is the key figure wanted
Mostrar archivo Open project: foretagsplatsen/Foretagsplatsen-DotNet-API

Private Properties

Property Type Description
CreateKeyFigure IKeyFigure

Public Methods

Method Description
GetAllKeyFigures ( ) : List

Return a list with all key figures

GetAllKeyFigures ( System.DateTime startDate, System.DateTime endDate ) : List

Return a list with all key figures

GetGrossProfit ( ) : GrossProfit

Return data for Cross margin key figure

GetGrossProfit ( System.DateTime startDate, System.DateTime endDate ) : GrossProfit

Return data for Cross margin key figure with limits for start and end date

GetGrossProfitMargin ( ) : GrossProfitMargin

Return key figures for gross profit margin

GetGrossProfitMargin ( System.DateTime startDate, System.DateTime endDate ) : GrossProfitMargin

Return data for gross profit margin key figure with limits for start and end date

GetNetProfitMargin ( System.DateTime startDate, System.DateTime endDate ) : NetProfitMargin

Return data for net profit margin key figure with limits for start and end date

GetPreliminaryResult ( System.DateTime startDate, System.DateTime endDate ) : PreliminaryResult

Return data for accumulated result key figure with limits for start and end date

GetProfit ( ) : Profit

Return key figures for profit

GetProfit ( System.DateTime startDate, System.DateTime endDate ) : Profit

Return data for profit key figure with limits for start and end date

GetTurnover ( ) : Turnover

Return key figures for turnover

GetTurnover ( System.DateTime startDate, System.DateTime endDate ) : Turnover

Return data for turnover key figure with limits for start and end date

KeyFigureResource ( ApiClient client, string businessIdentityCode ) : System

Private Methods

Method Description
CreateKeyFigure ( JToken keyFigureData ) : IKeyFigure

Create and return a key figure from a JToken json data

Method Details

GetAllKeyFigures() public method

Return a list with all key figures
public GetAllKeyFigures ( ) : List
return List

GetAllKeyFigures() public method

Return a list with all key figures
public GetAllKeyFigures ( System.DateTime startDate, System.DateTime endDate ) : List
startDate System.DateTime Date to start fetch data from
endDate System.DateTime Date to stop fetch data from
return List

GetGrossProfit() public method

Return data for Cross margin key figure
public GetGrossProfit ( ) : GrossProfit
return GrossProfit

GetGrossProfit() public method

Return data for Cross margin key figure with limits for start and end date
public GetGrossProfit ( System.DateTime startDate, System.DateTime endDate ) : GrossProfit
startDate System.DateTime Date to start fetch data from
endDate System.DateTime Date to stop fetch data from
return GrossProfit

GetGrossProfitMargin() public method

Return key figures for gross profit margin
public GetGrossProfitMargin ( ) : GrossProfitMargin
return GrossProfitMargin

GetGrossProfitMargin() public method

Return data for gross profit margin key figure with limits for start and end date
public GetGrossProfitMargin ( System.DateTime startDate, System.DateTime endDate ) : GrossProfitMargin
startDate System.DateTime Date to start fetch data from
endDate System.DateTime Date to stop fetch data from
return GrossProfitMargin

GetNetProfitMargin() public method

Return data for net profit margin key figure with limits for start and end date
public GetNetProfitMargin ( System.DateTime startDate, System.DateTime endDate ) : NetProfitMargin
startDate System.DateTime Date to start fetch data from
endDate System.DateTime Date to stop fetch data from
return NetProfitMargin

GetPreliminaryResult() public method

Return data for accumulated result key figure with limits for start and end date
public GetPreliminaryResult ( System.DateTime startDate, System.DateTime endDate ) : PreliminaryResult
startDate System.DateTime Date to start fetch data from
endDate System.DateTime Date to stop fetch data from
return PreliminaryResult

GetProfit() public method

Return key figures for profit
public GetProfit ( ) : Profit
return Profit

GetProfit() public method

Return data for profit key figure with limits for start and end date
public GetProfit ( System.DateTime startDate, System.DateTime endDate ) : Profit
startDate System.DateTime Date to start fetch data from
endDate System.DateTime Date to stop fetch data from
return Profit

GetTurnover() public method

Return key figures for turnover
public GetTurnover ( ) : Turnover
return Turnover

GetTurnover() public method

Return data for turnover key figure with limits for start and end date
public GetTurnover ( System.DateTime startDate, System.DateTime endDate ) : Turnover
startDate System.DateTime Date to start fetch data from
endDate System.DateTime Date to stop fetch data from
return Turnover

KeyFigureResource() public method

public KeyFigureResource ( ApiClient client, string businessIdentityCode ) : System
client ApiClient
businessIdentityCode string
return System