Hunter0x7c7
2023-08-11 198dd6e1b210758867eed417bf6e00ba733d47c0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
package com.github.hunter0x7c7.sync.model.data.source;
 
/**
 * ================================================================
 * <p>
 * 版    权: Hunter(c)2020
 * <p>
 * 作    者: Hunter
 * <p>
 * 版    本: V1.0
 * <p>
 * 创建日期: 2020/7/31 15:35
 * <p>
 * 描    述:缓存数据源
 * <p>
 * <p>
 * 修订历史:
 * <p>
 * ================================================================
 */
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();
}