async Task QuickPurging(int objectId, int entryID) { parameter = client.GetParameter(); parameter.Add("cateID", entryID); parameter.Add("objID", objectId); parameter.Add("category", category); Response.Response result = await client.GetConnection().InvokeAsync <Response.Response> ("cmdb.category.quickpurge", parameter); if (result.success == false) { throw new IdoitAPIClientBadResponseException(result.message); } }
async Task Deleting(int objectId, int entryID) { //The return Values as Object from diffrence Classes parameter = client.GetParameter(); parameter.Add("objID", objectId); parameter.Add("cateID", entryID); parameter.Add("category", category); Response.Response result = await client.GetConnection().InvokeAsync <Response.Response> ("cmdb.category.delete", parameter); if (result.success == false) { throw new IdoitAPIClientBadResponseException(result.message); } }
async Task Updating(int objectId, IRequest request) { object data = client.GetData(request); if (data == null) { throw new Exception("Data is missing"); } parameter = client.GetParameter(); parameter.Add("data", data); parameter.Add("objID", objectId); parameter.Add("category", category); Response.Response response = await client.GetConnection().InvokeAsync <Response.Response> ("cmdb.category.update", parameter); if (response.success == false) { throw new IdoitAPIClientBadResponseException(response.message); } }