C# Класс Skimur.App.Services.Impl.SubService

Наследование: ISubService
Показать файл Открыть проект

Открытые методы

Метод Описание
DeleteSub ( System.Guid subId ) : void
GetAllSubs ( string searchText = null, SubsSortBy sortBy = SubsSortBy.Relevance, bool nsfw = null, int skip = null, int take = null ) : SeekedList
GetDefaultSubs ( ) : List
GetRandomSub ( bool nsfw = null ) : Guid?
GetSubById ( System.Guid id ) : Sub
GetSubByName ( string name ) : Sub
GetSubsByIds ( List ids ) : List
GetSubscribedSubsForUser ( System.Guid userId ) : List
InsertSub ( Sub sub ) : void
IsUserSubscribedToSub ( System.Guid userId, System.Guid subId ) : bool
SubService ( IDbConnectionProvider conn, IMapper mapper ) : System
SubscribeToSub ( System.Guid userId, System.Guid subId ) : void
UnSubscribeToSub ( System.Guid userId, System.Guid subId ) : void
UpdateNumberOfSubscribers ( System.Guid subId, ulong &totalNumber ) : void
UpdateSub ( Sub sub ) : void

Описание методов

DeleteSub() публичный Метод

public DeleteSub ( System.Guid subId ) : void
subId System.Guid
Результат void

GetAllSubs() публичный Метод

public GetAllSubs ( string searchText = null, SubsSortBy sortBy = SubsSortBy.Relevance, bool nsfw = null, int skip = null, int take = null ) : SeekedList
searchText string
sortBy SubsSortBy
nsfw bool
skip int
take int
Результат SeekedList

GetDefaultSubs() публичный Метод

public GetDefaultSubs ( ) : List
Результат List

GetRandomSub() публичный Метод

public GetRandomSub ( bool nsfw = null ) : Guid?
nsfw bool
Результат Guid?

GetSubById() публичный Метод

public GetSubById ( System.Guid id ) : Sub
id System.Guid
Результат Sub

GetSubByName() публичный Метод

public GetSubByName ( string name ) : Sub
name string
Результат Sub

GetSubsByIds() публичный Метод

public GetSubsByIds ( List ids ) : List
ids List
Результат List

GetSubscribedSubsForUser() публичный Метод

public GetSubscribedSubsForUser ( System.Guid userId ) : List
userId System.Guid
Результат List

InsertSub() публичный Метод

public InsertSub ( Sub sub ) : void
sub Sub
Результат void

IsUserSubscribedToSub() публичный Метод

public IsUserSubscribedToSub ( System.Guid userId, System.Guid subId ) : bool
userId System.Guid
subId System.Guid
Результат bool

SubService() публичный Метод

public SubService ( IDbConnectionProvider conn, IMapper mapper ) : System
conn IDbConnectionProvider
mapper IMapper
Результат System

SubscribeToSub() публичный Метод

public SubscribeToSub ( System.Guid userId, System.Guid subId ) : void
userId System.Guid
subId System.Guid
Результат void

UnSubscribeToSub() публичный Метод

public UnSubscribeToSub ( System.Guid userId, System.Guid subId ) : void
userId System.Guid
subId System.Guid
Результат void

UpdateNumberOfSubscribers() публичный Метод

public UpdateNumberOfSubscribers ( System.Guid subId, ulong &totalNumber ) : void
subId System.Guid
totalNumber ulong
Результат void

UpdateSub() публичный Метод

public UpdateSub ( Sub sub ) : void
sub Sub
Результат void