-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
19 changed files
with
616 additions
and
146 deletions.
There are no files selected for viewing
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
25 changes: 25 additions & 0 deletions
25
app/src/main/java/com/idormy/sms/forwarder/entity/LocationInfo.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,25 @@ | ||
package com.idormy.sms.forwarder.entity | ||
|
||
import com.idormy.sms.forwarder.R | ||
import com.xuexiang.xui.utils.ResUtils | ||
import java.io.Serializable | ||
|
||
data class LocationInfo( | ||
var longitude: Double = 0.0, | ||
var latitude: Double = 0.0, | ||
var address: String = "", | ||
var time: String = "", | ||
var provider: String = "" | ||
) : Serializable { | ||
|
||
override fun toString(): String { | ||
var msg = "" | ||
msg += "\n" + String.format(ResUtils.getString(R.string.location_longitude), longitude) | ||
msg += "\n" + String.format(ResUtils.getString(R.string.location_latitude), latitude) | ||
if (address != "") msg += "\n" + String.format(ResUtils.getString(R.string.location_address), address) | ||
if (time != "") msg += "\n" + String.format(ResUtils.getString(R.string.location_time), time) | ||
if (provider != "") msg += "\n" + String.format(ResUtils.getString(R.string.location_provider), provider) | ||
return msg | ||
} | ||
|
||
} |
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
Oops, something went wrong.