Commit e9fd4c637f62ed456e9731b1540206877c1ef563
0 parents
初次提交
Showing
87 changed files
with
4681 additions
and
0 deletions
Too many changes to show.
To preserve performance only 87 of 1607 files are displayed.
.gitignore
0 → 100644
MyDaoGenerator/.gitignore
0 → 100644
MyDaoGenerator/build.gradle
0 → 100644
| 1 | +++ a/MyDaoGenerator/build.gradle | |
| 1 | +apply plugin: 'application' | |
| 2 | +apply plugin: 'java' | |
| 3 | + | |
| 4 | +mainClassName = 'example.MyDaoGenerator' | |
| 5 | + | |
| 6 | +def outputDir = "../app/src/main/java" | |
| 7 | + | |
| 8 | +dependencies { | |
| 9 | + compile fileTree(dir: 'libs', include: ['*.jar']) | |
| 10 | + compile 'de.greenrobot:greendao-generator:1.3.1' | |
| 11 | +} | |
| 12 | + | |
| 13 | +task createDocs { | |
| 14 | + def docs = file(outputDir) | |
| 15 | + docs.mkdirs() | |
| 16 | +} | |
| 17 | + | |
| 18 | +run { | |
| 19 | + args outputDir | |
| 20 | +} | |
| 0 | 21 | \ No newline at end of file | ... | ... |
MyDaoGenerator/com/cmcc/migutvtwo/dao/DaoMaster.java
0 → 100644
| 1 | +++ a/MyDaoGenerator/com/cmcc/migutvtwo/dao/DaoMaster.java | |
| 1 | +package com.cmcc.migutvtwo.dao; | |
| 2 | + | |
| 3 | +import android.content.Context; | |
| 4 | +import android.database.sqlite.SQLiteDatabase; | |
| 5 | +import android.database.sqlite.SQLiteDatabase.CursorFactory; | |
| 6 | +import android.database.sqlite.SQLiteOpenHelper; | |
| 7 | +import android.util.Log; | |
| 8 | +import de.greenrobot.dao.AbstractDaoMaster; | |
| 9 | +import de.greenrobot.dao.identityscope.IdentityScopeType; | |
| 10 | + | |
| 11 | +import com.cmcc.migutvtwo.dao.SearchHistoryDao; | |
| 12 | +import com.cmcc.migutvtwo.dao.HistoryDao; | |
| 13 | +import com.cmcc.migutvtwo.dao.FavoriteDao; | |
| 14 | +import com.cmcc.migutvtwo.dao.LiveAlertDao; | |
| 15 | +import com.cmcc.migutvtwo.dao.PlayMemoryDao; | |
| 16 | + | |
| 17 | +// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. | |
| 18 | +/** | |
| 19 | + * Master of DAO (schema version 1002): knows all DAOs. | |
| 20 | +*/ | |
| 21 | +public class DaoMaster extends AbstractDaoMaster { | |
| 22 | + public static final int SCHEMA_VERSION = 1002; | |
| 23 | + | |
| 24 | + /** Creates underlying database table using DAOs. */ | |
| 25 | + public static void createAllTables(SQLiteDatabase db, boolean ifNotExists) { | |
| 26 | + SearchHistoryDao.createTable(db, ifNotExists); | |
| 27 | + HistoryDao.createTable(db, ifNotExists); | |
| 28 | + FavoriteDao.createTable(db, ifNotExists); | |
| 29 | + LiveAlertDao.createTable(db, ifNotExists); | |
| 30 | + PlayMemoryDao.createTable(db, ifNotExists); | |
| 31 | + } | |
| 32 | + | |
| 33 | + /** Drops underlying database table using DAOs. */ | |
| 34 | + public static void dropAllTables(SQLiteDatabase db, boolean ifExists) { | |
| 35 | + SearchHistoryDao.dropTable(db, ifExists); | |
| 36 | + HistoryDao.dropTable(db, ifExists); | |
| 37 | + FavoriteDao.dropTable(db, ifExists); | |
| 38 | + LiveAlertDao.dropTable(db, ifExists); | |
| 39 | + PlayMemoryDao.dropTable(db, ifExists); | |
| 40 | + } | |
| 41 | + | |
| 42 | + public static abstract class OpenHelper extends SQLiteOpenHelper { | |
| 43 | + | |
| 44 | + public OpenHelper(Context context, String name, CursorFactory factory) { | |
| 45 | + super(context, name, factory, SCHEMA_VERSION); | |
| 46 | + } | |
| 47 | + | |
| 48 | + @Override | |
| 49 | + public void onCreate(SQLiteDatabase db) { | |
| 50 | + Log.i("greenDAO", "Creating tables for schema version " + SCHEMA_VERSION); | |
| 51 | + createAllTables(db, false); | |
| 52 | + } | |
| 53 | + } | |
| 54 | + | |
| 55 | + /** WARNING: Drops all table on Upgrade! Use only during development. */ | |
| 56 | + public static class DevOpenHelper extends OpenHelper { | |
| 57 | + public DevOpenHelper(Context context, String name, CursorFactory factory) { | |
| 58 | + super(context, name, factory); | |
| 59 | + } | |
| 60 | + | |
| 61 | + @Override | |
| 62 | + public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) { | |
| 63 | + Log.i("greenDAO", "Upgrading schema from version " + oldVersion + " to " + newVersion + " by dropping all tables"); | |
| 64 | + dropAllTables(db, true); | |
| 65 | + onCreate(db); | |
| 66 | + } | |
| 67 | + } | |
| 68 | + | |
| 69 | + public DaoMaster(SQLiteDatabase db) { | |
| 70 | + super(db, SCHEMA_VERSION); | |
| 71 | + registerDaoClass(SearchHistoryDao.class); | |
| 72 | + registerDaoClass(HistoryDao.class); | |
| 73 | + registerDaoClass(FavoriteDao.class); | |
| 74 | + registerDaoClass(LiveAlertDao.class); | |
| 75 | + registerDaoClass(PlayMemoryDao.class); | |
| 76 | + } | |
| 77 | + | |
| 78 | + public DaoSession newSession() { | |
| 79 | + return new DaoSession(db, IdentityScopeType.Session, daoConfigMap); | |
| 80 | + } | |
| 81 | + | |
| 82 | + public DaoSession newSession(IdentityScopeType type) { | |
| 83 | + return new DaoSession(db, type, daoConfigMap); | |
| 84 | + } | |
| 85 | + | |
| 86 | +} | ... | ... |
MyDaoGenerator/com/cmcc/migutvtwo/dao/DaoSession.java
0 → 100644
| 1 | +++ a/MyDaoGenerator/com/cmcc/migutvtwo/dao/DaoSession.java | |
| 1 | +package com.cmcc.migutvtwo.dao; | |
| 2 | + | |
| 3 | +import android.database.sqlite.SQLiteDatabase; | |
| 4 | + | |
| 5 | +import java.util.Map; | |
| 6 | + | |
| 7 | +import de.greenrobot.dao.AbstractDao; | |
| 8 | +import de.greenrobot.dao.AbstractDaoSession; | |
| 9 | +import de.greenrobot.dao.identityscope.IdentityScopeType; | |
| 10 | +import de.greenrobot.dao.internal.DaoConfig; | |
| 11 | + | |
| 12 | +import com.cmcc.migutvtwo.dao.SearchHistory; | |
| 13 | +import com.cmcc.migutvtwo.dao.History; | |
| 14 | +import com.cmcc.migutvtwo.dao.Favorite; | |
| 15 | +import com.cmcc.migutvtwo.dao.LiveAlert; | |
| 16 | +import com.cmcc.migutvtwo.dao.PlayMemory; | |
| 17 | + | |
| 18 | +import com.cmcc.migutvtwo.dao.SearchHistoryDao; | |
| 19 | +import com.cmcc.migutvtwo.dao.HistoryDao; | |
| 20 | +import com.cmcc.migutvtwo.dao.FavoriteDao; | |
| 21 | +import com.cmcc.migutvtwo.dao.LiveAlertDao; | |
| 22 | +import com.cmcc.migutvtwo.dao.PlayMemoryDao; | |
| 23 | + | |
| 24 | +// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. | |
| 25 | + | |
| 26 | +/** | |
| 27 | + * {@inheritDoc} | |
| 28 | + * | |
| 29 | + * @see de.greenrobot.dao.AbstractDaoSession | |
| 30 | + */ | |
| 31 | +public class DaoSession extends AbstractDaoSession { | |
| 32 | + | |
| 33 | + private final DaoConfig searchHistoryDaoConfig; | |
| 34 | + private final DaoConfig historyDaoConfig; | |
| 35 | + private final DaoConfig favoriteDaoConfig; | |
| 36 | + private final DaoConfig liveAlertDaoConfig; | |
| 37 | + private final DaoConfig playMemoryDaoConfig; | |
| 38 | + | |
| 39 | + private final SearchHistoryDao searchHistoryDao; | |
| 40 | + private final HistoryDao historyDao; | |
| 41 | + private final FavoriteDao favoriteDao; | |
| 42 | + private final LiveAlertDao liveAlertDao; | |
| 43 | + private final PlayMemoryDao playMemoryDao; | |
| 44 | + | |
| 45 | + public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> | |
| 46 | + daoConfigMap) { | |
| 47 | + super(db); | |
| 48 | + | |
| 49 | + searchHistoryDaoConfig = daoConfigMap.get(SearchHistoryDao.class).clone(); | |
| 50 | + searchHistoryDaoConfig.initIdentityScope(type); | |
| 51 | + | |
| 52 | + historyDaoConfig = daoConfigMap.get(HistoryDao.class).clone(); | |
| 53 | + historyDaoConfig.initIdentityScope(type); | |
| 54 | + | |
| 55 | + favoriteDaoConfig = daoConfigMap.get(FavoriteDao.class).clone(); | |
| 56 | + favoriteDaoConfig.initIdentityScope(type); | |
| 57 | + | |
| 58 | + liveAlertDaoConfig = daoConfigMap.get(LiveAlertDao.class).clone(); | |
| 59 | + liveAlertDaoConfig.initIdentityScope(type); | |
| 60 | + | |
| 61 | + playMemoryDaoConfig = daoConfigMap.get(PlayMemoryDao.class).clone(); | |
| 62 | + playMemoryDaoConfig.initIdentityScope(type); | |
| 63 | + | |
| 64 | + searchHistoryDao = new SearchHistoryDao(searchHistoryDaoConfig, this); | |
| 65 | + historyDao = new HistoryDao(historyDaoConfig, this); | |
| 66 | + favoriteDao = new FavoriteDao(favoriteDaoConfig, this); | |
| 67 | + liveAlertDao = new LiveAlertDao(liveAlertDaoConfig, this); | |
| 68 | + playMemoryDao = new PlayMemoryDao(playMemoryDaoConfig, this); | |
| 69 | + | |
| 70 | + registerDao(SearchHistory.class, searchHistoryDao); | |
| 71 | + registerDao(History.class, historyDao); | |
| 72 | + registerDao(Favorite.class, favoriteDao); | |
| 73 | + registerDao(LiveAlert.class, liveAlertDao); | |
| 74 | + registerDao(PlayMemory.class, playMemoryDao); | |
| 75 | + } | |
| 76 | + | |
| 77 | + public void clear() { | |
| 78 | + searchHistoryDaoConfig.getIdentityScope().clear(); | |
| 79 | + historyDaoConfig.getIdentityScope().clear(); | |
| 80 | + favoriteDaoConfig.getIdentityScope().clear(); | |
| 81 | + liveAlertDaoConfig.getIdentityScope().clear(); | |
| 82 | + playMemoryDaoConfig.getIdentityScope().clear(); | |
| 83 | + } | |
| 84 | + | |
| 85 | + public SearchHistoryDao getSearchHistoryDao() { | |
| 86 | + return searchHistoryDao; | |
| 87 | + } | |
| 88 | + | |
| 89 | + public HistoryDao getHistoryDao() { | |
| 90 | + return historyDao; | |
| 91 | + } | |
| 92 | + | |
| 93 | + public FavoriteDao getFavoriteDao() { | |
| 94 | + return favoriteDao; | |
| 95 | + } | |
| 96 | + | |
| 97 | + public LiveAlertDao getLiveAlertDao() { | |
| 98 | + return liveAlertDao; | |
| 99 | + } | |
| 100 | + | |
| 101 | + public PlayMemoryDao getPlayMemoryDao() { | |
| 102 | + return playMemoryDao; | |
| 103 | + } | |
| 104 | + | |
| 105 | +} | ... | ... |
MyDaoGenerator/com/cmcc/migutvtwo/dao/Favorite.java
0 → 100644
| 1 | +++ a/MyDaoGenerator/com/cmcc/migutvtwo/dao/Favorite.java | |
| 1 | +package com.cmcc.migutvtwo.dao; | |
| 2 | + | |
| 3 | +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS | |
| 4 | + | |
| 5 | +// KEEP INCLUDES - put your custom includes here | |
| 6 | +// KEEP INCLUDES END | |
| 7 | +/** | |
| 8 | + * Entity mapped to table FAVORITE. | |
| 9 | + */ | |
| 10 | +public class Favorite { | |
| 11 | + | |
| 12 | + private String id; | |
| 13 | + private String contentName; | |
| 14 | + private String liveName; | |
| 15 | + private String contentPic; | |
| 16 | + | |
| 17 | + // KEEP FIELDS - put your custom fields here | |
| 18 | + // KEEP FIELDS END | |
| 19 | + | |
| 20 | + public Favorite() { | |
| 21 | + } | |
| 22 | + | |
| 23 | + public Favorite(String id) { | |
| 24 | + this.id = id; | |
| 25 | + } | |
| 26 | + | |
| 27 | + public Favorite(String id, String contentName, String liveName, String contentPic) { | |
| 28 | + this.id = id; | |
| 29 | + this.contentName = contentName; | |
| 30 | + this.liveName = liveName; | |
| 31 | + this.contentPic = contentPic; | |
| 32 | + } | |
| 33 | + | |
| 34 | + public String getId() { | |
| 35 | + return id; | |
| 36 | + } | |
| 37 | + | |
| 38 | + public void setId(String id) { | |
| 39 | + this.id = id; | |
| 40 | + } | |
| 41 | + | |
| 42 | + public String getContentName() { | |
| 43 | + return contentName; | |
| 44 | + } | |
| 45 | + | |
| 46 | + public void setContentName(String contentName) { | |
| 47 | + this.contentName = contentName; | |
| 48 | + } | |
| 49 | + | |
| 50 | + public String getLiveName() { | |
| 51 | + return liveName; | |
| 52 | + } | |
| 53 | + | |
| 54 | + public void setLiveName(String liveName) { | |
| 55 | + this.liveName = liveName; | |
| 56 | + } | |
| 57 | + | |
| 58 | + public String getContentPic() { | |
| 59 | + return contentPic; | |
| 60 | + } | |
| 61 | + | |
| 62 | + public void setContentPic(String contentPic) { | |
| 63 | + this.contentPic = contentPic; | |
| 64 | + } | |
| 65 | + | |
| 66 | + // KEEP METHODS - put your custom methods here | |
| 67 | + // KEEP METHODS END | |
| 68 | + | |
| 69 | +} | ... | ... |
MyDaoGenerator/com/cmcc/migutvtwo/dao/FavoriteDao.java
0 → 100644
| 1 | +++ a/MyDaoGenerator/com/cmcc/migutvtwo/dao/FavoriteDao.java | |
| 1 | +package com.cmcc.migutvtwo.dao; | |
| 2 | + | |
| 3 | +import android.database.Cursor; | |
| 4 | +import android.database.sqlite.SQLiteDatabase; | |
| 5 | +import android.database.sqlite.SQLiteStatement; | |
| 6 | + | |
| 7 | +import de.greenrobot.dao.AbstractDao; | |
| 8 | +import de.greenrobot.dao.Property; | |
| 9 | +import de.greenrobot.dao.internal.DaoConfig; | |
| 10 | + | |
| 11 | +import com.cmcc.migutvtwo.dao.Favorite; | |
| 12 | + | |
| 13 | +// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. | |
| 14 | +/** | |
| 15 | + * DAO for table FAVORITE. | |
| 16 | +*/ | |
| 17 | +public class FavoriteDao extends AbstractDao<Favorite, String> { | |
| 18 | + | |
| 19 | + public static final String TABLENAME = "FAVORITE"; | |
| 20 | + | |
| 21 | + /** | |
| 22 | + * Properties of entity Favorite.<br/> | |
| 23 | + * Can be used for QueryBuilder and for referencing column names. | |
| 24 | + */ | |
| 25 | + public static class Properties { | |
| 26 | + public final static Property Id = new Property(0, String.class, "id", true, "ID"); | |
| 27 | + public final static Property ContentName = new Property(1, String.class, "contentName", false, "CONTENT_NAME"); | |
| 28 | + public final static Property LiveName = new Property(2, String.class, "liveName", false, "LIVE_NAME"); | |
| 29 | + public final static Property ContentPic = new Property(3, String.class, "contentPic", false, "CONTENT_PIC"); | |
| 30 | + }; | |
| 31 | + | |
| 32 | + | |
| 33 | + public FavoriteDao(DaoConfig config) { | |
| 34 | + super(config); | |
| 35 | + } | |
| 36 | + | |
| 37 | + public FavoriteDao(DaoConfig config, DaoSession daoSession) { | |
| 38 | + super(config, daoSession); | |
| 39 | + } | |
| 40 | + | |
| 41 | + /** Creates the underlying database table. */ | |
| 42 | + public static void createTable(SQLiteDatabase db, boolean ifNotExists) { | |
| 43 | + String constraint = ifNotExists? "IF NOT EXISTS ": ""; | |
| 44 | + db.execSQL("CREATE TABLE " + constraint + "'FAVORITE' (" + // | |
| 45 | + "'ID' TEXT PRIMARY KEY NOT NULL ," + // 0: id | |
| 46 | + "'CONTENT_NAME' TEXT," + // 1: contentName | |
| 47 | + "'LIVE_NAME' TEXT," + // 2: liveName | |
| 48 | + "'CONTENT_PIC' TEXT);"); // 3: contentPic | |
| 49 | + } | |
| 50 | + | |
| 51 | + /** Drops the underlying database table. */ | |
| 52 | + public static void dropTable(SQLiteDatabase db, boolean ifExists) { | |
| 53 | + String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "'FAVORITE'"; | |
| 54 | + db.execSQL(sql); | |
| 55 | + } | |
| 56 | + | |
| 57 | + /** @inheritdoc */ | |
| 58 | + @Override | |
| 59 | + protected void bindValues(SQLiteStatement stmt, Favorite entity) { | |
| 60 | + stmt.clearBindings(); | |
| 61 | + | |
| 62 | + String id = entity.getId(); | |
| 63 | + if (id != null) { | |
| 64 | + stmt.bindString(1, id); | |
| 65 | + } | |
| 66 | + | |
| 67 | + String contentName = entity.getContentName(); | |
| 68 | + if (contentName != null) { | |
| 69 | + stmt.bindString(2, contentName); | |
| 70 | + } | |
| 71 | + | |
| 72 | + String liveName = entity.getLiveName(); | |
| 73 | + if (liveName != null) { | |
| 74 | + stmt.bindString(3, liveName); | |
| 75 | + } | |
| 76 | + | |
| 77 | + String contentPic = entity.getContentPic(); | |
| 78 | + if (contentPic != null) { | |
| 79 | + stmt.bindString(4, contentPic); | |
| 80 | + } | |
| 81 | + } | |
| 82 | + | |
| 83 | + /** @inheritdoc */ | |
| 84 | + @Override | |
| 85 | + public String readKey(Cursor cursor, int offset) { | |
| 86 | + return cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0); | |
| 87 | + } | |
| 88 | + | |
| 89 | + /** @inheritdoc */ | |
| 90 | + @Override | |
| 91 | + public Favorite readEntity(Cursor cursor, int offset) { | |
| 92 | + Favorite entity = new Favorite( // | |
| 93 | + cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0), // id | |
| 94 | + cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // contentName | |
| 95 | + cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // liveName | |
| 96 | + cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3) // contentPic | |
| 97 | + ); | |
| 98 | + return entity; | |
| 99 | + } | |
| 100 | + | |
| 101 | + /** @inheritdoc */ | |
| 102 | + @Override | |
| 103 | + public void readEntity(Cursor cursor, Favorite entity, int offset) { | |
| 104 | + entity.setId(cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0)); | |
| 105 | + entity.setContentName(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1)); | |
| 106 | + entity.setLiveName(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2)); | |
| 107 | + entity.setContentPic(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3)); | |
| 108 | + } | |
| 109 | + | |
| 110 | + /** @inheritdoc */ | |
| 111 | + @Override | |
| 112 | + protected String updateKeyAfterInsert(Favorite entity, long rowId) { | |
| 113 | + return entity.getId(); | |
| 114 | + } | |
| 115 | + | |
| 116 | + /** @inheritdoc */ | |
| 117 | + @Override | |
| 118 | + public String getKey(Favorite entity) { | |
| 119 | + if(entity != null) { | |
| 120 | + return entity.getId(); | |
| 121 | + } else { | |
| 122 | + return null; | |
| 123 | + } | |
| 124 | + } | |
| 125 | + | |
| 126 | + /** @inheritdoc */ | |
| 127 | + @Override | |
| 128 | + protected boolean isEntityUpdateable() { | |
| 129 | + return true; | |
| 130 | + } | |
| 131 | + | |
| 132 | +} | ... | ... |
MyDaoGenerator/com/cmcc/migutvtwo/dao/History.java
0 → 100644
| 1 | +++ a/MyDaoGenerator/com/cmcc/migutvtwo/dao/History.java | |
| 1 | +package com.cmcc.migutvtwo.dao; | |
| 2 | + | |
| 3 | +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS | |
| 4 | + | |
| 5 | +// KEEP INCLUDES - put your custom includes here | |
| 6 | +// KEEP INCLUDES END | |
| 7 | +/** | |
| 8 | + * Entity mapped to table HISTORY. | |
| 9 | + */ | |
| 10 | +public class History { | |
| 11 | + | |
| 12 | + private String id; | |
| 13 | + private String contentName; | |
| 14 | + private String liveName; | |
| 15 | + private String contentPic; | |
| 16 | + | |
| 17 | + // KEEP FIELDS - put your custom fields here | |
| 18 | + // KEEP FIELDS END | |
| 19 | + | |
| 20 | + public History() { | |
| 21 | + } | |
| 22 | + | |
| 23 | + public History(String id) { | |
| 24 | + this.id = id; | |
| 25 | + } | |
| 26 | + | |
| 27 | + public History(String id, String contentName, String liveName, String contentPic) { | |
| 28 | + this.id = id; | |
| 29 | + this.contentName = contentName; | |
| 30 | + this.liveName = liveName; | |
| 31 | + this.contentPic = contentPic; | |
| 32 | + } | |
| 33 | + | |
| 34 | + public String getId() { | |
| 35 | + return id; | |
| 36 | + } | |
| 37 | + | |
| 38 | + public void setId(String id) { | |
| 39 | + this.id = id; | |
| 40 | + } | |
| 41 | + | |
| 42 | + public String getContentName() { | |
| 43 | + return contentName; | |
| 44 | + } | |
| 45 | + | |
| 46 | + public void setContentName(String contentName) { | |
| 47 | + this.contentName = contentName; | |
| 48 | + } | |
| 49 | + | |
| 50 | + public String getLiveName() { | |
| 51 | + return liveName; | |
| 52 | + } | |
| 53 | + | |
| 54 | + public void setLiveName(String liveName) { | |
| 55 | + this.liveName = liveName; | |
| 56 | + } | |
| 57 | + | |
| 58 | + public String getContentPic() { | |
| 59 | + return contentPic; | |
| 60 | + } | |
| 61 | + | |
| 62 | + public void setContentPic(String contentPic) { | |
| 63 | + this.contentPic = contentPic; | |
| 64 | + } | |
| 65 | + | |
| 66 | + // KEEP METHODS - put your custom methods here | |
| 67 | + // KEEP METHODS END | |
| 68 | + | |
| 69 | +} | ... | ... |
MyDaoGenerator/com/cmcc/migutvtwo/dao/HistoryDao.java
0 → 100644
| 1 | +++ a/MyDaoGenerator/com/cmcc/migutvtwo/dao/HistoryDao.java | |
| 1 | +package com.cmcc.migutvtwo.dao; | |
| 2 | + | |
| 3 | +import android.database.Cursor; | |
| 4 | +import android.database.sqlite.SQLiteDatabase; | |
| 5 | +import android.database.sqlite.SQLiteStatement; | |
| 6 | + | |
| 7 | +import de.greenrobot.dao.AbstractDao; | |
| 8 | +import de.greenrobot.dao.Property; | |
| 9 | +import de.greenrobot.dao.internal.DaoConfig; | |
| 10 | + | |
| 11 | +import com.cmcc.migutvtwo.dao.History; | |
| 12 | + | |
| 13 | +// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. | |
| 14 | +/** | |
| 15 | + * DAO for table HISTORY. | |
| 16 | +*/ | |
| 17 | +public class HistoryDao extends AbstractDao<History, String> { | |
| 18 | + | |
| 19 | + public static final String TABLENAME = "HISTORY"; | |
| 20 | + | |
| 21 | + /** | |
| 22 | + * Properties of entity History.<br/> | |
| 23 | + * Can be used for QueryBuilder and for referencing column names. | |
| 24 | + */ | |
| 25 | + public static class Properties { | |
| 26 | + public final static Property Id = new Property(0, String.class, "id", true, "ID"); | |
| 27 | + public final static Property ContentName = new Property(1, String.class, "contentName", false, "CONTENT_NAME"); | |
| 28 | + public final static Property LiveName = new Property(2, String.class, "liveName", false, "LIVE_NAME"); | |
| 29 | + public final static Property ContentPic = new Property(3, String.class, "contentPic", false, "CONTENT_PIC"); | |
| 30 | + }; | |
| 31 | + | |
| 32 | + | |
| 33 | + public HistoryDao(DaoConfig config) { | |
| 34 | + super(config); | |
| 35 | + } | |
| 36 | + | |
| 37 | + public HistoryDao(DaoConfig config, DaoSession daoSession) { | |
| 38 | + super(config, daoSession); | |
| 39 | + } | |
| 40 | + | |
| 41 | + /** Creates the underlying database table. */ | |
| 42 | + public static void createTable(SQLiteDatabase db, boolean ifNotExists) { | |
| 43 | + String constraint = ifNotExists? "IF NOT EXISTS ": ""; | |
| 44 | + db.execSQL("CREATE TABLE " + constraint + "'HISTORY' (" + // | |
| 45 | + "'ID' TEXT PRIMARY KEY NOT NULL ," + // 0: id | |
| 46 | + "'CONTENT_NAME' TEXT," + // 1: contentName | |
| 47 | + "'LIVE_NAME' TEXT," + // 2: liveName | |
| 48 | + "'CONTENT_PIC' TEXT);"); // 3: contentPic | |
| 49 | + } | |
| 50 | + | |
| 51 | + /** Drops the underlying database table. */ | |
| 52 | + public static void dropTable(SQLiteDatabase db, boolean ifExists) { | |
| 53 | + String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "'HISTORY'"; | |
| 54 | + db.execSQL(sql); | |
| 55 | + } | |
| 56 | + | |
| 57 | + /** @inheritdoc */ | |
| 58 | + @Override | |
| 59 | + protected void bindValues(SQLiteStatement stmt, History entity) { | |
| 60 | + stmt.clearBindings(); | |
| 61 | + | |
| 62 | + String id = entity.getId(); | |
| 63 | + if (id != null) { | |
| 64 | + stmt.bindString(1, id); | |
| 65 | + } | |
| 66 | + | |
| 67 | + String contentName = entity.getContentName(); | |
| 68 | + if (contentName != null) { | |
| 69 | + stmt.bindString(2, contentName); | |
| 70 | + } | |
| 71 | + | |
| 72 | + String liveName = entity.getLiveName(); | |
| 73 | + if (liveName != null) { | |
| 74 | + stmt.bindString(3, liveName); | |
| 75 | + } | |
| 76 | + | |
| 77 | + String contentPic = entity.getContentPic(); | |
| 78 | + if (contentPic != null) { | |
| 79 | + stmt.bindString(4, contentPic); | |
| 80 | + } | |
| 81 | + } | |
| 82 | + | |
| 83 | + /** @inheritdoc */ | |
| 84 | + @Override | |
| 85 | + public String readKey(Cursor cursor, int offset) { | |
| 86 | + return cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0); | |
| 87 | + } | |
| 88 | + | |
| 89 | + /** @inheritdoc */ | |
| 90 | + @Override | |
| 91 | + public History readEntity(Cursor cursor, int offset) { | |
| 92 | + History entity = new History( // | |
| 93 | + cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0), // id | |
| 94 | + cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // contentName | |
| 95 | + cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // liveName | |
| 96 | + cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3) // contentPic | |
| 97 | + ); | |
| 98 | + return entity; | |
| 99 | + } | |
| 100 | + | |
| 101 | + /** @inheritdoc */ | |
| 102 | + @Override | |
| 103 | + public void readEntity(Cursor cursor, History entity, int offset) { | |
| 104 | + entity.setId(cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0)); | |
| 105 | + entity.setContentName(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1)); | |
| 106 | + entity.setLiveName(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2)); | |
| 107 | + entity.setContentPic(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3)); | |
| 108 | + } | |
| 109 | + | |
| 110 | + /** @inheritdoc */ | |
| 111 | + @Override | |
| 112 | + protected String updateKeyAfterInsert(History entity, long rowId) { | |
| 113 | + return entity.getId(); | |
| 114 | + } | |
| 115 | + | |
| 116 | + /** @inheritdoc */ | |
| 117 | + @Override | |
| 118 | + public String getKey(History entity) { | |
| 119 | + if(entity != null) { | |
| 120 | + return entity.getId(); | |
| 121 | + } else { | |
| 122 | + return null; | |
| 123 | + } | |
| 124 | + } | |
| 125 | + | |
| 126 | + /** @inheritdoc */ | |
| 127 | + @Override | |
| 128 | + protected boolean isEntityUpdateable() { | |
| 129 | + return true; | |
| 130 | + } | |
| 131 | + | |
| 132 | +} | ... | ... |
MyDaoGenerator/com/cmcc/migutvtwo/dao/LiveAlert.java
0 → 100644
| 1 | +++ a/MyDaoGenerator/com/cmcc/migutvtwo/dao/LiveAlert.java | |
| 1 | +package com.cmcc.migutvtwo.dao; | |
| 2 | + | |
| 3 | +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS | |
| 4 | + | |
| 5 | +// KEEP INCLUDES - put your custom includes here | |
| 6 | +// KEEP INCLUDES END | |
| 7 | +/** | |
| 8 | + * Entity mapped to table LIVE_ALERT. | |
| 9 | + */ | |
| 10 | +public class LiveAlert { | |
| 11 | + | |
| 12 | + private String id; | |
| 13 | + private String num; | |
| 14 | + private String date; | |
| 15 | + private String time; | |
| 16 | + private String title; | |
| 17 | + private String contid; | |
| 18 | + private String liveName; | |
| 19 | + private String extend1; | |
| 20 | + private java.util.Date alert_time; | |
| 21 | + | |
| 22 | + // KEEP FIELDS - put your custom fields here | |
| 23 | + // KEEP FIELDS END | |
| 24 | + | |
| 25 | + public LiveAlert() { | |
| 26 | + } | |
| 27 | + | |
| 28 | + public LiveAlert(String id) { | |
| 29 | + this.id = id; | |
| 30 | + } | |
| 31 | + | |
| 32 | + public LiveAlert(String id, String num, String date, String time, String title, String contid, String liveName, String extend1, java.util.Date alert_time) { | |
| 33 | + this.id = id; | |
| 34 | + this.num = num; | |
| 35 | + this.date = date; | |
| 36 | + this.time = time; | |
| 37 | + this.title = title; | |
| 38 | + this.contid = contid; | |
| 39 | + this.liveName = liveName; | |
| 40 | + this.extend1 = extend1; | |
| 41 | + this.alert_time = alert_time; | |
| 42 | + } | |
| 43 | + | |
| 44 | + public String getId() { | |
| 45 | + return id; | |
| 46 | + } | |
| 47 | + | |
| 48 | + public void setId(String id) { | |
| 49 | + this.id = id; | |
| 50 | + } | |
| 51 | + | |
| 52 | + public String getNum() { | |
| 53 | + return num; | |
| 54 | + } | |
| 55 | + | |
| 56 | + public void setNum(String num) { | |
| 57 | + this.num = num; | |
| 58 | + } | |
| 59 | + | |
| 60 | + public String getDate() { | |
| 61 | + return date; | |
| 62 | + } | |
| 63 | + | |
| 64 | + public void setDate(String date) { | |
| 65 | + this.date = date; | |
| 66 | + } | |
| 67 | + | |
| 68 | + public String getTime() { | |
| 69 | + return time; | |
| 70 | + } | |
| 71 | + | |
| 72 | + public void setTime(String time) { | |
| 73 | + this.time = time; | |
| 74 | + } | |
| 75 | + | |
| 76 | + public String getTitle() { | |
| 77 | + return title; | |
| 78 | + } | |
| 79 | + | |
| 80 | + public void setTitle(String title) { | |
| 81 | + this.title = title; | |
| 82 | + } | |
| 83 | + | |
| 84 | + public String getContid() { | |
| 85 | + return contid; | |
| 86 | + } | |
| 87 | + | |
| 88 | + public void setContid(String contid) { | |
| 89 | + this.contid = contid; | |
| 90 | + } | |
| 91 | + | |
| 92 | + public String getLiveName() { | |
| 93 | + return liveName; | |
| 94 | + } | |
| 95 | + | |
| 96 | + public void setLiveName(String liveName) { | |
| 97 | + this.liveName = liveName; | |
| 98 | + } | |
| 99 | + | |
| 100 | + public String getExtend1() { | |
| 101 | + return extend1; | |
| 102 | + } | |
| 103 | + | |
| 104 | + public void setExtend1(String extend1) { | |
| 105 | + this.extend1 = extend1; | |
| 106 | + } | |
| 107 | + | |
| 108 | + public java.util.Date getAlert_time() { | |
| 109 | + return alert_time; | |
| 110 | + } | |
| 111 | + | |
| 112 | + public void setAlert_time(java.util.Date alert_time) { | |
| 113 | + this.alert_time = alert_time; | |
| 114 | + } | |
| 115 | + | |
| 116 | + // KEEP METHODS - put your custom methods here | |
| 117 | + // KEEP METHODS END | |
| 118 | + | |
| 119 | +} | ... | ... |
MyDaoGenerator/com/cmcc/migutvtwo/dao/LiveAlertDao.java
0 → 100644
| 1 | +++ a/MyDaoGenerator/com/cmcc/migutvtwo/dao/LiveAlertDao.java | |
| 1 | +package com.cmcc.migutvtwo.dao; | |
| 2 | + | |
| 3 | +import android.database.Cursor; | |
| 4 | +import android.database.sqlite.SQLiteDatabase; | |
| 5 | +import android.database.sqlite.SQLiteStatement; | |
| 6 | + | |
| 7 | +import de.greenrobot.dao.AbstractDao; | |
| 8 | +import de.greenrobot.dao.Property; | |
| 9 | +import de.greenrobot.dao.internal.DaoConfig; | |
| 10 | + | |
| 11 | +import com.cmcc.migutvtwo.dao.LiveAlert; | |
| 12 | + | |
| 13 | +// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. | |
| 14 | +/** | |
| 15 | + * DAO for table LIVE_ALERT. | |
| 16 | +*/ | |
| 17 | +public class LiveAlertDao extends AbstractDao<LiveAlert, String> { | |
| 18 | + | |
| 19 | + public static final String TABLENAME = "LIVE_ALERT"; | |
| 20 | + | |
| 21 | + /** | |
| 22 | + * Properties of entity LiveAlert.<br/> | |
| 23 | + * Can be used for QueryBuilder and for referencing column names. | |
| 24 | + */ | |
| 25 | + public static class Properties { | |
| 26 | + public final static Property Id = new Property(0, String.class, "id", true, "ID"); | |
| 27 | + public final static Property Num = new Property(1, String.class, "num", false, "NUM"); | |
| 28 | + public final static Property Date = new Property(2, String.class, "date", false, "DATE"); | |
| 29 | + public final static Property Time = new Property(3, String.class, "time", false, "TIME"); | |
| 30 | + public final static Property Title = new Property(4, String.class, "title", false, "TITLE"); | |
| 31 | + public final static Property Contid = new Property(5, String.class, "contid", false, "CONTID"); | |
| 32 | + public final static Property LiveName = new Property(6, String.class, "liveName", false, "LIVE_NAME"); | |
| 33 | + public final static Property Extend1 = new Property(7, String.class, "extend1", false, "EXTEND1"); | |
| 34 | + public final static Property Alert_time = new Property(8, java.util.Date.class, "alert_time", false, "ALERT_TIME"); | |
| 35 | + }; | |
| 36 | + | |
| 37 | + | |
| 38 | + public LiveAlertDao(DaoConfig config) { | |
| 39 | + super(config); | |
| 40 | + } | |
| 41 | + | |
| 42 | + public LiveAlertDao(DaoConfig config, DaoSession daoSession) { | |
| 43 | + super(config, daoSession); | |
| 44 | + } | |
| 45 | + | |
| 46 | + /** Creates the underlying database table. */ | |
| 47 | + public static void createTable(SQLiteDatabase db, boolean ifNotExists) { | |
| 48 | + String constraint = ifNotExists? "IF NOT EXISTS ": ""; | |
| 49 | + db.execSQL("CREATE TABLE " + constraint + "'LIVE_ALERT' (" + // | |
| 50 | + "'ID' TEXT PRIMARY KEY NOT NULL ," + // 0: id | |
| 51 | + "'NUM' TEXT," + // 1: num | |
| 52 | + "'DATE' TEXT," + // 2: date | |
| 53 | + "'TIME' TEXT," + // 3: time | |
| 54 | + "'TITLE' TEXT," + // 4: title | |
| 55 | + "'CONTID' TEXT," + // 5: contid | |
| 56 | + "'LIVE_NAME' TEXT," + // 6: liveName | |
| 57 | + "'EXTEND1' TEXT," + // 7: extend1 | |
| 58 | + "'ALERT_TIME' INTEGER);"); // 8: alert_time | |
| 59 | + } | |
| 60 | + | |
| 61 | + /** Drops the underlying database table. */ | |
| 62 | + public static void dropTable(SQLiteDatabase db, boolean ifExists) { | |
| 63 | + String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "'LIVE_ALERT'"; | |
| 64 | + db.execSQL(sql); | |
| 65 | + } | |
| 66 | + | |
| 67 | + /** @inheritdoc */ | |
| 68 | + @Override | |
| 69 | + protected void bindValues(SQLiteStatement stmt, LiveAlert entity) { | |
| 70 | + stmt.clearBindings(); | |
| 71 | + | |
| 72 | + String id = entity.getId(); | |
| 73 | + if (id != null) { | |
| 74 | + stmt.bindString(1, id); | |
| 75 | + } | |
| 76 | + | |
| 77 | + String num = entity.getNum(); | |
| 78 | + if (num != null) { | |
| 79 | + stmt.bindString(2, num); | |
| 80 | + } | |
| 81 | + | |
| 82 | + String date = entity.getDate(); | |
| 83 | + if (date != null) { | |
| 84 | + stmt.bindString(3, date); | |
| 85 | + } | |
| 86 | + | |
| 87 | + String time = entity.getTime(); | |
| 88 | + if (time != null) { | |
| 89 | + stmt.bindString(4, time); | |
| 90 | + } | |
| 91 | + | |
| 92 | + String title = entity.getTitle(); | |
| 93 | + if (title != null) { | |
| 94 | + stmt.bindString(5, title); | |
| 95 | + } | |
| 96 | + | |
| 97 | + String contid = entity.getContid(); | |
| 98 | + if (contid != null) { | |
| 99 | + stmt.bindString(6, contid); | |
| 100 | + } | |
| 101 | + | |
| 102 | + String liveName = entity.getLiveName(); | |
| 103 | + if (liveName != null) { | |
| 104 | + stmt.bindString(7, liveName); | |
| 105 | + } | |
| 106 | + | |
| 107 | + String extend1 = entity.getExtend1(); | |
| 108 | + if (extend1 != null) { | |
| 109 | + stmt.bindString(8, extend1); | |
| 110 | + } | |
| 111 | + | |
| 112 | + java.util.Date alert_time = entity.getAlert_time(); | |
| 113 | + if (alert_time != null) { | |
| 114 | + stmt.bindLong(9, alert_time.getTime()); | |
| 115 | + } | |
| 116 | + } | |
| 117 | + | |
| 118 | + /** @inheritdoc */ | |
| 119 | + @Override | |
| 120 | + public String readKey(Cursor cursor, int offset) { | |
| 121 | + return cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0); | |
| 122 | + } | |
| 123 | + | |
| 124 | + /** @inheritdoc */ | |
| 125 | + @Override | |
| 126 | + public LiveAlert readEntity(Cursor cursor, int offset) { | |
| 127 | + LiveAlert entity = new LiveAlert( // | |
| 128 | + cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0), // id | |
| 129 | + cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // num | |
| 130 | + cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // date | |
| 131 | + cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3), // time | |
| 132 | + cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4), // title | |
| 133 | + cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5), // contid | |
| 134 | + cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6), // liveName | |
| 135 | + cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7), // extend1 | |
| 136 | + cursor.isNull(offset + 8) ? null : new java.util.Date(cursor.getLong(offset + 8)) // alert_time | |
| 137 | + ); | |
| 138 | + return entity; | |
| 139 | + } | |
| 140 | + | |
| 141 | + /** @inheritdoc */ | |
| 142 | + @Override | |
| 143 | + public void readEntity(Cursor cursor, LiveAlert entity, int offset) { | |
| 144 | + entity.setId(cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0)); | |
| 145 | + entity.setNum(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1)); | |
| 146 | + entity.setDate(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2)); | |
| 147 | + entity.setTime(cursor.isNull(offset + 3) ? null : cursor.getString(offset + 3)); | |
| 148 | + entity.setTitle(cursor.isNull(offset + 4) ? null : cursor.getString(offset + 4)); | |
| 149 | + entity.setContid(cursor.isNull(offset + 5) ? null : cursor.getString(offset + 5)); | |
| 150 | + entity.setLiveName(cursor.isNull(offset + 6) ? null : cursor.getString(offset + 6)); | |
| 151 | + entity.setExtend1(cursor.isNull(offset + 7) ? null : cursor.getString(offset + 7)); | |
| 152 | + entity.setAlert_time(cursor.isNull(offset + 8) ? null : new java.util.Date(cursor.getLong(offset + 8))); | |
| 153 | + } | |
| 154 | + | |
| 155 | + /** @inheritdoc */ | |
| 156 | + @Override | |
| 157 | + protected String updateKeyAfterInsert(LiveAlert entity, long rowId) { | |
| 158 | + return entity.getId(); | |
| 159 | + } | |
| 160 | + | |
| 161 | + /** @inheritdoc */ | |
| 162 | + @Override | |
| 163 | + public String getKey(LiveAlert entity) { | |
| 164 | + if(entity != null) { | |
| 165 | + return entity.getId(); | |
| 166 | + } else { | |
| 167 | + return null; | |
| 168 | + } | |
| 169 | + } | |
| 170 | + | |
| 171 | + /** @inheritdoc */ | |
| 172 | + @Override | |
| 173 | + protected boolean isEntityUpdateable() { | |
| 174 | + return true; | |
| 175 | + } | |
| 176 | + | |
| 177 | +} | ... | ... |
MyDaoGenerator/com/cmcc/migutvtwo/dao/PlayMemory.java
0 → 100644
| 1 | +++ a/MyDaoGenerator/com/cmcc/migutvtwo/dao/PlayMemory.java | |
| 1 | +package com.cmcc.migutvtwo.dao; | |
| 2 | + | |
| 3 | +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS | |
| 4 | + | |
| 5 | +// KEEP INCLUDES - put your custom includes here | |
| 6 | +// KEEP INCLUDES END | |
| 7 | +/** | |
| 8 | + * Entity mapped to table PLAY_MEMORY. | |
| 9 | + */ | |
| 10 | +public class PlayMemory { | |
| 11 | + | |
| 12 | + private String id; | |
| 13 | + private String cid; | |
| 14 | + private String lback; | |
| 15 | + private Integer playtime; | |
| 16 | + | |
| 17 | + // KEEP FIELDS - put your custom fields here | |
| 18 | + // KEEP FIELDS END | |
| 19 | + | |
| 20 | + public PlayMemory() { | |
| 21 | + } | |
| 22 | + | |
| 23 | + public PlayMemory(String id) { | |
| 24 | + this.id = id; | |
| 25 | + } | |
| 26 | + | |
| 27 | + public PlayMemory(String id, String cid, String lback, Integer playtime) { | |
| 28 | + this.id = id; | |
| 29 | + this.cid = cid; | |
| 30 | + this.lback = lback; | |
| 31 | + this.playtime = playtime; | |
| 32 | + } | |
| 33 | + | |
| 34 | + public String getId() { | |
| 35 | + return id; | |
| 36 | + } | |
| 37 | + | |
| 38 | + public void setId(String id) { | |
| 39 | + this.id = id; | |
| 40 | + } | |
| 41 | + | |
| 42 | + public String getCid() { | |
| 43 | + return cid; | |
| 44 | + } | |
| 45 | + | |
| 46 | + public void setCid(String cid) { | |
| 47 | + this.cid = cid; | |
| 48 | + } | |
| 49 | + | |
| 50 | + public String getLback() { | |
| 51 | + return lback; | |
| 52 | + } | |
| 53 | + | |
| 54 | + public void setLback(String lback) { | |
| 55 | + this.lback = lback; | |
| 56 | + } | |
| 57 | + | |
| 58 | + public Integer getPlaytime() { | |
| 59 | + return playtime; | |
| 60 | + } | |
| 61 | + | |
| 62 | + public void setPlaytime(Integer playtime) { | |
| 63 | + this.playtime = playtime; | |
| 64 | + } | |
| 65 | + | |
| 66 | + // KEEP METHODS - put your custom methods here | |
| 67 | + // KEEP METHODS END | |
| 68 | + | |
| 69 | +} | ... | ... |
MyDaoGenerator/com/cmcc/migutvtwo/dao/PlayMemoryDao.java
0 → 100644
| 1 | +++ a/MyDaoGenerator/com/cmcc/migutvtwo/dao/PlayMemoryDao.java | |
| 1 | +package com.cmcc.migutvtwo.dao; | |
| 2 | + | |
| 3 | +import android.database.Cursor; | |
| 4 | +import android.database.sqlite.SQLiteDatabase; | |
| 5 | +import android.database.sqlite.SQLiteStatement; | |
| 6 | + | |
| 7 | +import de.greenrobot.dao.AbstractDao; | |
| 8 | +import de.greenrobot.dao.Property; | |
| 9 | +import de.greenrobot.dao.internal.DaoConfig; | |
| 10 | + | |
| 11 | +import com.cmcc.migutvtwo.dao.PlayMemory; | |
| 12 | + | |
| 13 | +// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. | |
| 14 | +/** | |
| 15 | + * DAO for table PLAY_MEMORY. | |
| 16 | +*/ | |
| 17 | +public class PlayMemoryDao extends AbstractDao<PlayMemory, String> { | |
| 18 | + | |
| 19 | + public static final String TABLENAME = "PLAY_MEMORY"; | |
| 20 | + | |
| 21 | + /** | |
| 22 | + * Properties of entity PlayMemory.<br/> | |
| 23 | + * Can be used for QueryBuilder and for referencing column names. | |
| 24 | + */ | |
| 25 | + public static class Properties { | |
| 26 | + public final static Property Id = new Property(0, String.class, "id", true, "ID"); | |
| 27 | + public final static Property Cid = new Property(1, String.class, "cid", false, "CID"); | |
| 28 | + public final static Property Lback = new Property(2, String.class, "lback", false, "LBACK"); | |
| 29 | + public final static Property Playtime = new Property(3, Integer.class, "playtime", false, "PLAYTIME"); | |
| 30 | + }; | |
| 31 | + | |
| 32 | + | |
| 33 | + public PlayMemoryDao(DaoConfig config) { | |
| 34 | + super(config); | |
| 35 | + } | |
| 36 | + | |
| 37 | + public PlayMemoryDao(DaoConfig config, DaoSession daoSession) { | |
| 38 | + super(config, daoSession); | |
| 39 | + } | |
| 40 | + | |
| 41 | + /** Creates the underlying database table. */ | |
| 42 | + public static void createTable(SQLiteDatabase db, boolean ifNotExists) { | |
| 43 | + String constraint = ifNotExists? "IF NOT EXISTS ": ""; | |
| 44 | + db.execSQL("CREATE TABLE " + constraint + "'PLAY_MEMORY' (" + // | |
| 45 | + "'ID' TEXT PRIMARY KEY NOT NULL ," + // 0: id | |
| 46 | + "'CID' TEXT," + // 1: cid | |
| 47 | + "'LBACK' TEXT," + // 2: lback | |
| 48 | + "'PLAYTIME' INTEGER);"); // 3: playtime | |
| 49 | + } | |
| 50 | + | |
| 51 | + /** Drops the underlying database table. */ | |
| 52 | + public static void dropTable(SQLiteDatabase db, boolean ifExists) { | |
| 53 | + String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "'PLAY_MEMORY'"; | |
| 54 | + db.execSQL(sql); | |
| 55 | + } | |
| 56 | + | |
| 57 | + /** @inheritdoc */ | |
| 58 | + @Override | |
| 59 | + protected void bindValues(SQLiteStatement stmt, PlayMemory entity) { | |
| 60 | + stmt.clearBindings(); | |
| 61 | + | |
| 62 | + String id = entity.getId(); | |
| 63 | + if (id != null) { | |
| 64 | + stmt.bindString(1, id); | |
| 65 | + } | |
| 66 | + | |
| 67 | + String cid = entity.getCid(); | |
| 68 | + if (cid != null) { | |
| 69 | + stmt.bindString(2, cid); | |
| 70 | + } | |
| 71 | + | |
| 72 | + String lback = entity.getLback(); | |
| 73 | + if (lback != null) { | |
| 74 | + stmt.bindString(3, lback); | |
| 75 | + } | |
| 76 | + | |
| 77 | + Integer playtime = entity.getPlaytime(); | |
| 78 | + if (playtime != null) { | |
| 79 | + stmt.bindLong(4, playtime); | |
| 80 | + } | |
| 81 | + } | |
| 82 | + | |
| 83 | + /** @inheritdoc */ | |
| 84 | + @Override | |
| 85 | + public String readKey(Cursor cursor, int offset) { | |
| 86 | + return cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0); | |
| 87 | + } | |
| 88 | + | |
| 89 | + /** @inheritdoc */ | |
| 90 | + @Override | |
| 91 | + public PlayMemory readEntity(Cursor cursor, int offset) { | |
| 92 | + PlayMemory entity = new PlayMemory( // | |
| 93 | + cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0), // id | |
| 94 | + cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1), // cid | |
| 95 | + cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2), // lback | |
| 96 | + cursor.isNull(offset + 3) ? null : cursor.getInt(offset + 3) // playtime | |
| 97 | + ); | |
| 98 | + return entity; | |
| 99 | + } | |
| 100 | + | |
| 101 | + /** @inheritdoc */ | |
| 102 | + @Override | |
| 103 | + public void readEntity(Cursor cursor, PlayMemory entity, int offset) { | |
| 104 | + entity.setId(cursor.isNull(offset + 0) ? null : cursor.getString(offset + 0)); | |
| 105 | + entity.setCid(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1)); | |
| 106 | + entity.setLback(cursor.isNull(offset + 2) ? null : cursor.getString(offset + 2)); | |
| 107 | + entity.setPlaytime(cursor.isNull(offset + 3) ? null : cursor.getInt(offset + 3)); | |
| 108 | + } | |
| 109 | + | |
| 110 | + /** @inheritdoc */ | |
| 111 | + @Override | |
| 112 | + protected String updateKeyAfterInsert(PlayMemory entity, long rowId) { | |
| 113 | + return entity.getId(); | |
| 114 | + } | |
| 115 | + | |
| 116 | + /** @inheritdoc */ | |
| 117 | + @Override | |
| 118 | + public String getKey(PlayMemory entity) { | |
| 119 | + if(entity != null) { | |
| 120 | + return entity.getId(); | |
| 121 | + } else { | |
| 122 | + return null; | |
| 123 | + } | |
| 124 | + } | |
| 125 | + | |
| 126 | + /** @inheritdoc */ | |
| 127 | + @Override | |
| 128 | + protected boolean isEntityUpdateable() { | |
| 129 | + return true; | |
| 130 | + } | |
| 131 | + | |
| 132 | +} | ... | ... |
MyDaoGenerator/com/cmcc/migutvtwo/dao/SearchHistory.java
0 → 100644
| 1 | +++ a/MyDaoGenerator/com/cmcc/migutvtwo/dao/SearchHistory.java | |
| 1 | +package com.cmcc.migutvtwo.dao; | |
| 2 | + | |
| 3 | +// THIS CODE IS GENERATED BY greenDAO, EDIT ONLY INSIDE THE "KEEP"-SECTIONS | |
| 4 | + | |
| 5 | +// KEEP INCLUDES - put your custom includes here | |
| 6 | +// KEEP INCLUDES END | |
| 7 | +/** | |
| 8 | + * Entity mapped to table SEARCH_HISTORY. | |
| 9 | + */ | |
| 10 | +public class SearchHistory { | |
| 11 | + | |
| 12 | + private Long id; | |
| 13 | + private String keyword; | |
| 14 | + | |
| 15 | + // KEEP FIELDS - put your custom fields here | |
| 16 | + // KEEP FIELDS END | |
| 17 | + | |
| 18 | + public SearchHistory() { | |
| 19 | + } | |
| 20 | + | |
| 21 | + public SearchHistory(Long id) { | |
| 22 | + this.id = id; | |
| 23 | + } | |
| 24 | + | |
| 25 | + public SearchHistory(Long id, String keyword) { | |
| 26 | + this.id = id; | |
| 27 | + this.keyword = keyword; | |
| 28 | + } | |
| 29 | + | |
| 30 | + public Long getId() { | |
| 31 | + return id; | |
| 32 | + } | |
| 33 | + | |
| 34 | + public void setId(Long id) { | |
| 35 | + this.id = id; | |
| 36 | + } | |
| 37 | + | |
| 38 | + public String getKeyword() { | |
| 39 | + return keyword; | |
| 40 | + } | |
| 41 | + | |
| 42 | + public void setKeyword(String keyword) { | |
| 43 | + this.keyword = keyword; | |
| 44 | + } | |
| 45 | + | |
| 46 | + // KEEP METHODS - put your custom methods here | |
| 47 | + // KEEP METHODS END | |
| 48 | + | |
| 49 | +} | ... | ... |
MyDaoGenerator/com/cmcc/migutvtwo/dao/SearchHistoryDao.java
0 → 100644
| 1 | +++ a/MyDaoGenerator/com/cmcc/migutvtwo/dao/SearchHistoryDao.java | |
| 1 | +package com.cmcc.migutvtwo.dao; | |
| 2 | + | |
| 3 | +import android.database.Cursor; | |
| 4 | +import android.database.sqlite.SQLiteDatabase; | |
| 5 | +import android.database.sqlite.SQLiteStatement; | |
| 6 | + | |
| 7 | +import de.greenrobot.dao.AbstractDao; | |
| 8 | +import de.greenrobot.dao.Property; | |
| 9 | +import de.greenrobot.dao.internal.DaoConfig; | |
| 10 | + | |
| 11 | +import com.cmcc.migutvtwo.dao.SearchHistory; | |
| 12 | + | |
| 13 | +// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. | |
| 14 | +/** | |
| 15 | + * DAO for table SEARCH_HISTORY. | |
| 16 | +*/ | |
| 17 | +public class SearchHistoryDao extends AbstractDao<SearchHistory, Long> { | |
| 18 | + | |
| 19 | + public static final String TABLENAME = "SEARCH_HISTORY"; | |
| 20 | + | |
| 21 | + /** | |
| 22 | + * Properties of entity SearchHistory.<br/> | |
| 23 | + * Can be used for QueryBuilder and for referencing column names. | |
| 24 | + */ | |
| 25 | + public static class Properties { | |
| 26 | + public final static Property Id = new Property(0, Long.class, "id", true, "ID"); | |
| 27 | + public final static Property Keyword = new Property(1, String.class, "keyword", false, "KEYWORD"); | |
| 28 | + }; | |
| 29 | + | |
| 30 | + | |
| 31 | + public SearchHistoryDao(DaoConfig config) { | |
| 32 | + super(config); | |
| 33 | + } | |
| 34 | + | |
| 35 | + public SearchHistoryDao(DaoConfig config, DaoSession daoSession) { | |
| 36 | + super(config, daoSession); | |
| 37 | + } | |
| 38 | + | |
| 39 | + /** Creates the underlying database table. */ | |
| 40 | + public static void createTable(SQLiteDatabase db, boolean ifNotExists) { | |
| 41 | + String constraint = ifNotExists? "IF NOT EXISTS ": ""; | |
| 42 | + db.execSQL("CREATE TABLE " + constraint + "'SEARCH_HISTORY' (" + // | |
| 43 | + "'ID' INTEGER PRIMARY KEY AUTOINCREMENT ," + // 0: id | |
| 44 | + "'KEYWORD' TEXT);"); // 1: keyword | |
| 45 | + } | |
| 46 | + | |
| 47 | + /** Drops the underlying database table. */ | |
| 48 | + public static void dropTable(SQLiteDatabase db, boolean ifExists) { | |
| 49 | + String sql = "DROP TABLE " + (ifExists ? "IF EXISTS " : "") + "'SEARCH_HISTORY'"; | |
| 50 | + db.execSQL(sql); | |
| 51 | + } | |
| 52 | + | |
| 53 | + /** @inheritdoc */ | |
| 54 | + @Override | |
| 55 | + protected void bindValues(SQLiteStatement stmt, SearchHistory entity) { | |
| 56 | + stmt.clearBindings(); | |
| 57 | + | |
| 58 | + Long id = entity.getId(); | |
| 59 | + if (id != null) { | |
| 60 | + stmt.bindLong(1, id); | |
| 61 | + } | |
| 62 | + | |
| 63 | + String keyword = entity.getKeyword(); | |
| 64 | + if (keyword != null) { | |
| 65 | + stmt.bindString(2, keyword); | |
| 66 | + } | |
| 67 | + } | |
| 68 | + | |
| 69 | + /** @inheritdoc */ | |
| 70 | + @Override | |
| 71 | + public Long readKey(Cursor cursor, int offset) { | |
| 72 | + return cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0); | |
| 73 | + } | |
| 74 | + | |
| 75 | + /** @inheritdoc */ | |
| 76 | + @Override | |
| 77 | + public SearchHistory readEntity(Cursor cursor, int offset) { | |
| 78 | + SearchHistory entity = new SearchHistory( // | |
| 79 | + cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0), // id | |
| 80 | + cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1) // keyword | |
| 81 | + ); | |
| 82 | + return entity; | |
| 83 | + } | |
| 84 | + | |
| 85 | + /** @inheritdoc */ | |
| 86 | + @Override | |
| 87 | + public void readEntity(Cursor cursor, SearchHistory entity, int offset) { | |
| 88 | + entity.setId(cursor.isNull(offset + 0) ? null : cursor.getLong(offset + 0)); | |
| 89 | + entity.setKeyword(cursor.isNull(offset + 1) ? null : cursor.getString(offset + 1)); | |
| 90 | + } | |
| 91 | + | |
| 92 | + /** @inheritdoc */ | |
| 93 | + @Override | |
| 94 | + protected Long updateKeyAfterInsert(SearchHistory entity, long rowId) { | |
| 95 | + entity.setId(rowId); | |
| 96 | + return rowId; | |
| 97 | + } | |
| 98 | + | |
| 99 | + /** @inheritdoc */ | |
| 100 | + @Override | |
| 101 | + public Long getKey(SearchHistory entity) { | |
| 102 | + if(entity != null) { | |
| 103 | + return entity.getId(); | |
| 104 | + } else { | |
| 105 | + return null; | |
| 106 | + } | |
| 107 | + } | |
| 108 | + | |
| 109 | + /** @inheritdoc */ | |
| 110 | + @Override | |
| 111 | + protected boolean isEntityUpdateable() { | |
| 112 | + return true; | |
| 113 | + } | |
| 114 | + | |
| 115 | +} | ... | ... |
MyDaoGenerator/src/main/java/example/MyDaoGenerator.java
0 → 100644
| 1 | +++ a/MyDaoGenerator/src/main/java/example/MyDaoGenerator.java | |
| 1 | +package example; | |
| 2 | + | |
| 3 | +import de.greenrobot.daogenerator.DaoGenerator; | |
| 4 | +import de.greenrobot.daogenerator.Entity; | |
| 5 | +import de.greenrobot.daogenerator.Schema; | |
| 6 | + | |
| 7 | +public class MyDaoGenerator { | |
| 8 | + | |
| 9 | + public static void main(String[] args) throws Exception { | |
| 10 | + Schema schema = new Schema(1005, "com.cnlive.goldenline.dao"); | |
| 11 | + schema.enableKeepSectionsByDefault(); | |
| 12 | + addHistory(schema); | |
| 13 | + new DaoGenerator().generateAll(schema, args[0]); | |
| 14 | + } | |
| 15 | + | |
| 16 | + private static void addHistory(Schema schema) { | |
| 17 | + Entity history = schema.addEntity("History"); | |
| 18 | + history.addStringProperty("vdId").primaryKey(); | |
| 19 | + history.addStringProperty("vdCategory"); | |
| 20 | + history.addIntProperty("vdCategoryId"); | |
| 21 | + history.addStringProperty("vdCover"); | |
| 22 | + history.addStringProperty("vdShareUrl"); | |
| 23 | + history.addStringProperty("vdShowDes"); | |
| 24 | + history.addStringProperty("vdShowTitle"); | |
| 25 | + history.addIntProperty("vdTheatreId"); | |
| 26 | + history.addStringProperty("vdTheatreImg"); | |
| 27 | + history.addStringProperty("vdTheatreName"); | |
| 28 | + history.addStringProperty("vdThumbnailImg"); | |
| 29 | + history.addStringProperty("vdVideoHUrl"); | |
| 30 | + history.addStringProperty("vdVideoLUrl"); | |
| 31 | + history.addStringProperty("vdVideoUrl"); | |
| 32 | + history.addStringProperty("createTime"); | |
| 33 | + history.addIntProperty("vdWatchCount"); | |
| 34 | + history.addStringProperty("vdDiscussTimes"); | |
| 35 | + history.addStringProperty("vdUUID"); | |
| 36 | + history.addStringProperty("vdVideoUHUrl"); | |
| 37 | + } | |
| 38 | + | |
| 39 | +} | ... | ... |
PushSDK/.gitignore
0 → 100644
PushSDK/AndroidManifest.xml
0 → 100644
| 1 | +++ a/PushSDK/AndroidManifest.xml | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + package="com.umeng.message.lib" | |
| 4 | + android:versionCode="1" | |
| 5 | + android:versionName="1.0"> | |
| 6 | + | |
| 7 | + | |
| 8 | + <uses-permission android:name="android.permission.INTERNET" /> | |
| 9 | + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
| 10 | + <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | |
| 11 | + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
| 12 | + <uses-permission android:name="android.permission.WAKE_LOCK" /> | |
| 13 | + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> | |
| 14 | + <uses-permission android:name="android.permission.BROADCAST_PACKAGE_ADDED" /> | |
| 15 | + <uses-permission android:name="android.permission.BROADCAST_PACKAGE_CHANGED" /> | |
| 16 | + <uses-permission android:name="android.permission.BROADCAST_PACKAGE_INSTALL" /> | |
| 17 | + <uses-permission android:name="android.permission.BROADCAST_PACKAGE_REPLACED" /> | |
| 18 | + <uses-permission android:name="android.permission.RESTART_PACKAGES" /> | |
| 19 | + <uses-permission android:name="android.permission.GET_TASKS" /> | |
| 20 | + <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | |
| 21 | + <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> | |
| 22 | + <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> | |
| 23 | + | |
| 24 | + <application> | |
| 25 | + | |
| 26 | + <service | |
| 27 | + android:name="com.taobao.accs.ChannelService" | |
| 28 | + android:exported="true" | |
| 29 | + android:process=":channel"> | |
| 30 | + <intent-filter> | |
| 31 | + <action android:name="com.taobao.accs.intent.action.SERVICE" /> | |
| 32 | + </intent-filter> | |
| 33 | + <intent-filter> | |
| 34 | + <action android:name="com.taobao.accs.intent.action.ELECTION" /> | |
| 35 | + </intent-filter> | |
| 36 | + </service> | |
| 37 | + | |
| 38 | + <service | |
| 39 | + android:name="com.taobao.accs.data.MsgDistributeService" | |
| 40 | + android:exported="true"> | |
| 41 | + <intent-filter> | |
| 42 | + <action android:name="com.taobao.accs.intent.action.RECEIVE" /> | |
| 43 | + </intent-filter> | |
| 44 | + </service> | |
| 45 | + | |
| 46 | + <receiver | |
| 47 | + android:name="com.taobao.accs.EventReceiver" | |
| 48 | + android:process=":channel"> | |
| 49 | + <intent-filter> | |
| 50 | + <action android:name="android.intent.action.BOOT_COMPLETED" /> | |
| 51 | + </intent-filter> | |
| 52 | + <intent-filter> | |
| 53 | + <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> | |
| 54 | + </intent-filter> | |
| 55 | + <intent-filter> | |
| 56 | + <action android:name="android.intent.action.PACKAGE_REMOVED" /> | |
| 57 | + <data android:scheme="package" /> | |
| 58 | + </intent-filter> | |
| 59 | + <intent-filter> | |
| 60 | + <action android:name="android.intent.action.USER_PRESENT" /> | |
| 61 | + </intent-filter> | |
| 62 | + </receiver> | |
| 63 | + | |
| 64 | + <receiver | |
| 65 | + android:name="com.taobao.accs.ServiceReceiver" | |
| 66 | + android:process=":channel"> | |
| 67 | + <intent-filter> | |
| 68 | + <action android:name="com.taobao.accs.intent.action.COMMAND" /> | |
| 69 | + </intent-filter> | |
| 70 | + <intent-filter> | |
| 71 | + <action android:name="com.taobao.accs.intent.action.START_FROM_AGOO" /> | |
| 72 | + </intent-filter> | |
| 73 | + </receiver> | |
| 74 | + | |
| 75 | + <service | |
| 76 | + android:name="com.taobao.accs.ChannelService$KernelService" | |
| 77 | + android:process=":channel" /> | |
| 78 | + | |
| 79 | + <service | |
| 80 | + android:name="org.android.agoo.accs.AgooService" | |
| 81 | + android:exported="true"> | |
| 82 | + <intent-filter> | |
| 83 | + <action android:name="com.taobao.accs.intent.action.RECEIVE" /> | |
| 84 | + </intent-filter> | |
| 85 | + </service> | |
| 86 | + | |
| 87 | + <service | |
| 88 | + android:name="com.umeng.message.UmengIntentService" | |
| 89 | + android:exported="true" | |
| 90 | + android:process=":channel"> | |
| 91 | + <intent-filter> | |
| 92 | + <action android:name="org.agoo.android.intent.action.RECEIVE" /> | |
| 93 | + </intent-filter> | |
| 94 | + </service> | |
| 95 | + | |
| 96 | + <service | |
| 97 | + android:name="com.umeng.message.XiaomiIntentService" | |
| 98 | + android:exported="true" | |
| 99 | + android:process=":channel"> | |
| 100 | + <intent-filter> | |
| 101 | + <action android:name="org.agoo.android.intent.action.RECEIVE" /> | |
| 102 | + </intent-filter> | |
| 103 | + </service> | |
| 104 | + | |
| 105 | + <receiver | |
| 106 | + android:name="com.taobao.agoo.AgooCommondReceiver" | |
| 107 | + android:exported="true" | |
| 108 | + android:process=":channel"> | |
| 109 | + <intent-filter> | |
| 110 | + <action android:name="${applicationId}.intent.action.COMMAND" /> | |
| 111 | + </intent-filter> | |
| 112 | + <intent-filter> | |
| 113 | + <action android:name="android.intent.action.PACKAGE_REMOVED" /> | |
| 114 | + <data android:scheme="package" /> | |
| 115 | + </intent-filter> | |
| 116 | + </receiver> | |
| 117 | + | |
| 118 | + <service | |
| 119 | + android:name="com.umeng.message.UmengMessageIntentReceiverService" | |
| 120 | + android:exported="true" | |
| 121 | + android:process=":channel"> | |
| 122 | + <intent-filter> | |
| 123 | + <action android:name="org.android.agoo.client.MessageReceiverService" /> | |
| 124 | + </intent-filter> | |
| 125 | + </service> | |
| 126 | + | |
| 127 | + <receiver | |
| 128 | + android:name="com.umeng.message.NotificationProxyBroadcastReceiver" | |
| 129 | + android:exported="false" /> | |
| 130 | + | |
| 131 | + <service | |
| 132 | + android:name="com.umeng.message.UmengMessageCallbackHandlerService" | |
| 133 | + android:exported="false"> | |
| 134 | + <intent-filter> | |
| 135 | + <action android:name="com.umeng.messge.registercallback.action" /> | |
| 136 | + </intent-filter> | |
| 137 | + <intent-filter> | |
| 138 | + <action android:name="com.umeng.message.enablecallback.action" /> | |
| 139 | + </intent-filter> | |
| 140 | + <intent-filter> | |
| 141 | + <action android:name="com.umeng.message.disablecallback.action" /> | |
| 142 | + </intent-filter> | |
| 143 | + <intent-filter> | |
| 144 | + <action android:name="com.umeng.message.message.handler.action" /> | |
| 145 | + </intent-filter> | |
| 146 | + </service> | |
| 147 | + | |
| 148 | + <service | |
| 149 | + android:name="com.umeng.message.UmengDownloadResourceService" | |
| 150 | + android:exported="false" /> | |
| 151 | + | |
| 152 | + <provider | |
| 153 | + android:name="com.umeng.message.provider.MessageProvider" | |
| 154 | + android:authorities="${applicationId}.umeng.message" | |
| 155 | + android:exported="false"> | |
| 156 | + <grant-uri-permission android:pathPattern=".*" /> | |
| 157 | + </provider> | |
| 158 | + | |
| 159 | + </application> | |
| 160 | + | |
| 161 | +</manifest> | ... | ... |
PushSDK/build.gradle
0 → 100644
| 1 | +++ a/PushSDK/build.gradle | |
| 1 | +apply plugin: 'com.android.library' | |
| 2 | + | |
| 3 | +android { | |
| 4 | + compileSdkVersion 25 | |
| 5 | + buildToolsVersion '25.0.2' | |
| 6 | + | |
| 7 | + defaultConfig { | |
| 8 | + minSdkVersion 11 | |
| 9 | + targetSdkVersion 22 | |
| 10 | + } | |
| 11 | + | |
| 12 | + buildTypes { | |
| 13 | + release { | |
| 14 | + minifyEnabled false | |
| 15 | + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt' | |
| 16 | + } | |
| 17 | + debug { | |
| 18 | + | |
| 19 | + } | |
| 20 | + } | |
| 21 | + | |
| 22 | + sourceSets { | |
| 23 | + main { | |
| 24 | + manifest.srcFile 'AndroidManifest.xml' | |
| 25 | + java.srcDirs = ['src'] | |
| 26 | + resources.srcDirs = ['src'] | |
| 27 | + aidl.srcDirs = ['src'] | |
| 28 | + renderscript.srcDirs = ['src'] | |
| 29 | + res.srcDirs = ['res'] | |
| 30 | + assets.srcDirs = ['assets'] | |
| 31 | + jniLibs.srcDirs = ['libs'] | |
| 32 | + } | |
| 33 | + | |
| 34 | + // Move the tests to tests/java, tests/res, etc... | |
| 35 | + instrumentTest.setRoot('tests') | |
| 36 | + | |
| 37 | + // Move the build types to build-types/<type> | |
| 38 | + // For instance, build-types/debug/java, build-types/debug/AndroidManifest.xml, ... | |
| 39 | + // This moves them out of them default location under src/<type>/... which would | |
| 40 | + // conflict with src/ being used by the main source set. | |
| 41 | + // Adding new build types or product flavors should be accompanied | |
| 42 | + // by a similar customization. | |
| 43 | + debug.setRoot('build-types/debug') | |
| 44 | + release.setRoot('build-types/release') | |
| 45 | + } | |
| 46 | + | |
| 47 | + android { | |
| 48 | + lintOptions { | |
| 49 | + abortOnError false | |
| 50 | + } | |
| 51 | + } | |
| 52 | +} | |
| 53 | + | |
| 54 | +dependencies { | |
| 55 | + compile fileTree(dir: 'libs', include: ['*.jar']) | |
| 56 | +} | ... | ... |
PushSDK/libs/alicloud-android-sdk-httpdns-1.0.7.jar
0 → 100644
No preview for this file type
PushSDK/libs/armeabi-v7a/libcocklogic-1.1.3.so
0 → 100644
No preview for this file type
PushSDK/libs/armeabi-v7a/libtnet-3.1.11.so
0 → 100644
No preview for this file type
PushSDK/libs/armeabi/libcocklogic-1.1.3.so
0 → 100644
No preview for this file type
PushSDK/libs/armeabi/libtnet-3.1.11.so
0 → 100644
No preview for this file type
PushSDK/libs/com.umeng.message_3.1.0a.jar
0 → 100644
No preview for this file type
PushSDK/libs/mips/libcocklogic-1.1.3.so
0 → 100644
No preview for this file type
PushSDK/libs/mips/libtnet-3.1.11.so
0 → 100644
No preview for this file type
PushSDK/libs/x86/libcocklogic-1.1.3.so
0 → 100644
No preview for this file type
PushSDK/libs/x86/libtnet-3.1.11.so
0 → 100644
No preview for this file type
PushSDK/project.properties
0 → 100644
| 1 | +++ a/PushSDK/project.properties | |
| 1 | +# This file is automatically generated by Android Tools. | |
| 2 | +# Do not modify this file -- YOUR CHANGES WILL BE ERASED! | |
| 3 | +# | |
| 4 | +# This file must be checked in Version Control Systems. | |
| 5 | +# | |
| 6 | +# To customize properties used by the Ant build system use, | |
| 7 | +# "ant.properties", and override values to adapt the script to your | |
| 8 | +# project structure. | |
| 9 | + | |
| 10 | +# Project target. | |
| 11 | +target=android-19 | |
| 12 | +android.library=true | ... | ... |
PushSDK/res/layout/upush_notification.xml
0 → 100644
| 1 | +++ a/PushSDK/res/layout/upush_notification.xml | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + android:layout_width="match_parent" | |
| 4 | + android:background="#ffffff" | |
| 5 | + android:layout_height="64dp"> | |
| 6 | + | |
| 7 | + <RelativeLayout | |
| 8 | + android:id="@+id/upush_notification1" | |
| 9 | + android:layout_width="match_parent" | |
| 10 | + android:layout_height="match_parent" | |
| 11 | + android:layout_marginBottom="10dp" | |
| 12 | + android:layout_marginTop="10dp"> | |
| 13 | + | |
| 14 | + <ImageView | |
| 15 | + android:id="@+id/notification_large_icon1" | |
| 16 | + android:layout_width="48dp" | |
| 17 | + android:layout_height="48dp" | |
| 18 | + android:scaleType="fitXY" /> | |
| 19 | + | |
| 20 | + <TextView | |
| 21 | + android:id="@+id/notification_title" | |
| 22 | + android:layout_width="fill_parent" | |
| 23 | + android:layout_height="wrap_content" | |
| 24 | + android:layout_marginLeft="10dp" | |
| 25 | + android:layout_marginTop="3dp" | |
| 26 | + android:layout_toRightOf="@+id/notification_large_icon1" | |
| 27 | + android:maxLines="1" | |
| 28 | + android:text="Title" | |
| 29 | + android:textColor="#000000" | |
| 30 | + android:textSize="16sp" /> | |
| 31 | + | |
| 32 | + <TextView | |
| 33 | + android:id="@+id/notification_text" | |
| 34 | + android:layout_width="fill_parent" | |
| 35 | + android:layout_height="wrap_content" | |
| 36 | + android:layout_below="@+id/notification_title" | |
| 37 | + android:layout_marginLeft="10dp" | |
| 38 | + android:layout_marginTop="3dp" | |
| 39 | + android:layout_toRightOf="@+id/notification_large_icon1" | |
| 40 | + android:ellipsize="marquee" | |
| 41 | + android:focusable="true" | |
| 42 | + android:focusableInTouchMode="true" | |
| 43 | + android:marqueeRepeatLimit="marquee_forever" | |
| 44 | + android:scrollHorizontally="false" | |
| 45 | + android:fadingEdge="horizontal" | |
| 46 | + android:singleLine="true" | |
| 47 | + android:text="Message" | |
| 48 | + android:textColor="#000000" /> | |
| 49 | + | |
| 50 | + <requestFocus /> | |
| 51 | + | |
| 52 | + | |
| 53 | + </RelativeLayout> | |
| 54 | + | |
| 55 | + <RelativeLayout | |
| 56 | + android:id="@+id/upush_notification2" | |
| 57 | + android:layout_width="match_parent" | |
| 58 | + android:layout_height="match_parent" | |
| 59 | + android:visibility="gone"> | |
| 60 | + | |
| 61 | + <ImageView | |
| 62 | + android:id="@+id/notification_large_icon2" | |
| 63 | + android:layout_width="match_parent" | |
| 64 | + android:layout_height="match_parent" | |
| 65 | + android:scaleType="fitXY" /> | |
| 66 | + </RelativeLayout> | |
| 67 | +</RelativeLayout> | |
| 0 | 68 | \ No newline at end of file | ... | ... |
PushSDK/res/values/string.xml
0 → 100644
app/.gitignore
0 → 100644
app/GoldenLine.keystore
0 → 100644
No preview for this file type
app/build.gradle
0 → 100644
| 1 | +++ a/app/build.gradle | |
| 1 | +buildscript { | |
| 2 | + repositories { | |
| 3 | + maven { url 'https://maven.fabric.io/public' } | |
| 4 | + } | |
| 5 | + | |
| 6 | + dependencies { | |
| 7 | + classpath 'io.fabric.tools:gradle:1.+' | |
| 8 | + } | |
| 9 | +} | |
| 10 | + | |
| 11 | +apply plugin: 'com.android.application' | |
| 12 | +apply plugin: 'android-apt' | |
| 13 | +apply plugin: 'io.fabric' | |
| 14 | + | |
| 15 | +android { | |
| 16 | + compileSdkVersion 23 | |
| 17 | + buildToolsVersion '25.0.2' | |
| 18 | + | |
| 19 | + | |
| 20 | + aaptOptions.cruncherEnabled = false | |
| 21 | + aaptOptions.useNewCruncher = false | |
| 22 | + | |
| 23 | + useLibrary 'org.apache.http.legacy' | |
| 24 | + | |
| 25 | + dexOptions { | |
| 26 | + javaMaxHeapSize "4g" | |
| 27 | + } | |
| 28 | + | |
| 29 | + sourceSets { main { jni.srcDirs = [] } } | |
| 30 | + | |
| 31 | + defaultConfig { | |
| 32 | + applicationId "com.cnlive.goldenline" | |
| 33 | + minSdkVersion 17 | |
| 34 | + targetSdkVersion 22 | |
| 35 | + versionCode 60 | |
| 36 | + versionName "3.0.0" | |
| 37 | + testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner" | |
| 38 | + | |
| 39 | + ndk { | |
| 40 | + moduleName "gold" | |
| 41 | + ldLibs "log", "z", "m" | |
| 42 | + abiFilters "armeabi", "armeabi-v7a", "x86", "mips" | |
| 43 | + } | |
| 44 | + | |
| 45 | + multiDexEnabled true | |
| 46 | + } | |
| 47 | + | |
| 48 | + signingConfigs { | |
| 49 | + myConfig { | |
| 50 | + storeFile file("GoldenLine.keystore") | |
| 51 | + storePassword "123456" | |
| 52 | + keyAlias "goldenline.keystore" | |
| 53 | + keyPassword "123456" | |
| 54 | + v2SigningEnabled false | |
| 55 | + } | |
| 56 | + } | |
| 57 | + | |
| 58 | + packagingOptions { | |
| 59 | + exclude '.readme' | |
| 60 | + } | |
| 61 | + | |
| 62 | + buildTypes { | |
| 63 | + | |
| 64 | + debug { | |
| 65 | + // 显示Log, 在java代码中的调用方式为:BuildConfig.LOG_DEBUG | |
| 66 | + buildConfigField "boolean", "LOG_DEBUG", "true" | |
| 67 | +// signingConfig signingConfigs.myConfig | |
| 68 | + minifyEnabled false | |
| 69 | + zipAlignEnabled true | |
| 70 | + signingConfig signingConfigs.myConfig | |
| 71 | + } | |
| 72 | + | |
| 73 | + release { | |
| 74 | + // 不显示Log, 在java代码中的调用方式为:BuildConfig.LOG_DEBUG | |
| 75 | + buildConfigField "boolean", "LOG_DEBUG", "true" | |
| 76 | + signingConfig signingConfigs.myConfig | |
| 77 | + minifyEnabled true | |
| 78 | + zipAlignEnabled true | |
| 79 | + proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro' | |
| 80 | + } | |
| 81 | + } | |
| 82 | + | |
| 83 | + lintOptions { | |
| 84 | + checkReleaseBuilds false | |
| 85 | + } | |
| 86 | +} | |
| 87 | + | |
| 88 | +repositories { | |
| 89 | + flatDir { dirs 'libs' } | |
| 90 | + maven { url 'https://maven.fabric.io/public' } | |
| 91 | +} | |
| 92 | + | |
| 93 | +dependencies { | |
| 94 | + compile fileTree(include: ['*.jar'], dir: 'libs') | |
| 95 | + compile project(':PushSDK') | |
| 96 | + compile files('libs/libcnliveuser.jar') | |
| 97 | + compile "com.android.support:appcompat-v7:23.4.0" | |
| 98 | + compile "com.android.support:recyclerview-v7:23.4.0" | |
| 99 | + compile "com.android.support:design:23.4.0" | |
| 100 | + compile "com.android.support:support-v4:23.4.0" | |
| 101 | + compile "com.android.support:gridlayout-v7:23.4.0" | |
| 102 | + | |
| 103 | + androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', { | |
| 104 | + exclude group: 'com.android.support', module: 'support-annotations' | |
| 105 | + }) | |
| 106 | + testCompile 'org.testng:testng:6.9.6' | |
| 107 | + | |
| 108 | + compile 'com.jakewharton:butterknife:8.2.1' | |
| 109 | + apt 'com.jakewharton:butterknife-compiler:8.2.1' | |
| 110 | + compile 'com.squareup.okhttp:okhttp:2.0.0' | |
| 111 | + compile 'com.facebook.fresco:imagepipeline-okhttp:0.9.0' | |
| 112 | + compile 'com.squareup.retrofit:retrofit:1.9.0' | |
| 113 | + compile 'de.greenrobot:greendao:2.0.0' | |
| 114 | + compile 'com.jiechic.library:xUtils:2.6.14' | |
| 115 | + compile 'com.facebook.fresco:fresco:0.9.0' | |
| 116 | + compile 'com.orhanobut:logger:1.15' | |
| 117 | + compile 'org.greenrobot:eventbus:3.0.0' | |
| 118 | + compile 'com.commit451:NativeStackBlur:1.0.2' | |
| 119 | + compile 'com.github.bumptech.glide:glide:3.7.0' | |
| 120 | + compile 'jp.wasabeef:glide-transformations:2.0.1' | |
| 121 | + compile 'org.igniterealtime.smack:smack-android-extensions:4.1.5' | |
| 122 | + compile 'org.igniterealtime.smack:smack-tcp:4.1.5' | |
| 123 | + compile 'com.timehop.stickyheadersrecyclerview:library:[0.4.3]@aar' | |
| 124 | + compile 'com.github.iwgang:countdownview:2.1.3' | |
| 125 | + compile(name: 'turquoise-release', ext: 'aar') | |
| 126 | + testCompile 'org.testng:testng:6.9.6' | |
| 127 | + testCompile 'junit:junit:4.12' | |
| 128 | + provided files('runtime/MiguSDK2.0_203.jar') | |
| 129 | + compile 'com.android.support:multidex:1.0.0' | |
| 130 | + compile 'com.github.ctiao:dfm:0.4.1' | |
| 131 | + compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5' | |
| 132 | + | |
| 133 | + compile('com.crashlytics.sdk.android:crashlytics:2.5.5@aar') { | |
| 134 | + transitive = true; | |
| 135 | + } | |
| 136 | + | |
| 137 | +} | ... | ... |
app/libs/CmVideoSdk_parnter_1.3_生产_315800000000001_20161117152517.jar
0 → 100644
No preview for this file type
app/libs/MobCommons-2016.0426.1819.jar
0 → 100644
No preview for this file type
app/libs/MobTools-2016.0426.1819.jar
0 → 100644
No preview for this file type
app/libs/ShareSDK-Core-2.7.2.jar
0 → 100644
No preview for this file type
app/libs/ShareSDK-QQ-2.7.2.jar
0 → 100644
No preview for this file type
app/libs/ShareSDK-QZone-2.7.2.jar
0 → 100644
No preview for this file type
app/libs/ShareSDK-SinaWeibo-2.7.2.jar
0 → 100644
No preview for this file type
app/libs/ShareSDK-Wechat-2.7.2.jar
0 → 100644
No preview for this file type
app/libs/ShareSDK-Wechat-Core-2.7.2.jar
0 → 100644
No preview for this file type
app/libs/ShareSDK-Wechat-Favorite-2.7.2.jar
0 → 100644
No preview for this file type
app/libs/ShareSDK-Wechat-Moments-2.7.2.jar
0 → 100644
No preview for this file type
app/libs/alipaySdk-20160516.jar
0 → 100644
No preview for this file type
app/libs/android-async-http-1.4.8.jar
0 → 100644
No preview for this file type
app/libs/android-smart-image-view-1.0.0.jar
0 → 100644
No preview for this file type
app/libs/arm64-v8a/libmg20pbase.so
0 → 100644
No preview for this file type
app/libs/armeabi-v7a/libmg20pbase.so
0 → 100644
No preview for this file type
app/libs/armeabi/libmg20pbase.so
0 → 100644
No preview for this file type
app/libs/core-3.1.0.jar
0 → 100644
No preview for this file type
app/libs/fastjson-1.1.43.android.jar
0 → 100644
No preview for this file type
app/libs/gif.jar
0 → 100644
No preview for this file type
app/libs/javase-3.1.0.jar
0 → 100644
No preview for this file type
app/libs/libammsdk.jar
0 → 100644
No preview for this file type
app/libs/libcnliveanalytics.jar
0 → 100644
No preview for this file type
app/libs/libcnliveanalytics_play.jar
0 → 100644
No preview for this file type
app/libs/libcnlivechat.jar
0 → 100644
No preview for this file type
app/libs/libcnlivestream.jar
0 → 100644
No preview for this file type
app/libs/libcnliveuser.jar
0 → 100644
No preview for this file type
app/libs/libcnliveutil.jar
0 → 100644
No preview for this file type
app/libs/libcnlivevideo.jar
0 → 100644
No preview for this file type
app/libs/turquoise-release.aar
0 → 100644
No preview for this file type
app/libs/umeng-analytics-v5.6.1.jar
0 → 100644
No preview for this file type
app/libs/x86/libmg20pbase.so
0 → 100644
No preview for this file type
app/libs/x86_64/libmg20pbase.so
0 → 100644
No preview for this file type
app/proguard-rules.pro
0 → 100644
| 1 | +++ a/app/proguard-rules.pro | |
| 1 | +# 通用混淆配置 | |
| 2 | +#不混淆泛型 -keepattributes SourceFile | |
| 3 | +-keepattributes Signature,InnerClasses,Exceptions,Deprecated,SourceFile,LineNumberTable,*Annotation*,EnclosingMethod | |
| 4 | + | |
| 5 | + -optimizationpasses 5 | |
| 6 | + -dontusemixedcaseclassnames | |
| 7 | + -dontskipnonpubliclibraryclasses | |
| 8 | + -dontpreverify | |
| 9 | + -verbose | |
| 10 | + -optimizations !code/simplification/arithmetic,!field/*,!class/merging/* | |
| 11 | + | |
| 12 | + -keep public class * extends android.app.Activity | |
| 13 | + -keep public class * extends android.app.Application | |
| 14 | + -keep public class * extends android.app.Service | |
| 15 | + -keep public class * extends android.content.BroadcastReceiver | |
| 16 | + -keep public class * extends android.content.ContentProvider | |
| 17 | + -keep public class * extends android.app.backup.BackupAgentHelper | |
| 18 | + -keep public class * extends android.preference.Preference | |
| 19 | + -keep public class com.android.vending.licensing.ILicensingService | |
| 20 | + | |
| 21 | + -keepclasseswithmembernames class * { | |
| 22 | + native <methods>; | |
| 23 | + } | |
| 24 | + | |
| 25 | + -keepclasseswithmembers class * { | |
| 26 | + public <init>(android.content.Context); | |
| 27 | + } | |
| 28 | + | |
| 29 | + -keepclasseswithmembers class * { | |
| 30 | + public <init>(android.content.Context, android.util.AttributeSet); | |
| 31 | + } | |
| 32 | + | |
| 33 | + -keepclasseswithmembers class * { | |
| 34 | + public <init>(android.content.Context, android.util.AttributeSet, int); | |
| 35 | + } | |
| 36 | + | |
| 37 | + -keepclassmembers class * extends android.app.Activity { | |
| 38 | + public void *(android.view.View); | |
| 39 | + } | |
| 40 | + | |
| 41 | + -keepclassmembers enum * { | |
| 42 | + public static **[] values(); | |
| 43 | + public static ** valueOf(java.lang.String); | |
| 44 | + } | |
| 45 | + | |
| 46 | + -keep class * implements android.os.Parcelable { | |
| 47 | + public static final android.os.Parcelable$Creator *; | |
| 48 | + } | |
| 49 | + | |
| 50 | +# 通用混淆配置 End | |
| 51 | + | |
| 52 | +############## | |
| 53 | +## weixin pay ## | |
| 54 | +############## | |
| 55 | +-keep class com.tencent.mm.opensdk.** { | |
| 56 | + *; | |
| 57 | +} | |
| 58 | + | |
| 59 | +-keep class com.tencent.wxop.** { | |
| 60 | + *; | |
| 61 | +} | |
| 62 | + | |
| 63 | +-keep class com.tencent.mm.sdk.** { | |
| 64 | + *; | |
| 65 | +} | |
| 66 | +## weixin pay END | |
| 67 | + | |
| 68 | +############## | |
| 69 | +## alipay ## | |
| 70 | +############## | |
| 71 | +-keep class com.alipay.android.app.IAlixPay{*;} | |
| 72 | +-keep class com.alipay.android.app.IAlixPay$Stub{*;} | |
| 73 | +-keep class com.alipay.android.app.IRemoteServiceCallback{*;} | |
| 74 | +-keep class com.alipay.android.app.IRemoteServiceCallback$Stub{*;} | |
| 75 | +-keep class com.alipay.sdk.app.PayTask{ public *;} | |
| 76 | +-keep class com.alipay.sdk.app.AuthTask{ public *;} | |
| 77 | +## alipay END | |
| 78 | + | |
| 79 | +## shareSDK | |
| 80 | +-keep class cn.sharesdk.**{*;} | |
| 81 | +-keep class com.sina.**{*;} | |
| 82 | +-keep class **.R$* {*;} | |
| 83 | +-keep class **.R{*;} | |
| 84 | +-dontwarn cn.sharesdk.** | |
| 85 | +-dontwarn **.R$* | |
| 86 | + | |
| 87 | +-keep class com.mob.** {*;} | |
| 88 | +-dontwarn com.mob.** | |
| 89 | +## shareSDK | |
| 90 | + | |
| 91 | + | |
| 92 | +############ | |
| 93 | +## Fresco ## | |
| 94 | +############ | |
| 95 | +# Keep our interfaces so they can be used by other ProGuard rules. | |
| 96 | +# See http://sourceforge.net/p/proguard/bugs/466/ | |
| 97 | +-keep,allowobfuscation @interface com.facebook.common.internal.DoNotStrip | |
| 98 | + | |
| 99 | +# Do not strip any method/class that is annotated with @DoNotStrip | |
| 100 | +-keep @com.facebook.common.internal.DoNotStrip class * | |
| 101 | +-keepclassmembers class * { | |
| 102 | + @com.facebook.common.internal.DoNotStrip *; | |
| 103 | +} | |
| 104 | + | |
| 105 | +# Keep native methods | |
| 106 | +-keepclassmembers class * { | |
| 107 | + native <methods>; | |
| 108 | +} | |
| 109 | + | |
| 110 | +-dontwarn okio.** | |
| 111 | +-keep class okio..** {*;} | |
| 112 | + | |
| 113 | +-dontwarn javax.annotation.** | |
| 114 | +## Fresco END | |
| 115 | + | |
| 116 | +#################### | |
| 117 | +#### greenDAO #### | |
| 118 | +#################### | |
| 119 | +-keepclassmembers class * extends de.greenrobot.dao.AbstractDao { | |
| 120 | + public static java.lang.String TABLENAME; | |
| 121 | +} | |
| 122 | +-keep class **$Properties | |
| 123 | +## greenDAO END | |
| 124 | + | |
| 125 | +############## | |
| 126 | +## Retrofit ## | |
| 127 | +############## | |
| 128 | +-dontwarn retrofit.** | |
| 129 | +-keep class retrofit.** { *; } | |
| 130 | +-keepattributes Signature | |
| 131 | +-keepattributes Exceptions | |
| 132 | +## Retrofit END | |
| 133 | + | |
| 134 | +################# | |
| 135 | +## ButterKnife ## | |
| 136 | +################# | |
| 137 | +-keep class butterknife.** { *; } | |
| 138 | +-dontwarn butterknife.internal.** | |
| 139 | +-keep class **$$ViewBinder { *; } | |
| 140 | + | |
| 141 | +-keepclasseswithmembernames class * { | |
| 142 | + @butterknife.* <fields>; | |
| 143 | +} | |
| 144 | + | |
| 145 | +-keepclasseswithmembernames class * { | |
| 146 | + @butterknife.* <methods>; | |
| 147 | +} | |
| 148 | +## ButterKnife END | |
| 149 | + | |
| 150 | +## oneAPM | |
| 151 | +-dontwarn org.apache.** | |
| 152 | +-keep class org.apache.** { *; } | |
| 153 | +-keep class com.blueware.** { *; } | |
| 154 | +-dontwarn com.blueware.** | |
| 155 | +-keepattributes Exceptions, Signature, InnerClasses | |
| 156 | +## oneAPM END | |
| 157 | + | |
| 158 | +################ | |
| 159 | +## Umeng Push ## | |
| 160 | +################ | |
| 161 | + | |
| 162 | +-dontwarn com.umeng.** | |
| 163 | +-keep class com.umeng.fb.** {*;} | |
| 164 | +-keep class com.umeng.update.** {*;} | |
| 165 | +-keep class com.umeng.analytics.** {*;} | |
| 166 | + | |
| 167 | +-keepclassmembers class * { | |
| 168 | + public <init> (org.json.JSONObject); | |
| 169 | +} | |
| 170 | + | |
| 171 | +-keep class com.umeng.message.protobuffer.* { | |
| 172 | + public <fields>; | |
| 173 | + public <methods>; | |
| 174 | +} | |
| 175 | + | |
| 176 | +-keep class com.squareup.wire.* { | |
| 177 | + public <fields>; | |
| 178 | + public <methods>; | |
| 179 | +} | |
| 180 | + | |
| 181 | + | |
| 182 | +-keep class org.android.agoo.impl.*{ | |
| 183 | + public <fields>; | |
| 184 | + public <methods>; | |
| 185 | +} | |
| 186 | + | |
| 187 | +-keep class org.android.spdy.**{*;} | |
| 188 | + | |
| 189 | +-keep public class com.cnlive.goldenline.R$*{ | |
| 190 | + public static final int *; | |
| 191 | +} | |
| 192 | + | |
| 193 | +-keep class com.umeng.message.* { | |
| 194 | + public <fields>; | |
| 195 | + public <methods>; | |
| 196 | +} | |
| 197 | + | |
| 198 | +-keep class org.android.agoo.service.* {*;} | |
| 199 | +-keep class org.android.spdy.*{*;} | |
| 200 | +-keep public class com.cmcc.migutvtwo.R$*{ | |
| 201 | +public static final int *; | |
| 202 | +} | |
| 203 | + | |
| 204 | +## Umeng Push END | |
| 205 | + | |
| 206 | +#################### | |
| 207 | +## Umeng Message ## | |
| 208 | +#################### | |
| 209 | +-dontwarn com.taobao.** | |
| 210 | +-dontwarn anet.channel.** | |
| 211 | +-dontwarn anetwork.channel.** | |
| 212 | +-dontwarn org.android.** | |
| 213 | +-dontwarn org.apache.thrift.** | |
| 214 | +-dontwarn com.xiaomi.** | |
| 215 | +-dontwarn com.huawei.** | |
| 216 | + | |
| 217 | +-keepattributes *Annotation* | |
| 218 | + | |
| 219 | +-keep class com.taobao.** {*;} | |
| 220 | +-keep class org.android.** {*;} | |
| 221 | +-keep class anet.channel.** {*;} | |
| 222 | +-keep class com.umeng.** {*;} | |
| 223 | +-keep class com.xiaomi.** {*;} | |
| 224 | +-keep class com.huawei.** {*;} | |
| 225 | +-keep class org.apache.thrift.** {*;} | |
| 226 | + | |
| 227 | +-keep class com.alibaba.sdk.android.**{*;} | |
| 228 | +-keep class com.ut.**{*;} | |
| 229 | +-keep class com.ta.**{*;} | |
| 230 | + | |
| 231 | +-keep public class **.R$*{ | |
| 232 | + public static final int *; | |
| 233 | +} | |
| 234 | + | |
| 235 | +#(可选)避免Log打印输出 | |
| 236 | +-assumenosideeffects class android.util.Log { | |
| 237 | + public static *** v(...); | |
| 238 | + public static *** d(...); | |
| 239 | + public static *** i(...); | |
| 240 | + public static *** w(...); | |
| 241 | + } | |
| 242 | +## Umeng Message END | |
| 243 | + | |
| 244 | +#################### | |
| 245 | +#### EventBus #### | |
| 246 | +#################### | |
| 247 | +-keepattributes *Annotation* | |
| 248 | +-keepclassmembers class ** { | |
| 249 | + @org.greenrobot.eventbus.Subscribe <methods>; | |
| 250 | +} | |
| 251 | +-keep enum org.greenrobot.eventbus.ThreadMode { *; } | |
| 252 | + | |
| 253 | +# Only required if you use AsyncExecutor | |
| 254 | +-keepclassmembers class * extends org.greenrobot.eventbus.util.ThrowableFailureEvent { | |
| 255 | + <init>(java.lang.Throwable); | |
| 256 | +} | |
| 257 | +## EventBus END | |
| 258 | + | |
| 259 | +-dontwarn android.util.** | |
| 260 | +-keep class android.util.**{*;} | |
| 261 | + | |
| 262 | +-keep class com.cnlive.goldenline.model.**{*;} | |
| 263 | +-dontwarn com.cnlive.goldenline.model.** | |
| 264 | + | |
| 265 | +-keep class com.cnlive.goldenline.pay.model.**{*;} | |
| 266 | +-dontwarn com.cnlive.goldenline.pay.model.** | |
| 267 | + | |
| 268 | +-keep class com.squareup.okhttp.** {*;} | |
| 269 | +-dontwarn com.squareup.okhttp.** | |
| 270 | + | |
| 271 | +-keep class com.cnlive.goldenline.dao.**{*;} | |
| 272 | +-dontwarn com.cnlive.goldenline.dao.** | |
| 273 | + | |
| 274 | +-keep class com.mob.** {*;} | |
| 275 | +-dontwarn com.mob.** | |
| 276 | + | |
| 277 | +-keep class org.android.** {*;} | |
| 278 | +-dontwarn org.android.** | |
| 279 | + | |
| 280 | +-keep class com.google.** {*;} | |
| 281 | +-dontwarn com.google.** | |
| 282 | + | |
| 283 | +-keep class com.alipay.** {*;} | |
| 284 | +-dontwarn com.alipay.** | |
| 285 | + | |
| 286 | +-dontwarn com.cnlive.libs.** | |
| 287 | +-keep class com.cnlive.libs.** {*;} | |
| 288 | + | |
| 289 | +-dontwarn com.ksy.** | |
| 290 | +-keep class com.ksy.** { *;} | |
| 291 | + | |
| 292 | +-dontwarn com.ksyun.** | |
| 293 | +-keep class com.ksyun.** { *;} | |
| 294 | + | |
| 295 | +-keep class com.cnlive.goldenline.ui.zxing.** {*;} | |
| 296 | +-dontwarn com.cnlive.goldenline.ui.zxing.** | |
| 297 | + | |
| 298 | +-keep class com.cnlive.goldenline.ui.widget.selectionview.** {*;} | |
| 299 | +-dontwarn com.cnlive.goldenline.ui.widget.selectionview.** | |
| 300 | + | |
| 301 | +-keep class com.bumptech.glide.** {*;} | |
| 302 | +-dontwarn com.bumptech.glide.** | |
| 303 | + | |
| 304 | +-dontwarn com.migu.** | |
| 305 | +-keep class com.migu.** { *;} | |
| 306 | + | |
| 307 | +-dontwarn cn.cnvideo.** | |
| 308 | +-keep class cn.cnvideo.** { *;} | |
| 309 | + | |
| 310 | +-dontwarn com.cnlive.goldenline.danmu.** | |
| 311 | +-keep class com.cnlive.goldenline.danmu.** {*;} | |
| 312 | + | |
| 313 | +-dontwarn com.cnlive.goldenline.ui.activity.act.model.** | |
| 314 | +-keep class com.cnlive.goldenline.ui.activity.act.model.** {*;} | |
| 315 | + | |
| 316 | +-dontwarn com.cnlive.goldenline.ui.model.** | |
| 317 | +-keep class com.cnlive.goldenline.ui.model.** {*;} | |
| 318 | + | |
| 319 | +-ignorewarnings | |
| 320 | + | |
| 321 | +-dontwarn com.shiliantong.** | |
| 322 | +-keep class com.shiliantong.**{*;} | |
| 323 | + | |
| 324 | +-dontwarn com.slt.** | |
| 325 | +-keep class com.slt.**{*;} | |
| 326 | + | |
| 327 | +-dontwarn com.android.volley.** | |
| 328 | +-keep class com.android.volley.**{*;} | |
| 329 | + | |
| 330 | +-dontwarn io.rong.** | |
| 331 | +-keep class io.rong.**{*;} | |
| 332 | + | |
| 333 | +-keep class com.lidroid.xutils.** {*;} | |
| 334 | +-dontwarn com.lidroid.xutils.** | |
| 335 | + | |
| 336 | +-keep class com.igexin.** {*;} | |
| 337 | +-dontwarn com.igexin.** | |
| 338 | + | |
| 339 | +-keep class com.EasyMovieTexture.** {*;} | |
| 340 | +-dontwarn com.EasyMovieTextureu.** | |
| 341 | + | |
| 342 | +-keep class com.android.vending.expansion.zipfile.** {*;} | |
| 343 | +-dontwarn com.android.vending.expansion.zipfile.** | |
| 344 | + | |
| 345 | +## crashlytics | |
| 346 | +-keep class com.crashlytics.** { *; } | |
| 347 | +-keep class com.crashlytics.android.** | |
| 348 | +-keepattributes SourceFile,LineNumberTable | |
| 0 | 349 | \ No newline at end of file | ... | ... |
app/runtime/MiguSDK2.0_203.jar
0 → 100644
No preview for this file type
app/src/androidTest/java/com/cnlive/goldenline/ExampleInstrumentedTest.java
0 → 100644
| 1 | +++ a/app/src/androidTest/java/com/cnlive/goldenline/ExampleInstrumentedTest.java | |
| 1 | +package com.cnlive.goldenline; | |
| 2 | + | |
| 3 | +import android.content.Context; | |
| 4 | +import android.support.test.InstrumentationRegistry; | |
| 5 | +import android.support.test.runner.AndroidJUnit4; | |
| 6 | + | |
| 7 | +import org.junit.Test; | |
| 8 | +import org.junit.runner.RunWith; | |
| 9 | + | |
| 10 | +import static org.junit.Assert.*; | |
| 11 | + | |
| 12 | +/** | |
| 13 | + * Instrumentation test, which will execute on an Android device. | |
| 14 | + * | |
| 15 | + * @see <a href="http://d.android.com/tools/testing">Testing documentation</a> | |
| 16 | + */ | |
| 17 | +@RunWith(AndroidJUnit4.class) | |
| 18 | +public class ExampleInstrumentedTest { | |
| 19 | + @Test | |
| 20 | + public void useAppContext() throws Exception { | |
| 21 | + // Context of the app under test. | |
| 22 | + Context appContext = InstrumentationRegistry.getTargetContext(); | |
| 23 | + | |
| 24 | + assertEquals("com.cnlive.goldenline", appContext.getPackageName()); | |
| 25 | + } | |
| 26 | +} | ... | ... |
app/src/main/AndroidManifest.xml
0 → 100644
| 1 | +++ a/app/src/main/AndroidManifest.xml | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + package="com.cnlive.goldenline"> | |
| 4 | + | |
| 5 | + <!--网络权限--> | |
| 6 | + <uses-permission android:name="android.permission.INTERNET" /> | |
| 7 | + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
| 8 | + <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> | |
| 9 | + <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> | |
| 10 | + <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | |
| 11 | + <uses-permission android:name="android.permission.READ_PHONE_SINTERNETWIFI_STATE" /> | |
| 12 | + | |
| 13 | + <!--设备状态 设置 --> | |
| 14 | + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> | |
| 15 | + <uses-permission android:name="android.permission.WRITE_SETTINGS" /> | |
| 16 | + | |
| 17 | + <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | |
| 18 | + <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" /> | |
| 19 | + <!-- 用以设置前台是否显示通知 --> | |
| 20 | + <uses-permission android:name="android.permission.GET_TASKS" /> | |
| 21 | + <uses-permission android:name="android.permission.GET_ACCOUNTS" /> | |
| 22 | + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
| 23 | + <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | |
| 24 | + <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" /> | |
| 25 | + <!-- 蓝牙分享所需的权限 --> | |
| 26 | + <uses-permission android:name="android.permission.BLUETOOTH" /> | |
| 27 | + <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> | |
| 28 | + <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" /> | |
| 29 | + | |
| 30 | + <!-- 二维码权限 --> | |
| 31 | + <uses-permission android:name="android.permission.CAMERA" /> | |
| 32 | + | |
| 33 | + <uses-feature android:name="android.hardware.camera" /> | |
| 34 | + <uses-feature android:name="android.hardware.camera.autofocus" /> | |
| 35 | + | |
| 36 | + <!--震动 闪光 唤醒 系统悬浮窗 录音--> | |
| 37 | + <uses-permission android:name="android.permission.VIBRATE" /> | |
| 38 | + <uses-permission android:name="android.permission.WAKE_LOCK" /> | |
| 39 | + <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> | |
| 40 | + <uses-permission android:name="android.permission.RECORD_AUDIO" /> | |
| 41 | + <uses-permission android:name="android.permission.FLASHLIGHT" /> | |
| 42 | + | |
| 43 | + <!--短信及通讯录--> | |
| 44 | + <uses-permission android:name="android.permission.SEND_SMS" /> | |
| 45 | + <uses-permission android:name="android.permission.READ_SMS" /> | |
| 46 | + <uses-permission android:name="android.permission.WRITE_SMS" /> | |
| 47 | + <uses-permission android:name="android.permission.READ_CONTACTS" /> | |
| 48 | + <!--位置信息--> | |
| 49 | + <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | |
| 50 | + <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | |
| 51 | + | |
| 52 | + <uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> | |
| 53 | + | |
| 54 | + <supports-screens | |
| 55 | + android:anyDensity="true" | |
| 56 | + android:largeScreens="true" | |
| 57 | + android:normalScreens="true" | |
| 58 | + android:resizeable="true" | |
| 59 | + android:smallScreens="true" /> | |
| 60 | + | |
| 61 | + <application | |
| 62 | + android:name="com.cnlive.goldenline.application.GoldenLineApplication" | |
| 63 | + android:allowBackup="true" | |
| 64 | + android:icon="@mipmap/ic_launcher" | |
| 65 | + android:label="@string/app_name" | |
| 66 | + android:screenOrientation="portrait" | |
| 67 | + android:supportsRtl="true" | |
| 68 | + android:theme="@style/AppTheme"> | |
| 69 | + | |
| 70 | + <!-- 友盟 --> | |
| 71 | + <meta-data | |
| 72 | + android:name="UMENG_APPKEY" | |
| 73 | + android:value="573c0807e0f55ac53800426f" /> | |
| 74 | + <meta-data | |
| 75 | + android:name="UMENG_MESSAGE_SECRET" | |
| 76 | + android:value="2b28fe7d963e9596a6495f35de580d41" /> | |
| 77 | + <meta-data | |
| 78 | + android:name="UMENG_CHANNEL" | |
| 79 | + android:value="goldenline" /> | |
| 80 | + | |
| 81 | + <!--移动计费SDK 切勿随意更改,否则后果自负--> | |
| 82 | + <service android:name="com.migu.sdk.service.MiguSdkService" /> | |
| 83 | + <service android:name="cn.cmvideo.sdk.common.service.SendService" /> | |
| 84 | + | |
| 85 | + <activity | |
| 86 | + android:name=".ui.activity.SplashScreenActivity" | |
| 87 | + android:launchMode="singleTop" | |
| 88 | + android:screenOrientation="portrait" | |
| 89 | + android:theme="@style/SplashStyle"> | |
| 90 | + <intent-filter> | |
| 91 | + <action android:name="android.intent.action.MAIN" /> | |
| 92 | + | |
| 93 | + <category android:name="android.intent.category.LAUNCHER" /> | |
| 94 | + </intent-filter> | |
| 95 | + <intent-filter> | |
| 96 | + <action android:name="android.intent.action.VIEW" /> | |
| 97 | + | |
| 98 | + <category android:name="android.intent.category.BROWSABLE" /> | |
| 99 | + <category android:name="android.intent.category.DEFAULT" /> | |
| 100 | + | |
| 101 | + <data android:scheme="goldSeaBank" /> | |
| 102 | + </intent-filter> | |
| 103 | + </activity> | |
| 104 | + | |
| 105 | + <activity | |
| 106 | + android:name=".ui.activity.MainActivity" | |
| 107 | + android:configChanges="keyboardHidden|orientation|screenSize" | |
| 108 | + android:launchMode="singleTop" | |
| 109 | + android:screenOrientation="portrait"></activity> | |
| 110 | + | |
| 111 | + <activity | |
| 112 | + android:name=".ui.activity.LiveShowListActivity" | |
| 113 | + android:launchMode="singleTop" | |
| 114 | + android:screenOrientation="portrait" | |
| 115 | + android:theme="@style/ColorTranslucentTheme"> | |
| 116 | + | |
| 117 | + </activity> | |
| 118 | + | |
| 119 | + <!--直播详情--> | |
| 120 | + <activity | |
| 121 | + android:name=".ui.activity.LiveShowActivity" | |
| 122 | + android:configChanges="keyboardHidden|screenSize|orientation" | |
| 123 | + android:launchMode="singleTop" | |
| 124 | + android:screenOrientation="portrait" | |
| 125 | + android:windowSoftInputMode="adjustResize"> | |
| 126 | + | |
| 127 | + </activity> | |
| 128 | + <!--回看列表--> | |
| 129 | + <activity | |
| 130 | + android:name=".ui.activity.PlayBackListActivity" | |
| 131 | + android:launchMode="singleTop" | |
| 132 | + android:screenOrientation="portrait" | |
| 133 | + android:theme="@style/ColorTranslucentTheme"> | |
| 134 | + | |
| 135 | + </activity> | |
| 136 | + | |
| 137 | + <!--重磅预约--> | |
| 138 | + <activity | |
| 139 | + android:name=".ui.activity.IntensityListActivity" | |
| 140 | + android:launchMode="singleTop" | |
| 141 | + android:screenOrientation="portrait" | |
| 142 | + android:theme="@style/ColorTranslucentTheme"> | |
| 143 | + | |
| 144 | + </activity> | |
| 145 | + | |
| 146 | + <!--节目分类--> | |
| 147 | + <activity | |
| 148 | + android:name=".ui.activity.VideoTypeListActivity" | |
| 149 | + android:configChanges="keyboardHidden|orientation|screenSize" | |
| 150 | + android:launchMode="singleTop" | |
| 151 | + android:screenOrientation="portrait" | |
| 152 | + android:theme="@style/ColorTranslucentTheme"> | |
| 153 | + | |
| 154 | + </activity> | |
| 155 | + | |
| 156 | + <!--预约节目--> | |
| 157 | + <activity | |
| 158 | + android:name=".ui.activity.SubscribeShowActivity" | |
| 159 | + android:configChanges="keyboardHidden|orientation|screenSize" | |
| 160 | + android:screenOrientation="portrait" /> | |
| 161 | + | |
| 162 | + <!--预约选厅--> | |
| 163 | + <activity | |
| 164 | + android:name=".ui.activity.ChooseScreenActivity" | |
| 165 | + android:launchMode="singleTop" | |
| 166 | + android:screenOrientation="portrait" /> | |
| 167 | + <!--预约选座--> | |
| 168 | + <activity | |
| 169 | + android:name=".ui.activity.ChooseSeatActivity" | |
| 170 | + android:launchMode="singleTop" | |
| 171 | + android:screenOrientation="portrait" /> | |
| 172 | + | |
| 173 | + <!--确认订单--> | |
| 174 | + <activity | |
| 175 | + android:name=".ui.activity.ConfirmOrderActivity" | |
| 176 | + android:launchMode="singleTop" | |
| 177 | + android:screenOrientation="portrait" /> | |
| 178 | + | |
| 179 | + <!--点播详情--> | |
| 180 | + <activity | |
| 181 | + android:name=".ui.activity.DianBoPlayerActivity" | |
| 182 | + android:configChanges="keyboardHidden|screenSize|orientation" | |
| 183 | + android:launchMode="singleTop" | |
| 184 | + android:screenOrientation="portrait" /> | |
| 185 | + | |
| 186 | + <!--日签--> | |
| 187 | + <activity | |
| 188 | + android:name=".ui.activity.CheckDayActivity" | |
| 189 | + android:launchMode="singleTop" | |
| 190 | + android:screenOrientation="portrait" | |
| 191 | + android:theme="@style/AppTheme.TransparentActivity.FullScreen"> | |
| 192 | + | |
| 193 | + </activity> | |
| 194 | + | |
| 195 | + <!--搜索界面--> | |
| 196 | + <activity | |
| 197 | + android:name=".ui.activity.SearchResultActivity" | |
| 198 | + android:launchMode="singleTop" | |
| 199 | + android:windowSoftInputMode="adjustPan|stateVisible" | |
| 200 | + android:screenOrientation="portrait"></activity> | |
| 201 | + | |
| 202 | + <!--h5Activity--> | |
| 203 | + <activity | |
| 204 | + android:name=".ui.activity.WebViewActivity" | |
| 205 | + android:launchMode="singleTop" | |
| 206 | + android:screenOrientation="portrait"></activity> | |
| 207 | + <!-- 活动界面 --> | |
| 208 | + <activity | |
| 209 | + android:name=".ui.activity.ActiveActivity" | |
| 210 | + android:launchMode="singleTop" | |
| 211 | + android:screenOrientation="portrait" /> | |
| 212 | + <!-- 活动 mc --> | |
| 213 | + <activity | |
| 214 | + android:name=".ui.activity.act.ActActivity" | |
| 215 | + android:configChanges="keyboardHidden|orientation|screenSize" | |
| 216 | + android:launchMode="singleTop" | |
| 217 | + android:screenOrientation="portrait" /> | |
| 218 | + <!-- 全部订阅 --> | |
| 219 | + <activity | |
| 220 | + android:name=".ui.activity.AllSubscriptionActivity" | |
| 221 | + android:launchMode="singleTop" | |
| 222 | + android:screenOrientation="portrait" /> | |
| 223 | + <!-- 剧场详细信息 --> | |
| 224 | + <activity | |
| 225 | + android:name=".ui.activity.TheatreDetailActivity" | |
| 226 | + android:launchMode="singleTop" | |
| 227 | + android:screenOrientation="portrait" /> | |
| 228 | + <!-- 剧场信息 --> | |
| 229 | + <activity | |
| 230 | + android:name=".ui.activity.TheatreInfoActivity" | |
| 231 | + android:configChanges="keyboardHidden|orientation|screenSize" | |
| 232 | + android:launchMode="singleTop" | |
| 233 | + android:screenOrientation="portrait" /> | |
| 234 | + <!-- 个人介绍 --> | |
| 235 | + <activity | |
| 236 | + android:name=".ui.activity.PersonDetailsActivity" | |
| 237 | + android:launchMode="singleTop" | |
| 238 | + android:screenOrientation="portrait" /> | |
| 239 | + <!-- 会员中心 --> | |
| 240 | + <activity | |
| 241 | + android:name=".ui.activity.VipCentreActivity" | |
| 242 | + android:launchMode="singleTop" | |
| 243 | + android:screenOrientation="portrait" /> | |
| 244 | + <!-- 我的钱包 --> | |
| 245 | + <activity | |
| 246 | + android:name=".ui.activity.WalletActivity" | |
| 247 | + android:launchMode="singleTask" | |
| 248 | + android:screenOrientation="portrait" /> | |
| 249 | + <!-- 我的钱包记录明细 --> | |
| 250 | + <activity | |
| 251 | + android:name=".ui.activity.WalletTransactionRecordActivity" | |
| 252 | + android:launchMode="singleTop" | |
| 253 | + android:screenOrientation="portrait" /> | |
| 254 | + <!-- 我的消息 --> | |
| 255 | + <activity | |
| 256 | + android:name=".ui.activity.MyMessageActivity" | |
| 257 | + android:launchMode="singleTop" | |
| 258 | + android:screenOrientation="portrait" /> | |
| 259 | + <!-- 登录 --> | |
| 260 | + <activity | |
| 261 | + android:name=".ui.activity.RegisterActivity" | |
| 262 | + android:launchMode="singleTop" | |
| 263 | + android:screenOrientation="portrait" /> | |
| 264 | + <!-- 修改昵称 --> | |
| 265 | + <activity | |
| 266 | + android:name=".ui.activity.UpdateNameActivity" | |
| 267 | + android:launchMode="singleTop" | |
| 268 | + android:screenOrientation="portrait" /> | |
| 269 | + <!-- 完善个人信息 --> | |
| 270 | + <activity | |
| 271 | + android:name=".ui.activity.ImprovePersonInfoActivity" | |
| 272 | + android:launchMode="singleTop" | |
| 273 | + android:screenOrientation="portrait" /> | |
| 274 | + <!-- 修改手机号码 --> | |
| 275 | + <activity | |
| 276 | + android:name=".ui.activity.UpdatePhoneActivity" | |
| 277 | + android:launchMode="singleTop" | |
| 278 | + android:screenOrientation="portrait" /> | |
| 279 | + <!-- 观看历史 --> | |
| 280 | + <activity | |
| 281 | + android:name=".ui.activity.HistoryActivity" | |
| 282 | + android:launchMode="singleTop" | |
| 283 | + android:screenOrientation="portrait" /> | |
| 284 | + <!-- 我的收藏 --> | |
| 285 | + <activity | |
| 286 | + android:name=".ui.activity.CollectActivity" | |
| 287 | + android:launchMode="singleTop" | |
| 288 | + android:screenOrientation="portrait" /> | |
| 289 | + <!-- 我的票 --> | |
| 290 | + <activity | |
| 291 | + android:name=".ui.activity.MyTicketActivity" | |
| 292 | + android:launchMode="singleTop" | |
| 293 | + android:screenOrientation="portrait" /> | |
| 294 | + | |
| 295 | + <activity | |
| 296 | + android:name=".ui.activity.act.model.ActWebActivity" | |
| 297 | + android:launchMode="singleTop" | |
| 298 | + android:screenOrientation="portrait" /> | |
| 299 | + | |
| 300 | + <!-- 帮助与反馈 --> | |
| 301 | + <activity | |
| 302 | + android:name=".ui.activity.FeedbackActivity" | |
| 303 | + android:launchMode="singleTop" | |
| 304 | + android:screenOrientation="portrait" /> | |
| 305 | + <!-- 设置 --> | |
| 306 | + <activity | |
| 307 | + android:name=".ui.activity.SettingActivity" | |
| 308 | + android:launchMode="singleTop" | |
| 309 | + android:screenOrientation="portrait" /> | |
| 310 | + <!-- 关于我们--> | |
| 311 | + <activity | |
| 312 | + android:name=".ui.activity.AboutActivity" | |
| 313 | + android:launchMode="singleTop" | |
| 314 | + android:screenOrientation="portrait" /> | |
| 315 | + <!-- 剧目--> | |
| 316 | + <activity | |
| 317 | + android:name=".ui.activity.OperasListActivity" | |
| 318 | + android:configChanges="keyboardHidden|orientation|screenSize" | |
| 319 | + android:launchMode="singleTop" | |
| 320 | + android:screenOrientation="portrait" /> | |
| 321 | + <!-- 优惠券--> | |
| 322 | + <activity | |
| 323 | + android:name=".ui.activity.MyCouponActivity" | |
| 324 | + android:launchMode="singleTop" | |
| 325 | + android:screenOrientation="portrait" /> | |
| 326 | + | |
| 327 | + <!-- 更新app下载完成接收器--> | |
| 328 | + <receiver android:name=".util.DownloadCompleteReceiver"> | |
| 329 | + <intent-filter> | |
| 330 | + <action android:name="android.intent.action.DOWNLOAD_COMPLETE" /> | |
| 331 | + </intent-filter> | |
| 332 | + </receiver> | |
| 333 | + <!--第三方Activity--> | |
| 334 | + | |
| 335 | + <activity | |
| 336 | + android:name="cn.cmvideo.sdk.common.component.CmVideoBrowser" | |
| 337 | + android:configChanges="keyboardHidden|orientation" | |
| 338 | + android:exported="false" | |
| 339 | + android:windowSoftInputMode="adjustResize" /> | |
| 340 | + | |
| 341 | + <activity | |
| 342 | + android:name="com.mob.tools.MobUIShell" | |
| 343 | + android:configChanges="keyboardHidden|orientation|screenSize" | |
| 344 | + android:screenOrientation="portrait" | |
| 345 | + android:theme="@android:style/Theme.Translucent.NoTitleBar" | |
| 346 | + android:windowSoftInputMode="stateHidden|adjustResize"> | |
| 347 | + <intent-filter> | |
| 348 | + <data android:scheme="tencent100371282" /> | |
| 349 | + | |
| 350 | + <action android:name="android.intent.action.VIEW" /> | |
| 351 | + | |
| 352 | + <category android:name="android.intent.category.BROWSABLE" /> | |
| 353 | + <category android:name="android.intent.category.DEFAULT" /> | |
| 354 | + </intent-filter> | |
| 355 | + | |
| 356 | + <!-- 调用新浪原生SDK,需要注册的回调activity --> | |
| 357 | + <intent-filter> | |
| 358 | + <action android:name="com.sina.weibo.sdk.action.ACTION_SDK_REQ_ACTIVITY" /> | |
| 359 | + | |
| 360 | + <category android:name="android.intent.category.DEFAULT" /> | |
| 361 | + </intent-filter> | |
| 362 | + </activity> | |
| 363 | + | |
| 364 | + <!-- 微信分享回调 --> | |
| 365 | + <activity | |
| 366 | + android:name=".wxapi.WXEntryActivity" | |
| 367 | + android:configChanges="keyboardHidden|orientation|screenSize" | |
| 368 | + android:exported="true" | |
| 369 | + android:screenOrientation="portrait" | |
| 370 | + android:theme="@android:style/Theme.Translucent.NoTitleBar" /> | |
| 371 | + | |
| 372 | + <!-- 支付宝网页支付 --> | |
| 373 | + <activity | |
| 374 | + android:name=".pay.H5PayDemoActivity" | |
| 375 | + android:configChanges="orientation|keyboardHidden|navigation" | |
| 376 | + android:exported="false" | |
| 377 | + android:screenOrientation="behind" /> | |
| 378 | + <!-- 支付宝H5页面支付 --> | |
| 379 | + <activity | |
| 380 | + android:name="com.alipay.sdk.app.H5PayActivity" | |
| 381 | + android:configChanges="orientation|keyboardHidden|navigation|screenSize" | |
| 382 | + android:exported="false" | |
| 383 | + android:screenOrientation="behind" | |
| 384 | + android:windowSoftInputMode="adjustResize|stateHidden" /> | |
| 385 | + <activity | |
| 386 | + android:name="com.alipay.sdk.auth.AuthActivity" | |
| 387 | + android:configChanges="orientation|keyboardHidden|navigation" | |
| 388 | + android:exported="false" | |
| 389 | + android:screenOrientation="behind" > | |
| 390 | + </activity> | |
| 391 | + | |
| 392 | + | |
| 393 | + <!--微信支付 --> | |
| 394 | + <activity | |
| 395 | + android:name=".wxapi.WXPayEntryActivity" | |
| 396 | + android:exported="true" | |
| 397 | + android:launchMode="singleTop" /> | |
| 398 | + | |
| 399 | + | |
| 400 | + <service | |
| 401 | + android:name="io.rong.imlib.ipc.RongService" | |
| 402 | + android:exported="true" | |
| 403 | + android:process=":ipc" /> | |
| 404 | + | |
| 405 | + <service | |
| 406 | + android:name="io.rong.imlib.ReConnectService" | |
| 407 | + android:exported="true" /> | |
| 408 | + | |
| 409 | + <receiver | |
| 410 | + android:name="io.rong.imlib.ConnectChangeReceiver" | |
| 411 | + android:exported="true" /> | |
| 412 | + | |
| 413 | + <receiver | |
| 414 | + android:name="io.rong.imlib.HeartbeatReceiver" | |
| 415 | + android:process=":ipc" /> | |
| 416 | + <!-- com.cnlive.libs.chat config end --> | |
| 417 | + | |
| 418 | + | |
| 419 | + <!--必选: SDK 核心功能--> | |
| 420 | + <!--第三方相关,向第三方推送服务请求 token 的服务 --> | |
| 421 | + <service | |
| 422 | + android:name="io.rong.push.core.PushRegistrationService" | |
| 423 | + android:exported="false"></service> | |
| 424 | + | |
| 425 | + <!-- 处理 push 消息相关的服务 --> | |
| 426 | + <service | |
| 427 | + android:name="io.rong.push.core.MessageHandleService" | |
| 428 | + android:exported="true"></service> | |
| 429 | + | |
| 430 | + <!-- push服务 --> | |
| 431 | + <service | |
| 432 | + android:name="io.rong.push.PushService" | |
| 433 | + android:exported="true" | |
| 434 | + android:process="io.rong.push"> <!-- push进程,可以改名 --> | |
| 435 | + </service> | |
| 436 | + | |
| 437 | + <!-- push 相关事件接收器 --> | |
| 438 | + <receiver | |
| 439 | + android:name="io.rong.push.PushReceiver" | |
| 440 | + android:process="io.rong.push"> <!-- 此处进程可以改名,名称需要和PushService所在进程统一 --> | |
| 441 | + <!-- 心跳事件 --> | |
| 442 | + <intent-filter> | |
| 443 | + <action android:name="io.rong.push.intent.action.HEART_BEAT" /> | |
| 444 | + </intent-filter> | |
| 445 | + <!-- 网络变动事件 --> | |
| 446 | + <intent-filter> | |
| 447 | + <action android:name="android.net.conn.CONNECTIVITY_CHANGE" /> | |
| 448 | + </intent-filter> | |
| 449 | + <!-- 部分用户事件 --> | |
| 450 | + <intent-filter> | |
| 451 | + <action android:name="android.intent.action.BOOT_COMPLETED" /> | |
| 452 | + </intent-filter> | |
| 453 | + <intent-filter> | |
| 454 | + <action android:name="android.intent.action.USER_PRESENT" /> | |
| 455 | + <action android:name="android.intent.action.ACTION_POWER_CONNECTED" /> | |
| 456 | + <action android:name="android.intent.action.ACTION_POWER_DISCONNECTED" /> | |
| 457 | + </intent-filter> | |
| 458 | + </receiver> | |
| 459 | + | |
| 460 | + <!--必选: SDK 核心功能--> | |
| 461 | + | |
| 462 | + <!-- end --> | |
| 463 | + | |
| 464 | + <meta-data | |
| 465 | + android:name="io.fabric.ApiKey" | |
| 466 | + android:value="ad4c6ea643d6b323b5f81ba1391b9ced2a4fd9e5" /> | |
| 467 | + | |
| 468 | + </application> | |
| 469 | + | |
| 470 | +</manifest> | |
| 0 | 471 | \ No newline at end of file | ... | ... |
app/src/main/AndroidManifest.xml.bak
0 → 100644
| 1 | +++ a/app/src/main/AndroidManifest.xml.bak | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| 3 | + package="com.cnlive.goldenline"> | |
| 4 | + | |
| 5 | + <!--网络权限--> | |
| 6 | + <uses-permission android:name="android.permission.INTERNET" /> | |
| 7 | + <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
| 8 | + <uses-permission android:name="android.permission.CHANGE_NETWORK_STATE" /> | |
| 9 | + <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> | |
| 10 | + <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | |
| 11 | + <uses-permission android:name="android.permission.READ_PHONE_SINTERNETWIFI_STATE" /> | |
| 12 | + | |
| 13 | + <!--设备状态 设置 --> | |
| 14 | + <uses-permission android:name="android.permission.READ_PHONE_STATE" /> | |
| 15 | + <uses-permission android:name="android.permission.WRITE_SETTINGS" /> | |
| 16 | + | |
| 17 | + <uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED" /> | |
| 18 | + <uses-permission android:name="android.permission.UPDATE_APP_OPS_STATS" /> | |
| 19 | + <!-- 用以设置前台是否显示通知 --> | |
| 20 | + <uses-permission android:name="android.permission.GET_TASKS" /> | |
| 21 | + <uses-permission android:name="android.permission.GET_ACCOUNTS" /> | |
| 22 | + <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> | |
| 23 | + <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" /> | |
| 24 | + <uses-permission android:name="android.permission.MANAGE_ACCOUNTS" /> | |
| 25 | + <!-- 蓝牙分享所需的权限 --> | |
| 26 | + <uses-permission android:name="android.permission.BLUETOOTH" /> | |
| 27 | + <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" /> | |
| 28 | + <uses-permission android:name="android.permission.MOUNT_UNMOUNT_FILESYSTEMS" /> | |
| 29 | + | |
| 30 | + <!-- 二维码权限 --> | |
| 31 | + <uses-permission android:name="android.permission.CAMERA" /> | |
| 32 | + | |
| 33 | + <uses-feature android:name="android.hardware.camera" /> | |
| 34 | + <uses-feature android:name="android.hardware.camera.autofocus" /> | |
| 35 | + | |
| 36 | + <!--震动 闪光 唤醒 系统悬浮窗 录音--> | |
| 37 | + <uses-permission android:name="android.permission.VIBRATE" /> | |
| 38 | + <uses-permission android:name="android.permission.WAKE_LOCK" /> | |
| 39 | + <uses-permission android:name="android.permission.SYSTEM_ALERT_WINDOW" /> | |
| 40 | + <uses-permission android:name="android.permission.RECORD_AUDIO" /> | |
| 41 | + <uses-permission android:name="android.permission.FLASHLIGHT" /> | |
| 42 | + | |
| 43 | + <!--短信及通讯录--> | |
| 44 | + <uses-permission android:name="android.permission.SEND_SMS" /> | |
| 45 | + <uses-permission android:name="android.permission.READ_SMS" /> | |
| 46 | + <uses-permission android:name="android.permission.WRITE_SMS" /> | |
| 47 | + <uses-permission android:name="android.permission.READ_CONTACTS" /> | |
| 48 | + <!--位置信息--> | |
| 49 | + <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> | |
| 50 | + <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> | |
| 51 | + | |
| 52 | + <supports-screens | |
| 53 | + android:anyDensity="true" | |
| 54 | + android:largeScreens="true" | |
| 55 | + android:normalScreens="true" | |
| 56 | + android:resizeable="true" | |
| 57 | + android:smallScreens="true" /> | |
| 58 | + | |
| 59 | + <application | |
| 60 | + android:name="com.cnlive.goldenline.application.GoldenLineApplication" | |
| 61 | + android:allowBackup="true" | |
| 62 | + android:icon="@mipmap/ic_launcher" | |
| 63 | + android:label="@string/app_name" | |
| 64 | + android:screenOrientation="portrait" | |
| 65 | + android:supportsRtl="true" | |
| 66 | + android:theme="@style/AppTheme"> | |
| 67 | + | |
| 68 | + <!-- 友盟 --> | |
| 69 | + <meta-data | |
| 70 | + android:name="UMENG_APPKEY" | |
| 71 | + android:value="573c0807e0f55ac53800426f" /> | |
| 72 | + <meta-data | |
| 73 | + android:name="UMENG_MESSAGE_SECRET" | |
| 74 | + android:value="2b28fe7d963e9596a6495f35de580d41" /> | |
| 75 | + <meta-data | |
| 76 | + android:name="UMENG_CHANNEL" | |
| 77 | + android:value="${channelId}" /> | |
| 78 | + | |
| 79 | + <!--移动计费SDK 切勿随意更改,否则后果自负--> | |
| 80 | + <service android:name="com.migu.sdk.service.MiguSdkService" /> | |
| 81 | + <service android:name="cn.cmvideo.sdk.common.service.SendService" /> | |
| 82 | + | |
| 83 | + <activity | |
| 84 | + android:name=".ui.activity.SplashActivity" | |
| 85 | + android:launchMode="singleTop" | |
| 86 | + android:screenOrientation="portrait"> | |
| 87 | + | |
| 88 | + </activity> | |
| 89 | + | |
| 90 | + <activity | |
| 91 | + android:name=".ui.activity.MainActivity" | |
| 92 | + android:launchMode="singleTop" | |
| 93 | + android:screenOrientation="portrait" | |
| 94 | + android:theme="@style/ColorTranslucentTheme"> | |
| 95 | + <intent-filter> | |
| 96 | + <action android:name="android.intent.action.MAIN" /> | |
| 97 | + | |
| 98 | + <category android:name="android.intent.category.LAUNCHER" /> | |
| 99 | + </intent-filter> | |
| 100 | + <intent-filter> | |
| 101 | + <action android:name="android.intent.action.VIEW" /> | |
| 102 | + | |
| 103 | + <category android:name="android.intent.category.BROWSABLE" /> | |
| 104 | + <category android:name="android.intent.category.DEFAULT" /> | |
| 105 | + | |
| 106 | + <data android:scheme="goldSeaBank" /> | |
| 107 | + </intent-filter> | |
| 108 | + </activity> | |
| 109 | + | |
| 110 | + <activity | |
| 111 | + android:name=".ui.activity.LiveShowListActivity" | |
| 112 | + android:launchMode="singleTop" | |
| 113 | + android:screenOrientation="portrait" | |
| 114 | + android:theme="@style/ColorTranslucentTheme"> | |
| 115 | + | |
| 116 | + </activity> | |
| 117 | + | |
| 118 | + <!--直播详情--> | |
| 119 | + <activity | |
| 120 | + android:name=".ui.activity.LiveShowActivity" | |
| 121 | + android:launchMode="singleTop" | |
| 122 | + android:screenOrientation="portrait"> | |
| 123 | + | |
| 124 | + </activity> | |
| 125 | + <!--回看列表--> | |
| 126 | + <activity | |
| 127 | + android:name=".ui.activity.PlayBackListActivity" | |
| 128 | + android:launchMode="singleTop" | |
| 129 | + android:screenOrientation="portrait" | |
| 130 | + android:theme="@style/ColorTranslucentTheme"> | |
| 131 | + | |
| 132 | + </activity> | |
| 133 | + | |
| 134 | + <activity | |
| 135 | + android:name=".ui.activity.IntensityListActivity" | |
| 136 | + android:launchMode="singleTop" | |
| 137 | + android:screenOrientation="portrait" | |
| 138 | + android:theme="@style/ColorTranslucentTheme"> | |
| 139 | + | |
| 140 | + </activity> | |
| 141 | + | |
| 142 | + <activity | |
| 143 | + android:name=".ui.activity.VideoTypeListActivity" | |
| 144 | + android:launchMode="singleTop" | |
| 145 | + android:screenOrientation="portrait"> | |
| 146 | + | |
| 147 | + </activity> | |
| 148 | + | |
| 149 | + <!--重磅预约--> | |
| 150 | + <activity | |
| 151 | + android:name=".ui.activity.SubscribeShowActivity" | |
| 152 | + android:launchMode="singleTop" | |
| 153 | + android:screenOrientation="portrait" /> | |
| 154 | + | |
| 155 | + <!--日签--> | |
| 156 | + <activity | |
| 157 | + android:name=".ui.activity.CheckDayActivity" | |
| 158 | + android:launchMode="singleTop" | |
| 159 | + android:screenOrientation="portrait" | |
| 160 | + android:theme="@style/AppTheme.TransparentActivity.FullScreen"> | |
| 161 | + | |
| 162 | + </activity> | |
| 163 | + | |
| 164 | + <!--搜索界面--> | |
| 165 | + <activity | |
| 166 | + android:name=".ui.activity.SearchResultActivity" | |
| 167 | + android:launchMode="singleTop" | |
| 168 | + android:screenOrientation="portrait"></activity> | |
| 169 | + | |
| 170 | + <!--h5Activity--> | |
| 171 | + <activity | |
| 172 | + android:name=".ui.activity.WebViewActivity" | |
| 173 | + android:launchMode="singleTop" | |
| 174 | + android:screenOrientation="portrait"></activity> | |
| 175 | + | |
| 176 | + <!--第三方Activity--> | |
| 177 | + | |
| 178 | + <activity | |
| 179 | + android:name="cn.cmvideo.sdk.common.component.CmVideoBrowser" | |
| 180 | + android:configChanges="keyboardHidden|orientation" | |
| 181 | + android:exported="false" | |
| 182 | + android:windowSoftInputMode="adjustResize" /> | |
| 183 | + | |
| 184 | + <activity | |
| 185 | + android:name="com.mob.tools.MobUIShell" | |
| 186 | + android:configChanges="keyboardHidden|orientation|screenSize" | |
| 187 | + android:screenOrientation="portrait" | |
| 188 | + android:theme="@android:style/Theme.Translucent.NoTitleBar" | |
| 189 | + android:windowSoftInputMode="stateHidden|adjustResize"> | |
| 190 | + <intent-filter> | |
| 191 | + <data android:scheme="tencent100371282" /> | |
| 192 | + | |
| 193 | + <action android:name="android.intent.action.VIEW" /> | |
| 194 | + | |
| 195 | + <category android:name="android.intent.category.BROWSABLE" /> | |
| 196 | + <category android:name="android.intent.category.DEFAULT" /> | |
| 197 | + </intent-filter> | |
| 198 | + | |
| 199 | + <!-- 调用新浪原生SDK,需要注册的回调activity --> | |
| 200 | + <intent-filter> | |
| 201 | + <action android:name="com.sina.weibo.sdk.action.ACTION_SDK_REQ_ACTIVITY" /> | |
| 202 | + | |
| 203 | + <category android:name="android.intent.category.DEFAULT" /> | |
| 204 | + </intent-filter> | |
| 205 | + </activity> | |
| 206 | + | |
| 207 | + <!-- 微信分享回调 --> | |
| 208 | + <activity | |
| 209 | + android:name=".wxapi.WXEntryActivity" | |
| 210 | + android:configChanges="keyboardHidden|orientation|screenSize" | |
| 211 | + android:exported="true" | |
| 212 | + android:screenOrientation="portrait" | |
| 213 | + android:theme="@android:style/Theme.Translucent.NoTitleBar" /> | |
| 214 | + | |
| 215 | + <!-- 支付宝网页支付 --> | |
| 216 | + <activity | |
| 217 | + android:name=".pay.H5PayDemoActivity" | |
| 218 | + android:configChanges="orientation|keyboardHidden|navigation" | |
| 219 | + android:exported="false" | |
| 220 | + android:screenOrientation="behind" /> | |
| 221 | + <!-- 支付宝H5页面支付 --> | |
| 222 | + <activity | |
| 223 | + android:name="com.alipay.sdk.app.H5PayActivity" | |
| 224 | + android:configChanges="orientation|keyboardHidden|navigation|screenSize" | |
| 225 | + android:exported="false" | |
| 226 | + android:screenOrientation="behind" | |
| 227 | + android:windowSoftInputMode="adjustResize|stateHidden" /> | |
| 228 | + </application> | |
| 229 | + | |
| 230 | +</manifest> | |
| 0 | 231 | \ No newline at end of file | ... | ... |
app/src/main/assets/MiguPay.Sdk20.Lib_12002100_8F57A52074B8BC7469C35E93CFF93287_AE203.dat
0 → 100644
No preview for this file type
app/src/main/assets/ShareSDK.xml
0 → 100644
| 1 | +++ a/app/src/main/assets/ShareSDK.xml | |
| 1 | +<?xml version="1.0" encoding="utf-8"?> | |
| 2 | +<DevInfor> | |
| 3 | + <!-- | |
| 4 | + 说明: | |
| 5 | + | |
| 6 | + 1、表格中的第一项 | |
| 7 | + <ShareSDK | |
| 8 | + AppKey="api20" /> | |
| 9 | + 是必须的,其中的AppKey是您在ShareSDK上注册的开发者帐号的AppKey | |
| 10 | + | |
| 11 | + 2、所有集成到您项目的平台都应该为其在表格中填写相对应的开发者信息,以新浪微博为例: | |
| 12 | + <SinaWeibo | |
| 13 | + Id="1" | |
| 14 | + SortId="1" | |
| 15 | + AppKey="568898243" | |
| 16 | + AppSecret="38a4f8204cc784f81f9f0daaf31e02e3" | |
| 17 | + RedirectUrl="http://www.mob.com" | |
| 18 | + Enable="true" /> | |
| 19 | + 其中的SortId是此平台在分享列表中的位置,由开发者自行定义,可以是任何整型数字,数值越大 | |
| 20 | + 越靠后AppKey、AppSecret和RedirectUrl是您在新浪微博上注册开发者信息和应用后得到的信息 | |
| 21 | + Id是一个保留的识别符,整型,ShareSDK不使用此字段,供您在自己的项目中当作平台的识别符。 | |
| 22 | + Enable字段表示此平台是否有效,布尔值,默认为true,如果Enable为false,即便平台的jar包 | |
| 23 | + 已经添加到应用中,平台实例依然不可获取。 | |
| 24 | + | |
| 25 | + 各个平台注册应用信息的地址如下: | |
| 26 | + 新浪微博 http://open.weibo.com | |
| 27 | + 腾讯微博 http://dev.t.qq.com | |
| 28 | + QQ空间 http://connect.qq.com/intro/login/ | |
| 29 | + 微信好友 http://open.weixin.qq.com | |
| 30 | + Facebook https://developers.facebook.com | |
| 31 | + Twitter https://dev.twitter.com | |
| 32 | + 人人网 http://dev.renren.com | |
| 33 | + 开心网 http://open.kaixin001.com | |
| 34 | + 搜狐微博 http://open.t.sohu.com | |
| 35 | + 网易微博 http://open.t.163.com | |
| 36 | + 豆瓣 http://developers.douban.com | |
| 37 | + | |
| 38 | + 有道云笔记 http://note.youdao.com/open/developguide.html#app | |
| 39 | + 印象笔记 https://dev.evernote.com/ | |
| 40 | + Linkedin https://developer.linkedin.com | |
| 41 | + FourSquare https://developer.foursquare.com/ | |
| 42 | + 搜狐随身看 https://open.sohu.com/ | |
| 43 | + Flickr http://www.flickr.com/services/ | |
| 44 | + Pinterest http://developers.pinterest.com/ | |
| 45 | + Tumblr http://www.tumblr.com/developers | |
| 46 | + Dropbox https://www.dropbox.com/developers | |
| 47 | + Instagram http://instagram.com/developer# | |
| 48 | + VKontakte http://vk.com/dev | |
| 49 | + 易信好友 http://open.yixin.im/ | |
| 50 | + 明道 http://open.mingdao.com/ | |
| 51 | + Line http://media.line.me/zh-hant/ | |
| 52 | + Pocket http://getpocket.com/developer/apps/new | |
| 53 | + KakaoTalk https://developers.kakao.com/ | |
| 54 | + KakaoStory https://developers.kakao.com/ | |
| 55 | + --> | |
| 56 | + | |
| 57 | + <ShareSDK | |
| 58 | + AppKey = "9eb4ffa7fdbe"/> <!-- 修改成你在sharesdk后台注册的应用的appkey"--> | |
| 59 | + | |
| 60 | + <!-- ShareByAppClient标识是否使用微博客户端分享,默认是false --> | |
| 61 | + <SinaWeibo | |
| 62 | + Id="1" | |
| 63 | + SortId="1" | |
| 64 | + AppKey="459110341" | |
| 65 | + AppSecret="356c1404eda22fc890b8b750e1448cba" | |
| 66 | + RedirectUrl="http://www.sharesdk.cn" | |
| 67 | + ShareByAppClient="true" | |
| 68 | + Enable="true" /> | |
| 69 | + | |
| 70 | + <TencentWeibo | |
| 71 | + Id="2" | |
| 72 | + SortId="2" | |
| 73 | + AppKey="801307650" | |
| 74 | + AppSecret="ae36f4ee3946e1cbb98d6965b0b2ff5c" | |
| 75 | + RedirectUri="http://sharesdk.cn" | |
| 76 | + Enable="true" /> | |
| 77 | + | |
| 78 | + <QZone | |
| 79 | + Id="3" | |
| 80 | + SortId="3" | |
| 81 | + AppId="1104754167" | |
| 82 | + AppKey="N3JvxwOW7AiE9cWD" | |
| 83 | + Enable="true" /> | |
| 84 | + | |
| 85 | + <!-- | |
| 86 | + Wechat微信和WechatMoments微信朋友圈的appid是一样的; | |
| 87 | + | |
| 88 | + 注意:开发者不能用我们这两个平台的appid,否则分享不了 | |
| 89 | + | |
| 90 | + 微信测试的时候,微信测试需要先签名打包出apk, | |
| 91 | + sample测试微信,要先签名打包,keystore在sample项目中,密码123456 | |
| 92 | + | |
| 93 | + BypassApproval是绕过审核的标记,设置为true后AppId将被忽略,故不经过 | |
| 94 | + 审核的应用也可以执行分享,但是仅限于分享文字和图片,不能分享其他类型, | |
| 95 | + 默认值为false。此外,微信收藏不支持此字段。 | |
| 96 | + --> | |
| 97 | ||
| 98 | + Id="4" | |
| 99 | + SortId="4" | |
| 100 | + AppId="wx0db7f9dc6fc31cc3" | |
| 101 | + AppSecret="9d392f758e9e06a655f22a8a2d0abfca" | |
| 102 | + BypassApproval="false" | |
| 103 | + Enable="true" /> | |
| 104 | + | |
| 105 | + <WechatMoments | |
| 106 | + Id="5" | |
| 107 | + SortId="5" | |
| 108 | + AppId="wx0db7f9dc6fc31cc3" | |
| 109 | + AppSecret="9d392f758e9e06a655f22a8a2d0abfca" | |
| 110 | + BypassApproval="false" | |
| 111 | + Enable="true" /> | |
| 112 | + | |
| 113 | + <WechatFavorite | |
| 114 | + Id="6" | |
| 115 | + SortId="6" | |
| 116 | + AppId="wx4868b35061f87885" | |
| 117 | + AppSecret="64020361b8ec4c99936c0e3999a9f249" | |
| 118 | + Enable="true" /> | |
| 119 | + | |
| 120 | + <!-- ShareByAppClient标识是否使用微博客户端分享,默认是false --> | |
| 121 | ||
| 122 | + Id="7" | |
| 123 | + SortId="7" | |
| 124 | + AppId="1104754167" | |
| 125 | + AppKey="aed9b0303e3ed1e27bae87c33761161d" | |
| 126 | + ShareByAppClient="true" | |
| 127 | + Enable="true" /> | |
| 128 | + | |
| 129 | ||
| 130 | + Id="8" | |
| 131 | + SortId="8" | |
| 132 | + ConsumerKey="107704292745179" | |
| 133 | + ConsumerSecret="38053202e1a5fe26c80c753071f0b573" | |
| 134 | + RedirectUrl="http://mob.com" | |
| 135 | + Enable="true" /> | |
| 136 | + | |
| 137 | ||
| 138 | + Id="9" | |
| 139 | + SortId="9" | |
| 140 | + ConsumerKey="LRBM0H75rWrU9gNHvlEAA2aOy" | |
| 141 | + ConsumerSecret="gbeWsZvA9ELJSdoBzJ5oLKX0TU09UOwrzdGfo9Tg7DjyGuMe8G" | |
| 142 | + CallbackUrl="http://mob.com" | |
| 143 | + Enable="true" /> | |
| 144 | + | |
| 145 | + <Renren | |
| 146 | + Id="10" | |
| 147 | + SortId="10" | |
| 148 | + AppId="226427" | |
| 149 | + ApiKey="fc5b8aed373c4c27a05b712acba0f8c3" | |
| 150 | + SecretKey="f29df781abdd4f49beca5a2194676ca4" | |
| 151 | + Enable="true" /> | |
| 152 | + | |
| 153 | + <KaiXin | |
| 154 | + Id="11" | |
| 155 | + SortId="11" | |
| 156 | + AppKey="358443394194887cee81ff5890870c7c" | |
| 157 | + AppSecret="da32179d859c016169f66d90b6db2a23" | |
| 158 | + RedirectUri="http://www.sharesdk.cn" | |
| 159 | + Enable="true" /> | |
| 160 | + | |
| 161 | ||
| 162 | + Id="12" | |
| 163 | + SortId="12" | |
| 164 | + Enable="true" /> | |
| 165 | + | |
| 166 | + <ShortMessage | |
| 167 | + Id="13" | |
| 168 | + SortId="13" | |
| 169 | + Enable="true" /> | |
| 170 | + | |
| 171 | + <Douban | |
| 172 | + Id="16" | |
| 173 | + SortId="16" | |
| 174 | + ApiKey="031a96a3aa8b28af094fc3eaffa17a0d" | |
| 175 | + Secret="2e675e730571b75d" | |
| 176 | + RedirectUri="http://mob.com" | |
| 177 | + Enable="true" /> | |
| 178 | + | |
| 179 | + <YouDao | |
| 180 | + Id="17" | |
| 181 | + SortId="17" | |
| 182 | + HostType="product" | |
| 183 | + ConsumerKey="dcde25dca105bcc36884ed4534dab940" | |
| 184 | + ConsumerSecret="d98217b4020e7f1874263795f44838fe" | |
| 185 | + RedirectUri="http://www.sharesdk.cn/" | |
| 186 | + Enable="true" /> | |
| 187 | + | |
| 188 | + <!-- | |
| 189 | + 在中国大陆,印象笔记有两个服务器,一个是沙箱(sandbox),一个是生产服务器(china)。 | |
| 190 | + 一般你注册应用,它会先让你使用sandbox,当你完成测试以后,可以到 | |
| 191 | + http://dev.yinxiang.com/support/上激活你的ConsumerKey,激活成功后,修改HostType | |
| 192 | + 为china就好了。至于如果您申请的是国际版的印象笔记(Evernote),则其生产服务器类型为 | |
| 193 | + “product”。 | |
| 194 | + | |
| 195 | + 如果目标设备上已经安装了印象笔记客户端,ShareSDK允许应用调用本地API来完成分享,但 | |
| 196 | + 是需要将应用信息中的“ShareByAppClient”设置为true,此字段默认值为false。 | |
| 197 | + --> | |
| 198 | + <Evernote | |
| 199 | + Id="19" | |
| 200 | + SortId="19" | |
| 201 | + HostType="sandbox" | |
| 202 | + ConsumerKey="sharesdk-7807" | |
| 203 | + ConsumerSecret="d05bf86993836004" | |
| 204 | + ShareByAppClient="true" | |
| 205 | + Enable="true" /> | |
| 206 | + | |
| 207 | ||
| 208 | + Id="20" | |
| 209 | + SortId="20" | |
| 210 | + ApiKey="ejo5ibkye3vo" | |
| 211 | + SecretKey="cC7B2jpxITqPLZ5M" | |
| 212 | + RedirectUrl="http://sharesdk.cn" | |
| 213 | + Enable="true" /> | |
| 214 | + | |
| 215 | + <GooglePlus | |
| 216 | + Id="21" | |
| 217 | + SortId="21" | |
| 218 | + Enable="true" /> | |
| 219 | + | |
| 220 | + <FourSquare | |
| 221 | + Id="22" | |
| 222 | + SortId="22" | |
| 223 | + ClientID="G0ZI20FM30SJAJTX2RIBGD05QV1NE2KVIM2SPXML2XUJNXEU" | |
| 224 | + ClientSecret="3XHQNSMMHIFBYOLWEPONNV4DOTCDBQH0AEMVGCBG0MZ32XNU" | |
| 225 | + RedirectUrl="http://www.sharesdk.cn" | |
| 226 | + Enable="true" /> | |
| 227 | + | |
| 228 | ||
| 229 | + Id="23" | |
| 230 | + SortId="23" | |
| 231 | + ClientId="1432928" | |
| 232 | + Enable="true" /> | |
| 233 | + | |
| 234 | + <Flickr | |
| 235 | + Id="24" | |
| 236 | + SortId="24" | |
| 237 | + ApiKey="33d833ee6b6fca49943363282dd313dd" | |
| 238 | + ApiSecret="3a2c5b42a8fbb8bb" | |
| 239 | + RedirectUri="http://www.sharesdk.cn" | |
| 240 | + Enable="true" /> | |
| 241 | + | |
| 242 | + <Tumblr | |
| 243 | + Id="25" | |
| 244 | + SortId="25" | |
| 245 | + OAuthConsumerKey="2QUXqO9fcgGdtGG1FcvML6ZunIQzAEL8xY6hIaxdJnDti2DYwM" | |
| 246 | + SecretKey="3Rt0sPFj7u2g39mEVB3IBpOzKnM3JnTtxX2bao2JKk4VV1gtNo" | |
| 247 | + CallbackUrl="http://sharesdk.cn" | |
| 248 | + Enable="true" /> | |
| 249 | + | |
| 250 | + <Dropbox | |
| 251 | + Id="26" | |
| 252 | + SortId="26" | |
| 253 | + AppKey="i5vw2mex1zcgjcj" | |
| 254 | + AppSecret="3i9xifsgb4omr0s" | |
| 255 | + RedirectUri="https://www.sharesdk.cn" | |
| 256 | + Enable="true" /> | |
| 257 | + | |
| 258 | + <VKontakte | |
| 259 | + Id="27" | |
| 260 | + SortId="27" | |
| 261 | + ApplicationId="3921561" | |
| 262 | + Enable="true" /> | |
| 263 | + | |
| 264 | ||
| 265 | + Id="28" | |
| 266 | + SortId="28" | |
| 267 | + ClientId="ff68e3216b4f4f989121aa1c2962d058" | |
| 268 | + ClientSecret="1b2e82f110264869b3505c3fe34e31a1" | |
| 269 | + RedirectUri="http://sharesdk.cn" | |
| 270 | + Enable="true" /> | |
| 271 | + | |
| 272 | + <!-- | |
| 273 | + Yixin易信和YixinMoments易信朋友圈的appid是一样的; | |
| 274 | + | |
| 275 | + 注意:开发者不能用我们这两个平台的appid,否则分享不了 | |
| 276 | + | |
| 277 | + 易信测试的时候需要先签名打包出apk, | |
| 278 | + sample测试易信,要先签名打包,keystore在sample项目中,密码123456 | |
| 279 | + | |
| 280 | + BypassApproval是绕过审核的标记,设置为true后AppId将被忽略,故不经过 | |
| 281 | + 审核的应用也可以执行分享,但是仅限于分享文字或图片,不能分享其他类型, | |
| 282 | + 默认值为false。 | |
| 283 | + --> | |
| 284 | + <Yixin | |
| 285 | + Id="29" | |
| 286 | + SortId="29" | |
| 287 | + AppId="yx0d9a9f9088ea44d78680f3274da1765f" | |
| 288 | + BypassApproval="true" | |
| 289 | + Enable="true" /> | |
| 290 | + | |
| 291 | + <YixinMoments | |
| 292 | + Id="30" | |
| 293 | + SortId="30" | |
| 294 | + AppId="yx0d9a9f9088ea44d78680f3274da1765f" | |
| 295 | + BypassApproval="true" | |
| 296 | + Enable="true" /> | |
| 297 | + | |
| 298 | + <Mingdao | |
| 299 | + Id="31" | |
| 300 | + SortId="31" | |
| 301 | + AppKey="EEEE9578D1D431D3215D8C21BF5357E3" | |
| 302 | + AppSecret="5EDE59F37B3EFA8F65EEFB9976A4E933" | |
| 303 | + RedirectUri="http://sharesdk.cn" | |
| 304 | + Enable="true" /> | |
| 305 | + | |
| 306 | + <Line | |
| 307 | + Id="32" | |
| 308 | + SortId="32" | |
| 309 | + Enable="true" /> | |
| 310 | + | |
| 311 | + <KakaoTalk | |
| 312 | + Id="33" | |
| 313 | + SortId="33" | |
| 314 | + AppKey="48d3f524e4a636b08d81b3ceb50f1003" | |
| 315 | + Enable="true" /> | |
| 316 | + | |
| 317 | + <KakaoStory | |
| 318 | + Id="34" | |
| 319 | + SortId="34" | |
| 320 | + AppKey="48d3f524e4a636b08d81b3ceb50f1003" | |
| 321 | + Enable="true" /> | |
| 322 | + | |
| 323 | ||
| 324 | + Id="35" | |
| 325 | + SortId="35" | |
| 326 | + Enable="true" /> | |
| 327 | + | |
| 328 | + <Bluetooth | |
| 329 | + Id="36" | |
| 330 | + SortId="36" | |
| 331 | + Enable="true" /> | |
| 332 | + | |
| 333 | ||
| 334 | + Id="37" | |
| 335 | + SortId="37" | |
| 336 | + ConsumerKey="32741-389c565043c49947ba7edf05" | |
| 337 | + Enable="true" /> | |
| 338 | + | |
| 339 | + <Instapaper | |
| 340 | + Id="38" | |
| 341 | + SortId="38" | |
| 342 | + ConsumerKey="4rDJORmcOcSAZL1YpqGHRI605xUvrLbOhkJ07yO0wWrYrc61FA" | |
| 343 | + ConsumerSecret="GNr1GespOQbrm8nvd7rlUsyRQsIo3boIbMguAl9gfpdL0aKZWe" | |
| 344 | + Enable="true" /> | |
| 345 | + | |
| 346 | + <FacebookMessenger | |
| 347 | + Id="39" | |
| 348 | + SortId="39" | |
| 349 | + AppId="107704292745179" | |
| 350 | + Enable="true" /> | |
| 351 | + | |
| 352 | + <Alipay | |
| 353 | + Id="52" | |
| 354 | + SortId="52" | |
| 355 | + AppId="2015072400185895" | |
| 356 | + Enable="true"/> | |
| 357 | +</DevInfor> | |
| 0 | 358 | \ No newline at end of file | ... | ... |
app/src/main/assets/edfile/armeabi/libmiguED.so
0 → 100644
No preview for this file type
app/src/main/assets/edfile/x86/libmiguED.so
0 → 100644
No preview for this file type
app/src/main/assets/libmg20p_03.08.03_00.so
0 → 100644
No preview for this file type
app/src/main/assets/libmg20p_03.08.03_00.so.x86
0 → 100644
No preview for this file type
app/src/main/assets/mg20css.dat
0 → 100644
No preview for this file type
app/src/main/assets/mg20dss.dat
0 → 100644
No preview for this file type
app/src/main/assets/mg20dss.dat.x86
0 → 100644
No preview for this file type
app/src/main/java/com/cnlive/goldenline/Configs.java
0 → 100644
| 1 | +++ a/app/src/main/java/com/cnlive/goldenline/Configs.java | |
| 1 | +package com.cnlive.goldenline; | |
| 2 | + | |
| 3 | +import android.support.annotation.NonNull; | |
| 4 | + | |
| 5 | +/** | |
| 6 | + * Created by zuoxian on 15/9/7. | |
| 7 | + */ | |
| 8 | +public class Configs { | |
| 9 | + | |
| 10 | + public static final String CNLIVE_APP_ID = "117_itdq3xbv08"; | |
| 11 | + | |
| 12 | + public static final int VIDEO_DESIGN_HEIGHT = 203; | |
| 13 | + | |
| 14 | + public static final float CUT_HEIGHT_LTE = 0.6f; | |
| 15 | + | |
| 16 | + public static final float CUT_HEIGHT = 5f; | |
| 17 | + | |
| 18 | + public static final String TEST_DES = "百老汇大道(Broadway)为纽约市重要的南北向道路,南起巴特里公园(Battery Park),由南向北纵贯曼哈顿岛。由于此路两旁分布着为数众多的剧院,是美国戏剧和音乐剧的重要发扬地,“百老汇”因此成为了音乐剧的代名词。"; | |
| 19 | + | |
| 20 | + public static final String TEST_TTILE = "百老汇纪念歌剧《JERSEY BOYS》"; | |
| 21 | + | |
| 22 | + public static final String TEST_VIDEO = "rtmp://live.hkstv.hk.lxdns.com/live/hks"; | |
| 23 | + | |
| 24 | + public static final String PORTRAIT1 = "http://shtml.asia-cloud.com/ZZSY/touxiang2.png"; | |
| 25 | + public static final String PORTRAIT2 = "http://i1.mopimg.cn/img/tt/2016-12/1126/20161223141738608.jpeg790x600.jpeg"; | |
| 26 | + public static final String PORTRAIT3 = "http://i1.mopimg.cn/img/tt/2016-12/1263/20161223141740368.jpeg790x600.jpeg"; | |
| 27 | + public static final String PORTRAIT4 = "http://i1.mopimg.cn/img/tt/2016-12/1343/20161223141756942.jpeg790x600.jpeg"; | |
| 28 | + public static final String PORTRAIT5 = "http://i1.mopimg.cn/img/tt/2016-12/1343/20161223141756942.jpeg790x600.jpeg"; | |
| 29 | + public static final String PORTRAIT6 = "http://i1.mopimg.cn/img/tt/2016-12/193/20161223141736601.jpeg790x600.jpeg"; | |
| 30 | + public static final String PORTRAIT7 = "http://i1.mopimg.cn/img/tt/2016-12/1294/20161223141740632.jpeg790x600.jpeg"; | |
| 31 | + public static final String PORTRAIT8 = "http://y3.ifengimg.com/cmpp/2016/02/23/14/384d9c62-fb6e-4a31-a3c1-cb5d4f26afad_size39_w500_h375.jpg"; | |
| 32 | + | |
| 33 | + public static final String TEST_IMG = "https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1487767411741&di=7a2414c1dc68bf1bbf1f558e55fe26ed&imgtype=0&src=http%3A%2F%2Fpic2.ooopic.com%2F12%2F13%2F96%2F45bOOOPICe8_1024.jpg"; | |
| 34 | + | |
| 35 | + public static final int BANNER_INTERVAL = 3000; | |
| 36 | + | |
| 37 | + public static final int PROGRAM_STATE_REPLAY = 0; // 回播 | |
| 38 | + public static final int PROGRAM_STATE_LIVE = 1; // 直播 | |
| 39 | + public static final int PROGRAM_STATE_SUBSCRIBE = 2; // 预约 | |
| 40 | + @NonNull | |
| 41 | + public static String PLAYSOURCEKEY = "PLAY_SOURCE_KEY";//播放流 | |
| 42 | + | |
| 43 | + //extend1 0为直播 1为点播 2为按次广播 3为直播间 4合集 5专题 6 h5 7活动 8主播直播 9直播回放 | |
| 44 | + public static final String LIVE_CONT = "0"; | |
| 45 | + public static final String CONT = "1"; | |
| 46 | + public static final String FM_CONT = "2"; | |
| 47 | + public static final String HOST_LIVE_CONT = "3"; | |
| 48 | + public static final String LIVESHOW_LIST = "4"; | |
| 49 | + public static final String SUBJECT = "5"; | |
| 50 | + public static final String HFive = "6"; | |
| 51 | + public static final String ACTIVITY = "7"; | |
| 52 | + public static final String ANCHOR_LIVE = "8"; | |
| 53 | + public static final String ANCHOR_REPLAY = "9"; | |
| 54 | + | |
| 55 | + @NonNull | |
| 56 | + public static String GOLD_NUM = "0"; | |
| 57 | + | |
| 58 | + //弹幕字体颜色 | |
| 59 | + @NonNull | |
| 60 | + public static String DANMAKU_TEXT_COLOR_1 = "1"; | |
| 61 | + @NonNull | |
| 62 | + public static String DANMAKU_TEXT_COLOR_2 = "2"; | |
| 63 | + @NonNull | |
| 64 | + public static String DANMAKU_TEXT_COLOR_3 = "3"; | |
| 65 | + @NonNull | |
| 66 | + public static String DANMAKU_TEXT_COLOR_4 = "4"; | |
| 67 | + @NonNull | |
| 68 | + public static String DANMAKU_TEXT_COLOR_5 = "5"; | |
| 69 | + @NonNull | |
| 70 | + public static String DANMAKU_TEXT_COLOR_6 = "6"; | |
| 71 | + //弹幕类型 | |
| 72 | + @NonNull | |
| 73 | + public static String DANMAKU_TYPE_RIGHTTOLEFT = "1"; | |
| 74 | + @NonNull | |
| 75 | + public static String DANMAKU_TYPE_TOP = "5"; | |
| 76 | + @NonNull | |
| 77 | + public static String DANMAKU_TYPE_BOTTOM = "4"; | |
| 78 | + //弹幕字体大小 | |
| 79 | + @NonNull | |
| 80 | + public static String DANMAKU_TEXT_SIZE_1 = "13"; | |
| 81 | + @NonNull | |
| 82 | + public static String DANMAKU_TEXT_SIZE_2 = "14"; | |
| 83 | + //弹幕开关 | |
| 84 | + @NonNull | |
| 85 | + public static String DANMAKU_CLOSE = "2"; | |
| 86 | + @NonNull | |
| 87 | + public static String DANMAKU_OPEN = "1"; | |
| 88 | + | |
| 89 | + //弹幕选择 | |
| 90 | + @NonNull | |
| 91 | + public static String DANMAKUTEXTSIZE = "1001"; | |
| 92 | + @NonNull | |
| 93 | + public static String DANMAKUTYPE = "1002"; | |
| 94 | + @NonNull | |
| 95 | + public static String DANMAKUTEXTCOLOR = "1003"; | |
| 96 | + @NonNull | |
| 97 | + public static String SELECTPLAYTYPE = "流畅"; | |
| 98 | + | |
| 99 | + | |
| 100 | + @NonNull | |
| 101 | + public static String IsShowTouchView = "1"; //是否显示触摸屏 1:为打开,0:为关闭 | |
| 102 | + | |
| 103 | + | |
| 104 | + public static final String APP_ID = "wx0db7f9dc6fc31cc3"; //微信支付 | |
| 105 | + | |
| 106 | + /* * * * * * * * * * * * * * * 以下为URL 链接配置 * * * * * * * * * */ | |
| 107 | + | |
| 108 | + public static final String TEST_PAYCOULD = "https://api.cnlive.com"; | |
| 109 | + | |
| 110 | + public static final String URL_TEST = "http://120.92.201.169:80"; | |
| 111 | + private static final String URL_ONLINE = "http://api2017.shineup.com.cn"; | |
| 112 | + | |
| 113 | + public static final String URL_SERVER = URL_ONLINE; | |
| 114 | + | |
| 115 | +// | |
| 116 | +// public String serverURL() { | |
| 117 | +// return BuildConfig.LOG_DEBUG ? URL_TEST : URL_ONLINE; | |
| 118 | +// } | |
| 119 | + | |
| 120 | + | |
| 121 | +// public static final String NEW_CMS_URL1="http://res1.tv.cmvideo.cn:8088/migutv/json";//miguCS | |
| 122 | + | |
| 123 | + // public static final String CCX_SHARE="http://app.shineup.com.cn/goldenline/html/goldenline_share.html?";//陈春翔的分享链接 节目类型contype;节目标题title ; 节目contid; | |
| 124 | +// public static final String LOGON="http://app.shineup.com.cn/goldenline/html/image/logo2.png";//图片地址 | |
| 125 | +// public static final String CCX_MAKE_MONEY_LOGO="http://120.131.13.185/goldenline/12345.png"; //我要赚钱模块 分享图片 | |
| 126 | +// public static final String CCX_MAKE_MONEY="http://app.shineup.com.cn/goldenline/html/loginPay/loginPay.html?"; //分享H5接口 | |
| 127 | + //更换过ip地址之后的链接 | |
| 128 | + public static final String CCX_SHARE = "http://app.shineup.com.cn/goldenline/html/goldenline_share.html?";//陈春翔的分享链接 节目类型contype;节目标题title ; 节目contid; | |
| 129 | + public static final String CCX_SHARE_ZHIBO = "http://app.shineup.com.cn/goldenline/html/goldenline_share_live.html?";//陈春翔的分享链接 节目类型contype;节目标题title ; 节目contid; | |
| 130 | + public static final String LOGON = "https://img.shineup.com.cn/goldenline/html/image/logo2.png";//图片地址 | |
| 131 | + public static final String CCX_MAKE_MONEY_LOGO = "https://img.shineup.com.cn/goldenline/12345.png"; //我要赚钱模块 分享图片 | |
| 132 | + public static final String CCX_MAKE_MONEY = "http://app.shineup.com.cn/goldenline/html/loginPay/loginPay.html?"; //分享H5接口 | |
| 133 | + | |
| 134 | + public static final String WX_UNIONID = "https://api.weixin.qq.com/sns"; | |
| 135 | + //https://api.weixin.qq.com/sns/userinfo?access_token=lltPIY375Shh_15Vs_laUh4u9XzsYI_xvw05mQesOYam1-mqgD9_sPmQipZY6D5snX8yVmi8tynGNXbwxCKxz7BFgGW6xVixOfx9Of8VmnM&openid=oZnTFv8et7WMNh73HphzOe7dooGE | |
| 136 | + //oZnTFv8et7WMNh73HphzOe7dooGE | |
| 137 | + | |
| 138 | + // public static final String SJR_URL="http://app.shineup.com.cn:8080/goldenline-portal-clt"; //司景瑞的接口地址 开通vip//http://app.shineup.com.cn:8080/goldenline-portal-clt/renewalMoneyVIP.html?setmealId=1&uid=201605191058150000000000000043 | |
| 139 | + public static final String SJR_URL = "https://api.shineup.com.cn/goldenline-portal-clt"; //司景瑞的改变了的接口地址 开通vip//http://app.shineup.com.cn:8080/goldenline-portal-clt/renewalMoneyVIP.html?setmealId=1&uid=201605191058150000000000000043 | |
| 140 | + | |
| 141 | + public static final String MY_WALLECT = "http://localhost:8090"; | |
| 142 | +// http://10.10.51.176:8090/portal/recharge/generalOrder | |
| 143 | + | |
| 144 | + | |
| 145 | + // public static final String LXH_URL="http://app.shineup.com.cn/data/goldenline";//陆新华的正式接口地址 //http://app.shineup.com.cn/data/goldenline/recommend/index.json 2.0版本json | |
| 146 | + public static final String LXH_URL = "https://res.shineup.com.cn/data/goldenline";//陆新华的改变了的接口地址 //http://app.shineup.com.cn/data/goldenline/recommend/index.json 2.0版本json | |
| 147 | + //http://app.shineup.com.cn/data/goldenline/recommend/index21.json 2.1版本json | |
| 148 | + //http://app.shineup.com.cn/data/goldenline/heji/1/hj.json 合集的json | |
| 149 | + public static final String TAB = "http://120.92.5.161:8080/goldenline-portal-clt";//TAb接口地址 //http://app.shineup.com.cn/data/goldenline/recommend/index.json 2.0版本json | |
| 150 | + //http://app.shineup.com.cn/data/goldenline/recommend/index21.json 2.1版本json | |
| 151 | + //http://app.shineup.com.cn/data/goldenline/heji/1/hj.json 合集的json | |
| 152 | + | |
| 153 | + public static final String TEST_CMS_URL = "http://data.movie.cnlive.com/movie/golehome"; //首页测试数据 | |
| 154 | + | |
| 155 | + public static final String TEST_CMS_URL2 = "http://data.movie.cnlive.com/movie/golehome";//测试服务器 | |
| 156 | + | |
| 157 | + public static final String NEW_CMS_URL = "http://res1.tv.cmvideo.cn:8088/migutv/json";//现网服务器 | |
| 158 | + | |
| 159 | + public static final String HOME_URL = "https://res.shineup.com.cn/data/goldenline/recommend"; //首、子页json | |
| 160 | + | |
| 161 | + | |
| 162 | + public static final String HOME_START_ROOM_URL = "http://app.shineup.com.cn:8080/goldenline-portal-clt/"; //今日直播 getAllLiveingAnchor.html | |
| 163 | + | |
| 164 | + //dm3注册 前缀key | |
| 165 | + public static final String KEY = "8e825d39e9e93aa423194c802ca7faca54e89f11ee6da547eb149e8a29524467d7f8a5a0305c15bda8db7dca052dd5269897dd73742fc9477f1ba7e787e4419758a21dcf4e2deb9c207deb00a4711794c757b1cb74ffbac46f10e41e566630fbe0e847829650917f00e85c0cac5031d46236e2e570f353935e61adafa3242571b34546b64c60dfb674d976db9ee9da1ff585258689c8a689abc27e01af2de1e488f1b0c86f8f041538349bdf30035cc3036e3542bb32c38eb34e60d4f3425a5e975b49299e8a79aeae2a18137e20a0b2715ec0ed13415791b0adabe0968a5f4354ec82727438d026eebcbee93752f96c35c7d40c234ab53af286502ad1a830e7com.cnlive.goldenlinetwo88_07&11-migutv"; | |
| 166 | + // 密码的key | |
| 167 | + public static final String PWD_KEy = "8e825d39e9e93aa423194c802ca7faca54e89f11ee6da547eb149e8a29524467d7f8a5a0305c15bda8db7dca052dd5269897dd73742fc9477f1ba7e787e4419758a21dcf4e2deb9c207deb00a4711794c757b1cb74ffbac46f10e41e566630fbe0e847829650917f00e85c0cac5031d46236e2e570f353935e61adafa3242571b34546b64c60dfb674d976db9ee9da1ff5852e570f353935e61adafa3242571b34546b64c60dfb674d976db9ee9da1ff585258689c8a689abc27e01af2de1e488f1b0c86f8f041538349bdf30035cc3036e3542bb32c38eb34e60d4f3425a5e975b49299e8a79aeae2a18137e20a0b2715ec0ed13415791b0adabe0968a5f4354ec82727438d026eebcbee93752f96c35c7d40c234ab53af286502ad1a830e7com.cnlive.goldenlinetwo88_07&11-godenLine"; | |
| 168 | + | |
| 169 | + public static final String QR_CODE = "http://app.shineup.com.cn/goldenline/html/outPage.html?uid="; | |
| 170 | + // 我要售卡 | |
| 171 | + public static final String SALES_CARD_QR_CODE = "http://app.shineup.com.cn/goldenline-portal-clt/h5UrlGoldCard.html?uid="; | |
| 172 | + //已售卡记录 | |
| 173 | + public static final String SOLD_CARD_RECORD = "http://app.shineup.com.cn/goldenline-portal-clt/getSellCardRecords.html?uid="; | |
| 174 | + | |
| 175 | + @NonNull | |
| 176 | + public static String VIP_PAGE_TO_VIDEO = ""; | |
| 177 | + | |
| 178 | + public static final String Advertisement = "https://api.shineup.com.cn/goldenline-portal-clt"; | |
| 179 | + | |
| 180 | + public static final String previewURL = "http://m.shineup.com.cn/goldenline/html/goldenlineAnchor/anchorShare.html?activityId="; //主播直播分享 | |
| 181 | + | |
| 182 | + public static final String SDK_URL = "http://app.mijia.cnlive.com/api_v1"; //移动SDK计费 | |
| 183 | + | |
| 184 | + public static final String TAB_URL = "http://120.92.5.161:8080/goldenline-portal-clt/getTabInfoList.html"; | |
| 185 | +// ?tabType=1 | |
| 186 | +} | ... | ... |
app/src/main/java/com/cnlive/goldenline/api/CmsAPI.java
0 → 100644
| 1 | +++ a/app/src/main/java/com/cnlive/goldenline/api/CmsAPI.java | |
| 1 | +package com.cnlive.goldenline.api; | |
| 2 | + | |
| 3 | +import com.cnlive.goldenline.model.ActDataBean; | |
| 4 | +import com.cnlive.goldenline.model.AllData_Zb_Anchor; | |
| 5 | +import com.cnlive.goldenline.model.AnchorInfoList; | |
| 6 | +import com.cnlive.goldenline.model.AnchorRoomData; | |
| 7 | +import com.cnlive.goldenline.model.AnchorRoomItemList; | |
| 8 | +import com.cnlive.goldenline.model.AnchorSearchAnswer; | |
| 9 | +import com.cnlive.goldenline.model.AnchorSearchInfo; | |
| 10 | +import com.cnlive.goldenline.model.AwardBean; | |
| 11 | +import com.cnlive.goldenline.model.BannerData; | |
| 12 | +import com.cnlive.goldenline.model.CancelSubscribeBean; | |
| 13 | +import com.cnlive.goldenline.model.DianBoDamaku; | |
| 14 | +import com.cnlive.goldenline.model.EditRecomendBean; | |
| 15 | +import com.cnlive.goldenline.model.FansAttenData; | |
| 16 | +import com.cnlive.goldenline.model.FindActBean; | |
| 17 | +import com.cnlive.goldenline.model.FindSubscribeBean; | |
| 18 | +import com.cnlive.goldenline.model.GetSendGiftData; | |
| 19 | +import com.cnlive.goldenline.model.GiftInfo; | |
| 20 | +import com.cnlive.goldenline.model.HejiData; | |
| 21 | +import com.cnlive.goldenline.model.HobbyItem; | |
| 22 | +import com.cnlive.goldenline.model.HomeItemData; | |
| 23 | +import com.cnlive.goldenline.model.HostData; | |
| 24 | +import com.cnlive.goldenline.model.OpenVipData; | |
| 25 | +import com.cnlive.goldenline.model.PlayItemInfo; | |
| 26 | +import com.cnlive.goldenline.model.PlayLiveUrl; | |
| 27 | +import com.cnlive.goldenline.model.PlayUrl; | |
| 28 | +import com.cnlive.goldenline.model.PlayUrl1; | |
| 29 | +import com.cnlive.goldenline.model.PlayUrlParameter; | |
| 30 | +import com.cnlive.goldenline.model.PlayViewComment; | |
| 31 | +import com.cnlive.goldenline.model.Program; | |
| 32 | +import com.cnlive.goldenline.model.Prsise; | |
| 33 | +import com.cnlive.goldenline.model.Record; | |
| 34 | +import com.cnlive.goldenline.model.RiQian; | |
| 35 | +import com.cnlive.goldenline.model.SearchHotWord; | |
| 36 | +import com.cnlive.goldenline.model.SearchInfo; | |
| 37 | +import com.cnlive.goldenline.model.SoldCardRecord; | |
| 38 | +import com.cnlive.goldenline.model.SubscribeBean; | |
| 39 | +import com.cnlive.goldenline.model.TabBarBean; | |
| 40 | +import com.cnlive.goldenline.model.TheatreBean; | |
| 41 | +import com.cnlive.goldenline.model.TodayLiveData; | |
| 42 | +import com.cnlive.goldenline.model.User; | |
| 43 | +import com.cnlive.goldenline.model.VerifyTicketRecord; | |
| 44 | +import com.cnlive.goldenline.model.VipData; | |
| 45 | +import com.cnlive.goldenline.model.WatchTicket; | |
| 46 | +import com.cnlive.goldenline.model.admodel.AdParent; | |
| 47 | +import com.cnlive.goldenline.model.home.BannerResponseBean; | |
| 48 | +import com.cnlive.goldenline.model.home.ContributionPage; | |
| 49 | +import com.cnlive.goldenline.model.home.HotSerchBean; | |
| 50 | +import com.cnlive.goldenline.model.home.KeywordsearchBean; | |
| 51 | +import com.cnlive.goldenline.model.home.ZhiBoDetailResponseBean; | |
| 52 | +import com.cnlive.goldenline.model.mine.CollectionListRequest; | |
| 53 | +import com.cnlive.goldenline.model.mine.CollectionListResponse; | |
| 54 | +import com.cnlive.goldenline.model.mine.CouponListRequestBean; | |
| 55 | +import com.cnlive.goldenline.model.mine.CouponListResponseBean; | |
| 56 | +import com.cnlive.goldenline.model.mine.RecordListRequestBean; | |
| 57 | +import com.cnlive.goldenline.model.mine.RecordListResponseBean; | |
| 58 | +import com.cnlive.goldenline.model.mine.TicketListRequestBean; | |
| 59 | +import com.cnlive.goldenline.model.mine.TicketListResponseBean; | |
| 60 | +import com.cnlive.goldenline.model.mine.UpdateAppResponse; | |
| 61 | +import com.cnlive.goldenline.model.mine.UpdateAppRequest; | |
| 62 | +import com.cnlive.goldenline.model.mine.VersionUpdateResponseBean; | |
| 63 | +import com.cnlive.goldenline.model.mine.WalletRequestBean; | |
| 64 | +import com.cnlive.goldenline.model.mine.WalletResponseBean; | |
| 65 | +import com.cnlive.goldenline.model.request.ADRequest; | |
| 66 | +import com.cnlive.goldenline.model.request.ActRequest; | |
| 67 | +import com.cnlive.goldenline.model.request.AllSubscribeListRequest; | |
| 68 | +import com.cnlive.goldenline.model.request.AllSubscribeRequest; | |
| 69 | +import com.cnlive.goldenline.model.request.AwardRequest; | |
| 70 | +import com.cnlive.goldenline.model.request.BannerRequest; | |
| 71 | +import com.cnlive.goldenline.model.request.CancelSubscribeRequest; | |
| 72 | +import com.cnlive.goldenline.model.request.ConfirmOrderRequest; | |
| 73 | +import com.cnlive.goldenline.model.request.DianBoClassiFyRequest; | |
| 74 | +import com.cnlive.goldenline.model.request.DianBoListRequest; | |
| 75 | +import com.cnlive.goldenline.model.request.EditRecommendRequest; | |
| 76 | +import com.cnlive.goldenline.model.request.FindActRequest; | |
| 77 | +import com.cnlive.goldenline.model.request.FindSubscribeRequest; | |
| 78 | +import com.cnlive.goldenline.model.request.HallDetalisRequest; | |
| 79 | +import com.cnlive.goldenline.model.request.HeavyLiveAllRequest; | |
| 80 | +import com.cnlive.goldenline.model.request.LiveShowCategoryRequest; | |
| 81 | +import com.cnlive.goldenline.model.request.MessageBean; | |
| 82 | +import com.cnlive.goldenline.model.request.OnLinePeoplesRequest; | |
| 83 | +import com.cnlive.goldenline.model.request.PageRequest; | |
| 84 | +import com.cnlive.goldenline.model.request.RecommendLiveShowListRequest; | |
| 85 | +import com.cnlive.goldenline.model.request.SeatsRequest; | |
| 86 | +import com.cnlive.goldenline.model.request.SignRequest; | |
| 87 | +import com.cnlive.goldenline.model.request.SubTheatreInfoRequest; | |
| 88 | +import com.cnlive.goldenline.model.request.SubscribeRequest; | |
| 89 | +import com.cnlive.goldenline.model.request.TheatreAreaRequest; | |
| 90 | +import com.cnlive.goldenline.model.request.TheatreListRequest; | |
| 91 | +import com.cnlive.goldenline.model.request.TheatreRequest; | |
| 92 | +import com.cnlive.goldenline.model.request.TheatreScreenRequest; | |
| 93 | +import com.cnlive.goldenline.model.request.UserMessageBean; | |
| 94 | +import com.cnlive.goldenline.model.request.UserTopRequest; | |
| 95 | +import com.cnlive.goldenline.model.response.ADResponse; | |
| 96 | +import com.cnlive.goldenline.model.response.AllSubscribeResponse; | |
| 97 | +import com.cnlive.goldenline.model.response.BannerResponse; | |
| 98 | +import com.cnlive.goldenline.model.response.BaseResponse; | |
| 99 | +import com.cnlive.goldenline.model.response.DianBoClassiFyResponse; | |
| 100 | +import com.cnlive.goldenline.model.response.DianBoListResponse; | |
| 101 | +import com.cnlive.goldenline.model.response.HeavyLiveAllResponse; | |
| 102 | +import com.cnlive.goldenline.model.response.ListResponse; | |
| 103 | +import com.cnlive.goldenline.model.response.LiveShowCategoryListResponse; | |
| 104 | +import com.cnlive.goldenline.model.response.LiveShowListResponse; | |
| 105 | +import com.cnlive.goldenline.model.response.OnLinePeoplesResponse; | |
| 106 | +import com.cnlive.goldenline.model.response.RecommendLiveShowListResponse; | |
| 107 | +import com.cnlive.goldenline.model.response.SelectSeatResponse; | |
| 108 | +import com.cnlive.goldenline.model.response.SignResponse; | |
| 109 | +import com.cnlive.goldenline.model.response.TheatreAreaResponse; | |
| 110 | +import com.cnlive.goldenline.model.response.TheatreListResponse; | |
| 111 | +import com.cnlive.goldenline.pay.model.PayCloudResponse; | |
| 112 | +import com.cnlive.goldenline.ui.activity.act.model.HotTopicSerch; | |
| 113 | +import com.cnlive.goldenline.ui.activity.act.model.KeyWordSerch; | |
| 114 | +import com.cnlive.goldenline.ui.model.CollectRequest; | |
| 115 | +import com.cnlive.goldenline.ui.model.CollectRespons; | |
| 116 | +import com.cnlive.goldenline.ui.model.ErrorMessage; | |
| 117 | +import com.cnlive.goldenline.ui.model.Favorite; | |
| 118 | +import com.cnlive.goldenline.ui.model.IsFavorite; | |
| 119 | +import com.cnlive.goldenline.ui.model.MessageRequestBean; | |
| 120 | +import com.cnlive.goldenline.ui.model.VoteDate; | |
| 121 | +import com.cnlive.goldenline.ui.model.VotickBean; | |
| 122 | + | |
| 123 | +import java.util.List; | |
| 124 | +import java.util.Map; | |
| 125 | +import java.util.TreeMap; | |
| 126 | + | |
| 127 | +import retrofit.Callback; | |
| 128 | +import retrofit.client.Response; | |
| 129 | +import retrofit.http.Body; | |
| 130 | +import retrofit.http.Field; | |
| 131 | +import retrofit.http.FieldMap; | |
| 132 | +import retrofit.http.FormUrlEncoded; | |
| 133 | +import retrofit.http.GET; | |
| 134 | +import retrofit.http.Multipart; | |
| 135 | +import retrofit.http.POST; | |
| 136 | +import retrofit.http.Part; | |
| 137 | +import retrofit.http.Path; | |
| 138 | +import retrofit.http.Query; | |
| 139 | +import retrofit.mime.TypedFile; | |
| 140 | + | |
| 141 | +/** | |
| 142 | + * Created by zuoxian on 15/9/7. | |
| 143 | + */ | |
| 144 | +public interface CmsAPI { | |
| 145 | + | |
| 146 | + /** | |
| 147 | + * 查询直播信息 | |
| 148 | + * | |
| 149 | + * @param id | |
| 150 | + * @param callback | |
| 151 | + */ | |
| 152 | + @FormUrlEncoded | |
| 153 | + @POST("/portal/live/getLiveContentDetail") | |
| 154 | + void getZhiBoInfo(@Field("id") String id, Callback<ZhiBoDetailResponseBean> callback); | |
| 155 | + | |
| 156 | + /** | |
| 157 | + * 根据类别 获取Banner 0 全部 1 首页 | |
| 158 | + * | |
| 159 | + * @param type | |
| 160 | + * @param callback | |
| 161 | + */ | |
| 162 | + @FormUrlEncoded | |
| 163 | + @POST("/portal/pub/getBannerList") | |
| 164 | + void getBannerList(@Field("type") String type, Callback<BannerResponseBean> callback); | |
| 165 | + | |
| 166 | + // 点播分类 | |
| 167 | + @POST("/portal/appService/classifyList") | |
| 168 | + void fetchDianBoClassiFyListJson(@Body DianBoClassiFyRequest body, Callback<DianBoClassiFyResponse> callback); | |
| 169 | + | |
| 170 | + //点播列表 | |
| 171 | + @POST("/portal/appService/videoDemandList") | |
| 172 | + void fetchDianBoList(@Body DianBoListRequest body, Callback<DianBoListResponse> callback); | |
| 173 | + | |
| 174 | + //判断收藏 | |
| 175 | + @POST("/portal/collection/isCollected") | |
| 176 | + void isCollected( | |
| 177 | + @Body CollectRequest body, | |
| 178 | + Callback<IsFavorite> callback | |
| 179 | + ); | |
| 180 | + | |
| 181 | + //添加收藏 | |
| 182 | + @POST("/portal/collection/collection") | |
| 183 | + void addCollected( | |
| 184 | + @Body CollectRespons body, | |
| 185 | + Callback<Favorite> callback | |
| 186 | + ); | |
| 187 | + | |
| 188 | + /** | |
| 189 | + * 查询剧院分区信息 | |
| 190 | + * | |
| 191 | + * @param callback | |
| 192 | + */ | |
| 193 | + @POST("/portal/chooseseat/gethallnumber") | |
| 194 | + void fetchTheatreScreen(@Body TheatreScreenRequest request, Callback<Response> callback); | |
| 195 | + | |
| 196 | + // 获取区域人数 | |
| 197 | + @POST("/portal/chooseseat/getareapeoplenumber") | |
| 198 | + void fetchTheatreArea(@Body TheatreAreaRequest request, Callback<TheatreAreaResponse> callback); | |
| 199 | + | |
| 200 | + // 获取预约详情页 推荐直播 | |
| 201 | + @POST("/portal/appLiveService/similarLiveInfoList") | |
| 202 | + void fetchRecommendLiveShowList(@Body RecommendLiveShowListRequest recommendLiveShowListRequest, Callback<RecommendLiveShowListResponse> callback); | |
| 203 | + | |
| 204 | + @POST("/portal/appLiveService/heavyLiveAll") | |
| 205 | + void fetchHeavyLiveAll(@Body HeavyLiveAllRequest heavyLiveAllRequest, Callback<HeavyLiveAllResponse> callback); | |
| 206 | + | |
| 207 | + /** | |
| 208 | + * 查询剧院信息 | |
| 209 | + * | |
| 210 | + * @param callback | |
| 211 | + */ | |
| 212 | + @POST("/portal/appTheatreService/getTheatre") | |
| 213 | + void fetchTheatreInfo(@Body SubTheatreInfoRequest request, | |
| 214 | + Callback<Response> callback); | |
| 215 | + | |
| 216 | + /** | |
| 217 | + * 充值之前调用 | |
| 218 | + * | |
| 219 | + * @param callback {"amount":1231312,"platform":1,"userId":544} | |
| 220 | + */ | |
| 221 | + | |
| 222 | + @POST("/portal/recharge/generalOrder") | |
| 223 | + void requstOrderInfo(@Body WalletRequestBean bean, | |
| 224 | + Callback<WalletResponseBean> callback); | |
| 225 | + | |
| 226 | + //首页 | |
| 227 | + @POST("/portal/appLiveService/liveInfoList") | |
| 228 | + void fetchHomeData(@Body PageRequest pageRequest, Callback<Response> callback); | |
| 229 | + | |
| 230 | + // 直播列表 | |
| 231 | + @POST("/portal/appLiveService/liveInfoListAll") | |
| 232 | + void fetchLiveShowList(@Body PageRequest request, Callback<LiveShowListResponse> callback); | |
| 233 | + | |
| 234 | + // 直播分类 | |
| 235 | + @POST("/portal/appLiveService/columnLiveList") | |
| 236 | + void fetchLiveShowCategoryList(@Body LiveShowCategoryRequest liveShowCategoryRequest, Callback<LiveShowCategoryListResponse> callback); | |
| 237 | + | |
| 238 | + // 查询直播预约 或者点播打赏人数 | |
| 239 | + @POST("/portal/onlineNum/getOnlinePeoples") | |
| 240 | + void fetchOnLinePeoples(@Body OnLinePeoplesRequest onLinePeoplesRequest, Callback<OnLinePeoplesResponse> callback); | |
| 241 | + | |
| 242 | + // 提交订单 | |
| 243 | + @POST("/portal/appOrderService/orderInfo") | |
| 244 | + void confirmOrder(@Body ConfirmOrderRequest confirmOrderRequest, Callback<BaseResponse> callbak); | |
| 245 | + | |
| 246 | + /** | |
| 247 | + * 查询分类下的节目列表 | |
| 248 | + * | |
| 249 | + * @param columnId | |
| 250 | + * @param callback | |
| 251 | + */ | |
| 252 | + @FormUrlEncoded | |
| 253 | + @POST("/portal/live/getTodayLiveListByColumnId") | |
| 254 | + void fetchLiveShowByType(@Field("columnId") String columnId, Callback callback); | |
| 255 | + | |
| 256 | + /** | |
| 257 | + * 查询版本更新 | |
| 258 | + * | |
| 259 | + * @param callback | |
| 260 | + */ | |
| 261 | + @GET("/portal/client/updateVersion") | |
| 262 | + void versionUpdate(Callback<VersionUpdateResponseBean> callback); | |
| 263 | + | |
| 264 | + // * * * * * * * * * * 老版接口* * * * * * * * * * | |
| 265 | + | |
| 266 | + /** | |
| 267 | + * 我的优惠券 | |
| 268 | + */ | |
| 269 | + @POST("/portal/couponoperate/getcouponbytype") | |
| 270 | + void requstCouponListData(@Body CouponListRequestBean bean, | |
| 271 | + Callback<CouponListResponseBean> callback); | |
| 272 | + | |
| 273 | +// /** | |
| 274 | +// * 充值之前调用 | |
| 275 | +// */ | |
| 276 | +// @POST("/open/api2/unifypay/prepay") | |
| 277 | +// void requestPayCould(@Body WalletPayCloudRequestBean bean, | |
| 278 | +// Callback<WalletPayCloudResponseBean> callback); | |
| 279 | + | |
| 280 | + /** | |
| 281 | + * 充值之前调用 | |
| 282 | + */ | |
| 283 | + @FormUrlEncoded | |
| 284 | + @POST("/open/api2/unifypay/prepay") | |
| 285 | + void requestPayCould(@FieldMap Map<String, String> options, | |
| 286 | + Callback<PayCloudResponse> callback); | |
| 287 | + /** | |
| 288 | + * 获取tab标签信息 | |
| 289 | + * | |
| 290 | + * @param callback | |
| 291 | + */ | |
| 292 | +// @GET("getTabInfoList.html?tabType=1") | |
| 293 | +// void getTabHostItems(Callback<TabModelBean> callback); | |
| 294 | + | |
| 295 | + /** | |
| 296 | + * 首页(非推荐页)Json | |
| 297 | + */ | |
| 298 | + @GET("/{id}moduleindex.json") | |
| 299 | + void getExcpetHomeData(@Path("id") String id, | |
| 300 | + Callback<HomeItemData> callback); | |
| 301 | + | |
| 302 | + /** | |
| 303 | + * 合集Json | |
| 304 | + */ | |
| 305 | + @GET("/heji/{id}/hj.json") | |
| 306 | + void getHjData(@Path("id") String id, | |
| 307 | + Callback<HejiData> callback); | |
| 308 | + | |
| 309 | + /** | |
| 310 | + * VIP页json | |
| 311 | + */ | |
| 312 | + @GET("/vip1.json") | |
| 313 | + void getVipData(Callback<VipData> callback); | |
| 314 | + | |
| 315 | + /** | |
| 316 | + * 今日直播json | |
| 317 | + */ | |
| 318 | + @GET("/todaylive.json") | |
| 319 | + void getTodayLiveData(Callback<TodayLiveData> callback); | |
| 320 | + | |
| 321 | + /** | |
| 322 | + * 明星大咖主播间html | |
| 323 | + */ | |
| 324 | +// http://app.shineup.com.cn:8080/goldenline-portal-clt/getAllLiveing.html?plat=a&beginCount=0 | |
| 325 | + @GET("/getAllLiveing.html") | |
| 326 | + void getAnchorRoomData(@Query("plat") String plat, | |
| 327 | + @Query("beginCount") String beginCount, | |
| 328 | + Callback<AnchorRoomItemList> callback); | |
| 329 | + | |
| 330 | + | |
| 331 | + /** | |
| 332 | + * 开通vip的json | |
| 333 | + */ | |
| 334 | + @GET("/vipopen2.1.json") | |
| 335 | + void getOpenVipData(Callback<OpenVipData> callback); | |
| 336 | + //http://120.131.13.185/data/goldenline/vipopen2.1.json | |
| 337 | + | |
| 338 | + | |
| 339 | + /** | |
| 340 | + * 直播页作品信息 | |
| 341 | + */ | |
| 342 | + @GET("/bunch/{id}.json") | |
| 343 | + void getPlayItemInfo(@Path("id") String id, | |
| 344 | + Callback<PlayItemInfo> callback); | |
| 345 | + | |
| 346 | + /** | |
| 347 | + * 直播页的推荐节目推荐 | |
| 348 | + */ | |
| 349 | + @GET("/hyperlink/{extend}.json") | |
| 350 | + void getRecommendInfo(@Path("extend") String extend, | |
| 351 | + Callback<TreeMap> callback); | |
| 352 | + | |
| 353 | + | |
| 354 | + /** | |
| 355 | + * 评论接口 | |
| 356 | + */ | |
| 357 | + @GET("/saveCommentVODData.html") | |
| 358 | + void commentData(@Query("content") String content, | |
| 359 | + @Query("programId") String programId, | |
| 360 | + @Query("uid") String uid, | |
| 361 | + Callback<ErrorMessage> callback); | |
| 362 | + | |
| 363 | + /** | |
| 364 | + * tab接口 | |
| 365 | + */ | |
| 366 | + @GET("/getTabInfoList.html") | |
| 367 | + void getQDTABData(@Query("tabType") int tabType, | |
| 368 | + Callback<TabBarBean> callback); | |
| 369 | +// /** | |
| 370 | +// * 上传主播封面 | |
| 371 | +// * | |
| 372 | +// * @param callback | |
| 373 | +// */ | |
| 374 | +// @Multipart | |
| 375 | +// @POST("/uploadPhoto.html") | |
| 376 | +// void uploadCover(@Part("cover") TypedFile cover, | |
| 377 | +// Callback<ErrorMessage> callback); | |
| 378 | + | |
| 379 | + /** | |
| 380 | + * 获取评论内容 | |
| 381 | + */ | |
| 382 | + @GET("/getCommentVODDataInformation.html") | |
| 383 | + void getCommentData(@Query("programId") String programId, | |
| 384 | + Callback<PlayViewComment> callback); | |
| 385 | + //http://app.shineup.com.cn:8080/goldenline-portal-clt/getCommentVODDataInformation.html?programId= | |
| 386 | + | |
| 387 | + /** | |
| 388 | + * 获得点赞人数 | |
| 389 | + */ | |
| 390 | + @GET("/getPraiseProgram.html") | |
| 391 | + void getPraiseNum(@Query("uid") String uid, | |
| 392 | + @Query("programId") String programId, | |
| 393 | + Callback<ErrorMessage> callback); | |
| 394 | + | |
| 395 | + /** | |
| 396 | + * 点赞 2.3以前版本 现在点播在用 | |
| 397 | + */ | |
| 398 | + @GET("/savePraiseProgram.html") | |
| 399 | + void praise1(@Query("uid") String uid, | |
| 400 | + @Query("programId") String programId, | |
| 401 | + Callback<Prsise> callback); | |
| 402 | + | |
| 403 | + /** | |
| 404 | + * 点赞 2.3以后版本,含2.3 | |
| 405 | + */ | |
| 406 | + @GET("/chatroomVisit.html") | |
| 407 | + void praise(@Query("roomId") String roomId, | |
| 408 | + @Query("uid") String uid, | |
| 409 | + @Query("typeClass") String typeClass, | |
| 410 | + Callback<ErrorMessage> callback); | |
| 411 | + | |
| 412 | + /** | |
| 413 | + * 直播发送弹幕 | |
| 414 | + */ | |
| 415 | + @GET("/chatroomVisit.html") | |
| 416 | + void postDamaku(@Query("roomId") String roomId, | |
| 417 | + @Query("uid") String uid, | |
| 418 | + @Query("typeClass") String typeClass, | |
| 419 | + @Query("chatData") String chatData, | |
| 420 | + Callback<ErrorMessage> callback); | |
| 421 | + | |
| 422 | + /** | |
| 423 | + * 判断是否点赞 | |
| 424 | + * | |
| 425 | + * @param callback | |
| 426 | + */ | |
| 427 | + @GET("/praiseBoolean.html") | |
| 428 | + void BooleanPraise(@Query("uid") String uid, | |
| 429 | + @Query("programId") String programId, | |
| 430 | + Callback<ErrorMessage> callback); | |
| 431 | + | |
| 432 | + /** | |
| 433 | + * 点赞新接口 | |
| 434 | + * | |
| 435 | + * @param callback | |
| 436 | + */ | |
| 437 | + @GET("/praise.html?") | |
| 438 | + void newPraise(@Query("uid") String uid, | |
| 439 | + @Query("programId") String programId, | |
| 440 | + @Query("type") String type,//save | |
| 441 | + Callback<ErrorMessage> callback); | |
| 442 | + | |
| 443 | + | |
| 444 | + /** | |
| 445 | + * 获取点播播放地址 | |
| 446 | + */ | |
| 447 | + @GET("/rLive.html") | |
| 448 | + void getPlayUrl1(@Query("id") String id, | |
| 449 | + @Query("type") String type, | |
| 450 | + @Query("plat") String plat, | |
| 451 | + @Query("liveDemand") String liveDemand, | |
| 452 | + Callback<PlayUrl> callback); | |
| 453 | + | |
| 454 | + /** | |
| 455 | + * 取点播流的基本信息 | |
| 456 | + */ | |
| 457 | + @GET("/rLive.html") | |
| 458 | + void getDianboInfo(@Query("id") String id, | |
| 459 | + @Query("type") String type, | |
| 460 | + @Query("liveDemand") String liveDemand, | |
| 461 | + @Query("programmeLevel") String programmeLevel, | |
| 462 | + @Query("uid") String uid, | |
| 463 | + @Query("VIPLevel") String VIPLevel, | |
| 464 | + Callback<PlayUrl1> callback); | |
| 465 | + | |
| 466 | + /* | |
| 467 | + * 点播发送到服务器 | |
| 468 | + * */ | |
| 469 | + @GET("/barrageOnDemand.html") | |
| 470 | + void PostDianBoDanMu(@Query("type") String type, | |
| 471 | + @Query("data") String data, | |
| 472 | + @Query("time") String time, | |
| 473 | + @Query("roomId") String roomId, | |
| 474 | + @Query("uid") String uid, | |
| 475 | + Callback<ErrorMessage> callback); | |
| 476 | + | |
| 477 | + /* | |
| 478 | + * 获取点播本地、实时、退出弹幕 | |
| 479 | + * */ | |
| 480 | + @GET("/barrageOnDemand.html") | |
| 481 | + void getDianBoDanMu(@Query("type") String type, | |
| 482 | + @Query("time") String time, | |
| 483 | + @Query("roomId") String roomId, | |
| 484 | + @Query("uid") String uid, | |
| 485 | + Callback<DianBoDamaku> callback); | |
| 486 | + | |
| 487 | + | |
| 488 | + /** | |
| 489 | + * 获取直播播放地址 | |
| 490 | + */ | |
| 491 | + @GET("/live.html") | |
| 492 | + void getPlayUrl2(@Query("title") String title, | |
| 493 | + @Query("type") String type, | |
| 494 | + @Query("plat") String plat, | |
| 495 | + Callback<PlayLiveUrl> callback); | |
| 496 | + | |
| 497 | + /** | |
| 498 | + * 获取直播播放参数 | |
| 499 | + * | |
| 500 | + * @param callback | |
| 501 | + */ | |
| 502 | + @GET("/live/{id}.json") | |
| 503 | + void getParameter(@Path("id") String id, | |
| 504 | + Callback<PlayUrlParameter> callback); | |
| 505 | + | |
| 506 | + /** | |
| 507 | + * 取直播流的基本信息,用户播放权限 | |
| 508 | + */ | |
| 509 | + @GET("/live.html") | |
| 510 | + void getZhiboInfo(@Query("title") String title, | |
| 511 | + @Query("liveDemand") String liveDemand, | |
| 512 | + @Query("type") String type, | |
| 513 | + @Query("programmeLevel") String programmeLevel, | |
| 514 | + @Query("uid") String uid, | |
| 515 | + @Query("VIPLevel") String VIPLevel, | |
| 516 | + Callback<PlayUrl1> callback); | |
| 517 | + | |
| 518 | + | |
| 519 | + /** | |
| 520 | + * 主播评论 2.3以前版本 | |
| 521 | + */ | |
| 522 | + @GET("/saveCommentLiveingData.html") | |
| 523 | + void zbCommentData1(@Query("content") String content, | |
| 524 | + @Query("programId") String programId, | |
| 525 | + @Query("uid") String uid, | |
| 526 | + Callback<ErrorMessage> callback); | |
| 527 | + | |
| 528 | + /** | |
| 529 | + * 主播评论 2.3以后版本,含2.3 | |
| 530 | + */ | |
| 531 | + @GET("/chatroomVisit.html") | |
| 532 | + void zbCommentData(@Query("roomId") String roomId, | |
| 533 | + @Query("uid") String uid, | |
| 534 | + @Query("typeClass") String typeClass, | |
| 535 | + @Query("chatData") String chatData, | |
| 536 | + Callback<ErrorMessage> callback); | |
| 537 | + | |
| 538 | + /** | |
| 539 | + * 获取主播播评论 | |
| 540 | + * | |
| 541 | + * @param callback | |
| 542 | + */ | |
| 543 | + @GET("/getCommentLiveingDataInformation.html") | |
| 544 | + void getZbCommentData(@Query("programId") String programId, | |
| 545 | + Callback<PlayViewComment> callback); | |
| 546 | + | |
| 547 | + /** | |
| 548 | + * 关注主播 | |
| 549 | + */ | |
| 550 | + @GET("/watchPeople.html") | |
| 551 | + void watchPeople(@Query("anchorId") String anchorId, | |
| 552 | + @Query("uid") String uid, | |
| 553 | + Callback<ErrorMessage> callback); | |
| 554 | + | |
| 555 | + /** 进入直播间 2.3以前版本 */ | |
| 556 | +// @GET("/watchPeople.html") | |
| 557 | +// void intoZbRoom1(@Query("anchorId") String anchorId, | |
| 558 | +// @Query("uid") String uid, | |
| 559 | +// Callback<ErrorMessage> callback); | |
| 560 | + | |
| 561 | + /** | |
| 562 | + * 进入直播间 2.3以后(包括2.3) | |
| 563 | + */ | |
| 564 | + @GET("/chatroomVisit.html") | |
| 565 | + void intoZbRoom(@Query("roomId") String roomId, | |
| 566 | + @Query("uid") String uid, | |
| 567 | + @Query("type") String type, | |
| 568 | + Callback<ErrorMessage> callback); | |
| 569 | + | |
| 570 | + | |
| 571 | + /** 获取进入直、主播间用户 2.3以前版本 */ | |
| 572 | +// @GET("/getWatchPeople.html") | |
| 573 | +// void getWatchPeople1(@Query("anchorId") String anchorId, | |
| 574 | +// Callback<WatchPeople> callback); | |
| 575 | + | |
| 576 | + /** | |
| 577 | + * 获取用户在播放界面的所有信息 | |
| 578 | + * http://app.shineup.com.cn:8080/goldenline-portal-clt/chatroomVisit.html?roomId=60&uid=201610180858260000000000000815&type=get | |
| 579 | + */ | |
| 580 | + @GET("/chatroomVisit.html") | |
| 581 | + void getWatchPeople(@Query("roomId") String roomId, | |
| 582 | + @Query("uid") String uid, | |
| 583 | + @Query("type") String type, | |
| 584 | + Callback<AllData_Zb_Anchor> callback); | |
| 585 | + | |
| 586 | + | |
| 587 | + /** | |
| 588 | + * 搜索 | |
| 589 | + */ | |
| 590 | + @GET("/solrVOD.html") | |
| 591 | + void searchInfo(@Query("keywords") String keywords, | |
| 592 | + Callback<SearchInfo> callback); | |
| 593 | + | |
| 594 | + /** | |
| 595 | + * 搜索热吃 | |
| 596 | + */ | |
| 597 | + @GET("/hotword.json") | |
| 598 | + void Hotword(Callback<SearchHotWord> callback); | |
| 599 | + | |
| 600 | + | |
| 601 | + /** | |
| 602 | + * 得到礼物信息 | |
| 603 | + * 新 :http://120.92.61.34:8080/portal/giftModel/giftModelList | |
| 604 | + * 旧 :http://app.shineup.com.cn/data/goldenline/giftmodel.json | |
| 605 | + */ | |
| 606 | + @POST("/portal/giftModel/giftModelList") | |
| 607 | + void getGift(@Body String request, Callback<GiftInfo> callback); | |
| 608 | + | |
| 609 | + | |
| 610 | + /** | |
| 611 | + * 用户的充值 礼物等记录 | |
| 612 | + * type=receive(接收礼物),give(赠送礼物) | |
| 613 | + */ | |
| 614 | + @GET("/getGiftInventory.html") | |
| 615 | + void getRecord( | |
| 616 | + @Query("uid") String uid, | |
| 617 | + @Query("plat") String plat, | |
| 618 | + @Query("type") String type, | |
| 619 | + @Query("beginCount") String beginCount,//记录数 当前得到的记录的数量 | |
| 620 | + Callback<Record> callback); | |
| 621 | + | |
| 622 | + //http://120.131.13.185:8080/goldenline-portal-clt/getGiftInventory.html?uid=12345&plat=a&type=reciver&beginCount=0 | |
| 623 | + | |
| 624 | + /** | |
| 625 | + * 送礼物记录 | |
| 626 | + */ | |
| 627 | + @GET("/giveGift1.html") | |
| 628 | + void giveGift( | |
| 629 | + @Query("giftId") String giftId, | |
| 630 | + @Query("uid") String uid, | |
| 631 | + @Query("anchorId") String anchorId, | |
| 632 | + @Query("count") String count,//礼物数量 | |
| 633 | + @Query("dm3") String dm3, | |
| 634 | + Callback<ErrorMessage> callback); | |
| 635 | + | |
| 636 | + /** | |
| 637 | + * 充值记录 | |
| 638 | + */ | |
| 639 | + @GET("/getRechargeRecord.html") | |
| 640 | + void rechargeRecord( | |
| 641 | + @Query("uid") String uid, | |
| 642 | + @Query("beginCount") String beginCount,//起始条数 | |
| 643 | + Callback<Record> callback); | |
| 644 | + | |
| 645 | + /** | |
| 646 | + * 返回金币 | |
| 647 | + */ | |
| 648 | + @GET("/getUserGold.html") | |
| 649 | + void getUserGold( | |
| 650 | + @Query("uid") String uid, | |
| 651 | + Callback<ErrorMessage> callback); | |
| 652 | + | |
| 653 | + /** | |
| 654 | + * 获取时间戳接口 | |
| 655 | + * oper(flowrate,sms,bind,register,login) | |
| 656 | + * | |
| 657 | + * @param oper | |
| 658 | + * @param callback | |
| 659 | + */ | |
| 660 | + @GET("/timeStampt.html") | |
| 661 | + void getTimeStampt(@Query("plat") String plat, | |
| 662 | + @Query("oper") String oper,// (register)加上字段后可以频繁访问时间戳 否则 一分钟只能访问一次 | |
| 663 | + Callback<ErrorMessage> callback); | |
| 664 | + | |
| 665 | + /** | |
| 666 | + * 搜索产生关键字 | |
| 667 | + */ | |
| 668 | + @GET("/fuzzyQuery.html") | |
| 669 | + void getKeyWord(@Query("fuzzyKeywords") String plat, | |
| 670 | + Callback<ErrorMessage> callback); | |
| 671 | + | |
| 672 | + /* | |
| 673 | + * 签到json | |
| 674 | + */ | |
| 675 | + @GET("/sign.json") | |
| 676 | + void getRiQian(Callback<RiQian> callback); | |
| 677 | + | |
| 678 | + /** | |
| 679 | + * 签管理 | |
| 680 | + * | |
| 681 | + * @param request | |
| 682 | + * @param callback | |
| 683 | + */ | |
| 684 | + @POST("/portal/appSignService/signInfo") | |
| 685 | + void getSignInfo(@Body SignRequest request, Callback<SignResponse> callback); | |
| 686 | + | |
| 687 | + /** | |
| 688 | + * 广告接口 | |
| 689 | + */ | |
| 690 | + @POST("/portal/appAdvertService/getAdvert") | |
| 691 | + void getAdInfo(@Body() ADRequest adRequest, Callback<ADResponse> callback); | |
| 692 | + | |
| 693 | + /** | |
| 694 | + * 视屏 分辨率 | |
| 695 | + * 在线观看:1 低清、2标清、3高清 | |
| 696 | + * 下载:1低清、2标清、3高清 | |
| 697 | + * http://app.shineup.com.cn/data/goldenline/bunch/874.json | |
| 698 | + */ | |
| 699 | + @GET("/bunch/{contentid}.json") | |
| 700 | + void getResolution(@Path("contentid") String contentid, | |
| 701 | + Callback<Program> callback); | |
| 702 | + | |
| 703 | + //http://app.shineup.com.cn/data/goldenline/bunch/636.json | |
| 704 | + | |
| 705 | + /** | |
| 706 | + * 观看券 | |
| 707 | + */ | |
| 708 | + @GET("/getGoldCardInformation_25.html") | |
| 709 | + void getWatchTicket(@Query("uid") String uid, | |
| 710 | + Callback<WatchTicket> callback); | |
| 711 | + //http://app.shineup.com.cn:8080/goldenline-portal-clt/getGoldCardInformation.html?uid=201608181227410000000000000464 | |
| 712 | + | |
| 713 | + /** | |
| 714 | + * 我要售卡 | |
| 715 | + */ | |
| 716 | + @GET("/h5UrlGoldCard.html") | |
| 717 | + void geth5UrlGoldCard( | |
| 718 | + @Query("uid") String uid, | |
| 719 | + Callback<ErrorMessage> callback); | |
| 720 | + //http://app.shineup.com.cn:8080/goldenline-portal-clt/h5UrlGoldCard.html?uid=201608181457470000000000000474 | |
| 721 | + //http://app.shineup.com.cn/goldenline/html/loginPay/loginPay.html?attach=201608181457470000000000000474 | |
| 722 | + | |
| 723 | + /** | |
| 724 | + * 售卡记录 | |
| 725 | + */ | |
| 726 | + @GET("/getSellCardRecords.html") | |
| 727 | + void getSoldCardRecord( | |
| 728 | + @Query("uid") String uid, | |
| 729 | + Callback<SoldCardRecord> callback); | |
| 730 | + | |
| 731 | + | |
| 732 | + /** | |
| 733 | + * 检票记录 | |
| 734 | + */ | |
| 735 | + @GET("/checkInRecord.html") | |
| 736 | + void getVerifyTicketRecord( | |
| 737 | + @Query("uid") String uid, | |
| 738 | + Callback<VerifyTicketRecord> callback); | |
| 739 | + | |
| 740 | + /** | |
| 741 | + * 编码验证 | |
| 742 | + */ | |
| 743 | + @GET("/checkGoldCard.html") | |
| 744 | + void getIsSucceedKey( | |
| 745 | + @Query("uid") String uid, | |
| 746 | + @Query("number") String number, | |
| 747 | + Callback<ErrorMessage> callback); | |
| 748 | + | |
| 749 | + | |
| 750 | + /** | |
| 751 | + * 获取播放URL | |
| 752 | + */ | |
| 753 | + @GET("/rLive.html") | |
| 754 | + void getPlayUrl( | |
| 755 | + @Query("id") String id, | |
| 756 | + @Query("type") String number, | |
| 757 | + @Query("liveDemand") String liveDemand, | |
| 758 | + Callback<PlayUrl1> callback); | |
| 759 | + | |
| 760 | + | |
| 761 | + @GET("/AdMessage.html") | |
| 762 | + void getAdBannerData(@Query("type") String type, | |
| 763 | + @Query("os") String os, | |
| 764 | + @Query("osv") String osv, | |
| 765 | + @Query("carrier") String carrier, | |
| 766 | + @Query("devicetype") String devicetype, | |
| 767 | + @Query("connectiontype") String connectiontype, | |
| 768 | + @Query("pnumber") String pnumber, | |
| 769 | + @Query("ip") String ip, | |
| 770 | + @Query("mac") String mac, | |
| 771 | + @Query("make") String make, | |
| 772 | + @Query("model") String model, | |
| 773 | + @Query("h") String h, | |
| 774 | + @Query("w") String w, | |
| 775 | + @Query("ua") String ua, | |
| 776 | + @Query("did") String did, | |
| 777 | + Callback<AdParent> callback); | |
| 778 | + | |
| 779 | + /* | |
| 780 | + * 创建主播房间id | |
| 781 | + * http://app.shineup.com.cn:8080/goldenline-portal-clt/getAnchorActivityId.html | |
| 782 | + * */ | |
| 783 | + @GET("/getAnchorActivityId.html") | |
| 784 | + void getActivityID(@Query("uid") String uid, | |
| 785 | + @Query("plat") String plat, | |
| 786 | + Callback<ErrorMessage> callback); | |
| 787 | + | |
| 788 | + /* | |
| 789 | + * 用户基本权益刷新 | |
| 790 | + * http://app.shineup.com.cn:8080/goldenline-portal-clt/getUserInformationByUid.html | |
| 791 | + * */ | |
| 792 | + @GET("/getUserInformationByUid.html") | |
| 793 | + void getAnchorPermission(@Query("uid") String uid, | |
| 794 | + Callback<User> callback); | |
| 795 | + | |
| 796 | + /* | |
| 797 | + * 获取单个主播主页基本信息的接口 | |
| 798 | + * http://app.shineup.com.cn:8080/goldenline-portal-clt/getSingleUserHomepage.html?uid=201610180858260000000000000815 | |
| 799 | + * */ | |
| 800 | + @GET("/getSingleUserHomepage.html") | |
| 801 | + void getAnchorInfo(@Query("uid") String uid, | |
| 802 | + Callback<AnchorRoomData> callback); | |
| 803 | + | |
| 804 | + /* | |
| 805 | + * 判断书否关注主播 | |
| 806 | + * return 0 未关注 1 已关注 | |
| 807 | + * */ | |
| 808 | + @GET("/whetherAttention.html") | |
| 809 | + void IsAttentionAnchor(@Query("uid") String uid, | |
| 810 | + @Query("anchorId") String anchorId, | |
| 811 | + Callback<ErrorMessage> callback); | |
| 812 | + | |
| 813 | + /* | |
| 814 | + * 获取单个主播主页视频列表接口 | |
| 815 | + * http://app.shineup.com.cn:8080/goldenline-portal-clt/getAnchorDynamic.html?uid=201608291304040000000000000532 | |
| 816 | + * */ | |
| 817 | + @GET("/getAnchorDynamic.html") | |
| 818 | + void getAnchorDynamic(@Query("uid") String uid, | |
| 819 | + Callback<AnchorInfoList> callback); | |
| 820 | + | |
| 821 | + /* | |
| 822 | + * http://app.shineup.com.cn:8080/goldenline-portal-clt/getAnchorDynamic.html?activityId=0008151477631889362a | |
| 823 | + * */ | |
| 824 | + @GET("/delPlaybackUrl.html") | |
| 825 | + void delPlaybackUrl(@Query("activityId") String activityId, | |
| 826 | + Callback<AnchorInfoList> callback); | |
| 827 | + | |
| 828 | + /* | |
| 829 | + * 在观看直播前判断是否还在直播 | |
| 830 | + *{ | |
| 831 | + errorCode: "0", | |
| 832 | + errorMessage: "活动状态", | |
| 833 | + activityStatus: "0" | |
| 834 | + } | |
| 835 | + 0:未开始 /1:直播中 /2:已结束 /3已下线,默认为0" | |
| 836 | + * */ | |
| 837 | + @GET("/getActivityStatus.html") | |
| 838 | + void getPlayStatus(@Query("activityId") String activityId, | |
| 839 | + Callback<ErrorMessage> callback); | |
| 840 | + | |
| 841 | + /* | |
| 842 | + * 主播直播开播进入、点赞、聊天、退出接口 | |
| 843 | + * */ | |
| 844 | + @GET("/chatroomINFO.html") | |
| 845 | + void getLiveRoom1(@Query("roomId") String roomId, | |
| 846 | + @Query("uid") String uid, | |
| 847 | + @Query("type") String type, | |
| 848 | + @Query("typeClass") String typeClass, | |
| 849 | + @Query("giftId") String giftId, | |
| 850 | + @Query("chatData") String chatData, | |
| 851 | + Callback<ErrorMessage> callback); | |
| 852 | + | |
| 853 | + /* | |
| 854 | + * 主播直播开播送礼信息接口 | |
| 855 | + * */ | |
| 856 | + @GET("/chatroomVisit1.html") | |
| 857 | + void getLiveRoom2(@Query("roomId") String roomId, | |
| 858 | + @Query("uid") String uid, | |
| 859 | + @Query("typeClass") String typeClass, | |
| 860 | + @Query("giftId") String giftId, | |
| 861 | + Callback<ErrorMessage> callback); | |
| 862 | + | |
| 863 | + /* | |
| 864 | + * 直播所有实时数据 | |
| 865 | + * http://120.131.13.185:8080/goldenline-portal-clt/chatroomVisit1.html? | |
| 866 | + * roomId=201609272202360000000000000724 | |
| 867 | + * &type=get | |
| 868 | + * &uid=201609272202360000000000000724 | |
| 869 | + * */ | |
| 870 | + @GET("/chatroomINFO.html") | |
| 871 | + void getLiveRoomAllData(@Query("roomId") String roomId, | |
| 872 | + @Query("uid") String uid, | |
| 873 | + @Query("type") String type, | |
| 874 | + Callback<HostData> callback); | |
| 875 | + | |
| 876 | + /* | |
| 877 | + * 主播直播关闭非正常退出调用 | |
| 878 | + * http://app.shineup.com.cn:8080/goldenline-portal-clt/callbackLiveing.html?activityId=&channelId= | |
| 879 | + * */ | |
| 880 | + @GET("/callbackLiveing.html") | |
| 881 | + void callbackLive(@Query("activityId") String activityId, | |
| 882 | + @Query("channelId") String channelId, | |
| 883 | + @Query("type") String type, //正常退出 1 , 非正常退出 0 | |
| 884 | + Callback<ErrorMessage> callback); | |
| 885 | + | |
| 886 | + | |
| 887 | + /** | |
| 888 | + * 观看主播送礼物 | |
| 889 | + */ | |
| 890 | + @GET("/giveGift1.html") | |
| 891 | + void sendGift( | |
| 892 | + @Query("giftId") String giftId, | |
| 893 | + @Query("uid") String uid, | |
| 894 | + @Query("anchorId") String anchorId, | |
| 895 | + Callback<ErrorMessage> callback); | |
| 896 | + | |
| 897 | + /* | |
| 898 | + * 主播直播结束后获得金币数 | |
| 899 | + * | |
| 900 | + * */ | |
| 901 | + @GET("/getSingleLiveFinishData.html") | |
| 902 | + void getliveFinishData(@Query("anchorId") String anchorId, | |
| 903 | + Callback<ErrorMessage> callback); | |
| 904 | + | |
| 905 | + | |
| 906 | + /* | |
| 907 | + * 观看主播回放统计接口 | |
| 908 | + * errorCode=0,统计成功 | |
| 909 | + * */ | |
| 910 | + @GET("/getPlaybackUrl.html") | |
| 911 | + void postServiceStatistical(@Query("activityId") String activityId, | |
| 912 | + Callback<ErrorMessage> callback); | |
| 913 | + | |
| 914 | + | |
| 915 | + /** | |
| 916 | + * 问题反馈 | |
| 917 | + * | |
| 918 | + * @param contactInformation | |
| 919 | + * @param feedbackDetails | |
| 920 | + * @param callback | |
| 921 | + */ | |
| 922 | + | |
| 923 | + @GET("/feedback.html") | |
| 924 | + void retrunQuestion(@Query("contactInformation") String contactInformation, | |
| 925 | + @Query("feedbackDetails") String feedbackDetails, | |
| 926 | + Callback<ErrorMessage> callback); | |
| 927 | + | |
| 928 | + /** | |
| 929 | + * 上传主播封面 | |
| 930 | + * | |
| 931 | + * @param callback | |
| 932 | + */ | |
| 933 | + @Multipart | |
| 934 | + @POST("/uploadPhoto.html") | |
| 935 | + void uploadCover(@Part("cover") TypedFile cover, | |
| 936 | + Callback<ErrorMessage> callback); | |
| 937 | + | |
| 938 | + | |
| 939 | + /** | |
| 940 | + * 明星大咖主播间的banner数据 | |
| 941 | + * | |
| 942 | + * @param callback | |
| 943 | + */ | |
| 944 | + @GET("/live/liveBanner.json") | |
| 945 | + void getAnchorRoomBannerData(Callback<List<BannerData>> callback); | |
| 946 | +// http://app.shineup.com.cn/data/goldenline/live/liveBanner.json | |
| 947 | + | |
| 948 | + | |
| 949 | + /** | |
| 950 | + * 添加关注 | |
| 951 | + * | |
| 952 | + * @param uid | |
| 953 | + * @param friendId | |
| 954 | + * @param callback | |
| 955 | + */ | |
| 956 | + @GET("/addAttention.html") | |
| 957 | + void addAttention(@Query("uid") String uid, | |
| 958 | + @Query("friendId") String friendId, | |
| 959 | + Callback<ErrorMessage> callback); | |
| 960 | + | |
| 961 | + | |
| 962 | + /** | |
| 963 | + * 主播搜索接口 | |
| 964 | + * | |
| 965 | + * @param keywords | |
| 966 | + * @param uid | |
| 967 | + * @param callback | |
| 968 | + */ | |
| 969 | + @GET("/anchorInformation.html") | |
| 970 | + void getAnchorSearch(@Query("keywords") String keywords, | |
| 971 | + @Query("uid") String uid, | |
| 972 | + Callback<AnchorSearchAnswer> callback); | |
| 973 | + | |
| 974 | + | |
| 975 | + //http://app.shineup.com.cn/data/goldenline/interest.json 兴趣爱好 | |
| 976 | + @GET("/interest.json") | |
| 977 | + void getHobby(Callback<List<HobbyItem>> callback); | |
| 978 | + | |
| 979 | + | |
| 980 | + //http://app.shineup.com.cn/data/goldenline/anchorHot.json 热门推荐 | |
| 981 | + @GET("/anchorHot.json") | |
| 982 | + void getHotAnchor(Callback<List<AnchorSearchInfo>> callback); | |
| 983 | + | |
| 984 | + | |
| 985 | + /** | |
| 986 | + * 主播搜索接口 | |
| 987 | + * <p> | |
| 988 | + * http://120.131.13.185:8080/goldenline-portal-clt/whetherAttention.html?uid=201610180858260000000000000815&anchorId=201610171414070000000000000814&deviceid=353347060975834 | |
| 989 | + * 0是未关注,1是已关注 | |
| 990 | + */ | |
| 991 | + @GET("/whetherAttention.html") | |
| 992 | + void isAttention(@Query("uid") String uid, | |
| 993 | + @Query("anchorId") String anchorId, | |
| 994 | + Callback<ErrorMessage> callback); | |
| 995 | + | |
| 996 | + | |
| 997 | + /** | |
| 998 | + * 粉丝和关注 | |
| 999 | + * | |
| 1000 | + * @param uid | |
| 1001 | + * @param type | |
| 1002 | + * @param callback http://120.131.13.185:8080/goldenline-portal-clt/getAttentionAndFansList.html?uid=201610171414070000000000000814&type=attention | |
| 1003 | + */ | |
| 1004 | + @GET("/getAttentionAndFansList.html") | |
| 1005 | + void getFansOrAtten(@Query("uid") String uid, | |
| 1006 | + @Query("type") String type, | |
| 1007 | + Callback<FansAttenData> callback); | |
| 1008 | + | |
| 1009 | + | |
| 1010 | + @GET("/getUserContribution.html") | |
| 1011 | + void getUserGift(@Query("uid") String uid, | |
| 1012 | + @Query("beginCount") String beginCount, | |
| 1013 | + @Query("type") String type, | |
| 1014 | + Callback<List<GetSendGiftData>> callback); | |
| 1015 | + | |
| 1016 | + /** | |
| 1017 | + * 获取活动信息 | |
| 1018 | + */ | |
| 1019 | + @POST("/portal/actitvtyInfo/getActitvtyList") | |
| 1020 | + void getActivityInfo(@Body ActRequest request, Callback<Response> callback); | |
| 1021 | + | |
| 1022 | + | |
| 1023 | + /** | |
| 1024 | + * 投票 | |
| 1025 | + * | |
| 1026 | + * @param callback | |
| 1027 | + */ | |
| 1028 | + @GET("/vote") | |
| 1029 | + void voteRequst(Callback<ActDataBean> callback); | |
| 1030 | + | |
| 1031 | + @POST("/portal/banner/bannerInfo") | |
| 1032 | + void getBannerDatas(@Body BannerRequest request, Callback<BannerResponse> callback); | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + /** | |
| 1036 | + * 获取已经选座的座位信息 | |
| 1037 | + * | |
| 1038 | + * @param request request | |
| 1039 | + * @param callback callback | |
| 1040 | + */ | |
| 1041 | + @POST("/portal/chooseseat/getuserinfo") | |
| 1042 | + void getSelectedSeatInfo(@Body SeatsRequest request, Callback<SelectSeatResponse> callback); | |
| 1043 | + | |
| 1044 | + | |
| 1045 | + // 热搜页面 | |
| 1046 | + @POST("/portal/searchService/getHotTopic") | |
| 1047 | + void getHotSearchDates(@Body HotTopicSerch hotTopic, | |
| 1048 | + Callback<HotSerchBean> callback); | |
| 1049 | + | |
| 1050 | + | |
| 1051 | + // 关键词搜索 | |
| 1052 | + | |
| 1053 | + @POST("/portal/searchService/searchByKey") | |
| 1054 | + void getKeyWordSearchDates(@Body KeyWordSerch keyWordSerch, | |
| 1055 | + Callback<KeywordsearchBean> callback); | |
| 1056 | + | |
| 1057 | + | |
| 1058 | + @POST("/portal/vote/addVote") | |
| 1059 | + void getVotickDates(@Body VotickBean votickBean, Callback<VoteDate> callback); | |
| 1060 | + | |
| 1061 | + /** | |
| 1062 | + * 发现模块推荐页的编辑推荐 | |
| 1063 | + * | |
| 1064 | + * @param callback | |
| 1065 | + */ | |
| 1066 | + @POST("/portal/appTheatreService/getTheatreList") | |
| 1067 | + void getEditRecomend(@Body EditRecommendRequest request, Callback<EditRecomendBean> callback); | |
| 1068 | + | |
| 1069 | + | |
| 1070 | + /** | |
| 1071 | + * 发现模块剧院信息(上部) | |
| 1072 | + */ | |
| 1073 | + @POST("/portal/appTheatreService/getTheatre") | |
| 1074 | + void getTheatreTop(@Body TheatreRequest request, Callback<TheatreBean> callback); | |
| 1075 | + | |
| 1076 | + /** | |
| 1077 | + * 发现模块剧院列表(下部) | |
| 1078 | + */ | |
| 1079 | + @POST("/portal/appService/getVideoDemandByTheatre") | |
| 1080 | + void getTheatreList(@Body TheatreListRequest request, Callback<TheatreListResponse> callback); | |
| 1081 | + | |
| 1082 | + //交易记录 | |
| 1083 | + @POST("/portal/appRechargeService/getRecordList") | |
| 1084 | + void getRecordList(@Body RecordListRequestBean request, Callback<RecordListResponseBean> callback); | |
| 1085 | + | |
| 1086 | + //我的票 | |
| 1087 | + @POST("/portal/appMyOrderService/orderInfoList") | |
| 1088 | + void orderInfoList(@Body TicketListRequestBean request, Callback<TicketListResponseBean> callback); | |
| 1089 | + | |
| 1090 | + /** | |
| 1091 | + * 获取指定厅id的详情信息 | |
| 1092 | + * | |
| 1093 | + * @param request request | |
| 1094 | + * @param callback callback | |
| 1095 | + */ | |
| 1096 | + @POST("/portal/chooseseat/getareapeoplenumber") | |
| 1097 | + void getHallDetalisInfo(@Body HallDetalisRequest request, Callback<Response> callback); | |
| 1098 | + | |
| 1099 | + | |
| 1100 | + /** | |
| 1101 | + * 发现模块活动接口 | |
| 1102 | + * | |
| 1103 | + * @param callback | |
| 1104 | + */ | |
| 1105 | + @POST("/portal/appActivityService/getActivityHtmlList") | |
| 1106 | + void getFindAct(@Body FindActRequest request, Callback<FindActBean> callback); | |
| 1107 | + | |
| 1108 | + /** | |
| 1109 | + * 发现模块我的订阅中的订阅号接口 | |
| 1110 | + * | |
| 1111 | + * @param callback | |
| 1112 | + */ | |
| 1113 | + @POST("/portal/subscription/subscriptionList") | |
| 1114 | + void getFindSubscribe(@Body FindSubscribeRequest request, Callback<FindSubscribeBean> callback); | |
| 1115 | + | |
| 1116 | + /** | |
| 1117 | + * 打赏接口 | |
| 1118 | + */ | |
| 1119 | + @POST("/portal/awardandgift/save") | |
| 1120 | + void getAward(@Body AwardRequest request, Callback<AwardBean> callback); | |
| 1121 | + | |
| 1122 | + /** | |
| 1123 | + * 贡献榜接口 | |
| 1124 | + * | |
| 1125 | + * @param request | |
| 1126 | + * @param callback | |
| 1127 | + */ | |
| 1128 | + @POST("/portal/awardandgift/getusertop") | |
| 1129 | + void getusertop(@Body UserTopRequest request, | |
| 1130 | + Callback<ContributionPage> callback); | |
| 1131 | + | |
| 1132 | + //我的收藏列表 | |
| 1133 | + @POST("/portal/collection/collectionList") | |
| 1134 | + void collectionList(@Body CollectionListRequest request, Callback<CollectionListResponse> callback); | |
| 1135 | + | |
| 1136 | + /** | |
| 1137 | + * 订阅 | |
| 1138 | + */ | |
| 1139 | + @POST("/portal/subscription/subscription") | |
| 1140 | + void getSubscribe(@Body SubscribeRequest request, Callback<SubscribeBean> callback); | |
| 1141 | + | |
| 1142 | + /** | |
| 1143 | + * 取消订阅 | |
| 1144 | + */ | |
| 1145 | + @POST("/portal/subscription/cancelSubscription") | |
| 1146 | + void getCancelSubscribe(@Body CancelSubscribeRequest request, Callback<CancelSubscribeBean> callback); | |
| 1147 | + | |
| 1148 | + @POST("/portal/onlineNum/getOnlinePeoples") | |
| 1149 | + void fetchOnLineperson(@Body OnLinePeoplesRequest onLinePeoplesRequest, Callback<Response> callback); | |
| 1150 | + | |
| 1151 | + /** | |
| 1152 | + * 我的订阅--全部内容 | |
| 1153 | + */ | |
| 1154 | + @POST("/portal/appService/videoDemandList") | |
| 1155 | + void getAllSubscribe(@Body AllSubscribeRequest request, Callback<DianBoListResponse> callback); | |
| 1156 | + | |
| 1157 | + @POST("/portal/appLiveService/heavyLiveAll") | |
| 1158 | + void fetchAllSubscribeList(@Body AllSubscribeListRequest request ,Callback<AllSubscribeResponse> callback); | |
| 1159 | + | |
| 1160 | + @POST("/portal/appService/getVersion") | |
| 1161 | + void getVersion(@Body UpdateAppRequest request, Callback<UpdateAppResponse> callback); | |
| 1162 | + | |
| 1163 | +//获取信息列表的数据 | |
| 1164 | + @POST("/portal/appMessageService/getRecordList") | |
| 1165 | + void getUserMessage(@Body MessageRequestBean request, Callback<UserMessageBean> callback); | |
| 1166 | + | |
| 1167 | +} | |
| 0 | 1168 | \ No newline at end of file | ... | ... |
app/src/main/java/com/cnlive/goldenline/api/PayAPI.java
0 → 100644
| 1 | +++ a/app/src/main/java/com/cnlive/goldenline/api/PayAPI.java | |
| 1 | +package com.cnlive.goldenline.api; | |
| 2 | + | |
| 3 | +import com.cnlive.goldenline.ui.model.ErrorMessage; | |
| 4 | + | |
| 5 | +import retrofit.Callback; | |
| 6 | +import retrofit.http.GET; | |
| 7 | +import retrofit.http.Query; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * Created by zhangshuai on 2016-06-16. | |
| 11 | + */ | |
| 12 | +public interface PayAPI { | |
| 13 | + | |
| 14 | + /** | |
| 15 | + * 支付宝,未支付订单Json | |
| 16 | + **/ | |
| 17 | + @GET("/zGWpay.html") | |
| 18 | + void getPreOrder1(@Query("body") String body, //订单信息 | |
| 19 | + @Query("total_fee") String total_fee, //订单总价 | |
| 20 | + @Query("user_id") String user_id, //用户id | |
| 21 | + @Query("attach_uid") String attach_uid, //用户id | |
| 22 | + @Query("attach_type") String attach_type, //支付类型 0==充值套餐 , 1==充值金币 | |
| 23 | + @Query("attach_type_child") String attach_type_child, //套餐类型/金币数量 套餐id 1==25元套餐,2==68元套餐,3==138元套餐,4==248元套餐 | |
| 24 | + @Query("type") String type, | |
| 25 | + @Query("dm3") String dm3, | |
| 26 | + Callback<ErrorMessage> callback); | |
| 27 | + | |
| 28 | + /** | |
| 29 | + * 微信,未支付订单Json | |
| 30 | + */ | |
| 31 | + /*@GET("") | |
| 32 | + void getPreOrder2(@Query("body") String body, //订单信息 | |
| 33 | + @Query("total_free") int total_free, //订单总价 | |
| 34 | + @Query("attach.uid") String attach_uid, //用户id | |
| 35 | + @Query("attach.type") String attach_type, //支付类型 0==充值套餐 , 1==充值金币 | |
| 36 | + @Query("attach.child") String attach_type_child, //套餐类型/金币数量 套餐id 1==25元套餐,2==68元套餐,3==138元套餐,4==248元套餐 | |
| 37 | + Callback<String> callback);*/ | |
| 38 | + | |
| 39 | +} | ... | ... |
app/src/main/java/com/cnlive/goldenline/api/SdkAPI.java
0 → 100644
| 1 | +++ a/app/src/main/java/com/cnlive/goldenline/api/SdkAPI.java | |
| 1 | +package com.cnlive.goldenline.api; | |
| 2 | + | |
| 3 | +import com.cnlive.goldenline.model.SdkModel; | |
| 4 | + | |
| 5 | +import retrofit.Callback; | |
| 6 | +import retrofit.http.GET; | |
| 7 | +import retrofit.http.Query; | |
| 8 | + | |
| 9 | +/** | |
| 10 | + * Created by zhangshuai on 2016-12-12. | |
| 11 | + */ | |
| 12 | + | |
| 13 | +public interface SdkAPI { | |
| 14 | + | |
| 15 | + /* | |
| 16 | + * http://app.mijia.cnlive.com/api_v1/columnprograms.do?cid=zzsy_full | |
| 17 | + * */ | |
| 18 | + @GET("/columnprograms.do") | |
| 19 | + void getSdkData(@Query("cid") String cid, | |
| 20 | + Callback<SdkModel> callback); | |
| 21 | +} | ... | ... |
app/src/main/java/com/cnlive/goldenline/api/UserAPI.java
0 → 100644
| 1 | +++ a/app/src/main/java/com/cnlive/goldenline/api/UserAPI.java | |
| 1 | +package com.cnlive.goldenline.api; | |
| 2 | + | |
| 3 | +import com.cnlive.goldenline.model.User; | |
| 4 | +import com.cnlive.goldenline.model.mine.SyncUserRequestBean; | |
| 5 | +import com.cnlive.goldenline.model.mine.UpdateGoldBalanceBean; | |
| 6 | +import com.cnlive.goldenline.model.mine.UpdateGoldRequestBean; | |
| 7 | +import com.cnlive.goldenline.ui.model.ErrorMessage; | |
| 8 | + | |
| 9 | +import retrofit.Callback; | |
| 10 | +import retrofit.http.Body; | |
| 11 | +import retrofit.http.GET; | |
| 12 | +import retrofit.http.POST; | |
| 13 | +import retrofit.http.Query; | |
| 14 | + | |
| 15 | +/** | |
| 16 | + * Created by vclub on 15/10/4. | |
| 17 | + */ | |
| 18 | +public interface UserAPI { | |
| 19 | + /** | |
| 20 | + * 扫码关注好友信息 | |
| 21 | + * | |
| 22 | + * @param uid | |
| 23 | + */ | |
| 24 | + //TODO 不知道此功能是否还有 | |
| 25 | + @GET("/addFriend.html") | |
| 26 | + void addFriends(@Query("uid") String uid, | |
| 27 | + @Query("friendId") String friendId, | |
| 28 | + Callback<ErrorMessage> callback); | |
| 29 | + | |
| 30 | + //登录后同步用户其他信息 | |
| 31 | + @POST("/portal/userInfo/syncUserById") | |
| 32 | + void syncUserById(@Body SyncUserRequestBean request , Callback<User> callback); | |
| 33 | + //查询金币 | |
| 34 | + @POST("/portal/userInfo/getUsersInfo") | |
| 35 | + void getUsersInfo(@Body UpdateGoldRequestBean request , Callback<UpdateGoldBalanceBean> callback); | |
| 36 | + | |
| 37 | +} | ... | ... |