コード例 #1
0
 public ModerationModule(LoggingService logging, PublisherService publisher, UpdateService update, UserService user,
                         DatabaseService database)
 {
     _logging   = logging;
     _publisher = publisher;
     _update    = update;
     _user      = user;
     _database  = database;
 }
コード例 #2
0
 public async Task <bool> MessageRecievedAsync(uint length, string name)
 {
     return(await UserService.MessageRecievedAsync(length, name, this));
 }
コード例 #3
0
 public async Task UpdateUserAsync()
 {
     await UserService.UpdateUserAsync(this);
 }
コード例 #4
0
 public async Task <MemoryStream> DrawRankImageAsync(uint rank, string avatarUrl)
 {
     return(await GraphicsHelper.DrawRankImageAsync(Level, Name, rank, ProfileTheme, UserService.CalculateExpBar(Level, Exp), avatarUrl));
 }