This repository has been archived by the owner on Oct 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
33d83c5
commit 3f8d457
Showing
16 changed files
with
106 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,5 @@ default String getFlag(){ | |
return getId(); | ||
} | ||
|
||
|
||
} |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,15 @@ | ||
package com.forte.qqrobot.beans.messages.result; | ||
|
||
import com.forte.qqrobot.beans.messages.GroupCodeAble; | ||
|
||
import java.util.Map; | ||
|
||
/** | ||
* 群详细信息 | ||
* @author ForteScarlet <[163邮箱地址][email protected]> | ||
* @since JDK1.8 | ||
**/ | ||
public interface GroupInfo extends InfoResult { | ||
public interface GroupInfo extends InfoResult, GroupCodeAble { | ||
|
||
/** 群等级 */ | ||
Integer getLevel(); | ||
|
@@ -60,4 +62,10 @@ default String getHeadUrl(){ | |
return "http://p.qlogo.cn/gh/"+ groupCode +"/"+ groupCode +"/640"; | ||
} | ||
|
||
|
||
@Override | ||
default String getGroupCode(){ | ||
return getCode(); | ||
} | ||
|
||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
package com.forte.qqrobot.beans.messages.result; | ||
|
||
import com.forte.qqrobot.beans.messages.CodesAble; | ||
import com.forte.qqrobot.beans.messages.types.PowerType; | ||
import com.forte.qqrobot.beans.messages.types.SexType; | ||
|
||
|
@@ -8,7 +9,7 @@ | |
* @author ForteScarlet <[163邮箱地址][email protected]> | ||
* @since JDK1.8 | ||
**/ | ||
public interface GroupMemberInfo extends InfoResult { | ||
public interface GroupMemberInfo extends InfoResult, CodesAble { | ||
|
||
/** 获取群号 */ | ||
String getCode(); | ||
|
@@ -62,4 +63,14 @@ default String getNickOrName(){ | |
/** 禁言剩余时间 */ | ||
Long getBanTime(); | ||
|
||
|
||
@Override | ||
default String getGroupCode(){ | ||
return getCode(); | ||
} | ||
|
||
@Override | ||
default String getQQCode() { | ||
return getQQ(); | ||
} | ||
} |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
package com.forte.qqrobot.beans.messages.result; | ||
|
||
import com.forte.qqrobot.beans.messages.QQCodeAble; | ||
|
||
/** | ||
* 登录的QQ的信息 | ||
* | ||
* @author ForteScarlet <[163邮箱地址][email protected]> | ||
* @since JDK1.8 | ||
**/ | ||
public interface LoginQQInfo extends InfoResult { | ||
public interface LoginQQInfo extends InfoResult, QQCodeAble { | ||
|
||
/** | ||
* 昵称 | ||
|
@@ -20,12 +22,12 @@ public interface LoginQQInfo extends InfoResult { | |
*/ | ||
String getQQ(); | ||
|
||
/** | ||
* 将会取代方法:getQQ() | ||
*/ | ||
default String getCode() { | ||
return getQQ(); | ||
} | ||
// /** | ||
// * 将会取代方法:getQQ() | ||
// */ | ||
// default String getCode() { | ||
// return getQQ(); | ||
// } | ||
|
||
|
||
/** | ||
|
@@ -39,6 +41,11 @@ default String getHeadUrl() { | |
} | ||
} | ||
|
||
@Override | ||
default String getQQCode() { | ||
return getQQ(); | ||
} | ||
|
||
/** | ||
* 等级 | ||
*/ | ||
|
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
package com.forte.qqrobot.beans.messages.result; | ||
|
||
import com.forte.qqrobot.beans.messages.QQCodeAble; | ||
import com.forte.qqrobot.beans.messages.types.SexType; | ||
|
||
/** | ||
|
@@ -8,7 +9,7 @@ | |
* @author ForteScarlet <[163邮箱地址][email protected]> | ||
* @since JDK1.8 | ||
**/ | ||
public interface StrangerInfo extends InfoResult { | ||
public interface StrangerInfo extends InfoResult, QQCodeAble { | ||
|
||
/** QQ号 */ | ||
String getQQ(); | ||
|
@@ -17,14 +18,19 @@ public interface StrangerInfo extends InfoResult { | |
/** 年龄 */ | ||
Integer getAge(); | ||
/** 头像地址 */ | ||
String headUrl(); | ||
default String headUrl(){ | ||
return getQQHeadUrl(); | ||
} | ||
/** 等级 */ | ||
Integer getLevel(); | ||
|
||
/** 获取名称(昵称) */ | ||
String getName(); | ||
|
||
|
||
@Override | ||
default String getQQCode() { | ||
return getQQ(); | ||
} | ||
|
||
|
||
|
||
|
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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