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