Diff of /trunk/DefaultAgent/MessageChatManage.cs
Parent Directory
|
Revision Log
|
Patch
| revision 93, Tue Dec 16 05:45:54 2008 UTC | revision 94, Tue Dec 16 10:47:29 2008 UTC | |
|---|---|---|
| # | Line 58 | Line 58 |
| 58 | OnMessage(msg); | OnMessage(msg); |
| 59 | } | } |
| 60 | } | } |
| 61 | ||
| 62 | ||
| 63 | #region Communicate | |
| 64 | ||
| 65 | public Dictionary<UUID, FriendInfo> GetMyFrinds() | |
| 66 | { | |
| 67 | Dictionary<UUID,FriendInfo> friends = new Dictionary<UUID,FriendInfo>(); | |
| 68 | Client.Friends.FriendList.ForEach(delegate(FriendInfo f) | |
| 69 | { | |
| 70 | if (!friends.ContainsKey(f.UUID)) | |
| 71 | friends.Add(f.UUID, f); | |
| 72 | }); | |
| 73 | ||
| 74 | return friends; | |
| 75 | } | |
| 76 | ||
| 77 | public void SendMessage2Friend(string message,UUID friendid) | |
| 78 | { | |
| 79 | Client.Self.InstantMessage(friendid, message); | |
| 80 | } | |
| 81 | ||
| 82 | #endregion | |
| 83 | } | } |
| 84 | } | } |
|
||||||||
| ViewVC Help | |
| Powered by ViewVC 1.0.0 |

