Class ProjectManagerInternal
Inheritance
System.Object
ProjectManagerInternal
Syntax
public class ProjectManagerInternal : IProgressTask
Constructors
ProjectManagerInternal()
Declaration
public ProjectManagerInternal()
ProjectManagerInternal(String, Boolean)
Declaration
public ProjectManagerInternal(string storageRoot, bool useProjectNameAsRootFolder)
Parameters
Type |
Name |
Description |
System.String |
storageRoot |
|
System.Boolean |
useProjectNameAsRootFolder |
|
Properties
Projects
Declaration
public IEnumerable<Project> Projects { get; }
Property Value
Type |
Description |
System.Collections.Generic.IEnumerable<Project> |
|
Methods
Cancel()
Declaration
Implements
IProgressTask.Cancel()
DeleteProjectLocally(Project)
Declaration
public IEnumerator DeleteProjectLocally(Project project)
Parameters
Type |
Name |
Description |
Project |
project |
|
Returns
Type |
Description |
System.Collections.IEnumerator |
|
DownloadProjectLocally(String, Boolean)
Declaration
public IEnumerator DownloadProjectLocally(string serverProjectId, bool incremental)
Parameters
Type |
Name |
Description |
System.String |
serverProjectId |
|
System.Boolean |
incremental |
|
Returns
Type |
Description |
System.Collections.IEnumerator |
|
DownloadProjectSessionLocally(Project, String, SyncManifest, SyncManifest, IPlayerClient, Action<Single>)
Declaration
public IEnumerator DownloadProjectSessionLocally(Project project, string sessionId, SyncManifest oldManifest, SyncManifest newManifest, IPlayerClient client, Action<float> onProgress)
Parameters
Type |
Name |
Description |
Project |
project |
|
System.String |
sessionId |
|
SyncManifest |
oldManifest |
|
SyncManifest |
newManifest |
|
IPlayerClient |
client |
|
System.Action<System.Single> |
onProgress |
|
Returns
Type |
Description |
System.Collections.IEnumerator |
|
GetProjectFolder(Project)
Declaration
public string GetProjectFolder(Project project)
Parameters
Type |
Name |
Description |
Project |
project |
|
Returns
Type |
Description |
System.String |
|
GetSessionFolder(Project, String)
Declaration
public string GetSessionFolder(Project project, string sessionId)
Parameters
Type |
Name |
Description |
Project |
project |
|
System.String |
sessionId |
|
Returns
Type |
Description |
System.String |
|
IsProjectAvailableOffline(Project)
Declaration
public bool IsProjectAvailableOffline(Project project)
Parameters
Type |
Name |
Description |
Project |
project |
|
Returns
Type |
Description |
System.Boolean |
|
IsProjectAvailableOnline(Project)
Declaration
public bool IsProjectAvailableOnline(Project project)
Parameters
Type |
Name |
Description |
Project |
project |
|
Returns
Type |
Description |
System.Boolean |
|
LoadProjectManifests(Project)
Declaration
public IEnumerable<ProjectSession> LoadProjectManifests(Project project)
Parameters
Type |
Name |
Description |
Project |
project |
|
Returns
Type |
Description |
System.Collections.Generic.IEnumerable<ProjectSession> |
|
OnDisable()
Declaration
OnEnable()
Declaration
RegisterToProject(String, Action<Project>)
Declaration
public void RegisterToProject(string serverProjectId, Action<Project> callback)
Parameters
Type |
Name |
Description |
System.String |
serverProjectId |
|
System.Action<Project> |
callback |
|
StartDiscovery()
Declaration
public void StartDiscovery()
StopDiscovery()
Declaration
public void StopDiscovery()
Update()
Declaration
Events
onProjectAdded
Declaration
public event Action<Project> onProjectAdded
Event Type
Type |
Description |
System.Action<Project> |
|
onProjectChanged
Declaration
public event Action<Project> onProjectChanged
Event Type
Type |
Description |
System.Action<Project> |
|
onProjectRemoved
Declaration
public event Action<Project> onProjectRemoved
Event Type
Type |
Description |
System.Action<Project> |
|
progressChanged
Declaration
public event Action<float, string> progressChanged
Event Type
Type |
Description |
System.Action<System.Single, System.String> |
|
Implements
IProgressTask.progressChanged
taskCompleted
Declaration
public event Action taskCompleted
Event Type
Type |
Description |
System.Action |
|
Implements
IProgressTask.taskCompleted