ProtocolUser.lua 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. --------------------------------
  2. -- @module ProtocolUser
  3. -- @extend PluginProtocol
  4. -- @parent_module plugin
  5. --------------------------------
  6. -- brief config the application info<br>
  7. -- param devInfo This parameter is the info of aplication,<br>
  8. -- different plugin have different format<br>
  9. -- warning Must invoke this interface before other interfaces.<br>
  10. -- And invoked only once.
  11. -- @function [parent=#ProtocolUser] configDeveloperInfo
  12. -- @param self
  13. -- @param #map_table devInfo
  14. --------------------------------
  15. --
  16. -- @function [parent=#ProtocolUser] isLoggedIn
  17. -- @param self
  18. -- @return bool#bool ret (return value: bool)
  19. --------------------------------
  20. -- brief Get session ID<br>
  21. -- return If user logined, return value is session ID;<br>
  22. -- else return value is empty string.
  23. -- @function [parent=#ProtocolUser] getSessionID
  24. -- @param self
  25. -- @return string#string ret (return value: string)
  26. --------------------------------
  27. -- brief get Access Token
  28. -- @function [parent=#ProtocolUser] getAccessToken
  29. -- @param self
  30. -- @return string#string ret (return value: string)
  31. return nil