协议更新
This commit is contained in:
@@ -49,10 +49,10 @@ export class GirlDetailConfig extends BaseConfig {
|
||||
}
|
||||
|
||||
/** 根据 id 获取 commercialImages数量 */
|
||||
public getCommercialImagesCount(id: number): any | null {
|
||||
public getCommercialImagesCount(id: number): number | null {
|
||||
let oneData = this.getCommercialImagesById(id);
|
||||
if (!oneData) return null;
|
||||
return oneData.commercialImages.size;
|
||||
return oneData.length;
|
||||
}
|
||||
|
||||
/** 根据 id 和 index 获取图片类型 */
|
||||
@@ -87,10 +87,10 @@ export class GirlDetailConfig extends BaseConfig {
|
||||
}
|
||||
|
||||
/** 根据 id 获取 commercialVideos数量 */
|
||||
public getCommercialVideosCount(id: number): any | null {
|
||||
public getCommercialVideosCount(id: number): number | null {
|
||||
let oneData = this.getCommercialVideosById(id);
|
||||
if (!oneData) return null;
|
||||
return oneData.commercialVideos.size;
|
||||
return oneData.length;
|
||||
}
|
||||
|
||||
/** 根据 id 和 index 获取视频路径 */
|
||||
|
||||
@@ -234,7 +234,6 @@ export class GirlData extends BaseData {
|
||||
if (!d) return;
|
||||
// 合并简要信息
|
||||
if (d.brief) this.mergeBriefs(categoryId, [d.brief]);
|
||||
|
||||
const oneDetail = this.parseOneGirlDetail(d);
|
||||
const bucket = this.ensureBucket(categoryId);
|
||||
// id
|
||||
|
||||
@@ -137,6 +137,7 @@ export class MockGirlService implements IGirlService {
|
||||
|
||||
let photoData = [];
|
||||
let photoCount = girlDetailConfig.getCommercialImagesCount(girlId);
|
||||
|
||||
for (let i = 0; i < photoCount; i++) {
|
||||
let imagePath = girlDetailConfig.getImagePathById(girlId, i);
|
||||
let isImageRelease = Math.random() < 0.4;
|
||||
@@ -146,7 +147,7 @@ export class MockGirlService implements IGirlService {
|
||||
}
|
||||
|
||||
let detail = this.genDetail(briefData, desc, photoData, isRelease, chatCount);
|
||||
|
||||
// 返回数据
|
||||
return this.ok({ detail });
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,6 +17,10 @@ import Utils from "../../../Main/Common/Utils";
|
||||
import { InnerMsgCode } from "../../../Main/Config/InnerMsgCode";
|
||||
import { SimpleToggle } from "../components/SimpleToggle";
|
||||
import { GirlDetail, purchase } from "../../../schema/schema";
|
||||
import { DataManager, DataId } from "../../data/DataManager";
|
||||
import { GirlData } from "../../data/GirlData";
|
||||
import { GirlService } from "db://assets/Scripts/chat18x/network/services/GirlService";
|
||||
import proto from 'db://assets/Scripts/proto/proto.pb.js';
|
||||
|
||||
const { ccclass, property } = _decorator;
|
||||
|
||||
@@ -132,12 +136,62 @@ export class GirlDetailPanel extends li_BaseView {
|
||||
nameKey: string;
|
||||
tagKey: string;
|
||||
category;
|
||||
refresh(index: number) {
|
||||
async refresh(index: number) {
|
||||
// TODO,暂时这样获取,修改后从GirlData获取
|
||||
const girlConfig = ConfigManager.tables.TbGirls.get(this.id);
|
||||
this.category = girlConfig.category;
|
||||
// 请求详细数据
|
||||
const reqData = {
|
||||
id: this.id,
|
||||
};
|
||||
// let res = await GirlService.I.reqGetGirlDetail(reqData);
|
||||
// console.log("看看响应数据:", res);
|
||||
// if (res && res.code === proto.cs.EnmRetCode.SUCCESS) {
|
||||
// // 保存数据
|
||||
// const girlData = DataManager.I.getDataById<GirlData>(DataId.Girl);
|
||||
// girlData.setGirlDetails(this.category.toString(), res.data);
|
||||
// // 根据数据,刷新界面
|
||||
// this.nameKey = girlData.getGrilName(this.category, this.id);
|
||||
// this.girlName.string = LanguageUtils.getText(this.nameKey);
|
||||
// this.desc.string = girlData.getGrilDesc(this.category, this.id);
|
||||
|
||||
// let desc = "";
|
||||
// this.tagKey = girlData.getGrilTagKey(this.category, this.id);
|
||||
// const tags = LanguageUtils.getText(this.tagKey).split("|");
|
||||
// for (let i = 0; i < tags.length; i++) {
|
||||
// if (i != 0) desc += "|";
|
||||
// desc += tags[i];
|
||||
// }
|
||||
// this.tags.string = desc;
|
||||
// for (let i = 0; i < 5; i++) {
|
||||
// this.starParent.children[i].active = i < 5;
|
||||
// }
|
||||
// let age = girlData.getGrilAge(this.category, this.id);
|
||||
// this.descAge.string =
|
||||
// LanguageUtils.getText("girldetailpanel.age") + age.toString();
|
||||
|
||||
// // TODO
|
||||
// const dataDetail = ConfigManager.tables.TbGirlsDetail.get(this.id);
|
||||
|
||||
// ResManager.I.changeBundleVideo(
|
||||
// this.avatarVideo,
|
||||
// dataDetail.commercialVideos[0].path,
|
||||
// "Chat18x"
|
||||
// );
|
||||
|
||||
// // 也立即尝试调整(以防已经加载完成)
|
||||
// this.adjustVideoScale();
|
||||
// this.vids = dataDetail.commercialVideos.slice(0);
|
||||
// this.refreshImgs(dataDetail.commercialImages);
|
||||
|
||||
|
||||
// }
|
||||
|
||||
|
||||
const dataDetail = ConfigManager.tables.TbGirlsDetail.get(this.id);
|
||||
console.log(dataDetail);
|
||||
|
||||
const data = ConfigManager.tables.TbGirls.get(this.id);
|
||||
this.category = data.category;
|
||||
this.nameKey = data.nameKey;
|
||||
this.girlName.string = LanguageUtils.getText(data.nameKey);
|
||||
|
||||
|
||||
Vendored
+745
-6
@@ -32,6 +32,12 @@ export namespace cs {
|
||||
|
||||
/** GirlBrief star */
|
||||
star?: (number|null);
|
||||
|
||||
/** GirlBrief category */
|
||||
category?: (number|null);
|
||||
|
||||
/** GirlBrief listAvatarPath */
|
||||
listAvatarPath?: (string|null);
|
||||
}
|
||||
|
||||
/** Represents a GirlBrief. */
|
||||
@@ -67,6 +73,12 @@ avatar: string;
|
||||
/** GirlBrief star. */
|
||||
star: number;
|
||||
|
||||
/** GirlBrief category. */
|
||||
category: number;
|
||||
|
||||
/** GirlBrief listAvatarPath. */
|
||||
listAvatarPath: string;
|
||||
|
||||
/**
|
||||
* Creates a new GirlBrief instance using the specified properties.
|
||||
* @param [properties] Properties to set
|
||||
@@ -254,6 +266,236 @@ toJSON(): { [k: string]: any };
|
||||
static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
/** Properties of a PurchaseCommercialImage. */
|
||||
interface IPurchaseCommercialImage {
|
||||
|
||||
/** PurchaseCommercialImage imageType */
|
||||
imageType?: (number|null);
|
||||
|
||||
/** PurchaseCommercialImage imagePrice */
|
||||
imagePrice?: (number|null);
|
||||
|
||||
/** PurchaseCommercialImage path */
|
||||
path?: (string|null);
|
||||
|
||||
/** PurchaseCommercialImage isRelease */
|
||||
isRelease?: (boolean|null);
|
||||
}
|
||||
|
||||
/** Represents a PurchaseCommercialImage. */
|
||||
class PurchaseCommercialImage implements IPurchaseCommercialImage {
|
||||
|
||||
/**
|
||||
* Constructs a new PurchaseCommercialImage.
|
||||
* @param [properties] Properties to set
|
||||
*/
|
||||
constructor(properties?: cs.IPurchaseCommercialImage);
|
||||
|
||||
/** PurchaseCommercialImage imageType. */
|
||||
imageType: number;
|
||||
|
||||
/** PurchaseCommercialImage imagePrice. */
|
||||
imagePrice: number;
|
||||
|
||||
/** PurchaseCommercialImage path. */
|
||||
path: string;
|
||||
|
||||
/** PurchaseCommercialImage isRelease. */
|
||||
isRelease: boolean;
|
||||
|
||||
/**
|
||||
* Creates a new PurchaseCommercialImage instance using the specified properties.
|
||||
* @param [properties] Properties to set
|
||||
* @returns PurchaseCommercialImage instance
|
||||
*/
|
||||
static create(properties?: cs.IPurchaseCommercialImage): cs.PurchaseCommercialImage;
|
||||
|
||||
/**
|
||||
* Encodes the specified PurchaseCommercialImage message. Does not implicitly {@link cs.PurchaseCommercialImage.verify|verify} messages.
|
||||
* @param message PurchaseCommercialImage message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encode(message: cs.IPurchaseCommercialImage, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Encodes the specified PurchaseCommercialImage message, length delimited. Does not implicitly {@link cs.PurchaseCommercialImage.verify|verify} messages.
|
||||
* @param message PurchaseCommercialImage message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encodeDelimited(message: cs.IPurchaseCommercialImage, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Decodes a PurchaseCommercialImage message from the specified reader or buffer.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @param [length] Message length if known beforehand
|
||||
* @returns PurchaseCommercialImage
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cs.PurchaseCommercialImage;
|
||||
|
||||
/**
|
||||
* Decodes a PurchaseCommercialImage message from the specified reader or buffer, length delimited.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @returns PurchaseCommercialImage
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cs.PurchaseCommercialImage;
|
||||
|
||||
/**
|
||||
* Verifies a PurchaseCommercialImage message.
|
||||
* @param message Plain object to verify
|
||||
* @returns `null` if valid, otherwise the reason why it is not
|
||||
*/
|
||||
static verify(message: { [k: string]: any }): (string|null);
|
||||
|
||||
/**
|
||||
* Creates a PurchaseCommercialImage message from a plain object. Also converts values to their respective internal types.
|
||||
* @param object Plain object
|
||||
* @returns PurchaseCommercialImage
|
||||
*/
|
||||
static fromObject(object: { [k: string]: any }): cs.PurchaseCommercialImage;
|
||||
|
||||
/**
|
||||
* Creates a plain object from a PurchaseCommercialImage message. Also converts values to other types if specified.
|
||||
* @param message PurchaseCommercialImage
|
||||
* @param [options] Conversion options
|
||||
* @returns Plain object
|
||||
*/
|
||||
static toObject(message: cs.PurchaseCommercialImage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Converts this PurchaseCommercialImage to JSON.
|
||||
* @returns JSON object
|
||||
*/
|
||||
toJSON(): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Gets the default type url for PurchaseCommercialImage
|
||||
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
||||
* @returns The default type url
|
||||
*/
|
||||
static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
/** Properties of a PurchaseCommercialVideo. */
|
||||
interface IPurchaseCommercialVideo {
|
||||
|
||||
/** PurchaseCommercialVideo path */
|
||||
path?: (string|null);
|
||||
|
||||
/** PurchaseCommercialVideo emotion */
|
||||
emotion?: (number|null);
|
||||
|
||||
/** PurchaseCommercialVideo videoPrice */
|
||||
videoPrice?: (number|null);
|
||||
|
||||
/** PurchaseCommercialVideo isRelease */
|
||||
isRelease?: (boolean|null);
|
||||
}
|
||||
|
||||
/** Represents a PurchaseCommercialVideo. */
|
||||
class PurchaseCommercialVideo implements IPurchaseCommercialVideo {
|
||||
|
||||
/**
|
||||
* Constructs a new PurchaseCommercialVideo.
|
||||
* @param [properties] Properties to set
|
||||
*/
|
||||
constructor(properties?: cs.IPurchaseCommercialVideo);
|
||||
|
||||
/** PurchaseCommercialVideo path. */
|
||||
path: string;
|
||||
|
||||
/** PurchaseCommercialVideo emotion. */
|
||||
emotion: number;
|
||||
|
||||
/** PurchaseCommercialVideo videoPrice. */
|
||||
videoPrice: number;
|
||||
|
||||
/** PurchaseCommercialVideo isRelease. */
|
||||
isRelease: boolean;
|
||||
|
||||
/**
|
||||
* Creates a new PurchaseCommercialVideo instance using the specified properties.
|
||||
* @param [properties] Properties to set
|
||||
* @returns PurchaseCommercialVideo instance
|
||||
*/
|
||||
static create(properties?: cs.IPurchaseCommercialVideo): cs.PurchaseCommercialVideo;
|
||||
|
||||
/**
|
||||
* Encodes the specified PurchaseCommercialVideo message. Does not implicitly {@link cs.PurchaseCommercialVideo.verify|verify} messages.
|
||||
* @param message PurchaseCommercialVideo message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encode(message: cs.IPurchaseCommercialVideo, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Encodes the specified PurchaseCommercialVideo message, length delimited. Does not implicitly {@link cs.PurchaseCommercialVideo.verify|verify} messages.
|
||||
* @param message PurchaseCommercialVideo message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encodeDelimited(message: cs.IPurchaseCommercialVideo, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Decodes a PurchaseCommercialVideo message from the specified reader or buffer.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @param [length] Message length if known beforehand
|
||||
* @returns PurchaseCommercialVideo
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cs.PurchaseCommercialVideo;
|
||||
|
||||
/**
|
||||
* Decodes a PurchaseCommercialVideo message from the specified reader or buffer, length delimited.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @returns PurchaseCommercialVideo
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cs.PurchaseCommercialVideo;
|
||||
|
||||
/**
|
||||
* Verifies a PurchaseCommercialVideo message.
|
||||
* @param message Plain object to verify
|
||||
* @returns `null` if valid, otherwise the reason why it is not
|
||||
*/
|
||||
static verify(message: { [k: string]: any }): (string|null);
|
||||
|
||||
/**
|
||||
* Creates a PurchaseCommercialVideo message from a plain object. Also converts values to their respective internal types.
|
||||
* @param object Plain object
|
||||
* @returns PurchaseCommercialVideo
|
||||
*/
|
||||
static fromObject(object: { [k: string]: any }): cs.PurchaseCommercialVideo;
|
||||
|
||||
/**
|
||||
* Creates a plain object from a PurchaseCommercialVideo message. Also converts values to other types if specified.
|
||||
* @param message PurchaseCommercialVideo
|
||||
* @param [options] Conversion options
|
||||
* @returns Plain object
|
||||
*/
|
||||
static toObject(message: cs.PurchaseCommercialVideo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Converts this PurchaseCommercialVideo to JSON.
|
||||
* @returns JSON object
|
||||
*/
|
||||
toJSON(): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Gets the default type url for PurchaseCommercialVideo
|
||||
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
||||
* @returns The default type url
|
||||
*/
|
||||
static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
/** Properties of a GirlDetail. */
|
||||
interface IGirlDetail {
|
||||
|
||||
@@ -263,14 +505,17 @@ static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
/** GirlDetail desc */
|
||||
desc?: (string|null);
|
||||
|
||||
/** GirlDetail photos */
|
||||
photos?: (cs.IGirlPhoto[]|null);
|
||||
|
||||
/** GirlDetail isRelease */
|
||||
isRelease?: (boolean|null);
|
||||
|
||||
/** GirlDetail chatCount */
|
||||
chatCount?: (number|null);
|
||||
|
||||
/** GirlDetail images */
|
||||
images?: (cs.IPurchaseCommercialImage[]|null);
|
||||
|
||||
/** GirlDetail videos */
|
||||
videos?: (cs.IPurchaseCommercialVideo[]|null);
|
||||
}
|
||||
|
||||
/** Represents a GirlDetail. */
|
||||
@@ -288,15 +533,18 @@ brief?: (cs.IGirlBrief|null);
|
||||
/** GirlDetail desc. */
|
||||
desc: string;
|
||||
|
||||
/** GirlDetail photos. */
|
||||
photos: cs.IGirlPhoto[];
|
||||
|
||||
/** GirlDetail isRelease. */
|
||||
isRelease: boolean;
|
||||
|
||||
/** GirlDetail chatCount. */
|
||||
chatCount: number;
|
||||
|
||||
/** GirlDetail images. */
|
||||
images: cs.IPurchaseCommercialImage[];
|
||||
|
||||
/** GirlDetail videos. */
|
||||
videos: cs.IPurchaseCommercialVideo[];
|
||||
|
||||
/**
|
||||
* Creates a new GirlDetail instance using the specified properties.
|
||||
* @param [properties] Properties to set
|
||||
@@ -2193,6 +2441,497 @@ toJSON(): { [k: string]: any };
|
||||
static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
/** Properties of a ChatMsg. */
|
||||
interface IChatMsg {
|
||||
|
||||
/** ChatMsg msg */
|
||||
msg?: (string|null);
|
||||
|
||||
/** ChatMsg isAi */
|
||||
isAi?: (boolean|null);
|
||||
}
|
||||
|
||||
/** Represents a ChatMsg. */
|
||||
class ChatMsg implements IChatMsg {
|
||||
|
||||
/**
|
||||
* Constructs a new ChatMsg.
|
||||
* @param [properties] Properties to set
|
||||
*/
|
||||
constructor(properties?: cs.IChatMsg);
|
||||
|
||||
/** ChatMsg msg. */
|
||||
msg: string;
|
||||
|
||||
/** ChatMsg isAi. */
|
||||
isAi: boolean;
|
||||
|
||||
/**
|
||||
* Creates a new ChatMsg instance using the specified properties.
|
||||
* @param [properties] Properties to set
|
||||
* @returns ChatMsg instance
|
||||
*/
|
||||
static create(properties?: cs.IChatMsg): cs.ChatMsg;
|
||||
|
||||
/**
|
||||
* Encodes the specified ChatMsg message. Does not implicitly {@link cs.ChatMsg.verify|verify} messages.
|
||||
* @param message ChatMsg message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encode(message: cs.IChatMsg, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Encodes the specified ChatMsg message, length delimited. Does not implicitly {@link cs.ChatMsg.verify|verify} messages.
|
||||
* @param message ChatMsg message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encodeDelimited(message: cs.IChatMsg, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Decodes a ChatMsg message from the specified reader or buffer.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @param [length] Message length if known beforehand
|
||||
* @returns ChatMsg
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cs.ChatMsg;
|
||||
|
||||
/**
|
||||
* Decodes a ChatMsg message from the specified reader or buffer, length delimited.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @returns ChatMsg
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cs.ChatMsg;
|
||||
|
||||
/**
|
||||
* Verifies a ChatMsg message.
|
||||
* @param message Plain object to verify
|
||||
* @returns `null` if valid, otherwise the reason why it is not
|
||||
*/
|
||||
static verify(message: { [k: string]: any }): (string|null);
|
||||
|
||||
/**
|
||||
* Creates a ChatMsg message from a plain object. Also converts values to their respective internal types.
|
||||
* @param object Plain object
|
||||
* @returns ChatMsg
|
||||
*/
|
||||
static fromObject(object: { [k: string]: any }): cs.ChatMsg;
|
||||
|
||||
/**
|
||||
* Creates a plain object from a ChatMsg message. Also converts values to other types if specified.
|
||||
* @param message ChatMsg
|
||||
* @param [options] Conversion options
|
||||
* @returns Plain object
|
||||
*/
|
||||
static toObject(message: cs.ChatMsg, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Converts this ChatMsg to JSON.
|
||||
* @returns JSON object
|
||||
*/
|
||||
toJSON(): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Gets the default type url for ChatMsg
|
||||
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
||||
* @returns The default type url
|
||||
*/
|
||||
static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
/** Properties of a CSChatMsgReq. */
|
||||
interface ICSChatMsgReq {
|
||||
|
||||
/** CSChatMsgReq msgs */
|
||||
msgs?: (cs.IChatMsg[]|null);
|
||||
}
|
||||
|
||||
/** Represents a CSChatMsgReq. */
|
||||
class CSChatMsgReq implements ICSChatMsgReq {
|
||||
|
||||
/**
|
||||
* Constructs a new CSChatMsgReq.
|
||||
* @param [properties] Properties to set
|
||||
*/
|
||||
constructor(properties?: cs.ICSChatMsgReq);
|
||||
|
||||
/** CSChatMsgReq msgs. */
|
||||
msgs: cs.IChatMsg[];
|
||||
|
||||
/**
|
||||
* Creates a new CSChatMsgReq instance using the specified properties.
|
||||
* @param [properties] Properties to set
|
||||
* @returns CSChatMsgReq instance
|
||||
*/
|
||||
static create(properties?: cs.ICSChatMsgReq): cs.CSChatMsgReq;
|
||||
|
||||
/**
|
||||
* Encodes the specified CSChatMsgReq message. Does not implicitly {@link cs.CSChatMsgReq.verify|verify} messages.
|
||||
* @param message CSChatMsgReq message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encode(message: cs.ICSChatMsgReq, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Encodes the specified CSChatMsgReq message, length delimited. Does not implicitly {@link cs.CSChatMsgReq.verify|verify} messages.
|
||||
* @param message CSChatMsgReq message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encodeDelimited(message: cs.ICSChatMsgReq, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Decodes a CSChatMsgReq message from the specified reader or buffer.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @param [length] Message length if known beforehand
|
||||
* @returns CSChatMsgReq
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cs.CSChatMsgReq;
|
||||
|
||||
/**
|
||||
* Decodes a CSChatMsgReq message from the specified reader or buffer, length delimited.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @returns CSChatMsgReq
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cs.CSChatMsgReq;
|
||||
|
||||
/**
|
||||
* Verifies a CSChatMsgReq message.
|
||||
* @param message Plain object to verify
|
||||
* @returns `null` if valid, otherwise the reason why it is not
|
||||
*/
|
||||
static verify(message: { [k: string]: any }): (string|null);
|
||||
|
||||
/**
|
||||
* Creates a CSChatMsgReq message from a plain object. Also converts values to their respective internal types.
|
||||
* @param object Plain object
|
||||
* @returns CSChatMsgReq
|
||||
*/
|
||||
static fromObject(object: { [k: string]: any }): cs.CSChatMsgReq;
|
||||
|
||||
/**
|
||||
* Creates a plain object from a CSChatMsgReq message. Also converts values to other types if specified.
|
||||
* @param message CSChatMsgReq
|
||||
* @param [options] Conversion options
|
||||
* @returns Plain object
|
||||
*/
|
||||
static toObject(message: cs.CSChatMsgReq, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Converts this CSChatMsgReq to JSON.
|
||||
* @returns JSON object
|
||||
*/
|
||||
toJSON(): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Gets the default type url for CSChatMsgReq
|
||||
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
||||
* @returns The default type url
|
||||
*/
|
||||
static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
/** Properties of a CSChatMsgRes. */
|
||||
interface ICSChatMsgRes {
|
||||
}
|
||||
|
||||
/** Represents a CSChatMsgRes. */
|
||||
class CSChatMsgRes implements ICSChatMsgRes {
|
||||
|
||||
/**
|
||||
* Constructs a new CSChatMsgRes.
|
||||
* @param [properties] Properties to set
|
||||
*/
|
||||
constructor(properties?: cs.ICSChatMsgRes);
|
||||
|
||||
/**
|
||||
* Creates a new CSChatMsgRes instance using the specified properties.
|
||||
* @param [properties] Properties to set
|
||||
* @returns CSChatMsgRes instance
|
||||
*/
|
||||
static create(properties?: cs.ICSChatMsgRes): cs.CSChatMsgRes;
|
||||
|
||||
/**
|
||||
* Encodes the specified CSChatMsgRes message. Does not implicitly {@link cs.CSChatMsgRes.verify|verify} messages.
|
||||
* @param message CSChatMsgRes message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encode(message: cs.ICSChatMsgRes, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Encodes the specified CSChatMsgRes message, length delimited. Does not implicitly {@link cs.CSChatMsgRes.verify|verify} messages.
|
||||
* @param message CSChatMsgRes message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encodeDelimited(message: cs.ICSChatMsgRes, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Decodes a CSChatMsgRes message from the specified reader or buffer.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @param [length] Message length if known beforehand
|
||||
* @returns CSChatMsgRes
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cs.CSChatMsgRes;
|
||||
|
||||
/**
|
||||
* Decodes a CSChatMsgRes message from the specified reader or buffer, length delimited.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @returns CSChatMsgRes
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cs.CSChatMsgRes;
|
||||
|
||||
/**
|
||||
* Verifies a CSChatMsgRes message.
|
||||
* @param message Plain object to verify
|
||||
* @returns `null` if valid, otherwise the reason why it is not
|
||||
*/
|
||||
static verify(message: { [k: string]: any }): (string|null);
|
||||
|
||||
/**
|
||||
* Creates a CSChatMsgRes message from a plain object. Also converts values to their respective internal types.
|
||||
* @param object Plain object
|
||||
* @returns CSChatMsgRes
|
||||
*/
|
||||
static fromObject(object: { [k: string]: any }): cs.CSChatMsgRes;
|
||||
|
||||
/**
|
||||
* Creates a plain object from a CSChatMsgRes message. Also converts values to other types if specified.
|
||||
* @param message CSChatMsgRes
|
||||
* @param [options] Conversion options
|
||||
* @returns Plain object
|
||||
*/
|
||||
static toObject(message: cs.CSChatMsgRes, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Converts this CSChatMsgRes to JSON.
|
||||
* @returns JSON object
|
||||
*/
|
||||
toJSON(): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Gets the default type url for CSChatMsgRes
|
||||
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
||||
* @returns The default type url
|
||||
*/
|
||||
static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
/** Properties of a CSGetChatMsgReq. */
|
||||
interface ICSGetChatMsgReq {
|
||||
|
||||
/** CSGetChatMsgReq page */
|
||||
page?: (number|null);
|
||||
|
||||
/** CSGetChatMsgReq limit */
|
||||
limit?: (number|null);
|
||||
}
|
||||
|
||||
/** Represents a CSGetChatMsgReq. */
|
||||
class CSGetChatMsgReq implements ICSGetChatMsgReq {
|
||||
|
||||
/**
|
||||
* Constructs a new CSGetChatMsgReq.
|
||||
* @param [properties] Properties to set
|
||||
*/
|
||||
constructor(properties?: cs.ICSGetChatMsgReq);
|
||||
|
||||
/** CSGetChatMsgReq page. */
|
||||
page: number;
|
||||
|
||||
/** CSGetChatMsgReq limit. */
|
||||
limit: number;
|
||||
|
||||
/**
|
||||
* Creates a new CSGetChatMsgReq instance using the specified properties.
|
||||
* @param [properties] Properties to set
|
||||
* @returns CSGetChatMsgReq instance
|
||||
*/
|
||||
static create(properties?: cs.ICSGetChatMsgReq): cs.CSGetChatMsgReq;
|
||||
|
||||
/**
|
||||
* Encodes the specified CSGetChatMsgReq message. Does not implicitly {@link cs.CSGetChatMsgReq.verify|verify} messages.
|
||||
* @param message CSGetChatMsgReq message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encode(message: cs.ICSGetChatMsgReq, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Encodes the specified CSGetChatMsgReq message, length delimited. Does not implicitly {@link cs.CSGetChatMsgReq.verify|verify} messages.
|
||||
* @param message CSGetChatMsgReq message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encodeDelimited(message: cs.ICSGetChatMsgReq, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Decodes a CSGetChatMsgReq message from the specified reader or buffer.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @param [length] Message length if known beforehand
|
||||
* @returns CSGetChatMsgReq
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cs.CSGetChatMsgReq;
|
||||
|
||||
/**
|
||||
* Decodes a CSGetChatMsgReq message from the specified reader or buffer, length delimited.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @returns CSGetChatMsgReq
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cs.CSGetChatMsgReq;
|
||||
|
||||
/**
|
||||
* Verifies a CSGetChatMsgReq message.
|
||||
* @param message Plain object to verify
|
||||
* @returns `null` if valid, otherwise the reason why it is not
|
||||
*/
|
||||
static verify(message: { [k: string]: any }): (string|null);
|
||||
|
||||
/**
|
||||
* Creates a CSGetChatMsgReq message from a plain object. Also converts values to their respective internal types.
|
||||
* @param object Plain object
|
||||
* @returns CSGetChatMsgReq
|
||||
*/
|
||||
static fromObject(object: { [k: string]: any }): cs.CSGetChatMsgReq;
|
||||
|
||||
/**
|
||||
* Creates a plain object from a CSGetChatMsgReq message. Also converts values to other types if specified.
|
||||
* @param message CSGetChatMsgReq
|
||||
* @param [options] Conversion options
|
||||
* @returns Plain object
|
||||
*/
|
||||
static toObject(message: cs.CSGetChatMsgReq, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Converts this CSGetChatMsgReq to JSON.
|
||||
* @returns JSON object
|
||||
*/
|
||||
toJSON(): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Gets the default type url for CSGetChatMsgReq
|
||||
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
||||
* @returns The default type url
|
||||
*/
|
||||
static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
/** Properties of a CSGetChatMsgRes. */
|
||||
interface ICSGetChatMsgRes {
|
||||
|
||||
/** CSGetChatMsgRes msgs */
|
||||
msgs?: (cs.IChatMsg[]|null);
|
||||
}
|
||||
|
||||
/** Represents a CSGetChatMsgRes. */
|
||||
class CSGetChatMsgRes implements ICSGetChatMsgRes {
|
||||
|
||||
/**
|
||||
* Constructs a new CSGetChatMsgRes.
|
||||
* @param [properties] Properties to set
|
||||
*/
|
||||
constructor(properties?: cs.ICSGetChatMsgRes);
|
||||
|
||||
/** CSGetChatMsgRes msgs. */
|
||||
msgs: cs.IChatMsg[];
|
||||
|
||||
/**
|
||||
* Creates a new CSGetChatMsgRes instance using the specified properties.
|
||||
* @param [properties] Properties to set
|
||||
* @returns CSGetChatMsgRes instance
|
||||
*/
|
||||
static create(properties?: cs.ICSGetChatMsgRes): cs.CSGetChatMsgRes;
|
||||
|
||||
/**
|
||||
* Encodes the specified CSGetChatMsgRes message. Does not implicitly {@link cs.CSGetChatMsgRes.verify|verify} messages.
|
||||
* @param message CSGetChatMsgRes message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encode(message: cs.ICSGetChatMsgRes, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Encodes the specified CSGetChatMsgRes message, length delimited. Does not implicitly {@link cs.CSGetChatMsgRes.verify|verify} messages.
|
||||
* @param message CSGetChatMsgRes message or plain object to encode
|
||||
* @param [writer] Writer to encode to
|
||||
* @returns Writer
|
||||
*/
|
||||
static encodeDelimited(message: cs.ICSGetChatMsgRes, writer?: $protobuf.Writer): $protobuf.Writer;
|
||||
|
||||
/**
|
||||
* Decodes a CSGetChatMsgRes message from the specified reader or buffer.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @param [length] Message length if known beforehand
|
||||
* @returns CSGetChatMsgRes
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): cs.CSGetChatMsgRes;
|
||||
|
||||
/**
|
||||
* Decodes a CSGetChatMsgRes message from the specified reader or buffer, length delimited.
|
||||
* @param reader Reader or buffer to decode from
|
||||
* @returns CSGetChatMsgRes
|
||||
* @throws {Error} If the payload is not a reader or valid buffer
|
||||
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
||||
*/
|
||||
static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): cs.CSGetChatMsgRes;
|
||||
|
||||
/**
|
||||
* Verifies a CSGetChatMsgRes message.
|
||||
* @param message Plain object to verify
|
||||
* @returns `null` if valid, otherwise the reason why it is not
|
||||
*/
|
||||
static verify(message: { [k: string]: any }): (string|null);
|
||||
|
||||
/**
|
||||
* Creates a CSGetChatMsgRes message from a plain object. Also converts values to their respective internal types.
|
||||
* @param object Plain object
|
||||
* @returns CSGetChatMsgRes
|
||||
*/
|
||||
static fromObject(object: { [k: string]: any }): cs.CSGetChatMsgRes;
|
||||
|
||||
/**
|
||||
* Creates a plain object from a CSGetChatMsgRes message. Also converts values to other types if specified.
|
||||
* @param message CSGetChatMsgRes
|
||||
* @param [options] Conversion options
|
||||
* @returns Plain object
|
||||
*/
|
||||
static toObject(message: cs.CSGetChatMsgRes, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Converts this CSGetChatMsgRes to JSON.
|
||||
* @returns JSON object
|
||||
*/
|
||||
toJSON(): { [k: string]: any };
|
||||
|
||||
/**
|
||||
* Gets the default type url for CSGetChatMsgRes
|
||||
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
||||
* @returns The default type url
|
||||
*/
|
||||
static getTypeUrl(typeUrlPrefix?: string): string;
|
||||
}
|
||||
|
||||
/** Properties of a CSLoginReq. */
|
||||
interface ICSLoginReq {
|
||||
|
||||
|
||||
+1773
-45
File diff suppressed because it is too large
Load Diff
+1
-1
Submodule proto_cs updated: 664c8ad737...f055100cf0
Reference in New Issue
Block a user