├── ChatBot ├── ChatBot.iOS │ ├── iTunesArtwork │ ├── iTunesArtwork@2x │ ├── Resources │ │ ├── Default.png │ │ ├── Icon-76.png │ │ ├── Default@2x.png │ │ ├── Icon-60@2x.png │ │ ├── Icon-60@3x.png │ │ ├── Icon-76@2x.png │ │ ├── Icon-Small.png │ │ ├── Icon-Small-40.png │ │ ├── Icon-Small@2x.png │ │ ├── Icon-Small@3x.png │ │ ├── Default-568h@2x.png │ │ ├── Default-Portrait.png │ │ ├── Icon-Small-40@2x.png │ │ ├── Icon-Small-40@3x.png │ │ ├── Default-Portrait@2x.png │ │ └── LaunchScreen.storyboard │ ├── packages.config │ ├── Entitlements.plist │ ├── Main.cs │ ├── AppDelegate.cs │ ├── Properties │ │ └── AssemblyInfo.cs │ ├── Info.plist │ └── ChatBot.iOS.csproj ├── ChatBot.UWP │ ├── Assets │ │ ├── StoreLogo.png │ │ ├── LockScreenLogo.scale-100.png │ │ ├── LockScreenLogo.scale-125.png │ │ ├── LockScreenLogo.scale-150.png │ │ ├── LockScreenLogo.scale-200.png │ │ ├── LockScreenLogo.scale-400.png │ │ ├── SplashScreen.scale-100.png │ │ ├── SplashScreen.scale-125.png │ │ ├── SplashScreen.scale-150.png │ │ ├── SplashScreen.scale-200.png │ │ ├── SplashScreen.scale-400.png │ │ ├── Square44x44Logo.scale-100.png │ │ ├── Square44x44Logo.scale-125.png │ │ ├── Square44x44Logo.scale-150.png │ │ ├── Square44x44Logo.scale-200.png │ │ ├── Square44x44Logo.scale-400.png │ │ ├── Wide310x150Logo.scale-100.png │ │ ├── Wide310x150Logo.scale-125.png │ │ ├── Wide310x150Logo.scale-150.png │ │ ├── Wide310x150Logo.scale-200.png │ │ ├── Wide310x150Logo.scale-400.png │ │ ├── Square150x150Logo.scale-100.png │ │ ├── Square150x150Logo.scale-125.png │ │ ├── Square150x150Logo.scale-150.png │ │ ├── Square150x150Logo.scale-200.png │ │ ├── Square150x150Logo.scale-400.png │ │ ├── Square44x44Logo.targetsize-16_altform-unplated.png │ │ ├── Square44x44Logo.targetsize-24_altform-unplated.png │ │ ├── Square44x44Logo.targetsize-32_altform-unplated.png │ │ ├── Square44x44Logo.targetsize-48_altform-unplated.png │ │ └── Square44x44Logo.targetsize-256_altform-unplated.png │ ├── App.xaml │ ├── project.json │ ├── MainPage.xaml │ ├── MainPage.xaml.cs │ ├── Properties │ │ ├── AssemblyInfo.cs │ │ └── Default.rd.xml │ ├── Package.appxmanifest │ ├── App.xaml.cs │ └── ChatBot.UWP.csproj ├── ChatBot.Android │ ├── Resources │ │ ├── drawable │ │ │ └── icon.png │ │ ├── drawable-hdpi │ │ │ └── icon.png │ │ ├── drawable-xhdpi │ │ │ └── icon.png │ │ ├── drawable-xxhdpi │ │ │ └── icon.png │ │ ├── layout │ │ │ ├── Toolbar.axml │ │ │ └── Tabbar.axml │ │ ├── values │ │ │ └── styles.xml │ │ └── AboutResources.txt │ ├── Properties │ │ ├── AndroidManifest.xml │ │ └── AssemblyInfo.cs │ ├── Assets │ │ └── AboutAssets.txt │ ├── MainActivity.cs │ ├── packages.config │ └── ChatBot.Android.csproj └── ChatBot │ ├── Framework │ ├── Member.cs │ ├── HttpRequest.cs │ ├── HttpResponse.cs │ ├── Response.cs │ ├── Conversation.cs │ ├── MessageType.cs │ ├── Message.cs │ ├── Activity.cs │ └── HttpClient.cs │ ├── project.json │ ├── ChatView.xaml │ ├── App.xaml.cs │ ├── MainPage.xaml.cs │ ├── MainPage.xaml │ ├── ChatView.xaml.cs │ ├── ChatDataTemplateSelector.cs │ ├── Properties │ └── AssemblyInfo.cs │ ├── App.xaml │ ├── ViewModel │ └── MainViewModel.cs │ ├── ChatBot.csproj │ └── Model │ └── MainModel.cs ├── LICENSE ├── .gitattributes ├── .gitignore └── ChatBot.sln /ChatBot/ChatBot.iOS/iTunesArtwork: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.iOS/iTunesArtwork -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/iTunesArtwork@2x: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.iOS/iTunesArtwork@2x -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/StoreLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/StoreLogo.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/Resources/Default.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.iOS/Resources/Default.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/Resources/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.iOS/Resources/Icon-76.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/Resources/Default@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.iOS/Resources/Default@2x.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/Resources/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.iOS/Resources/Icon-60@2x.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/Resources/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.iOS/Resources/Icon-60@3x.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/Resources/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.iOS/Resources/Icon-76@2x.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/Resources/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.iOS/Resources/Icon-Small.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/Resources/Icon-Small-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.iOS/Resources/Icon-Small-40.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/Resources/Icon-Small@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.iOS/Resources/Icon-Small@2x.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/Resources/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.iOS/Resources/Icon-Small@3x.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/Resources/Default-568h@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.iOS/Resources/Default-568h@2x.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/Resources/Default-Portrait.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.iOS/Resources/Default-Portrait.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/Resources/Icon-Small-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.iOS/Resources/Icon-Small-40@2x.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/Resources/Icon-Small-40@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.iOS/Resources/Icon-Small-40@3x.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.Android/Resources/drawable/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.Android/Resources/drawable/icon.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/LockScreenLogo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/LockScreenLogo.scale-100.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/LockScreenLogo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/LockScreenLogo.scale-125.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/LockScreenLogo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/LockScreenLogo.scale-150.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/LockScreenLogo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/LockScreenLogo.scale-200.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/LockScreenLogo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/LockScreenLogo.scale-400.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/SplashScreen.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/SplashScreen.scale-100.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/SplashScreen.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/SplashScreen.scale-125.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/SplashScreen.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/SplashScreen.scale-150.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/SplashScreen.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/SplashScreen.scale-200.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/SplashScreen.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/SplashScreen.scale-400.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/Resources/Default-Portrait@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.iOS/Resources/Default-Portrait@2x.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.Android/Resources/drawable-hdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.Android/Resources/drawable-hdpi/icon.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.Android/Resources/drawable-xhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.Android/Resources/drawable-xhdpi/icon.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Square44x44Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Square44x44Logo.scale-100.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Square44x44Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Square44x44Logo.scale-125.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Square44x44Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Square44x44Logo.scale-150.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Square44x44Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Square44x44Logo.scale-200.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Square44x44Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Square44x44Logo.scale-400.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Wide310x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Wide310x150Logo.scale-100.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Wide310x150Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Wide310x150Logo.scale-125.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Wide310x150Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Wide310x150Logo.scale-150.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Wide310x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Wide310x150Logo.scale-200.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Wide310x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Wide310x150Logo.scale-400.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.Android/Resources/drawable-xxhdpi/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.Android/Resources/drawable-xxhdpi/icon.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Square150x150Logo.scale-100.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Square150x150Logo.scale-100.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Square150x150Logo.scale-125.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Square150x150Logo.scale-125.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Square150x150Logo.scale-150.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Square150x150Logo.scale-150.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Square150x150Logo.scale-200.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Square150x150Logo.scale-200.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Square150x150Logo.scale-400.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Square150x150Logo.scale-400.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/packages.config: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Square44x44Logo.targetsize-16_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Square44x44Logo.targetsize-16_altform-unplated.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Square44x44Logo.targetsize-24_altform-unplated.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Square44x44Logo.targetsize-32_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Square44x44Logo.targetsize-32_altform-unplated.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Square44x44Logo.targetsize-48_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Square44x44Logo.targetsize-48_altform-unplated.png -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/Assets/Square44x44Logo.targetsize-256_altform-unplated.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/adamped/XamarinChatBot/HEAD/ChatBot/ChatBot.UWP/Assets/Square44x44Logo.targetsize-256_altform-unplated.png -------------------------------------------------------------------------------- /ChatBot/ChatBot/Framework/Member.cs: -------------------------------------------------------------------------------- 1 | namespace ChatBot.Framework 2 | { 3 | public class Member 4 | { 5 | public string Id { get; set; } 6 | public string Name { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /ChatBot/ChatBot/Framework/HttpRequest.cs: -------------------------------------------------------------------------------- 1 | namespace ChatBot.Framework 2 | { 3 | public class HttpRequest 4 | { 5 | public string Url { get; set; } 6 | public string Data { get; set; } 7 | } 8 | } 9 | -------------------------------------------------------------------------------- /ChatBot/ChatBot/Framework/HttpResponse.cs: -------------------------------------------------------------------------------- 1 | namespace ChatBot.Framework 2 | { 3 | public class HttpResponse 4 | { 5 | public string Data { get; set; } 6 | 7 | public bool IsSuccess { get; set; } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/Entitlements.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ChatBot/ChatBot/Framework/Response.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ChatBot.Framework 8 | { 9 | public class Response 10 | { 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /ChatBot/ChatBot.Android/Properties/AndroidManifest.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/App.xaml: -------------------------------------------------------------------------------- 1 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /ChatBot/ChatBot/Framework/Conversation.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ChatBot.Framework 8 | { 9 | public class Conversation 10 | { 11 | public string Id { get; set; } 12 | } 13 | } 14 | -------------------------------------------------------------------------------- /ChatBot/ChatBot/Framework/MessageType.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | 7 | namespace ChatBot.Framework 8 | { 9 | public enum MessageType 10 | { 11 | Sent, 12 | Received 13 | } 14 | } 15 | -------------------------------------------------------------------------------- /ChatBot/ChatBot/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "supports": {}, 3 | "dependencies": { 4 | "Microsoft.NETCore.Portable.Compatibility": "1.0.1", 5 | "NETStandard.Library": "1.6.0", 6 | "Newtonsoft.Json": "10.0.2", 7 | "Xamarin.Forms": "2.3.5.239-pre3" 8 | }, 9 | "frameworks": { 10 | "netstandard1.3": {} 11 | } 12 | } -------------------------------------------------------------------------------- /ChatBot/ChatBot/ChatView.xaml: -------------------------------------------------------------------------------- 1 | 2 | 8 | -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/project.json: -------------------------------------------------------------------------------- 1 | { 2 | "dependencies": { 3 | "Microsoft.NETCore.UniversalWindowsPlatform": "5.2.2", 4 | "Xamarin.Forms": "2.3.5.239-pre3" 5 | }, 6 | "frameworks": { 7 | "uap10.0": {} 8 | }, 9 | "runtimes": { 10 | "win10-arm": {}, 11 | "win10-arm-aot": {}, 12 | "win10-x86": {}, 13 | "win10-x86-aot": {}, 14 | "win10-x64": {}, 15 | "win10-x64-aot": {} 16 | } 17 | } -------------------------------------------------------------------------------- /ChatBot/ChatBot.Android/Resources/layout/Toolbar.axml: -------------------------------------------------------------------------------- 1 | 9 | 10 | -------------------------------------------------------------------------------- /ChatBot/ChatBot.iOS/Main.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | 5 | using Foundation; 6 | using UIKit; 7 | 8 | namespace ChatBot.iOS 9 | { 10 | public class Application 11 | { 12 | // This is the main entry point of the application. 13 | static void Main(string[] args) 14 | { 15 | // if you want to use a different Application Delegate class from "AppDelegate" 16 | // you can specify it here. 17 | UIApplication.Main(args, null, "AppDelegate"); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /ChatBot/ChatBot.Android/Resources/layout/Tabbar.axml: -------------------------------------------------------------------------------- 1 | 2 | 12 | -------------------------------------------------------------------------------- /ChatBot/ChatBot/App.xaml.cs: -------------------------------------------------------------------------------- 1 | using Xamarin.Forms; 2 | 3 | namespace ChatBot 4 | { 5 | public partial class App : Application 6 | { 7 | public App() 8 | { 9 | InitializeComponent(); 10 | 11 | MainPage = new MainPage(); 12 | } 13 | 14 | protected override void OnStart() 15 | { 16 | // Handle when your app starts 17 | } 18 | 19 | protected override void OnSleep() 20 | { 21 | // Handle when your app sleeps 22 | } 23 | 24 | protected override void OnResume() 25 | { 26 | // Handle when your app resumes 27 | } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/MainPage.xaml: -------------------------------------------------------------------------------- 1 | 11 | 12 | 13 | 14 | 15 | -------------------------------------------------------------------------------- /ChatBot/ChatBot.Android/Assets/AboutAssets.txt: -------------------------------------------------------------------------------- 1 | Any raw assets you want to be deployed with your application can be placed in 2 | this directory (and child directories) and given a Build Action of "AndroidAsset". 3 | 4 | These files will be deployed with you package and will be accessible using Android's 5 | AssetManager, like this: 6 | 7 | public class ReadAsset : Activity 8 | { 9 | protected override void OnCreate (Bundle bundle) 10 | { 11 | base.OnCreate (bundle); 12 | 13 | InputStream input = Assets.Open ("my_asset.txt"); 14 | } 15 | } 16 | 17 | Additionally, some Android functions will automatically load asset files: 18 | 19 | Typeface tf = Typeface.CreateFromAsset (Context.Assets, "fonts/samplefont.ttf"); 20 | -------------------------------------------------------------------------------- /ChatBot/ChatBot/MainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.Linq; 4 | using System.Text; 5 | using System.Threading.Tasks; 6 | using Xamarin.Forms; 7 | using ChatBot.ViewModel; 8 | 9 | namespace ChatBot 10 | { 11 | public partial class MainPage : ContentPage 12 | { 13 | private MainViewModel _model = new MainViewModel(); 14 | public MainPage() 15 | { 16 | InitializeComponent(); 17 | this.BindingContext = _model; 18 | } 19 | 20 | protected override async void OnAppearing() 21 | { 22 | base.OnAppearing(); 23 | await _model.StartConversation(); 24 | } 25 | 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /ChatBot/ChatBot.UWP/MainPage.xaml.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using System.Collections.Generic; 3 | using System.IO; 4 | using System.Linq; 5 | using System.Runtime.InteropServices.WindowsRuntime; 6 | using Windows.Foundation; 7 | using Windows.Foundation.Collections; 8 | using Windows.UI.Xaml; 9 | using Windows.UI.Xaml.Controls; 10 | using Windows.UI.Xaml.Controls.Primitives; 11 | using Windows.UI.Xaml.Data; 12 | using Windows.UI.Xaml.Input; 13 | using Windows.UI.Xaml.Media; 14 | using Windows.UI.Xaml.Navigation; 15 | 16 | namespace ChatBot.UWP 17 | { 18 | public sealed partial class MainPage 19 | { 20 | public MainPage() 21 | { 22 | this.InitializeComponent(); 23 | 24 | LoadApplication(new ChatBot.App()); 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /ChatBot/ChatBot/MainPage.xaml: -------------------------------------------------------------------------------- 1 | 2 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 |