-
public class QueueTicketA ticket for Visitor's spot in the Queue.
This ticket can be received from Glia event QUEUE_TICKET. See on for more information on events.
Here is an example of how to cancel Visitor Queue Ticket:
Glia.on(Glia.Events.QUEUE_TICKET, queueTicket -> { queueTicket.cancel(exception -> { if (exception == null) { // handle success } else { // handle error } }); });
-
-
Constructor Summary
Constructors Constructor Description QueueTicket(String id, QueueManager queueManager)
-
Method Summary
-
-
Constructor Detail
-
QueueTicket
QueueTicket(String id, QueueManager queueManager)
-
-
Method Detail
-
cancel
void cancel()
Cancel Visitor's spot in the Queue.
Has the same behavior as cancel but doesn't notify of request result or errors.
-
cancel
void cancel(@NonNull() Consumer<GliaException> callback)
Cancel Visitor's spot in the Queue.
Behaves the same as if cancelQueueTicket was called with this Queue ID value.
- Parameters:
callback- Called with{@code null}if request succeeds or with GliaException if failed.
-
-
-
-