}                   // blank constructor needed for db initializer

        // constructor to easily set from NewFolder type
        public Folder(NewFolder newFolder, int uid)
        {
            FolderName = HelperMethods.EncryptStringToBytes_Aes(newFolder.Folder_Name, HelperMethods.GetUserKeyAndIV(uid));
            UserID     = uid;
            ParentID   = newFolder.Parent_ID;
            HasChild   = false;
        }
Exemple #2
0
        }                   // blank constructor needed for db initializer

        // constructor to easily set from NewFolder type
        public Folder(NewFolder newFolder, int uid)
        {
            FolderName = newFolder.Folder_Name;
            UserID     = uid;
            ParentID   = newFolder.Parent_ID;
            HasChild   = false;
        }
Exemple #3
0
        }                   // blank constructor needed for db initializer

        // constructor to easily set from NewFolder type
        public Folder(NewFolder newFolder, int uid)
        {
            FolderName = HelperMethods.HexStringToByteArray(newFolder.Folder_Name);
            UserID     = uid;
            ParentID   = newFolder.Parent_ID;
            HasChild   = false;
        }