public static int get_m_playerHeroCommentEntries(IntPtr l)
    {
        int result;

        try
        {
            DataSectionComment dataSectionComment = (DataSectionComment)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, dataSectionComment.m_playerHeroCommentEntries);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int ClearInitedData(IntPtr l)
    {
        int result;

        try
        {
            DataSectionComment dataSectionComment = (DataSectionComment)LuaObject.checkSelf(l);
            dataSectionComment.ClearInitedData();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            DataSectionComment o = new DataSectionComment();
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int InitPlayerHeroCommentEntry(IntPtr l)
    {
        int result;

        try
        {
            DataSectionComment     dataSectionComment = (DataSectionComment)LuaObject.checkSelf(l);
            PlayerHeroCommentEntry playerCommentEntry;
            LuaObject.checkType <PlayerHeroCommentEntry>(l, 2, out playerCommentEntry);
            dataSectionComment.InitPlayerHeroCommentEntry(playerCommentEntry);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int set_m_bannedTime(IntPtr l)
    {
        int result;

        try
        {
            DataSectionComment dataSectionComment = (DataSectionComment)LuaObject.checkSelf(l);
            DateTime           bannedTime;
            LuaObject.checkValueType <DateTime>(l, 2, out bannedTime);
            dataSectionComment.m_bannedTime = bannedTime;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int FindPlayerHeroCommentEntry(IntPtr l)
    {
        int result;

        try
        {
            DataSectionComment dataSectionComment = (DataSectionComment)LuaObject.checkSelf(l);
            int heroId;
            LuaObject.checkType(l, 2, out heroId);
            PlayerHeroCommentEntry o = dataSectionComment.FindPlayerHeroCommentEntry(heroId);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int IsBanned(IntPtr l)
    {
        int result;

        try
        {
            DataSectionComment dataSectionComment = (DataSectionComment)LuaObject.checkSelf(l);
            DateTime           currentTime;
            LuaObject.checkValueType <DateTime>(l, 2, out currentTime);
            bool b = dataSectionComment.IsBanned(currentTime);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, b);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int CommentHero(IntPtr l)
    {
        int result;

        try
        {
            DataSectionComment dataSectionComment = (DataSectionComment)LuaObject.checkSelf(l);
            int heroId;
            LuaObject.checkType(l, 2, out heroId);
            HeroCommentEntry commentEntry;
            LuaObject.checkType <HeroCommentEntry>(l, 3, out commentEntry);
            dataSectionComment.CommentHero(heroId, commentEntry);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
    public static int PraiseHeroComment(IntPtr l)
    {
        int result;

        try
        {
            DataSectionComment dataSectionComment = (DataSectionComment)LuaObject.checkSelf(l);
            int heroId;
            LuaObject.checkType(l, 2, out heroId);
            ulong commentInstanceId;
            LuaObject.checkType(l, 3, out commentInstanceId);
            dataSectionComment.PraiseHeroComment(heroId, commentInstanceId);
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }