commit
7b20568565
|
@ -74,6 +74,10 @@
|
||||||
<action android:name="mensagem" />
|
<action android:name="mensagem" />
|
||||||
<category android:name="android.intent.category.DEFAULT" />
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
</intent-filter>
|
</intent-filter>
|
||||||
|
<intent-filter>
|
||||||
|
<action android:name="enroll_cond" />
|
||||||
|
<category android:name="android.intent.category.DEFAULT" />
|
||||||
|
</intent-filter>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -360,8 +360,12 @@ URL do Convite: https://visita.freaccess.com.br/${payload['convites'][i]['VAW_ID
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Future answersRequest(BuildContext context, String? ref, String? task,
|
Future answersRequest(
|
||||||
String? response, String? id) async {
|
{required BuildContext context,
|
||||||
|
required String? ref,
|
||||||
|
required String? task,
|
||||||
|
required String? response,
|
||||||
|
required String? id}) async {
|
||||||
ApiCallResponse? respondeSolicitacaoCall;
|
ApiCallResponse? respondeSolicitacaoCall;
|
||||||
|
|
||||||
respondeSolicitacaoCall = await PhpGroup.respondeSolicitacaoCall.call(
|
respondeSolicitacaoCall = await PhpGroup.respondeSolicitacaoCall.call(
|
||||||
|
|
|
@ -48,11 +48,11 @@ Future<void> onMessageReceived(
|
||||||
),
|
),
|
||||||
() async {
|
() async {
|
||||||
await answersRequest(
|
await answersRequest(
|
||||||
context,
|
context: context,
|
||||||
payload['referencia'].toString(),
|
ref: payload['referencia'].toString(),
|
||||||
'L',
|
task: 'L',
|
||||||
'Mensagem',
|
response: '',
|
||||||
payload['idVisitante'].toString(),
|
id: payload['idVisitante'].toString(),
|
||||||
).then((value) {
|
).then((value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
context.pop();
|
context.pop();
|
||||||
|
@ -88,11 +88,11 @@ Future<void> onMessageReceived(
|
||||||
), () async {
|
), () async {
|
||||||
await answersRequest
|
await answersRequest
|
||||||
.call(
|
.call(
|
||||||
context,
|
context: context,
|
||||||
payload['referencia'].toString(),
|
ref: payload['referencia'].toString(),
|
||||||
'B',
|
task: 'B',
|
||||||
'Mensagem',
|
response: '',
|
||||||
payload['idVisitante'].toString(),
|
id: payload['idVisitante'].toString(),
|
||||||
)
|
)
|
||||||
.then((value) {
|
.then((value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
|
@ -189,6 +189,8 @@ Future<void> onMessageReceived(
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
break;
|
||||||
|
case 'enroll_cond':
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -233,11 +233,11 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
answersRequest
|
answersRequest
|
||||||
.call(
|
.call(
|
||||||
context,
|
context: context,
|
||||||
liberationHistoryItem['NOT_ID'].toString(),
|
ref: liberationHistoryItem['NOT_ID'].toString(),
|
||||||
'L',
|
task: 'L',
|
||||||
'',
|
response: '',
|
||||||
liberationHistoryItem['VTE_ID'].toString(),
|
id: liberationHistoryItem['VTE_ID'].toString(),
|
||||||
)
|
)
|
||||||
.then((value) {
|
.then((value) {
|
||||||
if (value) {
|
if (value) {
|
||||||
|
@ -285,11 +285,11 @@ class _LiberationHistoryWidgetState extends State<LiberationHistoryWidget> {
|
||||||
onPressed: () async {
|
onPressed: () async {
|
||||||
return answersRequest
|
return answersRequest
|
||||||
.call(
|
.call(
|
||||||
context,
|
context: context,
|
||||||
liberationHistoryItem['NOT_ID'].toString(),
|
ref: liberationHistoryItem['NOT_ID'].toString(),
|
||||||
'B',
|
task: 'B',
|
||||||
'',
|
response: '',
|
||||||
liberationHistoryItem['VTE_ID'].toString(),
|
id: liberationHistoryItem['VTE_ID'].toString(),
|
||||||
)
|
)
|
||||||
.then((message) {
|
.then((message) {
|
||||||
if (message.isEmpty) {
|
if (message.isEmpty) {
|
||||||
|
|
Loading…
Reference in New Issue