-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
52 changed files
with
1,178 additions
and
2,365 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<resources> | ||
<string name="apikey">lgdBLOmA</string> | ||
</resources> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
99 changes: 0 additions & 99 deletions
99
library/src/main/java/com/getroadmap/r2rlib/models/Agency.java
This file was deleted.
Oops, something went wrong.
50 changes: 50 additions & 0 deletions
50
library/src/main/java/com/getroadmap/r2rlib/models/Agency.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
package com.getroadmap.r2rlib.models | ||
|
||
import android.os.Parcel | ||
import android.os.Parcelable | ||
|
||
/** | ||
* https://www.rome2rio.com/documentation/search#Agency | ||
* class for api v1.4 | ||
*/ | ||
|
||
/** | ||
* name string Display name | ||
* url string Agency URL (optional) | ||
* phone string Agency Phone Number (optional) | ||
* icon Icon Agency icon (optional) | ||
*/ | ||
data class Agency(var name: String?, | ||
var url: String?, | ||
var phone: String?, | ||
var icon: Icon?) : Parcelable { | ||
constructor(parcel: Parcel) : this( | ||
parcel.readString(), | ||
parcel.readString(), | ||
parcel.readString(), | ||
parcel.readParcelable(Icon::class.java.classLoader)) { | ||
} | ||
|
||
override fun writeToParcel(parcel: Parcel, flags: Int) { | ||
parcel.writeString(name) | ||
parcel.writeString(url) | ||
parcel.writeString(phone) | ||
parcel.writeParcelable(icon, flags) | ||
} | ||
|
||
override fun describeContents(): Int { | ||
return 0 | ||
} | ||
|
||
companion object CREATOR : Parcelable.Creator<Agency> { | ||
override fun createFromParcel(parcel: Parcel): Agency { | ||
return Agency(parcel) | ||
} | ||
|
||
override fun newArray(size: Int): Array<Agency?> { | ||
return arrayOfNulls(size) | ||
} | ||
} | ||
|
||
|
||
} |
81 changes: 0 additions & 81 deletions
81
library/src/main/java/com/getroadmap/r2rlib/models/AirCodeshare.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.