/Note.j

http://github.com/chollier/Edgar · Unknown · 33 lines · 28 code · 5 blank · 0 comment · 0 complexity · 38b8b517aeb450514c5d766253cab5ac MD5 · raw file

  1. @import <CappuccinoResource/CRBase.j>
  2. @implementation Note : CappuccinoResource
  3. {
  4. CPNumber client_id @accessors;
  5. CPNumber staff_id @accessors;
  6. CPNumber note @accessors;
  7. CPString type @accessors;
  8. CPNumber code_session_id @accessors;
  9. CPNumber plateau_session_id @accessors;
  10. CPDate created_at;
  11. CPDate updated_at;
  12. }
  13. -(JSObject)attributes
  14. {
  15. return {
  16. "note": {
  17. "client_id":client_id,
  18. "staff_id":staff_id,
  19. "note":note,
  20. "type":type,
  21. "code_session_id":code_session_id,
  22. "plateau_session_id":plateau_session_id,
  23. "created_at":[created_at toDateString],
  24. "updated_at":[updated_at toDateString]
  25. }
  26. }
  27. }
  28. @end