Beispiel #1
0
 public Response.NewCase CreateCase(string name, string description, string location, bool compound, string investigator, string token)
 {
     string service = "http://" + url + ":" + port + "/nuix-restful-service/svc/v1/cases?token=" + token;
     string method = "POST";
     Request.NewCase newCase = new Request.NewCase();
     newCase.name = name;
     newCase.description = description;
     newCase.location = location;
     newCase.compound = compound;
     newCase.investigator = investigator;
     string data = JsonConvert.SerializeObject(newCase);
     return JsonConvert.DeserializeObject<Response.NewCase>(Call(service, method, data, true));
 }
Beispiel #2
0
        public Response.NewCase CreateCase(string name, string description, string location, bool compound, string investigator, string token)
        {
            string service = "http://" + url + ":" + port + "/nuix-restful-service/svc/v1/cases?token=" + token;
            string method  = "POST";

            Request.NewCase newCase = new Request.NewCase();
            newCase.name         = name;
            newCase.description  = description;
            newCase.location     = location;
            newCase.compound     = compound;
            newCase.investigator = investigator;
            string data = JsonConvert.SerializeObject(newCase);

            return(JsonConvert.DeserializeObject <Response.NewCase>(Call(service, method, data, true)));
        }