1 Star 0 Fork 0

打怪机器人 / PowerRkLibrary

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
This repository doesn't specify license. Without author's permission, this code is only for learning and cannot be used for other purposes.
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.en.md

PowerRkLibrary

Description

{When you're done, you can delete the content in this README and update the file with details for others getting started with your repository}

Software Architecture

Software architecture description

Installation

  1. xxxx
  2. xxxx
  3. xxxx

Instructions

1:日志操作类 PowerDbManager powerDbManager 1.1 清空数据 powerDbManager.clearAllTimeLogDb();

1.2 查询日志操作类 List borOrders = powerDbManager.getDbLogList();

2:定时开关机操作数据库以及设置方法 2.1 增加数据库 TimeLocalEntity timeLocalEntity = new TimeLocalEntity(id, onTime, offTime, "true", "true", "true", "true", "true", "true", "true"); boolean isSave = powerDbManager.addTimerDb(timeLocalEntity);

2.2:设置系统定时开关机
PowerOnOffUtil powerOnOffUtil = new PowerOnOffUtil(OrderActivity.this);
powerOnOffUtil.changePowerOnOffByWorkModel(powerDbManager);

2.3:修改数据库
  TimeLocalEntity timeNew = new TimeLocalEntity("1606189497543", "9:30", "16:00", "true", "true", "true", "true", "true", "true", "true");
  powerDbManager.updateTimeById(timeNew);

2.4:删除某一项数据
  String delId = "1606188290870";
  powerDbManager.delTimerById(delId);

2.5:查询全部数据库
  List<TimeLocalEntity> borOrders = powerDbManager.queryTimerList();

2.6:获取某一项数据
String timeId ="123456";
TimeLocalEntity timeEntity = powerDbManager.getTimeById(timeId)

1:获取下一次的开关机时间 String onTime = PowerOnOffUtil.getPowerOnTime(PowerOnOffLocalActivity.this); String offTime = PowerOnOffUtil.getPowerOffTime(PowerOnOffLocalActivity.this); MyLog.e("PowerOnOff", "======onTime:" + onTime); MyLog.e("PowerOnOff", "======offTime:" + offTime);

Contribution

  1. Fork the repository
  2. Create Feat_xxx branch
  3. Commit your code
  4. Create Pull Request

Gitee Feature

  1. You can use Readme_XXX.md to support different languages, such as Readme_en.md, Readme_zh.md
  2. Gitee blog blog.gitee.com
  3. Explore open source project https://gitee.com/explore
  4. The most valuable open source project GVP
  5. The manual of Gitee https://gitee.com/help
  6. The most popular members https://gitee.com/gitee-stars/

Comments ( 0 )

Sign in for post a comment

About

No description spread retract
Cancel

Releases (4)

All

Contributors

All

Activities

load more
can not load any more
1
https://gitee.com/shotter/power-rk-library.git
git@gitee.com:shotter/power-rk-library.git
shotter
power-rk-library
PowerRkLibrary
master

Search

103611 48b8ff67 1899542 103622 4d02230c 1899542