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; | |
namespace AppTestForFastMapper | |
{ | |
public class Bootstrapper | |
{ | |
public void AutomapperInit() | |
{ | |
//Inicialização dos Mapeamentos | |
AutoMapper.Mapper.CreateMap<PessoaDto,Pessoa>(); |
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
protected override void OnActivityResult(int requestCode, Result resultCode, Intent data) | |
{ | |
if (requestCode == VOICE) | |
{ | |
if (resultCode == Result.Ok) | |
{ | |
var matches = data.GetStringArrayListExtra(RecognizerIntent.ExtraResults); | |
if (matches.Count != 0) | |
{ | |
App.fala = matches[0]; |
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 System; | |
using Xamarin.Forms; | |
using Autofac; | |
namespace BuscaPorVoz | |
{ | |
public class SpeechPage : ContentPage | |
{ | |
PessoaViewModel model; |
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.Linq; | |
using PropertyChanged; | |
using System.Collections.Generic; | |
using System.Windows.Input; | |
using Xamarin.Forms; | |
using System.Threading.Tasks; | |
using Connectivity.Plugin; | |
namespace BuscaPorVoz |
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
public PessoaDetalhePage(Pessoa pessoa) | |
{ | |
this.BackgroundColor = Color.White; | |
this.pessoa = pessoa; | |
this.backgroundImage = new Image | |
{ | |
Source = ImageSource.FromResource(Constants.RetornarCaminhoParaImagens("backgroudColors.jpg")), | |
Aspect = Aspect.AspectFill, |
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
public ListaPessoasPage() | |
{ | |
this.listViewPessoas = new ListView | |
{ | |
HasUnevenRows = true, | |
ItemTemplate = new DataTemplate(typeof(PessoaViewCell)) | |
}; | |
this.listViewPessoas.ItemTapped += async (sender, e) => await TrataCliqueNoListView(e.Item); | |
this.listViewPessoas.ItemSelected += (sender, e) => |
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 Xamarin.Forms; | |
namespace RenderersEServices | |
{ | |
public class App : Application | |
{ | |
public App () | |
{ |
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.Speech.Tts; | |
using System.Collections.Generic; | |
[assembly : Xamarin.Forms.Dependency (typeof(RenderersEServices.Droid.Falar))] | |
namespace RenderersEServices.Droid | |
{ | |
public class Falar : Java.Lang.Object, RenderersEServices.IFalar, TextToSpeech.IOnInitListener | |
{ |
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; | |
namespace RenderersEServices | |
{ | |
public interface IFalar | |
{ | |
void Conversar (string texto); | |
} | |
} |