Skip to content

Commit 5508157

Browse files
Added annotations for Codacy
1 parent adfa171 commit 5508157

3 files changed

Lines changed: 3 additions & 0 deletions

File tree

android/app/src/main/java/com/httpsms/HttpSmsApiService.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ class HttpSmsApiService(private val apiKey: String, private val baseURL: URI) {
158158
return true
159159
}
160160

161+
// Downloads the attachment URL content locally
161162
fun downloadAttachment(context: Context, urlString: String, messageId: String, attachmentIndex: Int): File? {
162163
val request = Request.Builder().url(urlString).build()
163164

android/app/src/main/java/com/httpsms/Models.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ data class Phone (
2929
val userID: String,
3030
)
3131

32+
// mms attachment
3233
data class Attachment (
3334
@Json(name = "content_type")
3435
val contentType: String,

android/app/src/main/java/com/httpsms/SmsManagerService.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ class SmsManagerService {
7777
}
7878
}
7979

80+
// Wrapper for the smsManager's sendMultimediaMessage
8081
fun sendMultimediaMessage(context: Context, pduUri: android.net.Uri, sim: String, sentIntent: PendingIntent) {
8182
val smsManager = getSmsManager(context, sim)
8283
smsManager.sendMultimediaMessage(context, pduUri, null, null, sentIntent)

0 commit comments

Comments
 (0)