public static void UpdateAction(ActionWeb action, String ApiToken, String ApiServer)
 {
     Factory.GetResponse("RulesEngine/UpdateAction", "action=" + Newtonsoft.Json.JsonConvert.SerializeObject(action) + "", ApiToken, ApiServer);
 }
 public static ActionWeb AddAction(ActionWeb action, String ApiToken, String ApiServer)
 {
     return(Newtonsoft.Json.JsonConvert.DeserializeObject <ActionWeb>(Factory.GetResponse("RulesEngine/AddAction", "action=" + Newtonsoft.Json.JsonConvert.SerializeObject(action, serializerSettings) + "", ApiToken, ApiServer), new JsonSerializerSettings {
         NullValueHandling = NullValueHandling.Ignore
     }));
 }
 public static ActionWeb AddAction(ActionWeb action, String ApiToken, String ApiServer)
 {
     return Newtonsoft.Json.JsonConvert.DeserializeObject<ActionWeb>(Factory.GetResponse("RulesEngine/AddAction", "action=" + Newtonsoft.Json.JsonConvert.SerializeObject(action) + "", ApiToken, ApiServer), new JsonSerializerSettings { NullValueHandling = NullValueHandling.Ignore });
 }
 public static void UpdateAction(ActionWeb action, String ApiToken, String ApiServer)
 {
     Factory.GetResponse("RulesEngine/UpdateAction", "action=" + Newtonsoft.Json.JsonConvert.SerializeObject(action, serializerSettings) + "", ApiToken, ApiServer);
 }
 /// <summary>
 /// Use this call to update an action
 /// </summary>
 /// <param name="action">The details of the updated action. pkActionId and fkConditionId must be unchanged original.</param>
 public void UpdateAction(ActionWeb action)
 {
     GetResponse("RulesEngine/UpdateAction", "action=" + System.Net.WebUtility.UrlEncode(JsonFormatter.ConvertToJson(action)) + "");
 }
        /// <summary>
        /// Use this call to add a new action to a condition node.
        /// </summary>
        /// <param name="action">An object describing the action to add.</param>
        /// <returns>The action object, complete with action id.</returns>
        public ActionWeb AddAction(ActionWeb action)
        {
            var response = GetResponse("RulesEngine/AddAction", "action=" + System.Net.WebUtility.UrlEncode(JsonFormatter.ConvertToJson(action)) + "");

            return(JsonFormatter.ConvertFromJson <ActionWeb>(response));
        }
Exemple #7
0
 /// <summary>
 /// Use this call to update an action
 /// </summary>
 /// <param name="action">The details of the updated action. pkActionId and fkConditionId must be unchanged original.</param>
 public void UpdateAction(ActionWeb action)
 {
     GetResponse("RulesEngine/UpdateAction", "action=" + JsonFormatter.ConvertToJson(action) + "");
 }
Exemple #8
0
        /// <summary>
        /// Use this call to add a new action to a condition node.
        /// </summary>
        /// <param name="action">An object describing the action to add.</param>
        /// <returns>The action object, complete with action id.</returns>
        public ActionWeb AddAction(ActionWeb action)
        {
            var response = GetResponse("RulesEngine/AddAction", "action=" + JsonFormatter.ConvertToJson(action) + "");

            return(JsonFormatter.ConvertFromJson <ActionWeb>(response));
        }