1
2
3
4
5
6 package com.hack23.cia.service.api.admin;
7
8 import com.hack23.cia.model.application.dto.common.UserSessionDTO;
9 import com.hack23.cia.model.application.impl.common.Agency;
10 import com.hack23.cia.model.application.impl.common.Language;
11 import com.hack23.cia.model.application.impl.common.LanguageContent;
12
13 /***
14 * The Class LanguageContentResponse.
15 */
16 public class LanguageContentResponse extends AbstractConfigurationResponse {
17
18 /*** The Constant serialVersionUID. */
19 private static final long serialVersionUID = 1L;
20
21 /*** The language. */
22 private final Language language;
23
24 /*** The language content. */
25 private final LanguageContent languageContent;
26
27
28 /***
29 * Instantiates a new language content response.
30 *
31 * @param userSessionDTO the user session dto
32 * @param agency the agency
33 * @param language the language
34 */
35 public LanguageContentResponse(final UserSessionDTO userSessionDTO, final Agency agency,
36 final Language language) {
37 super(userSessionDTO,agency);
38 this.language = language;
39 this.languageContent=null;
40 }
41
42 /***
43 * Instantiates a new language content response.
44 *
45 * @param userSessionDTO the user session dto
46 * @param agency the agency
47 * @param languageContent the language content
48 */
49 public LanguageContentResponse(final UserSessionDTO userSessionDTO, final Agency agency,
50 final LanguageContent languageContent) {
51 super(userSessionDTO,agency);
52 this.languageContent = languageContent;
53 this.language = languageContent.getLanguage();
54 }
55
56 /***
57 * Gets the language.
58 *
59 * @return the language
60 */
61 public final Language getLanguage() {
62 return language;
63 }
64
65 /***
66 * Gets the language content.
67 *
68 * @return the language content
69 */
70 public final LanguageContent getLanguageContent() {
71 return languageContent;
72 }
73
74 }