File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
pam-android-kotlin/src/main/java/ai/pams/android/kotlin Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -604,6 +604,7 @@ class Pam {
604
604
}
605
605
606
606
private fun createGson () = GsonBuilder ()
607
+ .setDateFormat(" yyyy-MM-dd HH:mm:ss" )
607
608
.registerTypeAdapterFactory(NullableTypeAdapterFactory ())
608
609
.create()
609
610
Original file line number Diff line number Diff line change @@ -6,10 +6,11 @@ import ai.pams.android.kotlin.flex.parser.PImage
6
6
import ai.pams.android.kotlin.http.Http
7
7
import android.content.Context
8
8
import com.google.gson.annotations.SerializedName
9
+ import java.util.*
9
10
10
11
data class NotificationItem (
11
12
@SerializedName(" created_date" )
12
- val createdDate : String ? = null ,
13
+ val date : Date ? = null ,
13
14
@SerializedName(" deliver_id" )
14
15
val deliverId : String? = null ,
15
16
@SerializedName(" description" )
@@ -33,6 +34,10 @@ data class NotificationItem(
33
34
) {
34
35
var bannerUrl: String? = null
35
36
37
+ @Deprecated(" createdDate is deprecated use date instead." , ReplaceWith (" date" ))
38
+ val createdDate: Date ?
39
+ get() = date
40
+
36
41
fun parseFlex (context : Context ) {
37
42
flex?.let {
38
43
val parser = FlexParser (context)
You can’t perform that action at this time.
0 commit comments