Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
uv-amse-android
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Lucas NAURY
uv-amse-android
Commits
d577b0a3
Commit
d577b0a3
authored
Feb 16, 2024
by
Lucas NAURY
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add getters
parent
0e51fd34
Pipeline
#2725
failed with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
Annonce.java
...src/main/java/com/example/tpleboncoin/models/Annonce.java
+6
-0
No files found.
app/src/main/java/com/example/tpleboncoin/models/Annonce.java
View file @
d577b0a3
...
...
@@ -5,6 +5,7 @@ public class Annonce {
private
int
id
;
private
String
titre
;
private
String
adresse
;
private
float
prix
;
private
int
image
;
// Constructeur
...
...
@@ -12,6 +13,7 @@ public class Annonce {
this
.
titre
=
titre
;
this
.
adresse
=
adresse
;
this
.
image
=
image
;
this
.
prix
=
prix
;
// Génération d'un id automatique
this
.
id
=
Annonce
.
nbAnnonces
;
...
...
@@ -26,5 +28,9 @@ public class Annonce {
this
.
titre
=
titre
;
}
public
float
getPrix
(){
return
prix
;}
public
String
getAdresse
(){
return
adresse
;}
public
int
getImage
(){
return
image
;}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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