C# Класс Foretagsplatsen.Api.Resources.KeyFigurePresetResource

Key figure data REST resource:
Показать файл Открыть проект

Открытые методы

Метод Описание
Create ( KeyFigurePreset keyFigurePreset ) : void

Creates a new KeyFigurePreset. If the KeyFigurePreset does not contain an id or a list of KeyFigureTypes, an InvalidArguments exception will be thrown If the id of the KeyFigurePreset already exists for the company, an Exists exception will be thrown.

Delete ( string id ) : void

Deletes a KeyFigurePreset. If the id of the KeyFigurePreset doesn't exist for the company, a NotFound exception will be thrown

Get ( string id ) : KeyFigurePreset

Gets a single KeyFigurePreset for a company. If the id of the KeyFigurePreset doesn't exist for the company, a NotFound exception will be thrown

GetUrl ( ) : string

Url for the keyfigure preset data list resource

GetUrlWithPresetId ( string presetId ) : string

Url for the keyfigure preset data list resource

KeyFigurePresetResource ( ApiClient client, CompanyInfo company ) : System.Collections.Generic

Instantiates a new KeyFigurePresetResource object.

KeyFigurePresetResource ( ApiClient client, string businessIdentityCode ) : System.Collections.Generic

Instantiates a new KeyFigurePresetResource object.

List ( ) : List

Lists all KeyFigurePreset for a company.

Update ( KeyFigurePreset keyFigurePreset ) : void

Creates or updates a KeyFigurePreset If the KeyFigurePreset does not contain an id or a list of KeyFigureTypes, an InvalidArguments exception will be thrown

Описание методов

Create() публичный Метод

Creates a new KeyFigurePreset. If the KeyFigurePreset does not contain an id or a list of KeyFigureTypes, an InvalidArguments exception will be thrown If the id of the KeyFigurePreset already exists for the company, an Exists exception will be thrown.
public Create ( KeyFigurePreset keyFigurePreset ) : void
keyFigurePreset Foretagsplatsen.Api.Entities.KeyFigurePreset The KeyFigurePreset to create
Результат void

Delete() публичный Метод

Deletes a KeyFigurePreset. If the id of the KeyFigurePreset doesn't exist for the company, a NotFound exception will be thrown
public Delete ( string id ) : void
id string The id of the KeyFigurePreset to delete
Результат void

Get() публичный Метод

Gets a single KeyFigurePreset for a company. If the id of the KeyFigurePreset doesn't exist for the company, a NotFound exception will be thrown
public Get ( string id ) : KeyFigurePreset
id string The id of the KeyFigurePreset to get
Результат Foretagsplatsen.Api.Entities.KeyFigurePreset

GetUrl() публичный Метод

Url for the keyfigure preset data list resource
public GetUrl ( ) : string
Результат string

GetUrlWithPresetId() публичный Метод

Url for the keyfigure preset data list resource
public GetUrlWithPresetId ( string presetId ) : string
presetId string
Результат string

KeyFigurePresetResource() публичный Метод

Instantiates a new KeyFigurePresetResource object.
public KeyFigurePresetResource ( ApiClient client, CompanyInfo company ) : System.Collections.Generic
client ApiClient REST client
company Foretagsplatsen.Api.Entities.CompanyInfo Company
Результат System.Collections.Generic

KeyFigurePresetResource() публичный Метод

Instantiates a new KeyFigurePresetResource object.
public KeyFigurePresetResource ( ApiClient client, string businessIdentityCode ) : System.Collections.Generic
client ApiClient REST client
businessIdentityCode string Business identity code for company.
Результат System.Collections.Generic

List() публичный Метод

Lists all KeyFigurePreset for a company.
public List ( ) : List
Результат List

Update() публичный Метод

Creates or updates a KeyFigurePreset If the KeyFigurePreset does not contain an id or a list of KeyFigureTypes, an InvalidArguments exception will be thrown
public Update ( KeyFigurePreset keyFigurePreset ) : void
keyFigurePreset Foretagsplatsen.Api.Entities.KeyFigurePreset The KeyFigurePreset to create or update
Результат void