C# Class Foretagsplatsen.Api.Resources.AgencyUserCompanyResource

Rest resource for companies that an agency user are attached to https://web.foretagsplatsen.se/Api/AgencyUser/{username}/Company/{businessIdentityCode}/
Mostrar archivo Open project: foretagsplatsen/Foretagsplatsen-DotNet-API

Public Methods

Method Description
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

Private Methods

Method Description
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

Method Details

AgencyUserCompanyResource() public method

public AgencyUserCompanyResource ( ApiClient apiClient ) : System
apiClient ApiClient
return System

Attach() public method

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
return void

Detach() public method

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
return void

Get() public method

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
return Foretagsplatsen.Api.Entities.CompanyInfo

List() public method

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
return List