Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Codecrew
/
Moya
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
30
Merge Requests
2
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 0919f5b9
authored
Jun 06, 2022
by
Juho Juopperi
1
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Return the code in ReaderEventRestPojo
1 parent
24544333
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
code/moya-restpojo/src/main/java/fi/codecrew/moya/rest/pojo/reader/v1/ReaderEventRestPojo.java
code/moya-web/src/main/java/fi/codecrew/moya/rest/PojoUtils.java
code/moya-restpojo/src/main/java/fi/codecrew/moya/rest/pojo/reader/v1/ReaderEventRestPojo.java
View file @
0919f5b
...
@@ -36,6 +36,7 @@ public class ReaderEventRestPojo {
...
@@ -36,6 +36,7 @@ public class ReaderEventRestPojo {
private
Integer
readerId
;
private
Integer
readerId
;
private
Integer
printedCardId
;
private
Integer
printedCardId
;
private
String
printedCardState
;
private
String
printedCardState
;
private
String
code
;
public
ReaderEventRestPojo
()
{
public
ReaderEventRestPojo
()
{
}
}
...
@@ -70,6 +71,11 @@ public class ReaderEventRestPojo {
...
@@ -70,6 +71,11 @@ public class ReaderEventRestPojo {
return
printedCardState
;
return
printedCardState
;
}
}
@XmlElement
(
name
=
"code"
,
nillable
=
true
)
public
String
getCode
()
{
return
code
;
}
public
PrintedCardRestPojo
getPrintedCard
()
{
public
PrintedCardRestPojo
getPrintedCard
()
{
return
printedCard
;
return
printedCard
;
}
}
...
@@ -110,4 +116,7 @@ public class ReaderEventRestPojo {
...
@@ -110,4 +116,7 @@ public class ReaderEventRestPojo {
this
.
printedCardState
=
printedCardState
;
this
.
printedCardState
=
printedCardState
;
}
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
}
}
code/moya-web/src/main/java/fi/codecrew/moya/rest/PojoUtils.java
View file @
0919f5b
...
@@ -169,6 +169,9 @@ public class PojoUtils {
...
@@ -169,6 +169,9 @@ public class PojoUtils {
if
(
event
.
getPrintedCard
()
!=
null
)
{
if
(
event
.
getPrintedCard
()
!=
null
)
{
ret
.
setPrintedCardState
(
event
.
getPrintedCard
().
getCardState
().
name
());
ret
.
setPrintedCardState
(
event
.
getPrintedCard
().
getCardState
().
name
());
}
}
if
(
event
.
getValue
()
!=
null
)
{
ret
.
setCode
(
event
.
getValue
());
}
return
ret
;
return
ret
;
}
}
...
...
Juho Juopperi
@jkj
mentioned in commit
9991e39a
Jun 07, 2022
mentioned in commit
9991e39a
Toggle commit list
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