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
004808c4
Commit
004808c4
authored
Feb 21, 2024
by
Inès EL HADRI
💤
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add annonce description
parent
34895cf0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
Annonce.java
...src/main/java/com/example/tpleboncoin/models/Annonce.java
+4
-1
No files found.
app/src/main/java/com/example/tpleboncoin/models/Annonce.java
View file @
004808c4
...
...
@@ -12,13 +12,15 @@ public class Annonce implements Parcelable {
private
String
adresse
;
private
double
prix
;
private
String
image
;
private
String
description
;
// Constructeur
public
Annonce
(
String
titre
,
String
adresse
,
String
image
,
double
prix
)
{
public
Annonce
(
String
titre
,
String
adresse
,
String
image
,
double
prix
,
String
description
)
{
this
.
titre
=
titre
;
this
.
adresse
=
adresse
;
this
.
image
=
image
;
this
.
prix
=
prix
;
this
.
description
=
description
;
// Génération d'un id automatique
this
.
id
=
Annonce
.
nbAnnonces
;
...
...
@@ -36,6 +38,7 @@ public class Annonce implements Parcelable {
public
double
getPrix
(){
return
prix
;}
public
String
getAdresse
(){
return
adresse
;}
public
String
getImage
(){
return
image
;}
public
String
getDescription
(){
return
description
;}
// Parcelable
...
...
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