Esempio n. 1
0
        public async Task <IResult> ListCharactersAsync(ulong callerId)
        {
            var characters = await _provider.GetAllCharactersAsync(callerId);

            return(GenericResult.Generic(string.Join("\n", characters.OrderBy(x => x.Id).Select(x => x.Name))));
        }
Esempio n. 2
0
        /// <summary>
        /// Returns a result containing a string of effects created by the given user.
        /// </summary>
        /// <param name="id">The user identifier to show effects created by.</param>
        /// <returns>A GenericResult with a Message property containing the user's created effects.</returns>
        public async Task <IResult> ListCreatedEffectsAsync(ulong callerId)
        {
            var effects = await _effectProvider.GetUserEffectsAsync(callerId);

            return(GenericResult.Generic(string.Join("\n", effects.OrderBy(x => x.Id).Select(x => x.Name))));
        }