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

Rest resource for companies that an agency user are attached to https://web.foretagsplatsen.se/Api/AgencyUser/{username}/Company/{businessIdentityCode}/
파일 보기 프로젝트 열기: foretagsplatsen/Foretagsplatsen-DotNet-API

공개 메소드들

메소드 설명
AgencyUserCompanyResource ( ApiClient apiClient ) : System
Attach ( string userName, string businessIdentityCode ) : void

Attach a company to an agency user

Detach ( string userName, string businessIdentityCode ) : void

Detach a company from an agency user

Get ( string userName, string businessIdentityCode ) : CompanyInfo

Get a company from an agency users

List ( string userName ) : List

Get a list of companies that a user is attached to

비공개 메소드들

메소드 설명
GetCollectionUrl ( string userName ) : string

Url for the agency user's company collection resource

GetCompanyUrlForAgencyUser ( string userName, string businessIdentityCode ) : string

Url for an agency user's company resource

GetUrlForDetachAndAttachAgencyUser ( string userName, string businessIdentityCode ) : string

Url for attaching and detaching company from and to company

메소드 상세

AgencyUserCompanyResource() 공개 메소드

public AgencyUserCompanyResource ( ApiClient apiClient ) : System
apiClient ApiClient
리턴 System

Attach() 공개 메소드

Attach a company to an agency user
public Attach ( string userName, string businessIdentityCode ) : void
userName string Username of the agency user
businessIdentityCode string Business identity code for the company
리턴 void

Detach() 공개 메소드

Detach a company from an agency user
public Detach ( string userName, string businessIdentityCode ) : void
userName string Username of the agency user
businessIdentityCode string Business identity code for the company
리턴 void

Get() 공개 메소드

Get a company from an agency users
public Get ( string userName, string businessIdentityCode ) : CompanyInfo
userName string Username of the agency user
businessIdentityCode string Business identity code for the company
리턴 Foretagsplatsen.Api.Entities.CompanyInfo

List() 공개 메소드

Get a list of companies that a user is attached to
public List ( string userName ) : List
userName string Username of the user to get companies for
리턴 List