Skip to content

Commit 0518475

Browse files
Apply suggestions from code review
1 parent 827e342 commit 0518475

File tree

5 files changed

+6
-3
lines changed

5 files changed

+6
-3
lines changed

app/src/main/java/com/infomaniak/mail/data/api/ApiRepository.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ object ApiRepository : ApiRepositoryCore() {
383383
return callApi(
384384
url = ApiRoutes.calendarEvent(resource),
385385
method = GET,
386-
okHttpClient = HttpClient.okHttpClientLongTimeout
386+
okHttpClient = HttpClient.okHttpClientLongTimeout,
387387
)
388388
}
389389

app/src/main/java/com/infomaniak/mail/data/api/CalendarRealmInstantSerializer.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*
22
* Infomaniak Mail - Android
3-
* Copyright (C) 2022-2024 Infomaniak Network SA
3+
* Copyright (C) 2024 Infomaniak Network SA
44
*
55
* This program is free software: you can redistribute it and/or modify
66
* it under the terms of the GNU General Public License as published by

app/src/main/java/com/infomaniak/mail/data/models/calendar/Attendee.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class Attendee() : EmbeddedRealmObject, Correspondent {
6161
ACCEPTED("ACCEPTED", R.drawable.ic_check_rounded, R.color.greenSuccess),
6262
NEEDS_ACTION("NEEDS-ACTION", null, null),
6363
TENTATIVE("TENTATIVE", R.drawable.ic_calendar_maybe, R.color.iconColorSecondaryText),
64-
DECLINED("DECLINED", R.drawable.ic_calendar_no, R.color.redDestructiveAction), ;
64+
DECLINED("DECLINED", R.drawable.ic_calendar_no, R.color.redDestructiveAction),
6565
}
6666

6767
override fun equals(other: Any?): Boolean {

app/src/main/java/com/infomaniak/mail/data/models/calendar/CalendarEvent.kt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ import java.util.Date
3333

3434
@Serializable
3535
class CalendarEvent : EmbeddedRealmObject {
36+
3637
var type: String = ""
3738
var title: String = ""
3839
var description: String = ""

app/src/main/java/com/infomaniak/mail/data/models/calendar/CalendarEventResponse.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ import kotlinx.serialization.Serializable
2424

2525
@Serializable
2626
class CalendarEventResponse : EmbeddedRealmObject {
27+
2728
@SerialName("user_stored_event")
2829
private var userStoredEvent: CalendarEvent? = null
2930
@SerialName("user_stored_event_deleted")
@@ -41,6 +42,7 @@ class CalendarEventResponse : EmbeddedRealmObject {
4142
fun hasUserStoredEvent() = userStoredEvent != null
4243

4344
fun hasAttachmentEvent() = attachmentEvent != null
45+
4446
override fun equals(other: Any?): Boolean {
4547
if (this === other) return true
4648
if (javaClass != other?.javaClass) return false

0 commit comments

Comments
 (0)