Example #1
0
 public void Execute(State state)
 {
     Dictionary<string, object> data = new Dictionary<string, object>() {
         {"name", Constants.ENDPOINT_UPDATE},
         {"data", new Dictionary<string, object>() {
             {"ids", state.customerIds},
             {"project_id", state.projectToken},
             {"properties", (properties != null) ? properties : new Dictionary<string, object>()}
         }}
     };
     state.QueueCommand(Json.Serialize(data));
 }
Example #2
0
 public void Execute(State state)
 {
     Dictionary<string, object> data = new Dictionary<string, object>() {
         {"name", Constants.ENDPOINT_TRACK},
         {"data", new Dictionary<string, object>() {
             {"customer_ids", state.customerIds},
             {"project_id", state.projectToken},
             {"type", eventType},
             {"properties", (properties != null) ? properties : new Dictionary<string, object>()},
             {"local_timestamp", timestamp}
         }}
     };
     state.QueueCommand(Json.Serialize(data));
 }