YouGotNote() public static method

Sends note to client.
public static YouGotNote ( MsgrClient client, Note note ) : void
client MsgrClient
note Note
return void
コード例 #1
0
ファイル: MsgrHandlers.cs プロジェクト: anjhony6778/aura
        public void CheckNotes(MsgrClient client, Packet packet)
        {
            // Id of the newest note the client knows about
            var noteId = packet.GetLong();

            var note = MsgrServer.Instance.Database.GetLatestUnreadNote(client.User.FullName, noteId);

            if (note != null)
            {
                Send.YouGotNote(client, note);
            }
        }