mirror of
https://github.com/chylex/Minecraft-Phantom-Panel.git
synced 2024-11-22 08:42:44 +01:00
16 lines
467 B
C#
16 lines
467 B
C#
using System.Collections.Immutable;
|
|
using MemoryPack;
|
|
using Phantom.Common.Data.Java;
|
|
using Phantom.Utils.Rpc.Message;
|
|
|
|
namespace Phantom.Common.Messages.ToServer;
|
|
|
|
[MemoryPackable]
|
|
public sealed partial record AdvertiseJavaRuntimesMessage(
|
|
[property: MemoryPackOrder(0)] ImmutableArray<TaggedJavaRuntime> Runtimes
|
|
) : IMessageToServer {
|
|
public Task<NoReply> Accept(IMessageToServerListener listener) {
|
|
return listener.HandleAdvertiseJavaRuntimes(this);
|
|
}
|
|
}
|