import * as $protobuf from "protobufjs"; import Long = require("long"); /** Properties of a ChatUser. */ export interface IChatUser { /** ChatUser userId */ userId?: (Long|null); /** ChatUser nickname */ nickname?: (string|null); /** ChatUser avatar */ avatar?: (string|null); /** ChatUser avatarFrame */ avatarFrame?: (string|null); /** ChatUser vipLevel */ vipLevel?: (string|null); } /** Represents a ChatUser. */ export class ChatUser implements IChatUser { /** * Constructs a new ChatUser. * @param [properties] Properties to set */ constructor(properties?: IChatUser); /** ChatUser userId. */ public userId: Long; /** ChatUser nickname. */ public nickname: string; /** ChatUser avatar. */ public avatar: string; /** ChatUser avatarFrame. */ public avatarFrame: string; /** ChatUser vipLevel. */ public vipLevel: string; /** * Creates a new ChatUser instance using the specified properties. * @param [properties] Properties to set * @returns ChatUser instance */ public static create(properties?: IChatUser): ChatUser; /** * Encodes the specified ChatUser message. Does not implicitly {@link ChatUser.verify|verify} messages. * @param message ChatUser message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: IChatUser, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified ChatUser message, length delimited. Does not implicitly {@link ChatUser.verify|verify} messages. * @param message ChatUser message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: IChatUser, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a ChatUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns ChatUser * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): ChatUser; /** * Decodes a ChatUser message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns ChatUser * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): ChatUser; /** * Verifies a ChatUser message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a ChatUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns ChatUser */ public static fromObject(object: { [k: string]: any }): ChatUser; /** * Creates a plain object from a ChatUser message. Also converts values to other types if specified. * @param message ChatUser * @param [options] Conversion options * @returns Plain object */ public static toObject(message: ChatUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this ChatUser to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for ChatUser * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; } /** Properties of a GameUser. */ export interface IGameUser { /** GameUser userId */ userId?: (Long|null); /** GameUser nickname */ nickname?: (string|null); /** GameUser avatar */ avatar?: (string|null); /** GameUser avatarFrame */ avatarFrame?: (string|null); /** GameUser vipLevel */ vipLevel?: (number|null); /** GameUser vipExp */ vipExp?: (number|null); /** GameUser seat */ seat?: (Long|null); /** GameUser gold */ gold?: (Long|null); } /** Represents a GameUser. */ export class GameUser implements IGameUser { /** * Constructs a new GameUser. * @param [properties] Properties to set */ constructor(properties?: IGameUser); /** GameUser userId. */ public userId: Long; /** GameUser nickname. */ public nickname: string; /** GameUser avatar. */ public avatar: string; /** GameUser avatarFrame. */ public avatarFrame: string; /** GameUser vipLevel. */ public vipLevel: number; /** GameUser vipExp. */ public vipExp: number; /** GameUser seat. */ public seat: Long; /** GameUser gold. */ public gold: Long; /** * Creates a new GameUser instance using the specified properties. * @param [properties] Properties to set * @returns GameUser instance */ public static create(properties?: IGameUser): GameUser; /** * Encodes the specified GameUser message. Does not implicitly {@link GameUser.verify|verify} messages. * @param message GameUser message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encode(message: IGameUser, writer?: $protobuf.Writer): $protobuf.Writer; /** * Encodes the specified GameUser message, length delimited. Does not implicitly {@link GameUser.verify|verify} messages. * @param message GameUser message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ public static encodeDelimited(message: IGameUser, writer?: $protobuf.Writer): $protobuf.Writer; /** * Decodes a GameUser message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand * @returns GameUser * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): GameUser; /** * Decodes a GameUser message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from * @returns GameUser * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): GameUser; /** * Verifies a GameUser message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** * Creates a GameUser message from a plain object. Also converts values to their respective internal types. * @param object Plain object * @returns GameUser */ public static fromObject(object: { [k: string]: any }): GameUser; /** * Creates a plain object from a GameUser message. Also converts values to other types if specified. * @param message GameUser * @param [options] Conversion options * @returns Plain object */ public static toObject(message: GameUser, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** * Converts this GameUser to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; /** * Gets the default type url for GameUser * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com") * @returns The default type url */ public static getTypeUrl(typeUrlPrefix?: string): string; }