 //
 
 import Foundation
+
+public enum NGDMAppDataImageType {
+    case Location
+    case MediaThumbnail
+}
 
 // Wrapper class for `NGEExperienceAppType` Manifest object
 public class NGDMAppData {

    }
    
    public var displayText: String?
    public var locationImageURL: NSURL?
    public var videoThumbnailImageURL: NSURL?
    
    /// Media
    public var presentation: NGDMPresentation?

        }
    }
    
    // MARK: Helpers
    public func getImageURL(imageType: NGDMAppDataImageType) -> NSURL? {
        switch imageType {
        case .Location:
            return locationImageURL ?? videoThumbnailImageURL
            
        case .MediaThumbnail:
            if hasVideo {
                return videoThumbnailImageURL
            }
            
            if hasGallery {
                return gallery!.imageURL
            }
            
            return locationImageURL
            
        default:
            return nil
        }
    }
    
}