C# Class Visual.UserService

Inheritance: IUserService
Datei anzeigen Open project: 23/23-api-dotnet

Public Methods

Method Description
Create ( string email, string username = null, string password = null, string fullName = null, Timezone timezone = Timezone.CET, bool siteAdmin = false ) : int?

Create a user specified by an e-mail address, username, password, full name, timezone and site admin rigts specification

Get ( int userId ) : User
GetList ( ) : List

Returns a list of users by default parameters

GetList ( UserListParameters requestParameters ) : List

Returns a list of users by specific parameters

GetLoginToken ( int userId, string returnUrl = "/" ) : Session
Update ( int userId, string email = null, string username = null, string password = null, string fullName = null, Timezone timezone = null, bool siteAdmin = false ) : bool?
UserService ( IApiProvider provider ) : System

Method Details

Create() public method

Create a user specified by an e-mail address, username, password, full name, timezone and site admin rigts specification
public Create ( string email, string username = null, string password = null, string fullName = null, Timezone timezone = Timezone.CET, bool siteAdmin = false ) : int?
email string
username string
password string
fullName string
timezone Timezone
siteAdmin bool
return int?

Get() public method

public Get ( int userId ) : User
userId int
return Visual.Domain.User

GetList() public method

Returns a list of users by default parameters
public GetList ( ) : List
return List

GetList() public method

Returns a list of users by specific parameters
public GetList ( UserListParameters requestParameters ) : List
requestParameters UserListParameters
return List

GetLoginToken() public method

public GetLoginToken ( int userId, string returnUrl = "/" ) : Session
userId int
returnUrl string
return Visual.Domain.Session

Update() public method

public Update ( int userId, string email = null, string username = null, string password = null, string fullName = null, Timezone timezone = null, bool siteAdmin = false ) : bool?
userId int
email string
username string
password string
fullName string
timezone Timezone
siteAdmin bool
return bool?

UserService() public method

public UserService ( IApiProvider provider ) : System
provider IApiProvider
return System