C# Class Foretagsplatsen.Api.Resources.CompanyAgencyUserResource

Rest resource for agency users attached to a company https://web.foretagsplatsen.se/Api/Company/{businessIdentityCode}/AgencyUser/{username}/
Mostra file Open project: foretagsplatsen/Foretagsplatsen-DotNet-API

Public Methods

Method Description
Attach ( string username ) : void

Attach a detached agency user to a company

CompanyAgencyUserResource ( ApiClient apiClient, CompanyInfo company ) : System
Detach ( string username ) : void

Detach an attached agency user from a company

Get ( string username ) : UserInfo

Get an agency user that is attached to a company

List ( ) : List

Get a list of agency users attached to a company

Private Methods

Method Description
GetCollectionUrl ( ) : string

Url for the companys' agency user collection resource

GetCompanyAgencyUserUrl ( string username ) : string

Url for the companys' agency user resource

Method Details

Attach() public method

Attach a detached agency user to a company
public Attach ( string username ) : void
username string
return void

CompanyAgencyUserResource() public method

public CompanyAgencyUserResource ( ApiClient apiClient, CompanyInfo company ) : System
apiClient ApiClient
company Foretagsplatsen.Api.Entities.CompanyInfo
return System

Detach() public method

Detach an attached agency user from a company
public Detach ( string username ) : void
username string username to detach
return void

Get() public method

Get an agency user that is attached to a company
public Get ( string username ) : UserInfo
username string username of the agency user to get
return Foretagsplatsen.Api.Entities.UserInfo

List() public method

Get a list of agency users attached to a company
public List ( ) : List
return List