Exemple #1
0
        public ComputerInformation GetComputerInformation(BaseClientInformation client)
        {
            var computerInformation = DataTransferProtocolFactory.ExecuteFunction <ComputerInformation>("GetComputerInformation", client.Id);

            computerInformation.Timestamp = computerInformation.Timestamp.ToLocalTime();
            return(computerInformation);
        }
Exemple #2
0
 public ClientConfig GetClientConfig(OnlineClientInformation onlineClientInformation)
 {
     return(DataTransferProtocolFactory.ExecuteFunction <ClientConfig>("GetClientConfig", null,
                                                                       new List <Type>(BuilderPropertyHelper.GetAllBuilderPropertyTypes())
     {
         typeof(ClientConfig)
     },
                                                                       onlineClientInformation.Id));
 }
Exemple #3
0
        public List <DataEntry> GetDataEntries()
        {
            var entries = DataTransferProtocolFactory.ExecuteFunction <List <DataEntry> >("GetDataEntries");

            foreach (var dataEntry in entries)
            {
                dataEntry.Timestamp = dataEntry.Timestamp.ToLocalTime();
            }

            return(entries);
        }
Exemple #4
0
        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);
        }
Exemple #5
0
        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);
        }
Exemple #6
0
 public LocationInfo GetClientLocation(BaseClientInformation client)
 {
     return(DataTransferProtocolFactory.ExecuteFunction <LocationInfo>("GetClientLocation", client.Id));
 }
Exemple #7
0
 public PasswordData GetPasswords(BaseClientInformation client)
 {
     return(DataTransferProtocolFactory.ExecuteFunction <PasswordData>("GetPasswords", client.Id));
 }
Exemple #8
0
 public List <ClientLocation> GetClientLocations()
 {
     return(DataTransferProtocolFactory.ExecuteFunction <List <ClientLocation> >("GetClientLocations"));
 }
Exemple #9
0
 public Statistics GetStatistics()
 {
     return(DataTransferProtocolFactory.ExecuteFunction <Statistics>("GetStatistics"));
 }
Exemple #10
0
 public int GetStaticCommandPluginId(byte[] pluginHash)
 {
     return(DataTransferProtocolFactory.ExecuteFunction <int>("GetStaticCommandPluginResourceId", pluginHash));
 }
Exemple #11
0
 public bool IsStaticCommandPluginAvailable(byte[] pluginHash)
 {
     return(DataTransferProtocolFactory.ExecuteFunction <bool>("IsStaticCommandPluginAvailable", pluginHash));
 }
Exemple #12
0
 public List <RegisteredDynamicCommand> GetDynamicCommands()
 {
     return(DataTransferProtocolFactory.ExecuteFunction <List <RegisteredDynamicCommand> >("GetDynamicCommands",
                                                                                           null, DynamicCommandInfo.RequiredTypes.ToList()));
 }
Exemple #13
0
 public byte[] DownloadEntry(DataEntry dataEntry)
 {
     return(DataTransferProtocolFactory.ExecuteFunction <byte[]>("DownloadData", dataEntry.Id));
 }