コード例 #1
0
        public SaveEntry CreateEntry(EntryId entryId)
        {
            SaveEntry saveEntry = SaveEntry.CreateNew(this, entryId);

            this.AddEntry(saveEntry);
            return(saveEntry);
        }
コード例 #2
0
 public static SaveEntry CreateNew(SaveEntryFolder parentFolder, EntryId entryId) => new SaveEntry()
 {
     Id       = entryId,
     FolderId = parentFolder.GlobalId
 };
コード例 #3
0
 public static SaveEntry CreateFrom(int entryFolderId, EntryId entryId, byte[] data) => new SaveEntry()
 {
     FolderId = entryFolderId,
     Id       = entryId,
     _data    = data
 };
コード例 #4
0
 public SaveEntry GetEntry(EntryId entryId) => this._entries[entryId];