mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-06-22 13:57:28 +02:00
Version 3.0.371
This commit is contained in:
parent
bdb2dec1c1
commit
6d22dbf40b
145 changed files with 2289 additions and 764 deletions
|
@ -6,7 +6,6 @@ using TINK.Model;
|
|||
using TINK.Model.Bikes;
|
||||
using TINK.Model.Connector;
|
||||
using TINK.Model.Services.CopriApi;
|
||||
using TINK.ViewModel.Info;
|
||||
using Xamarin.Forms;
|
||||
|
||||
namespace TINK.ViewModel.Contact
|
||||
|
@ -15,6 +14,10 @@ namespace TINK.ViewModel.Contact
|
|||
{
|
||||
public event PropertyChangedEventHandler PropertyChanged;
|
||||
|
||||
/// <summary>
|
||||
/// Holds the current ui two letter ISO language name.
|
||||
/// </summary>
|
||||
private string UiIsoLanguageName { get; }
|
||||
|
||||
/// <summary> Holds value whether site caching is on or off.</summary>
|
||||
bool IsSiteCachingOn { get; }
|
||||
|
@ -71,6 +74,7 @@ namespace TINK.ViewModel.Contact
|
|||
string feesResourcePath,
|
||||
string bikesResourcePath,
|
||||
bool isSiteCachingOn,
|
||||
string uiIsoLangugageName,
|
||||
Func<IQuery> queryProvider,
|
||||
Action<IResourceUrls> updateUrlsAction)
|
||||
{
|
||||
|
@ -80,6 +84,7 @@ namespace TINK.ViewModel.Contact
|
|||
IsSiteCachingOn = isSiteCachingOn;
|
||||
QueryProvider = queryProvider;
|
||||
UpdateUrlsAction = updateUrlsAction;
|
||||
UiIsoLanguageName = uiIsoLangugageName;
|
||||
}
|
||||
|
||||
/// <summary> Holds the name of the host.</summary>
|
||||
|
@ -130,6 +135,13 @@ namespace TINK.ViewModel.Contact
|
|||
: await Task.FromResult(ViewModelHelper.FromBody("No bikes instruction resource available. Resource path is null or empty."))
|
||||
};
|
||||
|
||||
FAQ = new HtmlWebViewSource
|
||||
{
|
||||
Html = UiIsoLanguageName == "de"
|
||||
? await ViewModelHelper.GetSource($"https://sharee.bike/faq/fahrrad-nutzung/", IsSiteCachingOn)
|
||||
: await ViewModelHelper.GetSource($"https://sharee.bike/faq/bike-usage/", IsSiteCachingOn)
|
||||
};
|
||||
|
||||
// Set state to idle.
|
||||
IsIdle = true;
|
||||
}
|
||||
|
@ -138,6 +150,8 @@ namespace TINK.ViewModel.Contact
|
|||
|
||||
private HtmlWebViewSource typesOfBikesText;
|
||||
|
||||
private HtmlWebViewSource faq;
|
||||
|
||||
public HtmlWebViewSource RentBikeText
|
||||
{
|
||||
get => rentBikeText;
|
||||
|
@ -157,5 +171,15 @@ namespace TINK.ViewModel.Contact
|
|||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(TypesOfBikesText)));
|
||||
}
|
||||
}
|
||||
|
||||
public HtmlWebViewSource FAQ
|
||||
{
|
||||
get => faq;
|
||||
set
|
||||
{
|
||||
faq = value;
|
||||
PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(FAQ)));
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue