Last active
April 30, 2018 11:50
-
-
Save bullheadandplato/a78b9ffcbfdf1bdc1fa52705633d7d67 to your computer and use it in GitHub Desktop.
page
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
public class Bank implements Serializable { | |
private String id; | |
private String name; | |
private String account; | |
private String comments; | |
public String getId() { | |
return id; | |
} | |
public void setId(String id) { | |
this.id = id; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public String getAccount() { | |
return account; | |
} | |
public void setAccount(String account) { | |
this.account = account; | |
} | |
public String getComments() { | |
return comments; | |
} | |
public void setComments(String comments) { | |
this.comments = comments; | |
} |
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
public class Branch implements Serializable { | |
private String id; | |
private String name; | |
private double[] location; | |
private String phone; | |
public String getName() { | |
return name; | |
} | |
public String getId() { | |
return id; | |
} | |
public double[] getLocation() { | |
return location; | |
} | |
public String getPhone() { | |
return phone; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public void setId(String id) { | |
this.id = id; | |
} | |
public void setLocation(double[] location) { | |
this.location = location; | |
} | |
public void setPhone(String phone) { | |
this.phone = phone; | |
} | |
} |
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
/* BRANCHES */ | |
@GET("branches/get") | |
Call<Page<Branch>> getBranches( | |
@Query(value = "size") int size, | |
@Query(value = "page") int page, | |
@Query(value = "sort") String sort); |
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
public class Kafara implements Serializable { | |
private String id; | |
private String name; | |
private String image; | |
private double price; | |
public String getId() { | |
return id; | |
} | |
public void setId(String id) { | |
this.id = id; | |
} | |
public String getName() { | |
return name; | |
} | |
public void setName(String name) { | |
this.name = name; | |
} | |
public String getImage() { | |
return image; | |
} | |
public void setImage(String image) { | |
this.image = image; | |
} | |
public double getPrice() { | |
return price; | |
} | |
public void setPrice(double price) { | |
this.price = price; | |
} | |
} |
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
package massarttech.madhatters.android.marchappandroid.domain; | |
import com.google.gson.annotations.SerializedName; | |
import java.util.List; | |
/** | |
* Created by bullhead on 12/19/17. | |
* Page | |
*/ | |
public class Page<T> { | |
@SerializedName("totalPages") | |
private long totalPages; | |
@SerializedName("last") | |
private boolean last; | |
@SerializedName("totalElements") | |
private long totalElements; | |
@SerializedName("numberOfElements") | |
private long numberOfElements; | |
@SerializedName("first") | |
private boolean first; | |
@SerializedName("size") | |
private int size; | |
@SerializedName("number") | |
private int number; | |
@SerializedName("content") | |
private List<T> data; | |
public long getTotalPages() { | |
return totalPages; | |
} | |
public void setTotalPages(long totalPages) { | |
this.totalPages = totalPages; | |
} | |
public boolean isLast() { | |
return last; | |
} | |
public void setLast(boolean last) { | |
this.last = last; | |
} | |
public long getTotalElements() { | |
return totalElements; | |
} | |
public void setTotalElements(long totalElements) { | |
this.totalElements = totalElements; | |
} | |
public long getNumberOfElements() { | |
return numberOfElements; | |
} | |
public void setNumberOfElements(long numberOfElements) { | |
this.numberOfElements = numberOfElements; | |
} | |
public boolean isFirst() { | |
return first; | |
} | |
public void setFirst(boolean first) { | |
this.first = first; | |
} | |
public int getSize() { | |
return size; | |
} | |
public void setSize(int size) { | |
this.size = size; | |
} | |
public int getNumber() { | |
return number; | |
} | |
public void setNumber(int number) { | |
this.number = number; | |
} | |
public List<T> getData() { | |
return data; | |
} | |
public void setData(List<T> data) { | |
this.data = data; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment