-
-
Notifications
You must be signed in to change notification settings - Fork 251
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Added new Dialog Fragment - Added API functions for handling reminders - Added JSON Models for those reminders - Implemented the reminder functions using MVVM Signed-off-by: Julius Linus <julius.linus@nextcloud.com>
- Loading branch information
1 parent
bf0a958
commit 37df402
Showing
17 changed files
with
896 additions
and
6 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
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
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
41 changes: 41 additions & 0 deletions
41
app/src/main/java/com/nextcloud/talk/models/json/reminder/Reminder.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,41 @@ | ||
/* | ||
* Nextcloud Talk application | ||
* | ||
* @author Julius Linus | ||
* Copyright (C) 2023 Julius Linus <julius.linus@nextcloud.com> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.nextcloud.talk.models.json.reminder | ||
|
||
import android.os.Parcelable | ||
import com.bluelinelabs.logansquare.annotation.JsonField | ||
import com.bluelinelabs.logansquare.annotation.JsonObject | ||
import kotlinx.parcelize.Parcelize | ||
|
||
@Parcelize | ||
@JsonObject | ||
data class Reminder( | ||
@JsonField(name = ["userid"]) | ||
var userid: String? = null, | ||
@JsonField(name = ["token"]) | ||
var token: String? = null, | ||
@JsonField(name = ["messageId"]) | ||
var messageId: Int? = null, | ||
@JsonField(name = ["timestamp"]) | ||
var timestamp: Int? = null | ||
) : Parcelable { | ||
// This constructor is added to work with the 'com.bluelinelabs.logansquare.annotation.JsonObject' | ||
constructor() : this(null, null, null, null) | ||
} |
38 changes: 38 additions & 0 deletions
38
app/src/main/java/com/nextcloud/talk/models/json/reminder/ReminderOCS.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,38 @@ | ||
/* | ||
* Nextcloud Talk application | ||
* | ||
* @author Julius Linus | ||
* Copyright (C) 2023 Julius Linus <julius.linus@nextcloud.com> | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
*/ | ||
package com.nextcloud.talk.models.json.reminder | ||
|
||
import android.os.Parcelable | ||
import com.bluelinelabs.logansquare.annotation.JsonField | ||
import com.bluelinelabs.logansquare.annotation.JsonObject | ||
import com.nextcloud.talk.models.json.generic.GenericMeta | ||
import kotlinx.parcelize.Parcelize | ||
|
||
@Parcelize | ||
@JsonObject | ||
data class ReminderOCS( | ||
@JsonField(name = ["meta"]) | ||
var meta: GenericMeta? = null, | ||
@JsonField(name = ["data"]) | ||
var data: Reminder? = null | ||
) : Parcelable { | ||
// This constructor is added to work with the 'com.bluelinelabs.logansquare.annotation.JsonObject' | ||
constructor() : this(null, null) | ||
} |
Oops, something went wrong.