Esempio n. 1
0
    public static int get_UserName(IntPtr l)
    {
        int result;

        try
        {
            ChatUserCompactInfo chatUserCompactInfo = (ChatUserCompactInfo)LuaObject.checkSelf(l);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, chatUserCompactInfo.UserName);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 2
0
    public static int set_UserId(IntPtr l)
    {
        int result;

        try
        {
            ChatUserCompactInfo chatUserCompactInfo = (ChatUserCompactInfo)LuaObject.checkSelf(l);
            string userId;
            LuaObject.checkType(l, 2, out userId);
            chatUserCompactInfo.UserId = userId;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 3
0
    public static int set_HeadIcon(IntPtr l)
    {
        int result;

        try
        {
            ChatUserCompactInfo chatUserCompactInfo = (ChatUserCompactInfo)LuaObject.checkSelf(l);
            int headIcon;
            LuaObject.checkType(l, 2, out headIcon);
            chatUserCompactInfo.HeadIcon = headIcon;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 4
0
    public static int set_IsOnline(IntPtr l)
    {
        int result;

        try
        {
            ChatUserCompactInfo chatUserCompactInfo = (ChatUserCompactInfo)LuaObject.checkSelf(l);
            bool isOnline;
            LuaObject.checkType(l, 2, out isOnline);
            chatUserCompactInfo.IsOnline = isOnline;
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }
Esempio n. 5
0
    public static int constructor(IntPtr l)
    {
        int result;

        try
        {
            ProChatUserCompactInfo userInfo;
            LuaObject.checkType <ProChatUserCompactInfo>(l, 2, out userInfo);
            ChatUserCompactInfo o = new ChatUserCompactInfo(userInfo);
            LuaObject.pushValue(l, true);
            LuaObject.pushValue(l, o);
            result = 2;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }