ToICal() public method

Creates an iCal representation of this appointment.
public ToICal ( ) : string
return string
Ejemplo n.º 1
0
        public static void SendNewRequestEmail(Appointment appointment, string toEmailAddresses, string approvalUrl, string declineUrl, string loginUrl)
        {
            if (appointment == null)
            {
                throw new ArgumentNullException("appointment", "appointment must not be null");
            }

            QueueEmail(
                toEmailAddresses,
                GetLocalizedFormattedText("NewRequestSubject.Format", appointment),
                GetLocalizedFormattedText("NewRequestBody.Format", appointment, approvalUrl, declineUrl, loginUrl),
                appointment.ToICal());
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Sends the email indicating to an appointment requestor that their request has been approved.
        /// </summary>
        /// <param name="appointment">The appointment which was approved.</param>
        public static void SendAcceptanceEmail(Appointment appointment)
        {
            if (appointment == null)
            {
                throw new ArgumentNullException("appointment", "appointment must not be null");
            }

            QueueEmail(
                appointment.RequestorEmail,
                GetLocalizedFormattedText("AcceptanceSubject.Format", appointment),
                GetLocalizedFormattedText("AcceptanceBody.Format", appointment),
                appointment.ToICal());
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Sends the email indicating to an appointment requestor that their request has been approved.
        /// </summary>
        /// <param name="appointment">The appointment which was approved.</param>
        public static void SendAcceptanceEmail(Appointment appointment)
        {
            if (appointment == null)
            {
                throw new ArgumentNullException("appointment", "appointment must not be null");
            }

            QueueEmail(
                    appointment.RequestorEmail,
                    GetLocalizedFormattedText("AcceptanceSubject.Format", appointment),
                    GetLocalizedFormattedText("AcceptanceBody.Format", appointment),
                    appointment.ToICal());
        }
Ejemplo n.º 4
0
        public static void SendNewRequestEmail(Appointment appointment, string toEmailAddresses, string approvalUrl, string declineUrl, string loginUrl)
        {
            if (appointment == null)
            {
                throw new ArgumentNullException("appointment", "appointment must not be null");
            }

            QueueEmail(
                toEmailAddresses,
                GetLocalizedFormattedText("NewRequestSubject.Format", appointment),
                GetLocalizedFormattedText("NewRequestBody.Format", appointment, approvalUrl, declineUrl, loginUrl),
                appointment.ToICal());
        }