|
|
|
@ -21,6 +21,10 @@ package eu.faircode.email;
|
|
|
|
|
|
|
|
|
|
import android.content.Context;
|
|
|
|
|
import android.os.Bundle;
|
|
|
|
|
import android.os.Parcel;
|
|
|
|
|
import android.os.Parcelable;
|
|
|
|
|
|
|
|
|
|
import androidx.annotation.NonNull;
|
|
|
|
|
|
|
|
|
|
import java.io.File;
|
|
|
|
|
|
|
|
|
@ -38,4 +42,42 @@ public class VirusTotal {
|
|
|
|
|
static Bundle upload(Context context, File file, String apiKey, Runnable analyzing) {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static class ScanResult implements Parcelable {
|
|
|
|
|
public String name;
|
|
|
|
|
public String category;
|
|
|
|
|
|
|
|
|
|
ScanResult(String name, String category) {
|
|
|
|
|
this.name = name;
|
|
|
|
|
this.category = category;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
protected ScanResult(Parcel in) {
|
|
|
|
|
name = in.readString();
|
|
|
|
|
category = in.readString();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void writeToParcel(@NonNull Parcel parcel, int i) {
|
|
|
|
|
parcel.writeString(name);
|
|
|
|
|
parcel.writeString(category);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public int describeContents() {
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static final Creator<ScanResult> CREATOR = new Creator<ScanResult>() {
|
|
|
|
|
@Override
|
|
|
|
|
public ScanResult createFromParcel(Parcel in) {
|
|
|
|
|
return new ScanResult(in);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public ScanResult[] newArray(int size) {
|
|
|
|
|
return new ScanResult[size];
|
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|