Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Max Mecklin
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit f862b157
authored
Jan 10, 2015
by
Tuukka Kivilahti
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'userreservation' into 'master'
Userreservation .... See merge request !205
2 parents
7df098f7
862c0c49
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
5 deletions
code/moya-restpojo/src/main/java/fi/codecrew/moya/rest/pojo/userinfo/v1/UserReservationRoot.java
code/moya-web/src/main/java/fi/codecrew/moya/rest/UserRestView.java
code/moya-restpojo/src/main/java/fi/codecrew/moya/rest/pojo/userinfo/v1/UserReservationRoot.java
View file @
f862b15
...
...
@@ -18,6 +18,7 @@
*/
package
fi
.
codecrew
.
moya
.
rest
.
pojo
.
userinfo
.
v1
;
import
java.util.ArrayList
;
import
java.util.List
;
import
javax.xml.bind.annotation.XmlRootElement
;
...
...
@@ -25,18 +26,20 @@ import javax.xml.bind.annotation.XmlRootElement;
@XmlRootElement
()
public
class
UserReservationRoot
{
private
List
<
UserReservation
Root
>
eventusers
;
private
List
<
UserReservation
PlacePojo
>
reservations
=
new
ArrayList
<
UserReservationPlacePojo
>()
;
public
UserReservationRoot
()
{
super
();
}
public
List
<
UserReservation
Root
>
getEventuser
s
()
{
return
eventuser
s
;
public
List
<
UserReservation
PlacePojo
>
getReservation
s
()
{
return
reservation
s
;
}
public
void
set
Eventusers
(
List
<
UserReservationRoot
>
eventuser
s
)
{
this
.
eventusers
=
eventuser
s
;
public
void
set
Reservations
(
List
<
UserReservationPlacePojo
>
reservation
s
)
{
this
.
reservations
=
reservation
s
;
}
}
code/moya-web/src/main/java/fi/codecrew/moya/rest/UserRestView.java
View file @
f862b15
...
...
@@ -93,6 +93,7 @@ public class UserRestView {
ur
.
setPlaceid
(
g
.
getPlaceReservation
().
getId
());
ur
.
setPlacegiven
(
g
.
getEnteredEvent
()
!=
null
);
ur
.
setPlacename
(
g
.
getPlaceReservation
().
getName
());
ret
.
getReservations
().
add
(
ur
);
}
return
Response
.
ok
(
ret
).
build
();
}
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment