text: //
  //  MPVASTResource.h
  //
  //  Copyright 2018-2020 Twitter, Inc.
  //  Licensed under the MoPub SDK License Agreement
  //  http://www.mopub.com/legal/sdk-license-agreement/
  //
  
  #import <Foundation/Foundation.h>
  #import "MPVASTModel.h"
  
  /**
   Per VAST 3.0 spec, section 2.3.3.2 "Companion Resource Elements":
  
   Companion resource types are described below:
   • StaticResource: Describes non-html creative where an attribute for creativeType is used to
   identify the creative resource platform. The video player uses the creativeType information to
   determine how to display the resource:
      o Image/gif,image/jpeg,image/png:displayedusingtheHTMLtag<img>andthe resource URI as the src attribute.
      o Application/x-javascript:displayedusingtheHTMLtag<script>andtheresource URI as the src attribute.
      o application/x-shockwave-flash:displayedusingaFlashTMplayer
   • IFrameResource: Describes a resource that is an HTML page that can be displayed within an Iframe
   on the publisher’s page.
   • HTMLResource: Describes a “snippet” of HTML code to be inserted directly within the publisher’s
   HTML page code.
   */
  typedef NS_ENUM(NSUInteger, MPVASTResourceType) {
      MPVASTResourceType_Undetermined,
      MPVASTResourceType_StaticImage,
      MPVASTResourceType_StaticScript,
      MPVASTResourceType_HTML,
      MPVASTResourceType_Iframe,
  };
  
  @interface MPVASTResource : MPVASTModel
  
  @property (nonatomic, strong, readonly) NSString *content;
  @property (nonatomic, strong, readonly) NSString *staticCreativeType;
  
  /**
   Default is @c MPVASTResourceType_Undetermined. The owner of this resource object is responsible of
   determining the actual type of this resource (it's @c MPVastCompanionAd.resourceToDisplay for
   current implementation).
   */
  @property (nonatomic, assign) MPVASTResourceType type;
  
  - (BOOL)isStaticCreativeTypeImage;
  
  - (BOOL)isStaticCreativeTypeJavaScript;
  
  @end
  