mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-26 20:33:53 +01:00
Minor additions to the Contribution DOM
This commit is contained in:
parent
dbe178c33b
commit
ad89f2564f
2 changed files with 13 additions and 1 deletions
|
|
@ -74,10 +74,18 @@ public class Media implements Parcelable {
|
|||
return dataLength;
|
||||
}
|
||||
|
||||
public void setDataLength(long dataLength) {
|
||||
this.dataLength = dataLength;
|
||||
}
|
||||
|
||||
public Date getDateCreated() {
|
||||
return dateCreated;
|
||||
}
|
||||
|
||||
public void setDateCreated(Date date) {
|
||||
this.dateCreated = date;
|
||||
}
|
||||
|
||||
public Date getDateUploaded() {
|
||||
return dateUploaded;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -176,7 +176,7 @@ public class Contribution extends Media {
|
|||
this.imageUrl = imageUrl;
|
||||
}
|
||||
|
||||
private Contribution() {
|
||||
public Contribution() {
|
||||
// Empty constructor for being constructed by our static methods
|
||||
}
|
||||
|
||||
|
|
@ -206,6 +206,10 @@ public class Contribution extends Media {
|
|||
this.source = source;
|
||||
}
|
||||
|
||||
public void setLocalUri(Uri localUri) {
|
||||
this.localUri = localUri;
|
||||
}
|
||||
|
||||
|
||||
public static class Table {
|
||||
public static final String TABLE_NAME = "contributions";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue