Skip to content

Commit

Permalink
Added 'crosses' application for validation, help and response processing
Browse files Browse the repository at this point in the history
  • Loading branch information
decimo3 committed Jan 24, 2024
1 parent 966dd5b commit af8b653
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Handles/HandleCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ async public Task routerCommand()
await bot.sendTextMesssageWraper(user.id, "*MEDIDOR* para receber as informações referentes ao medidor;");
await bot.sendTextMesssageWraper(user.id, "*AGRUPAMENTO* para receber as informações referentes ao PC;");
await bot.sendTextMesssageWraper(user.id, "*INFORMACAO* para receber informações código e CPF do cliente;");
await bot.sendTextMesssageWraper(user.id, "*CRUZAMENTO* para receber as ruas que cruzam com o logradouro da nota;");
await bot.sendTextMesssageWraper(user.id, "Todas as solicitações não possuem acentuação e são no sigular (não tem o 's' no final).");
await bot.sendTextMesssageWraper(user.id, "Estou trabalhando para trazer mais funções em breve");
break;
case "/ping":
await bot.sendTextMesssageWraper(user.id, "Estou de prontidão aguardando as solicitações! (^.^)");
Expand Down
1 change: 1 addition & 0 deletions Handles/HandleInformation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ async public Task routeInformation()
case "passivo":await SendDocument(); break;
case "suspenso":await SendManuscripts(); break;
case "informacao":await SendManuscripts(); break;
case "cruzamento":await SendPicture(); break;
}
return;
}
Expand Down
1 change: 1 addition & 0 deletions Helpers/Validator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ public static bool isValidInformacao (string informacao)
if(aplicacao == "manobra") return TypeRequest.xlsInfo;
if(aplicacao == "medidor") return TypeRequest.txtInfo;
if(aplicacao == "informacao") return TypeRequest.txtInfo;
if(aplicacao == "cruzamento") return TypeRequest.picInfo;
return null;
}
public static bool? orderOperandos (string info1, string info2)
Expand Down

0 comments on commit af8b653

Please sign in to comment.