Android Open Source - uber-android History 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  .  jav  a2s.c  om*/
 *
 * 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 HistoryModel 
        extends java.util.Observable {

    private String uuid;
    private int requestTime;
    private String productId;
    private String status;
    private double distance;
    private int startTime;
    private LocationModel startLocation;
    private int endTime;
    private LocationModel endLocation;
    /** GETTER
     * History item id
     */
    @JsonGetter("uuid")
    public String getUuid ( ) { 
        return this.uuid;
    }
    
    /** SETTER
     * History item id
     */
    @JsonSetter("uuid")
    public void setUuid (String value) { 
        this.uuid = value;
        notifyObservers(this.uuid);
    }
 
    /** GETTER
     * Time when requested
     */
    @JsonGetter("request_time")
    public int getRequestTime ( ) { 
        return this.requestTime;
    }
    
    /** SETTER
     * Time when requested
     */
    @JsonSetter("request_time")
    public void setRequestTime (int value) { 
        this.requestTime = value;
        notifyObservers(this.requestTime);
    }
 
    /** GETTER
     * The product that was used
     */
    @JsonGetter("product_id")
    public String getProductId ( ) { 
        return this.productId;
    }
    
    /** SETTER
     * The product that was used
     */
    @JsonSetter("product_id")
    public void setProductId (String value) { 
        this.productId = value;
        notifyObservers(this.productId);
    }
 
    /** GETTER
     * Status of the product e.g., completed
     */
    @JsonGetter("status")
    public String getStatus ( ) { 
        return this.status;
    }
    
    /** SETTER
     * Status of the product e.g., completed
     */
    @JsonSetter("status")
    public void setStatus (String value) { 
        this.status = value;
        notifyObservers(this.status);
    }
 
    /** GETTER
     * Distance travelled
     */
    @JsonGetter("distance")
    public double getDistance ( ) { 
        return this.distance;
    }
    
    /** SETTER
     * Distance travelled
     */
    @JsonSetter("distance")
    public void setDistance (double value) { 
        this.distance = value;
        notifyObservers(this.distance);
    }
 
    /** GETTER
     * Time of starting the journey
     */
    @JsonGetter("start_time")
    public int getStartTime ( ) { 
        return this.startTime;
    }
    
    /** SETTER
     * Time of starting the journey
     */
    @JsonSetter("start_time")
    public void setStartTime (int value) { 
        this.startTime = value;
        notifyObservers(this.startTime);
    }
 
    /** GETTER
     * Location of starting the journey
     */
    @JsonGetter("start_location")
    public LocationModel getStartLocation ( ) { 
        return this.startLocation;
    }
    
    /** SETTER
     * Location of starting the journey
     */
    @JsonSetter("start_location")
    public void setStartLocation (LocationModel value) { 
        this.startLocation = value;
        notifyObservers(this.startLocation);
    }
 
    /** GETTER
     * Time of journey end
     */
    @JsonGetter("end_time")
    public int getEndTime ( ) { 
        return this.endTime;
    }
    
    /** SETTER
     * Time of journey end
     */
    @JsonSetter("end_time")
    public void setEndTime (int value) { 
        this.endTime = value;
        notifyObservers(this.endTime);
    }
 
    /** GETTER
     * Location where journey ended
     */
    @JsonGetter("end_location")
    public LocationModel getEndLocation ( ) { 
        return this.endLocation;
    }
    
    /** SETTER
     * Location where journey ended
     */
    @JsonSetter("end_location")
    public void setEndLocation (LocationModel value) { 
        this.endLocation = value;
        notifyObservers(this.endLocation);
    }
 
}




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