ow
This commit is contained in:
1 parent
9b01c4a57a
commit
6417562c4f
37 files changed
+2767
-202
No files matched your search
@@ -127,6 +127,14 @@ return Task.Run(() => serviceRequest.PostAsJsonAsync<string>("/DmsFile/FindSou
|
||||
{
|
||||
return Task.Run(() => serviceRequest.PostAsJsonAsync<string>("/DmsFile/FindDeleteLogM3u8Path?fileId=" + fileId.ToString())).GetAwaiter().GetResult(); }
|
||||
|
||||
public StorageUsageData GetMyStorageUsage()
|
||||
{
|
||||
return Task.Run(() => serviceRequest.PostAsJsonAsync<StorageUsageData> ("/DmsFile/GetMyStorageUsage")).GetAwaiter().GetResult(); }
|
||||
|
||||
public string UploadUserAvatar()
|
||||
{
|
||||
return Task.Run(() => serviceRequest.PostAsJsonAsync<string> ("/DmsFile/UploadUserAvatar")).GetAwaiter().GetResult(); }
|
||||
|
||||
public dynamic DownloadFile(Int64 fileId)
|
||||
{
|
||||
return Task.Run(() => serviceRequest.PostAsJsonAsync<dynamic>("/DmsFile/DownloadFile?fileId=" + fileId.ToString())).GetAwaiter().GetResult(); }
|
||||
|
||||
@@ -108,6 +108,74 @@ return Task.Run(() => serviceRequest.PostAsJsonAsync<FamilyTreeData,FamilyTree
|
||||
{
|
||||
Task.Run(() => serviceRequest.PostAsJsonAsync<string[],dynamic>("/FamilyTree/Deletes" , keys)).GetAwaiter().GetResult(); }
|
||||
|
||||
public string GetExchangeFactor()
|
||||
{
|
||||
return Task.Run(() => serviceRequest.PostAsJsonAsync<string> ("/FamilyTree/GetExchangeFactor")).GetAwaiter().GetResult(); }
|
||||
|
||||
|
||||
public class ExportFamilyTreeCompositionData3 {
|
||||
public string treeId { get; set; }
|
||||
public string scope { get; set; }
|
||||
public string anchorPersonId { get; set; }
|
||||
|
||||
}
|
||||
public FamilyTreeExchangeData ExportFamilyTree(string treeId, string scope, string anchorPersonId)
|
||||
{
|
||||
var compositionData = new ExportFamilyTreeCompositionData3{ ␍treeId = treeId, ␍scope = scope, ␍anchorPersonId = anchorPersonId }; ␍return Task.Run(() => serviceRequest.PostAsJsonAsync<ExportFamilyTreeCompositionData3, FamilyTreeExchangeData>("/FamilyTree/ExportFamilyTree", compositionData)).GetAwaiter().GetResult(); }
|
||||
|
||||
|
||||
public class SaveExchangeFileCompositionData2 {
|
||||
public string fileName { get; set; }
|
||||
public string contentBase64 { get; set; }
|
||||
|
||||
}
|
||||
public string SaveExchangeFile(string fileName, string contentBase64)
|
||||
{
|
||||
var compositionData = new SaveExchangeFileCompositionData2{ ␍fileName = fileName, ␍contentBase64 = contentBase64 }; ␍return Task.Run(() => serviceRequest.PostAsJsonAsync<SaveExchangeFileCompositionData2, string>("/FamilyTree/SaveExchangeFile", compositionData)).GetAwaiter().GetResult(); }
|
||||
|
||||
public FamilyTreeExchangeFileInfo[] ListExchangeFiles(string treeId)
|
||||
{
|
||||
return Task.Run(() => serviceRequest.PostAsJsonAsync<FamilyTreeExchangeFileInfo[]>("/FamilyTree/ListExchangeFiles?treeId=" + treeId.ToString())).GetAwaiter().GetResult(); }
|
||||
|
||||
public string ReadExchangeFile(string fileName)
|
||||
{
|
||||
return Task.Run(() => serviceRequest.PostAsJsonAsync<string>("/FamilyTree/ReadExchangeFile?fileName=" + fileName.ToString())).GetAwaiter().GetResult(); }
|
||||
|
||||
|
||||
public class ImportFamilyTreeCompositionData2 {
|
||||
public string targetTreeId { get; set; }
|
||||
public FamilyTreeExchangeData data { get; set; }
|
||||
|
||||
}
|
||||
public Int32 ImportFamilyTree(string targetTreeId, FamilyTreeExchangeData data)
|
||||
{
|
||||
var compositionData = new ImportFamilyTreeCompositionData2{ ␍targetTreeId = targetTreeId, ␍data = data }; ␍return Task.Run(() => serviceRequest.PostAsJsonAsync<ImportFamilyTreeCompositionData2, Int32>("/FamilyTree/ImportFamilyTree", compositionData)).GetAwaiter().GetResult(); }
|
||||
|
||||
|
||||
public class ImportSubTreeCompositionData3 {
|
||||
public string targetTreeId { get; set; }
|
||||
public string anchorPersonId { get; set; }
|
||||
public FamilyTreeExchangeData data { get; set; }
|
||||
|
||||
}
|
||||
public Int32 ImportSubTree(string targetTreeId, string anchorPersonId, FamilyTreeExchangeData data)
|
||||
{
|
||||
var compositionData = new ImportSubTreeCompositionData3{ ␍targetTreeId = targetTreeId, ␍anchorPersonId = anchorPersonId, ␍data = data }; ␍return Task.Run(() => serviceRequest.PostAsJsonAsync<ImportSubTreeCompositionData3, Int32>("/FamilyTree/ImportSubTree", compositionData)).GetAwaiter().GetResult(); }
|
||||
|
||||
public FamilyTreeExchangeFileInfo[] ListBackups(string treeId)
|
||||
{
|
||||
return Task.Run(() => serviceRequest.PostAsJsonAsync<FamilyTreeExchangeFileInfo[]>("/FamilyTree/ListBackups?treeId=" + treeId.ToString())).GetAwaiter().GetResult(); }
|
||||
|
||||
|
||||
public class RestoreBackupCompositionData2 {
|
||||
public string targetTreeId { get; set; }
|
||||
public string backupFileName { get; set; }
|
||||
|
||||
}
|
||||
public Int32 RestoreBackup(string targetTreeId, string backupFileName)
|
||||
{
|
||||
var compositionData = new RestoreBackupCompositionData2{ ␍targetTreeId = targetTreeId, ␍backupFileName = backupFileName }; ␍return Task.Run(() => serviceRequest.PostAsJsonAsync<RestoreBackupCompositionData2, Int32>("/FamilyTree/RestoreBackup", compositionData)).GetAwaiter().GetResult(); }
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user