attachFromUrl method

dynamic attachFromUrl(
  1. dynamic url,
  2. dynamic mediaType
)

Attach a photo from a URL @param {string} url URL where photo can be found @param {string} mediaType Media type of photo (JPEG, PNG, GIF)

Implementation

attachFromUrl(url, mediaType) {
  this.url = url;
  this.mediaType = mediaType;
  this.isBase64 = false;
}