/// <summary> /// Updates license template properties. See NetLicensingAPI JavaDoc for details: /// http://netlicensing.labs64.com/javadoc/v2/com/labs64/netlicensing/core/service/LicenseTemplateService.html /// </summary> public static LicenseTemplate update(Context context, String number, LicenseTemplate updateLicenseTemplate) { netlicensing output = NetLicensingAPI.request(context, NetLicensingAPI.Method.POST, Constants.LicenseTemplate.ENDPOINT_PATH + "/" + number, updateLicenseTemplate.ToDictionary()); return new LicenseTemplate(output.items.item[0]); }
/// <summary> /// Creates new license template object with given properties. See NetLicensingAPI JavaDoc for details: /// http://netlicensing.labs64.com/javadoc/v2/com/labs64/netlicensing/core/service/LicenseTemplateService.html /// </summary> public static LicenseTemplate create(Context context, String productModuleNumber, LicenseTemplate newLicenseTemplate) { newLicenseTemplate.productModuleNumber = productModuleNumber; netlicensing output = NetLicensingAPI.request(context, NetLicensingAPI.Method.POST, Constants.LicenseTemplate.ENDPOINT_PATH, newLicenseTemplate.ToDictionary()); return new LicenseTemplate(output.items.item[0]); }