/// <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, Constants.LicenseTemplate.ENDPOINT_PATH + "/" + 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, Constants.LicenseTemplate.ENDPOINT_PATH, newLicenseTemplate.ToDictionary()); return new LicenseTemplate(output.items[0]); }