001    package com.google.gwt.maps.client.panoramiolib;
002    
003    import com.google.gwt.core.client.JavaScriptObject;
004    
005    /**
006     *  Describes a single Panoramio feature.
007     * <br><br>
008     * See <a href="https://developers.google.com/maps/documentation/javascript/reference#PanoramioFeature">PanoramioFeature API Doc</a>
009     */
010    public class PanoramioFeature extends JavaScriptObject {
011    
012      /**
013       * generated from event
014       * use newInstance();
015       */
016      protected PanoramioFeature() {}
017      
018      /**
019       * generated from event
020       * Describes a single Panoramio feature.
021       */
022      public static final PanoramioFeature newInstance() {
023        return JavaScriptObject.createObject().cast();
024      }
025      
026      /**
027       * The username of the user who uploaded this photo.
028       * @param author
029       */
030      public final native void setAuthor(String author) /*-{
031        this.author = author;
032      }-*/;
033      
034      /**
035       * The username of the user who uploaded this photo.
036       */
037      public final native String getAuthor() /*-{
038        return this.author;
039      }-*/;
040      
041      /**
042       * The unique identifier for this photo, as used in the Panoramio API.
043       * <br><br>
044       * See <a href="http://www.panoramio.com/api/widget/api.html">Panoramio API</a>.
045       * @param photoId
046       */
047      public final native void setPhotoId(String photoId) /*-{
048        this.photoId = photoId;
049      }-*/;
050      
051      /**
052       * The unique identifier for this photo, as used in the Panoramio API.
053       * <br><br>
054       * See <a href="http://www.panoramio.com/api/widget/api.html">Panoramio API</a>.
055       */
056      public final native String getPhotoId() /*-{
057        return this.photoId;
058      }-*/;
059      
060      /**
061       * The title of the photo.
062       * @param title
063       */
064      public final native void setTitle(String title) /*-{
065        this.title = title;
066      }-*/;
067      
068      /**
069       * The title of the photo.
070       */
071      public final native String getTitle() /*-{
072        return this.title;
073      }-*/;
074      
075      /**
076       * The URL of the photo.
077       * @param url
078       */
079      public final native void setUrl(String url) /*-{
080        this.url = url;
081      }-*/;
082      
083      /**
084       * The URL of the photo.
085       */
086      public final native String getUrl() /*-{
087        return this.url;
088      }-*/;
089    
090      /**
091       * The unique identifier for the user who uploaded this photo, as used in the Panoramio API.
092       * <br><br>
093       * See <a href="http://www.panoramio.com/api/widget/api.html">Panoramio API</a>.
094       * @param userId
095       */
096      public final native void setUserId(String userId) /*-{
097        this.userId = userId;
098      }-*/;
099      
100      /**
101       * The unique identifier for the user who uploaded this photo, as used in the Panoramio API.
102       * <br><br>
103       * See <a href="http://www.panoramio.com/api/widget/api.html">Panoramio API</a>.
104       */
105      public final native String getUserId() /*-{
106        return this.userId;
107      }-*/;
108      
109    }