forked from nus-cs2113-AY2324S2/tp
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c16de10
commit a7e65bb
Showing
2 changed files
with
113 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package florizz.objects; | ||
|
||
public class TableData { | ||
private int id; | ||
private String command; | ||
private String explanation; | ||
private String example; | ||
private String flowerName; | ||
private String flowerOccasion; | ||
private String flowerPrice; | ||
private String flowerColor; | ||
private String flowerMeaning; | ||
|
||
public TableData(int id, String command, String explanation, String example) { | ||
this.id = id; | ||
this.command = command; | ||
this.explanation = explanation; | ||
this.example = example; | ||
} | ||
|
||
public TableData(String flowerName, String flowerOccasion, String flowerPrice | ||
, String flowerColor, String flowerMeaning) { | ||
this.flowerName = flowerName; | ||
this.flowerOccasion = flowerOccasion; | ||
this.flowerPrice = flowerPrice; | ||
this.flowerColor = flowerColor; | ||
this.flowerMeaning = flowerMeaning; | ||
} | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public String getCommand() { | ||
return command; | ||
} | ||
|
||
public String getExplanation() { | ||
return explanation; | ||
} | ||
|
||
public String getExample() { | ||
return example; | ||
} | ||
} |