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 9991e39a
authored
Jun 07, 2022
by
Juho Juopperi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "Return the code in ReaderEventRestPojo"
This reverts commit
0919f5b9
.
1 parent
0919f5b9
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
12 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 @
9991e39
...
@@ -36,7 +36,6 @@ public class ReaderEventRestPojo {
...
@@ -36,7 +36,6 @@ 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
()
{
}
}
...
@@ -71,11 +70,6 @@ public class ReaderEventRestPojo {
...
@@ -71,11 +70,6 @@ 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
;
}
}
...
@@ -116,7 +110,4 @@ public class ReaderEventRestPojo {
...
@@ -116,7 +110,4 @@ 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 @
9991e39
...
@@ -169,9 +169,6 @@ public class PojoUtils {
...
@@ -169,9 +169,6 @@ 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
;
}
}
...
...
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