This file contains hidden or 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.Threading.Tasks; | |
namespace App6.Interfaces | |
{ | |
public interface IScan | |
{ | |
Task<string> ScanAsync(); | |
} | |
} |
This file contains hidden or 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.Threading.Tasks; | |
using App6.Droid.Servicos; | |
using App6.Interfaces; | |
using Xamarin.Forms; | |
using ZXing.Mobile; | |
[assembly: Dependency(typeof(Scanner))] | |
namespace App6.Droid.Servicos | |
{ | |
public class Scanner : IScan |
This file contains hidden or 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 App6.Interfaces; | |
using System.Threading.Tasks; | |
using Xamarin.Forms; | |
namespace App6.ViewModels | |
{ | |
public class ScanViewModel : BaseViewModel | |
{ | |
public Command ScanCommand { get; } |
This file contains hidden or 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
{ | |
type: "object", | |
required: [ | |
"Sandwich", | |
"Length", | |
"Ingredients", | |
"DeliveryAddress" | |
], | |
Templates: { | |
NotUnderstood: { |
This file contains hidden or 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
{ | |
"References": [ "JsonForm.dll" ], | |
"type": "object", | |
"required": [ | |
"Sandwich", | |
"Length", | |
"Ingredients", | |
"DeliveryAddress" | |
], | |
"Templates": { |
This file contains hidden or 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 enum Fabricante | |
{ | |
Audi=1, | |
BMW, | |
Fiat, | |
Mercedes | |
} | |
public enum Porta | |
{ |
This file contains hidden or 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 Microsoft.Bot.Builder.Dialogs; | |
using Microsoft.Bot.Builder.FormFlow; | |
using System; | |
using System.Collections.Generic; | |
namespace FormExemplo.Modelos | |
{ | |
[Serializable] | |
public class Aluguel | |
{ |
This file contains hidden or 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.Linq; | |
using System.Net; | |
using System.Net.Http; | |
using System.Threading.Tasks; | |
using System.Web.Http; | |
using FormExemplo.Modelos; | |
using Microsoft.Bot.Builder.Dialogs; | |
using Microsoft.Bot.Builder.FormFlow; | |
using Microsoft.Bot.Connector; |
This file contains hidden or 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
[Serializable] | |
public class Aluguel | |
{ | |
[Prompt("Por favor nos informe seu {&}:")] | |
public string Nome { get; set; } | |
[Prompt("Entre com sua {&}:")] | |
public string CNH { get; set; } | |
[Prompt("Você gostaria de um carro de qual fabricante?")] |
This file contains hidden or 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 class Aluguel | |
{ | |
[Prompt("Por favor nos informe seu {&}:")] | |
public string Nome { get; set; } | |
[Prompt("Entre com sua {&}:")] | |
public string CNH { get; set; } | |
[Prompt("Você gostaria de um carro de qual fabricante?{||}")] | |
public Fabricante Fabricantes { get; set; } |