context: // ===================================================================================================
  //                           _  __     _ _
  //                          | |/ /__ _| | |_ _  _ _ _ __ _
  //                          | ' </ _` | |  _| || | '_/ _` |
  //                          |_|\_\__,_|_|\__|\_,_|_| \__,_|
  //
  // This file is part of the Kaltura Collaborative Media Suite which allows users
  // to do with audio, video, and animation what Wiki platforms allow them to do with
  // text.
  //
  // Copyright (C) 2006-2022  Kaltura Inc.
  //
  // This program is free software: you can redistribute it and/or modify
  // it under the terms of the GNU Affero General Public License as
  // published by the Free Software Foundation, either version 3 of the
  // License, or (at your option) any later version.
  //
  // This program is distributed in the hope that it will be useful,
  // but WITHOUT ANY WARRANTY; without even the implied warranty of
  // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  // GNU Affero General Public License for more details.
  //
  // You should have received a copy of the GNU Affero General Public License
  // along with this program.  If not, see <http://www.gnu.org/licenses/>.
  //
  // @ignore
  // ===================================================================================================
  using System;
  using System.Xml;
  using System.Collections.Generic;
  using Kaltura.Enums;
  using Kaltura.Request;
  using Newtonsoft.Json;
  using Newtonsoft.Json.Linq;
  
  namespace Kaltura.Types
  {
  	public class EmailNotificationDispatchJobData : EventNotificationDispatchJobData
  	{
  		#region Constants
  		public const string FROM_EMAIL = "fromEmail";
  		public const string FROM_NAME = "fromName";
  		public const string TO = "to";
  		public const string CC = "cc";
  		public const string BCC = "bcc";
  		public const string REPLY_TO = "replyTo";
  		public const string PRIORITY = "priority";
  		public const string CONFIRM_READING_TO = "confirmReadingTo";
  		public const string HOSTNAME = "hostname";
  		public const string MESSAGE_ID = "messageID";
  		public const string CUSTOM_HEADERS = "customHeaders";
  		#endregion
  
  		#region Private Fields
  		private string _FromEmail = null;
  		private string _FromName = null;
  		private EmailNotificationRecipientJobData _To;
  		private EmailNotificationRecipientJobData _Cc;
  		private EmailNotificationRecipientJobData _Bcc;
  		private EmailNotificationRecipientJobData _ReplyTo;
  		private EmailNotificationTemplatePriority _Priority = (EmailNotificationTemplatePriority)Int32.MinValue;
  		private string _ConfirmReadingTo = null;
  		private string _Hostname = null;
  		private string _MessageID = null;
  		private IList<KeyValue> _CustomHeaders;
  		#endregion
  
  		#region Properties
  		/// <summary>
  		/// Use FromEmailAsDouble property instead
  		/// </summary>
  		[JsonProperty]
  		public string FromEmail
  		{
  			get { return _FromEmail; }
  			set 
  			{ 
  				_FromEmail = value;
  				OnPropertyChanged("FromEmail");
  			}
  		}
  		/// <summary>
  		/// Use FromNameAsDouble property instead
  		/// </summary>
  		[JsonProperty]
  		public string FromName
  		{
  			get { return _FromName; }
  			set 
  			{ 
  				_FromName = value;
  				OnPropertyChanged("FromName");
  			}
  		}
  		/// <summary>
  		/// Use ToAsDouble property instead
  		/// </summary>
  		[JsonProperty]
  		public EmailNotificationRecipientJobData To
  		{
  			get { return _To; }
  			set 
  			{ 
  				_To = value;
  				OnPropertyChanged("To");
  			}
  		}
  		/// <summary>
  		/// Use CcAsDouble property instead
  		/// </summary>
  		[JsonProperty]
  		public EmailNotificationRecipientJobData Cc
  		{
  			get { return _Cc; }
  			set 
  			{ 
  				_Cc = value;
  				OnPropertyChanged("Cc");
  			}
  		}
  		/// <summary>
  		/// Use BccAsDouble property instead
  		/// </summary>
  		[JsonProperty]
  		public EmailNotificationRecipientJobData Bcc
  		{
  			get { return _Bcc; }
  			set 
  			{ 
  				_Bcc = value;
  				OnPropertyChanged("Bcc");
  			}
  		}
  		/// <summary>
  		/// Use ReplyToAsDouble property instead
  		/// </summary>
  		[JsonProperty]
  		public EmailNotificationRecipientJobData ReplyTo
  		{
  			get { return _ReplyTo; }
  			set 
  			{ 
  				_ReplyTo = value;
  				OnPropertyChanged("ReplyTo");
  			}
  		}
  		/// <summary>
  		/// Use PriorityAsDouble property instead
  		/// </summary>
  		[JsonProperty]
  		public EmailNotificationTemplatePriority Priority
  		{
  			get { return _Priority; }
  			set 
  			{ 
  				_Priority = value;
  				OnPropertyChanged("Priority");
  			}
  		}
  		/// <summary>
  		/// Use ConfirmReadingToAsDouble property instead
  		/// </summary>
  		[JsonProperty]
  		public string ConfirmReadingTo
  		{
  			get { return _ConfirmReadingTo; }
  			set 
  			{ 
  				_ConfirmReadingTo = value;
  				OnPropertyChanged("ConfirmReadingTo");
  			}
  		}
  		/// <summary>
  		/// Use HostnameAsDouble property instead
  		/// </summary>
  		[JsonProperty]
  		public string Hostname
  		{
  			get { return _Hostname; }
  			set 
  			{ 
  				_Hostname = value;
  				OnPropertyChanged("Hostname");
  			}
  		}
  		/// <summary>
  		/// Use MessageIDAsDouble property instead
  		/// </summary>
  		[JsonProperty]
  		public string MessageID
  		{
  			get { return _MessageID; }
  			set 
  			{ 
  				_MessageID = value;
  				OnPropertyChanged("MessageID");
  			}
  		}
  		/// <summary>
  		/// Use CustomHeadersAsDouble property instead
  		/// </summary>
  		[JsonProperty]
  		public IList<KeyValue> CustomHeaders
  		{
  
gt: 			get { return _CustomHeaders; }