C# Class Foretagsplatsen.Api.Resources.AgencyUserResource

Rest resource for agency users https://web.foretagsplatsen.se/Api/AgencyUser/{username}/
ファイルを表示 Open project: foretagsplatsen/Foretagsplatsen-DotNet-API

Public Methods

Method Description
AgencyUserResource ( ApiClient apiClient ) : System
Create ( UserInfo userToCreate ) : void

Create an agency user

Delete ( UserInfo userToDelete ) : void

Delete an agency user

Delete ( string username ) : void

Delete an agency user

Get ( string username ) : UserInfo

Get an agency user

List ( ) : List

Get a list of agency users in an agency

Update ( UserInfo updatedUserInfo ) : void

Update an agency user

Private Methods

Method Description
GetAgencyUserUrl ( string username ) : string

Url for the agency user resource

GetCollectionUrl ( ) : string

Url for the agency user collection resource

Method Details

AgencyUserResource() public method

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

Create() public method

Create an agency user
public Create ( UserInfo userToCreate ) : void
userToCreate Foretagsplatsen.Api.Entities.UserInfo UserInfo to create
return void

Delete() public method

Delete an agency user
public Delete ( UserInfo userToDelete ) : void
userToDelete Foretagsplatsen.Api.Entities.UserInfo UserInfo to delete
return void

Delete() public method

Delete an agency user
public Delete ( string username ) : void
username string UserInfo to delete
return void

Get() public method

Get an agency user
public Get ( string username ) : UserInfo
username string Name of agency user to get
return Foretagsplatsen.Api.Entities.UserInfo

List() public method

Get a list of agency users in an agency
public List ( ) : List
return List

Update() public method

Update an agency user
public Update ( UserInfo updatedUserInfo ) : void
updatedUserInfo Foretagsplatsen.Api.Entities.UserInfo UserInfo to update agency user with
return void