Example #1
0
        /// <summary>
        ///     Gets a reaction from our data store.
        /// </summary>
        /// <param name="reactionId">The reaction id.</param>
        /// <returns>The reaction.</returns>
        public async Task <Reaction> GetAsync(Guid reactionId)
        {
            var reaction = await _reactionRepository.GetAsync(reactionId);

            reaction.ThumbnailUri = await _entityStorageUriService.GetReactionThumbnailAccessUriAsync(reaction.Id);

            reaction.VideoUri = await _entityStorageUriService.GetReactionVideoAccessUriAsync(reaction.Id);

            return(reaction);
        }