Replace FreshRSSUserInfo by its Kotlin version with a generated moshi adapter

This commit is contained in:
Shinokuni 2020-01-05 13:23:58 +01:00
parent bf60d2efe1
commit 19ca5a7398
2 changed files with 9 additions and 46 deletions

View File

@ -1,46 +0,0 @@
package com.readrops.readropslibrary.services.freshrss.json;
public class FreshRSSUserInfo {
private String userEmail;
private String userId;
private String userName;
private String userProfileId;
public String getUserEmail() {
return userEmail;
}
public void setUserEmail(String userEmail) {
this.userEmail = userEmail;
}
public String getUserId() {
return userId;
}
public void setUserId(String userId) {
this.userId = userId;
}
public String getUserName() {
return userName;
}
public void setUserName(String userName) {
this.userName = userName;
}
public String getUserProfileId() {
return userProfileId;
}
public void setUserProfileId(String userProfileId) {
this.userProfileId = userProfileId;
}
}

View File

@ -0,0 +1,9 @@
package com.readrops.readropslibrary.services.freshrss.json
import com.squareup.moshi.JsonClass
@JsonClass(generateAdapter = true)
data class FreshRSSUserInfo(val userEmail: String,
val userId: String,
val userName: String,
val userProfileId: String)