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