package com.github.hunter0x7c7.sync.model.data.source; /** * ================================================================ *
* 版 权: Hunter(c)2020 *
* 作 者: Hunter *
* 版 本: V1.0 *
* 创建日期: 2020/7/31 15:35 *
* 描 述:缓存数据源 *
*
* 修订历史: *
* ================================================================ */ public interface CacheDataSource { /** * 获取主机 */ String getCacheHost(); /** * 保存主机 */ void cacheHost(String host); /** * 获取用户名 */ String getCacheUsername(); /** * 获取用户昵称 */ String getCacheNickname(); /** * 获取用户ID */ int getUid(); /** * 获取加密的密码 */ String getEncryptPassword(); /** * 获取加密的密码 */ String getEncryptPassword(String password); /** * 获取App当前版本号 */ int getVersionCode(); /** * 判断是否为旧版本系统 */ boolean isOldSystem(); /** * 设置为旧版本系统 */ void setOldSystem(boolean isOld); /** * 清除缓存中的用户信息 */ void clearCacheUserInfo(); }