/// <summary> /// Updates product module properties. See NetLicensingAPI JavaDoc for details: /// http://netlicensing.labs64.com/javadoc/v2/com/labs64/netlicensing/core/service/ProductModuleService.html /// </summary> public static ProductModule update(Context context, String number, ProductModule updateProductModule) { updateProductModule.number = number; netlicensing output = NetLicensingAPI.request(context, NetLicensingAPI.Method.POST, Constants.ProductModule.ENDPOINT_PATH + "/" + number, updateProductModule.ToDictionary()); return new ProductModule(output.items.item[0]); }
/// <summary> /// Creates new ProductModel object with given properties. See NetLicensingAPI JavaDoc for details: /// http://netlicensing.labs64.com/javadoc/v2/com/labs64/netlicensing/core/service/ProductModuleService.html /// </summary> public static ProductModule create(Context context, String productNumber, ProductModule newProductModule) { newProductModule.productNumber = productNumber; netlicensing output = NetLicensingAPI.request(context, NetLicensingAPI.Method.POST, Constants.ProductModule.ENDPOINT_PATH, newProductModule.ToDictionary()); return new ProductModule(output.items.item[0]); }