Exemple #1
0
        public async Task <IEnumerable <Act> > GetActsAsync(IAuthenticationScope authenticationScope)
        {
            var mapper = new ActMapper();

            using (var client = CreateClient(authenticationScope))
            {
                var actIndex = await client.GetActIndexAsync();

                return(mapper.Map(actIndex.Acts));
            }
        }
Exemple #2
0
        public async Task <Act> GetActAsync(IAuthenticationScope authenticationScope, ActId actId)
        {
            var mapper     = new ActMapper();
            var actIdIndex = (byte)actId;

            using (var client = CreateClient(authenticationScope))
            {
                var act = await client.GetActAsync(actIdIndex);

                return(mapper.Map(act));
            }
        }