Initial version which supports selecting bike by bike id.

This commit is contained in:
Oliver Hauff 2021-07-14 20:39:47 +02:00
parent e1e29da71a
commit 4394b6964a
6 changed files with 47 additions and 23 deletions

View file

@ -11,9 +11,14 @@
<ContentPage.Content> <ContentPage.Content>
<Frame> <Frame>
<StackLayout> <StackLayout>
<Label Text="Welcome to Xamarin.Forms!" <Entry
VerticalOptions="CenterAndExpand" Placeholder="Bike id hier eingeben"
HorizontalOptions="CenterAndExpand" /> Text="{Binding BikeIdUserInput}">
</Entry>
<Button
Text="Wählen"
Command="{Binding OnSelectBikeRequest}">
</Button>
<ListView <ListView
x:Name="FindBikeListView" x:Name="FindBikeListView"
SelectionMode="None" SelectionMode="None"

View file

@ -213,6 +213,15 @@ namespace TINK.MultilingualResources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Checking state permissions....
/// </summary>
public static string ActivityTextCheckBluetoothState {
get {
return ResourceManager.GetString("ActivityTextCheckBluetoothState", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Closing lock.... /// Looks up a localized string similar to Closing lock....
/// </summary> /// </summary>
@ -366,6 +375,15 @@ namespace TINK.MultilingualResources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Loading Bikes....
/// </summary>
public static string ActivityTextFindBikeLoadingBikes {
get {
return ResourceManager.GetString("ActivityTextFindBikeLoadingBikes", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Loading Stations and Bikes.... /// Looks up a localized string similar to Loading Stations and Bikes....
/// </summary> /// </summary>
@ -375,15 +393,6 @@ namespace TINK.MultilingualResources {
} }
} }
/// <summary>
/// Looks up a localized string similar to Check Bluetooth state and location permissions....
/// </summary>
public static string ActivityTextMyBikesCheckBluetoothState {
get {
return ResourceManager.GetString("ActivityTextMyBikesCheckBluetoothState", resourceCulture);
}
}
/// <summary> /// <summary>
/// Looks up a localized string similar to Loading reserved/ booked bikes.... /// Looks up a localized string similar to Loading reserved/ booked bikes....
/// </summary> /// </summary>

View file

@ -120,9 +120,6 @@
<data name="ActivityTextSearchBikes" xml:space="preserve"> <data name="ActivityTextSearchBikes" xml:space="preserve">
<value>Suche Schlösser...</value> <value>Suche Schlösser...</value>
</data> </data>
<data name="ActivityTextMyBikesCheckBluetoothState" xml:space="preserve">
<value>Prüfe Berechtigungen...</value>
</data>
<data name="ActivityTextCenterMap" xml:space="preserve"> <data name="ActivityTextCenterMap" xml:space="preserve">
<value>Zentriere Karte...</value> <value>Zentriere Karte...</value>
</data> </data>
@ -607,4 +604,10 @@ Layout Anzeige Radnamen und nummern verbessert.</value>
<data name="MarkingFindBike" xml:space="preserve"> <data name="MarkingFindBike" xml:space="preserve">
<value>Fahrrad Wählen</value> <value>Fahrrad Wählen</value>
</data> </data>
<data name="ActivityTextCheckBluetoothState" xml:space="preserve">
<value>Prüfe Status und Berechtigungen...</value>
</data>
<data name="ActivityTextFindBikeLoadingBikes" xml:space="preserve">
<value>Lade Räder...</value>
</data>
</root> </root>

View file

@ -283,9 +283,6 @@ Please login to app once again. In case this fails please check on website if th
<data name="ActivityTextCenterMap" xml:space="preserve"> <data name="ActivityTextCenterMap" xml:space="preserve">
<value>Centering map...</value> <value>Centering map...</value>
</data> </data>
<data name="ActivityTextMyBikesCheckBluetoothState" xml:space="preserve">
<value>Check Bluetooth state and location permissions...</value>
</data>
<data name="ActivityTextMyBikesLoadingBikes" xml:space="preserve"> <data name="ActivityTextMyBikesLoadingBikes" xml:space="preserve">
<value>Loading reserved/ booked bikes...</value> <value>Loading reserved/ booked bikes...</value>
</data> </data>
@ -703,4 +700,10 @@ Layout of bike names and id display improved.</value>
<data name="MarkingFindBike" xml:space="preserve"> <data name="MarkingFindBike" xml:space="preserve">
<value>Find Bike</value> <value>Find Bike</value>
</data> </data>
<data name="ActivityTextCheckBluetoothState" xml:space="preserve">
<value>Checking state permissions...</value>
</data>
<data name="ActivityTextFindBikeLoadingBikes" xml:space="preserve">
<value>Loading Bikes...</value>
</data>
</root> </root>

View file

@ -150,10 +150,6 @@
<source>Searching locks...</source> <source>Searching locks...</source>
<target state="translated">Suche Schlösser...</target> <target state="translated">Suche Schlösser...</target>
</trans-unit> </trans-unit>
<trans-unit id="ActivityTextMyBikesCheckBluetoothState" translate="yes" xml:space="preserve">
<source>Check Bluetooth state and location permissions...</source>
<target state="translated">Prüfe Berechtigungen...</target>
</trans-unit>
<trans-unit id="ActivityTextCenterMap" translate="yes" xml:space="preserve"> <trans-unit id="ActivityTextCenterMap" translate="yes" xml:space="preserve">
<source>Centering map...</source> <source>Centering map...</source>
<target state="translated">Zentriere Karte...</target> <target state="translated">Zentriere Karte...</target>
@ -813,6 +809,14 @@ Layout Anzeige Radnamen und nummern verbessert.</target>
<source>Find Bike</source> <source>Find Bike</source>
<target state="translated">Fahrrad Wählen</target> <target state="translated">Fahrrad Wählen</target>
</trans-unit> </trans-unit>
<trans-unit id="ActivityTextCheckBluetoothState" translate="yes" xml:space="preserve">
<source>Checking state permissions...</source>
<target state="translated">Prüfe Status und Berechtigungen...</target>
</trans-unit>
<trans-unit id="ActivityTextFindBikeLoadingBikes" translate="yes" xml:space="preserve">
<source>Loading Bikes...</source>
<target state="translated">Lade Räder...</target>
</trans-unit>
</group> </group>
</body> </body>
</file> </file>

View file

@ -113,7 +113,7 @@ namespace TINK.ViewModel.MyBikes
} }
// Check bluetooth and location permission and states // Check bluetooth and location permission and states
ActionText = AppResources.ActivityTextMyBikesCheckBluetoothState; ActionText = AppResources.ActivityTextCheckBluetoothState;
if (bikesOccupied.Response.FirstOrDefault(x => x is BikeInfo btBike) != null if (bikesOccupied.Response.FirstOrDefault(x => x is BikeInfo btBike) != null
&& RuntimePlatform == Device.Android) && RuntimePlatform == Device.Android)