View Javadoc

1   /*
2   Copyright 2010 James Pether Sörling Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. 
3   	$Id
4   */
5   
6   package com.hack23.cia.service.api.user;
7   
8   import java.util.List;
9   
10  import com.hack23.cia.model.application.dto.common.UserSessionDTO;
11  import com.hack23.cia.model.sweden.impl.ParliamentMember;
12  import com.hack23.cia.model.sweden.impl.ParliamentMemberVoteCompareResult;
13  import com.hack23.cia.model.sweden.impl.RegisterInformation;
14  import com.hack23.cia.model.sweden.impl.Vote;
15  
16  /***
17   * The Class ParliamentMemberResponse.
18   */
19  public class ParliamentMemberResponse extends AbstractParliamentResponse {
20  
21      /*** The Constant serialVersionUID. */
22      private static final long serialVersionUID = 1L;
23  
24      /*** The enemy list. */
25      private final List<ParliamentMemberVoteCompareResult> enemyList;
26  
27      /*** The enemy party list. */
28      private final List<ParliamentMemberVoteCompareResult> enemyPartyList;
29  
30      /*** The friend list. */
31      private final List<ParliamentMemberVoteCompareResult> friendList;
32  
33      /*** The friend party list. */
34      private final List<ParliamentMemberVoteCompareResult> friendPartyList;
35  
36      /*** The parliament member. */
37      private final ParliamentMember parliamentMember;
38  
39      /*** The register information. */
40      private final RegisterInformation registerInformation;
41  
42      /*** The votes. */
43      private final List<Vote> votes;
44  
45      /***
46       * Instantiates a new parliament member response.
47       *
48       * @param userSessionDTO the user session dto
49       * @param parliamentMember the parliament member
50       * @param friendList the friend list
51       * @param enemyList the enemy list
52       * @param friendPartyList the friend party list
53       * @param enemyPartyList the enemy party list
54       * @param votes the votes
55       * @param registerInformation the register information
56       */
57      public ParliamentMemberResponse(final UserSessionDTO userSessionDTO,
58              final ParliamentMember parliamentMember,
59              final List<ParliamentMemberVoteCompareResult> friendList,
60              final List<ParliamentMemberVoteCompareResult> enemyList,
61              final List<ParliamentMemberVoteCompareResult> friendPartyList,
62              final List<ParliamentMemberVoteCompareResult> enemyPartyList,
63              final List<Vote> votes,
64              final RegisterInformation registerInformation) {
65         super(userSessionDTO);
66          this.parliamentMember = parliamentMember;
67          this.friendList = friendList;
68          this.enemyList = enemyList;
69          this.friendPartyList = friendPartyList;
70          this.enemyPartyList = enemyPartyList;
71          this.votes = votes;
72          this.registerInformation = registerInformation;
73      }
74  
75      /***
76       * Gets the enemy list.
77       *
78       * @return the enemy list
79       */
80      public final List<ParliamentMemberVoteCompareResult> getEnemyList() {
81          return enemyList;
82      }
83  
84      /***
85       * Gets the enemy party list.
86       *
87       * @return the enemy party list
88       */
89      public final List<ParliamentMemberVoteCompareResult> getEnemyPartyList() {
90          return enemyPartyList;
91      }
92  
93      /***
94       * Gets the friend list.
95       *
96       * @return the friend list
97       */
98      public final List<ParliamentMemberVoteCompareResult> getFriendList() {
99          return friendList;
100     }
101 
102     /***
103      * Gets the friend party list.
104      *
105      * @return the friend party list
106      */
107     public final List<ParliamentMemberVoteCompareResult> getFriendPartyList() {
108         return friendPartyList;
109     }
110 
111     /***
112      * Gets the parliament member.
113      *
114      * @return the parliament member
115      */
116     public final ParliamentMember getParliamentMember() {
117         return parliamentMember;
118     }
119 
120     /***
121      * Gets the register information.
122      *
123      * @return the register information
124      */
125     public final RegisterInformation getRegisterInformation() {
126         return registerInformation;
127     }
128 
129     /***
130      * Gets the votes.
131      *
132      * @return the votes
133      */
134     public final List<Vote> getVotes() {
135         return votes;
136     }
137 }