IConnectorInsightsDataQuery.csβ’1.58 kB
ο»Ώusing Api.DigitalPages.Interfaces.Models;
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading.Tasks;
namespace Api.DigitalPages.Interfaces.Connector
{
public interface IConnectorInsightsDataQuery : ISystemContextRequired
{
[Obsolete]
Task<dynamic> QueryData(InsightsDataFormatType formatType, Dictionary<string, object> originalHeaders = null, Dictionary<string, object> originalParameters = null);
[Obsolete]
Task<dynamic> QueryData(InsightsDataFormatType formatType, DataType dataType, IUser user);
Task<IReportResult> Report(UserInteractionOptions options);
}
[Obsolete]
public enum DataType
{
Courses,
Users,
UserLocations,
UserRegisters,
UserEntitiesLink,
UserActivityChanges,
UserActivityAssessment,
UserActivityAssessmentQuestions,
EntitiesOnUsers
}
public interface IReportResult
{
List<IReportColumn> Columns { get; set; }
List<List<string>> Rows { get; set; }
}
public interface IReportColumn
{
string Name { get; set; }
string Type { get; set; }
}
public class UserInteractionOptions
{
public DateTime? StartAt { get; set; }
public DateTime? EndAt { get; set; }
public List<Guid> FilterUser { get; set; }
public List<string> FilterText { get; set; }
public int? Limit { get; set; }
public int? Skip { get; set; }
public bool RawData { get; set; }
}
}