|
MessengerYouLike.IMSDK.IMServer
|
|
When using Visual Studio .NET 2005, IMSDK.IMServer can be added as a reference.
When using Visual Studio .NET 2005, IMSDK.IMServer can be added as a reference.
The following steps illustrate how to add IMSDK.IMServer as a reference within Visual Studio .NET 2005
'[Visual Basic]
'This class must Inherit IMServer
Public Class ClsIMServer
Inherits MessengerYouLike.IMSDK.IMServer
'This Function must be implemented when Integrated is set to true
Public Overrides Function NewUserRegistration(ByVal Username As String, ByVal Password As String, ByVal Email As String, ByVal Firstname As String, ByVal Lastname As String) As Boolean
End Function
'This Functon must be implmented when Integrated is set to true
Public Overrides Function VerifyLogin(ByVal Username As String, ByVal password As String) As Integer
End Function
End Class
'[Visual Basic]
Partial Class IMServer
Inherits System.Web.UI.Page
Dim WithEvents IMS As New ClsIMServer
End Class
Partial Class IMServer
Inherits System.Web.UI.Page
Dim WithEvents IMS As New ClsIMServer
Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load
'Secret Key to Encrypt and Decrypt all textual messages
'This should be same in IMClient , if different no communication will take place
IMS.SecretKey = "ABC1234"
'Type of database MSSQL or MSACCESS
'MSSQL is recommended
IMS.DatabaseType = MessengerYouLike.IMSDK.IMServer.DatabaseProviders.MSSQL
'Connection String for the above selected database
IMS.ConnectionString = "server=ServerName;database=MessengerYouLike;uid=sa;pwd=sa"
'Integrated into any other existing system?
'Default is set to false
IMS.Integrated = False
End Sub
End Class
Partial Class IMServer
Inherits System.Web.UI.Page
Dim WithEvents IMS As New ClsIMServer
Protected Sub form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles form1.Load
'Secret Key to Encrypt and Decrypt all textual messages
'This should be same in IMClient , if differnet no communication will take place
IMS.SecretKey = "ABC1234"
'Type of database MSSQL or MSACCESS
'MSSQL is recommended
IMS.DatabaseType = MessengerYouLike.IMSDK.IMServer.DatabaseProviders.MSSQL
'Connection String for the above selected database
IMS.ConnectionString = "server=WAQAR;database=MessengerYouLike;uid=sa;pwd=sa"
'Integrated into any other existing system?
'Default is set to false
IMS.Integrated = False
'check for empty post
If Request.Form.ToString <> "" Then
'Always call this sub on each page load
'This sub will parse all data
IMS.PassData(Request.Form.ToString)
End If
End Sub
End Class