Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1. Namespace Dofus.Network.Types.Secure
  2. Public Class TrustCertificate
  3. Public Id As UInteger = 0
  4. Public Hash As String = String.Empty
  5. Public ProtocolId As UInteger = 377
  6. Public Function TrustCertificate()
  7.  
  8. Return Me
  9. End Function
  10. Public Function getTypeId() As UInteger
  11.  
  12. Return ProtocolId
  13. End Function
  14. Public Function initTrustCertificate(ByVal Param1 As UInteger, ByVal Param2 As String)
  15. Me.id = Param1
  16. Me.hash = Param2
  17.  
  18. Return Me
  19. End Function
  20. Public Function reset()
  21. Me.id = 0
  22. Me.hash = ""
  23.  
  24. Return Me
  25. End Function
  26. Public Function serialize(ByVal param1 As Dofus.DofusWriter)
  27. Me.serializeAs_TrustCertificate(param1)
  28.  
  29. Return Me
  30. End Function
  31. Public Function serializeAs_TrustCertificate(ByVal param1 As Dofus.DofusWriter)
  32. If (Me.id < 0) Then
  33.  
  34. console.writeline("Forbidden value (" + Me.id + ") on element id.")
  35. End If
  36. param1.WriteInt32(Me.Id)
  37. param1.WriteString(Hash)
  38.  
  39.  
  40. Return Me
  41. End Function
  42. Public Function deserialize(ByVal param1 As Dofus.DofusReader)
  43. Me.deserializeAs_TrustCertificate(param1)
  44.  
  45. Return Me
  46. End Function
  47. Public Function deserializeAs_TrustCertificate(ByVal param1 As Dofus.DofusReader)
  48. Me.id = Param1.readInt()
  49. If (Me.id < 0) Then
  50.  
  51. console.writeline("Forbidden value (" + Me.id + ") on element of TrustCertificate.id.")
  52. End If
  53. Me.hash = param1.readUTF()
  54.  
  55. Return Me
  56. End Function
  57. End Class
  58. End Namespace
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement