Android Open Source - uber-android Product Model






From Project

Back to project page uber-android.

License

The source code is released under:

MIT License

If you think the Android project uber-android listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

/*
 * UberAPILib// w ww  . j  a  v  a 2 s.  c o  m
 *
 * This file was automatically generated by APIMATIC BETA v2.0 on 08/22/2014
 */
package io.apimatic.uberapilib.models;

import com.fasterxml.jackson.annotation.JsonGetter;
import com.fasterxml.jackson.annotation.JsonSetter;

public class ProductModel 
        extends java.util.Observable {

    private String productId;
    private String description;
    private String displayName;
    private int capacity;
    private String image;
    /** GETTER
     * Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles.
     */
    @JsonGetter("product_id")
    public String getProductId ( ) { 
        return this.productId;
    }
    
    /** SETTER
     * Unique identifier representing a specific product for a given latitude & longitude. For example, uberX in San Francisco will have a different product_id than uberX in Los Angeles.
     */
    @JsonSetter("product_id")
    public void setProductId (String value) { 
        this.productId = value;
        notifyObservers(this.productId);
    }
 
    /** GETTER
     * Description of product.
     */
    @JsonGetter("description")
    public String getDescription ( ) { 
        return this.description;
    }
    
    /** SETTER
     * Description of product.
     */
    @JsonSetter("description")
    public void setDescription (String value) { 
        this.description = value;
        notifyObservers(this.description);
    }
 
    /** GETTER
     * Display name of product.
     */
    @JsonGetter("display_name")
    public String getDisplayName ( ) { 
        return this.displayName;
    }
    
    /** SETTER
     * Display name of product.
     */
    @JsonSetter("display_name")
    public void setDisplayName (String value) { 
        this.displayName = value;
        notifyObservers(this.displayName);
    }
 
    /** GETTER
     * Capacity of product. For example, 4 people.
     */
    @JsonGetter("capacity")
    public int getCapacity ( ) { 
        return this.capacity;
    }
    
    /** SETTER
     * Capacity of product. For example, 4 people.
     */
    @JsonSetter("capacity")
    public void setCapacity (int value) { 
        this.capacity = value;
        notifyObservers(this.capacity);
    }
 
    /** GETTER
     * Image URL representing the product.
     */
    @JsonGetter("image")
    public String getImage ( ) { 
        return this.image;
    }
    
    /** SETTER
     * Image URL representing the product.
     */
    @JsonSetter("image")
    public void setImage (String value) { 
        this.image = value;
        notifyObservers(this.image);
    }
 
}




Java Source Code List

io.apimatic.uberapilib.APIException.java
io.apimatic.uberapilib.APIHelper.java
io.apimatic.uberapilib.Configuration.java
io.apimatic.uberapilib.controllers.APIController.java
io.apimatic.uberapilib.models.HistoryModel.java
io.apimatic.uberapilib.models.LocationModel.java
io.apimatic.uberapilib.models.PriceEsitmateModel.java
io.apimatic.uberapilib.models.PriceEstimateCollectionModel.java
io.apimatic.uberapilib.models.ProductCollectionModel.java
io.apimatic.uberapilib.models.ProductModel.java
io.apimatic.uberapilib.models.TimeEstimateCollectionModel.java
io.apimatic.uberapilib.models.TimeEstimateModel.java
io.apimatic.uberapilib.models.UserActivityModel.java
io.apimatic.uberapilib.models.UserProfileModel.java