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}/
Afficher le fichier Open project: foretagsplatsen/Foretagsplatsen-DotNet-API

Méthodes publiques

Méthode 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

Méthode 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 méthode

public AgencyUserCompanyResource ( ApiClient apiClient ) : System
apiClient ApiClient
Résultat System

Attach() public méthode

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
Résultat void

Detach() public méthode

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
Résultat void

Get() public méthode

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
Résultat Foretagsplatsen.Api.Entities.CompanyInfo

List() public méthode

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
Résultat List