// Path: lib/src/main/java/io/xpush/chat/persist/UserTable.java
// public class UserTable {
// 
//     public static final String KEY_ROWID = "_id";
//     public static final String KEY_ID = "id";
//     public static final String KEY_NAME = "name";
//     public static final String KEY_IMAGE = "image";
//     public static final String KEY_MESSAGE = "message";
//     public static final String KEY_UPDATED = "updated";
//     public static final String KEY_TYPE = "type";
//     public static String SQLITE_TABLE;
// 
//     public static void onCreate(SQLiteDatabase db, String tableName) {
//         SQLITE_TABLE = tableName;
// 
//         db.execSQL("DROP TABLE IF EXISTS " + tableName);
// 
//         String DATABASE_CREATE =
//                 "CREATE TABLE if not exists " + tableName + " (" +
//                         KEY_ROWID + " integer PRIMARY KEY autoincrement," +
//                         KEY_ID + " unique ," +
//                         KEY_NAME + "," +
//                         KEY_IMAGE + "," +
//                         KEY_MESSAGE + "," +
//                         KEY_TYPE +" integer," +
//                         KEY_UPDATED + " integer );";
// 
//         db.execSQL(DATABASE_CREATE);
//     }
// 
//     public static void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion, String tableName) {
//         SQLITE_TABLE = tableName;
// 
//         db.execSQL("DROP TABLE IF EXISTS " + tableName);
//         onCreate(db, tableName);
//     }
// }


import android.database.Cursor;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import org.json.JSONObject;
import io.xpush.chat.persist.UserTable;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getUpdated() {
        return updated;
    }

    public void setUpdated(long updated) {
        this.updated = updated;
    }

    public XPushUser(){
    }

    public XPushUser(Parcel in) {
        readFromParcel(in);
    }

    public XPushUser(Cursor cursor){
// Path: lib/src/main/java/io/xpush/chat/persist/UserTable.java
// public class UserTable {
// 
//     public static final String KEY_ROWID = "_id";
//     public static final String KEY_ID = "id";
//     public static final String KEY_NAME = "name";
//     public static final String KEY_IMAGE = "image";
//     public static final String KEY_MESSAGE = "message";
//     public static final String KEY_UPDATED = "updated";
//     public static final String KEY_TYPE = "type";
//     public static String SQLITE_TABLE;
// 
//     public static void onCreate(SQLiteDatabase db, String tableName) {
//         SQLITE_TABLE = tableName;
// 
//         db.execSQL("DROP TABLE IF EXISTS " + tableName);
// 
//         String DATABASE_CREATE =
//                 "CREATE TABLE if not exists " + tableName + " (" +
//                         KEY_ROWID + " integer PRIMARY KEY autoincrement," +
//                         KEY_ID + " unique ," +
//                         KEY_NAME + "," +
//                         KEY_IMAGE + "," +
//                         KEY_MESSAGE + "," +
//                         KEY_TYPE +" integer," +
//                         KEY_UPDATED + " integer );";
// 
//         db.execSQL(DATABASE_CREATE);
//     }
// 
//     public static void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion, String tableName) {
//         SQLITE_TABLE = tableName;
// 
//         db.execSQL("DROP TABLE IF EXISTS " + tableName);
//         onCreate(db, tableName);
//     }
// }


// Path: lib/src/main/java/io/xpush/chat/models/XPushUser.java
import android.database.Cursor;
import android.os.Bundle;
import android.os.Parcel;
import android.os.Parcelable;
import org.json.JSONObject;
import io.xpush.chat.persist.UserTable;

    }

    public void setMessage(String message) {
        this.message = message;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public long getUpdated() {
        return updated;
    }

    public void setUpdated(long updated) {
        this.updated = updated;
    }

    public XPushUser(){
    }

    public XPushUser(Parcel in) {
        readFromParcel(in);
    }

    public XPushUser(Cursor cursor){
        this.rowId= cursor.getString(cursor.getColumnIndexOrThrow(UserTable.KEY_ROWID));