Aura.Msgr.Network.Send.YouGotNote C# (CSharp) Method

YouGotNote() public static method

Sends note to client.
public static YouGotNote ( MsgrClient client, Note note ) : void
client MsgrClient
note Note
return void
		public static void YouGotNote(MsgrClient client, Note note)
		{
			var packet = new Packet(Op.Msgr.YouGotNote, 0);

			packet.PutLong(note.Id);
			packet.PutString(note.FromCharacterName);
			packet.PutString(note.FromServer);

			client.Send(packet);
		}

Usage Example

コード例 #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);
            }
        }