Skip to content

Commit 06e82b7

Browse files
committed
Implemented interaction logging functionality.
1 parent b1e060d commit 06e82b7

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

Runtime/Scripts/Vitrivr/UnityInterface/DresApi/DresClient.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,10 @@ public async Task<SuccessStatus> LogResults(long timestamp, string sortType, str
2929
return await DresWrapper.LogResults(timestamp, sortType, resultSetAvailability, results, events,
3030
UserDetails.SessionId);
3131
}
32+
33+
public async Task<SuccessStatus> LogQueryEvents(long timestamp, List<QueryEvent> events)
34+
{
35+
return await DresWrapper.LogQueryEvents(timestamp, events, UserDetails.SessionId);
36+
}
3237
}
3338
}

Runtime/Scripts/Vitrivr/UnityInterface/DresApi/DresWrapper.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,11 @@ public static async Task<SuccessStatus> LogResults(long timestamp, string sortTy
3636
var resultLog = new QueryResultLog(timestamp, sortType, resultSetAvailability, results, events);
3737
return await LogApi.PostLogResultAsync(session, resultLog);
3838
}
39+
40+
public static async Task<SuccessStatus> LogQueryEvents(long timestamp, List<QueryEvent> events, string session)
41+
{
42+
var queryEventLog = new QueryEventLog(timestamp, events);
43+
return await LogApi.PostLogQueryAsync(session, queryEventLog);
44+
}
3945
}
4046
}

0 commit comments

Comments
 (0)