C# 클래스 Foretagsplatsen.Api.Resources.CompanyResource

Company REST resource: https://web.foretagsplatsen.se/Api/Company/ Notes: * Agency directors (administrator) has access to all the Agency's customers. * Agency consultants have access to only those customers assigned to them. * Company user have access to the companies they created/owns and those assigned/connected to them. * A company user can only delete a company if he is the one who owns (created) the company.
파일 보기 프로젝트 열기: foretagsplatsen/Foretagsplatsen-DotNet-API

공개 메소드들

메소드 설명
CompanyResource ( ApiClient client ) : System

Instantiates a new CompanyResource object.

Create ( CompanyInfo company ) : void

Create an empty company.

Delete ( CompanyInfo company ) : void

Delete a company.

Get ( string businessIdentityCode ) : CompanyInfo

Get company

GetCollectionUrl ( ) : string

Url for the company resource.

GetUrl ( CompanyInfo companyInfo ) : string

Url for the company collection resource

List ( bool showAll ) : List

List companies.

Update ( CompanyInfo company ) : void

Update a company.

Business identity code can not be edited. If the identity code is edited, the system assumes it´s a new company.

메소드 상세

CompanyResource() 공개 메소드

Instantiates a new CompanyResource object.
public CompanyResource ( ApiClient client ) : System
client ApiClient REST client to use.
리턴 System

Create() 공개 메소드

Create an empty company.
public Create ( CompanyInfo company ) : void
company Foretagsplatsen.Api.Entities.CompanyInfo Company to create.
리턴 void

Delete() 공개 메소드

Delete a company.
public Delete ( CompanyInfo company ) : void
company Foretagsplatsen.Api.Entities.CompanyInfo Company to delete.
리턴 void

Get() 공개 메소드

Get company
public Get ( string businessIdentityCode ) : CompanyInfo
businessIdentityCode string Business identity code for company.
리턴 Foretagsplatsen.Api.Entities.CompanyInfo

GetCollectionUrl() 공개 메소드

Url for the company resource.
public GetCollectionUrl ( ) : string
리턴 string

GetUrl() 공개 메소드

Url for the company collection resource
public GetUrl ( CompanyInfo companyInfo ) : string
companyInfo Foretagsplatsen.Api.Entities.CompanyInfo Company to get the url for.
리턴 string

List() 공개 메소드

List companies.
public List ( bool showAll ) : List
showAll bool Get all companies for agency if and is /// an AgencyDirector otherwise the companies attached to the user
리턴 List

Update() 공개 메소드

Update a company.
Business identity code can not be edited. If the identity code is edited, the system assumes it´s a new company.
public Update ( CompanyInfo company ) : void
company Foretagsplatsen.Api.Entities.CompanyInfo New company information.
리턴 void