mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-27 04:43:54 +01:00
parent
3b7b6f91a2
commit
31c688860d
7 changed files with 89 additions and 0 deletions
|
|
@ -39,6 +39,7 @@ public class Media implements Parcelable {
|
|||
protected String imageUrl;
|
||||
protected String filename;
|
||||
protected String description; // monolingual description on input...
|
||||
protected String discussion;
|
||||
protected long dataLength;
|
||||
protected Date dateCreated;
|
||||
protected @Nullable Date dateUploaded;
|
||||
|
|
@ -195,6 +196,22 @@ public class Media implements Parcelable {
|
|||
this.filename = filename;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets the discussion of the file.
|
||||
* @param discussion
|
||||
*/
|
||||
public void setDiscussion(String discussion) {
|
||||
this.discussion = discussion;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the file discussion as a string.
|
||||
* @return file discussion as a string
|
||||
*/
|
||||
public String getDiscussion() {
|
||||
return discussion;
|
||||
}
|
||||
|
||||
/**
|
||||
* Gets the file description.
|
||||
* @return file description as a string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue