classes.hrl 841 B

123456789101112131415161718192021222324252627282930313233343536
  1. %%%
  2. %%% #object can be passed to amf:encode
  3. %%%
  4. -type amf0() :: any().
  5. -record(object, {
  6. name :: string(),
  7. members = [] :: list(tuple(atom(), amf0()))
  8. }).
  9. %%%
  10. %%% Next four are packed into #object before amf:encode
  11. %%%
  12. -record('KamfRequest', {
  13. id :: any(),
  14. method :: string(),
  15. args = [] :: list(tuple(atom(), any()))
  16. }).
  17. -record('KamfResponse', {
  18. id :: any(),
  19. success :: boolean(),
  20. result :: any()
  21. }).
  22. -record('KamfMessage', {
  23. id :: any(),
  24. event_type :: string(),
  25. args = [] :: list(tuple(atom(), any()))
  26. }).
  27. -record('KamfFatalError', {
  28. type :: atom(), %% request or message
  29. id :: any(),
  30. reason :: string()
  31. }).