package com.github.hunter0x7c7.sync.model.data.source.local; import com.github.hunter0x7c7.sync.model.data.source.LocalDataSource; /** * ================================================================ *
* 版 权: Hunter(c)2020 *
* 作 者: Hunter *
* 版 本: V1.0 *
* 创建日期: 2020/7/30 16:19 *
* 描 述:本地数据源 *
*
* 修订历史: *
* ================================================================ */ public class LocalDataSourceImpl implements LocalDataSource { private volatile static LocalDataSourceImpl sInstance = null; public static LocalDataSourceImpl getInstance() { if (sInstance == null) { synchronized (LocalDataSourceImpl.class) { if (sInstance == null) { sInstance = new LocalDataSourceImpl(); } } } return sInstance; } @Override public int getAgreePrivacyPolicy() { return 0; } @Override public void setAgreePrivacyPolicy(int verCode) { } @Override public int getGuideVersionCode() { return 0; } @Override public void setGuideVersionCode(int verCode) { } @Override public String getLocalHost() { return null; } @Override public void saveHost(String host) { } }