001// -------------------------------------------------------------------------------- 002// Copyright 2002-2024 Echo Three, LLC 003// 004// Licensed under the Apache License, Version 2.0 (the "License"); 005// you may not use this file except in compliance with the License. 006// You may obtain a copy of the License at 007// 008// http://www.apache.org/licenses/LICENSE-2.0 009// 010// Unless required by applicable law or agreed to in writing, software 011// distributed under the License is distributed on an "AS IS" BASIS, 012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 013// See the License for the specific language governing permissions and 014// limitations under the License. 015// -------------------------------------------------------------------------------- 016 017package com.echothree.model.control.core.common.transfer; 018 019import com.echothree.util.common.transfer.BaseTransfer; 020import com.echothree.util.common.transfer.MapWrapper; 021 022public class CommandMessageTransfer 023 extends BaseTransfer { 024 025 private CommandMessageTypeTransfer commandMessageType; 026 private String commandMessageKey; 027 private String translation; 028 029 private MapWrapper<CommandMessageTranslationTransfer> commandMessageTranslations; 030 031 /** Creates a new instance of CommandMessageTransfer */ 032 public CommandMessageTransfer(CommandMessageTypeTransfer commandMessageType, String commandMessageKey, String translation) { 033 this.commandMessageType = commandMessageType; 034 this.commandMessageKey = commandMessageKey; 035 this.translation = translation; 036 } 037 038 /** 039 * Returns the commandMessageType. 040 * @return the commandMessageType 041 */ 042 public CommandMessageTypeTransfer getCommandMessageType() { 043 return commandMessageType; 044 } 045 046 /** 047 * Sets the commandMessageType. 048 * @param commandMessageType the commandMessageType to set 049 */ 050 public void setCommandMessageType(CommandMessageTypeTransfer commandMessageType) { 051 this.commandMessageType = commandMessageType; 052 } 053 054 /** 055 * Returns the commandMessageKey. 056 * @return the commandMessageKey 057 */ 058 public String getCommandMessageKey() { 059 return commandMessageKey; 060 } 061 062 /** 063 * Sets the commandMessageKey. 064 * @param commandMessageKey the commandMessageKey to set 065 */ 066 public void setCommandMessageKey(String commandMessageKey) { 067 this.commandMessageKey = commandMessageKey; 068 } 069 070 /** 071 * Returns the translation. 072 * @return the translation 073 */ 074 public String getTranslation() { 075 return translation; 076 } 077 078 /** 079 * Sets the translation. 080 * @param translation the translation to set 081 */ 082 public void setTranslation(String translation) { 083 this.translation = translation; 084 } 085 086 /** 087 * Returns the commandMessageTranslations. 088 * @return the commandMessageTranslations 089 */ 090 public MapWrapper<CommandMessageTranslationTransfer> getCommandMessageTranslations() { 091 return commandMessageTranslations; 092 } 093 094 /** 095 * Sets the commandMessageTranslations. 096 * @param commandMessageTranslations the commandMessageTranslations to set 097 */ 098 public void setCommandMessageTranslations(MapWrapper<CommandMessageTranslationTransfer> commandMessageTranslations) { 099 this.commandMessageTranslations = commandMessageTranslations; 100 } 101 102}