/// <summary> /// Sends PacketBServerGeneralMessage. /// </summary> /// <param name="s">The session.</param> /// <param name="p">Packet BRequestRetrievePersistentData.</param> /// <param name="t">The server message type.</param> public static void BServerGeneralMessage(Session s, Package p, ServerMessagesTypes t) { PacketBServerGeneralMessage ResponseContent = new PacketBServerGeneralMessage(t); Logger.Debug($"{p.Key}::ExecuteCommand - Execute command: {ResponseContent}"); byte[] Response = ResponseContent.ToByteArray(); Package Package = new Package(p.HeaderXuid, p.HeaderField20, p.HeaderServiceId, p.HeaderField22, PacketTypes.BServerGeneralMessage, 0, Response); byte[] ToSend = Package.ToByteArray(); s.Send(ToSend, 0, ToSend.Length); }
/// <summary> /// Initializes a new instance of the class. /// </summary> /// <param name="type">The message type.</param> public PacketBServerGeneralMessage(ServerMessagesTypes type) { Type = type; }