This repository has been archived by the owner on Aug 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 199
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shamrock
: support requestUploadGroupPic
Signed-off-by: 白池 <[email protected]>
- Loading branch information
1 parent
68ea62e
commit 7203131
Showing
23 changed files
with
627 additions
and
313 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
63 changes: 63 additions & 0 deletions
63
protobuf/src/main/java/protobuf/oidb/cmd0x388/Cmd0x388Req.kt
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 |
---|---|---|
@@ -0,0 +1,63 @@ | ||
package protobuf.oidb.cmd0x388 | ||
|
||
import com.google.protobuf.Internal.EMPTY_BYTE_ARRAY | ||
import kotlinx.serialization.Serializable | ||
import kotlinx.serialization.protobuf.ProtoNumber | ||
import moe.fuqiuluo.symbols.Protobuf | ||
|
||
@Serializable | ||
data class Cmd0x388ReqBody( | ||
@ProtoNumber(1) var netType: Int = 0, | ||
@ProtoNumber(2) var subCmd: Int = 0, | ||
@ProtoNumber(3) var msgTryUpImg: ArrayList<TryUpImgReq>? = null, | ||
// @ProtoNumber(4) var rpt_msg_getimg_url_req: ArrayList<GetImgUrlReq>? = null, | ||
@ProtoNumber(5) var msgTryUpPttReq: ArrayList<TryUpPttReq>? = null, | ||
// @ProtoNumber(6) var msgGetPttUrlReq: ArrayList<GetPttUrlReq>? = null, | ||
@ProtoNumber(7) var commandId: Int = 0, | ||
// @ProtoNumber(8) var rpt_msg_del_img_req: ArrayList<DelImgReq>? = null, | ||
@ProtoNumber(1001) var extension: ByteArray = EMPTY_BYTE_ARRAY, | ||
): Protobuf<Cmd0x388ReqBody> | ||
|
||
@Serializable | ||
data class TryUpImgReq( | ||
@ProtoNumber(1) var groupCode: Long = 0, | ||
@ProtoNumber(2) var srcUin: Long = 0, | ||
@ProtoNumber(3) var fileId: Long? = null, | ||
@ProtoNumber(4) var fileMd5: ByteArray = EMPTY_BYTE_ARRAY, | ||
@ProtoNumber(5) var fileSize: Long = 0, | ||
@ProtoNumber(6) var fileName: String = "", | ||
@ProtoNumber(7) var srcTerm: Int = 0, | ||
@ProtoNumber(8) var platformType: Int = 0, | ||
@ProtoNumber(9) var buType: Int = 0, | ||
@ProtoNumber(10) var picWidth: Int = 0, | ||
@ProtoNumber(11) var picHeight: Int = 0, | ||
@ProtoNumber(12) var picType: Int = 0, | ||
@ProtoNumber(13) var buildVer: String = "", | ||
@ProtoNumber(14) var innerIp: Int = 0, | ||
@ProtoNumber(15) var appPicType: Int = 0, | ||
@ProtoNumber(16) var originalPic: Int = 0, | ||
@ProtoNumber(17) var fileIndex: ByteArray = EMPTY_BYTE_ARRAY, | ||
@ProtoNumber(18) var dstUin: Long = 0, | ||
@ProtoNumber(19) var srvUpload: Int? = null, | ||
@ProtoNumber(20) var transferUrl: ByteArray = EMPTY_BYTE_ARRAY, | ||
) | ||
|
||
@Serializable | ||
data class TryUpPttReq( | ||
@ProtoNumber(1) var groupCode: Long = 0, | ||
@ProtoNumber(2) var srcUin: Long = 0, | ||
@ProtoNumber(3) var fileId: Long = 0, | ||
@ProtoNumber(4) var fileMd5: ByteArray = EMPTY_BYTE_ARRAY, | ||
@ProtoNumber(5) var fileSize: Long = 0, | ||
@ProtoNumber(6) var fileName: ByteArray = EMPTY_BYTE_ARRAY, | ||
@ProtoNumber(7) var srcTerm: Int = 0, | ||
@ProtoNumber(8) var platformType: Int = 0, | ||
@ProtoNumber(9) var buType: Int = 0, | ||
@ProtoNumber(10) var buildVer: ByteArray = EMPTY_BYTE_ARRAY, | ||
@ProtoNumber(11) var innerIp: Int = 0, | ||
@ProtoNumber(12) var voiceLength: Int = 0, | ||
@ProtoNumber(13) var newUpChan: Boolean = false, | ||
@ProtoNumber(14) var codec: Int = 0, | ||
@ProtoNumber(15) var voiceType: Int = 0, | ||
@ProtoNumber(16) var buId: Int = 0, | ||
) |
78 changes: 78 additions & 0 deletions
78
protobuf/src/main/java/protobuf/oidb/cmd0x388/Cmd0x388Rsp.kt
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
@file:OptIn(ExperimentalSerializationApi::class) | ||
|
||
package protobuf.oidb.cmd0x388 | ||
|
||
import com.google.protobuf.Internal.EMPTY_BYTE_ARRAY | ||
import kotlinx.serialization.ExperimentalSerializationApi | ||
import kotlinx.serialization.Serializable | ||
import kotlinx.serialization.protobuf.ProtoNumber | ||
import moe.fuqiuluo.symbols.Protobuf | ||
|
||
@Serializable | ||
data class Cmd0x388RspBody( | ||
@ProtoNumber(1) var clientIp: UInt = 0u, | ||
@ProtoNumber(2) var subCmd: UInt = 0u, | ||
@ProtoNumber(3) var msgTryUpImgRsp: ArrayList<TryUpImgRsp>? = null, | ||
@ProtoNumber(5) var msgTryUpPttRsp: ArrayList<TryUpPttRsp>? = null, | ||
): Protobuf<Cmd0x388RspBody> | ||
|
||
@Serializable | ||
data class TryUpPttRsp( | ||
@ProtoNumber(1) var fileId: Long = 0, | ||
@ProtoNumber(2) var result: Int = 0, | ||
@ProtoNumber(3) var failMsg: ByteArray = EMPTY_BYTE_ARRAY, | ||
@ProtoNumber(4) var fileExit: Boolean = false, | ||
@ProtoNumber(5) var upIp: List<Int>? = null, | ||
@ProtoNumber(6) var upPort: List<Int>? = null, | ||
@ProtoNumber(7) var upUkey: ByteArray = EMPTY_BYTE_ARRAY, | ||
@ProtoNumber(8) var fileid: Long = 0, | ||
@ProtoNumber(9) var upOffset: Long = 0, | ||
@ProtoNumber(10) var blockSize: Long = 0, | ||
@ProtoNumber(11) var fileKey: ByteArray = EMPTY_BYTE_ARRAY, | ||
@ProtoNumber(12) var channelType: Int = 0, | ||
@ProtoNumber(26) var msgUpIp6: ArrayList<IPv6Info>? = null, | ||
@ProtoNumber(27) var clientIp6: ByteArray = EMPTY_BYTE_ARRAY, | ||
): Protobuf<TryUpPttRsp> | ||
|
||
@Serializable | ||
data class TryUpImgRsp( | ||
@ProtoNumber(1) var extFileId: ULong = 0u, // 没有实际作用 | ||
@ProtoNumber(2) var result: UInt = 0u, | ||
@ProtoNumber(3) var faiMsg: ByteArray = EMPTY_BYTE_ARRAY, | ||
@ProtoNumber(4) var fileExist: Boolean = false, | ||
@ProtoNumber(5) var msgImgInfo: ImgInfo? = null, // 里面只是一堆垃圾 | ||
@ProtoNumber(6) var upIp: ArrayList<Long>? = null, | ||
@ProtoNumber(7) var upPort: ArrayList<Int>? = null, | ||
@ProtoNumber(8) var ukey: ByteArray = EMPTY_BYTE_ARRAY, | ||
@ProtoNumber(9) var fileId: Long = 0, | ||
@ProtoNumber(10) var upOffset: ULong = 0u, | ||
@ProtoNumber(11) var blockSize: Long = 0, | ||
@ProtoNumber(12) var bool_new_big_chan: Boolean = false, | ||
@ProtoNumber(26) var rpt_msg_up_ip6: ArrayList<IPv6Info>? = null, | ||
@ProtoNumber(27) var client_ip6: ByteArray = EMPTY_BYTE_ARRAY, | ||
@ProtoNumber(1001) var msg_info4busi: TryUpInfo4Busi? = null, | ||
) | ||
|
||
@Serializable | ||
data class TryUpInfo4Busi( | ||
@ProtoNumber(1) var down_domain: ByteArray = EMPTY_BYTE_ARRAY, | ||
@ProtoNumber(2) var thumb_down_url: ByteArray = EMPTY_BYTE_ARRAY, | ||
@ProtoNumber(3) var original_down_url: ByteArray = EMPTY_BYTE_ARRAY, | ||
@ProtoNumber(4) var big_down_url: ByteArray = EMPTY_BYTE_ARRAY, | ||
@ProtoNumber(5) var file_resid: ByteArray = EMPTY_BYTE_ARRAY, | ||
) | ||
|
||
@Serializable | ||
data class IPv6Info( | ||
@ProtoNumber(1) var ip6: ByteArray = EMPTY_BYTE_ARRAY, | ||
@ProtoNumber(2) var port: UInt = 0u, | ||
) | ||
|
||
@Serializable | ||
data class ImgInfo( | ||
@ProtoNumber(1) var file_md5: ByteArray = EMPTY_BYTE_ARRAY, | ||
@ProtoNumber(2) var file_type: UInt = 0u, | ||
@ProtoNumber(3) var file_size: ULong = 0u, | ||
@ProtoNumber(4) var file_width: UInt = 0u, | ||
@ProtoNumber(5) var file_height: UInt = 0u, | ||
) |
74 changes: 74 additions & 0 deletions
74
qqinterface/src/main/java/com/tencent/mobileqq/data/MessageForPic.java
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 |
---|---|---|
@@ -0,0 +1,74 @@ | ||
package com.tencent.mobileqq.data; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public class MessageForPic extends MessageRecord { | ||
public String SpeedInfo; | ||
public String actMsgContentValue; | ||
public String action; | ||
public String bigMsgUrl; | ||
public String bigThumbMsgUrl; | ||
public int busiType; | ||
public int fileSizeFlag; | ||
public long groupFileID; | ||
public long height; | ||
public int imageType; | ||
public boolean isInMixedMsg; | ||
public boolean isMixed; | ||
public boolean isRead; | ||
public boolean isShareAppActionMsg; | ||
public String localUUID; | ||
public int mCurrlength; | ||
public int mDownloadLength; | ||
public long mPresendTransferedSize; | ||
public int mShowLength; | ||
public String md5; | ||
//@RecordForTest | ||
// public msg_ctrl$MsgCtrl msgCtrl; | ||
public int msgVia; | ||
public int ntChatType; | ||
public String ntPeerUid; | ||
public String path; | ||
//public PicMessageExtraData picExtraData; | ||
public int picExtraFlag; | ||
public Object picExtraObject; | ||
public int previewed; | ||
public String rawMsgUrl; | ||
/// public ReportInfo reportInfo; | ||
//public MsgRecordParams rootMsgRecordParams; | ||
public String serverStoreSource; | ||
public long shareAppID; | ||
public long size; | ||
public long subTypeId; | ||
public int thumbHeight; | ||
public String thumbMsgUrl; | ||
public int thumbWidth; | ||
//public ThumbWidthHeightDP thumbWidthHeightDP; | ||
public int type; | ||
public String uuid; | ||
public long width; | ||
public boolean isDownStatusReady = false; | ||
public int subMsgId = 0; | ||
public int isReport = 0; | ||
public int subVersion = 5; | ||
public int preDownState = -1; | ||
public int preDownNetworkType = -1; | ||
public long DSKey = 0; | ||
public int mNotPredownloadReason = 0; | ||
public int subThumbWidth = -1; | ||
public int subThumbHeight = -1; | ||
public int aiofileType = -1; | ||
public int subMsgType = -1; | ||
public boolean bEnableEnc = false; | ||
public int thumbSize = -1; | ||
public boolean isBlessPic = false; | ||
public boolean sync2Story = false; | ||
public boolean isQzonePic = false; | ||
public boolean isStoryPhoto = false; | ||
public long replyRealSourceMsgId = -1; | ||
|
||
public String toLogString() { | ||
return "path:" + this.path + ",uuid:" + this.uuid + ",md5:" + this.md5 + ",size:" + this.size + ",groupFileID:" + this.groupFileID; | ||
} | ||
} |
4 changes: 3 additions & 1 deletion
4
qqinterface/src/main/java/com/tencent/mobileqq/transfile/BaseTransProcessor.java
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
5 changes: 5 additions & 0 deletions
5
qqinterface/src/main/java/com/tencent/mobileqq/transfile/BaseUploadProcessor.java
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.tencent.mobileqq.transfile; | ||
|
||
public class BaseUploadProcessor extends BaseTransProcessor { | ||
|
||
} |
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
4 changes: 3 additions & 1 deletion
4
qqinterface/src/main/java/com/tencent/mobileqq/transfile/GroupPicUploadProcessor.java
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,4 +1,6 @@ | ||
package com.tencent.mobileqq.transfile; | ||
|
||
public class GroupPicUploadProcessor { | ||
import com.tencent.mobileqq.utils.httputils.IHttpCommunicatorListener; | ||
|
||
public class GroupPicUploadProcessor extends BaseUploadProcessor { | ||
} |
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
Oops, something went wrong.