Example #1
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CharacterRoleService"/> class.
 /// </summary>
 /// <param name="database">The database.</param>
 /// <param name="servers">The server service.</param>
 /// <param name="discord">The Discord service.</param>
 /// <param name="characters">The character service.</param>
 /// <param name="users">The user service.</param>
 /// <param name="client">The discord client.</param>
 public CharacterRoleService
 (
     CharactersDatabaseContext database,
     ServerService servers,
     DiscordService discord,
     CharacterService characters,
     UserService users,
     IDiscordClient client
 )
 {
     _database   = database;
     _servers    = servers;
     _discord    = discord;
     _characters = characters;
     _users      = users;
     _client     = client;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="CharacterDiscordService"/> class.
 /// </summary>
 /// <param name="characters">The character service.</param>
 /// <param name="users">The user service.</param>
 /// <param name="servers">The server service.</param>
 /// <param name="commands">The command service.</param>
 /// <param name="ownedEntities">The owned entity service.</param>
 /// <param name="discord">The Discord service.</param>
 /// <param name="characterRoles">The character role service.</param>
 public CharacterDiscordService
 (
     CharacterService characters,
     UserService users,
     ServerService servers,
     CommandService commands,
     OwnedEntityService ownedEntities,
     DiscordService discord,
     CharacterRoleService characterRoles
 )
 {
     _characters     = characters;
     _users          = users;
     _servers        = servers;
     _commands       = commands;
     _ownedEntities  = ownedEntities;
     _discord        = discord;
     _characterRoles = characterRoles;
 }