mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-28 19:52:15 -05:00
Rename to OpenPgpMetadata
This commit is contained in:
parent
9aa5f23788
commit
777d22d75d
@ -23,7 +23,7 @@ import android.os.Parcelable;
|
|||||||
* Parcelable versioning has been copied from Dashclock Widget
|
* Parcelable versioning has been copied from Dashclock Widget
|
||||||
* https://code.google.com/p/dashclock/source/browse/api/src/main/java/com/google/android/apps/dashclock/api/ExtensionData.java
|
* https://code.google.com/p/dashclock/source/browse/api/src/main/java/com/google/android/apps/dashclock/api/ExtensionData.java
|
||||||
*/
|
*/
|
||||||
public class OpenPgpDecryptMetadata implements Parcelable {
|
public class OpenPgpMetadata implements Parcelable {
|
||||||
/**
|
/**
|
||||||
* Since there might be a case where new versions of the client using the library getting
|
* Since there might be a case where new versions of the client using the library getting
|
||||||
* old versions of the protocol (and thus old versions of this class), we need a versioning
|
* old versions of the protocol (and thus old versions of this class), we need a versioning
|
||||||
@ -52,18 +52,18 @@ public class OpenPgpDecryptMetadata implements Parcelable {
|
|||||||
return originalSize;
|
return originalSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OpenPgpDecryptMetadata() {
|
public OpenPgpMetadata() {
|
||||||
}
|
}
|
||||||
|
|
||||||
public OpenPgpDecryptMetadata(String filename, String mimeType, long modificationTime,
|
public OpenPgpMetadata(String filename, String mimeType, long modificationTime,
|
||||||
long originalSize) {
|
long originalSize) {
|
||||||
this.filename = filename;
|
this.filename = filename;
|
||||||
this.mimeType = mimeType;
|
this.mimeType = mimeType;
|
||||||
this.modificationTime = modificationTime;
|
this.modificationTime = modificationTime;
|
||||||
this.originalSize = originalSize;
|
this.originalSize = originalSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OpenPgpDecryptMetadata(OpenPgpDecryptMetadata b) {
|
public OpenPgpMetadata(OpenPgpMetadata b) {
|
||||||
this.filename = b.filename;
|
this.filename = b.filename;
|
||||||
this.mimeType = b.mimeType;
|
this.mimeType = b.mimeType;
|
||||||
this.modificationTime = b.modificationTime;
|
this.modificationTime = b.modificationTime;
|
||||||
@ -97,13 +97,13 @@ public class OpenPgpDecryptMetadata implements Parcelable {
|
|||||||
dest.setDataPosition(startPosition + parcelableSize);
|
dest.setDataPosition(startPosition + parcelableSize);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static final Creator<OpenPgpDecryptMetadata> CREATOR = new Creator<OpenPgpDecryptMetadata>() {
|
public static final Creator<OpenPgpMetadata> CREATOR = new Creator<OpenPgpMetadata>() {
|
||||||
public OpenPgpDecryptMetadata createFromParcel(final Parcel source) {
|
public OpenPgpMetadata createFromParcel(final Parcel source) {
|
||||||
int parcelableVersion = source.readInt();
|
int parcelableVersion = source.readInt();
|
||||||
int parcelableSize = source.readInt();
|
int parcelableSize = source.readInt();
|
||||||
int startPosition = source.dataPosition();
|
int startPosition = source.dataPosition();
|
||||||
|
|
||||||
OpenPgpDecryptMetadata vr = new OpenPgpDecryptMetadata();
|
OpenPgpMetadata vr = new OpenPgpMetadata();
|
||||||
vr.filename = source.readString();
|
vr.filename = source.readString();
|
||||||
vr.mimeType = source.readString();
|
vr.mimeType = source.readString();
|
||||||
vr.modificationTime = source.readLong();
|
vr.modificationTime = source.readLong();
|
||||||
@ -115,8 +115,8 @@ public class OpenPgpDecryptMetadata implements Parcelable {
|
|||||||
return vr;
|
return vr;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OpenPgpDecryptMetadata[] newArray(final int size) {
|
public OpenPgpMetadata[] newArray(final int size) {
|
||||||
return new OpenPgpDecryptMetadata[size];
|
return new OpenPgpMetadata[size];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue
Block a user