2024-04-09 12:53:23 +02:00
|
|
|
|
using ShareeBike.Model.Device;
|
2021-11-07 19:42:59 +01:00
|
|
|
|
using Xamarin.Forms;
|
|
|
|
|
|
2024-04-09 12:53:23 +02:00
|
|
|
|
namespace ShareeBike.Model.Device
|
2021-11-07 19:42:59 +01:00
|
|
|
|
{
|
2022-09-06 16:08:19 +02:00
|
|
|
|
public class SpecialFolder : ISpecialFolder
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Get the folder name of external folder to write to.
|
|
|
|
|
/// </summary>
|
|
|
|
|
/// <returns></returns>
|
|
|
|
|
public string GetExternalFilesDir()
|
|
|
|
|
{
|
|
|
|
|
return DependencyService.Get<ISpecialFolder>().GetExternalFilesDir();
|
|
|
|
|
}
|
2021-11-07 19:42:59 +01:00
|
|
|
|
|
2022-09-06 16:08:19 +02:00
|
|
|
|
/// <summary> Gets the folder name of the personal data folder dir on internal storage. </summary>
|
|
|
|
|
/// <returns>Directory name.</returns>
|
|
|
|
|
public string GetInternalPersonalDir()
|
|
|
|
|
{
|
|
|
|
|
return DependencyService.Get<ISpecialFolder>().GetInternalPersonalDir();
|
|
|
|
|
}
|
|
|
|
|
}
|
2021-11-07 19:42:59 +01:00
|
|
|
|
}
|