|
| 1 | +/* |
| 2 | + * Copyright (c) 2023. Smart Operating Block |
| 3 | + * |
| 4 | + * Use of this source code is governed by an MIT-style |
| 5 | + * license that can be found in the LICENSE file or at |
| 6 | + * https://opensource.org/licenses/MIT. |
| 7 | + */ |
| 8 | + |
| 9 | +package application.presenter.event.model.automation.request.medicaltechnology; |
| 10 | + |
| 11 | +import application.presenter.event.model.Event; |
| 12 | + |
| 13 | +/** |
| 14 | + * Medical Technology Automation request event. |
| 15 | + * This is the event with which a doctor accept a proposal for the adaptation of the environment |
| 16 | + * in order to support the usage of a medical technology. |
| 17 | + */ |
| 18 | +public class MedicalTechnologyAutomationRequestEvent implements Event<MedicalTechnologyAutomationRequestPayload> { |
| 19 | + /** Medical Technology Automation request event key. */ |
| 20 | + public static final String MEDICAL_TECHNOLOGY_AUTOMATION_REQUEST_EVENT_KEY = |
| 21 | + "MEDICAL_TECHNOLOGY_AUTOMATION_REQUEST_EVENT"; |
| 22 | + |
| 23 | + private final String key; |
| 24 | + private final MedicalTechnologyAutomationRequestPayload data; |
| 25 | + private final String dateTime; |
| 26 | + |
| 27 | + /** |
| 28 | + * Default constructor. |
| 29 | + * @param key the key of the event. |
| 30 | + * @param data the data payload of the event. |
| 31 | + * @param dateTime the datetime of the event. |
| 32 | + */ |
| 33 | + public MedicalTechnologyAutomationRequestEvent( |
| 34 | + final String key, |
| 35 | + final MedicalTechnologyAutomationRequestPayload data, |
| 36 | + final String dateTime |
| 37 | + ) { |
| 38 | + this.key = key; |
| 39 | + this.data = data; |
| 40 | + this.dateTime = dateTime; |
| 41 | + } |
| 42 | + |
| 43 | + @Override |
| 44 | + public final String getKey() { |
| 45 | + return this.key; |
| 46 | + } |
| 47 | + |
| 48 | + @Override |
| 49 | + public final MedicalTechnologyAutomationRequestPayload getData() { |
| 50 | + return this.data; |
| 51 | + } |
| 52 | + |
| 53 | + @Override |
| 54 | + public final String getDateTime() { |
| 55 | + return this.dateTime; |
| 56 | + } |
| 57 | +} |
0 commit comments