Open
Conversation
update pom.xml add onLougout event
2. 暂时完成stateswitch
2. 添加一些错误处理
Member
|
Good job, you are very fast! I believe this PR should link to our SoC at wechaty/summer#4 |
diaozxin007
reviewed
Jul 20, 2020
| } | ||
|
|
||
| fun removeEventListener(type: StateEnum, listener: StateSwitchListener) { | ||
| super.removeListener(type, object : Listener { |
diaozxin007
reviewed
Jul 20, 2020
|
|
||
| } | ||
| // get the current on state | ||
| fun on(): String { |
Author
There was a problem hiding this comment.
原本是返回枚举的,后来我感觉返回字符串更直观,但是返回枚举确实用起来更简单
2. 完善stateswitch的测试 3. 将stateswitch的name属性作为构造函数
2. Message.kt添加date,forward等方法 3. 添加say方法 4. 还未测试
2. Message.kt添加age方法 3. MemoryCard.kt添加getName()fangfa
2. Contact添加获取信息的方法 3. Room添加member方法 4. Wechaty添加say和onReady事件 5. WechatyListener修改FriendShiplistener参数 6.
Author
|
没测试过的好像都是测试类,好像是因为我有本地文件和obs的连接配置所以ci的时候过不了 |
2. 添加messageQueryFilterFactory方法,新增相关的typealias
diaozxin007
previously approved these changes
Oct 18, 2020
| this.name = "default" | ||
| _options.name = "default" | ||
| } | ||
| this.options = _options |
Author
|
好的,这个好像是刚开始写kotlin的时候写的
…------------------ 原始邮件 ------------------
发件人: "犀利豆"<notifications@github.com>;
发送时间: 2020年10月18日(星期天) 晚上8:57
收件人: "wechaty/java-wechaty"<java-wechaty@noreply.github.com>;
抄送: "."<1184016190@qq.com>; "State change"<state_change@noreply.github.com>;
主题: Re: [wechaty/java-wechaty] memory-card and stateswitch (#64)
@diaozxin007 approved this pull request.
In wechaty-puppet/src/main/kotlin/io/github/wechaty/memorycard/MemoryCard.kt:
> + val _options: MemoryCardOptions = options ?: MemoryCardOptions() + log.info("MemoryCard, constructor({})", JsonUtils.write(_options)) + + if(name != null) { + _options.name = name + } + + else if (_options.name != null) { + this.name = _options.name + } + else { + // 如果没有给名字就用一个default作为名字 + this.name = "default" + _options.name = "default" + } + this.options = _options
!的写法可以更 koltin 一些
—
You are receiving this because you modified the open/close state.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
完成了memory-card和stateswitch