YouGotNote() public static method

Sends note to client.
public static YouGotNote ( MsgrClient client, Note note ) : void
client MsgrClient
note Note
return void
Exemplo n.º 1
0
        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);
            }
        }