Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
IExternalContentProvider.cs
浏览该文件的文档.
1namespace Game {
2 public interface IExternalContentProvider : IDisposable {
3 string DisplayName { get; }
4
5 bool SupportsLinks { get; }
6
7 bool SupportsListing { get; }
8
9 bool RequiresLogin { get; }
10
11 bool IsLoggedIn { get; }
12
13 string Description { get; }
14
15 bool IsLocalProvider { get; }
16
17 void Login(CancellableProgress progress, Action success, Action<Exception> failure);
18
19 void Logout();
20
21 void List(string path, CancellableProgress progress, Action<ExternalContentEntry> success, Action<Exception> failure);
22
23 void Download(string path, CancellableProgress progress, Action<Stream> success, Action<Exception> failure);
24
25 void Upload(string path, Stream stream, CancellableProgress progress, Action<string> success, Action<Exception> failure);
26
27 void Link(string path, CancellableProgress progress, Action<string> success, Action<Exception> failure);
28 }
29}
void Download(string path, CancellableProgress progress, Action< Stream > success, Action< Exception > failure)
void Upload(string path, Stream stream, CancellableProgress progress, Action< string > success, Action< Exception > failure)
void List(string path, CancellableProgress progress, Action< ExternalContentEntry > success, Action< Exception > failure)
void Link(string path, CancellableProgress progress, Action< string > success, Action< Exception > failure)
void Login(CancellableProgress progress, Action success, Action< Exception > failure)