Merge pull request #3 from gilokimu/development
Cleaned out models classes
This commit is contained in:
commit
130ac6375e
@ -3,9 +3,6 @@ package me.gilo.woodroid.data.callbacks;
|
|||||||
|
|
||||||
import me.gilo.woodroid.models.Customer;
|
import me.gilo.woodroid.models.Customer;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/13/2015.
|
|
||||||
*/
|
|
||||||
public class CustomerData {
|
public class CustomerData {
|
||||||
Customer customer;
|
Customer customer;
|
||||||
|
|
||||||
|
|||||||
@ -1,9 +1,6 @@
|
|||||||
package me.gilo.woodroid.data.callbacks;
|
package me.gilo.woodroid.data.callbacks;
|
||||||
import me.gilo.woodroid.models.Order;
|
import me.gilo.woodroid.models.Order;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/12/2015.
|
|
||||||
*/
|
|
||||||
public class Data {
|
public class Data {
|
||||||
Order order;
|
Order order;
|
||||||
|
|
||||||
|
|||||||
@ -5,9 +5,7 @@ import me.gilo.woodroid.models.Order;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/7/2015.
|
|
||||||
*/
|
|
||||||
public class OrderCallback {
|
public class OrderCallback {
|
||||||
ArrayList<Order> orders = new ArrayList<>();
|
ArrayList<Order> orders = new ArrayList<>();
|
||||||
|
|
||||||
|
|||||||
@ -6,9 +6,6 @@ import me.gilo.woodroid.models.Product;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 11/10/2015.
|
|
||||||
*/
|
|
||||||
public class ProductCallback {
|
public class ProductCallback {
|
||||||
ArrayList<Product> products = new ArrayList<>();
|
ArrayList<Product> products = new ArrayList<>();
|
||||||
Product product;
|
Product product;
|
||||||
|
|||||||
@ -3,9 +3,6 @@ package me.gilo.woodroid.data.callbacks;
|
|||||||
|
|
||||||
import me.gilo.woodroid.models.Product;
|
import me.gilo.woodroid.models.Product;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/14/2015.
|
|
||||||
*/
|
|
||||||
public class ProductData {
|
public class ProductData {
|
||||||
private Product product;
|
private Product product;
|
||||||
|
|
||||||
|
|||||||
@ -7,9 +7,7 @@ import me.gilo.woodroid.models.ProductReview;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/8/2015.
|
|
||||||
*/
|
|
||||||
public class ReviewsCallback {
|
public class ReviewsCallback {
|
||||||
@SerializedName("product_reviews")
|
@SerializedName("product_reviews")
|
||||||
ArrayList<ProductReview> productReviews;
|
ArrayList<ProductReview> productReviews;
|
||||||
|
|||||||
@ -5,9 +5,7 @@ import me.gilo.woodroid.models.ProductReview;
|
|||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/14/2015.
|
|
||||||
*/
|
|
||||||
public class ReviewsData {
|
public class ReviewsData {
|
||||||
ArrayList<ProductReview> productReviews;
|
ArrayList<ProductReview> productReviews;
|
||||||
|
|
||||||
|
|||||||
@ -3,9 +3,6 @@ package me.gilo.woodroid.data.callbacks;
|
|||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
import me.gilo.woodroid.models.Store;
|
import me.gilo.woodroid.models.Store;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 2/20/2016.
|
|
||||||
*/
|
|
||||||
public class StoreCallback {
|
public class StoreCallback {
|
||||||
|
|
||||||
@SerializedName("store")
|
@SerializedName("store")
|
||||||
|
|||||||
@ -4,9 +4,7 @@ import android.os.Parcel;
|
|||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 11/26/2015.
|
|
||||||
*/
|
|
||||||
public class AttributeTerm implements Serializable {
|
public class AttributeTerm implements Serializable {
|
||||||
int id;
|
int id;
|
||||||
private String name;
|
private String name;
|
||||||
|
|||||||
@ -4,9 +4,6 @@ import com.google.gson.annotations.SerializedName;
|
|||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/7/2015.
|
|
||||||
*/
|
|
||||||
public class BillingAddress implements Serializable{
|
public class BillingAddress implements Serializable{
|
||||||
public int id;
|
public int id;
|
||||||
@SerializedName("first_name")
|
@SerializedName("first_name")
|
||||||
|
|||||||
@ -2,9 +2,6 @@ package me.gilo.woodroid.models;
|
|||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/8/2015.
|
|
||||||
*/
|
|
||||||
public class Category implements Serializable{
|
public class Category implements Serializable{
|
||||||
private int id;
|
private int id;
|
||||||
private String name;
|
private String name;
|
||||||
|
|||||||
@ -4,9 +4,6 @@ import com.google.gson.annotations.SerializedName;
|
|||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/7/2015.
|
|
||||||
*/
|
|
||||||
|
|
||||||
public class Customer implements Serializable{
|
public class Customer implements Serializable{
|
||||||
public int id;
|
public int id;
|
||||||
|
|||||||
@ -5,9 +5,7 @@ import com.google.gson.annotations.SerializedName;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/11/2015.
|
|
||||||
*/
|
|
||||||
public class CustomerPost implements Serializable{
|
public class CustomerPost implements Serializable{
|
||||||
@SerializedName("data")
|
@SerializedName("data")
|
||||||
ArrayList<Data> datas;
|
ArrayList<Data> datas;
|
||||||
|
|||||||
@ -1,8 +1,5 @@
|
|||||||
package me.gilo.woodroid.models;
|
package me.gilo.woodroid.models;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/11/2015.
|
|
||||||
*/
|
|
||||||
public class Data {
|
public class Data {
|
||||||
Customer customer;
|
Customer customer;
|
||||||
|
|
||||||
|
|||||||
@ -4,9 +4,6 @@ import android.os.Parcel;
|
|||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 11/26/2015.
|
|
||||||
*/
|
|
||||||
public class DefaultAttribute implements Serializable {
|
public class DefaultAttribute implements Serializable {
|
||||||
int id;
|
int id;
|
||||||
String name;
|
String name;
|
||||||
|
|||||||
@ -4,9 +4,7 @@ import android.os.Parcel;
|
|||||||
|
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 11/10/2015.
|
|
||||||
*/
|
|
||||||
public class Dimension implements Serializable {
|
public class Dimension implements Serializable {
|
||||||
|
|
||||||
private String length;
|
private String length;
|
||||||
|
|||||||
@ -1,7 +1,5 @@
|
|||||||
package me.gilo.woodroid.models;
|
package me.gilo.woodroid.models;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/8/2015.
|
|
||||||
*/
|
|
||||||
public class FeeLine {
|
public class FeeLine {
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,9 +5,6 @@ import android.os.Parcel;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 11/23/2015.
|
|
||||||
*/
|
|
||||||
public class Image implements Serializable{
|
public class Image implements Serializable{
|
||||||
private int id;
|
private int id;
|
||||||
private String date_created;
|
private String date_created;
|
||||||
|
|||||||
@ -5,9 +5,7 @@ import com.google.gson.annotations.SerializedName;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/7/2015.
|
|
||||||
*/
|
|
||||||
public class LineItem {
|
public class LineItem {
|
||||||
@SerializedName("product_id")
|
@SerializedName("product_id")
|
||||||
public int id;
|
public int id;
|
||||||
|
|||||||
@ -1,8 +1,5 @@
|
|||||||
package me.gilo.woodroid.models;
|
package me.gilo.woodroid.models;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/8/2015.
|
|
||||||
*/
|
|
||||||
public class Line_item {
|
public class Line_item {
|
||||||
private int product_id;
|
private int product_id;
|
||||||
private int quantity;
|
private int quantity;
|
||||||
|
|||||||
@ -1,8 +1,6 @@
|
|||||||
package me.gilo.woodroid.models;
|
package me.gilo.woodroid.models;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/7/2015.
|
|
||||||
*/
|
|
||||||
public class Metum {
|
public class Metum {
|
||||||
public String key;
|
public String key;
|
||||||
public String label;
|
public String label;
|
||||||
|
|||||||
@ -1,8 +1,5 @@
|
|||||||
package me.gilo.woodroid.models;
|
package me.gilo.woodroid.models;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 11/26/2015.
|
|
||||||
*/
|
|
||||||
public class Option {
|
public class Option {
|
||||||
private String[] size;
|
private String[] size;
|
||||||
|
|
||||||
|
|||||||
@ -5,9 +5,7 @@ import com.google.gson.annotations.SerializedName;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/7/2015.
|
|
||||||
*/
|
|
||||||
public class Order {
|
public class Order {
|
||||||
public int id;
|
public int id;
|
||||||
@SerializedName("order_number")
|
@SerializedName("order_number")
|
||||||
|
|||||||
@ -1,8 +1,5 @@
|
|||||||
package me.gilo.woodroid.models;
|
package me.gilo.woodroid.models;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/12/2015.
|
|
||||||
*/
|
|
||||||
public class OrderData {
|
public class OrderData {
|
||||||
Order order;
|
Order order;
|
||||||
|
|
||||||
|
|||||||
@ -5,9 +5,7 @@ import com.google.gson.annotations.SerializedName;
|
|||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/7/2015.
|
|
||||||
*/
|
|
||||||
public class OrderNote {
|
public class OrderNote {
|
||||||
int id;
|
int id;
|
||||||
String author;
|
String author;
|
||||||
|
|||||||
@ -2,9 +2,7 @@ package me.gilo.woodroid.models;
|
|||||||
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/7/2015.
|
|
||||||
*/
|
|
||||||
public class PaymentDetails {
|
public class PaymentDetails {
|
||||||
@SerializedName("method_id")
|
@SerializedName("method_id")
|
||||||
public String methodId;
|
public String methodId;
|
||||||
|
|||||||
@ -3,9 +3,7 @@ package me.gilo.woodroid.models;
|
|||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/9/2015.
|
|
||||||
*/
|
|
||||||
public class ProductReview implements Serializable{
|
public class ProductReview implements Serializable{
|
||||||
private int id;
|
private int id;
|
||||||
private Date date_created;
|
private Date date_created;
|
||||||
|
|||||||
@ -2,9 +2,6 @@ package me.gilo.woodroid.models;
|
|||||||
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/7/2015.
|
|
||||||
*/
|
|
||||||
public class ShippingAddress {
|
public class ShippingAddress {
|
||||||
public int id;
|
public int id;
|
||||||
@SerializedName("first_name")
|
@SerializedName("first_name")
|
||||||
|
|||||||
@ -2,9 +2,6 @@ package me.gilo.woodroid.models;
|
|||||||
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/7/2015.
|
|
||||||
*/
|
|
||||||
public class ShippingClass {
|
public class ShippingClass {
|
||||||
public int id;
|
public int id;
|
||||||
String name;
|
String name;
|
||||||
|
|||||||
@ -2,9 +2,7 @@ package me.gilo.woodroid.models;
|
|||||||
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/8/2015.
|
|
||||||
*/
|
|
||||||
public class ShippingLine {
|
public class ShippingLine {
|
||||||
@SerializedName("method_id")
|
@SerializedName("method_id")
|
||||||
private String id;
|
private String id;
|
||||||
|
|||||||
@ -1,8 +1,5 @@
|
|||||||
package me.gilo.woodroid.models;
|
package me.gilo.woodroid.models;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/8/2015.
|
|
||||||
*/
|
|
||||||
public class TaxClass {
|
public class TaxClass {
|
||||||
String slug;
|
String slug;
|
||||||
String name;
|
String name;
|
||||||
|
|||||||
@ -1,8 +1,6 @@
|
|||||||
package me.gilo.woodroid.models;
|
package me.gilo.woodroid.models;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/8/2015.
|
|
||||||
*/
|
|
||||||
public class TaxLine {
|
public class TaxLine {
|
||||||
private int id;
|
private int id;
|
||||||
private int rate_id;
|
private int rate_id;
|
||||||
|
|||||||
@ -1,8 +1,5 @@
|
|||||||
package me.gilo.woodroid.models;
|
package me.gilo.woodroid.models;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 12/8/2015.
|
|
||||||
*/
|
|
||||||
public class TaxRate {
|
public class TaxRate {
|
||||||
private int id;
|
private int id;
|
||||||
private String country;
|
private String country;
|
||||||
|
|||||||
@ -1,8 +1,5 @@
|
|||||||
package me.gilo.woodroid.models;
|
package me.gilo.woodroid.models;
|
||||||
|
|
||||||
/**
|
|
||||||
* Created by Aron on 1/24/2016.
|
|
||||||
*/
|
|
||||||
public class TopSellers {
|
public class TopSellers {
|
||||||
private String title;
|
private String title;
|
||||||
private int product_id;
|
private int product_id;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user