Class PriceInfo

java.lang.Object
com.baidu.mapapi.search.core.PriceInfo
All Implemented Interfaces:
android.os.Parcelable

public class PriceInfo extends Object implements android.os.Parcelable
  • Nested Class Summary

    Nested classes/interfaces inherited from interface android.os.Parcelable

    android.os.Parcelable.ClassLoaderCreator<T extends Object>, android.os.Parcelable.Creator<T extends Object>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final android.os.Parcelable.Creator<PriceInfo>
     

    Fields inherited from interface android.os.Parcelable

    CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
     
    protected
    PriceInfo(android.os.Parcel in)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    double
    获取票价格(元)
    int
    获取票类型
    void
    setTicketPrice(double price)
     
    void
    setTicketType(int type)
     
    void
    writeToParcel(android.os.Parcel dest, int flags)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • CREATOR

      public static final android.os.Parcelable.Creator<PriceInfo> CREATOR
  • Constructor Details

    • PriceInfo

      public PriceInfo()
    • PriceInfo

      protected PriceInfo(android.os.Parcel in)
  • Method Details

    • getTicketType

      public int getTicketType()
      获取票类型
      Returns:
    • setTicketType

      public void setTicketType(int type)
    • getTicketPrice

      public double getTicketPrice()
      获取票价格(元)
      Returns:
    • setTicketPrice

      public void setTicketPrice(double price)
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable