diff --git a/src/Functions/SantaTalk.Models/Letter.cs b/src/Functions/SantaTalk.Models/Letter.cs new file mode 100644 index 0000000..56235ce --- /dev/null +++ b/src/Functions/SantaTalk.Models/Letter.cs @@ -0,0 +1,10 @@ +using System; +namespace SantaTalk.Models +{ + public class Letter + { + public string Sender { get; set; } + public string Receiver { get; set; } + public string Message { get; set; } + } +} \ No newline at end of file diff --git a/src/Functions/SantaTalk.Models/SantaResultDisplay.cs b/src/Functions/SantaTalk.Models/SantaResultDisplay.cs index c111996..a5337e1 100644 --- a/src/Functions/SantaTalk.Models/SantaResultDisplay.cs +++ b/src/Functions/SantaTalk.Models/SantaResultDisplay.cs @@ -5,8 +5,13 @@ namespace SantaTalk.Models { public class SantaResultDisplay - { + { public string SentimentInterpretation { get; set; } public string GiftPrediction { get; set; } + + public override string ToString() + { + return SentimentInterpretation + " " + GiftPrediction; + } } } diff --git a/src/Functions/SantaTalk.Models/SantaTalk.Models.csproj b/src/Functions/SantaTalk.Models/SantaTalk.Models.csproj index 9f5c4f4..4345206 100644 --- a/src/Functions/SantaTalk.Models/SantaTalk.Models.csproj +++ b/src/Functions/SantaTalk.Models/SantaTalk.Models.csproj @@ -4,4 +4,7 @@ netstandard2.0 + + + diff --git a/src/SantaTalk.Android/SantaTalk.Android.csproj b/src/SantaTalk.Android/SantaTalk.Android.csproj index ffcd81d..f3f4076 100644 --- a/src/SantaTalk.Android/SantaTalk.Android.csproj +++ b/src/SantaTalk.Android/SantaTalk.Android.csproj @@ -69,6 +69,9 @@ 12.0.3 + + 1.6.292 + diff --git a/src/SantaTalk.iOS/SantaTalk.iOS.csproj b/src/SantaTalk.iOS/SantaTalk.iOS.csproj index 19ef860..46e5e8e 100644 --- a/src/SantaTalk.iOS/SantaTalk.iOS.csproj +++ b/src/SantaTalk.iOS/SantaTalk.iOS.csproj @@ -139,6 +139,9 @@ 12.0.3 + + 1.6.292 + diff --git a/src/SantaTalk/LetterHistoryPage.xaml b/src/SantaTalk/LetterHistoryPage.xaml new file mode 100644 index 0000000..67268aa --- /dev/null +++ b/src/SantaTalk/LetterHistoryPage.xaml @@ -0,0 +1,49 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/SantaTalk/LetterHistoryPage.xaml.cs b/src/SantaTalk/LetterHistoryPage.xaml.cs new file mode 100644 index 0000000..625a9f5 --- /dev/null +++ b/src/SantaTalk/LetterHistoryPage.xaml.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using SantaTalk.ViewModels; +using Xamarin.Forms; + +namespace SantaTalk +{ + public partial class LetterHistoryPage : ContentPage + { + public LetterHistoryPage() + { + BindingContext = new LetterHistoryPageViewModel(); + InitializeComponent(); + } + } +} diff --git a/src/SantaTalk/MainPage.xaml b/src/SantaTalk/MainPage.xaml index 7263026..2dab42a 100644 --- a/src/SantaTalk/MainPage.xaml +++ b/src/SantaTalk/MainPage.xaml @@ -39,7 +39,12 @@ -