Ver código fonte

Convert java to kotlin and add header

Signed-off-by: Dean Birch <dean.birch0@gmail.com>
Dean Birch 1 ano atrás
pai
commit
13b61e82d6

+ 0 - 7
app/src/main/java/com/nextcloud/client/preferences/SubFolderRule.java

@@ -1,7 +0,0 @@
-package com.nextcloud.client.preferences;
-
-public enum SubFolderRule {
-    YEAR_MONTH,
-    YEAR,
-    YEAR_MONTH_DAY,
-}

+ 26 - 0
app/src/main/java/com/nextcloud/client/preferences/SubFolderRule.kt

@@ -0,0 +1,26 @@
+/*
+ * Nextcloud Android client application
+ *
+ * @author Dean Birch
+ * Copyright (C) 2023 Dean Birch
+ * Copyright (C) 2023 Nextcloud GmbH
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <https://www.gnu.org/licenses/>.
+ */
+
+package com.nextcloud.client.preferences
+
+enum class SubFolderRule {
+    YEAR_MONTH, YEAR, YEAR_MONTH_DAY
+}