Esempio n. 1
0
        /// <inheritdoc/>
        public void LetterSendResult(LetterSendSuccess success, uint letterId)
        {
            var packet = new byte[] { 0xC1, 8, 0xC5, (byte)success, 0, 0, 0, 0 };

            packet.SetIntegerBigEndian(letterId, 4);
            this.connection.Send(packet);
        }
Esempio n. 2
0
 /// <inheritdoc/>
 public void LetterSendResult(LetterSendSuccess success, uint letterId)
 {
     using (var writer = this.connection.StartSafeWrite(0xC1, 8))
     {
         var packet = writer.Span;
         packet[2] = 0xC5;
         packet[3] = (byte)success;
         packet.Slice(4, 4).SetIntegerBigEndian(letterId);
         writer.Commit();
     }
 }
Esempio n. 3
0
        /// <inheritdoc/>
        public void LetterSendResult(LetterSendSuccess success)
        {
            byte length = 1; // TODO

            this.connection.Send(new byte[] { 0xC1, 8, 0xC5, (byte)success, length, 0, 0, 0 });
        }