Class OneDriveWorkSchoolService
- Namespace
- FoundationaLLM.Core.Services
- Assembly
- FoundationaLLM.Core.dll
Implements IOneDriveWorkSchoolService.
public class OneDriveWorkSchoolService : IOneDriveWorkSchoolService
- Inheritance
-
OneDriveWorkSchoolService
- Implements
- Inherited Members
- Extension Methods
Constructors
OneDriveWorkSchoolService(ICoreService, IUserProfileService, IHttpClientFactory)
Contructor for OneDrive service.
public OneDriveWorkSchoolService(ICoreService coreService, IUserProfileService userProfileService, IHttpClientFactory httpClientFactory)
Parameters
coreService
ICoreServiceThe core API service.
userProfileService
IUserProfileServiceThe user profile service.
httpClientFactory
IHttpClientFactoryThe HTTP client factory.
Methods
Connect(string)
Connects to user's OneDrive work or school account.
public Task Connect(string instanceId)
Parameters
instanceId
stringThe FoundationaLLM instance identifier.
Returns
Disconnect(string)
Disconnect from user's OneDrive work or school account.
public Task Disconnect(string instanceId)
Parameters
instanceId
stringThe FoundationaLLM instance identifier.
Returns
Download(string, string, string, OneDriveWorkSchoolItem, UnifiedUserIdentity)
Downloads a file from the user's connected OneDrive work or school account.
public Task<OneDriveWorkSchoolItem> Download(string instanceId, string sessionId, string agentName, OneDriveWorkSchoolItem oneDriveItem, UnifiedUserIdentity userIdentity)
Parameters
instanceId
stringThe FoundationaLLM instance identifier.
sessionId
stringThe session ID from which the file is uploaded.
agentName
stringThe agent name.
oneDriveItem
OneDriveWorkSchoolItemThe OneDrive work or school item.
userIdentity
UnifiedUserIdentityThe user's identity.