Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
hds
flexin
android-app
Commits
4e6c4a9a
Commit
4e6c4a9a
authored
Nov 23, 2017
by
Nastuzzi Samy
Browse files
Paid and validated management
parent
b81545db
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/src/main/java/fr/utc/simde/jessy/responses/BottomatikResponse.java
View file @
4e6c4a9a
...
...
@@ -18,7 +18,9 @@ public class BottomatikResponse {
protected
int
fun_id
;
protected
long
expires_at
;
protected
long
creation_date
;
protected
List
<
Integer
>
articles
;
protected
List
<
String
>
articles
;
protected
boolean
paid
;
protected
boolean
validated
;
public
String
getId
()
{
return
this
.
id
;
}
public
String
getUsername
()
{
return
this
.
username
;
}
...
...
@@ -26,5 +28,14 @@ public class BottomatikResponse {
public
int
getFoundationId
()
{
return
this
.
fun_id
;
}
public
long
getExpiresAt
()
{
return
this
.
expires_at
;
}
public
long
getCreatedAt
()
{
return
this
.
creation_date
;
}
public
List
<
Integer
>
getArticleList
()
{
return
this
.
articles
;
}
public
List
<
Integer
>
getArticleList
()
{
List
<
Integer
>
articleList
=
new
ArrayList
<
Integer
>();
for
(
String
article
:
this
.
articles
)
articleList
.
add
(
Integer
.
parseInt
(
article
));
return
articleList
;
}
public
boolean
isPaid
()
{
return
this
.
paid
;
}
public
boolean
isValidated
()
{
return
this
.
validated
;
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
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 comment