注意: NexTalk架构上采用跨域JSONP/WebSocket,所有插件开发包依赖NexTalk消息服务器。您可以本站注册使用我们的在线消息服务器,或购买消息服务器程序版权本地部署。

WebIM-for-DotNet


立即下载 开源代码

开发说明(README)


webim-for-dotnet4
====================

webim plugin for dotnet mvc3

Demo
====

1. Import 'WebimPlugin' Project to Visual Web Developer 2010. (Notice: MVC3 Required)

2. Build and Run

Developer Guide
===============

Create Database
---------------

import install.sql if your database is MySQL


Coding WebimPlugin.cs
-----------------------

implements these methods:

```dotnet

public WebimEndpoint Endpoint();

public IEnumerable<WebimEndpoint> Buddies(string uid);

public IEnumerable<WebimEndpoint> BuddiesByIds(string uid, string[] ids);

public WebimRoom findRoom(string roomId);

public IEnumerable<WebimRoom> Rooms(String uid);

public IEnumerable<WebimRoom> RoomsByIds(String uid, String[] ids);

public IEnumerable<WebimMember> Members(string roomId);

public IEnumerable<WebimNotification> Notifications(string uid);

public IEnumerable<WebimMenu> Menu(string uid);


```

Coding WebimModel.cs
-----------------------

implements these methods to access database:

```dotnet

public IEnumerable<WebimHistory> Histories(string uid, string with, string type = "chat", int limit = 50);

public IEnumerable<WebimHistory> OfflineHistories(string uid, int limit = 50);

public void InsertHistory(string uid, WebimMessage msg);

public void ClearHistories(string uid, string with);

public void OfflineHistoriesReaded(string uid);

public string GetSetting(string uid);

public void SaveSetting(string uid, string data);

```

Coding WebimConfig.cs
----------------------

You should change the WebimConfig.java, and load configurations from database or xml.

Webim Javascript
-----------------------

Insert Javascript code below to web pages that need to display Webim:

	<script type="text/javascript" src="/Webim/Boot"></script> 

购买联系

和他聊下

  • QQ: 554351251
  • 手机: 13777441516
  • 邮箱: sale@nextalk.im

技术支持

和他聊下

  • QQ: 1852861655
  • 手机: 18958095588
  • 邮箱: support@nextalk.im