--- /dev/null
+/*\r
+ * ============LICENSE_START========================================================================\r
+ * ONAP : tr-069-adapter\r
+ * =================================================================================================\r
+ * Copyright (C) 2020 CommScope Inc Intellectual Property.\r
+ * =================================================================================================\r
+ * This tr-069-adapter software file is distributed by CommScope Inc under the Apache License,\r
+ * Version 2.0 (the "License"); you may not use this file except in compliance with the License. You\r
+ * may obtain a copy of the License at\r
+ *\r
+ * http://www.apache.org/licenses/LICENSE-2.0\r
+ *\r
+ * This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,\r
+ * either express or implied. See the License for the specific language governing permissions and\r
+ * limitations under the License.\r
+ * ===============LICENSE_END=======================================================================\r
+ */\r
+\r
+package org.commscope.tr069adapter.acs.common.dto;\r
+\r
+import org.commscope.tr069adapter.acs.common.InformType;\r
+\r
+public enum TR069InformType implements InformType {\r
+\r
+ BOOTSTRAP("0 BOOTSTRAP"), BOOT("1 BOOT"), PERIODIC("2 PERIODIC"), VALUECHANGE(\r
+ "4 VALUE CHANGE"), CONNECTIONREQUEST("6 CONNECTION REQUEST"), TRANSFER_COMPLETE(\r
+ "7 TRANSFER COMPLETE"), AUTONOMOUS_TRANSFER_COMPLETE("10 AUTONOMOUS TRANSFER COMPLETE");\r
+\r
+ private String notificationCode;\r
+\r
+ private TR069InformType(String notificationCode) {\r
+ this.notificationCode = notificationCode;\r
+ }\r
+\r
+ public String getNotificationCode() {\r
+ return notificationCode;\r
+ }\r
+\r
+ public static TR069InformType getTR069NotificationType(String notificationCode) {\r
+ TR069InformType result = null;\r
+ for (TR069InformType notificationTypeEnum : TR069InformType.values()) {\r
+ if (notificationTypeEnum.notificationCode.equals(notificationCode)) {\r
+ result = notificationTypeEnum;\r
+ break;\r
+ }\r
+ }\r
+ return result;\r
+ }\r
+}\r