【文件属性】:
文件名称:WebIM-for-DotNet v1.0.zip
文件大小:1.89MB
文件格式:ZIP
更新时间:2022-08-02 23:01:26
程序插件-其它插件
webim-for-dotnet4开发说明:
====================
webim plugin for dotnet mvc3
Demo
====
Import 'WebimPlugin' Project to Visual Web Developer 2010. (Notice: MVC3 Required)
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 Buddies(string uid);
public IEnumerable BuddiesByIds(string uid, string[] ids);
public WebimRoom findRoom(string roomId);
public IEnumerable Rooms(String uid);
public IEnumerable RoomsByIds(String uid, String[] ids);
public IEnumerable Members(string roomId);
public IEnumerable Notifications(string uid);
public IEnumerable Menu(string uid);
```
Coding WebimModel.cs
-----------------------
implements these methods to access database:
```dotnet
public IEnumerable Histories(string uid, string with, string type = "chat", int limit = 50);
public IEnumerable 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:
[removed][removed]