if the file being received already exists locally, it will be renamed
This commit is contained in:
@@ -21,9 +21,6 @@ export enum Language {
|
||||
export class WindowState {
|
||||
"Width": number;
|
||||
"Height": number;
|
||||
"X": number;
|
||||
"Y": number;
|
||||
"Maximised": boolean;
|
||||
|
||||
/** Creates a new WindowState instance. */
|
||||
constructor($$source: Partial<WindowState> = {}) {
|
||||
@@ -33,15 +30,6 @@ export class WindowState {
|
||||
if (!("Height" in $$source)) {
|
||||
this["Height"] = 0;
|
||||
}
|
||||
if (!("X" in $$source)) {
|
||||
this["X"] = 0;
|
||||
}
|
||||
if (!("Y" in $$source)) {
|
||||
this["Y"] = 0;
|
||||
}
|
||||
if (!("Maximised" in $$source)) {
|
||||
this["Maximised"] = false;
|
||||
}
|
||||
|
||||
Object.assign(this, $$source);
|
||||
}
|
||||
|
||||
@@ -83,6 +83,7 @@ export class Transfer {
|
||||
"sender": discovery$0.Peer;
|
||||
|
||||
/**
|
||||
* FileName 如果 ContentType 为 file,文件名;如果 ContentType 为 folder,文件夹名;如果 ContentType 为 text,空
|
||||
* 文件名
|
||||
*/
|
||||
"file_name": string;
|
||||
|
||||
@@ -61,8 +61,8 @@ export function ResolvePendingRequest(id: string, accept: boolean, savePath: str
|
||||
return $Call.ByID(207902967, id, accept, savePath);
|
||||
}
|
||||
|
||||
export function SaveHistory(): $CancellablePromise<void> {
|
||||
return $Call.ByID(713135400);
|
||||
export function SaveHistory(transfers: ($models.Transfer | null)[]): $CancellablePromise<void> {
|
||||
return $Call.ByID(713135400, transfers);
|
||||
}
|
||||
|
||||
export function SendFile(target: discovery$0.Peer | null, targetIP: string, filePath: string): $CancellablePromise<void> {
|
||||
|
||||
Reference in New Issue
Block a user