API Docs for: 1.5.0
Show:

File: src/structures/ObjectStateUpdateStruct.js

  1. /* global define */
  2. define(function () {
  3. "use strict";
  4.  
  5. /**
  6. * Returns a structure used to update an Object State. See
  7. * {{#crossLink "ContentService/updateObjectState"}}ContentService.updateObjectState{{/crossLink}}
  8. *
  9. * @class ObjectStateUpdateStruct
  10. * @constructor
  11. */
  12. var ObjectStateUpdateStruct = function () {
  13. this.body = {};
  14. this.body.ObjectStateUpdate = {};
  15.  
  16. this.headers = {};
  17. this.headers.Accept = "application/vnd.ez.api.ObjectState+json";
  18. this.headers["Content-Type"] = "application/vnd.ez.api.ObjectStateUpdate+json";
  19.  
  20. return this;
  21. };
  22.  
  23. return ObjectStateUpdateStruct;
  24.  
  25. });