Aurora.ScriptEngine.AuroraDotNetEngine.APIs.LSL_Api.llGetNextEmail C# (CSharp) Method

llGetNextEmail() public method

public llGetNextEmail ( string address, string subject ) : void
address string
subject string
return void
        public void llGetNextEmail(string address, string subject)
        {
            if (!ScriptProtection.CheckThreatLevel(ThreatLevel.None, "LSL", m_host, "LSL", m_itemID)) return;

            IEmailModule emailModule = World.RequestModuleInterface<IEmailModule>();
            if (emailModule == null)
            {
                ShoutError("llGetNextEmail: email module not configured");
                return;
            }

            emailModule.GetNextEmailAsync(m_host.UUID, address, subject, email =>
            {
                if (email == null)
                    return;

                m_ScriptEngine.PostScriptEvent(m_itemID, m_host.UUID, "email",
                        new Object[] {
                        new LSL_String(email.time),
                        new LSL_String(email.sender),
                        new LSL_String(email.subject),
                        new LSL_String(email.message),
                        new LSL_Integer(email.numLeft)}
                        );
            }, World);
        }
LSL_Api