C# Class Skimur.App.Services.Impl.SubUserBanService

Inheritance: ISubUserBanService
Mostra file Open project: skimur/skimur

Public Methods

Method Description
BanUserFromSub ( System.Guid subId, System.Guid userId, string userName, System.DateTime dateBanned, System.Guid bannedBy, string reasonPrivate, string reasonPublic ) : void
GetBannedUserInSub ( System.Guid subId, System.Guid userId ) : SubUserBan
GetBannedUsersInSub ( System.Guid subId, string userName = null, int skip = null, int take = null ) : SeekedList
IsUserBannedFromSub ( System.Guid subId, System.Guid userId ) : bool
SubUserBanService ( IDbConnectionProvider conn ) : System
UnBanUserFromSub ( System.Guid subId, System.Guid userId ) : void
UpdateSubBanForUser ( System.Guid subId, System.Guid userId, string reason ) : void

Method Details

BanUserFromSub() public method

public BanUserFromSub ( System.Guid subId, System.Guid userId, string userName, System.DateTime dateBanned, System.Guid bannedBy, string reasonPrivate, string reasonPublic ) : void
subId System.Guid
userId System.Guid
userName string
dateBanned System.DateTime
bannedBy System.Guid
reasonPrivate string
reasonPublic string
return void

GetBannedUserInSub() public method

public GetBannedUserInSub ( System.Guid subId, System.Guid userId ) : SubUserBan
subId System.Guid
userId System.Guid
return SubUserBan

GetBannedUsersInSub() public method

public GetBannedUsersInSub ( System.Guid subId, string userName = null, int skip = null, int take = null ) : SeekedList
subId System.Guid
userName string
skip int
take int
return SeekedList

IsUserBannedFromSub() public method

public IsUserBannedFromSub ( System.Guid subId, System.Guid userId ) : bool
subId System.Guid
userId System.Guid
return bool

SubUserBanService() public method

public SubUserBanService ( IDbConnectionProvider conn ) : System
conn IDbConnectionProvider
return System

UnBanUserFromSub() public method

public UnBanUserFromSub ( System.Guid subId, System.Guid userId ) : void
subId System.Guid
userId System.Guid
return void

UpdateSubBanForUser() public method

public UpdateSubBanForUser ( System.Guid subId, System.Guid userId, string reason ) : void
subId System.Guid
userId System.Guid
reason string
return void