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.message.common.transfer; 018 019import com.echothree.model.control.core.common.transfer.MimeTypeTransfer; 020import com.echothree.model.control.party.common.transfer.LanguageTransfer; 021import com.echothree.util.common.persistence.type.ByteArray; 022import com.echothree.util.common.transfer.BaseTransfer; 023 024public class MessageBlobTransfer 025 extends BaseTransfer { 026 027 private MessageTransfer message; 028 private LanguageTransfer language; 029 private MimeTypeTransfer mimeType; 030 private ByteArray blob; 031 032 /** Creates a new instance of MessageBlobTransfer */ 033 public MessageBlobTransfer(MessageTransfer message, LanguageTransfer language, MimeTypeTransfer mimeType, 034 ByteArray blob) { 035 this.message = message; 036 this.language = language; 037 this.mimeType = mimeType; 038 this.blob = blob; 039 } 040 041 public MessageTransfer getMessage() { 042 return message; 043 } 044 045 public void setMessage(MessageTransfer message) { 046 this.message = message; 047 } 048 049 public LanguageTransfer getLanguage() { 050 return language; 051 } 052 053 public void setLanguage(LanguageTransfer language) { 054 this.language = language; 055 } 056 057 public MimeTypeTransfer getMimeType() { 058 return mimeType; 059 } 060 061 public void setMimeType(MimeTypeTransfer mimeType) { 062 this.mimeType = mimeType; 063 } 064 065 public ByteArray getBlob() { 066 return blob; 067 } 068 069 public void setBlob(ByteArray blob) { 070 this.blob = blob; 071 } 072 073}