Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

memory-card and stateswitch #64

Open
wants to merge 49 commits into
base: master
Choose a base branch
from
Open

Conversation

LuSingTea
Copy link

完成了memory-card和stateswitch

@LuSingTea LuSingTea requested a review from a team as a code owner July 19, 2020 11:09
@CLAassistant
Copy link

CLAassistant commented Jul 19, 2020

CLA assistant check
All committers have signed the CLA.

@LuSingTea LuSingTea closed this Jul 19, 2020
@LuSingTea LuSingTea reopened this Jul 19, 2020
@huan
Copy link
Member

huan commented Jul 20, 2020

Good job, you are very fast!

I believe this PR should link to our SoC at wechaty/summer#4


fun removeEventListener(type: StateEnum, listener: StateSwitchListener) {
super.removeListener(type, object : Listener {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

直接把 listener 传入就可以了


}
// get the current on state
fun on(): String {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

返回枚举,方便调用方使用

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

原本是返回枚举的,后来我感觉返回字符串更直观,但是返回枚举确实用起来更简单

@LuSingTea
Copy link
Author

没测试过的好像都是测试类,好像是因为我有本地文件和obs的连接配置所以ci的时候过不了

diaozxin007
diaozxin007 previously approved these changes Oct 18, 2020
this.name = "default"
_options.name = "default"
}
this.options = _options
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

!的写法可以更 koltin 一些

@LuSingTea
Copy link
Author

LuSingTea commented Oct 18, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants