38 lines
969 B
C#
38 lines
969 B
C#
using Android.Content;
|
|
#if !EXCLUDE_JAVAFILESTORAGE
|
|
|
|
namespace keepass2android.Io
|
|
{
|
|
public partial class DropboxFileStorage: JavaFileStorage
|
|
{
|
|
public DropboxFileStorage(Context ctx, IKp2aApp app) :
|
|
base(new Keepass2android.Javafilestorage.DropboxV2Storage(ctx, AppKey, AppSecret), app)
|
|
{
|
|
}
|
|
|
|
|
|
public override bool UserShouldBackup
|
|
{
|
|
get { return false; }
|
|
}
|
|
|
|
static public bool IsConfigured => !string.IsNullOrEmpty(AppKey) && !string.IsNullOrEmpty(AppSecret);
|
|
}
|
|
|
|
public partial class DropboxAppFolderFileStorage: JavaFileStorage
|
|
{
|
|
public DropboxAppFolderFileStorage(Context ctx, IKp2aApp app) :
|
|
base(new Keepass2android.Javafilestorage.DropboxV2AppFolderStorage(ctx, AppKey, AppSecret), app)
|
|
{
|
|
}
|
|
|
|
public override bool UserShouldBackup
|
|
{
|
|
get { return false; }
|
|
}
|
|
|
|
static public bool IsConfigured => !string.IsNullOrEmpty(AppKey) && !string.IsNullOrEmpty(AppSecret);
|
|
}
|
|
|
|
}
|
|
#endif |