using System.Collections.Generic;

namespace AyaNova.Api.ControllerHelpers
{
    internal static class UserTranslationIdFromContext
    {
        internal static long Id(IDictionary<object, object> HttpContextItems)
        {
            long? l = (long?)HttpContextItems["AY_TRANSLATION_ID"];
            if (l == null)
                return AyaNova.Util.ServerBootConfig.AYANOVA_DEFAULT_TRANSLATION_ID;
            return (long)l;
        }
    }
}//eons