// Path: lib/src/main/java/io/xpush/chat/persist/ChannelTable.java
// public class ChannelTable {
// 
//     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_USERS = "users";
//     public static final String KEY_IMAGE = "image";
//     public static final String KEY_COUNT = "count";
//     public static final String KEY_MESSAGE = "message";
//     public static final String KEY_MESSAGE_TYPE = "message_type";
//     public static final String KEY_UPDATED = "updated";
//     public static String SQLITE_TABLE;
// 
//     public static final String[] ALL_PROJECTION = {
//         KEY_ROWID,
//         KEY_ID,
//         KEY_NAME,
//         KEY_USERS,
//         KEY_IMAGE,
//         KEY_COUNT,
//         KEY_MESSAGE,
//         KEY_MESSAGE_TYPE,
//         KEY_UPDATED
//     };
// 
//     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_USERS + "," +
//                         KEY_IMAGE + "," +
//                         KEY_COUNT + " integer ," +
//                         KEY_MESSAGE + "," +
//                         KEY_MESSAGE_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 java.util.ArrayList;
import java.util.Arrays;
import io.xpush.chat.persist.ChannelTable;
    }

    public long getUpdated() {
        return updated;
    }

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

    public int getMessageType(){
        return messageType;
    }

    public void setMessageType(int messageType){
        this.messageType = messageType;
    }

    public ArrayList<String> getUserNames() {
        return userNames;
    }

    public void setUserNames(ArrayList<String> userNames) {
        this.userNames = userNames;
    }

    public XPushChannel(){
    }

    public XPushChannel(Cursor cursor){
// Path: lib/src/main/java/io/xpush/chat/persist/ChannelTable.java
// public class ChannelTable {
// 
//     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_USERS = "users";
//     public static final String KEY_IMAGE = "image";
//     public static final String KEY_COUNT = "count";
//     public static final String KEY_MESSAGE = "message";
//     public static final String KEY_MESSAGE_TYPE = "message_type";
//     public static final String KEY_UPDATED = "updated";
//     public static String SQLITE_TABLE;
// 
//     public static final String[] ALL_PROJECTION = {
//         KEY_ROWID,
//         KEY_ID,
//         KEY_NAME,
//         KEY_USERS,
//         KEY_IMAGE,
//         KEY_COUNT,
//         KEY_MESSAGE,
//         KEY_MESSAGE_TYPE,
//         KEY_UPDATED
//     };
// 
//     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_USERS + "," +
//                         KEY_IMAGE + "," +
//                         KEY_COUNT + " integer ," +
//                         KEY_MESSAGE + "," +
//                         KEY_MESSAGE_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/XPushChannel.java
import android.database.Cursor;
import android.os.Bundle;
import java.util.ArrayList;
import java.util.Arrays;
import io.xpush.chat.persist.ChannelTable;

    }

    public long getUpdated() {
        return updated;
    }

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

    public int getMessageType(){
        return messageType;
    }

    public void setMessageType(int messageType){
        this.messageType = messageType;
    }

    public ArrayList<String> getUserNames() {
        return userNames;
    }

    public void setUserNames(ArrayList<String> userNames) {
        this.userNames = userNames;
    }

    public XPushChannel(){
    }

    public XPushChannel(Cursor cursor){
        this.rowId= cursor.getString(cursor.getColumnIndexOrThrow(ChannelTable.KEY_ROWID));