/// <summary>
 /// Initializes a new instance of the <see cref="CampaignRuleAction" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Parameters">The parameters for the CampaignRuleAction. Required for certain actionTypes..</param>
 /// <param name="ActionType">The action to take on the campaignRuleActionEntities. (required).</param>
 /// <param name="CampaignRuleActionEntities">The list of entities that this action will apply to. (required).</param>
 public CampaignRuleAction(string Id = null, CampaignRuleParameters Parameters = null, ActionTypeEnum?ActionType = null, CampaignRuleActionEntities CampaignRuleActionEntities = null)
 {
     this.Id         = Id;
     this.Parameters = Parameters;
     this.ActionType = ActionType;
     this.CampaignRuleActionEntities = CampaignRuleActionEntities;
 }
コード例 #2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="ReportingTurnAction" /> class.
 /// </summary>
 /// <param name="ActionId">The ID of the action in the bot flow..</param>
 /// <param name="ActionName">The name of the action in the bot flow..</param>
 /// <param name="ActionNumber">The number of the action in the bot flow..</param>
 /// <param name="ActionType">ActionType.</param>
 public ReportingTurnAction(string ActionId = null, string ActionName = null, int?ActionNumber = null, ActionTypeEnum?ActionType = null)
 {
     this.ActionId     = ActionId;
     this.ActionName   = ActionName;
     this.ActionNumber = ActionNumber;
     this.ActionType   = ActionType;
 }
 /// <summary>
 /// Initializes a new instance of the <see cref="DialerCampaignRuleConfigChangeCampaignRuleAction" /> class.
 /// </summary>
 /// <param name="Id">The globally unique identifier for the action.</param>
 /// <param name="Parameters">The parameters to match this action.</param>
 /// <param name="ActionType">The type of this action.</param>
 /// <param name="CampaignRuleActionEntities">CampaignRuleActionEntities.</param>
 public DialerCampaignRuleConfigChangeCampaignRuleAction(string Id = null, Dictionary <string, string> Parameters = null, ActionTypeEnum?ActionType = null, DialerCampaignRuleConfigChangeCampaignRuleActionEntities CampaignRuleActionEntities = null)
 {
     this.Id         = Id;
     this.Parameters = Parameters;
     this.ActionType = ActionType;
     this.CampaignRuleActionEntities = CampaignRuleActionEntities;
 }
コード例 #4
0
        /// <summary>
        /// Initializes a new instance of the <see cref="CampaignRuleAction" /> class.
        /// </summary>


        /// <param name="Id">Id.</param>



        /// <param name="Parameters">The parameters for the CampaignRuleAction. Required for certain actionTypes..</param>



        /// <param name="ActionType">The action to take on the campaignRuleActionEntities. (required).</param>



        /// <param name="CampaignRuleActionEntities">The list of entities that this action will apply to. (required).</param>


        public CampaignRuleAction(string Id = null, CampaignRuleParameters Parameters = null, ActionTypeEnum?ActionType = null, CampaignRuleActionEntities CampaignRuleActionEntities = null)
        {
            // to ensure "ActionType" is required (not null)
            if (ActionType == null)
            {
                throw new InvalidDataException("ActionType is a required property for CampaignRuleAction and cannot be null");
            }
            else
            {
                this.ActionType = ActionType;
            }



            // to ensure "CampaignRuleActionEntities" is required (not null)
            if (CampaignRuleActionEntities == null)
            {
                throw new InvalidDataException("CampaignRuleActionEntities is a required property for CampaignRuleAction and cannot be null");
            }
            else
            {
                this.CampaignRuleActionEntities = CampaignRuleActionEntities;
            }



            this.Id = Id;



            this.Parameters = Parameters;
        }
コード例 #5
0
 /// <summary>
 /// Initializes a new instance of the <see cref="CampaignRuleNotificationCampaignRuleActions" /> class.
 /// </summary>
 /// <param name="Id">Id.</param>
 /// <param name="Parameters">Parameters.</param>
 /// <param name="ActionType">ActionType.</param>
 /// <param name="CampaignRuleActionEntities">CampaignRuleActionEntities.</param>
 /// <param name="AdditionalProperties">AdditionalProperties.</param>
 public CampaignRuleNotificationCampaignRuleActions(string Id = null, Dictionary <string, string> Parameters = null, ActionTypeEnum?ActionType = null, CampaignRuleNotificationCampaignRuleActionEntities CampaignRuleActionEntities = null, Object AdditionalProperties = null)
 {
     this.Id         = Id;
     this.Parameters = Parameters;
     this.ActionType = ActionType;
     this.CampaignRuleActionEntities = CampaignRuleActionEntities;
     this.AdditionalProperties       = AdditionalProperties;
 }
コード例 #6
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Action" /> class.
 /// </summary>
 /// <param name="ActionType">The action type (required).</param>
 public Action(ActionTypeEnum?ActionType = default(ActionTypeEnum?))
 {
     // to ensure "ActionType" is required (not null)
     if (ActionType == null)
     {
         throw new InvalidDataException("ActionType is a required property for Action and cannot be null");
     }
     else
     {
         this.ActionType = ActionType;
     }
 }