Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Namespace Dofus.Network.Types.Secure
- Public Class TrustCertificate
- Public Id As UInteger = 0
- Public Hash As String = String.Empty
- Public ProtocolId As UInteger = 377
- Public Function TrustCertificate()
- Return Me
- End Function
- Public Function getTypeId() As UInteger
- Return ProtocolId
- End Function
- Public Function initTrustCertificate(ByVal Param1 As UInteger, ByVal Param2 As String)
- Me.id = Param1
- Me.hash = Param2
- Return Me
- End Function
- Public Function reset()
- Me.id = 0
- Me.hash = ""
- Return Me
- End Function
- Public Function serialize(ByVal param1 As Dofus.DofusWriter)
- Me.serializeAs_TrustCertificate(param1)
- Return Me
- End Function
- Public Function serializeAs_TrustCertificate(ByVal param1 As Dofus.DofusWriter)
- If (Me.id < 0) Then
- console.writeline("Forbidden value (" + Me.id + ") on element id.")
- End If
- param1.WriteInt32(Me.Id)
- param1.WriteString(Hash)
- Return Me
- End Function
- Public Function deserialize(ByVal param1 As Dofus.DofusReader)
- Me.deserializeAs_TrustCertificate(param1)
- Return Me
- End Function
- Public Function deserializeAs_TrustCertificate(ByVal param1 As Dofus.DofusReader)
- Me.id = Param1.readInt()
- If (Me.id < 0) Then
- console.writeline("Forbidden value (" + Me.id + ") on element of TrustCertificate.id.")
- End If
- Me.hash = param1.readUTF()
- Return Me
- End Function
- End Class
- End Namespace
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement