Skip to content
This repository has been archived by the owner on Aug 12, 2024. It is now read-only.

Commit

Permalink
fix: move gpro api #346
Browse files Browse the repository at this point in the history
  • Loading branch information
fuqiuluo committed Jul 24, 2024
1 parent cf01a25 commit 609e87d
Show file tree
Hide file tree
Showing 35 changed files with 262 additions and 71 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.tencent.mobileqq.qqguildsdk.api.impl;

import com.tencent.qqnt.kernelgpro.nativeinterface.IKernelGuildService;

public class GProSessionImpl {
public IKernelGuildService getGuildService() {
return null;
}


}
Original file line number Diff line number Diff line change
@@ -1,20 +1,12 @@
package com.tencent.mobileqq.qqguildsdk.data;

import android.text.TextUtils;

import com.tencent.mobileqq.qqguildsdk.data.genc.GGProMedalInfo;
import com.tencent.mobileqq.qqguildsdk.data.genc.GGProNavigationInfo;
import com.tencent.mobileqq.qqguildsdk.data.genc.IGProMedalInfo;
import com.tencent.mobileqq.qqguildsdk.data.genc.IGProNavigationInfo;
import com.tencent.qqnt.kernel.nativeinterface.GProGuild;
import com.tencent.qqnt.kernel.nativeinterface.GProGuildSpeakableThreshold;
import com.tencent.qqnt.kernel.nativeinterface.GProMedalInfo;
import com.tencent.qqnt.kernel.nativeinterface.GProNavigationInfo;
import com.tencent.qqnt.kernelgpro.nativeinterface.GProGuild;

import org.jetbrains.annotations.NotNull;

import java.util.ArrayList;
import java.util.Iterator;


public class GProGuildInfo implements IGProGuildInfo {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import androidx.annotation.NonNull;

import com.tencent.qqnt.kernel.nativeinterface.GProGuildRole;
import com.tencent.qqnt.kernelgpro.nativeinterface.GProGuildRole;

import java.util.ArrayList;
import java.util.Iterator;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.tencent.mobileqq.qqguildsdk.data;

import com.tencent.qqnt.kernel.nativeinterface.GProGuildRole;
import com.tencent.qqnt.kernelgpro.nativeinterface.GProGuildRole;
import com.tencent.qqnt.kernel.nativeinterface.GProUser;

import java.util.ArrayList;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,9 @@
package com.tencent.mobileqq.qqguildsdk.data.genc;

import com.tencent.mobileqq.qqguildsdk.data.GProGuildRoleInfo;
import com.tencent.mobileqq.qqguildsdk.data.GProUserInfo;
import com.tencent.mobileqq.qqguildsdk.data.IGProGuildRoleInfo;
import com.tencent.mobileqq.qqguildsdk.data.IGProUserInfo;
import com.tencent.qqnt.kernel.nativeinterface.GProGuildRole;
import com.tencent.qqnt.kernel.nativeinterface.GProUser;

import java.util.ArrayList;
import java.util.Iterator;

public class GGProGuildMemberSearchResult implements IGProGuildMemberSearchResult {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.tencent.qqnt.kernel.nativeinterface;

import com.tencent.qqnt.kernelgpro.nativeinterface.GProGuild;

public final class GProJoinGuildResult {
GProGuild guildInfo;
GProGuildInit guildInit;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.tencent.qqnt.kernel.nativeinterface;

import com.tencent.qqnt.kernelgpro.nativeinterface.GProGuild;

import java.io.Serializable;

public final class GProJoinGuildsResult implements Serializable {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.tencent.qqnt.kernel.nativeinterface;

import com.tencent.qqnt.kernelgpro.nativeinterface.GProGuildRole;

import java.util.ArrayList;

public final class GProRoleMemberList {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.tencent.qqnt.kernel.nativeinterface;

import com.tencent.qqnt.kernelgpro.nativeinterface.GProGuildRole;

import java.util.ArrayList;

public final class GProSearchMemberAndRoleResult {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.tencent.qqnt.kernel.nativeinterface;

import com.tencent.qqnt.kernelgpro.nativeinterface.GProGuildRole;

import java.util.ArrayList;

public interface IGProFetchChannelInvisibleRoleListCallback {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.tencent.qqnt.kernel.nativeinterface;

import com.tencent.qqnt.kernelgpro.nativeinterface.GProGuildRole;

import java.util.ArrayList;

public interface IGProFetchChannelLiveableRoleListCallback {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.tencent.qqnt.kernel.nativeinterface;

import com.tencent.qqnt.kernelgpro.nativeinterface.GProGuild;

public interface IGProFetchGuildInfoCallback {
void onFetchGuildInfo(int code, String reason, GProGuild gProGuild);
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
package com.tencent.qqnt.kernel.nativeinterface;

import com.tencent.qqnt.kernelgpro.nativeinterface.GProGuild;

import java.util.ArrayList;

public interface IGProFetchGuildListCallback {
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
package com.tencent.qqnt.kernel.nativeinterface;

import com.tencent.qqnt.kernelgpro.nativeinterface.GProGuild;
import com.tencent.qqnt.kernelgpro.nativeinterface.GProGuildRole;

import java.util.ArrayList;
import java.util.HashMap;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
package com.tencent.qqnt.kernel.nativeinterface;

import com.tencent.qqnt.kernelgpro.nativeinterface.GProGuild;
import com.tencent.qqnt.kernelgpro.nativeinterface.GProRoleCreateInfo;
import com.tencent.qqnt.kernelgpro.nativeinterface.IGProCreateRoleCallback;
import com.tencent.qqnt.kernelgpro.nativeinterface.IGProFetchMemberListWithRoleCallback;
import com.tencent.qqnt.kernelgpro.nativeinterface.IGProFetchMemberRolesCallback;
import com.tencent.qqnt.kernelgpro.nativeinterface.IGProFetchRoleListPermissionCallback;
import com.tencent.qqnt.kernelgpro.nativeinterface.IGProFetchRolePermissionCallback;
import com.tencent.qqnt.kernelgpro.nativeinterface.IGProResultCallback;

import java.util.ArrayList;

public interface IKernelGuildService {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ public ArrayList<String> getCacheErrLog() {
return null;
}

@Override
public IKernelGuildService getGuildService() {
return null;
}

@Override
public IKernelMsgService getMsgService() {
return null;
Expand Down Expand Up @@ -93,7 +88,7 @@ public String startNT() {

//IKernelGroupService getGroupService();

IKernelGuildService getGuildService();
//IKernelGuildService getGuildService();

IKernelMsgService getMsgService();

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
package com.tencent.qqnt.kernel.nativeinterface;
package com.tencent.qqnt.kernelgpro.nativeinterface;

import com.tencent.qqnt.kernel.nativeinterface.GProCmdUinInfo;
import com.tencent.qqnt.kernel.nativeinterface.GProGuildInfo;

import java.io.Serializable;
import java.util.ArrayList;

public final class GProGuild implements Serializable {
GProCmdUinInfo cmdUinInfo;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package com.tencent.qqnt.kernel.nativeinterface;
package com.tencent.qqnt.kernelgpro.nativeinterface;

import com.tencent.qqnt.kernel.nativeinterface.GProRolePermission;

import java.util.ArrayList;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package com.tencent.qqnt.kernel.nativeinterface;
package com.tencent.qqnt.kernelgpro.nativeinterface;

import com.tencent.qqnt.kernel.nativeinterface.GProRolePermission;

public final class GProRoleCreateInfo {
boolean bHoist;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package com.tencent.qqnt.kernel.nativeinterface;
package com.tencent.qqnt.kernelgpro.nativeinterface;

import com.tencent.qqnt.kernel.nativeinterface.GProSecurityResult;

public interface IGProCreateRoleCallback {
void onCreateRoleResult(int code, String msg, GProSecurityResult result, GProGuildRole role);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package com.tencent.qqnt.kernel.nativeinterface;
package com.tencent.qqnt.kernelgpro.nativeinterface;

import com.tencent.qqnt.kernel.nativeinterface.GProRoleMemberList;

import java.util.ArrayList;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.tencent.qqnt.kernel.nativeinterface;
package com.tencent.qqnt.kernelgpro.nativeinterface;

import java.util.ArrayList;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.tencent.qqnt.kernel.nativeinterface;
package com.tencent.qqnt.kernelgpro.nativeinterface;

import java.util.ArrayList;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
package com.tencent.qqnt.kernel.nativeinterface;
package com.tencent.qqnt.kernelgpro.nativeinterface;

import com.tencent.qqnt.kernel.nativeinterface.GProRolePermission;
import com.tencent.qqnt.kernel.nativeinterface.GProRolePermissionCategory;
import com.tencent.qqnt.kernel.nativeinterface.GProRolePermissionDesc;

import java.util.ArrayList;

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package com.tencent.qqnt.kernelgpro.nativeinterface;

import com.tencent.qqnt.kernel.nativeinterface.GProSecurityResult;

public interface IGProResultCallback {
void onResult(int code, String msg, GProSecurityResult result);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
package com.tencent.qqnt.kernelgpro.nativeinterface;

import com.tencent.qqnt.kernel.nativeinterface.GProFaceAuthInfo;
import com.tencent.qqnt.kernel.nativeinterface.GProGuildReqInfo;
import com.tencent.qqnt.kernel.nativeinterface.GProSimpleProfile;
import com.tencent.qqnt.kernel.nativeinterface.IGProAddGuildInfoCallBack;
import com.tencent.qqnt.kernel.nativeinterface.IGProFetchChannelInvisibleRoleListCallback;
import com.tencent.qqnt.kernel.nativeinterface.IGProFetchChannelLiveableRoleListCallback;
import com.tencent.qqnt.kernel.nativeinterface.IGProFetchGuildInfoCallback;
import com.tencent.qqnt.kernel.nativeinterface.IGProFetchGuildListCallback;
import com.tencent.qqnt.kernel.nativeinterface.IGProFetchRetentionGuildListCallback;
import com.tencent.qqnt.kernel.nativeinterface.IGProFetchUserJoinedGuildListCallback;
import com.tencent.qqnt.kernel.nativeinterface.IGProGetMemberInfoByOpenIdCallback;
import com.tencent.qqnt.kernel.nativeinterface.IGProGetUserInfoCallback;
import com.tencent.qqnt.kernel.nativeinterface.IKernelGuildListener;

import java.util.ArrayList;

public interface IKernelGuildService {
void refreshGuildList(boolean isForced); // 只刷新id,详细信息需要额外获取

//ArrayList<GProQQMsgListGuild> getQQMsgListGuilds(); 啥也拿不到

void fetchGuildList(ArrayList<GProGuildReqInfo> reqInfos, byte[] cookie, int i2, IGProFetchGuildListCallback iGProFetchGuildListCallback);

void fetchRetentionGuildList(int i2, int i3, byte[] cookie, long j2, IGProFetchRetentionGuildListCallback iGProFetchRetentionGuildListCallback);

void fetchUserJoinedGuildList(long guildId, long tinyId, String cookie, IGProFetchUserJoinedGuildListCallback cb);

void addKernelGuildListener(IKernelGuildListener iKernelGuildListener);

void GetMemberInfoByOpenId(String str, long j2, boolean z, boolean z2, IGProGetMemberInfoByOpenIdCallback iGProGetMemberInfoByOpenIdCallback);

ArrayList<GProGuild> getGroupGuildListFromCache();

ArrayList<GProGuild> getGuildListFromCache();

void fetchAddGuildInfo(int appId, long guildId, IGProAddGuildInfoCallBack iGProAddGuildInfoCallBack);

void fetchGuildInfo(long guildId, int seq, IGProFetchGuildInfoCallback iGProFetchGuildInfoCallback);

//void fetchGuildInfoByAppIdentity(GProGuildIdentity gProGuildIdentity, String str, String str2, IGProFetchGuildInfoByAppIdentityCallback iGProFetchGuildInfoByAppIdentityCallback);

void fetchGuildInfoForGuest(long guildId, int seq, IGProFetchGuildInfoCallback cb);

//void fetchGuestGuildInfoWithChannelList(String guildId, String str2, int i2, int seq, String str3,
// IGProFetchGuestGuildInfoWithChannelListCallback iGProFetchGuestGuildInfoWithChannelListCallback);

GProGuild getGuildInfoFromCache(long guildId);

// 第一次请求: startIndex = 0 , roleIdIndex = 2
void fetchMemberListWithRole(long guildId, long channelId, long startIndex, long roleIndex, int count, int seq, IGProFetchMemberListWithRoleCallback cb);

void refreshGuildInfo(long guildId, boolean force, int seq);

void refreshGuildInfoOnly(long j2, boolean z, int i2);

void refreshGuildUserProfileInfo(long guildId, long tinyId, int seq);

void fetchUserInfo(long guildId, long channelId, ArrayList<Long> tinyIdList, int seq, IGProGetUserInfoCallback cb);

//@Deprecated(since = "QQ新版本不支持创建话题子频道")
//void fetchTopFeeds(long guildId, long channelId, IGProFetchTopFeedsCallback cb);

void fetchChannelInvisibleRoleList(long guildId, long channelId, IGProFetchChannelInvisibleRoleListCallback cb);

void fetchChannelLiveableRoleList(long guildId, long channelId, IGProFetchChannelLiveableRoleListCallback cb);

void fetchMemberRoles(long guildId, long channelId, long tinyId, int seq, IGProFetchMemberRolesCallback cb);

void fetchRoleListWithPermission(long guildId, int seq, IGProFetchRoleListPermissionCallback cb);

void fetchRoleWithPermission(long guildId, long roleId, int seq, IGProFetchRolePermissionCallback cb);

GProSimpleProfile getSimpleProfile(long guildId, long tinyId, int seq);

GProFaceAuthInfo getFaceAuthInfo();

String getGuildUserAvatarUrl(long guildId, long tinyId, int seq);

String getGuildUserNickname(long guildId);

void deleteRole(long guild, long role, IGProResultCallback cb);

void setMemberRoles(long guild, long u1, long u2, long tinyId, ArrayList<Long> addRoles, ArrayList<Long> removeRoles, IGProResultCallback cb);

void setRoleInfo(long guild, long role, GProRoleCreateInfo info, IGProResultCallback cb);

void createRole(long guildId, GProRoleCreateInfo info, ArrayList<Long> initialUsers, IGProCreateRoleCallback cb);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.tencent.qqnt.kernelgpro.nativeinterface;

public interface IQQGProWrapperSession {
IKernelGuildService getGuildService();

static class CppProxy {
public static native IQQGProWrapperSession getGProWrapperSession(String str);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package com.tencent.qqnt.ntstartup.nativeinterface;

import java.util.HashMap;

public interface IQQNTStartupSessionWrapper {
HashMap<String, String> getSessionIdList();

int start();

int stop();
}
Loading

0 comments on commit 609e87d

Please sign in to comment.