This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//make a collection to pack the parameter to send | |
List<KeyValuePair<String, String>> paramList = new List<KeyValuePair<String, String>>(); | |
paramList.Add(new KeyValuePair<string, string>("action", "encode")); | |
paramList.Add(new KeyValuePair<string, string>("act", act)); | |
paramList.Add(new KeyValuePair<string, string>("pwd", pwd)); | |
//init a httpClient object | |
//and about the ModernHttpClient, please reference below link | |
//https://github.com/paulcbetts/ModernHttpClient | |
HttpClient _httpClient = new HttpClient(new ModernHttpClient.NativeMessageHandler()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using Android.App; | |
using Android.Content; | |
using Android.OS; | |
using Android.Runtime; | |
using Android.Views; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Prism.Commands; | |
using Prism.Mvvm; | |
using Prism.Navigation; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using XFFirebase.Interface; | |
namespace XFFirebase.ViewModels | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms" | |
prism:ViewModelLocator.AutowireViewModel="True" | |
x:Class="XFFirebase.Views.MainPage" | |
Title="MainPage"> | |
<StackLayout HorizontalOptions="Center" VerticalOptions="Center"> | |
<Button Text="測試 Firebase EveneLog" Command="{Binding clickEventLogbtnCommand}"/> | |
</StackLayout> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace XFFirebase.Interface | |
{ | |
interface IFireBaseAnalyticsService | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Android.App; | |
using Android.Content.PM; | |
using Android.Runtime; | |
using Android.Views; | |
using Android.Widget; | |
using Android.OS; | |
using Prism.Unity; | |
using Microsoft.Practices.Unity; |