WebIM-for-DotNet v1.0.zip
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<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: [removed][removed]
- 粉丝: 411
- 资源: 1万+
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助