OpenCards.Core.Protocol.Client.ClientRedDotNotify.lua 928 B

123456789101112131415161718192021222324252627282930
  1. -- Warning: do not edit this file.
  2. -- 警告: 不要编辑此文件
  3. -- OpenCards.Core, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
  4. -- OpenCards.Core.Protocol.Client.ClientRedDotNotify
  5. local _M = {MessageID = 0x49E9C643,Name = 'OpenCards.Core.Protocol.Client.ClientRedDotNotify'}
  6. _M.__index = _M
  7. function _M.IsSuccess(self)
  8. return self.s2c_code ~= nil and self.s2c_code >= 200 and self.s2c_code <= 299
  9. end
  10. Protocol.Serializer[0x49E9C643] = _M
  11. Protocol.Serializer.StringDefined['OpenCards.Core.Protocol.Client.ClientRedDotNotify'] = _M
  12. function _M.Write(output,data)
  13. Protocol.Serializer.StringDefined['DeepCore.Protocol.Notify'].Write(output, data)
  14. output:PutUTF(data.s2c_reddotId)
  15. output:PutBool(data.s2c_status)
  16. end
  17. function _M.Read(input,data)
  18. Protocol.Serializer.StringDefined['DeepCore.Protocol.Notify'].Read(input, data)
  19. data.s2c_reddotId = input:GetUTF()
  20. data.s2c_status = input:GetBool()
  21. end