/// <summary> /// Updates licensee properties. See LmBoxAPI JavaDoc for details: /// http://lmbox.labs64.com/javadoc/index.html?com/labs64/lmbox/core/service/LicenseeService.html /// </summary> public static Licensee update(Context context, String number, Licensee updateLicensee) { updateLicensee.number = number; lmbox output = LmBoxAPI.request(context, LmBoxAPI.Method.POST, Constants.Licensee.ENDPOINT_PATH + "/" + number, updateLicensee.ToDictionary()); return new Licensee(output.items[0]); }
/// <summary> /// Creates new licensee object with given properties. See LmBoxAPI JavaDoc for details: /// http://lmbox.labs64.com/javadoc/index.html?com/labs64/lmbox/core/service/LicenseeService.html /// </summary> public static Licensee create(Context context, String productNumber, Licensee newLicensee) { newLicensee.productNumber = productNumber; lmbox output = LmBoxAPI.request(context, LmBoxAPI.Method.POST, Constants.Licensee.ENDPOINT_PATH, newLicensee.ToDictionary()); return new Licensee(output.items[0]); }