blob: 79370fba54ea9a81d1fd328c6c15ce286b6d1ae0 (
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
|
package com.mapswithme.maps.taxi;
import android.support.annotation.NonNull;
public class TaxiInfoError
{
@NonNull
private final TaxiType mType;
@NonNull
private final TaxiManager.ErrorCode mCode;
public TaxiInfoError(int type, @NonNull String errorCode)
{
mType = TaxiType.values()[type];
mCode = TaxiManager.ErrorCode.valueOf(errorCode);
}
@NonNull
public TaxiManager.ErrorCode getCode()
{
return mCode;
}
@NonNull
public String getProviderName()
{
return mType.getProviderName();
}
@Override
public String toString()
{
return "TaxiInfoError{" +
"mType=" + mType +
", mCode=" + mCode +
'}';
}
}
|