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}/
Показать файл Открыть проект

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

Метод Описание
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