Table of Contents

Class OneDriveWorkSchoolService

Namespace
FoundationaLLM.Core.Services
Assembly
FoundationaLLM.Core.dll
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 ICoreService

The core API service.

userProfileService IUserProfileService

The user profile service.

httpClientFactory IHttpClientFactory

The HTTP client factory.

Methods

Connect(string)

Connects to user's OneDrive work or school account.

public Task Connect(string instanceId)

Parameters

instanceId string

The FoundationaLLM instance identifier.

Returns

Task

Disconnect(string)

Disconnect from user's OneDrive work or school account.

public Task Disconnect(string instanceId)

Parameters

instanceId string

The FoundationaLLM instance identifier.

Returns

Task

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 string

The FoundationaLLM instance identifier.

sessionId string

The session ID from which the file is uploaded.

agentName string

The agent name.

oneDriveItem OneDriveWorkSchoolItem

The OneDrive work or school item.

userIdentity UnifiedUserIdentity

The user's identity.

Returns

Task<OneDriveWorkSchoolItem>