Skip to content

Instantly share code, notes, and snippets.

@harilee1325
Created August 30, 2019 21:18
Show Gist options
  • Save harilee1325/a35622a6369d4ee91debb5f4ec703e56 to your computer and use it in GitHub Desktop.
Save harilee1325/a35622a6369d4ee91debb5f4ec703e56 to your computer and use it in GitHub Desktop.
package com.example.retrofitsimple;
import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;
public class Response {
@SerializedName("userId")
@Expose
private Integer userId;
@SerializedName("id")
@Expose
private Integer id;
@SerializedName("title")
@Expose
private String title;
@SerializedName("completed")
@Expose
private Boolean completed;
public Integer getUserId() {
return userId;
}
public void setUserId(Integer userId) {
this.userId = userId;
}
public Integer getId() {
return id;
}
public void setId(Integer id) {
this.id = id;
}
public String getTitle() {
return title;
}
public void setTitle(String title) {
this.title = title;
}
public Boolean getCompleted() {
return completed;
}
public void setCompleted(Boolean completed) {
this.completed = completed;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment