Package 

Object UrlPayload.Companion

    • Method Summary

      Modifier and Type Method Description
      final UrlPayload getUrlPayload(SendAttachment attachment) Create an UrlPayload from an url.
      final UrlPayload getUrlPayload(String applicationId, String url, Boolean useCache) Create an UrlPayload from an url.
      • Methods inherited from class ai.tock.bot.connector.messenger.model.send.UrlPayload.Companion

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getUrlPayload

         final UrlPayload getUrlPayload(SendAttachment attachment)

        Create an UrlPayload from an url. Uses default cache configuration.

      • getUrlPayload

         final UrlPayload getUrlPayload(String applicationId, String url, Boolean useCache)

        Create an UrlPayload from an url.

        Parameters:
        applicationId - the applicationId
        url - the url
        useCache - is cache is used?