Spaces:
Paused
Paused
ML Intern deploy
Deploy httpSMS gateway to Hugging Face Spaces (Docker SDK): nginx :7860 -> Go API :8000, Nuxt SPA, Android APK, bootstrap-mode entrypoint
83a59ca Download android/app/src/main/java/com/httpsms/Models.kt from red-kit/httpsms-gateway: direct link, hf CLI and curl.
- Browser
- Download file 1.9 kB
-
https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/6917738ca6db1603dee9e07994b4e42d5e1ae9b2/android/app/src/main/java/com/httpsms/Models.kt
- Command line
-
hf download hf://spaces/red-kit/httpsms-gateway@6917738ca6db1603dee9e07994b4e42d5e1ae9b2/android/app/src/main/java/com/httpsms/Models.kt
-
curl -L -o Models.kt https://huggingface.co/spaces/red-kit/httpsms-gateway/resolve/6917738ca6db1603dee9e07994b4e42d5e1ae9b2/android/app/src/main/java/com/httpsms/Models.kt
1.9 kB
| package com.httpsms | |
| import com.beust.klaxon.Json | |
| import com.beust.klaxon.Klaxon | |
| data class ResponseMessage ( | |
| val data: Message, | |
| val message: String, | |
| val status: String | |
| ) { | |
| companion object { | |
| fun fromJson(json: String) = Klaxon().parse<ResponseMessage>(json) | |
| } | |
| } | |
| data class ResponsePhone ( | |
| val data: Phone, | |
| val message: String, | |
| val status: String, | |
| ) { | |
| companion object { | |
| fun fromJson(json: String) = Klaxon().parse<ResponsePhone>(json) | |
| } | |
| } | |
| data class Phone ( | |
| val id: String, | |
| val userID: String, | |
| ) | |
| data class Message ( | |
| val contact: String, | |
| val content: String, | |
| val sim: String, | |
| val createdAt: String, | |
| val failureReason: String?, | |
| val id: String, | |
| val lastAttemptedAt: String?, | |
| val orderTimestamp: String, | |
| val owner: String, | |
| val receivedAt: String?, | |
| val encrypted: Boolean, | |
| val requestReceivedAt: String, | |
| val sendTime: Long?, | |
| val sentAt: String?, | |
| val status: String, | |
| val type: String, | |
| val updatedAt: String, | |
| val attachments: List<String>? = null | |
| ) | |
| data class ReceivedAttachment( | |
| val name: String, | |
| val contentType: String, | |
| val content: String | |
| ) | |
| data class ReceivedMessageRequest( | |
| val sim: String, | |
| val from: String, | |
| val to: String, | |
| val content: String, | |
| val encrypted: Boolean, | |
| val timestamp: String, | |
| val attachments: List<ReceivedAttachment>? = null | |
| ) | |