-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prepared Reference Files for overhaul
- Loading branch information
Showing
8 changed files
with
214 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,21 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using Newtonsoft.Json; | ||
|
||
namespace ClipboardCanvas.ReferenceItems | ||
{ | ||
[Serializable] | ||
public sealed class ReferenceFileData | ||
{ | ||
[JsonRequired] | ||
public readonly string path; | ||
|
||
[JsonConstructor] | ||
public ReferenceFileData(string path) | ||
{ | ||
this.path = path; | ||
} | ||
public readonly long fileId; | ||
|
||
public Dictionary<string, object> ToRawData() | ||
{ | ||
Dictionary<string, object> rawData = new Dictionary<string, object>(); | ||
public readonly bool isRepairable; | ||
|
||
rawData.Add(nameof(path), path); | ||
|
||
return rawData; | ||
public ReferenceFileData(string path, long fileId, bool isRepairable) | ||
{ | ||
this.path = path; | ||
this.fileId = fileId; | ||
this.isRepairable = isRepairable; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.