initial commit
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
using MessagePack;
|
||||
|
||||
namespace Pulsar.Common.Models
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class Drive
|
||||
{
|
||||
[Key(1)]
|
||||
public string DisplayName { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public string RootDirectory { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using MessagePack;
|
||||
|
||||
namespace Pulsar.Common.Models
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class FileChunk
|
||||
{
|
||||
[Key(1)]
|
||||
public long Offset { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public byte[] Data { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Enums;
|
||||
using System;
|
||||
|
||||
namespace Pulsar.Common.Models
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class FileSystemEntry
|
||||
{
|
||||
[Key(1)]
|
||||
public FileType EntryType { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public long Size { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public DateTime LastAccessTimeUtc { get; set; }
|
||||
|
||||
[Key(5)]
|
||||
public ContentType? ContentType { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Pulsar.Common.Messages.Other;
|
||||
|
||||
namespace Pulsar.Common.Models
|
||||
{
|
||||
public class KematianZipMessage : IMessage
|
||||
{
|
||||
public byte[] ZipFile { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using MessagePack;
|
||||
|
||||
namespace Pulsar.Common.Models
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class Process
|
||||
{
|
||||
[Key(1)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public int Id { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public string MainWindowTitle { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public int? ParentId { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using MessagePack;
|
||||
|
||||
namespace Pulsar.Common.Models.Query.Browsers
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class QueryBrowsers
|
||||
{
|
||||
[Key(1)]
|
||||
public string Location { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public string Browser { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using MessagePack;
|
||||
|
||||
namespace Pulsar.Common.Models
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class RecoveredAccount
|
||||
{
|
||||
[Key(1)]
|
||||
public string Username { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public string Password { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public string Url { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public string Application { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
using MessagePack;
|
||||
|
||||
namespace Pulsar.Common.Models
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class RegSeekerMatch
|
||||
{
|
||||
[Key(1)]
|
||||
public string Key { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public RegValueData[] Data { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public bool HasSubKeys { get; set; }
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return $"({Key}:{Data})";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using Microsoft.Win32;
|
||||
using MessagePack;
|
||||
|
||||
namespace Pulsar.Common.Models
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class RegValueData
|
||||
{
|
||||
[Key(1)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public RegistryValueKind Kind { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public byte[] Data { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Enums;
|
||||
|
||||
namespace Pulsar.Common.Models
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class StartupItem
|
||||
{
|
||||
[Key(1)]
|
||||
public string Name { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public string Path { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public StartupType Type { get; set; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
using MessagePack;
|
||||
using Pulsar.Common.Enums;
|
||||
|
||||
namespace Pulsar.Common.Models
|
||||
{
|
||||
[MessagePackObject]
|
||||
public class TcpConnection
|
||||
{
|
||||
[Key(1)]
|
||||
public string ProcessName { get; set; }
|
||||
|
||||
[Key(2)]
|
||||
public string LocalAddress { get; set; }
|
||||
|
||||
[Key(3)]
|
||||
public ushort LocalPort { get; set; }
|
||||
|
||||
[Key(4)]
|
||||
public string RemoteAddress { get; set; }
|
||||
|
||||
[Key(5)]
|
||||
public ushort RemotePort { get; set; }
|
||||
|
||||
[Key(6)]
|
||||
public ConnectionState State { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user