ejel
Class EmailSentEventArgs

java.lang.Object
  extended by ejel.EventArgs
      extended by ejel.EmailSentEventArgs

public class EmailSentEventArgs
extends EventArgs

Sent as a part of the EventID.EID_SENT params after the email is sent successfully


Constructor Summary
EmailSentEventArgs(int acntIndex, int rcptIndex, Recipient[] rcpts)
          EmailSentEventArgs constructor
 
Method Summary
 int getAccountIndex()
          Gets the index of the EmailAccount object in the main accounts list
 Recipient getRecipientAt(int index)
          Gets the Recipient object index specified by the index param
 int getRecipientIndex()
          Gets the Recipient object index in the main recipients list
 int getRecipientsCount()
          Gets the Recipient objects count in the array to which the email will be sent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EmailSentEventArgs

public EmailSentEventArgs(int acntIndex,
                          int rcptIndex,
                          Recipient[] rcpts)
EmailSentEventArgs constructor

Parameters:
acntIndex - The EmailAccount object index in the main accounts list
rcptIndex - The Recipient object index in the main recipients list
rcpts - The Recipient array objects to who the email will be sent
Method Detail

getAccountIndex

public int getAccountIndex()
Gets the index of the EmailAccount object in the main accounts list

Returns:
The index of the EmailAccount object in the main accounts list

getRecipientIndex

public int getRecipientIndex()
Gets the Recipient object index in the main recipients list

Returns:
The Recipient object index in the main recipients list

getRecipientsCount

public int getRecipientsCount()
Gets the Recipient objects count in the array to which the email will be sent

Returns:
he Recipient objects count in the array to which the email will be sent

getRecipientAt

public Recipient getRecipientAt(int index)
                         throws java.lang.IndexOutOfBoundsException
Gets the Recipient object index specified by the index param

Parameters:
index - Index of the Recipient object to be retrieved
Returns:
The Recipient object index specified by the index param
Throws:
java.lang.IndexOutOfBoundsException