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 Partidinha.Domain.Entities.Partida | |
{ | |
public class Partida : BaseEntity | |
{ |
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 MicrosoftTeamsIntegrationExample.MicrosoftTeams; | |
using Newtonsoft.Json; | |
using System; | |
using System.Net.Http; | |
using System.Text; | |
namespace MicrosoftTeamsIntegrationExample | |
{ | |
public class MicrosoftTeamsService | |
{ |
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 static void CadastrarCliente() | |
{ | |
try | |
{ | |
//tenta cadastrar o cliente aqui | |
throw new Exception("Erro ao cadastrar o cliente"); | |
} | |
catch (Exception ex) | |
{ | |
var teamsRequest = new MicrosoftTeamsRequest |
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
<header> | |
body { | |
margin: 0; | |
background-color: #121212; | |
font-family: sans-serif; | |
} | |
.header { | |
background-color: #333; | |
text-align: center; |
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
private void button1_Click(object sender, EventArgs e) | |
{ | |
var valor = int.Parse(txtNumero.Text); | |
bool verifica = valor > 10; | |
MessageBox.Show("numero digitado e maior ? " + verifica); | |
//ou | |
string mensagem = valor > 10 ? "SIM" : "NÃO"; | |
MessageBox.Show("numero digitado e maior ? " + mensagem); |
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
var meuObjeto = { | |
b: 10, | |
c: 20, | |
d: 30 | |
}; | |
//Utilizando Object.keys | |
var x = Object.keys(meuObjeto); | |
for(var i = 0; i < x.length; i++) { |
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 class AprovarComprasDoCliente | |
{ | |
public bool VerificarSeClientePodeComprar(int idCliente) | |
{ | |
var cliente = _repositorio.BuscarCliente(idCliente); | |
//algumas verificações aqui... | |
//Agora verificamos o "Ativo" primeiro :) | |
if(cliente.Ativo || VerificaUltimaCompra(cliente)) |
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 class AprovarComprasDoCliente | |
{ | |
public bool VerificarSeClientePodeComprar(int idCliente) | |
{ | |
var cliente = _repositorio.BuscarCliente(idCliente); | |
//algumas verificações aqui... | |
if(VerificaUltimaCompra(cliente) || cliente.Ativo) | |
{ |
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 class Cliente | |
{ | |
public int Id { get; set } | |
public bool Ativo { get; set; } | |
//Outros atributos... | |
} |
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
import 'package:flutter/material.dart'; | |
void main(){ | |
runApp(MaterialApp( | |
home: Home() | |
)); | |
} | |
class Home extends StatefulWidget { | |
@override |