Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Antti Väyrynen
/
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 51984c35
authored
Oct 24, 2013
by
Tuomas Riihimäki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix rest pojos
1 parent
dfaea3ec
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
12 deletions
code/MoyaWeb/src/fi/codecrew/moya/rest/pojo/CardRoot.java
code/MoyaWeb/src/fi/codecrew/moya/rest/pojo/ReaderEventRestRoot.java
code/MoyaWeb/src/fi/codecrew/moya/rest/pojo/ReaderRestRoot.java
code/MoyaWeb/src/fi/codecrew/moya/rest/pojo/CardRoot.java
View file @
51984c3
...
...
@@ -2,12 +2,11 @@ package fi.codecrew.moya.rest.pojo;
import
java.util.List
;
import
javax.xml.bind.annotation.XmlElementWrapper
;
import
javax.xml.bind.annotation.XmlRootElement
;
@XmlRootElement
public
class
CardRoot
{
@XmlElementWrapper
(
name
=
"cards"
)
//
@XmlElementWrapper(name = "cards")
private
List
<
PrintedCardRestPojo
>
cards
;
public
List
<
PrintedCardRestPojo
>
getCards
()
{
...
...
code/MoyaWeb/src/fi/codecrew/moya/rest/pojo/ReaderEventRestRoot.java
View file @
51984c3
...
...
@@ -2,27 +2,26 @@ package fi.codecrew.moya.rest.pojo;
import
java.util.List
;
import
javax.xml.bind.annotation.XmlElementWrapper
;
import
javax.xml.bind.annotation.XmlRootElement
;
@XmlRootElement
public
class
ReaderEventRestRoot
{
@XmlElementWrapper
(
name
=
"readerEvents"
)
private
List
<
ReaderEventRestPojo
>
readers
;
//
@XmlElementWrapper(name = "readerEvents")
private
List
<
ReaderEventRestPojo
>
reader
Event
s
;
public
ReaderEventRestRoot
()
{
}
public
ReaderEventRestRoot
(
List
<
ReaderEventRestPojo
>
parsed
)
{
readers
=
parsed
;
setReaderEvents
(
parsed
)
;
}
public
List
<
ReaderEventRestPojo
>
getReaders
()
{
return
readers
;
public
List
<
ReaderEventRestPojo
>
getReader
Event
s
()
{
return
reader
Event
s
;
}
public
void
setReader
s
(
List
<
ReaderEventRestPojo
>
reader
s
)
{
this
.
reader
s
=
reader
s
;
public
void
setReader
Events
(
List
<
ReaderEventRestPojo
>
readerEvent
s
)
{
this
.
reader
Events
=
readerEvent
s
;
}
}
code/MoyaWeb/src/fi/codecrew/moya/rest/pojo/ReaderRestRoot.java
View file @
51984c3
...
...
@@ -2,12 +2,11 @@ package fi.codecrew.moya.rest.pojo;
import
java.util.List
;
import
javax.xml.bind.annotation.XmlElementWrapper
;
import
javax.xml.bind.annotation.XmlRootElement
;
@XmlRootElement
public
class
ReaderRestRoot
{
@XmlElementWrapper
(
name
=
"readers"
)
//
@XmlElementWrapper(name = "readers")
private
List
<
ReaderRestPojo
>
readers
;
public
ReaderRestRoot
()
{
...
...
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