Welcome to mirror list, hosted at ThFree Co, Russian Federation.

HotelPriceInfo.java « placepage « widget « maps « mapswithme « com « src « android - github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a3ccc7e440ce1e76b267af0185011e14a3c315c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
package com.mapswithme.maps.widget.placepage;

import androidx.annotation.NonNull;

public class HotelPriceInfo
{
  @NonNull
  private final String mId;
  @NonNull
  private final String mPrice;
  @NonNull
  private final String mCurrency;
  private final int mDiscount;
  private final boolean mSmartDeal;

  public HotelPriceInfo(@NonNull String id, @NonNull String price, @NonNull String currency,
                        int discount, boolean smartDeal)
  {
    mId = id;
    mPrice = price;
    mCurrency = currency;
    mDiscount = discount;
    mSmartDeal = smartDeal;
  }

  @NonNull
  public String getId()
  {
    return mId;
  }

  @NonNull
  public String getPrice()
  {
    return mPrice;
  }

  @NonNull
  public String getCurrency()
  {
    return mCurrency;
  }

  public int getDiscount()
  {
    return mDiscount;
  }

  public boolean hasSmartDeal()
  {
    return mSmartDeal;
  }

  @Override
  public String toString()
  {
    final StringBuilder sb = new StringBuilder("HotelPriceInfo{");
    sb.append("mId='").append(mId).append('\'');
    sb.append(", mPrice='").append(mPrice).append('\'');
    sb.append(", mCurrency='").append(mCurrency).append('\'');
    sb.append(", mDiscount=").append(mDiscount);
    sb.append(", mSmartDeal=").append(mSmartDeal);
    sb.append('}');
    return sb.toString();
  }
}