diff --git a/.DS_Store b/.DS_Store index abe01c8..b90c195 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/messages/__pycache__/__init__.cpython-39.pyc b/messages/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..21bc1e7 Binary files /dev/null and b/messages/__pycache__/__init__.cpython-39.pyc differ diff --git a/messages/__pycache__/base.cpython-39.pyc b/messages/__pycache__/base.cpython-39.pyc new file mode 100644 index 0000000..3409f45 Binary files /dev/null and b/messages/__pycache__/base.cpython-39.pyc differ diff --git a/messages/__pycache__/chat.cpython-39.pyc b/messages/__pycache__/chat.cpython-39.pyc new file mode 100644 index 0000000..c74fe53 Binary files /dev/null and b/messages/__pycache__/chat.cpython-39.pyc differ diff --git a/messages/__pycache__/gift.cpython-39.pyc b/messages/__pycache__/gift.cpython-39.pyc new file mode 100644 index 0000000..47ab038 Binary files /dev/null and b/messages/__pycache__/gift.cpython-39.pyc differ diff --git a/messages/__pycache__/like.cpython-39.pyc b/messages/__pycache__/like.cpython-39.pyc new file mode 100644 index 0000000..e1c23dd Binary files /dev/null and b/messages/__pycache__/like.cpython-39.pyc differ diff --git a/messages/__pycache__/member.cpython-39.pyc b/messages/__pycache__/member.cpython-39.pyc new file mode 100644 index 0000000..f2d9c77 Binary files /dev/null and b/messages/__pycache__/member.cpython-39.pyc differ diff --git a/messages/__pycache__/roomuserseq.cpython-39.pyc b/messages/__pycache__/roomuserseq.cpython-39.pyc new file mode 100644 index 0000000..83704f1 Binary files /dev/null and b/messages/__pycache__/roomuserseq.cpython-39.pyc differ diff --git a/messages/__pycache__/social.cpython-39.pyc b/messages/__pycache__/social.cpython-39.pyc new file mode 100644 index 0000000..46f97ae Binary files /dev/null and b/messages/__pycache__/social.cpython-39.pyc differ diff --git a/messages/__pycache__/utils.cpython-39.pyc b/messages/__pycache__/utils.cpython-39.pyc new file mode 100644 index 0000000..5723ab7 Binary files /dev/null and b/messages/__pycache__/utils.cpython-39.pyc differ diff --git a/messages/base.py b/messages/base.py index 3b0eb90..f144e17 100644 --- a/messages/base.py +++ b/messages/base.py @@ -1,13 +1,45 @@ +from store.mongo import MongoStore + class Base: instance = None def set_payload(self, payload): self.instance.ParseFromString(payload) - + def user(self): return self.instance.user + def persists(self): + try: + store = MongoStore() + store.set_collection('user') + + user = self.user() + + store.insert_one({ + "id": user.id, + "shortId": user.shortId, + "nickname": user.nickname, + "gender": user.gender, + "avatar_thumb": user.avatarThumb.urlList[0], + "followInfo": { + "followingCount": user.followInfo.followingCount, + "followerCount": user.followInfo.followerCount + } + }) + + store.set_collection(self.instance.common.method) + store.insert_one({ + "msgId": self.instance.common.msgId, + "roomId": self.instance.common.roomId, + "userId": user.id, + 'content': self.format_content() + }) + except Exception as e: + print(self.instance.common.method + 'persists error') + + def __str__(self): pass diff --git a/messages/chat.py b/messages/chat.py index 48c2517..8d54b74 100644 --- a/messages/chat.py +++ b/messages/chat.py @@ -7,5 +7,8 @@ class ChatMessage(Base): def __init__(self): self.instance = message_pb2.ChatMessage() + def format_content(self): + return self.user().nickname + ': ' + self.instance.content + def __str__(self): - return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【发言】' + self.user().nickname + ': ' + self.instance.content \ No newline at end of file + return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【发言】' + self.format_content() \ No newline at end of file diff --git a/messages/gift.py b/messages/gift.py index 8a1154a..f73d27a 100644 --- a/messages/gift.py +++ b/messages/gift.py @@ -7,5 +7,8 @@ class GiftMessage(Base): def __init__(self): self.instance = message_pb2.GiftMessage() + def format_content(self): + return self.instance.common.describe + def __str__(self): - return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【送礼】' + self.instance.common.describe \ No newline at end of file + return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【送礼】' + self.format_content() \ No newline at end of file diff --git a/messages/like.py b/messages/like.py index 30ee2ee..8b4f237 100644 --- a/messages/like.py +++ b/messages/like.py @@ -7,5 +7,8 @@ class LikeMessage(Base): def __init__(self): self.instance = message_pb2.LikeMessage() + def format_content(self): + return self.user().nickname + ' 点赞了直播间(' + str(self.instance.count) + '连赞)' + def __str__(self): - return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【点赞】' + self.user().nickname + ' 点赞了直播间(' + str(self.instance.count) + '连赞)' \ No newline at end of file + return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【点赞】' + self.format_content() diff --git a/messages/member.py b/messages/member.py index 156a885..55de586 100644 --- a/messages/member.py +++ b/messages/member.py @@ -7,8 +7,12 @@ class MemberMessage(Base): def __init__(self): self.instance = message_pb2.MemberMessage() - def __str__(self): + + def format_content(self): template = self.instance.common.displayText.defaultPattern nickname = self.user().nickname - return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【进入直播间】' + template.replace('{0:user}', nickname).replace('{1:string}', '') \ No newline at end of file + return template.replace('{0:user}', nickname).replace('{1:string}', '') + + def __str__(self): + return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【进入直播间】' + self.format_content() diff --git a/messages/roomuserseq.py b/messages/roomuserseq.py index 941c14a..2dc5c41 100644 --- a/messages/roomuserseq.py +++ b/messages/roomuserseq.py @@ -7,5 +7,8 @@ class RoomUserSeqMessage(Base): def __init__(self): self.instance = message_pb2.RoomUserSeqMessage() + def format_content(self): + return self.instance.totalUserStr + def __str__(self): - return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【观看人数】' + self.instance.totalUserStr \ No newline at end of file + return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【观看人数】' + self.format_content() \ No newline at end of file diff --git a/messages/social.py b/messages/social.py index 2a4bdbb..c658eb6 100644 --- a/messages/social.py +++ b/messages/social.py @@ -7,5 +7,8 @@ class SocialMessage(Base): def __init__(self): self.instance = message_pb2.SocialMessage() + def format_content(self): + return self.user().nickname + ' 关注了主播' + def __str__(self): - return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【关注】' + self.user().nickname + ' 关注了主播' \ No newline at end of file + return time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + '【关注】' + self.format_content() \ No newline at end of file diff --git a/messages/utils.py b/messages/utils.py index 996588d..b145fe8 100644 --- a/messages/utils.py +++ b/messages/utils.py @@ -36,31 +36,37 @@ def decodeMsg(messages): if message.method == 'WebcastMemberMessage': member_message = MemberMessage() member_message.set_payload(message.payload) + member_message.persists() print(f"\n{RED}[+] {member_message} {RESET}") elif message.method == 'WebcastSocialMessage': social_message = SocialMessage() social_message.set_payload(message.payload) + social_message.persists() print(f"\n{GREEN}[+] {social_message} {RESET}") elif message.method == 'WebcastChatMessage': chat_message = ChatMessage() chat_message.set_payload(message.payload) + chat_message.persists() print(f"\n{BLUE}[+] {chat_message} {RESET}") elif message.method == 'WebcastLikeMessage': like_message = LikeMessage() like_message.set_payload(message.payload) + like_message.persists() print(f"\n{CYAN}[+] {like_message} {RESET}") elif message.method == 'WebcastGiftMessage': gift_message = GiftMessage() gift_message.set_payload(message.payload) + gift_message.persists() print(f"\n{MAGENTA}[+] {gift_message} {RESET}") elif message.method == 'WebcastRoomUserSeqMessage': room_user_seq_message = RoomUserSeqMessage() room_user_seq_message.set_payload(message.payload) + # room_user_seq_message.persists() print(f"\n{YELLOW}[+] {room_user_seq_message} {RESET}") except Exception as e: diff --git a/protobuf/__pycache__/__init__.cpython-39.pyc b/protobuf/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..95b3744 Binary files /dev/null and b/protobuf/__pycache__/__init__.cpython-39.pyc differ diff --git a/protobuf/__pycache__/message_pb2.cpython-39.pyc b/protobuf/__pycache__/message_pb2.cpython-39.pyc new file mode 100644 index 0000000..f448528 Binary files /dev/null and b/protobuf/__pycache__/message_pb2.cpython-39.pyc differ diff --git a/protobuf/beautified-20211127083546.js b/protobuf/beautified-20211127083546.js new file mode 100644 index 0000000..8d1bfd6 --- /dev/null +++ b/protobuf/beautified-20211127083546.js @@ -0,0 +1,37602 @@ +"use strict"; +(self.__LOADABLE_LOADED_CHUNKS__ = self.__LOADABLE_LOADED_CHUNKS__ || []).push([ + [600], + { + 485: function (e, t, n) + { + n.r(t), n.d(t, + { + default: function () + { + return w + }, + parsePbData: function () + { + return f + }, + parsePbLongNumber: function () + { + return b + }, + parseSinglePbData: function () + { + return y + }, + toLong: function () + { + return h + } + }); + n(92911), n(32981), n(6858), n(84836), n(27134), n(30270), n(38127), n(35536), n(35098), n(99544), n(4398), n(92152), n(13294), n(51615), n(41157), n(40472), n(3083), n(72906), n(26959), n(89293), n(78723), n(28951), n(67230), n(82566), n(96289), n(58131), n(28660), n(9199), n(51378), n(19319), n(52895), n(32336), n(40727), n(22112), n(60570), n(95754); + var r = n(6386); + const o = r.Reader, + i = r.Writer, + a = r.util, + l = r.roots.default || (r.roots.default = {}), + s = l.webcast = (() => + { + const e = {}; + return e.data = function () + { + const e = {}; + return e.ReplayInfo = function () + { + function e(e) + { + if (this.replayItems = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.roomId = "", e.prototype.title = "", e.prototype.startTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.endTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.liveTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.replayItems = a.emptyArray, e.prototype.categoryName = "", e.prototype.coverUrl = "", e.prototype.canPublish = !1, e.prototype.publishStatus = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.highlightStatus = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.roomId && Object.hasOwnProperty.call(e, "roomId") && t.uint32(10).string(e.roomId), null != e.title && Object.hasOwnProperty.call(e, "title") && t.uint32(18).string(e.title), null != e.startTime && Object.hasOwnProperty.call(e, "startTime") && t.uint32(24).int64(e.startTime), null != e.endTime && Object.hasOwnProperty.call(e, "endTime") && t.uint32(32).int64(e.endTime), null != e.liveTime && Object.hasOwnProperty.call(e, "liveTime") && t.uint32(40).int64(e.liveTime), null != e.replayItems && e.replayItems.length) + for (var n = 0; n < e.replayItems.length; ++n) l.webcast.data.ReplayInfo.ReplayItem.encode(e.replayItems[n], t.uint32(50).fork()).ldelim(); + return null != e.categoryName && Object.hasOwnProperty.call(e, "categoryName") && t.uint32(58).string(e.categoryName), null != e.coverUrl && Object.hasOwnProperty.call(e, "coverUrl") && t.uint32(66).string(e.coverUrl), null != e.canPublish && Object.hasOwnProperty.call(e, "canPublish") && t.uint32(72).bool(e.canPublish), null != e.publishStatus && Object.hasOwnProperty.call(e, "publishStatus") && t.uint32(80).int64(e.publishStatus), null != e.highlightStatus && Object.hasOwnProperty.call(e, "highlightStatus") && t.uint32(88).int64(e.highlightStatus), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ReplayInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.roomId = e.string(); + break; + case 2: + r.title = e.string(); + break; + case 3: + r.startTime = e.int64(); + break; + case 4: + r.endTime = e.int64(); + break; + case 5: + r.liveTime = e.int64(); + break; + case 6: + r.replayItems && r.replayItems.length || (r.replayItems = []), r.replayItems.push(l.webcast.data.ReplayInfo.ReplayItem.decode(e, e.uint32())); + break; + case 7: + r.categoryName = e.string(); + break; + case 8: + r.coverUrl = e.string(); + break; + case 9: + r.canPublish = e.bool(); + break; + case 10: + r.publishStatus = e.int64(); + break; + case 11: + r.highlightStatus = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.roomId && e.hasOwnProperty("roomId") && !a.isString(e.roomId)) return "roomId: string expected"; + if (null != e.title && e.hasOwnProperty("title") && !a.isString(e.title)) return "title: string expected"; + if (null != e.startTime && e.hasOwnProperty("startTime") && !(a.isInteger(e.startTime) || e.startTime && a.isInteger(e.startTime.low) && a.isInteger(e.startTime.high))) return "startTime: integer|Long expected"; + if (null != e.endTime && e.hasOwnProperty("endTime") && !(a.isInteger(e.endTime) || e.endTime && a.isInteger(e.endTime.low) && a.isInteger(e.endTime.high))) return "endTime: integer|Long expected"; + if (null != e.liveTime && e.hasOwnProperty("liveTime") && !(a.isInteger(e.liveTime) || e.liveTime && a.isInteger(e.liveTime.low) && a.isInteger(e.liveTime.high))) return "liveTime: integer|Long expected"; + if (null != e.replayItems && e.hasOwnProperty("replayItems")) + { + if (!Array.isArray(e.replayItems)) return "replayItems: array expected"; + for (var t = 0; t < e.replayItems.length; ++t) + { + var n = l.webcast.data.ReplayInfo.ReplayItem.verify(e.replayItems[t]); + if (n) return "replayItems." + n + } + } + return null != e.categoryName && e.hasOwnProperty("categoryName") && !a.isString(e.categoryName) ? "categoryName: string expected" : null != e.coverUrl && e.hasOwnProperty("coverUrl") && !a.isString(e.coverUrl) ? "coverUrl: string expected" : null != e.canPublish && e.hasOwnProperty("canPublish") && "boolean" != typeof e.canPublish ? "canPublish: boolean expected" : null != e.publishStatus && e.hasOwnProperty("publishStatus") && !(a.isInteger(e.publishStatus) || e.publishStatus && a.isInteger(e.publishStatus.low) && a.isInteger(e.publishStatus.high)) ? "publishStatus: integer|Long expected" : null != e.highlightStatus && e.hasOwnProperty("highlightStatus") && !(a.isInteger(e.highlightStatus) || e.highlightStatus && a.isInteger(e.highlightStatus.low) && a.isInteger(e.highlightStatus.high)) ? "highlightStatus: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ReplayInfo) return e; + var t = new l.webcast.data.ReplayInfo; + if (null != e.roomId && (t.roomId = String(e.roomId)), null != e.title && (t.title = String(e.title)), null != e.startTime && (a.Long ? (t.startTime = a.Long.fromValue(e.startTime)).unsigned = !1 : "string" == typeof e.startTime ? t.startTime = parseInt(e.startTime, 10) : "number" == typeof e.startTime ? t.startTime = e.startTime : "object" == typeof e.startTime && (t.startTime = new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber())), null != e.endTime && (a.Long ? (t.endTime = a.Long.fromValue(e.endTime)).unsigned = !1 : "string" == typeof e.endTime ? t.endTime = parseInt(e.endTime, 10) : "number" == typeof e.endTime ? t.endTime = e.endTime : "object" == typeof e.endTime && (t.endTime = new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber())), null != e.liveTime && (a.Long ? (t.liveTime = a.Long.fromValue(e.liveTime)).unsigned = !1 : "string" == typeof e.liveTime ? t.liveTime = parseInt(e.liveTime, 10) : "number" == typeof e.liveTime ? t.liveTime = e.liveTime : "object" == typeof e.liveTime && (t.liveTime = new a.LongBits(e.liveTime.low >>> 0, e.liveTime.high >>> 0).toNumber())), e.replayItems) + { + if (!Array.isArray(e.replayItems)) throw TypeError(".webcast.data.ReplayInfo.replayItems: array expected"); + t.replayItems = []; + for (var n = 0; n < e.replayItems.length; ++n) + { + if ("object" != typeof e.replayItems[n]) throw TypeError(".webcast.data.ReplayInfo.replayItems: object expected"); + t.replayItems[n] = l.webcast.data.ReplayInfo.ReplayItem.fromObject(e.replayItems[n]) + } + } + return null != e.categoryName && (t.categoryName = String(e.categoryName)), null != e.coverUrl && (t.coverUrl = String(e.coverUrl)), null != e.canPublish && (t.canPublish = Boolean(e.canPublish)), null != e.publishStatus && (a.Long ? (t.publishStatus = a.Long.fromValue(e.publishStatus)).unsigned = !1 : "string" == typeof e.publishStatus ? t.publishStatus = parseInt(e.publishStatus, 10) : "number" == typeof e.publishStatus ? t.publishStatus = e.publishStatus : "object" == typeof e.publishStatus && (t.publishStatus = new a.LongBits(e.publishStatus.low >>> 0, e.publishStatus.high >>> 0).toNumber())), null != e.highlightStatus && (a.Long ? (t.highlightStatus = a.Long.fromValue(e.highlightStatus)).unsigned = !1 : "string" == typeof e.highlightStatus ? t.highlightStatus = parseInt(e.highlightStatus, 10) : "number" == typeof e.highlightStatus ? t.highlightStatus = e.highlightStatus : "object" == typeof e.highlightStatus && (t.highlightStatus = new a.LongBits(e.highlightStatus.low >>> 0, e.highlightStatus.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.replayItems = []), t.defaults) + { + if (n.roomId = "", n.title = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.startTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.startTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.endTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.endTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.liveTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.liveTime = t.longs === String ? "0" : 0; + if (n.categoryName = "", n.coverUrl = "", n.canPublish = !1, a.Long) + { + r = new a.Long(0, 0, !1); + n.publishStatus = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.publishStatus = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.highlightStatus = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.highlightStatus = t.longs === String ? "0" : 0 + } + if (null != e.roomId && e.hasOwnProperty("roomId") && (n.roomId = e.roomId), null != e.title && e.hasOwnProperty("title") && (n.title = e.title), null != e.startTime && e.hasOwnProperty("startTime") && ("number" == typeof e.startTime ? n.startTime = t.longs === String ? String(e.startTime) : e.startTime : n.startTime = t.longs === String ? a.Long.prototype.toString.call(e.startTime) : t.longs === Number ? new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber() : e.startTime), null != e.endTime && e.hasOwnProperty("endTime") && ("number" == typeof e.endTime ? n.endTime = t.longs === String ? String(e.endTime) : e.endTime : n.endTime = t.longs === String ? a.Long.prototype.toString.call(e.endTime) : t.longs === Number ? new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber() : e.endTime), null != e.liveTime && e.hasOwnProperty("liveTime") && ("number" == typeof e.liveTime ? n.liveTime = t.longs === String ? String(e.liveTime) : e.liveTime : n.liveTime = t.longs === String ? a.Long.prototype.toString.call(e.liveTime) : t.longs === Number ? new a.LongBits(e.liveTime.low >>> 0, e.liveTime.high >>> 0).toNumber() : e.liveTime), e.replayItems && e.replayItems.length) + { + n.replayItems = []; + for (var o = 0; o < e.replayItems.length; ++o) n.replayItems[o] = l.webcast.data.ReplayInfo.ReplayItem.toObject(e.replayItems[o], t) + } + return null != e.categoryName && e.hasOwnProperty("categoryName") && (n.categoryName = e.categoryName), null != e.coverUrl && e.hasOwnProperty("coverUrl") && (n.coverUrl = e.coverUrl), null != e.canPublish && e.hasOwnProperty("canPublish") && (n.canPublish = e.canPublish), null != e.publishStatus && e.hasOwnProperty("publishStatus") && ("number" == typeof e.publishStatus ? n.publishStatus = t.longs === String ? String(e.publishStatus) : e.publishStatus : n.publishStatus = t.longs === String ? a.Long.prototype.toString.call(e.publishStatus) : t.longs === Number ? new a.LongBits(e.publishStatus.low >>> 0, e.publishStatus.high >>> 0).toNumber() : e.publishStatus), null != e.highlightStatus && e.hasOwnProperty("highlightStatus") && ("number" == typeof e.highlightStatus ? n.highlightStatus = t.longs === String ? String(e.highlightStatus) : e.highlightStatus : n.highlightStatus = t.longs === String ? a.Long.prototype.toString.call(e.highlightStatus) : t.longs === Number ? new a.LongBits(e.highlightStatus.low >>> 0, e.highlightStatus.high >>> 0).toNumber() : e.highlightStatus), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.ReplayItem = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.duration = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.startTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.endTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.videoType = "", e.prototype.url = "", e.prototype.canDownload = !1, e.prototype.replayId = "", e.prototype.vid = "", e.prototype.originVid = "", e.prototype.transcodeStatus = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.duration && Object.hasOwnProperty.call(e, "duration") && t.uint32(8).int64(e.duration), null != e.startTime && Object.hasOwnProperty.call(e, "startTime") && t.uint32(16).int64(e.startTime), null != e.endTime && Object.hasOwnProperty.call(e, "endTime") && t.uint32(24).int64(e.endTime), null != e.videoType && Object.hasOwnProperty.call(e, "videoType") && t.uint32(34).string(e.videoType), null != e.url && Object.hasOwnProperty.call(e, "url") && t.uint32(42).string(e.url), null != e.canDownload && Object.hasOwnProperty.call(e, "canDownload") && t.uint32(48).bool(e.canDownload), null != e.replayId && Object.hasOwnProperty.call(e, "replayId") && t.uint32(58).string(e.replayId), null != e.vid && Object.hasOwnProperty.call(e, "vid") && t.uint32(66).string(e.vid), null != e.originVid && Object.hasOwnProperty.call(e, "originVid") && t.uint32(74).string(e.originVid), null != e.transcodeStatus && Object.hasOwnProperty.call(e, "transcodeStatus") && t.uint32(80).int64(e.transcodeStatus), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ReplayInfo.ReplayItem; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.duration = e.int64(); + break; + case 2: + r.startTime = e.int64(); + break; + case 3: + r.endTime = e.int64(); + break; + case 4: + r.videoType = e.string(); + break; + case 5: + r.url = e.string(); + break; + case 6: + r.canDownload = e.bool(); + break; + case 7: + r.replayId = e.string(); + break; + case 8: + r.vid = e.string(); + break; + case 9: + r.originVid = e.string(); + break; + case 10: + r.transcodeStatus = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.duration && e.hasOwnProperty("duration") && !(a.isInteger(e.duration) || e.duration && a.isInteger(e.duration.low) && a.isInteger(e.duration.high)) ? "duration: integer|Long expected" : null != e.startTime && e.hasOwnProperty("startTime") && !(a.isInteger(e.startTime) || e.startTime && a.isInteger(e.startTime.low) && a.isInteger(e.startTime.high)) ? "startTime: integer|Long expected" : null != e.endTime && e.hasOwnProperty("endTime") && !(a.isInteger(e.endTime) || e.endTime && a.isInteger(e.endTime.low) && a.isInteger(e.endTime.high)) ? "endTime: integer|Long expected" : null != e.videoType && e.hasOwnProperty("videoType") && !a.isString(e.videoType) ? "videoType: string expected" : null != e.url && e.hasOwnProperty("url") && !a.isString(e.url) ? "url: string expected" : null != e.canDownload && e.hasOwnProperty("canDownload") && "boolean" != typeof e.canDownload ? "canDownload: boolean expected" : null != e.replayId && e.hasOwnProperty("replayId") && !a.isString(e.replayId) ? "replayId: string expected" : null != e.vid && e.hasOwnProperty("vid") && !a.isString(e.vid) ? "vid: string expected" : null != e.originVid && e.hasOwnProperty("originVid") && !a.isString(e.originVid) ? "originVid: string expected" : null != e.transcodeStatus && e.hasOwnProperty("transcodeStatus") && !(a.isInteger(e.transcodeStatus) || e.transcodeStatus && a.isInteger(e.transcodeStatus.low) && a.isInteger(e.transcodeStatus.high)) ? "transcodeStatus: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ReplayInfo.ReplayItem) return e; + var t = new l.webcast.data.ReplayInfo.ReplayItem; + return null != e.duration && (a.Long ? (t.duration = a.Long.fromValue(e.duration)).unsigned = !1 : "string" == typeof e.duration ? t.duration = parseInt(e.duration, 10) : "number" == typeof e.duration ? t.duration = e.duration : "object" == typeof e.duration && (t.duration = new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber())), null != e.startTime && (a.Long ? (t.startTime = a.Long.fromValue(e.startTime)).unsigned = !1 : "string" == typeof e.startTime ? t.startTime = parseInt(e.startTime, 10) : "number" == typeof e.startTime ? t.startTime = e.startTime : "object" == typeof e.startTime && (t.startTime = new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber())), null != e.endTime && (a.Long ? (t.endTime = a.Long.fromValue(e.endTime)).unsigned = !1 : "string" == typeof e.endTime ? t.endTime = parseInt(e.endTime, 10) : "number" == typeof e.endTime ? t.endTime = e.endTime : "object" == typeof e.endTime && (t.endTime = new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber())), null != e.videoType && (t.videoType = String(e.videoType)), null != e.url && (t.url = String(e.url)), null != e.canDownload && (t.canDownload = Boolean(e.canDownload)), null != e.replayId && (t.replayId = String(e.replayId)), null != e.vid && (t.vid = String(e.vid)), null != e.originVid && (t.originVid = String(e.originVid)), null != e.transcodeStatus && (a.Long ? (t.transcodeStatus = a.Long.fromValue(e.transcodeStatus)).unsigned = !1 : "string" == typeof e.transcodeStatus ? t.transcodeStatus = parseInt(e.transcodeStatus, 10) : "number" == typeof e.transcodeStatus ? t.transcodeStatus = e.transcodeStatus : "object" == typeof e.transcodeStatus && (t.transcodeStatus = new a.LongBits(e.transcodeStatus.low >>> 0, e.transcodeStatus.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.duration = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.duration = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.startTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.startTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.endTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.endTime = t.longs === String ? "0" : 0; + if (n.videoType = "", n.url = "", n.canDownload = !1, n.replayId = "", n.vid = "", n.originVid = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.transcodeStatus = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.transcodeStatus = t.longs === String ? "0" : 0 + } + return null != e.duration && e.hasOwnProperty("duration") && ("number" == typeof e.duration ? n.duration = t.longs === String ? String(e.duration) : e.duration : n.duration = t.longs === String ? a.Long.prototype.toString.call(e.duration) : t.longs === Number ? new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber() : e.duration), null != e.startTime && e.hasOwnProperty("startTime") && ("number" == typeof e.startTime ? n.startTime = t.longs === String ? String(e.startTime) : e.startTime : n.startTime = t.longs === String ? a.Long.prototype.toString.call(e.startTime) : t.longs === Number ? new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber() : e.startTime), null != e.endTime && e.hasOwnProperty("endTime") && ("number" == typeof e.endTime ? n.endTime = t.longs === String ? String(e.endTime) : e.endTime : n.endTime = t.longs === String ? a.Long.prototype.toString.call(e.endTime) : t.longs === Number ? new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber() : e.endTime), null != e.videoType && e.hasOwnProperty("videoType") && (n.videoType = e.videoType), null != e.url && e.hasOwnProperty("url") && (n.url = e.url), null != e.canDownload && e.hasOwnProperty("canDownload") && (n.canDownload = e.canDownload), null != e.replayId && e.hasOwnProperty("replayId") && (n.replayId = e.replayId), null != e.vid && e.hasOwnProperty("vid") && (n.vid = e.vid), null != e.originVid && e.hasOwnProperty("originVid") && (n.originVid = e.originVid), null != e.transcodeStatus && e.hasOwnProperty("transcodeStatus") && ("number" == typeof e.transcodeStatus ? n.transcodeStatus = t.longs === String ? String(e.transcodeStatus) : e.transcodeStatus : n.transcodeStatus = t.longs === String ? a.Long.prototype.toString.call(e.transcodeStatus) : t.longs === Number ? new a.LongBits(e.transcodeStatus.low >>> 0, e.transcodeStatus.high >>> 0).toNumber() : e.transcodeStatus), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.LiveFragment = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.roomId = "", e.prototype.fragmentId = "", e.prototype.duration = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.coverUrl = "", e.prototype.startTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.endTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.status = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.playUrl = "", e.prototype.reason = "", e.prototype.reasonVal = "", e.prototype.vid = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.roomId && Object.hasOwnProperty.call(e, "roomId") && t.uint32(10).string(e.roomId), null != e.fragmentId && Object.hasOwnProperty.call(e, "fragmentId") && t.uint32(18).string(e.fragmentId), null != e.duration && Object.hasOwnProperty.call(e, "duration") && t.uint32(24).int64(e.duration), null != e.coverUrl && Object.hasOwnProperty.call(e, "coverUrl") && t.uint32(34).string(e.coverUrl), null != e.startTime && Object.hasOwnProperty.call(e, "startTime") && t.uint32(40).int64(e.startTime), null != e.endTime && Object.hasOwnProperty.call(e, "endTime") && t.uint32(48).int64(e.endTime), null != e.status && Object.hasOwnProperty.call(e, "status") && t.uint32(56).int64(e.status), null != e.playUrl && Object.hasOwnProperty.call(e, "playUrl") && t.uint32(66).string(e.playUrl), null != e.reason && Object.hasOwnProperty.call(e, "reason") && t.uint32(74).string(e.reason), null != e.reasonVal && Object.hasOwnProperty.call(e, "reasonVal") && t.uint32(82).string(e.reasonVal), null != e.vid && Object.hasOwnProperty.call(e, "vid") && t.uint32(90).string(e.vid), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LiveFragment; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.roomId = e.string(); + break; + case 2: + r.fragmentId = e.string(); + break; + case 3: + r.duration = e.int64(); + break; + case 4: + r.coverUrl = e.string(); + break; + case 5: + r.startTime = e.int64(); + break; + case 6: + r.endTime = e.int64(); + break; + case 7: + r.status = e.int64(); + break; + case 8: + r.playUrl = e.string(); + break; + case 9: + r.reason = e.string(); + break; + case 10: + r.reasonVal = e.string(); + break; + case 11: + r.vid = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.roomId && e.hasOwnProperty("roomId") && !a.isString(e.roomId) ? "roomId: string expected" : null != e.fragmentId && e.hasOwnProperty("fragmentId") && !a.isString(e.fragmentId) ? "fragmentId: string expected" : null != e.duration && e.hasOwnProperty("duration") && !(a.isInteger(e.duration) || e.duration && a.isInteger(e.duration.low) && a.isInteger(e.duration.high)) ? "duration: integer|Long expected" : null != e.coverUrl && e.hasOwnProperty("coverUrl") && !a.isString(e.coverUrl) ? "coverUrl: string expected" : null != e.startTime && e.hasOwnProperty("startTime") && !(a.isInteger(e.startTime) || e.startTime && a.isInteger(e.startTime.low) && a.isInteger(e.startTime.high)) ? "startTime: integer|Long expected" : null != e.endTime && e.hasOwnProperty("endTime") && !(a.isInteger(e.endTime) || e.endTime && a.isInteger(e.endTime.low) && a.isInteger(e.endTime.high)) ? "endTime: integer|Long expected" : null != e.status && e.hasOwnProperty("status") && !(a.isInteger(e.status) || e.status && a.isInteger(e.status.low) && a.isInteger(e.status.high)) ? "status: integer|Long expected" : null != e.playUrl && e.hasOwnProperty("playUrl") && !a.isString(e.playUrl) ? "playUrl: string expected" : null != e.reason && e.hasOwnProperty("reason") && !a.isString(e.reason) ? "reason: string expected" : null != e.reasonVal && e.hasOwnProperty("reasonVal") && !a.isString(e.reasonVal) ? "reasonVal: string expected" : null != e.vid && e.hasOwnProperty("vid") && !a.isString(e.vid) ? "vid: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LiveFragment) return e; + var t = new l.webcast.data.LiveFragment; + return null != e.roomId && (t.roomId = String(e.roomId)), null != e.fragmentId && (t.fragmentId = String(e.fragmentId)), null != e.duration && (a.Long ? (t.duration = a.Long.fromValue(e.duration)).unsigned = !1 : "string" == typeof e.duration ? t.duration = parseInt(e.duration, 10) : "number" == typeof e.duration ? t.duration = e.duration : "object" == typeof e.duration && (t.duration = new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber())), null != e.coverUrl && (t.coverUrl = String(e.coverUrl)), null != e.startTime && (a.Long ? (t.startTime = a.Long.fromValue(e.startTime)).unsigned = !1 : "string" == typeof e.startTime ? t.startTime = parseInt(e.startTime, 10) : "number" == typeof e.startTime ? t.startTime = e.startTime : "object" == typeof e.startTime && (t.startTime = new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber())), null != e.endTime && (a.Long ? (t.endTime = a.Long.fromValue(e.endTime)).unsigned = !1 : "string" == typeof e.endTime ? t.endTime = parseInt(e.endTime, 10) : "number" == typeof e.endTime ? t.endTime = e.endTime : "object" == typeof e.endTime && (t.endTime = new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber())), null != e.status && (a.Long ? (t.status = a.Long.fromValue(e.status)).unsigned = !1 : "string" == typeof e.status ? t.status = parseInt(e.status, 10) : "number" == typeof e.status ? t.status = e.status : "object" == typeof e.status && (t.status = new a.LongBits(e.status.low >>> 0, e.status.high >>> 0).toNumber())), null != e.playUrl && (t.playUrl = String(e.playUrl)), null != e.reason && (t.reason = String(e.reason)), null != e.reasonVal && (t.reasonVal = String(e.reasonVal)), null != e.vid && (t.vid = String(e.vid)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.roomId = "", n.fragmentId = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.duration = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.duration = t.longs === String ? "0" : 0; + if (n.coverUrl = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.startTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.startTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.endTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.endTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.status = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.status = t.longs === String ? "0" : 0; + n.playUrl = "", n.reason = "", n.reasonVal = "", n.vid = "" + } + return null != e.roomId && e.hasOwnProperty("roomId") && (n.roomId = e.roomId), null != e.fragmentId && e.hasOwnProperty("fragmentId") && (n.fragmentId = e.fragmentId), null != e.duration && e.hasOwnProperty("duration") && ("number" == typeof e.duration ? n.duration = t.longs === String ? String(e.duration) : e.duration : n.duration = t.longs === String ? a.Long.prototype.toString.call(e.duration) : t.longs === Number ? new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber() : e.duration), null != e.coverUrl && e.hasOwnProperty("coverUrl") && (n.coverUrl = e.coverUrl), null != e.startTime && e.hasOwnProperty("startTime") && ("number" == typeof e.startTime ? n.startTime = t.longs === String ? String(e.startTime) : e.startTime : n.startTime = t.longs === String ? a.Long.prototype.toString.call(e.startTime) : t.longs === Number ? new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber() : e.startTime), null != e.endTime && e.hasOwnProperty("endTime") && ("number" == typeof e.endTime ? n.endTime = t.longs === String ? String(e.endTime) : e.endTime : n.endTime = t.longs === String ? a.Long.prototype.toString.call(e.endTime) : t.longs === Number ? new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber() : e.endTime), null != e.status && e.hasOwnProperty("status") && ("number" == typeof e.status ? n.status = t.longs === String ? String(e.status) : e.status : n.status = t.longs === String ? a.Long.prototype.toString.call(e.status) : t.longs === Number ? new a.LongBits(e.status.low >>> 0, e.status.high >>> 0).toNumber() : e.status), null != e.playUrl && e.hasOwnProperty("playUrl") && (n.playUrl = e.playUrl), null != e.reason && e.hasOwnProperty("reason") && (n.reason = e.reason), null != e.reasonVal && e.hasOwnProperty("reasonVal") && (n.reasonVal = e.reasonVal), null != e.vid && e.hasOwnProperty("vid") && (n.vid = e.vid), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.SrcStreamType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "PushType"] = 0, t[e[1] = "PullForward"] = 1, t + }(), e.Cover = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.uri = "", e.prototype.width = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.height = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.uri && Object.hasOwnProperty.call(e, "uri") && t.uint32(10).string(e.uri), null != e.width && Object.hasOwnProperty.call(e, "width") && t.uint32(16).int64(e.width), null != e.height && Object.hasOwnProperty.call(e, "height") && t.uint32(24).int64(e.height), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.Cover; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.uri = e.string(); + break; + case 2: + r.width = e.int64(); + break; + case 3: + r.height = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.uri && e.hasOwnProperty("uri") && !a.isString(e.uri) ? "uri: string expected" : null != e.width && e.hasOwnProperty("width") && !(a.isInteger(e.width) || e.width && a.isInteger(e.width.low) && a.isInteger(e.width.high)) ? "width: integer|Long expected" : null != e.height && e.hasOwnProperty("height") && !(a.isInteger(e.height) || e.height && a.isInteger(e.height.low) && a.isInteger(e.height.high)) ? "height: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.Cover) return e; + var t = new l.webcast.data.Cover; + return null != e.uri && (t.uri = String(e.uri)), null != e.width && (a.Long ? (t.width = a.Long.fromValue(e.width)).unsigned = !1 : "string" == typeof e.width ? t.width = parseInt(e.width, 10) : "number" == typeof e.width ? t.width = e.width : "object" == typeof e.width && (t.width = new a.LongBits(e.width.low >>> 0, e.width.high >>> 0).toNumber())), null != e.height && (a.Long ? (t.height = a.Long.fromValue(e.height)).unsigned = !1 : "string" == typeof e.height ? t.height = parseInt(e.height, 10) : "number" == typeof e.height ? t.height = e.height : "object" == typeof e.height && (t.height = new a.LongBits(e.height.low >>> 0, e.height.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.uri = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.width = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.width = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.height = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.height = t.longs === String ? "0" : 0 + } + return null != e.uri && e.hasOwnProperty("uri") && (n.uri = e.uri), null != e.width && e.hasOwnProperty("width") && ("number" == typeof e.width ? n.width = t.longs === String ? String(e.width) : e.width : n.width = t.longs === String ? a.Long.prototype.toString.call(e.width) : t.longs === Number ? new a.LongBits(e.width.low >>> 0, e.width.high >>> 0).toNumber() : e.width), null != e.height && e.hasOwnProperty("height") && ("number" == typeof e.height ? n.height = t.longs === String ? String(e.height) : e.height : n.height = t.longs === String ? a.Long.prototype.toString.call(e.height) : t.longs === Number ? new a.LongBits(e.height.low >>> 0, e.height.high >>> 0).toNumber() : e.height), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.CategoryInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.categoryId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.categoryName = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.categoryId && Object.hasOwnProperty.call(e, "categoryId") && t.uint32(8).int64(e.categoryId), null != e.categoryName && Object.hasOwnProperty.call(e, "categoryName") && t.uint32(18).string(e.categoryName), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.CategoryInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.categoryId = e.int64(); + break; + case 2: + r.categoryName = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.categoryId && e.hasOwnProperty("categoryId") && !(a.isInteger(e.categoryId) || e.categoryId && a.isInteger(e.categoryId.low) && a.isInteger(e.categoryId.high)) ? "categoryId: integer|Long expected" : null != e.categoryName && e.hasOwnProperty("categoryName") && !a.isString(e.categoryName) ? "categoryName: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.CategoryInfo) return e; + var t = new l.webcast.data.CategoryInfo; + return null != e.categoryId && (a.Long ? (t.categoryId = a.Long.fromValue(e.categoryId)).unsigned = !1 : "string" == typeof e.categoryId ? t.categoryId = parseInt(e.categoryId, 10) : "number" == typeof e.categoryId ? t.categoryId = e.categoryId : "object" == typeof e.categoryId && (t.categoryId = new a.LongBits(e.categoryId.low >>> 0, e.categoryId.high >>> 0).toNumber())), null != e.categoryName && (t.categoryName = String(e.categoryName)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.categoryId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.categoryId = t.longs === String ? "0" : 0; + n.categoryName = "" + } + return null != e.categoryId && e.hasOwnProperty("categoryId") && ("number" == typeof e.categoryId ? n.categoryId = t.longs === String ? String(e.categoryId) : e.categoryId : n.categoryId = t.longs === String ? a.Long.prototype.toString.call(e.categoryId) : t.longs === Number ? new a.LongBits(e.categoryId.low >>> 0, e.categoryId.high >>> 0).toNumber() : e.categoryId), null != e.categoryName && e.hasOwnProperty("categoryName") && (n.categoryName = e.categoryName), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.RoomSwitcher = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.chat = !1, e.prototype.danmaku = !1, e.prototype.gift = !1, e.prototype.share = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.chat && Object.hasOwnProperty.call(e, "chat") && t.uint32(8).bool(e.chat), null != e.danmaku && Object.hasOwnProperty.call(e, "danmaku") && t.uint32(16).bool(e.danmaku), null != e.gift && Object.hasOwnProperty.call(e, "gift") && t.uint32(24).bool(e.gift), null != e.share && Object.hasOwnProperty.call(e, "share") && t.uint32(32).bool(e.share), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RoomSwitcher; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.chat = e.bool(); + break; + case 2: + r.danmaku = e.bool(); + break; + case 3: + r.gift = e.bool(); + break; + case 4: + r.share = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.chat && e.hasOwnProperty("chat") && "boolean" != typeof e.chat ? "chat: boolean expected" : null != e.danmaku && e.hasOwnProperty("danmaku") && "boolean" != typeof e.danmaku ? "danmaku: boolean expected" : null != e.gift && e.hasOwnProperty("gift") && "boolean" != typeof e.gift ? "gift: boolean expected" : null != e.share && e.hasOwnProperty("share") && "boolean" != typeof e.share ? "share: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RoomSwitcher) return e; + var t = new l.webcast.data.RoomSwitcher; + return null != e.chat && (t.chat = Boolean(e.chat)), null != e.danmaku && (t.danmaku = Boolean(e.danmaku)), null != e.gift && (t.gift = Boolean(e.gift)), null != e.share && (t.share = Boolean(e.share)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.chat = !1, n.danmaku = !1, n.gift = !1, n.share = !1), null != e.chat && e.hasOwnProperty("chat") && (n.chat = e.chat), null != e.danmaku && e.hasOwnProperty("danmaku") && (n.danmaku = e.danmaku), null != e.gift && e.hasOwnProperty("gift") && (n.gift = e.gift), null != e.share && e.hasOwnProperty("share") && (n.share = e.share), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.SimpleRoomInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.roomId = "", e.prototype.srcStreamType = 0, e.prototype.title = "", e.prototype.introduction = "", e.prototype.bookStartTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.bookEndTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.coverUri = "", e.prototype.testRoom = !1, e.prototype.roomSwitchers = null, e.prototype.streamSrcAddr = "", e.prototype.genReplay = !1, e.prototype.roomAuditStatus = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.roomStatus = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.audienceCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.StreamPullUrl = "", e.prototype.StreamPushUrl = "", e.prototype.coverUrl = "", e.prototype.shareCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.commentCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.shareUrl = "", e.prototype.auditFailReason = "", e.prototype.replayEditInfo = null, e.prototype.createTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.startTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.finishTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.announcement = "", e.prototype.categoryId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.backupStreamPushUrl = "", e.prototype.autoCloseInterval = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.enableBookClose = !1, e.prototype.backupStreamSrcAddr = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.roomId && Object.hasOwnProperty.call(e, "roomId") && t.uint32(10).string(e.roomId), null != e.srcStreamType && Object.hasOwnProperty.call(e, "srcStreamType") && t.uint32(16).int32(e.srcStreamType), null != e.title && Object.hasOwnProperty.call(e, "title") && t.uint32(26).string(e.title), null != e.introduction && Object.hasOwnProperty.call(e, "introduction") && t.uint32(34).string(e.introduction), null != e.bookStartTime && Object.hasOwnProperty.call(e, "bookStartTime") && t.uint32(40).int64(e.bookStartTime), null != e.bookEndTime && Object.hasOwnProperty.call(e, "bookEndTime") && t.uint32(48).int64(e.bookEndTime), null != e.coverUri && Object.hasOwnProperty.call(e, "coverUri") && t.uint32(58).string(e.coverUri), null != e.testRoom && Object.hasOwnProperty.call(e, "testRoom") && t.uint32(64).bool(e.testRoom), null != e.roomSwitchers && Object.hasOwnProperty.call(e, "roomSwitchers") && l.webcast.data.RoomSwitcher.encode(e.roomSwitchers, t.uint32(74).fork()).ldelim(), null != e.streamSrcAddr && Object.hasOwnProperty.call(e, "streamSrcAddr") && t.uint32(82).string(e.streamSrcAddr), null != e.genReplay && Object.hasOwnProperty.call(e, "genReplay") && t.uint32(88).bool(e.genReplay), null != e.roomAuditStatus && Object.hasOwnProperty.call(e, "roomAuditStatus") && t.uint32(96).int64(e.roomAuditStatus), null != e.roomStatus && Object.hasOwnProperty.call(e, "roomStatus") && t.uint32(104).int64(e.roomStatus), null != e.audienceCount && Object.hasOwnProperty.call(e, "audienceCount") && t.uint32(112).int64(e.audienceCount), null != e.StreamPullUrl && Object.hasOwnProperty.call(e, "StreamPullUrl") && t.uint32(122).string(e.StreamPullUrl), null != e.StreamPushUrl && Object.hasOwnProperty.call(e, "StreamPushUrl") && t.uint32(130).string(e.StreamPushUrl), null != e.coverUrl && Object.hasOwnProperty.call(e, "coverUrl") && t.uint32(138).string(e.coverUrl), null != e.shareCount && Object.hasOwnProperty.call(e, "shareCount") && t.uint32(144).int64(e.shareCount), null != e.commentCount && Object.hasOwnProperty.call(e, "commentCount") && t.uint32(152).int64(e.commentCount), null != e.shareUrl && Object.hasOwnProperty.call(e, "shareUrl") && t.uint32(162).string(e.shareUrl), null != e.auditFailReason && Object.hasOwnProperty.call(e, "auditFailReason") && t.uint32(170).string(e.auditFailReason), null != e.replayEditInfo && Object.hasOwnProperty.call(e, "replayEditInfo") && l.webcast.data.ReplayEditInfo.encode(e.replayEditInfo, t.uint32(178).fork()).ldelim(), null != e.createTime && Object.hasOwnProperty.call(e, "createTime") && t.uint32(184).int64(e.createTime), null != e.startTime && Object.hasOwnProperty.call(e, "startTime") && t.uint32(192).int64(e.startTime), null != e.finishTime && Object.hasOwnProperty.call(e, "finishTime") && t.uint32(200).int64(e.finishTime), null != e.announcement && Object.hasOwnProperty.call(e, "announcement") && t.uint32(210).string(e.announcement), null != e.categoryId && Object.hasOwnProperty.call(e, "categoryId") && t.uint32(216).int64(e.categoryId), null != e.backupStreamPushUrl && Object.hasOwnProperty.call(e, "backupStreamPushUrl") && t.uint32(226).string(e.backupStreamPushUrl), null != e.autoCloseInterval && Object.hasOwnProperty.call(e, "autoCloseInterval") && t.uint32(232).int64(e.autoCloseInterval), null != e.enableBookClose && Object.hasOwnProperty.call(e, "enableBookClose") && t.uint32(240).bool(e.enableBookClose), null != e.backupStreamSrcAddr && Object.hasOwnProperty.call(e, "backupStreamSrcAddr") && t.uint32(250).string(e.backupStreamSrcAddr), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.SimpleRoomInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.roomId = e.string(); + break; + case 2: + r.srcStreamType = e.int32(); + break; + case 3: + r.title = e.string(); + break; + case 4: + r.introduction = e.string(); + break; + case 5: + r.bookStartTime = e.int64(); + break; + case 6: + r.bookEndTime = e.int64(); + break; + case 7: + r.coverUri = e.string(); + break; + case 8: + r.testRoom = e.bool(); + break; + case 9: + r.roomSwitchers = l.webcast.data.RoomSwitcher.decode(e, e.uint32()); + break; + case 10: + r.streamSrcAddr = e.string(); + break; + case 11: + r.genReplay = e.bool(); + break; + case 12: + r.roomAuditStatus = e.int64(); + break; + case 13: + r.roomStatus = e.int64(); + break; + case 14: + r.audienceCount = e.int64(); + break; + case 15: + r.StreamPullUrl = e.string(); + break; + case 16: + r.StreamPushUrl = e.string(); + break; + case 17: + r.coverUrl = e.string(); + break; + case 18: + r.shareCount = e.int64(); + break; + case 19: + r.commentCount = e.int64(); + break; + case 20: + r.shareUrl = e.string(); + break; + case 21: + r.auditFailReason = e.string(); + break; + case 22: + r.replayEditInfo = l.webcast.data.ReplayEditInfo.decode(e, e.uint32()); + break; + case 23: + r.createTime = e.int64(); + break; + case 24: + r.startTime = e.int64(); + break; + case 25: + r.finishTime = e.int64(); + break; + case 26: + r.announcement = e.string(); + break; + case 27: + r.categoryId = e.int64(); + break; + case 28: + r.backupStreamPushUrl = e.string(); + break; + case 29: + r.autoCloseInterval = e.int64(); + break; + case 30: + r.enableBookClose = e.bool(); + break; + case 31: + r.backupStreamSrcAddr = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.roomId && e.hasOwnProperty("roomId") && !a.isString(e.roomId)) return "roomId: string expected"; + if (null != e.srcStreamType && e.hasOwnProperty("srcStreamType")) switch (e.srcStreamType) + { + default: + return "srcStreamType: enum value expected"; + case 0: + case 1: + } + if (null != e.title && e.hasOwnProperty("title") && !a.isString(e.title)) return "title: string expected"; + if (null != e.introduction && e.hasOwnProperty("introduction") && !a.isString(e.introduction)) return "introduction: string expected"; + if (null != e.bookStartTime && e.hasOwnProperty("bookStartTime") && !(a.isInteger(e.bookStartTime) || e.bookStartTime && a.isInteger(e.bookStartTime.low) && a.isInteger(e.bookStartTime.high))) return "bookStartTime: integer|Long expected"; + if (null != e.bookEndTime && e.hasOwnProperty("bookEndTime") && !(a.isInteger(e.bookEndTime) || e.bookEndTime && a.isInteger(e.bookEndTime.low) && a.isInteger(e.bookEndTime.high))) return "bookEndTime: integer|Long expected"; + if (null != e.coverUri && e.hasOwnProperty("coverUri") && !a.isString(e.coverUri)) return "coverUri: string expected"; + if (null != e.testRoom && e.hasOwnProperty("testRoom") && "boolean" != typeof e.testRoom) return "testRoom: boolean expected"; + var t; + if (null != e.roomSwitchers && e.hasOwnProperty("roomSwitchers") && (t = l.webcast.data.RoomSwitcher.verify(e.roomSwitchers))) return "roomSwitchers." + t; + if (null != e.streamSrcAddr && e.hasOwnProperty("streamSrcAddr") && !a.isString(e.streamSrcAddr)) return "streamSrcAddr: string expected"; + if (null != e.genReplay && e.hasOwnProperty("genReplay") && "boolean" != typeof e.genReplay) return "genReplay: boolean expected"; + if (null != e.roomAuditStatus && e.hasOwnProperty("roomAuditStatus") && !(a.isInteger(e.roomAuditStatus) || e.roomAuditStatus && a.isInteger(e.roomAuditStatus.low) && a.isInteger(e.roomAuditStatus.high))) return "roomAuditStatus: integer|Long expected"; + if (null != e.roomStatus && e.hasOwnProperty("roomStatus") && !(a.isInteger(e.roomStatus) || e.roomStatus && a.isInteger(e.roomStatus.low) && a.isInteger(e.roomStatus.high))) return "roomStatus: integer|Long expected"; + if (null != e.audienceCount && e.hasOwnProperty("audienceCount") && !(a.isInteger(e.audienceCount) || e.audienceCount && a.isInteger(e.audienceCount.low) && a.isInteger(e.audienceCount.high))) return "audienceCount: integer|Long expected"; + if (null != e.StreamPullUrl && e.hasOwnProperty("StreamPullUrl") && !a.isString(e.StreamPullUrl)) return "StreamPullUrl: string expected"; + if (null != e.StreamPushUrl && e.hasOwnProperty("StreamPushUrl") && !a.isString(e.StreamPushUrl)) return "StreamPushUrl: string expected"; + if (null != e.coverUrl && e.hasOwnProperty("coverUrl") && !a.isString(e.coverUrl)) return "coverUrl: string expected"; + if (null != e.shareCount && e.hasOwnProperty("shareCount") && !(a.isInteger(e.shareCount) || e.shareCount && a.isInteger(e.shareCount.low) && a.isInteger(e.shareCount.high))) return "shareCount: integer|Long expected"; + if (null != e.commentCount && e.hasOwnProperty("commentCount") && !(a.isInteger(e.commentCount) || e.commentCount && a.isInteger(e.commentCount.low) && a.isInteger(e.commentCount.high))) return "commentCount: integer|Long expected"; + if (null != e.shareUrl && e.hasOwnProperty("shareUrl") && !a.isString(e.shareUrl)) return "shareUrl: string expected"; + if (null != e.auditFailReason && e.hasOwnProperty("auditFailReason") && !a.isString(e.auditFailReason)) return "auditFailReason: string expected"; + if (null != e.replayEditInfo && e.hasOwnProperty("replayEditInfo") && (t = l.webcast.data.ReplayEditInfo.verify(e.replayEditInfo))) return "replayEditInfo." + t; + return null != e.createTime && e.hasOwnProperty("createTime") && !(a.isInteger(e.createTime) || e.createTime && a.isInteger(e.createTime.low) && a.isInteger(e.createTime.high)) ? "createTime: integer|Long expected" : null != e.startTime && e.hasOwnProperty("startTime") && !(a.isInteger(e.startTime) || e.startTime && a.isInteger(e.startTime.low) && a.isInteger(e.startTime.high)) ? "startTime: integer|Long expected" : null != e.finishTime && e.hasOwnProperty("finishTime") && !(a.isInteger(e.finishTime) || e.finishTime && a.isInteger(e.finishTime.low) && a.isInteger(e.finishTime.high)) ? "finishTime: integer|Long expected" : null != e.announcement && e.hasOwnProperty("announcement") && !a.isString(e.announcement) ? "announcement: string expected" : null != e.categoryId && e.hasOwnProperty("categoryId") && !(a.isInteger(e.categoryId) || e.categoryId && a.isInteger(e.categoryId.low) && a.isInteger(e.categoryId.high)) ? "categoryId: integer|Long expected" : null != e.backupStreamPushUrl && e.hasOwnProperty("backupStreamPushUrl") && !a.isString(e.backupStreamPushUrl) ? "backupStreamPushUrl: string expected" : null != e.autoCloseInterval && e.hasOwnProperty("autoCloseInterval") && !(a.isInteger(e.autoCloseInterval) || e.autoCloseInterval && a.isInteger(e.autoCloseInterval.low) && a.isInteger(e.autoCloseInterval.high)) ? "autoCloseInterval: integer|Long expected" : null != e.enableBookClose && e.hasOwnProperty("enableBookClose") && "boolean" != typeof e.enableBookClose ? "enableBookClose: boolean expected" : null != e.backupStreamSrcAddr && e.hasOwnProperty("backupStreamSrcAddr") && !a.isString(e.backupStreamSrcAddr) ? "backupStreamSrcAddr: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.SimpleRoomInfo) return e; + var t = new l.webcast.data.SimpleRoomInfo; + switch (null != e.roomId && (t.roomId = String(e.roomId)), e.srcStreamType) + { + case "PushType": + case 0: + t.srcStreamType = 0; + break; + case "PullForward": + case 1: + t.srcStreamType = 1 + } + if (null != e.title && (t.title = String(e.title)), null != e.introduction && (t.introduction = String(e.introduction)), null != e.bookStartTime && (a.Long ? (t.bookStartTime = a.Long.fromValue(e.bookStartTime)).unsigned = !1 : "string" == typeof e.bookStartTime ? t.bookStartTime = parseInt(e.bookStartTime, 10) : "number" == typeof e.bookStartTime ? t.bookStartTime = e.bookStartTime : "object" == typeof e.bookStartTime && (t.bookStartTime = new a.LongBits(e.bookStartTime.low >>> 0, e.bookStartTime.high >>> 0).toNumber())), null != e.bookEndTime && (a.Long ? (t.bookEndTime = a.Long.fromValue(e.bookEndTime)).unsigned = !1 : "string" == typeof e.bookEndTime ? t.bookEndTime = parseInt(e.bookEndTime, 10) : "number" == typeof e.bookEndTime ? t.bookEndTime = e.bookEndTime : "object" == typeof e.bookEndTime && (t.bookEndTime = new a.LongBits(e.bookEndTime.low >>> 0, e.bookEndTime.high >>> 0).toNumber())), null != e.coverUri && (t.coverUri = String(e.coverUri)), null != e.testRoom && (t.testRoom = Boolean(e.testRoom)), null != e.roomSwitchers) + { + if ("object" != typeof e.roomSwitchers) throw TypeError(".webcast.data.SimpleRoomInfo.roomSwitchers: object expected"); + t.roomSwitchers = l.webcast.data.RoomSwitcher.fromObject(e.roomSwitchers) + } + if (null != e.streamSrcAddr && (t.streamSrcAddr = String(e.streamSrcAddr)), null != e.genReplay && (t.genReplay = Boolean(e.genReplay)), null != e.roomAuditStatus && (a.Long ? (t.roomAuditStatus = a.Long.fromValue(e.roomAuditStatus)).unsigned = !1 : "string" == typeof e.roomAuditStatus ? t.roomAuditStatus = parseInt(e.roomAuditStatus, 10) : "number" == typeof e.roomAuditStatus ? t.roomAuditStatus = e.roomAuditStatus : "object" == typeof e.roomAuditStatus && (t.roomAuditStatus = new a.LongBits(e.roomAuditStatus.low >>> 0, e.roomAuditStatus.high >>> 0).toNumber())), null != e.roomStatus && (a.Long ? (t.roomStatus = a.Long.fromValue(e.roomStatus)).unsigned = !1 : "string" == typeof e.roomStatus ? t.roomStatus = parseInt(e.roomStatus, 10) : "number" == typeof e.roomStatus ? t.roomStatus = e.roomStatus : "object" == typeof e.roomStatus && (t.roomStatus = new a.LongBits(e.roomStatus.low >>> 0, e.roomStatus.high >>> 0).toNumber())), null != e.audienceCount && (a.Long ? (t.audienceCount = a.Long.fromValue(e.audienceCount)).unsigned = !1 : "string" == typeof e.audienceCount ? t.audienceCount = parseInt(e.audienceCount, 10) : "number" == typeof e.audienceCount ? t.audienceCount = e.audienceCount : "object" == typeof e.audienceCount && (t.audienceCount = new a.LongBits(e.audienceCount.low >>> 0, e.audienceCount.high >>> 0).toNumber())), null != e.StreamPullUrl && (t.StreamPullUrl = String(e.StreamPullUrl)), null != e.StreamPushUrl && (t.StreamPushUrl = String(e.StreamPushUrl)), null != e.coverUrl && (t.coverUrl = String(e.coverUrl)), null != e.shareCount && (a.Long ? (t.shareCount = a.Long.fromValue(e.shareCount)).unsigned = !1 : "string" == typeof e.shareCount ? t.shareCount = parseInt(e.shareCount, 10) : "number" == typeof e.shareCount ? t.shareCount = e.shareCount : "object" == typeof e.shareCount && (t.shareCount = new a.LongBits(e.shareCount.low >>> 0, e.shareCount.high >>> 0).toNumber())), null != e.commentCount && (a.Long ? (t.commentCount = a.Long.fromValue(e.commentCount)).unsigned = !1 : "string" == typeof e.commentCount ? t.commentCount = parseInt(e.commentCount, 10) : "number" == typeof e.commentCount ? t.commentCount = e.commentCount : "object" == typeof e.commentCount && (t.commentCount = new a.LongBits(e.commentCount.low >>> 0, e.commentCount.high >>> 0).toNumber())), null != e.shareUrl && (t.shareUrl = String(e.shareUrl)), null != e.auditFailReason && (t.auditFailReason = String(e.auditFailReason)), null != e.replayEditInfo) + { + if ("object" != typeof e.replayEditInfo) throw TypeError(".webcast.data.SimpleRoomInfo.replayEditInfo: object expected"); + t.replayEditInfo = l.webcast.data.ReplayEditInfo.fromObject(e.replayEditInfo) + } + return null != e.createTime && (a.Long ? (t.createTime = a.Long.fromValue(e.createTime)).unsigned = !1 : "string" == typeof e.createTime ? t.createTime = parseInt(e.createTime, 10) : "number" == typeof e.createTime ? t.createTime = e.createTime : "object" == typeof e.createTime && (t.createTime = new a.LongBits(e.createTime.low >>> 0, e.createTime.high >>> 0).toNumber())), null != e.startTime && (a.Long ? (t.startTime = a.Long.fromValue(e.startTime)).unsigned = !1 : "string" == typeof e.startTime ? t.startTime = parseInt(e.startTime, 10) : "number" == typeof e.startTime ? t.startTime = e.startTime : "object" == typeof e.startTime && (t.startTime = new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber())), null != e.finishTime && (a.Long ? (t.finishTime = a.Long.fromValue(e.finishTime)).unsigned = !1 : "string" == typeof e.finishTime ? t.finishTime = parseInt(e.finishTime, 10) : "number" == typeof e.finishTime ? t.finishTime = e.finishTime : "object" == typeof e.finishTime && (t.finishTime = new a.LongBits(e.finishTime.low >>> 0, e.finishTime.high >>> 0).toNumber())), null != e.announcement && (t.announcement = String(e.announcement)), null != e.categoryId && (a.Long ? (t.categoryId = a.Long.fromValue(e.categoryId)).unsigned = !1 : "string" == typeof e.categoryId ? t.categoryId = parseInt(e.categoryId, 10) : "number" == typeof e.categoryId ? t.categoryId = e.categoryId : "object" == typeof e.categoryId && (t.categoryId = new a.LongBits(e.categoryId.low >>> 0, e.categoryId.high >>> 0).toNumber())), null != e.backupStreamPushUrl && (t.backupStreamPushUrl = String(e.backupStreamPushUrl)), null != e.autoCloseInterval && (a.Long ? (t.autoCloseInterval = a.Long.fromValue(e.autoCloseInterval)).unsigned = !1 : "string" == typeof e.autoCloseInterval ? t.autoCloseInterval = parseInt(e.autoCloseInterval, 10) : "number" == typeof e.autoCloseInterval ? t.autoCloseInterval = e.autoCloseInterval : "object" == typeof e.autoCloseInterval && (t.autoCloseInterval = new a.LongBits(e.autoCloseInterval.low >>> 0, e.autoCloseInterval.high >>> 0).toNumber())), null != e.enableBookClose && (t.enableBookClose = Boolean(e.enableBookClose)), null != e.backupStreamSrcAddr && (t.backupStreamSrcAddr = String(e.backupStreamSrcAddr)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.roomId = "", n.srcStreamType = t.enums === String ? "PushType" : 0, n.title = "", n.introduction = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.bookStartTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.bookStartTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.bookEndTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.bookEndTime = t.longs === String ? "0" : 0; + if (n.coverUri = "", n.testRoom = !1, n.roomSwitchers = null, n.streamSrcAddr = "", n.genReplay = !1, a.Long) + { + r = new a.Long(0, 0, !1); + n.roomAuditStatus = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.roomAuditStatus = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.roomStatus = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.roomStatus = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.audienceCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.audienceCount = t.longs === String ? "0" : 0; + if (n.StreamPullUrl = "", n.StreamPushUrl = "", n.coverUrl = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.shareCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.shareCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.commentCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.commentCount = t.longs === String ? "0" : 0; + if (n.shareUrl = "", n.auditFailReason = "", n.replayEditInfo = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.createTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.createTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.startTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.startTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.finishTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.finishTime = t.longs === String ? "0" : 0; + if (n.announcement = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.categoryId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.categoryId = t.longs === String ? "0" : 0; + if (n.backupStreamPushUrl = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.autoCloseInterval = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.autoCloseInterval = t.longs === String ? "0" : 0; + n.enableBookClose = !1, n.backupStreamSrcAddr = "" + } + return null != e.roomId && e.hasOwnProperty("roomId") && (n.roomId = e.roomId), null != e.srcStreamType && e.hasOwnProperty("srcStreamType") && (n.srcStreamType = t.enums === String ? l.webcast.data.SrcStreamType[e.srcStreamType] : e.srcStreamType), null != e.title && e.hasOwnProperty("title") && (n.title = e.title), null != e.introduction && e.hasOwnProperty("introduction") && (n.introduction = e.introduction), null != e.bookStartTime && e.hasOwnProperty("bookStartTime") && ("number" == typeof e.bookStartTime ? n.bookStartTime = t.longs === String ? String(e.bookStartTime) : e.bookStartTime : n.bookStartTime = t.longs === String ? a.Long.prototype.toString.call(e.bookStartTime) : t.longs === Number ? new a.LongBits(e.bookStartTime.low >>> 0, e.bookStartTime.high >>> 0).toNumber() : e.bookStartTime), null != e.bookEndTime && e.hasOwnProperty("bookEndTime") && ("number" == typeof e.bookEndTime ? n.bookEndTime = t.longs === String ? String(e.bookEndTime) : e.bookEndTime : n.bookEndTime = t.longs === String ? a.Long.prototype.toString.call(e.bookEndTime) : t.longs === Number ? new a.LongBits(e.bookEndTime.low >>> 0, e.bookEndTime.high >>> 0).toNumber() : e.bookEndTime), null != e.coverUri && e.hasOwnProperty("coverUri") && (n.coverUri = e.coverUri), null != e.testRoom && e.hasOwnProperty("testRoom") && (n.testRoom = e.testRoom), null != e.roomSwitchers && e.hasOwnProperty("roomSwitchers") && (n.roomSwitchers = l.webcast.data.RoomSwitcher.toObject(e.roomSwitchers, t)), null != e.streamSrcAddr && e.hasOwnProperty("streamSrcAddr") && (n.streamSrcAddr = e.streamSrcAddr), null != e.genReplay && e.hasOwnProperty("genReplay") && (n.genReplay = e.genReplay), null != e.roomAuditStatus && e.hasOwnProperty("roomAuditStatus") && ("number" == typeof e.roomAuditStatus ? n.roomAuditStatus = t.longs === String ? String(e.roomAuditStatus) : e.roomAuditStatus : n.roomAuditStatus = t.longs === String ? a.Long.prototype.toString.call(e.roomAuditStatus) : t.longs === Number ? new a.LongBits(e.roomAuditStatus.low >>> 0, e.roomAuditStatus.high >>> 0).toNumber() : e.roomAuditStatus), null != e.roomStatus && e.hasOwnProperty("roomStatus") && ("number" == typeof e.roomStatus ? n.roomStatus = t.longs === String ? String(e.roomStatus) : e.roomStatus : n.roomStatus = t.longs === String ? a.Long.prototype.toString.call(e.roomStatus) : t.longs === Number ? new a.LongBits(e.roomStatus.low >>> 0, e.roomStatus.high >>> 0).toNumber() : e.roomStatus), null != e.audienceCount && e.hasOwnProperty("audienceCount") && ("number" == typeof e.audienceCount ? n.audienceCount = t.longs === String ? String(e.audienceCount) : e.audienceCount : n.audienceCount = t.longs === String ? a.Long.prototype.toString.call(e.audienceCount) : t.longs === Number ? new a.LongBits(e.audienceCount.low >>> 0, e.audienceCount.high >>> 0).toNumber() : e.audienceCount), null != e.StreamPullUrl && e.hasOwnProperty("StreamPullUrl") && (n.StreamPullUrl = e.StreamPullUrl), null != e.StreamPushUrl && e.hasOwnProperty("StreamPushUrl") && (n.StreamPushUrl = e.StreamPushUrl), null != e.coverUrl && e.hasOwnProperty("coverUrl") && (n.coverUrl = e.coverUrl), null != e.shareCount && e.hasOwnProperty("shareCount") && ("number" == typeof e.shareCount ? n.shareCount = t.longs === String ? String(e.shareCount) : e.shareCount : n.shareCount = t.longs === String ? a.Long.prototype.toString.call(e.shareCount) : t.longs === Number ? new a.LongBits(e.shareCount.low >>> 0, e.shareCount.high >>> 0).toNumber() : e.shareCount), null != e.commentCount && e.hasOwnProperty("commentCount") && ("number" == typeof e.commentCount ? n.commentCount = t.longs === String ? String(e.commentCount) : e.commentCount : n.commentCount = t.longs === String ? a.Long.prototype.toString.call(e.commentCount) : t.longs === Number ? new a.LongBits(e.commentCount.low >>> 0, e.commentCount.high >>> 0).toNumber() : e.commentCount), null != e.shareUrl && e.hasOwnProperty("shareUrl") && (n.shareUrl = e.shareUrl), null != e.auditFailReason && e.hasOwnProperty("auditFailReason") && (n.auditFailReason = e.auditFailReason), null != e.replayEditInfo && e.hasOwnProperty("replayEditInfo") && (n.replayEditInfo = l.webcast.data.ReplayEditInfo.toObject(e.replayEditInfo, t)), null != e.createTime && e.hasOwnProperty("createTime") && ("number" == typeof e.createTime ? n.createTime = t.longs === String ? String(e.createTime) : e.createTime : n.createTime = t.longs === String ? a.Long.prototype.toString.call(e.createTime) : t.longs === Number ? new a.LongBits(e.createTime.low >>> 0, e.createTime.high >>> 0).toNumber() : e.createTime), null != e.startTime && e.hasOwnProperty("startTime") && ("number" == typeof e.startTime ? n.startTime = t.longs === String ? String(e.startTime) : e.startTime : n.startTime = t.longs === String ? a.Long.prototype.toString.call(e.startTime) : t.longs === Number ? new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber() : e.startTime), null != e.finishTime && e.hasOwnProperty("finishTime") && ("number" == typeof e.finishTime ? n.finishTime = t.longs === String ? String(e.finishTime) : e.finishTime : n.finishTime = t.longs === String ? a.Long.prototype.toString.call(e.finishTime) : t.longs === Number ? new a.LongBits(e.finishTime.low >>> 0, e.finishTime.high >>> 0).toNumber() : e.finishTime), null != e.announcement && e.hasOwnProperty("announcement") && (n.announcement = e.announcement), null != e.categoryId && e.hasOwnProperty("categoryId") && ("number" == typeof e.categoryId ? n.categoryId = t.longs === String ? String(e.categoryId) : e.categoryId : n.categoryId = t.longs === String ? a.Long.prototype.toString.call(e.categoryId) : t.longs === Number ? new a.LongBits(e.categoryId.low >>> 0, e.categoryId.high >>> 0).toNumber() : e.categoryId), null != e.backupStreamPushUrl && e.hasOwnProperty("backupStreamPushUrl") && (n.backupStreamPushUrl = e.backupStreamPushUrl), null != e.autoCloseInterval && e.hasOwnProperty("autoCloseInterval") && ("number" == typeof e.autoCloseInterval ? n.autoCloseInterval = t.longs === String ? String(e.autoCloseInterval) : e.autoCloseInterval : n.autoCloseInterval = t.longs === String ? a.Long.prototype.toString.call(e.autoCloseInterval) : t.longs === Number ? new a.LongBits(e.autoCloseInterval.low >>> 0, e.autoCloseInterval.high >>> 0).toNumber() : e.autoCloseInterval), null != e.enableBookClose && e.hasOwnProperty("enableBookClose") && (n.enableBookClose = e.enableBookClose), null != e.backupStreamSrcAddr && e.hasOwnProperty("backupStreamSrcAddr") && (n.backupStreamSrcAddr = e.backupStreamSrcAddr), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ReplayEditInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.originVid = "", e.prototype.originPlayUrl = "", e.prototype.duration = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.originVid && Object.hasOwnProperty.call(e, "originVid") && t.uint32(10).string(e.originVid), null != e.originPlayUrl && Object.hasOwnProperty.call(e, "originPlayUrl") && t.uint32(18).string(e.originPlayUrl), null != e.duration && Object.hasOwnProperty.call(e, "duration") && t.uint32(24).int64(e.duration), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ReplayEditInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.originVid = e.string(); + break; + case 2: + r.originPlayUrl = e.string(); + break; + case 3: + r.duration = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.originVid && e.hasOwnProperty("originVid") && !a.isString(e.originVid) ? "originVid: string expected" : null != e.originPlayUrl && e.hasOwnProperty("originPlayUrl") && !a.isString(e.originPlayUrl) ? "originPlayUrl: string expected" : null != e.duration && e.hasOwnProperty("duration") && !(a.isInteger(e.duration) || e.duration && a.isInteger(e.duration.low) && a.isInteger(e.duration.high)) ? "duration: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ReplayEditInfo) return e; + var t = new l.webcast.data.ReplayEditInfo; + return null != e.originVid && (t.originVid = String(e.originVid)), null != e.originPlayUrl && (t.originPlayUrl = String(e.originPlayUrl)), null != e.duration && (a.Long ? (t.duration = a.Long.fromValue(e.duration)).unsigned = !1 : "string" == typeof e.duration ? t.duration = parseInt(e.duration, 10) : "number" == typeof e.duration ? t.duration = e.duration : "object" == typeof e.duration && (t.duration = new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + if (n.originVid = "", n.originPlayUrl = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.duration = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.duration = t.longs === String ? "0" : 0; + return null != e.originVid && e.hasOwnProperty("originVid") && (n.originVid = e.originVid), null != e.originPlayUrl && e.hasOwnProperty("originPlayUrl") && (n.originPlayUrl = e.originPlayUrl), null != e.duration && e.hasOwnProperty("duration") && ("number" == typeof e.duration ? n.duration = t.longs === String ? String(e.duration) : e.duration : n.duration = t.longs === String ? a.Long.prototype.toString.call(e.duration) : t.longs === Number ? new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber() : e.duration), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.PatternRef = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.key = "", e.prototype.defaultPattern = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.key && Object.hasOwnProperty.call(e, "key") && t.uint32(10).string(e.key), null != e.defaultPattern && Object.hasOwnProperty.call(e, "defaultPattern") && t.uint32(18).string(e.defaultPattern), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.PatternRef; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.key = e.string(); + break; + case 2: + r.defaultPattern = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.key && e.hasOwnProperty("key") && !a.isString(e.key) ? "key: string expected" : null != e.defaultPattern && e.hasOwnProperty("defaultPattern") && !a.isString(e.defaultPattern) ? "defaultPattern: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.PatternRef) return e; + var t = new l.webcast.data.PatternRef; + return null != e.key && (t.key = String(e.key)), null != e.defaultPattern && (t.defaultPattern = String(e.defaultPattern)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.key = "", n.defaultPattern = ""), null != e.key && e.hasOwnProperty("key") && (n.key = e.key), null != e.defaultPattern && e.hasOwnProperty("defaultPattern") && (n.defaultPattern = e.defaultPattern), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.TextFormat = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.color = "", e.prototype.bold = !1, e.prototype.italic = !1, e.prototype.weight = 0, e.prototype.italicAngle = 0, e.prototype.fontSize = 0, e.prototype.useHeighLightColor = !1, e.prototype.useRemoteClor = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.color && Object.hasOwnProperty.call(e, "color") && t.uint32(10).string(e.color), null != e.bold && Object.hasOwnProperty.call(e, "bold") && t.uint32(16).bool(e.bold), null != e.italic && Object.hasOwnProperty.call(e, "italic") && t.uint32(24).bool(e.italic), null != e.weight && Object.hasOwnProperty.call(e, "weight") && t.uint32(32).int32(e.weight), null != e.italicAngle && Object.hasOwnProperty.call(e, "italicAngle") && t.uint32(40).int32(e.italicAngle), null != e.fontSize && Object.hasOwnProperty.call(e, "fontSize") && t.uint32(48).int32(e.fontSize), null != e.useHeighLightColor && Object.hasOwnProperty.call(e, "useHeighLightColor") && t.uint32(56).bool(e.useHeighLightColor), null != e.useRemoteClor && Object.hasOwnProperty.call(e, "useRemoteClor") && t.uint32(64).bool(e.useRemoteClor), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.TextFormat; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.color = e.string(); + break; + case 2: + r.bold = e.bool(); + break; + case 3: + r.italic = e.bool(); + break; + case 4: + r.weight = e.int32(); + break; + case 5: + r.italicAngle = e.int32(); + break; + case 6: + r.fontSize = e.int32(); + break; + case 7: + r.useHeighLightColor = e.bool(); + break; + case 8: + r.useRemoteClor = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.color && e.hasOwnProperty("color") && !a.isString(e.color) ? "color: string expected" : null != e.bold && e.hasOwnProperty("bold") && "boolean" != typeof e.bold ? "bold: boolean expected" : null != e.italic && e.hasOwnProperty("italic") && "boolean" != typeof e.italic ? "italic: boolean expected" : null != e.weight && e.hasOwnProperty("weight") && !a.isInteger(e.weight) ? "weight: integer expected" : null != e.italicAngle && e.hasOwnProperty("italicAngle") && !a.isInteger(e.italicAngle) ? "italicAngle: integer expected" : null != e.fontSize && e.hasOwnProperty("fontSize") && !a.isInteger(e.fontSize) ? "fontSize: integer expected" : null != e.useHeighLightColor && e.hasOwnProperty("useHeighLightColor") && "boolean" != typeof e.useHeighLightColor ? "useHeighLightColor: boolean expected" : null != e.useRemoteClor && e.hasOwnProperty("useRemoteClor") && "boolean" != typeof e.useRemoteClor ? "useRemoteClor: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.TextFormat) return e; + var t = new l.webcast.data.TextFormat; + return null != e.color && (t.color = String(e.color)), null != e.bold && (t.bold = Boolean(e.bold)), null != e.italic && (t.italic = Boolean(e.italic)), null != e.weight && (t.weight = 0 | e.weight), null != e.italicAngle && (t.italicAngle = 0 | e.italicAngle), null != e.fontSize && (t.fontSize = 0 | e.fontSize), null != e.useHeighLightColor && (t.useHeighLightColor = Boolean(e.useHeighLightColor)), null != e.useRemoteClor && (t.useRemoteClor = Boolean(e.useRemoteClor)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.color = "", n.bold = !1, n.italic = !1, n.weight = 0, n.italicAngle = 0, n.fontSize = 0, n.useHeighLightColor = !1, n.useRemoteClor = !1), null != e.color && e.hasOwnProperty("color") && (n.color = e.color), null != e.bold && e.hasOwnProperty("bold") && (n.bold = e.bold), null != e.italic && e.hasOwnProperty("italic") && (n.italic = e.italic), null != e.weight && e.hasOwnProperty("weight") && (n.weight = e.weight), null != e.italicAngle && e.hasOwnProperty("italicAngle") && (n.italicAngle = e.italicAngle), null != e.fontSize && e.hasOwnProperty("fontSize") && (n.fontSize = e.fontSize), null != e.useHeighLightColor && e.hasOwnProperty("useHeighLightColor") && (n.useHeighLightColor = e.useHeighLightColor), null != e.useRemoteClor && e.hasOwnProperty("useRemoteClor") && (n.useRemoteClor = e.useRemoteClor), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.TextPieceUser = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.user = null, e.prototype.withColon = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.user && Object.hasOwnProperty.call(e, "user") && l.webcast.data.User.encode(e.user, t.uint32(10).fork()).ldelim(), null != e.withColon && Object.hasOwnProperty.call(e, "withColon") && t.uint32(16).bool(e.withColon), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.TextPieceUser; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.user = l.webcast.data.User.decode(e, e.uint32()); + break; + case 2: + r.withColon = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.user && e.hasOwnProperty("user")) + { + var t = l.webcast.data.User.verify(e.user); + if (t) return "user." + t + } + return null != e.withColon && e.hasOwnProperty("withColon") && "boolean" != typeof e.withColon ? "withColon: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.TextPieceUser) return e; + var t = new l.webcast.data.TextPieceUser; + if (null != e.user) + { + if ("object" != typeof e.user) throw TypeError(".webcast.data.TextPieceUser.user: object expected"); + t.user = l.webcast.data.User.fromObject(e.user) + } + return null != e.withColon && (t.withColon = Boolean(e.withColon)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.user = null, n.withColon = !1), null != e.user && e.hasOwnProperty("user") && (n.user = l.webcast.data.User.toObject(e.user, t)), null != e.withColon && e.hasOwnProperty("withColon") && (n.withColon = e.withColon), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.TextPieceGift = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.giftId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.nameRef = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.giftId && Object.hasOwnProperty.call(e, "giftId") && t.uint32(8).int64(e.giftId), null != e.nameRef && Object.hasOwnProperty.call(e, "nameRef") && l.webcast.data.PatternRef.encode(e.nameRef, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.TextPieceGift; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.giftId = e.int64(); + break; + case 2: + r.nameRef = l.webcast.data.PatternRef.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.giftId && e.hasOwnProperty("giftId") && !(a.isInteger(e.giftId) || e.giftId && a.isInteger(e.giftId.low) && a.isInteger(e.giftId.high))) return "giftId: integer|Long expected"; + if (null != e.nameRef && e.hasOwnProperty("nameRef")) + { + var t = l.webcast.data.PatternRef.verify(e.nameRef); + if (t) return "nameRef." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.TextPieceGift) return e; + var t = new l.webcast.data.TextPieceGift; + if (null != e.giftId && (a.Long ? (t.giftId = a.Long.fromValue(e.giftId)).unsigned = !1 : "string" == typeof e.giftId ? t.giftId = parseInt(e.giftId, 10) : "number" == typeof e.giftId ? t.giftId = e.giftId : "object" == typeof e.giftId && (t.giftId = new a.LongBits(e.giftId.low >>> 0, e.giftId.high >>> 0).toNumber())), null != e.nameRef) + { + if ("object" != typeof e.nameRef) throw TypeError(".webcast.data.TextPieceGift.nameRef: object expected"); + t.nameRef = l.webcast.data.PatternRef.fromObject(e.nameRef) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.giftId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.giftId = t.longs === String ? "0" : 0; + n.nameRef = null + } + return null != e.giftId && e.hasOwnProperty("giftId") && ("number" == typeof e.giftId ? n.giftId = t.longs === String ? String(e.giftId) : e.giftId : n.giftId = t.longs === String ? a.Long.prototype.toString.call(e.giftId) : t.longs === Number ? new a.LongBits(e.giftId.low >>> 0, e.giftId.high >>> 0).toNumber() : e.giftId), null != e.nameRef && e.hasOwnProperty("nameRef") && (n.nameRef = l.webcast.data.PatternRef.toObject(e.nameRef, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.TextPieceHeart = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.color = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.color && Object.hasOwnProperty.call(e, "color") && t.uint32(10).string(e.color), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.TextPieceHeart; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.color = e.string(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.color && e.hasOwnProperty("color") && !a.isString(e.color) ? "color: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.TextPieceHeart) return e; + var t = new l.webcast.data.TextPieceHeart; + return null != e.color && (t.color = String(e.color)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.color = ""), null != e.color && e.hasOwnProperty("color") && (n.color = e.color), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.TextPiecePatternRef = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.key = "", e.prototype.defaultPattern = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.key && Object.hasOwnProperty.call(e, "key") && t.uint32(10).string(e.key), null != e.defaultPattern && Object.hasOwnProperty.call(e, "defaultPattern") && t.uint32(18).string(e.defaultPattern), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.TextPiecePatternRef; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.key = e.string(); + break; + case 2: + r.defaultPattern = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.key && e.hasOwnProperty("key") && !a.isString(e.key) ? "key: string expected" : null != e.defaultPattern && e.hasOwnProperty("defaultPattern") && !a.isString(e.defaultPattern) ? "defaultPattern: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.TextPiecePatternRef) return e; + var t = new l.webcast.data.TextPiecePatternRef; + return null != e.key && (t.key = String(e.key)), null != e.defaultPattern && (t.defaultPattern = String(e.defaultPattern)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.key = "", n.defaultPattern = ""), null != e.key && e.hasOwnProperty("key") && (n.key = e.key), null != e.defaultPattern && e.hasOwnProperty("defaultPattern") && (n.defaultPattern = e.defaultPattern), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.TextPieceImage = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.image = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.image && Object.hasOwnProperty.call(e, "image") && l.webcast.data.Image.encode(e.image, t.uint32(10).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.TextPieceImage; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.image = l.webcast.data.Image.decode(e, e.uint32()); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.image && e.hasOwnProperty("image")) + { + var t = l.webcast.data.Image.verify(e.image); + if (t) return "image." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.TextPieceImage) return e; + var t = new l.webcast.data.TextPieceImage; + if (null != e.image) + { + if ("object" != typeof e.image) throw TypeError(".webcast.data.TextPieceImage.image: object expected"); + t.image = l.webcast.data.Image.fromObject(e.image) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.image = null), null != e.image && e.hasOwnProperty("image") && (n.image = l.webcast.data.Image.toObject(e.image, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.TextPiece = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.type = 0, e.prototype.format = null, e.prototype.stringValue = "", e.prototype.userValue = null, e.prototype.giftValue = null, e.prototype.heartValue = null, e.prototype.patternRefValue = null, e.prototype.imageValue = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.type && Object.hasOwnProperty.call(e, "type") && t.uint32(8).int32(e.type), null != e.format && Object.hasOwnProperty.call(e, "format") && l.webcast.data.TextFormat.encode(e.format, t.uint32(18).fork()).ldelim(), null != e.stringValue && Object.hasOwnProperty.call(e, "stringValue") && t.uint32(90).string(e.stringValue), null != e.userValue && Object.hasOwnProperty.call(e, "userValue") && l.webcast.data.TextPieceUser.encode(e.userValue, t.uint32(170).fork()).ldelim(), null != e.giftValue && Object.hasOwnProperty.call(e, "giftValue") && l.webcast.data.TextPieceGift.encode(e.giftValue, t.uint32(178).fork()).ldelim(), null != e.heartValue && Object.hasOwnProperty.call(e, "heartValue") && l.webcast.data.TextPieceHeart.encode(e.heartValue, t.uint32(186).fork()).ldelim(), null != e.patternRefValue && Object.hasOwnProperty.call(e, "patternRefValue") && l.webcast.data.TextPiecePatternRef.encode(e.patternRefValue, t.uint32(194).fork()).ldelim(), null != e.imageValue && Object.hasOwnProperty.call(e, "imageValue") && l.webcast.data.TextPieceImage.encode(e.imageValue, t.uint32(202).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.TextPiece; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.type = e.int32(); + break; + case 2: + r.format = l.webcast.data.TextFormat.decode(e, e.uint32()); + break; + case 11: + r.stringValue = e.string(); + break; + case 21: + r.userValue = l.webcast.data.TextPieceUser.decode(e, e.uint32()); + break; + case 22: + r.giftValue = l.webcast.data.TextPieceGift.decode(e, e.uint32()); + break; + case 23: + r.heartValue = l.webcast.data.TextPieceHeart.decode(e, e.uint32()); + break; + case 24: + r.patternRefValue = l.webcast.data.TextPiecePatternRef.decode(e, e.uint32()); + break; + case 25: + r.imageValue = l.webcast.data.TextPieceImage.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.type && e.hasOwnProperty("type") && !a.isInteger(e.type)) return "type: integer expected"; + var t; + if (null != e.format && e.hasOwnProperty("format") && (t = l.webcast.data.TextFormat.verify(e.format))) return "format." + t; + if (null != e.stringValue && e.hasOwnProperty("stringValue") && !a.isString(e.stringValue)) return "stringValue: string expected"; + if (null != e.userValue && e.hasOwnProperty("userValue") && (t = l.webcast.data.TextPieceUser.verify(e.userValue))) return "userValue." + t; + if (null != e.giftValue && e.hasOwnProperty("giftValue") && (t = l.webcast.data.TextPieceGift.verify(e.giftValue))) return "giftValue." + t; + if (null != e.heartValue && e.hasOwnProperty("heartValue") && (t = l.webcast.data.TextPieceHeart.verify(e.heartValue))) return "heartValue." + t; + if (null != e.patternRefValue && e.hasOwnProperty("patternRefValue") && (t = l.webcast.data.TextPiecePatternRef.verify(e.patternRefValue))) return "patternRefValue." + t; + if (null != e.imageValue && e.hasOwnProperty("imageValue") && (t = l.webcast.data.TextPieceImage.verify(e.imageValue))) return "imageValue." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.TextPiece) return e; + var t = new l.webcast.data.TextPiece; + if (null != e.type && (t.type = 0 | e.type), null != e.format) + { + if ("object" != typeof e.format) throw TypeError(".webcast.data.TextPiece.format: object expected"); + t.format = l.webcast.data.TextFormat.fromObject(e.format) + } + if (null != e.stringValue && (t.stringValue = String(e.stringValue)), null != e.userValue) + { + if ("object" != typeof e.userValue) throw TypeError(".webcast.data.TextPiece.userValue: object expected"); + t.userValue = l.webcast.data.TextPieceUser.fromObject(e.userValue) + } + if (null != e.giftValue) + { + if ("object" != typeof e.giftValue) throw TypeError(".webcast.data.TextPiece.giftValue: object expected"); + t.giftValue = l.webcast.data.TextPieceGift.fromObject(e.giftValue) + } + if (null != e.heartValue) + { + if ("object" != typeof e.heartValue) throw TypeError(".webcast.data.TextPiece.heartValue: object expected"); + t.heartValue = l.webcast.data.TextPieceHeart.fromObject(e.heartValue) + } + if (null != e.patternRefValue) + { + if ("object" != typeof e.patternRefValue) throw TypeError(".webcast.data.TextPiece.patternRefValue: object expected"); + t.patternRefValue = l.webcast.data.TextPiecePatternRef.fromObject(e.patternRefValue) + } + if (null != e.imageValue) + { + if ("object" != typeof e.imageValue) throw TypeError(".webcast.data.TextPiece.imageValue: object expected"); + t.imageValue = l.webcast.data.TextPieceImage.fromObject(e.imageValue) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.type = 0, n.format = null, n.stringValue = "", n.userValue = null, n.giftValue = null, n.heartValue = null, n.patternRefValue = null, n.imageValue = null), null != e.type && e.hasOwnProperty("type") && (n.type = e.type), null != e.format && e.hasOwnProperty("format") && (n.format = l.webcast.data.TextFormat.toObject(e.format, t)), null != e.stringValue && e.hasOwnProperty("stringValue") && (n.stringValue = e.stringValue), null != e.userValue && e.hasOwnProperty("userValue") && (n.userValue = l.webcast.data.TextPieceUser.toObject(e.userValue, t)), null != e.giftValue && e.hasOwnProperty("giftValue") && (n.giftValue = l.webcast.data.TextPieceGift.toObject(e.giftValue, t)), null != e.heartValue && e.hasOwnProperty("heartValue") && (n.heartValue = l.webcast.data.TextPieceHeart.toObject(e.heartValue, t)), null != e.patternRefValue && e.hasOwnProperty("patternRefValue") && (n.patternRefValue = l.webcast.data.TextPiecePatternRef.toObject(e.patternRefValue, t)), null != e.imageValue && e.hasOwnProperty("imageValue") && (n.imageValue = l.webcast.data.TextPieceImage.toObject(e.imageValue, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.Text = function () + { + function e(e) + { + if (this.pieces = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.key = "", e.prototype.defaultPattern = "", e.prototype.defaultFormat = null, e.prototype.pieces = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.key && Object.hasOwnProperty.call(e, "key") && t.uint32(10).string(e.key), null != e.defaultPattern && Object.hasOwnProperty.call(e, "defaultPattern") && t.uint32(18).string(e.defaultPattern), null != e.defaultFormat && Object.hasOwnProperty.call(e, "defaultFormat") && l.webcast.data.TextFormat.encode(e.defaultFormat, t.uint32(26).fork()).ldelim(), null != e.pieces && e.pieces.length) + for (var n = 0; n < e.pieces.length; ++n) l.webcast.data.TextPiece.encode(e.pieces[n], t.uint32(34).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.Text; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.key = e.string(); + break; + case 2: + r.defaultPattern = e.string(); + break; + case 3: + r.defaultFormat = l.webcast.data.TextFormat.decode(e, e.uint32()); + break; + case 4: + r.pieces && r.pieces.length || (r.pieces = []), r.pieces.push(l.webcast.data.TextPiece.decode(e, e.uint32())); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.key && e.hasOwnProperty("key") && !a.isString(e.key)) return "key: string expected"; + if (null != e.defaultPattern && e.hasOwnProperty("defaultPattern") && !a.isString(e.defaultPattern)) return "defaultPattern: string expected"; + if (null != e.defaultFormat && e.hasOwnProperty("defaultFormat") && (n = l.webcast.data.TextFormat.verify(e.defaultFormat))) return "defaultFormat." + n; + if (null != e.pieces && e.hasOwnProperty("pieces")) + { + if (!Array.isArray(e.pieces)) return "pieces: array expected"; + for (var t = 0; t < e.pieces.length; ++t) + { + var n; + if (n = l.webcast.data.TextPiece.verify(e.pieces[t])) return "pieces." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.Text) return e; + var t = new l.webcast.data.Text; + if (null != e.key && (t.key = String(e.key)), null != e.defaultPattern && (t.defaultPattern = String(e.defaultPattern)), null != e.defaultFormat) + { + if ("object" != typeof e.defaultFormat) throw TypeError(".webcast.data.Text.defaultFormat: object expected"); + t.defaultFormat = l.webcast.data.TextFormat.fromObject(e.defaultFormat) + } + if (e.pieces) + { + if (!Array.isArray(e.pieces)) throw TypeError(".webcast.data.Text.pieces: array expected"); + t.pieces = []; + for (var n = 0; n < e.pieces.length; ++n) + { + if ("object" != typeof e.pieces[n]) throw TypeError(".webcast.data.Text.pieces: object expected"); + t.pieces[n] = l.webcast.data.TextPiece.fromObject(e.pieces[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.pieces = []), t.defaults && (n.key = "", n.defaultPattern = "", n.defaultFormat = null), null != e.key && e.hasOwnProperty("key") && (n.key = e.key), null != e.defaultPattern && e.hasOwnProperty("defaultPattern") && (n.defaultPattern = e.defaultPattern), null != e.defaultFormat && e.hasOwnProperty("defaultFormat") && (n.defaultFormat = l.webcast.data.TextFormat.toObject(e.defaultFormat, t)), e.pieces && e.pieces.length) + { + n.pieces = []; + for (var r = 0; r < e.pieces.length; ++r) n.pieces[r] = l.webcast.data.TextPiece.toObject(e.pieces[r], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.User = function () + { + function e(e) + { + if (this.badgeImageList = [], this.realTimeIcons = [], this.newRealTimeIcons = [], this.topFans = [], this.mediaBadgeImageList = [], this.commerceWebcastConfigIds = [], this.badgeImageListV2 = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.shortId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.nickname = "", e.prototype.gender = 0, e.prototype.signature = "", e.prototype.level = 0, e.prototype.birthday = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.telephone = "", e.prototype.avatarThumb = null, e.prototype.avatarMedium = null, e.prototype.avatarLarge = null, e.prototype.verified = !1, e.prototype.experience = 0, e.prototype.city = "", e.prototype.status = 0, e.prototype.createTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.modifyTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.secret = 0, e.prototype.shareQrcodeUri = "", e.prototype.incomeSharePercent = 0, e.prototype.badgeImageList = a.emptyArray, e.prototype.followInfo = null, e.prototype.payGrade = null, e.prototype.fansClub = null, e.prototype.border = null, e.prototype.specialId = "", e.prototype.avatarBorder = null, e.prototype.medal = null, e.prototype.realTimeIcons = a.emptyArray, e.prototype.newRealTimeIcons = a.emptyArray, e.prototype.topVipNo = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.userAttr = null, e.prototype.ownRoom = null, e.prototype.payScore = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.ticketCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.anchorInfo = null, e.prototype.linkMicStats = 0, e.prototype.displayId = "", e.prototype.withCommercePermission = !1, e.prototype.withFusionShopEntry = !1, e.prototype.totalRechargeDiamondCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.webcastAnchorLevel = null, e.prototype.verifiedContent = "", e.prototype.authorStats = null, e.prototype.topFans = a.emptyArray, e.prototype.secUid = "", e.prototype.userRole = 0, e.prototype.xiguaInfo = null, e.prototype.activityReward = null, e.prototype.nobleInfo = null, e.prototype.brotherhoodInfo = null, e.prototype.personalCard = null, e.prototype.authenticationInfo = null, e.prototype.authorizationInfo = 0, e.prototype.adversaryAuthorizationInfo = 0, e.prototype.poiInfo = null, e.prototype.mediaBadgeImageList = a.emptyArray, e.prototype.adversaryUserStatus = 0, e.prototype.userVipInfo = null, e.prototype.commerceWebcastConfigIds = a.emptyArray, e.prototype.badgeImageListV2 = a.emptyArray, e.prototype.industryCertification = null, e.prototype.locationCity = "", e.prototype.fansGroupInfo = null, e.prototype.remarkName = "", e.prototype.mysteryMan = 0, e.prototype.webRid = "", e.prototype.desensitizedNickname = "", e.prototype.allowBeLocated = !1, e.prototype.allowFindByContacts = !1, e.prototype.allowOthersDownloadVideo = !1, e.prototype.allowOthersDownloadWhenSharingVideo = !1, e.prototype.allowShareShowProfile = !1, e.prototype.allowShowInGossip = !1, e.prototype.allowShowMyAction = !1, e.prototype.allowStrangeComment = !1, e.prototype.allowUnfollowerComment = !1, e.prototype.allowUseLinkmic = !1, e.prototype.anchorLevel = null, e.prototype.avatarJpg = null, e.prototype.bgImgUrl = "", e.prototype.birthdayDescription = "", e.prototype.birthdayValid = !1, e.prototype.blockStatus = 0, e.prototype.commentRestrict = 0, e.prototype.constellation = "", e.prototype.disableIchat = 0, e.prototype.enableIchatImg = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.exp = 0, e.prototype.fanTicketCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.foldStrangerChat = !1, e.prototype.followStatus = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.hotsoonVerified = !1, e.prototype.hotsoonVerifiedReason = "", e.prototype.ichatRestrictType = 0, e.prototype.idStr = "", e.prototype.isFollower = !1, e.prototype.isFollowing = !1, e.prototype.needProfileGuide = !1, e.prototype.payScores = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.pushCommentStatus = !1, e.prototype.pushDigg = !1, e.prototype.pushFollow = !1, e.prototype.pushFriendAction = !1, e.prototype.pushIchat = !1, e.prototype.pushStatus = !1, e.prototype.pushVideoPost = !1, e.prototype.pushVideoRecommend = !1, e.prototype.stats = null, e.prototype.verifiedMobile = !1, e.prototype.verifiedReason = "", e.prototype.withCarManagementPermission = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(8).int64(e.id), null != e.shortId && Object.hasOwnProperty.call(e, "shortId") && t.uint32(16).int64(e.shortId), null != e.nickname && Object.hasOwnProperty.call(e, "nickname") && t.uint32(26).string(e.nickname), null != e.gender && Object.hasOwnProperty.call(e, "gender") && t.uint32(32).int32(e.gender), null != e.signature && Object.hasOwnProperty.call(e, "signature") && t.uint32(42).string(e.signature), null != e.level && Object.hasOwnProperty.call(e, "level") && t.uint32(48).int32(e.level), null != e.birthday && Object.hasOwnProperty.call(e, "birthday") && t.uint32(56).int64(e.birthday), null != e.telephone && Object.hasOwnProperty.call(e, "telephone") && t.uint32(66).string(e.telephone), null != e.avatarThumb && Object.hasOwnProperty.call(e, "avatarThumb") && l.webcast.data.Image.encode(e.avatarThumb, t.uint32(74).fork()).ldelim(), null != e.avatarMedium && Object.hasOwnProperty.call(e, "avatarMedium") && l.webcast.data.Image.encode(e.avatarMedium, t.uint32(82).fork()).ldelim(), null != e.avatarLarge && Object.hasOwnProperty.call(e, "avatarLarge") && l.webcast.data.Image.encode(e.avatarLarge, t.uint32(90).fork()).ldelim(), null != e.verified && Object.hasOwnProperty.call(e, "verified") && t.uint32(96).bool(e.verified), null != e.experience && Object.hasOwnProperty.call(e, "experience") && t.uint32(104).int32(e.experience), null != e.city && Object.hasOwnProperty.call(e, "city") && t.uint32(114).string(e.city), null != e.status && Object.hasOwnProperty.call(e, "status") && t.uint32(120).int32(e.status), null != e.createTime && Object.hasOwnProperty.call(e, "createTime") && t.uint32(128).int64(e.createTime), null != e.modifyTime && Object.hasOwnProperty.call(e, "modifyTime") && t.uint32(136).int64(e.modifyTime), null != e.secret && Object.hasOwnProperty.call(e, "secret") && t.uint32(144).int32(e.secret), null != e.shareQrcodeUri && Object.hasOwnProperty.call(e, "shareQrcodeUri") && t.uint32(154).string(e.shareQrcodeUri), null != e.incomeSharePercent && Object.hasOwnProperty.call(e, "incomeSharePercent") && t.uint32(160).int32(e.incomeSharePercent), null != e.badgeImageList && e.badgeImageList.length) + for (var n = 0; n < e.badgeImageList.length; ++n) l.webcast.data.Image.encode(e.badgeImageList[n], t.uint32(170).fork()).ldelim(); + if (null != e.followInfo && Object.hasOwnProperty.call(e, "followInfo") && l.webcast.data.User.FollowInfo.encode(e.followInfo, t.uint32(178).fork()).ldelim(), null != e.payGrade && Object.hasOwnProperty.call(e, "payGrade") && l.webcast.data.User.PayGrade.encode(e.payGrade, t.uint32(186).fork()).ldelim(), null != e.fansClub && Object.hasOwnProperty.call(e, "fansClub") && l.webcast.data.User.FansClub.encode(e.fansClub, t.uint32(194).fork()).ldelim(), null != e.border && Object.hasOwnProperty.call(e, "border") && l.webcast.data.User.Border.encode(e.border, t.uint32(202).fork()).ldelim(), null != e.specialId && Object.hasOwnProperty.call(e, "specialId") && t.uint32(210).string(e.specialId), null != e.avatarBorder && Object.hasOwnProperty.call(e, "avatarBorder") && l.webcast.data.Image.encode(e.avatarBorder, t.uint32(218).fork()).ldelim(), null != e.medal && Object.hasOwnProperty.call(e, "medal") && l.webcast.data.Image.encode(e.medal, t.uint32(226).fork()).ldelim(), null != e.realTimeIcons && e.realTimeIcons.length) + for (n = 0; n < e.realTimeIcons.length; ++n) l.webcast.data.Image.encode(e.realTimeIcons[n], t.uint32(234).fork()).ldelim(); + if (null != e.newRealTimeIcons && e.newRealTimeIcons.length) + for (n = 0; n < e.newRealTimeIcons.length; ++n) l.webcast.data.Image.encode(e.newRealTimeIcons[n], t.uint32(242).fork()).ldelim(); + if (null != e.topVipNo && Object.hasOwnProperty.call(e, "topVipNo") && t.uint32(248).int64(e.topVipNo), null != e.userAttr && Object.hasOwnProperty.call(e, "userAttr") && l.webcast.data.User.UserAttr.encode(e.userAttr, t.uint32(258).fork()).ldelim(), null != e.ownRoom && Object.hasOwnProperty.call(e, "ownRoom") && l.webcast.data.User.OwnRoom.encode(e.ownRoom, t.uint32(266).fork()).ldelim(), null != e.payScore && Object.hasOwnProperty.call(e, "payScore") && t.uint32(272).int64(e.payScore), null != e.ticketCount && Object.hasOwnProperty.call(e, "ticketCount") && t.uint32(280).int64(e.ticketCount), null != e.anchorInfo && Object.hasOwnProperty.call(e, "anchorInfo") && l.webcast.data.User.AnchorInfo.encode(e.anchorInfo, t.uint32(290).fork()).ldelim(), null != e.linkMicStats && Object.hasOwnProperty.call(e, "linkMicStats") && t.uint32(296).int32(e.linkMicStats), null != e.displayId && Object.hasOwnProperty.call(e, "displayId") && t.uint32(306).string(e.displayId), null != e.withCommercePermission && Object.hasOwnProperty.call(e, "withCommercePermission") && t.uint32(312).bool(e.withCommercePermission), null != e.withFusionShopEntry && Object.hasOwnProperty.call(e, "withFusionShopEntry") && t.uint32(320).bool(e.withFusionShopEntry), null != e.totalRechargeDiamondCount && Object.hasOwnProperty.call(e, "totalRechargeDiamondCount") && t.uint32(328).int64(e.totalRechargeDiamondCount), null != e.webcastAnchorLevel && Object.hasOwnProperty.call(e, "webcastAnchorLevel") && l.webcast.data.User.AnchorLevel.encode(e.webcastAnchorLevel, t.uint32(338).fork()).ldelim(), null != e.verifiedContent && Object.hasOwnProperty.call(e, "verifiedContent") && t.uint32(346).string(e.verifiedContent), null != e.authorStats && Object.hasOwnProperty.call(e, "authorStats") && l.webcast.data.User.AuthorStats.encode(e.authorStats, t.uint32(354).fork()).ldelim(), null != e.topFans && e.topFans.length) + for (n = 0; n < e.topFans.length; ++n) l.webcast.data.User.encode(e.topFans[n], t.uint32(362).fork()).ldelim(); + if (null != e.secUid && Object.hasOwnProperty.call(e, "secUid") && t.uint32(370).string(e.secUid), null != e.userRole && Object.hasOwnProperty.call(e, "userRole") && t.uint32(376).int32(e.userRole), null != e.xiguaInfo && Object.hasOwnProperty.call(e, "xiguaInfo") && l.webcast.data.User.XiguaParams.encode(e.xiguaInfo, t.uint32(386).fork()).ldelim(), null != e.activityReward && Object.hasOwnProperty.call(e, "activityReward") && l.webcast.data.User.ActivityInfo.encode(e.activityReward, t.uint32(394).fork()).ldelim(), null != e.nobleInfo && Object.hasOwnProperty.call(e, "nobleInfo") && l.webcast.data.User.NobleLevelInfo.encode(e.nobleInfo, t.uint32(402).fork()).ldelim(), null != e.brotherhoodInfo && Object.hasOwnProperty.call(e, "brotherhoodInfo") && l.webcast.data.User.BrotherhoodInfo.encode(e.brotherhoodInfo, t.uint32(410).fork()).ldelim(), null != e.personalCard && Object.hasOwnProperty.call(e, "personalCard") && l.webcast.data.Image.encode(e.personalCard, t.uint32(418).fork()).ldelim(), null != e.authenticationInfo && Object.hasOwnProperty.call(e, "authenticationInfo") && l.webcast.data.User.AuthenticationInfo.encode(e.authenticationInfo, t.uint32(426).fork()).ldelim(), null != e.authorizationInfo && Object.hasOwnProperty.call(e, "authorizationInfo") && t.uint32(432).int32(e.authorizationInfo), null != e.adversaryAuthorizationInfo && Object.hasOwnProperty.call(e, "adversaryAuthorizationInfo") && t.uint32(440).int32(e.adversaryAuthorizationInfo), null != e.poiInfo && Object.hasOwnProperty.call(e, "poiInfo") && l.webcast.data.User.PoiInfo.encode(e.poiInfo, t.uint32(450).fork()).ldelim(), null != e.mediaBadgeImageList && e.mediaBadgeImageList.length) + for (n = 0; n < e.mediaBadgeImageList.length; ++n) l.webcast.data.Image.encode(e.mediaBadgeImageList[n], t.uint32(458).fork()).ldelim(); + if (null != e.adversaryUserStatus && Object.hasOwnProperty.call(e, "adversaryUserStatus") && t.uint32(464).int32(e.adversaryUserStatus), null != e.userVipInfo && Object.hasOwnProperty.call(e, "userVipInfo") && l.webcast.data.UserVIPInfo.encode(e.userVipInfo, t.uint32(474).fork()).ldelim(), null != e.commerceWebcastConfigIds && e.commerceWebcastConfigIds.length) + { + t.uint32(482).fork(); + for (n = 0; n < e.commerceWebcastConfigIds.length; ++n) t.int64(e.commerceWebcastConfigIds[n]); + t.ldelim() + } + if (null != e.badgeImageListV2 && e.badgeImageListV2.length) + for (n = 0; n < e.badgeImageListV2.length; ++n) l.webcast.data.Image.encode(e.badgeImageListV2[n], t.uint32(490).fork()).ldelim(); + return null != e.industryCertification && Object.hasOwnProperty.call(e, "industryCertification") && l.webcast.data.IndustryCertification.encode(e.industryCertification, t.uint32(498).fork()).ldelim(), null != e.locationCity && Object.hasOwnProperty.call(e, "locationCity") && t.uint32(506).string(e.locationCity), null != e.fansGroupInfo && Object.hasOwnProperty.call(e, "fansGroupInfo") && l.webcast.data.User.FansGroupInfo.encode(e.fansGroupInfo, t.uint32(514).fork()).ldelim(), null != e.remarkName && Object.hasOwnProperty.call(e, "remarkName") && t.uint32(522).string(e.remarkName), null != e.mysteryMan && Object.hasOwnProperty.call(e, "mysteryMan") && t.uint32(528).int32(e.mysteryMan), null != e.webRid && Object.hasOwnProperty.call(e, "webRid") && t.uint32(538).string(e.webRid), null != e.desensitizedNickname && Object.hasOwnProperty.call(e, "desensitizedNickname") && t.uint32(546).string(e.desensitizedNickname), null != e.allowBeLocated && Object.hasOwnProperty.call(e, "allowBeLocated") && t.uint32(8008).bool(e.allowBeLocated), null != e.allowFindByContacts && Object.hasOwnProperty.call(e, "allowFindByContacts") && t.uint32(8016).bool(e.allowFindByContacts), null != e.allowOthersDownloadVideo && Object.hasOwnProperty.call(e, "allowOthersDownloadVideo") && t.uint32(8024).bool(e.allowOthersDownloadVideo), null != e.allowOthersDownloadWhenSharingVideo && Object.hasOwnProperty.call(e, "allowOthersDownloadWhenSharingVideo") && t.uint32(8032).bool(e.allowOthersDownloadWhenSharingVideo), null != e.allowShareShowProfile && Object.hasOwnProperty.call(e, "allowShareShowProfile") && t.uint32(8040).bool(e.allowShareShowProfile), null != e.allowShowInGossip && Object.hasOwnProperty.call(e, "allowShowInGossip") && t.uint32(8048).bool(e.allowShowInGossip), null != e.allowShowMyAction && Object.hasOwnProperty.call(e, "allowShowMyAction") && t.uint32(8056).bool(e.allowShowMyAction), null != e.allowStrangeComment && Object.hasOwnProperty.call(e, "allowStrangeComment") && t.uint32(8064).bool(e.allowStrangeComment), null != e.allowUnfollowerComment && Object.hasOwnProperty.call(e, "allowUnfollowerComment") && t.uint32(8072).bool(e.allowUnfollowerComment), null != e.allowUseLinkmic && Object.hasOwnProperty.call(e, "allowUseLinkmic") && t.uint32(8080).bool(e.allowUseLinkmic), null != e.anchorLevel && Object.hasOwnProperty.call(e, "anchorLevel") && l.webcast.data.User.AnchorLevel.encode(e.anchorLevel, t.uint32(8090).fork()).ldelim(), null != e.avatarJpg && Object.hasOwnProperty.call(e, "avatarJpg") && l.webcast.data.Image.encode(e.avatarJpg, t.uint32(8098).fork()).ldelim(), null != e.bgImgUrl && Object.hasOwnProperty.call(e, "bgImgUrl") && t.uint32(8106).string(e.bgImgUrl), null != e.birthdayDescription && Object.hasOwnProperty.call(e, "birthdayDescription") && t.uint32(8114).string(e.birthdayDescription), null != e.birthdayValid && Object.hasOwnProperty.call(e, "birthdayValid") && t.uint32(8120).bool(e.birthdayValid), null != e.blockStatus && Object.hasOwnProperty.call(e, "blockStatus") && t.uint32(8128).int32(e.blockStatus), null != e.commentRestrict && Object.hasOwnProperty.call(e, "commentRestrict") && t.uint32(8136).int32(e.commentRestrict), null != e.constellation && Object.hasOwnProperty.call(e, "constellation") && t.uint32(8146).string(e.constellation), null != e.disableIchat && Object.hasOwnProperty.call(e, "disableIchat") && t.uint32(8152).int32(e.disableIchat), null != e.enableIchatImg && Object.hasOwnProperty.call(e, "enableIchatImg") && t.uint32(8160).int64(e.enableIchatImg), null != e.exp && Object.hasOwnProperty.call(e, "exp") && t.uint32(8168).int32(e.exp), null != e.fanTicketCount && Object.hasOwnProperty.call(e, "fanTicketCount") && t.uint32(8176).int64(e.fanTicketCount), null != e.foldStrangerChat && Object.hasOwnProperty.call(e, "foldStrangerChat") && t.uint32(8184).bool(e.foldStrangerChat), null != e.followStatus && Object.hasOwnProperty.call(e, "followStatus") && t.uint32(8192).int64(e.followStatus), null != e.hotsoonVerified && Object.hasOwnProperty.call(e, "hotsoonVerified") && t.uint32(8200).bool(e.hotsoonVerified), null != e.hotsoonVerifiedReason && Object.hasOwnProperty.call(e, "hotsoonVerifiedReason") && t.uint32(8210).string(e.hotsoonVerifiedReason), null != e.ichatRestrictType && Object.hasOwnProperty.call(e, "ichatRestrictType") && t.uint32(8216).int32(e.ichatRestrictType), null != e.idStr && Object.hasOwnProperty.call(e, "idStr") && t.uint32(8226).string(e.idStr), null != e.isFollower && Object.hasOwnProperty.call(e, "isFollower") && t.uint32(8232).bool(e.isFollower), null != e.isFollowing && Object.hasOwnProperty.call(e, "isFollowing") && t.uint32(8240).bool(e.isFollowing), null != e.needProfileGuide && Object.hasOwnProperty.call(e, "needProfileGuide") && t.uint32(8248).bool(e.needProfileGuide), null != e.payScores && Object.hasOwnProperty.call(e, "payScores") && t.uint32(8256).int64(e.payScores), null != e.pushCommentStatus && Object.hasOwnProperty.call(e, "pushCommentStatus") && t.uint32(8264).bool(e.pushCommentStatus), null != e.pushDigg && Object.hasOwnProperty.call(e, "pushDigg") && t.uint32(8272).bool(e.pushDigg), null != e.pushFollow && Object.hasOwnProperty.call(e, "pushFollow") && t.uint32(8280).bool(e.pushFollow), null != e.pushFriendAction && Object.hasOwnProperty.call(e, "pushFriendAction") && t.uint32(8288).bool(e.pushFriendAction), null != e.pushIchat && Object.hasOwnProperty.call(e, "pushIchat") && t.uint32(8296).bool(e.pushIchat), null != e.pushStatus && Object.hasOwnProperty.call(e, "pushStatus") && t.uint32(8304).bool(e.pushStatus), null != e.pushVideoPost && Object.hasOwnProperty.call(e, "pushVideoPost") && t.uint32(8312).bool(e.pushVideoPost), null != e.pushVideoRecommend && Object.hasOwnProperty.call(e, "pushVideoRecommend") && t.uint32(8320).bool(e.pushVideoRecommend), null != e.stats && Object.hasOwnProperty.call(e, "stats") && l.webcast.data.User.UserStats.encode(e.stats, t.uint32(8330).fork()).ldelim(), null != e.verifiedMobile && Object.hasOwnProperty.call(e, "verifiedMobile") && t.uint32(8336).bool(e.verifiedMobile), null != e.verifiedReason && Object.hasOwnProperty.call(e, "verifiedReason") && t.uint32(8346).string(e.verifiedReason), null != e.withCarManagementPermission && Object.hasOwnProperty.call(e, "withCarManagementPermission") && t.uint32(8352).bool(e.withCarManagementPermission), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.id = e.int64(); + break; + case 2: + r.shortId = e.int64(); + break; + case 3: + r.nickname = e.string(); + break; + case 4: + r.gender = e.int32(); + break; + case 5: + r.signature = e.string(); + break; + case 6: + r.level = e.int32(); + break; + case 7: + r.birthday = e.int64(); + break; + case 8: + r.telephone = e.string(); + break; + case 9: + r.avatarThumb = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 10: + r.avatarMedium = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 11: + r.avatarLarge = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 12: + r.verified = e.bool(); + break; + case 13: + r.experience = e.int32(); + break; + case 14: + r.city = e.string(); + break; + case 15: + r.status = e.int32(); + break; + case 16: + r.createTime = e.int64(); + break; + case 17: + r.modifyTime = e.int64(); + break; + case 18: + r.secret = e.int32(); + break; + case 19: + r.shareQrcodeUri = e.string(); + break; + case 20: + r.incomeSharePercent = e.int32(); + break; + case 21: + r.badgeImageList && r.badgeImageList.length || (r.badgeImageList = []), r.badgeImageList.push(l.webcast.data.Image.decode(e, e.uint32())); + break; + case 22: + r.followInfo = l.webcast.data.User.FollowInfo.decode(e, e.uint32()); + break; + case 23: + r.payGrade = l.webcast.data.User.PayGrade.decode(e, e.uint32()); + break; + case 24: + r.fansClub = l.webcast.data.User.FansClub.decode(e, e.uint32()); + break; + case 25: + r.border = l.webcast.data.User.Border.decode(e, e.uint32()); + break; + case 26: + r.specialId = e.string(); + break; + case 27: + r.avatarBorder = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 28: + r.medal = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 29: + r.realTimeIcons && r.realTimeIcons.length || (r.realTimeIcons = []), r.realTimeIcons.push(l.webcast.data.Image.decode(e, e.uint32())); + break; + case 30: + r.newRealTimeIcons && r.newRealTimeIcons.length || (r.newRealTimeIcons = []), r.newRealTimeIcons.push(l.webcast.data.Image.decode(e, e.uint32())); + break; + case 31: + r.topVipNo = e.int64(); + break; + case 32: + r.userAttr = l.webcast.data.User.UserAttr.decode(e, e.uint32()); + break; + case 33: + r.ownRoom = l.webcast.data.User.OwnRoom.decode(e, e.uint32()); + break; + case 34: + r.payScore = e.int64(); + break; + case 35: + r.ticketCount = e.int64(); + break; + case 36: + r.anchorInfo = l.webcast.data.User.AnchorInfo.decode(e, e.uint32()); + break; + case 37: + r.linkMicStats = e.int32(); + break; + case 38: + r.displayId = e.string(); + break; + case 39: + r.withCommercePermission = e.bool(); + break; + case 40: + r.withFusionShopEntry = e.bool(); + break; + case 41: + r.totalRechargeDiamondCount = e.int64(); + break; + case 42: + r.webcastAnchorLevel = l.webcast.data.User.AnchorLevel.decode(e, e.uint32()); + break; + case 43: + r.verifiedContent = e.string(); + break; + case 44: + r.authorStats = l.webcast.data.User.AuthorStats.decode(e, e.uint32()); + break; + case 45: + r.topFans && r.topFans.length || (r.topFans = []), r.topFans.push(l.webcast.data.User.decode(e, e.uint32())); + break; + case 46: + r.secUid = e.string(); + break; + case 47: + r.userRole = e.int32(); + break; + case 48: + r.xiguaInfo = l.webcast.data.User.XiguaParams.decode(e, e.uint32()); + break; + case 49: + r.activityReward = l.webcast.data.User.ActivityInfo.decode(e, e.uint32()); + break; + case 50: + r.nobleInfo = l.webcast.data.User.NobleLevelInfo.decode(e, e.uint32()); + break; + case 51: + r.brotherhoodInfo = l.webcast.data.User.BrotherhoodInfo.decode(e, e.uint32()); + break; + case 52: + r.personalCard = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 53: + r.authenticationInfo = l.webcast.data.User.AuthenticationInfo.decode(e, e.uint32()); + break; + case 54: + r.authorizationInfo = e.int32(); + break; + case 55: + r.adversaryAuthorizationInfo = e.int32(); + break; + case 56: + r.poiInfo = l.webcast.data.User.PoiInfo.decode(e, e.uint32()); + break; + case 57: + r.mediaBadgeImageList && r.mediaBadgeImageList.length || (r.mediaBadgeImageList = []), r.mediaBadgeImageList.push(l.webcast.data.Image.decode(e, e.uint32())); + break; + case 58: + r.adversaryUserStatus = e.int32(); + break; + case 59: + r.userVipInfo = l.webcast.data.UserVIPInfo.decode(e, e.uint32()); + break; + case 60: + if (r.commerceWebcastConfigIds && r.commerceWebcastConfigIds.length || (r.commerceWebcastConfigIds = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.commerceWebcastConfigIds.push(e.int64()); + else r.commerceWebcastConfigIds.push(e.int64()); + break; + case 61: + r.badgeImageListV2 && r.badgeImageListV2.length || (r.badgeImageListV2 = []), r.badgeImageListV2.push(l.webcast.data.Image.decode(e, e.uint32())); + break; + case 62: + r.industryCertification = l.webcast.data.IndustryCertification.decode(e, e.uint32()); + break; + case 63: + r.locationCity = e.string(); + break; + case 64: + r.fansGroupInfo = l.webcast.data.User.FansGroupInfo.decode(e, e.uint32()); + break; + case 65: + r.remarkName = e.string(); + break; + case 66: + r.mysteryMan = e.int32(); + break; + case 67: + r.webRid = e.string(); + break; + case 68: + r.desensitizedNickname = e.string(); + break; + case 1001: + r.allowBeLocated = e.bool(); + break; + case 1002: + r.allowFindByContacts = e.bool(); + break; + case 1003: + r.allowOthersDownloadVideo = e.bool(); + break; + case 1004: + r.allowOthersDownloadWhenSharingVideo = e.bool(); + break; + case 1005: + r.allowShareShowProfile = e.bool(); + break; + case 1006: + r.allowShowInGossip = e.bool(); + break; + case 1007: + r.allowShowMyAction = e.bool(); + break; + case 1008: + r.allowStrangeComment = e.bool(); + break; + case 1009: + r.allowUnfollowerComment = e.bool(); + break; + case 1010: + r.allowUseLinkmic = e.bool(); + break; + case 1011: + r.anchorLevel = l.webcast.data.User.AnchorLevel.decode(e, e.uint32()); + break; + case 1012: + r.avatarJpg = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 1013: + r.bgImgUrl = e.string(); + break; + case 1014: + r.birthdayDescription = e.string(); + break; + case 1015: + r.birthdayValid = e.bool(); + break; + case 1016: + r.blockStatus = e.int32(); + break; + case 1017: + r.commentRestrict = e.int32(); + break; + case 1018: + r.constellation = e.string(); + break; + case 1019: + r.disableIchat = e.int32(); + break; + case 1020: + r.enableIchatImg = e.int64(); + break; + case 1021: + r.exp = e.int32(); + break; + case 1022: + r.fanTicketCount = e.int64(); + break; + case 1023: + r.foldStrangerChat = e.bool(); + break; + case 1024: + r.followStatus = e.int64(); + break; + case 1025: + r.hotsoonVerified = e.bool(); + break; + case 1026: + r.hotsoonVerifiedReason = e.string(); + break; + case 1027: + r.ichatRestrictType = e.int32(); + break; + case 1028: + r.idStr = e.string(); + break; + case 1029: + r.isFollower = e.bool(); + break; + case 1030: + r.isFollowing = e.bool(); + break; + case 1031: + r.needProfileGuide = e.bool(); + break; + case 1032: + r.payScores = e.int64(); + break; + case 1033: + r.pushCommentStatus = e.bool(); + break; + case 1034: + r.pushDigg = e.bool(); + break; + case 1035: + r.pushFollow = e.bool(); + break; + case 1036: + r.pushFriendAction = e.bool(); + break; + case 1037: + r.pushIchat = e.bool(); + break; + case 1038: + r.pushStatus = e.bool(); + break; + case 1039: + r.pushVideoPost = e.bool(); + break; + case 1040: + r.pushVideoRecommend = e.bool(); + break; + case 1041: + r.stats = l.webcast.data.User.UserStats.decode(e, e.uint32()); + break; + case 1042: + r.verifiedMobile = e.bool(); + break; + case 1043: + r.verifiedReason = e.string(); + break; + case 1044: + r.withCarManagementPermission = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high))) return "id: integer|Long expected"; + if (null != e.shortId && e.hasOwnProperty("shortId") && !(a.isInteger(e.shortId) || e.shortId && a.isInteger(e.shortId.low) && a.isInteger(e.shortId.high))) return "shortId: integer|Long expected"; + if (null != e.nickname && e.hasOwnProperty("nickname") && !a.isString(e.nickname)) return "nickname: string expected"; + if (null != e.gender && e.hasOwnProperty("gender") && !a.isInteger(e.gender)) return "gender: integer expected"; + if (null != e.signature && e.hasOwnProperty("signature") && !a.isString(e.signature)) return "signature: string expected"; + if (null != e.level && e.hasOwnProperty("level") && !a.isInteger(e.level)) return "level: integer expected"; + if (null != e.birthday && e.hasOwnProperty("birthday") && !(a.isInteger(e.birthday) || e.birthday && a.isInteger(e.birthday.low) && a.isInteger(e.birthday.high))) return "birthday: integer|Long expected"; + if (null != e.telephone && e.hasOwnProperty("telephone") && !a.isString(e.telephone)) return "telephone: string expected"; + if (null != e.avatarThumb && e.hasOwnProperty("avatarThumb") && (n = l.webcast.data.Image.verify(e.avatarThumb))) return "avatarThumb." + n; + if (null != e.avatarMedium && e.hasOwnProperty("avatarMedium") && (n = l.webcast.data.Image.verify(e.avatarMedium))) return "avatarMedium." + n; + if (null != e.avatarLarge && e.hasOwnProperty("avatarLarge") && (n = l.webcast.data.Image.verify(e.avatarLarge))) return "avatarLarge." + n; + if (null != e.verified && e.hasOwnProperty("verified") && "boolean" != typeof e.verified) return "verified: boolean expected"; + if (null != e.experience && e.hasOwnProperty("experience") && !a.isInteger(e.experience)) return "experience: integer expected"; + if (null != e.city && e.hasOwnProperty("city") && !a.isString(e.city)) return "city: string expected"; + if (null != e.status && e.hasOwnProperty("status") && !a.isInteger(e.status)) return "status: integer expected"; + if (null != e.createTime && e.hasOwnProperty("createTime") && !(a.isInteger(e.createTime) || e.createTime && a.isInteger(e.createTime.low) && a.isInteger(e.createTime.high))) return "createTime: integer|Long expected"; + if (null != e.modifyTime && e.hasOwnProperty("modifyTime") && !(a.isInteger(e.modifyTime) || e.modifyTime && a.isInteger(e.modifyTime.low) && a.isInteger(e.modifyTime.high))) return "modifyTime: integer|Long expected"; + if (null != e.secret && e.hasOwnProperty("secret") && !a.isInteger(e.secret)) return "secret: integer expected"; + if (null != e.shareQrcodeUri && e.hasOwnProperty("shareQrcodeUri") && !a.isString(e.shareQrcodeUri)) return "shareQrcodeUri: string expected"; + if (null != e.incomeSharePercent && e.hasOwnProperty("incomeSharePercent") && !a.isInteger(e.incomeSharePercent)) return "incomeSharePercent: integer expected"; + if (null != e.badgeImageList && e.hasOwnProperty("badgeImageList")) + { + if (!Array.isArray(e.badgeImageList)) return "badgeImageList: array expected"; + for (var t = 0; t < e.badgeImageList.length; ++t) + { + if (n = l.webcast.data.Image.verify(e.badgeImageList[t])) return "badgeImageList." + n + } + } + if (null != e.followInfo && e.hasOwnProperty("followInfo") && (n = l.webcast.data.User.FollowInfo.verify(e.followInfo))) return "followInfo." + n; + if (null != e.payGrade && e.hasOwnProperty("payGrade") && (n = l.webcast.data.User.PayGrade.verify(e.payGrade))) return "payGrade." + n; + if (null != e.fansClub && e.hasOwnProperty("fansClub") && (n = l.webcast.data.User.FansClub.verify(e.fansClub))) return "fansClub." + n; + if (null != e.border && e.hasOwnProperty("border") && (n = l.webcast.data.User.Border.verify(e.border))) return "border." + n; + if (null != e.specialId && e.hasOwnProperty("specialId") && !a.isString(e.specialId)) return "specialId: string expected"; + if (null != e.avatarBorder && e.hasOwnProperty("avatarBorder") && (n = l.webcast.data.Image.verify(e.avatarBorder))) return "avatarBorder." + n; + if (null != e.medal && e.hasOwnProperty("medal") && (n = l.webcast.data.Image.verify(e.medal))) return "medal." + n; + if (null != e.realTimeIcons && e.hasOwnProperty("realTimeIcons")) + { + if (!Array.isArray(e.realTimeIcons)) return "realTimeIcons: array expected"; + for (t = 0; t < e.realTimeIcons.length; ++t) + { + if (n = l.webcast.data.Image.verify(e.realTimeIcons[t])) return "realTimeIcons." + n + } + } + if (null != e.newRealTimeIcons && e.hasOwnProperty("newRealTimeIcons")) + { + if (!Array.isArray(e.newRealTimeIcons)) return "newRealTimeIcons: array expected"; + for (t = 0; t < e.newRealTimeIcons.length; ++t) + { + if (n = l.webcast.data.Image.verify(e.newRealTimeIcons[t])) return "newRealTimeIcons." + n + } + } + if (null != e.topVipNo && e.hasOwnProperty("topVipNo") && !(a.isInteger(e.topVipNo) || e.topVipNo && a.isInteger(e.topVipNo.low) && a.isInteger(e.topVipNo.high))) return "topVipNo: integer|Long expected"; + if (null != e.userAttr && e.hasOwnProperty("userAttr") && (n = l.webcast.data.User.UserAttr.verify(e.userAttr))) return "userAttr." + n; + if (null != e.ownRoom && e.hasOwnProperty("ownRoom") && (n = l.webcast.data.User.OwnRoom.verify(e.ownRoom))) return "ownRoom." + n; + if (null != e.payScore && e.hasOwnProperty("payScore") && !(a.isInteger(e.payScore) || e.payScore && a.isInteger(e.payScore.low) && a.isInteger(e.payScore.high))) return "payScore: integer|Long expected"; + if (null != e.ticketCount && e.hasOwnProperty("ticketCount") && !(a.isInteger(e.ticketCount) || e.ticketCount && a.isInteger(e.ticketCount.low) && a.isInteger(e.ticketCount.high))) return "ticketCount: integer|Long expected"; + if (null != e.anchorInfo && e.hasOwnProperty("anchorInfo") && (n = l.webcast.data.User.AnchorInfo.verify(e.anchorInfo))) return "anchorInfo." + n; + if (null != e.linkMicStats && e.hasOwnProperty("linkMicStats")) switch (e.linkMicStats) + { + default: + return "linkMicStats: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + } + if (null != e.displayId && e.hasOwnProperty("displayId") && !a.isString(e.displayId)) return "displayId: string expected"; + if (null != e.withCommercePermission && e.hasOwnProperty("withCommercePermission") && "boolean" != typeof e.withCommercePermission) return "withCommercePermission: boolean expected"; + if (null != e.withFusionShopEntry && e.hasOwnProperty("withFusionShopEntry") && "boolean" != typeof e.withFusionShopEntry) return "withFusionShopEntry: boolean expected"; + if (null != e.totalRechargeDiamondCount && e.hasOwnProperty("totalRechargeDiamondCount") && !(a.isInteger(e.totalRechargeDiamondCount) || e.totalRechargeDiamondCount && a.isInteger(e.totalRechargeDiamondCount.low) && a.isInteger(e.totalRechargeDiamondCount.high))) return "totalRechargeDiamondCount: integer|Long expected"; + if (null != e.webcastAnchorLevel && e.hasOwnProperty("webcastAnchorLevel") && (n = l.webcast.data.User.AnchorLevel.verify(e.webcastAnchorLevel))) return "webcastAnchorLevel." + n; + if (null != e.verifiedContent && e.hasOwnProperty("verifiedContent") && !a.isString(e.verifiedContent)) return "verifiedContent: string expected"; + if (null != e.authorStats && e.hasOwnProperty("authorStats") && (n = l.webcast.data.User.AuthorStats.verify(e.authorStats))) return "authorStats." + n; + if (null != e.topFans && e.hasOwnProperty("topFans")) + { + if (!Array.isArray(e.topFans)) return "topFans: array expected"; + for (t = 0; t < e.topFans.length; ++t) + { + if (n = l.webcast.data.User.verify(e.topFans[t])) return "topFans." + n + } + } + if (null != e.secUid && e.hasOwnProperty("secUid") && !a.isString(e.secUid)) return "secUid: string expected"; + if (null != e.userRole && e.hasOwnProperty("userRole") && !a.isInteger(e.userRole)) return "userRole: integer expected"; + if (null != e.xiguaInfo && e.hasOwnProperty("xiguaInfo") && (n = l.webcast.data.User.XiguaParams.verify(e.xiguaInfo))) return "xiguaInfo." + n; + if (null != e.activityReward && e.hasOwnProperty("activityReward") && (n = l.webcast.data.User.ActivityInfo.verify(e.activityReward))) return "activityReward." + n; + if (null != e.nobleInfo && e.hasOwnProperty("nobleInfo") && (n = l.webcast.data.User.NobleLevelInfo.verify(e.nobleInfo))) return "nobleInfo." + n; + if (null != e.brotherhoodInfo && e.hasOwnProperty("brotherhoodInfo") && (n = l.webcast.data.User.BrotherhoodInfo.verify(e.brotherhoodInfo))) return "brotherhoodInfo." + n; + if (null != e.personalCard && e.hasOwnProperty("personalCard") && (n = l.webcast.data.Image.verify(e.personalCard))) return "personalCard." + n; + if (null != e.authenticationInfo && e.hasOwnProperty("authenticationInfo") && (n = l.webcast.data.User.AuthenticationInfo.verify(e.authenticationInfo))) return "authenticationInfo." + n; + if (null != e.authorizationInfo && e.hasOwnProperty("authorizationInfo") && !a.isInteger(e.authorizationInfo)) return "authorizationInfo: integer expected"; + if (null != e.adversaryAuthorizationInfo && e.hasOwnProperty("adversaryAuthorizationInfo") && !a.isInteger(e.adversaryAuthorizationInfo)) return "adversaryAuthorizationInfo: integer expected"; + if (null != e.poiInfo && e.hasOwnProperty("poiInfo") && (n = l.webcast.data.User.PoiInfo.verify(e.poiInfo))) return "poiInfo." + n; + if (null != e.mediaBadgeImageList && e.hasOwnProperty("mediaBadgeImageList")) + { + if (!Array.isArray(e.mediaBadgeImageList)) return "mediaBadgeImageList: array expected"; + for (t = 0; t < e.mediaBadgeImageList.length; ++t) + { + if (n = l.webcast.data.Image.verify(e.mediaBadgeImageList[t])) return "mediaBadgeImageList." + n + } + } + if (null != e.adversaryUserStatus && e.hasOwnProperty("adversaryUserStatus") && !a.isInteger(e.adversaryUserStatus)) return "adversaryUserStatus: integer expected"; + if (null != e.userVipInfo && e.hasOwnProperty("userVipInfo") && (n = l.webcast.data.UserVIPInfo.verify(e.userVipInfo))) return "userVipInfo." + n; + if (null != e.commerceWebcastConfigIds && e.hasOwnProperty("commerceWebcastConfigIds")) + { + if (!Array.isArray(e.commerceWebcastConfigIds)) return "commerceWebcastConfigIds: array expected"; + for (t = 0; t < e.commerceWebcastConfigIds.length; ++t) + if (!(a.isInteger(e.commerceWebcastConfigIds[t]) || e.commerceWebcastConfigIds[t] && a.isInteger(e.commerceWebcastConfigIds[t].low) && a.isInteger(e.commerceWebcastConfigIds[t].high))) return "commerceWebcastConfigIds: integer|Long[] expected" + } + if (null != e.badgeImageListV2 && e.hasOwnProperty("badgeImageListV2")) + { + if (!Array.isArray(e.badgeImageListV2)) return "badgeImageListV2: array expected"; + for (t = 0; t < e.badgeImageListV2.length; ++t) + { + var n; + if (n = l.webcast.data.Image.verify(e.badgeImageListV2[t])) return "badgeImageListV2." + n + } + } + if (null != e.industryCertification && e.hasOwnProperty("industryCertification") && (n = l.webcast.data.IndustryCertification.verify(e.industryCertification))) return "industryCertification." + n; + if (null != e.locationCity && e.hasOwnProperty("locationCity") && !a.isString(e.locationCity)) return "locationCity: string expected"; + if (null != e.fansGroupInfo && e.hasOwnProperty("fansGroupInfo") && (n = l.webcast.data.User.FansGroupInfo.verify(e.fansGroupInfo))) return "fansGroupInfo." + n; + if (null != e.remarkName && e.hasOwnProperty("remarkName") && !a.isString(e.remarkName)) return "remarkName: string expected"; + if (null != e.mysteryMan && e.hasOwnProperty("mysteryMan") && !a.isInteger(e.mysteryMan)) return "mysteryMan: integer expected"; + if (null != e.webRid && e.hasOwnProperty("webRid") && !a.isString(e.webRid)) return "webRid: string expected"; + if (null != e.desensitizedNickname && e.hasOwnProperty("desensitizedNickname") && !a.isString(e.desensitizedNickname)) return "desensitizedNickname: string expected"; + if (null != e.allowBeLocated && e.hasOwnProperty("allowBeLocated") && "boolean" != typeof e.allowBeLocated) return "allowBeLocated: boolean expected"; + if (null != e.allowFindByContacts && e.hasOwnProperty("allowFindByContacts") && "boolean" != typeof e.allowFindByContacts) return "allowFindByContacts: boolean expected"; + if (null != e.allowOthersDownloadVideo && e.hasOwnProperty("allowOthersDownloadVideo") && "boolean" != typeof e.allowOthersDownloadVideo) return "allowOthersDownloadVideo: boolean expected"; + if (null != e.allowOthersDownloadWhenSharingVideo && e.hasOwnProperty("allowOthersDownloadWhenSharingVideo") && "boolean" != typeof e.allowOthersDownloadWhenSharingVideo) return "allowOthersDownloadWhenSharingVideo: boolean expected"; + if (null != e.allowShareShowProfile && e.hasOwnProperty("allowShareShowProfile") && "boolean" != typeof e.allowShareShowProfile) return "allowShareShowProfile: boolean expected"; + if (null != e.allowShowInGossip && e.hasOwnProperty("allowShowInGossip") && "boolean" != typeof e.allowShowInGossip) return "allowShowInGossip: boolean expected"; + if (null != e.allowShowMyAction && e.hasOwnProperty("allowShowMyAction") && "boolean" != typeof e.allowShowMyAction) return "allowShowMyAction: boolean expected"; + if (null != e.allowStrangeComment && e.hasOwnProperty("allowStrangeComment") && "boolean" != typeof e.allowStrangeComment) return "allowStrangeComment: boolean expected"; + if (null != e.allowUnfollowerComment && e.hasOwnProperty("allowUnfollowerComment") && "boolean" != typeof e.allowUnfollowerComment) return "allowUnfollowerComment: boolean expected"; + if (null != e.allowUseLinkmic && e.hasOwnProperty("allowUseLinkmic") && "boolean" != typeof e.allowUseLinkmic) return "allowUseLinkmic: boolean expected"; + if (null != e.anchorLevel && e.hasOwnProperty("anchorLevel") && (n = l.webcast.data.User.AnchorLevel.verify(e.anchorLevel))) return "anchorLevel." + n; + if (null != e.avatarJpg && e.hasOwnProperty("avatarJpg") && (n = l.webcast.data.Image.verify(e.avatarJpg))) return "avatarJpg." + n; + if (null != e.bgImgUrl && e.hasOwnProperty("bgImgUrl") && !a.isString(e.bgImgUrl)) return "bgImgUrl: string expected"; + if (null != e.birthdayDescription && e.hasOwnProperty("birthdayDescription") && !a.isString(e.birthdayDescription)) return "birthdayDescription: string expected"; + if (null != e.birthdayValid && e.hasOwnProperty("birthdayValid") && "boolean" != typeof e.birthdayValid) return "birthdayValid: boolean expected"; + if (null != e.blockStatus && e.hasOwnProperty("blockStatus") && !a.isInteger(e.blockStatus)) return "blockStatus: integer expected"; + if (null != e.commentRestrict && e.hasOwnProperty("commentRestrict") && !a.isInteger(e.commentRestrict)) return "commentRestrict: integer expected"; + if (null != e.constellation && e.hasOwnProperty("constellation") && !a.isString(e.constellation)) return "constellation: string expected"; + if (null != e.disableIchat && e.hasOwnProperty("disableIchat") && !a.isInteger(e.disableIchat)) return "disableIchat: integer expected"; + if (null != e.enableIchatImg && e.hasOwnProperty("enableIchatImg") && !(a.isInteger(e.enableIchatImg) || e.enableIchatImg && a.isInteger(e.enableIchatImg.low) && a.isInteger(e.enableIchatImg.high))) return "enableIchatImg: integer|Long expected"; + if (null != e.exp && e.hasOwnProperty("exp") && !a.isInteger(e.exp)) return "exp: integer expected"; + if (null != e.fanTicketCount && e.hasOwnProperty("fanTicketCount") && !(a.isInteger(e.fanTicketCount) || e.fanTicketCount && a.isInteger(e.fanTicketCount.low) && a.isInteger(e.fanTicketCount.high))) return "fanTicketCount: integer|Long expected"; + if (null != e.foldStrangerChat && e.hasOwnProperty("foldStrangerChat") && "boolean" != typeof e.foldStrangerChat) return "foldStrangerChat: boolean expected"; + if (null != e.followStatus && e.hasOwnProperty("followStatus") && !(a.isInteger(e.followStatus) || e.followStatus && a.isInteger(e.followStatus.low) && a.isInteger(e.followStatus.high))) return "followStatus: integer|Long expected"; + if (null != e.hotsoonVerified && e.hasOwnProperty("hotsoonVerified") && "boolean" != typeof e.hotsoonVerified) return "hotsoonVerified: boolean expected"; + if (null != e.hotsoonVerifiedReason && e.hasOwnProperty("hotsoonVerifiedReason") && !a.isString(e.hotsoonVerifiedReason)) return "hotsoonVerifiedReason: string expected"; + if (null != e.ichatRestrictType && e.hasOwnProperty("ichatRestrictType") && !a.isInteger(e.ichatRestrictType)) return "ichatRestrictType: integer expected"; + if (null != e.idStr && e.hasOwnProperty("idStr") && !a.isString(e.idStr)) return "idStr: string expected"; + if (null != e.isFollower && e.hasOwnProperty("isFollower") && "boolean" != typeof e.isFollower) return "isFollower: boolean expected"; + if (null != e.isFollowing && e.hasOwnProperty("isFollowing") && "boolean" != typeof e.isFollowing) return "isFollowing: boolean expected"; + if (null != e.needProfileGuide && e.hasOwnProperty("needProfileGuide") && "boolean" != typeof e.needProfileGuide) return "needProfileGuide: boolean expected"; + if (null != e.payScores && e.hasOwnProperty("payScores") && !(a.isInteger(e.payScores) || e.payScores && a.isInteger(e.payScores.low) && a.isInteger(e.payScores.high))) return "payScores: integer|Long expected"; + if (null != e.pushCommentStatus && e.hasOwnProperty("pushCommentStatus") && "boolean" != typeof e.pushCommentStatus) return "pushCommentStatus: boolean expected"; + if (null != e.pushDigg && e.hasOwnProperty("pushDigg") && "boolean" != typeof e.pushDigg) return "pushDigg: boolean expected"; + if (null != e.pushFollow && e.hasOwnProperty("pushFollow") && "boolean" != typeof e.pushFollow) return "pushFollow: boolean expected"; + if (null != e.pushFriendAction && e.hasOwnProperty("pushFriendAction") && "boolean" != typeof e.pushFriendAction) return "pushFriendAction: boolean expected"; + if (null != e.pushIchat && e.hasOwnProperty("pushIchat") && "boolean" != typeof e.pushIchat) return "pushIchat: boolean expected"; + if (null != e.pushStatus && e.hasOwnProperty("pushStatus") && "boolean" != typeof e.pushStatus) return "pushStatus: boolean expected"; + if (null != e.pushVideoPost && e.hasOwnProperty("pushVideoPost") && "boolean" != typeof e.pushVideoPost) return "pushVideoPost: boolean expected"; + if (null != e.pushVideoRecommend && e.hasOwnProperty("pushVideoRecommend") && "boolean" != typeof e.pushVideoRecommend) return "pushVideoRecommend: boolean expected"; + if (null != e.stats && e.hasOwnProperty("stats") && (n = l.webcast.data.User.UserStats.verify(e.stats))) return "stats." + n; + return null != e.verifiedMobile && e.hasOwnProperty("verifiedMobile") && "boolean" != typeof e.verifiedMobile ? "verifiedMobile: boolean expected" : null != e.verifiedReason && e.hasOwnProperty("verifiedReason") && !a.isString(e.verifiedReason) ? "verifiedReason: string expected" : null != e.withCarManagementPermission && e.hasOwnProperty("withCarManagementPermission") && "boolean" != typeof e.withCarManagementPermission ? "withCarManagementPermission: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User) return e; + var t = new l.webcast.data.User; + if (null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), null != e.shortId && (a.Long ? (t.shortId = a.Long.fromValue(e.shortId)).unsigned = !1 : "string" == typeof e.shortId ? t.shortId = parseInt(e.shortId, 10) : "number" == typeof e.shortId ? t.shortId = e.shortId : "object" == typeof e.shortId && (t.shortId = new a.LongBits(e.shortId.low >>> 0, e.shortId.high >>> 0).toNumber())), null != e.nickname && (t.nickname = String(e.nickname)), null != e.gender && (t.gender = 0 | e.gender), null != e.signature && (t.signature = String(e.signature)), null != e.level && (t.level = 0 | e.level), null != e.birthday && (a.Long ? (t.birthday = a.Long.fromValue(e.birthday)).unsigned = !1 : "string" == typeof e.birthday ? t.birthday = parseInt(e.birthday, 10) : "number" == typeof e.birthday ? t.birthday = e.birthday : "object" == typeof e.birthday && (t.birthday = new a.LongBits(e.birthday.low >>> 0, e.birthday.high >>> 0).toNumber())), null != e.telephone && (t.telephone = String(e.telephone)), null != e.avatarThumb) + { + if ("object" != typeof e.avatarThumb) throw TypeError(".webcast.data.User.avatarThumb: object expected"); + t.avatarThumb = l.webcast.data.Image.fromObject(e.avatarThumb) + } + if (null != e.avatarMedium) + { + if ("object" != typeof e.avatarMedium) throw TypeError(".webcast.data.User.avatarMedium: object expected"); + t.avatarMedium = l.webcast.data.Image.fromObject(e.avatarMedium) + } + if (null != e.avatarLarge) + { + if ("object" != typeof e.avatarLarge) throw TypeError(".webcast.data.User.avatarLarge: object expected"); + t.avatarLarge = l.webcast.data.Image.fromObject(e.avatarLarge) + } + if (null != e.verified && (t.verified = Boolean(e.verified)), null != e.experience && (t.experience = 0 | e.experience), null != e.city && (t.city = String(e.city)), null != e.status && (t.status = 0 | e.status), null != e.createTime && (a.Long ? (t.createTime = a.Long.fromValue(e.createTime)).unsigned = !1 : "string" == typeof e.createTime ? t.createTime = parseInt(e.createTime, 10) : "number" == typeof e.createTime ? t.createTime = e.createTime : "object" == typeof e.createTime && (t.createTime = new a.LongBits(e.createTime.low >>> 0, e.createTime.high >>> 0).toNumber())), null != e.modifyTime && (a.Long ? (t.modifyTime = a.Long.fromValue(e.modifyTime)).unsigned = !1 : "string" == typeof e.modifyTime ? t.modifyTime = parseInt(e.modifyTime, 10) : "number" == typeof e.modifyTime ? t.modifyTime = e.modifyTime : "object" == typeof e.modifyTime && (t.modifyTime = new a.LongBits(e.modifyTime.low >>> 0, e.modifyTime.high >>> 0).toNumber())), null != e.secret && (t.secret = 0 | e.secret), null != e.shareQrcodeUri && (t.shareQrcodeUri = String(e.shareQrcodeUri)), null != e.incomeSharePercent && (t.incomeSharePercent = 0 | e.incomeSharePercent), e.badgeImageList) + { + if (!Array.isArray(e.badgeImageList)) throw TypeError(".webcast.data.User.badgeImageList: array expected"); + t.badgeImageList = []; + for (var n = 0; n < e.badgeImageList.length; ++n) + { + if ("object" != typeof e.badgeImageList[n]) throw TypeError(".webcast.data.User.badgeImageList: object expected"); + t.badgeImageList[n] = l.webcast.data.Image.fromObject(e.badgeImageList[n]) + } + } + if (null != e.followInfo) + { + if ("object" != typeof e.followInfo) throw TypeError(".webcast.data.User.followInfo: object expected"); + t.followInfo = l.webcast.data.User.FollowInfo.fromObject(e.followInfo) + } + if (null != e.payGrade) + { + if ("object" != typeof e.payGrade) throw TypeError(".webcast.data.User.payGrade: object expected"); + t.payGrade = l.webcast.data.User.PayGrade.fromObject(e.payGrade) + } + if (null != e.fansClub) + { + if ("object" != typeof e.fansClub) throw TypeError(".webcast.data.User.fansClub: object expected"); + t.fansClub = l.webcast.data.User.FansClub.fromObject(e.fansClub) + } + if (null != e.border) + { + if ("object" != typeof e.border) throw TypeError(".webcast.data.User.border: object expected"); + t.border = l.webcast.data.User.Border.fromObject(e.border) + } + if (null != e.specialId && (t.specialId = String(e.specialId)), null != e.avatarBorder) + { + if ("object" != typeof e.avatarBorder) throw TypeError(".webcast.data.User.avatarBorder: object expected"); + t.avatarBorder = l.webcast.data.Image.fromObject(e.avatarBorder) + } + if (null != e.medal) + { + if ("object" != typeof e.medal) throw TypeError(".webcast.data.User.medal: object expected"); + t.medal = l.webcast.data.Image.fromObject(e.medal) + } + if (e.realTimeIcons) + { + if (!Array.isArray(e.realTimeIcons)) throw TypeError(".webcast.data.User.realTimeIcons: array expected"); + t.realTimeIcons = []; + for (n = 0; n < e.realTimeIcons.length; ++n) + { + if ("object" != typeof e.realTimeIcons[n]) throw TypeError(".webcast.data.User.realTimeIcons: object expected"); + t.realTimeIcons[n] = l.webcast.data.Image.fromObject(e.realTimeIcons[n]) + } + } + if (e.newRealTimeIcons) + { + if (!Array.isArray(e.newRealTimeIcons)) throw TypeError(".webcast.data.User.newRealTimeIcons: array expected"); + t.newRealTimeIcons = []; + for (n = 0; n < e.newRealTimeIcons.length; ++n) + { + if ("object" != typeof e.newRealTimeIcons[n]) throw TypeError(".webcast.data.User.newRealTimeIcons: object expected"); + t.newRealTimeIcons[n] = l.webcast.data.Image.fromObject(e.newRealTimeIcons[n]) + } + } + if (null != e.topVipNo && (a.Long ? (t.topVipNo = a.Long.fromValue(e.topVipNo)).unsigned = !1 : "string" == typeof e.topVipNo ? t.topVipNo = parseInt(e.topVipNo, 10) : "number" == typeof e.topVipNo ? t.topVipNo = e.topVipNo : "object" == typeof e.topVipNo && (t.topVipNo = new a.LongBits(e.topVipNo.low >>> 0, e.topVipNo.high >>> 0).toNumber())), null != e.userAttr) + { + if ("object" != typeof e.userAttr) throw TypeError(".webcast.data.User.userAttr: object expected"); + t.userAttr = l.webcast.data.User.UserAttr.fromObject(e.userAttr) + } + if (null != e.ownRoom) + { + if ("object" != typeof e.ownRoom) throw TypeError(".webcast.data.User.ownRoom: object expected"); + t.ownRoom = l.webcast.data.User.OwnRoom.fromObject(e.ownRoom) + } + if (null != e.payScore && (a.Long ? (t.payScore = a.Long.fromValue(e.payScore)).unsigned = !1 : "string" == typeof e.payScore ? t.payScore = parseInt(e.payScore, 10) : "number" == typeof e.payScore ? t.payScore = e.payScore : "object" == typeof e.payScore && (t.payScore = new a.LongBits(e.payScore.low >>> 0, e.payScore.high >>> 0).toNumber())), null != e.ticketCount && (a.Long ? (t.ticketCount = a.Long.fromValue(e.ticketCount)).unsigned = !1 : "string" == typeof e.ticketCount ? t.ticketCount = parseInt(e.ticketCount, 10) : "number" == typeof e.ticketCount ? t.ticketCount = e.ticketCount : "object" == typeof e.ticketCount && (t.ticketCount = new a.LongBits(e.ticketCount.low >>> 0, e.ticketCount.high >>> 0).toNumber())), null != e.anchorInfo) + { + if ("object" != typeof e.anchorInfo) throw TypeError(".webcast.data.User.anchorInfo: object expected"); + t.anchorInfo = l.webcast.data.User.AnchorInfo.fromObject(e.anchorInfo) + } + switch (e.linkMicStats) + { + case "DISABLE": + case 0: + t.linkMicStats = 0; + break; + case "ENABLE": + case 1: + t.linkMicStats = 1; + break; + case "JUST_FOLLOWING": + case 2: + t.linkMicStats = 2; + break; + case "MULTI_LINKING": + case 3: + t.linkMicStats = 3; + break; + case "MULTI_LINKING_ONLY_FOLLOWING": + case 4: + t.linkMicStats = 4 + } + if (null != e.displayId && (t.displayId = String(e.displayId)), null != e.withCommercePermission && (t.withCommercePermission = Boolean(e.withCommercePermission)), null != e.withFusionShopEntry && (t.withFusionShopEntry = Boolean(e.withFusionShopEntry)), null != e.totalRechargeDiamondCount && (a.Long ? (t.totalRechargeDiamondCount = a.Long.fromValue(e.totalRechargeDiamondCount)).unsigned = !1 : "string" == typeof e.totalRechargeDiamondCount ? t.totalRechargeDiamondCount = parseInt(e.totalRechargeDiamondCount, 10) : "number" == typeof e.totalRechargeDiamondCount ? t.totalRechargeDiamondCount = e.totalRechargeDiamondCount : "object" == typeof e.totalRechargeDiamondCount && (t.totalRechargeDiamondCount = new a.LongBits(e.totalRechargeDiamondCount.low >>> 0, e.totalRechargeDiamondCount.high >>> 0).toNumber())), null != e.webcastAnchorLevel) + { + if ("object" != typeof e.webcastAnchorLevel) throw TypeError(".webcast.data.User.webcastAnchorLevel: object expected"); + t.webcastAnchorLevel = l.webcast.data.User.AnchorLevel.fromObject(e.webcastAnchorLevel) + } + if (null != e.verifiedContent && (t.verifiedContent = String(e.verifiedContent)), null != e.authorStats) + { + if ("object" != typeof e.authorStats) throw TypeError(".webcast.data.User.authorStats: object expected"); + t.authorStats = l.webcast.data.User.AuthorStats.fromObject(e.authorStats) + } + if (e.topFans) + { + if (!Array.isArray(e.topFans)) throw TypeError(".webcast.data.User.topFans: array expected"); + t.topFans = []; + for (n = 0; n < e.topFans.length; ++n) + { + if ("object" != typeof e.topFans[n]) throw TypeError(".webcast.data.User.topFans: object expected"); + t.topFans[n] = l.webcast.data.User.fromObject(e.topFans[n]) + } + } + if (null != e.secUid && (t.secUid = String(e.secUid)), null != e.userRole && (t.userRole = 0 | e.userRole), null != e.xiguaInfo) + { + if ("object" != typeof e.xiguaInfo) throw TypeError(".webcast.data.User.xiguaInfo: object expected"); + t.xiguaInfo = l.webcast.data.User.XiguaParams.fromObject(e.xiguaInfo) + } + if (null != e.activityReward) + { + if ("object" != typeof e.activityReward) throw TypeError(".webcast.data.User.activityReward: object expected"); + t.activityReward = l.webcast.data.User.ActivityInfo.fromObject(e.activityReward) + } + if (null != e.nobleInfo) + { + if ("object" != typeof e.nobleInfo) throw TypeError(".webcast.data.User.nobleInfo: object expected"); + t.nobleInfo = l.webcast.data.User.NobleLevelInfo.fromObject(e.nobleInfo) + } + if (null != e.brotherhoodInfo) + { + if ("object" != typeof e.brotherhoodInfo) throw TypeError(".webcast.data.User.brotherhoodInfo: object expected"); + t.brotherhoodInfo = l.webcast.data.User.BrotherhoodInfo.fromObject(e.brotherhoodInfo) + } + if (null != e.personalCard) + { + if ("object" != typeof e.personalCard) throw TypeError(".webcast.data.User.personalCard: object expected"); + t.personalCard = l.webcast.data.Image.fromObject(e.personalCard) + } + if (null != e.authenticationInfo) + { + if ("object" != typeof e.authenticationInfo) throw TypeError(".webcast.data.User.authenticationInfo: object expected"); + t.authenticationInfo = l.webcast.data.User.AuthenticationInfo.fromObject(e.authenticationInfo) + } + if (null != e.authorizationInfo && (t.authorizationInfo = 0 | e.authorizationInfo), null != e.adversaryAuthorizationInfo && (t.adversaryAuthorizationInfo = 0 | e.adversaryAuthorizationInfo), null != e.poiInfo) + { + if ("object" != typeof e.poiInfo) throw TypeError(".webcast.data.User.poiInfo: object expected"); + t.poiInfo = l.webcast.data.User.PoiInfo.fromObject(e.poiInfo) + } + if (e.mediaBadgeImageList) + { + if (!Array.isArray(e.mediaBadgeImageList)) throw TypeError(".webcast.data.User.mediaBadgeImageList: array expected"); + t.mediaBadgeImageList = []; + for (n = 0; n < e.mediaBadgeImageList.length; ++n) + { + if ("object" != typeof e.mediaBadgeImageList[n]) throw TypeError(".webcast.data.User.mediaBadgeImageList: object expected"); + t.mediaBadgeImageList[n] = l.webcast.data.Image.fromObject(e.mediaBadgeImageList[n]) + } + } + if (null != e.adversaryUserStatus && (t.adversaryUserStatus = 0 | e.adversaryUserStatus), null != e.userVipInfo) + { + if ("object" != typeof e.userVipInfo) throw TypeError(".webcast.data.User.userVipInfo: object expected"); + t.userVipInfo = l.webcast.data.UserVIPInfo.fromObject(e.userVipInfo) + } + if (e.commerceWebcastConfigIds) + { + if (!Array.isArray(e.commerceWebcastConfigIds)) throw TypeError(".webcast.data.User.commerceWebcastConfigIds: array expected"); + t.commerceWebcastConfigIds = []; + for (n = 0; n < e.commerceWebcastConfigIds.length; ++n) a.Long ? (t.commerceWebcastConfigIds[n] = a.Long.fromValue(e.commerceWebcastConfigIds[n])).unsigned = !1 : "string" == typeof e.commerceWebcastConfigIds[n] ? t.commerceWebcastConfigIds[n] = parseInt(e.commerceWebcastConfigIds[n], 10) : "number" == typeof e.commerceWebcastConfigIds[n] ? t.commerceWebcastConfigIds[n] = e.commerceWebcastConfigIds[n] : "object" == typeof e.commerceWebcastConfigIds[n] && (t.commerceWebcastConfigIds[n] = new a.LongBits(e.commerceWebcastConfigIds[n].low >>> 0, e.commerceWebcastConfigIds[n].high >>> 0).toNumber()) + } + if (e.badgeImageListV2) + { + if (!Array.isArray(e.badgeImageListV2)) throw TypeError(".webcast.data.User.badgeImageListV2: array expected"); + t.badgeImageListV2 = []; + for (n = 0; n < e.badgeImageListV2.length; ++n) + { + if ("object" != typeof e.badgeImageListV2[n]) throw TypeError(".webcast.data.User.badgeImageListV2: object expected"); + t.badgeImageListV2[n] = l.webcast.data.Image.fromObject(e.badgeImageListV2[n]) + } + } + if (null != e.industryCertification) + { + if ("object" != typeof e.industryCertification) throw TypeError(".webcast.data.User.industryCertification: object expected"); + t.industryCertification = l.webcast.data.IndustryCertification.fromObject(e.industryCertification) + } + if (null != e.locationCity && (t.locationCity = String(e.locationCity)), null != e.fansGroupInfo) + { + if ("object" != typeof e.fansGroupInfo) throw TypeError(".webcast.data.User.fansGroupInfo: object expected"); + t.fansGroupInfo = l.webcast.data.User.FansGroupInfo.fromObject(e.fansGroupInfo) + } + if (null != e.remarkName && (t.remarkName = String(e.remarkName)), null != e.mysteryMan && (t.mysteryMan = 0 | e.mysteryMan), null != e.webRid && (t.webRid = String(e.webRid)), null != e.desensitizedNickname && (t.desensitizedNickname = String(e.desensitizedNickname)), null != e.allowBeLocated && (t.allowBeLocated = Boolean(e.allowBeLocated)), null != e.allowFindByContacts && (t.allowFindByContacts = Boolean(e.allowFindByContacts)), null != e.allowOthersDownloadVideo && (t.allowOthersDownloadVideo = Boolean(e.allowOthersDownloadVideo)), null != e.allowOthersDownloadWhenSharingVideo && (t.allowOthersDownloadWhenSharingVideo = Boolean(e.allowOthersDownloadWhenSharingVideo)), null != e.allowShareShowProfile && (t.allowShareShowProfile = Boolean(e.allowShareShowProfile)), null != e.allowShowInGossip && (t.allowShowInGossip = Boolean(e.allowShowInGossip)), null != e.allowShowMyAction && (t.allowShowMyAction = Boolean(e.allowShowMyAction)), null != e.allowStrangeComment && (t.allowStrangeComment = Boolean(e.allowStrangeComment)), null != e.allowUnfollowerComment && (t.allowUnfollowerComment = Boolean(e.allowUnfollowerComment)), null != e.allowUseLinkmic && (t.allowUseLinkmic = Boolean(e.allowUseLinkmic)), null != e.anchorLevel) + { + if ("object" != typeof e.anchorLevel) throw TypeError(".webcast.data.User.anchorLevel: object expected"); + t.anchorLevel = l.webcast.data.User.AnchorLevel.fromObject(e.anchorLevel) + } + if (null != e.avatarJpg) + { + if ("object" != typeof e.avatarJpg) throw TypeError(".webcast.data.User.avatarJpg: object expected"); + t.avatarJpg = l.webcast.data.Image.fromObject(e.avatarJpg) + } + if (null != e.bgImgUrl && (t.bgImgUrl = String(e.bgImgUrl)), null != e.birthdayDescription && (t.birthdayDescription = String(e.birthdayDescription)), null != e.birthdayValid && (t.birthdayValid = Boolean(e.birthdayValid)), null != e.blockStatus && (t.blockStatus = 0 | e.blockStatus), null != e.commentRestrict && (t.commentRestrict = 0 | e.commentRestrict), null != e.constellation && (t.constellation = String(e.constellation)), null != e.disableIchat && (t.disableIchat = 0 | e.disableIchat), null != e.enableIchatImg && (a.Long ? (t.enableIchatImg = a.Long.fromValue(e.enableIchatImg)).unsigned = !1 : "string" == typeof e.enableIchatImg ? t.enableIchatImg = parseInt(e.enableIchatImg, 10) : "number" == typeof e.enableIchatImg ? t.enableIchatImg = e.enableIchatImg : "object" == typeof e.enableIchatImg && (t.enableIchatImg = new a.LongBits(e.enableIchatImg.low >>> 0, e.enableIchatImg.high >>> 0).toNumber())), null != e.exp && (t.exp = 0 | e.exp), null != e.fanTicketCount && (a.Long ? (t.fanTicketCount = a.Long.fromValue(e.fanTicketCount)).unsigned = !1 : "string" == typeof e.fanTicketCount ? t.fanTicketCount = parseInt(e.fanTicketCount, 10) : "number" == typeof e.fanTicketCount ? t.fanTicketCount = e.fanTicketCount : "object" == typeof e.fanTicketCount && (t.fanTicketCount = new a.LongBits(e.fanTicketCount.low >>> 0, e.fanTicketCount.high >>> 0).toNumber())), null != e.foldStrangerChat && (t.foldStrangerChat = Boolean(e.foldStrangerChat)), null != e.followStatus && (a.Long ? (t.followStatus = a.Long.fromValue(e.followStatus)).unsigned = !1 : "string" == typeof e.followStatus ? t.followStatus = parseInt(e.followStatus, 10) : "number" == typeof e.followStatus ? t.followStatus = e.followStatus : "object" == typeof e.followStatus && (t.followStatus = new a.LongBits(e.followStatus.low >>> 0, e.followStatus.high >>> 0).toNumber())), null != e.hotsoonVerified && (t.hotsoonVerified = Boolean(e.hotsoonVerified)), null != e.hotsoonVerifiedReason && (t.hotsoonVerifiedReason = String(e.hotsoonVerifiedReason)), null != e.ichatRestrictType && (t.ichatRestrictType = 0 | e.ichatRestrictType), null != e.idStr && (t.idStr = String(e.idStr)), null != e.isFollower && (t.isFollower = Boolean(e.isFollower)), null != e.isFollowing && (t.isFollowing = Boolean(e.isFollowing)), null != e.needProfileGuide && (t.needProfileGuide = Boolean(e.needProfileGuide)), null != e.payScores && (a.Long ? (t.payScores = a.Long.fromValue(e.payScores)).unsigned = !1 : "string" == typeof e.payScores ? t.payScores = parseInt(e.payScores, 10) : "number" == typeof e.payScores ? t.payScores = e.payScores : "object" == typeof e.payScores && (t.payScores = new a.LongBits(e.payScores.low >>> 0, e.payScores.high >>> 0).toNumber())), null != e.pushCommentStatus && (t.pushCommentStatus = Boolean(e.pushCommentStatus)), null != e.pushDigg && (t.pushDigg = Boolean(e.pushDigg)), null != e.pushFollow && (t.pushFollow = Boolean(e.pushFollow)), null != e.pushFriendAction && (t.pushFriendAction = Boolean(e.pushFriendAction)), null != e.pushIchat && (t.pushIchat = Boolean(e.pushIchat)), null != e.pushStatus && (t.pushStatus = Boolean(e.pushStatus)), null != e.pushVideoPost && (t.pushVideoPost = Boolean(e.pushVideoPost)), null != e.pushVideoRecommend && (t.pushVideoRecommend = Boolean(e.pushVideoRecommend)), null != e.stats) + { + if ("object" != typeof e.stats) throw TypeError(".webcast.data.User.stats: object expected"); + t.stats = l.webcast.data.User.UserStats.fromObject(e.stats) + } + return null != e.verifiedMobile && (t.verifiedMobile = Boolean(e.verifiedMobile)), null != e.verifiedReason && (t.verifiedReason = String(e.verifiedReason)), null != e.withCarManagementPermission && (t.withCarManagementPermission = Boolean(e.withCarManagementPermission)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.badgeImageList = [], n.realTimeIcons = [], n.newRealTimeIcons = [], n.topFans = [], n.mediaBadgeImageList = [], n.commerceWebcastConfigIds = [], n.badgeImageListV2 = []), t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.id = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.shortId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.shortId = t.longs === String ? "0" : 0; + if (n.nickname = "", n.gender = 0, n.signature = "", n.level = 0, a.Long) + { + r = new a.Long(0, 0, !1); + n.birthday = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.birthday = t.longs === String ? "0" : 0; + if (n.telephone = "", n.avatarThumb = null, n.avatarMedium = null, n.avatarLarge = null, n.verified = !1, n.experience = 0, n.city = "", n.status = 0, a.Long) + { + r = new a.Long(0, 0, !1); + n.createTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.createTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.modifyTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.modifyTime = t.longs === String ? "0" : 0; + if (n.secret = 0, n.shareQrcodeUri = "", n.incomeSharePercent = 0, n.followInfo = null, n.payGrade = null, n.fansClub = null, n.border = null, n.specialId = "", n.avatarBorder = null, n.medal = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.topVipNo = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.topVipNo = t.longs === String ? "0" : 0; + if (n.userAttr = null, n.ownRoom = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.payScore = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.payScore = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.ticketCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.ticketCount = t.longs === String ? "0" : 0; + if (n.anchorInfo = null, n.linkMicStats = t.enums === String ? "DISABLE" : 0, n.displayId = "", n.withCommercePermission = !1, n.withFusionShopEntry = !1, a.Long) + { + r = new a.Long(0, 0, !1); + n.totalRechargeDiamondCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.totalRechargeDiamondCount = t.longs === String ? "0" : 0; + if (n.webcastAnchorLevel = null, n.verifiedContent = "", n.authorStats = null, n.secUid = "", n.userRole = 0, n.xiguaInfo = null, n.activityReward = null, n.nobleInfo = null, n.brotherhoodInfo = null, n.personalCard = null, n.authenticationInfo = null, n.authorizationInfo = 0, n.adversaryAuthorizationInfo = 0, n.poiInfo = null, n.adversaryUserStatus = 0, n.userVipInfo = null, n.industryCertification = null, n.locationCity = "", n.fansGroupInfo = null, n.remarkName = "", n.mysteryMan = 0, n.webRid = "", n.desensitizedNickname = "", n.allowBeLocated = !1, n.allowFindByContacts = !1, n.allowOthersDownloadVideo = !1, n.allowOthersDownloadWhenSharingVideo = !1, n.allowShareShowProfile = !1, n.allowShowInGossip = !1, n.allowShowMyAction = !1, n.allowStrangeComment = !1, n.allowUnfollowerComment = !1, n.allowUseLinkmic = !1, n.anchorLevel = null, n.avatarJpg = null, n.bgImgUrl = "", n.birthdayDescription = "", n.birthdayValid = !1, n.blockStatus = 0, n.commentRestrict = 0, n.constellation = "", n.disableIchat = 0, a.Long) + { + r = new a.Long(0, 0, !1); + n.enableIchatImg = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.enableIchatImg = t.longs === String ? "0" : 0; + if (n.exp = 0, a.Long) + { + r = new a.Long(0, 0, !1); + n.fanTicketCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fanTicketCount = t.longs === String ? "0" : 0; + if (n.foldStrangerChat = !1, a.Long) + { + r = new a.Long(0, 0, !1); + n.followStatus = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.followStatus = t.longs === String ? "0" : 0; + if (n.hotsoonVerified = !1, n.hotsoonVerifiedReason = "", n.ichatRestrictType = 0, n.idStr = "", n.isFollower = !1, n.isFollowing = !1, n.needProfileGuide = !1, a.Long) + { + r = new a.Long(0, 0, !1); + n.payScores = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.payScores = t.longs === String ? "0" : 0; + n.pushCommentStatus = !1, n.pushDigg = !1, n.pushFollow = !1, n.pushFriendAction = !1, n.pushIchat = !1, n.pushStatus = !1, n.pushVideoPost = !1, n.pushVideoRecommend = !1, n.stats = null, n.verifiedMobile = !1, n.verifiedReason = "", n.withCarManagementPermission = !1 + } + if (null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? n.id = t.longs === String ? String(e.id) : e.id : n.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), null != e.shortId && e.hasOwnProperty("shortId") && ("number" == typeof e.shortId ? n.shortId = t.longs === String ? String(e.shortId) : e.shortId : n.shortId = t.longs === String ? a.Long.prototype.toString.call(e.shortId) : t.longs === Number ? new a.LongBits(e.shortId.low >>> 0, e.shortId.high >>> 0).toNumber() : e.shortId), null != e.nickname && e.hasOwnProperty("nickname") && (n.nickname = e.nickname), null != e.gender && e.hasOwnProperty("gender") && (n.gender = e.gender), null != e.signature && e.hasOwnProperty("signature") && (n.signature = e.signature), null != e.level && e.hasOwnProperty("level") && (n.level = e.level), null != e.birthday && e.hasOwnProperty("birthday") && ("number" == typeof e.birthday ? n.birthday = t.longs === String ? String(e.birthday) : e.birthday : n.birthday = t.longs === String ? a.Long.prototype.toString.call(e.birthday) : t.longs === Number ? new a.LongBits(e.birthday.low >>> 0, e.birthday.high >>> 0).toNumber() : e.birthday), null != e.telephone && e.hasOwnProperty("telephone") && (n.telephone = e.telephone), null != e.avatarThumb && e.hasOwnProperty("avatarThumb") && (n.avatarThumb = l.webcast.data.Image.toObject(e.avatarThumb, t)), null != e.avatarMedium && e.hasOwnProperty("avatarMedium") && (n.avatarMedium = l.webcast.data.Image.toObject(e.avatarMedium, t)), null != e.avatarLarge && e.hasOwnProperty("avatarLarge") && (n.avatarLarge = l.webcast.data.Image.toObject(e.avatarLarge, t)), null != e.verified && e.hasOwnProperty("verified") && (n.verified = e.verified), null != e.experience && e.hasOwnProperty("experience") && (n.experience = e.experience), null != e.city && e.hasOwnProperty("city") && (n.city = e.city), null != e.status && e.hasOwnProperty("status") && (n.status = e.status), null != e.createTime && e.hasOwnProperty("createTime") && ("number" == typeof e.createTime ? n.createTime = t.longs === String ? String(e.createTime) : e.createTime : n.createTime = t.longs === String ? a.Long.prototype.toString.call(e.createTime) : t.longs === Number ? new a.LongBits(e.createTime.low >>> 0, e.createTime.high >>> 0).toNumber() : e.createTime), null != e.modifyTime && e.hasOwnProperty("modifyTime") && ("number" == typeof e.modifyTime ? n.modifyTime = t.longs === String ? String(e.modifyTime) : e.modifyTime : n.modifyTime = t.longs === String ? a.Long.prototype.toString.call(e.modifyTime) : t.longs === Number ? new a.LongBits(e.modifyTime.low >>> 0, e.modifyTime.high >>> 0).toNumber() : e.modifyTime), null != e.secret && e.hasOwnProperty("secret") && (n.secret = e.secret), null != e.shareQrcodeUri && e.hasOwnProperty("shareQrcodeUri") && (n.shareQrcodeUri = e.shareQrcodeUri), null != e.incomeSharePercent && e.hasOwnProperty("incomeSharePercent") && (n.incomeSharePercent = e.incomeSharePercent), e.badgeImageList && e.badgeImageList.length) + { + n.badgeImageList = []; + for (var o = 0; o < e.badgeImageList.length; ++o) n.badgeImageList[o] = l.webcast.data.Image.toObject(e.badgeImageList[o], t) + } + if (null != e.followInfo && e.hasOwnProperty("followInfo") && (n.followInfo = l.webcast.data.User.FollowInfo.toObject(e.followInfo, t)), null != e.payGrade && e.hasOwnProperty("payGrade") && (n.payGrade = l.webcast.data.User.PayGrade.toObject(e.payGrade, t)), null != e.fansClub && e.hasOwnProperty("fansClub") && (n.fansClub = l.webcast.data.User.FansClub.toObject(e.fansClub, t)), null != e.border && e.hasOwnProperty("border") && (n.border = l.webcast.data.User.Border.toObject(e.border, t)), null != e.specialId && e.hasOwnProperty("specialId") && (n.specialId = e.specialId), null != e.avatarBorder && e.hasOwnProperty("avatarBorder") && (n.avatarBorder = l.webcast.data.Image.toObject(e.avatarBorder, t)), null != e.medal && e.hasOwnProperty("medal") && (n.medal = l.webcast.data.Image.toObject(e.medal, t)), e.realTimeIcons && e.realTimeIcons.length) + { + n.realTimeIcons = []; + for (o = 0; o < e.realTimeIcons.length; ++o) n.realTimeIcons[o] = l.webcast.data.Image.toObject(e.realTimeIcons[o], t) + } + if (e.newRealTimeIcons && e.newRealTimeIcons.length) + { + n.newRealTimeIcons = []; + for (o = 0; o < e.newRealTimeIcons.length; ++o) n.newRealTimeIcons[o] = l.webcast.data.Image.toObject(e.newRealTimeIcons[o], t) + } + if (null != e.topVipNo && e.hasOwnProperty("topVipNo") && ("number" == typeof e.topVipNo ? n.topVipNo = t.longs === String ? String(e.topVipNo) : e.topVipNo : n.topVipNo = t.longs === String ? a.Long.prototype.toString.call(e.topVipNo) : t.longs === Number ? new a.LongBits(e.topVipNo.low >>> 0, e.topVipNo.high >>> 0).toNumber() : e.topVipNo), null != e.userAttr && e.hasOwnProperty("userAttr") && (n.userAttr = l.webcast.data.User.UserAttr.toObject(e.userAttr, t)), null != e.ownRoom && e.hasOwnProperty("ownRoom") && (n.ownRoom = l.webcast.data.User.OwnRoom.toObject(e.ownRoom, t)), null != e.payScore && e.hasOwnProperty("payScore") && ("number" == typeof e.payScore ? n.payScore = t.longs === String ? String(e.payScore) : e.payScore : n.payScore = t.longs === String ? a.Long.prototype.toString.call(e.payScore) : t.longs === Number ? new a.LongBits(e.payScore.low >>> 0, e.payScore.high >>> 0).toNumber() : e.payScore), null != e.ticketCount && e.hasOwnProperty("ticketCount") && ("number" == typeof e.ticketCount ? n.ticketCount = t.longs === String ? String(e.ticketCount) : e.ticketCount : n.ticketCount = t.longs === String ? a.Long.prototype.toString.call(e.ticketCount) : t.longs === Number ? new a.LongBits(e.ticketCount.low >>> 0, e.ticketCount.high >>> 0).toNumber() : e.ticketCount), null != e.anchorInfo && e.hasOwnProperty("anchorInfo") && (n.anchorInfo = l.webcast.data.User.AnchorInfo.toObject(e.anchorInfo, t)), null != e.linkMicStats && e.hasOwnProperty("linkMicStats") && (n.linkMicStats = t.enums === String ? l.webcast.data.LinkmicStatus[e.linkMicStats] : e.linkMicStats), null != e.displayId && e.hasOwnProperty("displayId") && (n.displayId = e.displayId), null != e.withCommercePermission && e.hasOwnProperty("withCommercePermission") && (n.withCommercePermission = e.withCommercePermission), null != e.withFusionShopEntry && e.hasOwnProperty("withFusionShopEntry") && (n.withFusionShopEntry = e.withFusionShopEntry), null != e.totalRechargeDiamondCount && e.hasOwnProperty("totalRechargeDiamondCount") && ("number" == typeof e.totalRechargeDiamondCount ? n.totalRechargeDiamondCount = t.longs === String ? String(e.totalRechargeDiamondCount) : e.totalRechargeDiamondCount : n.totalRechargeDiamondCount = t.longs === String ? a.Long.prototype.toString.call(e.totalRechargeDiamondCount) : t.longs === Number ? new a.LongBits(e.totalRechargeDiamondCount.low >>> 0, e.totalRechargeDiamondCount.high >>> 0).toNumber() : e.totalRechargeDiamondCount), null != e.webcastAnchorLevel && e.hasOwnProperty("webcastAnchorLevel") && (n.webcastAnchorLevel = l.webcast.data.User.AnchorLevel.toObject(e.webcastAnchorLevel, t)), null != e.verifiedContent && e.hasOwnProperty("verifiedContent") && (n.verifiedContent = e.verifiedContent), null != e.authorStats && e.hasOwnProperty("authorStats") && (n.authorStats = l.webcast.data.User.AuthorStats.toObject(e.authorStats, t)), e.topFans && e.topFans.length) + { + n.topFans = []; + for (o = 0; o < e.topFans.length; ++o) n.topFans[o] = l.webcast.data.User.toObject(e.topFans[o], t) + } + if (null != e.secUid && e.hasOwnProperty("secUid") && (n.secUid = e.secUid), null != e.userRole && e.hasOwnProperty("userRole") && (n.userRole = e.userRole), null != e.xiguaInfo && e.hasOwnProperty("xiguaInfo") && (n.xiguaInfo = l.webcast.data.User.XiguaParams.toObject(e.xiguaInfo, t)), null != e.activityReward && e.hasOwnProperty("activityReward") && (n.activityReward = l.webcast.data.User.ActivityInfo.toObject(e.activityReward, t)), null != e.nobleInfo && e.hasOwnProperty("nobleInfo") && (n.nobleInfo = l.webcast.data.User.NobleLevelInfo.toObject(e.nobleInfo, t)), null != e.brotherhoodInfo && e.hasOwnProperty("brotherhoodInfo") && (n.brotherhoodInfo = l.webcast.data.User.BrotherhoodInfo.toObject(e.brotherhoodInfo, t)), null != e.personalCard && e.hasOwnProperty("personalCard") && (n.personalCard = l.webcast.data.Image.toObject(e.personalCard, t)), null != e.authenticationInfo && e.hasOwnProperty("authenticationInfo") && (n.authenticationInfo = l.webcast.data.User.AuthenticationInfo.toObject(e.authenticationInfo, t)), null != e.authorizationInfo && e.hasOwnProperty("authorizationInfo") && (n.authorizationInfo = e.authorizationInfo), null != e.adversaryAuthorizationInfo && e.hasOwnProperty("adversaryAuthorizationInfo") && (n.adversaryAuthorizationInfo = e.adversaryAuthorizationInfo), null != e.poiInfo && e.hasOwnProperty("poiInfo") && (n.poiInfo = l.webcast.data.User.PoiInfo.toObject(e.poiInfo, t)), e.mediaBadgeImageList && e.mediaBadgeImageList.length) + { + n.mediaBadgeImageList = []; + for (o = 0; o < e.mediaBadgeImageList.length; ++o) n.mediaBadgeImageList[o] = l.webcast.data.Image.toObject(e.mediaBadgeImageList[o], t) + } + if (null != e.adversaryUserStatus && e.hasOwnProperty("adversaryUserStatus") && (n.adversaryUserStatus = e.adversaryUserStatus), null != e.userVipInfo && e.hasOwnProperty("userVipInfo") && (n.userVipInfo = l.webcast.data.UserVIPInfo.toObject(e.userVipInfo, t)), e.commerceWebcastConfigIds && e.commerceWebcastConfigIds.length) + { + n.commerceWebcastConfigIds = []; + for (o = 0; o < e.commerceWebcastConfigIds.length; ++o) "number" == typeof e.commerceWebcastConfigIds[o] ? n.commerceWebcastConfigIds[o] = t.longs === String ? String(e.commerceWebcastConfigIds[o]) : e.commerceWebcastConfigIds[o] : n.commerceWebcastConfigIds[o] = t.longs === String ? a.Long.prototype.toString.call(e.commerceWebcastConfigIds[o]) : t.longs === Number ? new a.LongBits(e.commerceWebcastConfigIds[o].low >>> 0, e.commerceWebcastConfigIds[o].high >>> 0).toNumber() : e.commerceWebcastConfigIds[o] + } + if (e.badgeImageListV2 && e.badgeImageListV2.length) + { + n.badgeImageListV2 = []; + for (o = 0; o < e.badgeImageListV2.length; ++o) n.badgeImageListV2[o] = l.webcast.data.Image.toObject(e.badgeImageListV2[o], t) + } + return null != e.industryCertification && e.hasOwnProperty("industryCertification") && (n.industryCertification = l.webcast.data.IndustryCertification.toObject(e.industryCertification, t)), null != e.locationCity && e.hasOwnProperty("locationCity") && (n.locationCity = e.locationCity), null != e.fansGroupInfo && e.hasOwnProperty("fansGroupInfo") && (n.fansGroupInfo = l.webcast.data.User.FansGroupInfo.toObject(e.fansGroupInfo, t)), null != e.remarkName && e.hasOwnProperty("remarkName") && (n.remarkName = e.remarkName), null != e.mysteryMan && e.hasOwnProperty("mysteryMan") && (n.mysteryMan = e.mysteryMan), null != e.webRid && e.hasOwnProperty("webRid") && (n.webRid = e.webRid), null != e.desensitizedNickname && e.hasOwnProperty("desensitizedNickname") && (n.desensitizedNickname = e.desensitizedNickname), null != e.allowBeLocated && e.hasOwnProperty("allowBeLocated") && (n.allowBeLocated = e.allowBeLocated), null != e.allowFindByContacts && e.hasOwnProperty("allowFindByContacts") && (n.allowFindByContacts = e.allowFindByContacts), null != e.allowOthersDownloadVideo && e.hasOwnProperty("allowOthersDownloadVideo") && (n.allowOthersDownloadVideo = e.allowOthersDownloadVideo), null != e.allowOthersDownloadWhenSharingVideo && e.hasOwnProperty("allowOthersDownloadWhenSharingVideo") && (n.allowOthersDownloadWhenSharingVideo = e.allowOthersDownloadWhenSharingVideo), null != e.allowShareShowProfile && e.hasOwnProperty("allowShareShowProfile") && (n.allowShareShowProfile = e.allowShareShowProfile), null != e.allowShowInGossip && e.hasOwnProperty("allowShowInGossip") && (n.allowShowInGossip = e.allowShowInGossip), null != e.allowShowMyAction && e.hasOwnProperty("allowShowMyAction") && (n.allowShowMyAction = e.allowShowMyAction), null != e.allowStrangeComment && e.hasOwnProperty("allowStrangeComment") && (n.allowStrangeComment = e.allowStrangeComment), null != e.allowUnfollowerComment && e.hasOwnProperty("allowUnfollowerComment") && (n.allowUnfollowerComment = e.allowUnfollowerComment), null != e.allowUseLinkmic && e.hasOwnProperty("allowUseLinkmic") && (n.allowUseLinkmic = e.allowUseLinkmic), null != e.anchorLevel && e.hasOwnProperty("anchorLevel") && (n.anchorLevel = l.webcast.data.User.AnchorLevel.toObject(e.anchorLevel, t)), null != e.avatarJpg && e.hasOwnProperty("avatarJpg") && (n.avatarJpg = l.webcast.data.Image.toObject(e.avatarJpg, t)), null != e.bgImgUrl && e.hasOwnProperty("bgImgUrl") && (n.bgImgUrl = e.bgImgUrl), null != e.birthdayDescription && e.hasOwnProperty("birthdayDescription") && (n.birthdayDescription = e.birthdayDescription), null != e.birthdayValid && e.hasOwnProperty("birthdayValid") && (n.birthdayValid = e.birthdayValid), null != e.blockStatus && e.hasOwnProperty("blockStatus") && (n.blockStatus = e.blockStatus), null != e.commentRestrict && e.hasOwnProperty("commentRestrict") && (n.commentRestrict = e.commentRestrict), null != e.constellation && e.hasOwnProperty("constellation") && (n.constellation = e.constellation), null != e.disableIchat && e.hasOwnProperty("disableIchat") && (n.disableIchat = e.disableIchat), null != e.enableIchatImg && e.hasOwnProperty("enableIchatImg") && ("number" == typeof e.enableIchatImg ? n.enableIchatImg = t.longs === String ? String(e.enableIchatImg) : e.enableIchatImg : n.enableIchatImg = t.longs === String ? a.Long.prototype.toString.call(e.enableIchatImg) : t.longs === Number ? new a.LongBits(e.enableIchatImg.low >>> 0, e.enableIchatImg.high >>> 0).toNumber() : e.enableIchatImg), null != e.exp && e.hasOwnProperty("exp") && (n.exp = e.exp), null != e.fanTicketCount && e.hasOwnProperty("fanTicketCount") && ("number" == typeof e.fanTicketCount ? n.fanTicketCount = t.longs === String ? String(e.fanTicketCount) : e.fanTicketCount : n.fanTicketCount = t.longs === String ? a.Long.prototype.toString.call(e.fanTicketCount) : t.longs === Number ? new a.LongBits(e.fanTicketCount.low >>> 0, e.fanTicketCount.high >>> 0).toNumber() : e.fanTicketCount), null != e.foldStrangerChat && e.hasOwnProperty("foldStrangerChat") && (n.foldStrangerChat = e.foldStrangerChat), null != e.followStatus && e.hasOwnProperty("followStatus") && ("number" == typeof e.followStatus ? n.followStatus = t.longs === String ? String(e.followStatus) : e.followStatus : n.followStatus = t.longs === String ? a.Long.prototype.toString.call(e.followStatus) : t.longs === Number ? new a.LongBits(e.followStatus.low >>> 0, e.followStatus.high >>> 0).toNumber() : e.followStatus), null != e.hotsoonVerified && e.hasOwnProperty("hotsoonVerified") && (n.hotsoonVerified = e.hotsoonVerified), null != e.hotsoonVerifiedReason && e.hasOwnProperty("hotsoonVerifiedReason") && (n.hotsoonVerifiedReason = e.hotsoonVerifiedReason), null != e.ichatRestrictType && e.hasOwnProperty("ichatRestrictType") && (n.ichatRestrictType = e.ichatRestrictType), null != e.idStr && e.hasOwnProperty("idStr") && (n.idStr = e.idStr), null != e.isFollower && e.hasOwnProperty("isFollower") && (n.isFollower = e.isFollower), null != e.isFollowing && e.hasOwnProperty("isFollowing") && (n.isFollowing = e.isFollowing), null != e.needProfileGuide && e.hasOwnProperty("needProfileGuide") && (n.needProfileGuide = e.needProfileGuide), null != e.payScores && e.hasOwnProperty("payScores") && ("number" == typeof e.payScores ? n.payScores = t.longs === String ? String(e.payScores) : e.payScores : n.payScores = t.longs === String ? a.Long.prototype.toString.call(e.payScores) : t.longs === Number ? new a.LongBits(e.payScores.low >>> 0, e.payScores.high >>> 0).toNumber() : e.payScores), null != e.pushCommentStatus && e.hasOwnProperty("pushCommentStatus") && (n.pushCommentStatus = e.pushCommentStatus), null != e.pushDigg && e.hasOwnProperty("pushDigg") && (n.pushDigg = e.pushDigg), null != e.pushFollow && e.hasOwnProperty("pushFollow") && (n.pushFollow = e.pushFollow), null != e.pushFriendAction && e.hasOwnProperty("pushFriendAction") && (n.pushFriendAction = e.pushFriendAction), null != e.pushIchat && e.hasOwnProperty("pushIchat") && (n.pushIchat = e.pushIchat), null != e.pushStatus && e.hasOwnProperty("pushStatus") && (n.pushStatus = e.pushStatus), null != e.pushVideoPost && e.hasOwnProperty("pushVideoPost") && (n.pushVideoPost = e.pushVideoPost), null != e.pushVideoRecommend && e.hasOwnProperty("pushVideoRecommend") && (n.pushVideoRecommend = e.pushVideoRecommend), null != e.stats && e.hasOwnProperty("stats") && (n.stats = l.webcast.data.User.UserStats.toObject(e.stats, t)), null != e.verifiedMobile && e.hasOwnProperty("verifiedMobile") && (n.verifiedMobile = e.verifiedMobile), null != e.verifiedReason && e.hasOwnProperty("verifiedReason") && (n.verifiedReason = e.verifiedReason), null != e.withCarManagementPermission && e.hasOwnProperty("withCarManagementPermission") && (n.withCarManagementPermission = e.withCarManagementPermission), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.FollowInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.followingCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.followerCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.followStatus = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.pushStatus = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.remarkName = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.followingCount && Object.hasOwnProperty.call(e, "followingCount") && t.uint32(8).int64(e.followingCount), null != e.followerCount && Object.hasOwnProperty.call(e, "followerCount") && t.uint32(16).int64(e.followerCount), null != e.followStatus && Object.hasOwnProperty.call(e, "followStatus") && t.uint32(24).int64(e.followStatus), null != e.pushStatus && Object.hasOwnProperty.call(e, "pushStatus") && t.uint32(32).int64(e.pushStatus), null != e.remarkName && Object.hasOwnProperty.call(e, "remarkName") && t.uint32(42).string(e.remarkName), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.FollowInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.followingCount = e.int64(); + break; + case 2: + r.followerCount = e.int64(); + break; + case 3: + r.followStatus = e.int64(); + break; + case 4: + r.pushStatus = e.int64(); + break; + case 5: + r.remarkName = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.followingCount && e.hasOwnProperty("followingCount") && !(a.isInteger(e.followingCount) || e.followingCount && a.isInteger(e.followingCount.low) && a.isInteger(e.followingCount.high)) ? "followingCount: integer|Long expected" : null != e.followerCount && e.hasOwnProperty("followerCount") && !(a.isInteger(e.followerCount) || e.followerCount && a.isInteger(e.followerCount.low) && a.isInteger(e.followerCount.high)) ? "followerCount: integer|Long expected" : null != e.followStatus && e.hasOwnProperty("followStatus") && !(a.isInteger(e.followStatus) || e.followStatus && a.isInteger(e.followStatus.low) && a.isInteger(e.followStatus.high)) ? "followStatus: integer|Long expected" : null != e.pushStatus && e.hasOwnProperty("pushStatus") && !(a.isInteger(e.pushStatus) || e.pushStatus && a.isInteger(e.pushStatus.low) && a.isInteger(e.pushStatus.high)) ? "pushStatus: integer|Long expected" : null != e.remarkName && e.hasOwnProperty("remarkName") && !a.isString(e.remarkName) ? "remarkName: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.FollowInfo) return e; + var t = new l.webcast.data.User.FollowInfo; + return null != e.followingCount && (a.Long ? (t.followingCount = a.Long.fromValue(e.followingCount)).unsigned = !1 : "string" == typeof e.followingCount ? t.followingCount = parseInt(e.followingCount, 10) : "number" == typeof e.followingCount ? t.followingCount = e.followingCount : "object" == typeof e.followingCount && (t.followingCount = new a.LongBits(e.followingCount.low >>> 0, e.followingCount.high >>> 0).toNumber())), null != e.followerCount && (a.Long ? (t.followerCount = a.Long.fromValue(e.followerCount)).unsigned = !1 : "string" == typeof e.followerCount ? t.followerCount = parseInt(e.followerCount, 10) : "number" == typeof e.followerCount ? t.followerCount = e.followerCount : "object" == typeof e.followerCount && (t.followerCount = new a.LongBits(e.followerCount.low >>> 0, e.followerCount.high >>> 0).toNumber())), null != e.followStatus && (a.Long ? (t.followStatus = a.Long.fromValue(e.followStatus)).unsigned = !1 : "string" == typeof e.followStatus ? t.followStatus = parseInt(e.followStatus, 10) : "number" == typeof e.followStatus ? t.followStatus = e.followStatus : "object" == typeof e.followStatus && (t.followStatus = new a.LongBits(e.followStatus.low >>> 0, e.followStatus.high >>> 0).toNumber())), null != e.pushStatus && (a.Long ? (t.pushStatus = a.Long.fromValue(e.pushStatus)).unsigned = !1 : "string" == typeof e.pushStatus ? t.pushStatus = parseInt(e.pushStatus, 10) : "number" == typeof e.pushStatus ? t.pushStatus = e.pushStatus : "object" == typeof e.pushStatus && (t.pushStatus = new a.LongBits(e.pushStatus.low >>> 0, e.pushStatus.high >>> 0).toNumber())), null != e.remarkName && (t.remarkName = String(e.remarkName)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.followingCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.followingCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.followerCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.followerCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.followStatus = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.followStatus = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.pushStatus = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.pushStatus = t.longs === String ? "0" : 0; + n.remarkName = "" + } + return null != e.followingCount && e.hasOwnProperty("followingCount") && ("number" == typeof e.followingCount ? n.followingCount = t.longs === String ? String(e.followingCount) : e.followingCount : n.followingCount = t.longs === String ? a.Long.prototype.toString.call(e.followingCount) : t.longs === Number ? new a.LongBits(e.followingCount.low >>> 0, e.followingCount.high >>> 0).toNumber() : e.followingCount), null != e.followerCount && e.hasOwnProperty("followerCount") && ("number" == typeof e.followerCount ? n.followerCount = t.longs === String ? String(e.followerCount) : e.followerCount : n.followerCount = t.longs === String ? a.Long.prototype.toString.call(e.followerCount) : t.longs === Number ? new a.LongBits(e.followerCount.low >>> 0, e.followerCount.high >>> 0).toNumber() : e.followerCount), null != e.followStatus && e.hasOwnProperty("followStatus") && ("number" == typeof e.followStatus ? n.followStatus = t.longs === String ? String(e.followStatus) : e.followStatus : n.followStatus = t.longs === String ? a.Long.prototype.toString.call(e.followStatus) : t.longs === Number ? new a.LongBits(e.followStatus.low >>> 0, e.followStatus.high >>> 0).toNumber() : e.followStatus), null != e.pushStatus && e.hasOwnProperty("pushStatus") && ("number" == typeof e.pushStatus ? n.pushStatus = t.longs === String ? String(e.pushStatus) : e.pushStatus : n.pushStatus = t.longs === String ? a.Long.prototype.toString.call(e.pushStatus) : t.longs === Number ? new a.LongBits(e.pushStatus.low >>> 0, e.pushStatus.high >>> 0).toNumber() : e.pushStatus), null != e.remarkName && e.hasOwnProperty("remarkName") && (n.remarkName = e.remarkName), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.PayGrade = function () + { + function e(e) + { + if (this.gradeIconList = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.totalDiamondCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.diamondIcon = null, e.prototype.name = "", e.prototype.icon = null, e.prototype.nextName = "", e.prototype.level = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.nextIcon = null, e.prototype.nextDiamond = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.nowDiamond = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.thisGradeMinDiamond = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.thisGradeMaxDiamond = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.payDiamondBak = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.gradeDescribe = "", e.prototype.gradeIconList = a.emptyArray, e.prototype.screenChatType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.imIcon = null, e.prototype.imIconWithLevel = null, e.prototype.liveIcon = null, e.prototype.newImIconWithLevel = null, e.prototype.newLiveIcon = null, e.prototype.upgradeNeedConsume = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.nextPrivileges = "", e.prototype.background = null, e.prototype.backgroundBack = null, e.prototype.score = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.buffInfo = null, e.prototype.gradeBanner = "", e.prototype.profileDialogBg = null, e.prototype.profileDialogBgBack = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.totalDiamondCount && Object.hasOwnProperty.call(e, "totalDiamondCount") && t.uint32(8).int64(e.totalDiamondCount), null != e.diamondIcon && Object.hasOwnProperty.call(e, "diamondIcon") && l.webcast.data.Image.encode(e.diamondIcon, t.uint32(18).fork()).ldelim(), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(26).string(e.name), null != e.icon && Object.hasOwnProperty.call(e, "icon") && l.webcast.data.Image.encode(e.icon, t.uint32(34).fork()).ldelim(), null != e.nextName && Object.hasOwnProperty.call(e, "nextName") && t.uint32(42).string(e.nextName), null != e.level && Object.hasOwnProperty.call(e, "level") && t.uint32(48).int64(e.level), null != e.nextIcon && Object.hasOwnProperty.call(e, "nextIcon") && l.webcast.data.Image.encode(e.nextIcon, t.uint32(58).fork()).ldelim(), null != e.nextDiamond && Object.hasOwnProperty.call(e, "nextDiamond") && t.uint32(64).int64(e.nextDiamond), null != e.nowDiamond && Object.hasOwnProperty.call(e, "nowDiamond") && t.uint32(72).int64(e.nowDiamond), null != e.thisGradeMinDiamond && Object.hasOwnProperty.call(e, "thisGradeMinDiamond") && t.uint32(80).int64(e.thisGradeMinDiamond), null != e.thisGradeMaxDiamond && Object.hasOwnProperty.call(e, "thisGradeMaxDiamond") && t.uint32(88).int64(e.thisGradeMaxDiamond), null != e.payDiamondBak && Object.hasOwnProperty.call(e, "payDiamondBak") && t.uint32(96).int64(e.payDiamondBak), null != e.gradeDescribe && Object.hasOwnProperty.call(e, "gradeDescribe") && t.uint32(106).string(e.gradeDescribe), null != e.gradeIconList && e.gradeIconList.length) + for (var n = 0; n < e.gradeIconList.length; ++n) l.webcast.data.User.PayGrade.GradeIcon.encode(e.gradeIconList[n], t.uint32(114).fork()).ldelim(); + return null != e.screenChatType && Object.hasOwnProperty.call(e, "screenChatType") && t.uint32(120).int64(e.screenChatType), null != e.imIcon && Object.hasOwnProperty.call(e, "imIcon") && l.webcast.data.Image.encode(e.imIcon, t.uint32(130).fork()).ldelim(), null != e.imIconWithLevel && Object.hasOwnProperty.call(e, "imIconWithLevel") && l.webcast.data.Image.encode(e.imIconWithLevel, t.uint32(138).fork()).ldelim(), null != e.liveIcon && Object.hasOwnProperty.call(e, "liveIcon") && l.webcast.data.Image.encode(e.liveIcon, t.uint32(146).fork()).ldelim(), null != e.newImIconWithLevel && Object.hasOwnProperty.call(e, "newImIconWithLevel") && l.webcast.data.Image.encode(e.newImIconWithLevel, t.uint32(154).fork()).ldelim(), null != e.newLiveIcon && Object.hasOwnProperty.call(e, "newLiveIcon") && l.webcast.data.Image.encode(e.newLiveIcon, t.uint32(162).fork()).ldelim(), null != e.upgradeNeedConsume && Object.hasOwnProperty.call(e, "upgradeNeedConsume") && t.uint32(168).int64(e.upgradeNeedConsume), null != e.nextPrivileges && Object.hasOwnProperty.call(e, "nextPrivileges") && t.uint32(178).string(e.nextPrivileges), null != e.background && Object.hasOwnProperty.call(e, "background") && l.webcast.data.Image.encode(e.background, t.uint32(186).fork()).ldelim(), null != e.backgroundBack && Object.hasOwnProperty.call(e, "backgroundBack") && l.webcast.data.Image.encode(e.backgroundBack, t.uint32(194).fork()).ldelim(), null != e.score && Object.hasOwnProperty.call(e, "score") && t.uint32(200).int64(e.score), null != e.buffInfo && Object.hasOwnProperty.call(e, "buffInfo") && l.webcast.data.GradeBuffInfo.encode(e.buffInfo, t.uint32(210).fork()).ldelim(), null != e.gradeBanner && Object.hasOwnProperty.call(e, "gradeBanner") && t.uint32(8010).string(e.gradeBanner), null != e.profileDialogBg && Object.hasOwnProperty.call(e, "profileDialogBg") && l.webcast.data.Image.encode(e.profileDialogBg, t.uint32(8018).fork()).ldelim(), null != e.profileDialogBgBack && Object.hasOwnProperty.call(e, "profileDialogBgBack") && l.webcast.data.Image.encode(e.profileDialogBgBack, t.uint32(8026).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.PayGrade; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.totalDiamondCount = e.int64(); + break; + case 2: + r.diamondIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 3: + r.name = e.string(); + break; + case 4: + r.icon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 5: + r.nextName = e.string(); + break; + case 6: + r.level = e.int64(); + break; + case 7: + r.nextIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 8: + r.nextDiamond = e.int64(); + break; + case 9: + r.nowDiamond = e.int64(); + break; + case 10: + r.thisGradeMinDiamond = e.int64(); + break; + case 11: + r.thisGradeMaxDiamond = e.int64(); + break; + case 12: + r.payDiamondBak = e.int64(); + break; + case 13: + r.gradeDescribe = e.string(); + break; + case 14: + r.gradeIconList && r.gradeIconList.length || (r.gradeIconList = []), r.gradeIconList.push(l.webcast.data.User.PayGrade.GradeIcon.decode(e, e.uint32())); + break; + case 15: + r.screenChatType = e.int64(); + break; + case 16: + r.imIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 17: + r.imIconWithLevel = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 18: + r.liveIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 19: + r.newImIconWithLevel = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 20: + r.newLiveIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 21: + r.upgradeNeedConsume = e.int64(); + break; + case 22: + r.nextPrivileges = e.string(); + break; + case 23: + r.background = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 24: + r.backgroundBack = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 25: + r.score = e.int64(); + break; + case 26: + r.buffInfo = l.webcast.data.GradeBuffInfo.decode(e, e.uint32()); + break; + case 1001: + r.gradeBanner = e.string(); + break; + case 1002: + r.profileDialogBg = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 1003: + r.profileDialogBgBack = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.totalDiamondCount && e.hasOwnProperty("totalDiamondCount") && !(a.isInteger(e.totalDiamondCount) || e.totalDiamondCount && a.isInteger(e.totalDiamondCount.low) && a.isInteger(e.totalDiamondCount.high))) return "totalDiamondCount: integer|Long expected"; + if (null != e.diamondIcon && e.hasOwnProperty("diamondIcon") && (n = l.webcast.data.Image.verify(e.diamondIcon))) return "diamondIcon." + n; + if (null != e.name && e.hasOwnProperty("name") && !a.isString(e.name)) return "name: string expected"; + if (null != e.icon && e.hasOwnProperty("icon") && (n = l.webcast.data.Image.verify(e.icon))) return "icon." + n; + if (null != e.nextName && e.hasOwnProperty("nextName") && !a.isString(e.nextName)) return "nextName: string expected"; + if (null != e.level && e.hasOwnProperty("level") && !(a.isInteger(e.level) || e.level && a.isInteger(e.level.low) && a.isInteger(e.level.high))) return "level: integer|Long expected"; + if (null != e.nextIcon && e.hasOwnProperty("nextIcon") && (n = l.webcast.data.Image.verify(e.nextIcon))) return "nextIcon." + n; + if (null != e.nextDiamond && e.hasOwnProperty("nextDiamond") && !(a.isInteger(e.nextDiamond) || e.nextDiamond && a.isInteger(e.nextDiamond.low) && a.isInteger(e.nextDiamond.high))) return "nextDiamond: integer|Long expected"; + if (null != e.nowDiamond && e.hasOwnProperty("nowDiamond") && !(a.isInteger(e.nowDiamond) || e.nowDiamond && a.isInteger(e.nowDiamond.low) && a.isInteger(e.nowDiamond.high))) return "nowDiamond: integer|Long expected"; + if (null != e.thisGradeMinDiamond && e.hasOwnProperty("thisGradeMinDiamond") && !(a.isInteger(e.thisGradeMinDiamond) || e.thisGradeMinDiamond && a.isInteger(e.thisGradeMinDiamond.low) && a.isInteger(e.thisGradeMinDiamond.high))) return "thisGradeMinDiamond: integer|Long expected"; + if (null != e.thisGradeMaxDiamond && e.hasOwnProperty("thisGradeMaxDiamond") && !(a.isInteger(e.thisGradeMaxDiamond) || e.thisGradeMaxDiamond && a.isInteger(e.thisGradeMaxDiamond.low) && a.isInteger(e.thisGradeMaxDiamond.high))) return "thisGradeMaxDiamond: integer|Long expected"; + if (null != e.payDiamondBak && e.hasOwnProperty("payDiamondBak") && !(a.isInteger(e.payDiamondBak) || e.payDiamondBak && a.isInteger(e.payDiamondBak.low) && a.isInteger(e.payDiamondBak.high))) return "payDiamondBak: integer|Long expected"; + if (null != e.gradeDescribe && e.hasOwnProperty("gradeDescribe") && !a.isString(e.gradeDescribe)) return "gradeDescribe: string expected"; + if (null != e.gradeIconList && e.hasOwnProperty("gradeIconList")) + { + if (!Array.isArray(e.gradeIconList)) return "gradeIconList: array expected"; + for (var t = 0; t < e.gradeIconList.length; ++t) + { + var n; + if (n = l.webcast.data.User.PayGrade.GradeIcon.verify(e.gradeIconList[t])) return "gradeIconList." + n + } + } + if (null != e.screenChatType && e.hasOwnProperty("screenChatType") && !(a.isInteger(e.screenChatType) || e.screenChatType && a.isInteger(e.screenChatType.low) && a.isInteger(e.screenChatType.high))) return "screenChatType: integer|Long expected"; + if (null != e.imIcon && e.hasOwnProperty("imIcon") && (n = l.webcast.data.Image.verify(e.imIcon))) return "imIcon." + n; + if (null != e.imIconWithLevel && e.hasOwnProperty("imIconWithLevel") && (n = l.webcast.data.Image.verify(e.imIconWithLevel))) return "imIconWithLevel." + n; + if (null != e.liveIcon && e.hasOwnProperty("liveIcon") && (n = l.webcast.data.Image.verify(e.liveIcon))) return "liveIcon." + n; + if (null != e.newImIconWithLevel && e.hasOwnProperty("newImIconWithLevel") && (n = l.webcast.data.Image.verify(e.newImIconWithLevel))) return "newImIconWithLevel." + n; + if (null != e.newLiveIcon && e.hasOwnProperty("newLiveIcon") && (n = l.webcast.data.Image.verify(e.newLiveIcon))) return "newLiveIcon." + n; + if (null != e.upgradeNeedConsume && e.hasOwnProperty("upgradeNeedConsume") && !(a.isInteger(e.upgradeNeedConsume) || e.upgradeNeedConsume && a.isInteger(e.upgradeNeedConsume.low) && a.isInteger(e.upgradeNeedConsume.high))) return "upgradeNeedConsume: integer|Long expected"; + if (null != e.nextPrivileges && e.hasOwnProperty("nextPrivileges") && !a.isString(e.nextPrivileges)) return "nextPrivileges: string expected"; + if (null != e.background && e.hasOwnProperty("background") && (n = l.webcast.data.Image.verify(e.background))) return "background." + n; + if (null != e.backgroundBack && e.hasOwnProperty("backgroundBack") && (n = l.webcast.data.Image.verify(e.backgroundBack))) return "backgroundBack." + n; + if (null != e.score && e.hasOwnProperty("score") && !(a.isInteger(e.score) || e.score && a.isInteger(e.score.low) && a.isInteger(e.score.high))) return "score: integer|Long expected"; + if (null != e.buffInfo && e.hasOwnProperty("buffInfo") && (n = l.webcast.data.GradeBuffInfo.verify(e.buffInfo))) return "buffInfo." + n; + if (null != e.gradeBanner && e.hasOwnProperty("gradeBanner") && !a.isString(e.gradeBanner)) return "gradeBanner: string expected"; + if (null != e.profileDialogBg && e.hasOwnProperty("profileDialogBg") && (n = l.webcast.data.Image.verify(e.profileDialogBg))) return "profileDialogBg." + n; + if (null != e.profileDialogBgBack && e.hasOwnProperty("profileDialogBgBack") && (n = l.webcast.data.Image.verify(e.profileDialogBgBack))) return "profileDialogBgBack." + n; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.PayGrade) return e; + var t = new l.webcast.data.User.PayGrade; + if (null != e.totalDiamondCount && (a.Long ? (t.totalDiamondCount = a.Long.fromValue(e.totalDiamondCount)).unsigned = !1 : "string" == typeof e.totalDiamondCount ? t.totalDiamondCount = parseInt(e.totalDiamondCount, 10) : "number" == typeof e.totalDiamondCount ? t.totalDiamondCount = e.totalDiamondCount : "object" == typeof e.totalDiamondCount && (t.totalDiamondCount = new a.LongBits(e.totalDiamondCount.low >>> 0, e.totalDiamondCount.high >>> 0).toNumber())), null != e.diamondIcon) + { + if ("object" != typeof e.diamondIcon) throw TypeError(".webcast.data.User.PayGrade.diamondIcon: object expected"); + t.diamondIcon = l.webcast.data.Image.fromObject(e.diamondIcon) + } + if (null != e.name && (t.name = String(e.name)), null != e.icon) + { + if ("object" != typeof e.icon) throw TypeError(".webcast.data.User.PayGrade.icon: object expected"); + t.icon = l.webcast.data.Image.fromObject(e.icon) + } + if (null != e.nextName && (t.nextName = String(e.nextName)), null != e.level && (a.Long ? (t.level = a.Long.fromValue(e.level)).unsigned = !1 : "string" == typeof e.level ? t.level = parseInt(e.level, 10) : "number" == typeof e.level ? t.level = e.level : "object" == typeof e.level && (t.level = new a.LongBits(e.level.low >>> 0, e.level.high >>> 0).toNumber())), null != e.nextIcon) + { + if ("object" != typeof e.nextIcon) throw TypeError(".webcast.data.User.PayGrade.nextIcon: object expected"); + t.nextIcon = l.webcast.data.Image.fromObject(e.nextIcon) + } + if (null != e.nextDiamond && (a.Long ? (t.nextDiamond = a.Long.fromValue(e.nextDiamond)).unsigned = !1 : "string" == typeof e.nextDiamond ? t.nextDiamond = parseInt(e.nextDiamond, 10) : "number" == typeof e.nextDiamond ? t.nextDiamond = e.nextDiamond : "object" == typeof e.nextDiamond && (t.nextDiamond = new a.LongBits(e.nextDiamond.low >>> 0, e.nextDiamond.high >>> 0).toNumber())), null != e.nowDiamond && (a.Long ? (t.nowDiamond = a.Long.fromValue(e.nowDiamond)).unsigned = !1 : "string" == typeof e.nowDiamond ? t.nowDiamond = parseInt(e.nowDiamond, 10) : "number" == typeof e.nowDiamond ? t.nowDiamond = e.nowDiamond : "object" == typeof e.nowDiamond && (t.nowDiamond = new a.LongBits(e.nowDiamond.low >>> 0, e.nowDiamond.high >>> 0).toNumber())), null != e.thisGradeMinDiamond && (a.Long ? (t.thisGradeMinDiamond = a.Long.fromValue(e.thisGradeMinDiamond)).unsigned = !1 : "string" == typeof e.thisGradeMinDiamond ? t.thisGradeMinDiamond = parseInt(e.thisGradeMinDiamond, 10) : "number" == typeof e.thisGradeMinDiamond ? t.thisGradeMinDiamond = e.thisGradeMinDiamond : "object" == typeof e.thisGradeMinDiamond && (t.thisGradeMinDiamond = new a.LongBits(e.thisGradeMinDiamond.low >>> 0, e.thisGradeMinDiamond.high >>> 0).toNumber())), null != e.thisGradeMaxDiamond && (a.Long ? (t.thisGradeMaxDiamond = a.Long.fromValue(e.thisGradeMaxDiamond)).unsigned = !1 : "string" == typeof e.thisGradeMaxDiamond ? t.thisGradeMaxDiamond = parseInt(e.thisGradeMaxDiamond, 10) : "number" == typeof e.thisGradeMaxDiamond ? t.thisGradeMaxDiamond = e.thisGradeMaxDiamond : "object" == typeof e.thisGradeMaxDiamond && (t.thisGradeMaxDiamond = new a.LongBits(e.thisGradeMaxDiamond.low >>> 0, e.thisGradeMaxDiamond.high >>> 0).toNumber())), null != e.payDiamondBak && (a.Long ? (t.payDiamondBak = a.Long.fromValue(e.payDiamondBak)).unsigned = !1 : "string" == typeof e.payDiamondBak ? t.payDiamondBak = parseInt(e.payDiamondBak, 10) : "number" == typeof e.payDiamondBak ? t.payDiamondBak = e.payDiamondBak : "object" == typeof e.payDiamondBak && (t.payDiamondBak = new a.LongBits(e.payDiamondBak.low >>> 0, e.payDiamondBak.high >>> 0).toNumber())), null != e.gradeDescribe && (t.gradeDescribe = String(e.gradeDescribe)), e.gradeIconList) + { + if (!Array.isArray(e.gradeIconList)) throw TypeError(".webcast.data.User.PayGrade.gradeIconList: array expected"); + t.gradeIconList = []; + for (var n = 0; n < e.gradeIconList.length; ++n) + { + if ("object" != typeof e.gradeIconList[n]) throw TypeError(".webcast.data.User.PayGrade.gradeIconList: object expected"); + t.gradeIconList[n] = l.webcast.data.User.PayGrade.GradeIcon.fromObject(e.gradeIconList[n]) + } + } + if (null != e.screenChatType && (a.Long ? (t.screenChatType = a.Long.fromValue(e.screenChatType)).unsigned = !1 : "string" == typeof e.screenChatType ? t.screenChatType = parseInt(e.screenChatType, 10) : "number" == typeof e.screenChatType ? t.screenChatType = e.screenChatType : "object" == typeof e.screenChatType && (t.screenChatType = new a.LongBits(e.screenChatType.low >>> 0, e.screenChatType.high >>> 0).toNumber())), null != e.imIcon) + { + if ("object" != typeof e.imIcon) throw TypeError(".webcast.data.User.PayGrade.imIcon: object expected"); + t.imIcon = l.webcast.data.Image.fromObject(e.imIcon) + } + if (null != e.imIconWithLevel) + { + if ("object" != typeof e.imIconWithLevel) throw TypeError(".webcast.data.User.PayGrade.imIconWithLevel: object expected"); + t.imIconWithLevel = l.webcast.data.Image.fromObject(e.imIconWithLevel) + } + if (null != e.liveIcon) + { + if ("object" != typeof e.liveIcon) throw TypeError(".webcast.data.User.PayGrade.liveIcon: object expected"); + t.liveIcon = l.webcast.data.Image.fromObject(e.liveIcon) + } + if (null != e.newImIconWithLevel) + { + if ("object" != typeof e.newImIconWithLevel) throw TypeError(".webcast.data.User.PayGrade.newImIconWithLevel: object expected"); + t.newImIconWithLevel = l.webcast.data.Image.fromObject(e.newImIconWithLevel) + } + if (null != e.newLiveIcon) + { + if ("object" != typeof e.newLiveIcon) throw TypeError(".webcast.data.User.PayGrade.newLiveIcon: object expected"); + t.newLiveIcon = l.webcast.data.Image.fromObject(e.newLiveIcon) + } + if (null != e.upgradeNeedConsume && (a.Long ? (t.upgradeNeedConsume = a.Long.fromValue(e.upgradeNeedConsume)).unsigned = !1 : "string" == typeof e.upgradeNeedConsume ? t.upgradeNeedConsume = parseInt(e.upgradeNeedConsume, 10) : "number" == typeof e.upgradeNeedConsume ? t.upgradeNeedConsume = e.upgradeNeedConsume : "object" == typeof e.upgradeNeedConsume && (t.upgradeNeedConsume = new a.LongBits(e.upgradeNeedConsume.low >>> 0, e.upgradeNeedConsume.high >>> 0).toNumber())), null != e.nextPrivileges && (t.nextPrivileges = String(e.nextPrivileges)), null != e.background) + { + if ("object" != typeof e.background) throw TypeError(".webcast.data.User.PayGrade.background: object expected"); + t.background = l.webcast.data.Image.fromObject(e.background) + } + if (null != e.backgroundBack) + { + if ("object" != typeof e.backgroundBack) throw TypeError(".webcast.data.User.PayGrade.backgroundBack: object expected"); + t.backgroundBack = l.webcast.data.Image.fromObject(e.backgroundBack) + } + if (null != e.score && (a.Long ? (t.score = a.Long.fromValue(e.score)).unsigned = !1 : "string" == typeof e.score ? t.score = parseInt(e.score, 10) : "number" == typeof e.score ? t.score = e.score : "object" == typeof e.score && (t.score = new a.LongBits(e.score.low >>> 0, e.score.high >>> 0).toNumber())), null != e.buffInfo) + { + if ("object" != typeof e.buffInfo) throw TypeError(".webcast.data.User.PayGrade.buffInfo: object expected"); + t.buffInfo = l.webcast.data.GradeBuffInfo.fromObject(e.buffInfo) + } + if (null != e.gradeBanner && (t.gradeBanner = String(e.gradeBanner)), null != e.profileDialogBg) + { + if ("object" != typeof e.profileDialogBg) throw TypeError(".webcast.data.User.PayGrade.profileDialogBg: object expected"); + t.profileDialogBg = l.webcast.data.Image.fromObject(e.profileDialogBg) + } + if (null != e.profileDialogBgBack) + { + if ("object" != typeof e.profileDialogBgBack) throw TypeError(".webcast.data.User.PayGrade.profileDialogBgBack: object expected"); + t.profileDialogBgBack = l.webcast.data.Image.fromObject(e.profileDialogBgBack) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.gradeIconList = []), t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.totalDiamondCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.totalDiamondCount = t.longs === String ? "0" : 0; + if (n.diamondIcon = null, n.name = "", n.icon = null, n.nextName = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.level = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.level = t.longs === String ? "0" : 0; + if (n.nextIcon = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.nextDiamond = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.nextDiamond = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.nowDiamond = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.nowDiamond = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.thisGradeMinDiamond = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.thisGradeMinDiamond = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.thisGradeMaxDiamond = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.thisGradeMaxDiamond = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.payDiamondBak = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.payDiamondBak = t.longs === String ? "0" : 0; + if (n.gradeDescribe = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.screenChatType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.screenChatType = t.longs === String ? "0" : 0; + if (n.imIcon = null, n.imIconWithLevel = null, n.liveIcon = null, n.newImIconWithLevel = null, n.newLiveIcon = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.upgradeNeedConsume = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.upgradeNeedConsume = t.longs === String ? "0" : 0; + if (n.nextPrivileges = "", n.background = null, n.backgroundBack = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.score = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.score = t.longs === String ? "0" : 0; + n.buffInfo = null, n.gradeBanner = "", n.profileDialogBg = null, n.profileDialogBgBack = null + } + if (null != e.totalDiamondCount && e.hasOwnProperty("totalDiamondCount") && ("number" == typeof e.totalDiamondCount ? n.totalDiamondCount = t.longs === String ? String(e.totalDiamondCount) : e.totalDiamondCount : n.totalDiamondCount = t.longs === String ? a.Long.prototype.toString.call(e.totalDiamondCount) : t.longs === Number ? new a.LongBits(e.totalDiamondCount.low >>> 0, e.totalDiamondCount.high >>> 0).toNumber() : e.totalDiamondCount), null != e.diamondIcon && e.hasOwnProperty("diamondIcon") && (n.diamondIcon = l.webcast.data.Image.toObject(e.diamondIcon, t)), null != e.name && e.hasOwnProperty("name") && (n.name = e.name), null != e.icon && e.hasOwnProperty("icon") && (n.icon = l.webcast.data.Image.toObject(e.icon, t)), null != e.nextName && e.hasOwnProperty("nextName") && (n.nextName = e.nextName), null != e.level && e.hasOwnProperty("level") && ("number" == typeof e.level ? n.level = t.longs === String ? String(e.level) : e.level : n.level = t.longs === String ? a.Long.prototype.toString.call(e.level) : t.longs === Number ? new a.LongBits(e.level.low >>> 0, e.level.high >>> 0).toNumber() : e.level), null != e.nextIcon && e.hasOwnProperty("nextIcon") && (n.nextIcon = l.webcast.data.Image.toObject(e.nextIcon, t)), null != e.nextDiamond && e.hasOwnProperty("nextDiamond") && ("number" == typeof e.nextDiamond ? n.nextDiamond = t.longs === String ? String(e.nextDiamond) : e.nextDiamond : n.nextDiamond = t.longs === String ? a.Long.prototype.toString.call(e.nextDiamond) : t.longs === Number ? new a.LongBits(e.nextDiamond.low >>> 0, e.nextDiamond.high >>> 0).toNumber() : e.nextDiamond), null != e.nowDiamond && e.hasOwnProperty("nowDiamond") && ("number" == typeof e.nowDiamond ? n.nowDiamond = t.longs === String ? String(e.nowDiamond) : e.nowDiamond : n.nowDiamond = t.longs === String ? a.Long.prototype.toString.call(e.nowDiamond) : t.longs === Number ? new a.LongBits(e.nowDiamond.low >>> 0, e.nowDiamond.high >>> 0).toNumber() : e.nowDiamond), null != e.thisGradeMinDiamond && e.hasOwnProperty("thisGradeMinDiamond") && ("number" == typeof e.thisGradeMinDiamond ? n.thisGradeMinDiamond = t.longs === String ? String(e.thisGradeMinDiamond) : e.thisGradeMinDiamond : n.thisGradeMinDiamond = t.longs === String ? a.Long.prototype.toString.call(e.thisGradeMinDiamond) : t.longs === Number ? new a.LongBits(e.thisGradeMinDiamond.low >>> 0, e.thisGradeMinDiamond.high >>> 0).toNumber() : e.thisGradeMinDiamond), null != e.thisGradeMaxDiamond && e.hasOwnProperty("thisGradeMaxDiamond") && ("number" == typeof e.thisGradeMaxDiamond ? n.thisGradeMaxDiamond = t.longs === String ? String(e.thisGradeMaxDiamond) : e.thisGradeMaxDiamond : n.thisGradeMaxDiamond = t.longs === String ? a.Long.prototype.toString.call(e.thisGradeMaxDiamond) : t.longs === Number ? new a.LongBits(e.thisGradeMaxDiamond.low >>> 0, e.thisGradeMaxDiamond.high >>> 0).toNumber() : e.thisGradeMaxDiamond), null != e.payDiamondBak && e.hasOwnProperty("payDiamondBak") && ("number" == typeof e.payDiamondBak ? n.payDiamondBak = t.longs === String ? String(e.payDiamondBak) : e.payDiamondBak : n.payDiamondBak = t.longs === String ? a.Long.prototype.toString.call(e.payDiamondBak) : t.longs === Number ? new a.LongBits(e.payDiamondBak.low >>> 0, e.payDiamondBak.high >>> 0).toNumber() : e.payDiamondBak), null != e.gradeDescribe && e.hasOwnProperty("gradeDescribe") && (n.gradeDescribe = e.gradeDescribe), e.gradeIconList && e.gradeIconList.length) + { + n.gradeIconList = []; + for (var o = 0; o < e.gradeIconList.length; ++o) n.gradeIconList[o] = l.webcast.data.User.PayGrade.GradeIcon.toObject(e.gradeIconList[o], t) + } + return null != e.screenChatType && e.hasOwnProperty("screenChatType") && ("number" == typeof e.screenChatType ? n.screenChatType = t.longs === String ? String(e.screenChatType) : e.screenChatType : n.screenChatType = t.longs === String ? a.Long.prototype.toString.call(e.screenChatType) : t.longs === Number ? new a.LongBits(e.screenChatType.low >>> 0, e.screenChatType.high >>> 0).toNumber() : e.screenChatType), null != e.imIcon && e.hasOwnProperty("imIcon") && (n.imIcon = l.webcast.data.Image.toObject(e.imIcon, t)), null != e.imIconWithLevel && e.hasOwnProperty("imIconWithLevel") && (n.imIconWithLevel = l.webcast.data.Image.toObject(e.imIconWithLevel, t)), null != e.liveIcon && e.hasOwnProperty("liveIcon") && (n.liveIcon = l.webcast.data.Image.toObject(e.liveIcon, t)), null != e.newImIconWithLevel && e.hasOwnProperty("newImIconWithLevel") && (n.newImIconWithLevel = l.webcast.data.Image.toObject(e.newImIconWithLevel, t)), null != e.newLiveIcon && e.hasOwnProperty("newLiveIcon") && (n.newLiveIcon = l.webcast.data.Image.toObject(e.newLiveIcon, t)), null != e.upgradeNeedConsume && e.hasOwnProperty("upgradeNeedConsume") && ("number" == typeof e.upgradeNeedConsume ? n.upgradeNeedConsume = t.longs === String ? String(e.upgradeNeedConsume) : e.upgradeNeedConsume : n.upgradeNeedConsume = t.longs === String ? a.Long.prototype.toString.call(e.upgradeNeedConsume) : t.longs === Number ? new a.LongBits(e.upgradeNeedConsume.low >>> 0, e.upgradeNeedConsume.high >>> 0).toNumber() : e.upgradeNeedConsume), null != e.nextPrivileges && e.hasOwnProperty("nextPrivileges") && (n.nextPrivileges = e.nextPrivileges), null != e.background && e.hasOwnProperty("background") && (n.background = l.webcast.data.Image.toObject(e.background, t)), null != e.backgroundBack && e.hasOwnProperty("backgroundBack") && (n.backgroundBack = l.webcast.data.Image.toObject(e.backgroundBack, t)), null != e.score && e.hasOwnProperty("score") && ("number" == typeof e.score ? n.score = t.longs === String ? String(e.score) : e.score : n.score = t.longs === String ? a.Long.prototype.toString.call(e.score) : t.longs === Number ? new a.LongBits(e.score.low >>> 0, e.score.high >>> 0).toNumber() : e.score), null != e.buffInfo && e.hasOwnProperty("buffInfo") && (n.buffInfo = l.webcast.data.GradeBuffInfo.toObject(e.buffInfo, t)), null != e.gradeBanner && e.hasOwnProperty("gradeBanner") && (n.gradeBanner = e.gradeBanner), null != e.profileDialogBg && e.hasOwnProperty("profileDialogBg") && (n.profileDialogBg = l.webcast.data.Image.toObject(e.profileDialogBg, t)), null != e.profileDialogBgBack && e.hasOwnProperty("profileDialogBgBack") && (n.profileDialogBgBack = l.webcast.data.Image.toObject(e.profileDialogBgBack, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.GradeIcon = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.icon = null, e.prototype.iconDiamond = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.level = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.levelStr = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.icon && Object.hasOwnProperty.call(e, "icon") && l.webcast.data.Image.encode(e.icon, t.uint32(10).fork()).ldelim(), null != e.iconDiamond && Object.hasOwnProperty.call(e, "iconDiamond") && t.uint32(16).int64(e.iconDiamond), null != e.level && Object.hasOwnProperty.call(e, "level") && t.uint32(24).int64(e.level), null != e.levelStr && Object.hasOwnProperty.call(e, "levelStr") && t.uint32(34).string(e.levelStr), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.PayGrade.GradeIcon; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.icon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.iconDiamond = e.int64(); + break; + case 3: + r.level = e.int64(); + break; + case 4: + r.levelStr = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.icon && e.hasOwnProperty("icon")) + { + var t = l.webcast.data.Image.verify(e.icon); + if (t) return "icon." + t + } + return null != e.iconDiamond && e.hasOwnProperty("iconDiamond") && !(a.isInteger(e.iconDiamond) || e.iconDiamond && a.isInteger(e.iconDiamond.low) && a.isInteger(e.iconDiamond.high)) ? "iconDiamond: integer|Long expected" : null != e.level && e.hasOwnProperty("level") && !(a.isInteger(e.level) || e.level && a.isInteger(e.level.low) && a.isInteger(e.level.high)) ? "level: integer|Long expected" : null != e.levelStr && e.hasOwnProperty("levelStr") && !a.isString(e.levelStr) ? "levelStr: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.PayGrade.GradeIcon) return e; + var t = new l.webcast.data.User.PayGrade.GradeIcon; + if (null != e.icon) + { + if ("object" != typeof e.icon) throw TypeError(".webcast.data.User.PayGrade.GradeIcon.icon: object expected"); + t.icon = l.webcast.data.Image.fromObject(e.icon) + } + return null != e.iconDiamond && (a.Long ? (t.iconDiamond = a.Long.fromValue(e.iconDiamond)).unsigned = !1 : "string" == typeof e.iconDiamond ? t.iconDiamond = parseInt(e.iconDiamond, 10) : "number" == typeof e.iconDiamond ? t.iconDiamond = e.iconDiamond : "object" == typeof e.iconDiamond && (t.iconDiamond = new a.LongBits(e.iconDiamond.low >>> 0, e.iconDiamond.high >>> 0).toNumber())), null != e.level && (a.Long ? (t.level = a.Long.fromValue(e.level)).unsigned = !1 : "string" == typeof e.level ? t.level = parseInt(e.level, 10) : "number" == typeof e.level ? t.level = e.level : "object" == typeof e.level && (t.level = new a.LongBits(e.level.low >>> 0, e.level.high >>> 0).toNumber())), null != e.levelStr && (t.levelStr = String(e.levelStr)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.icon = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.iconDiamond = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.iconDiamond = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.level = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.level = t.longs === String ? "0" : 0; + n.levelStr = "" + } + return null != e.icon && e.hasOwnProperty("icon") && (n.icon = l.webcast.data.Image.toObject(e.icon, t)), null != e.iconDiamond && e.hasOwnProperty("iconDiamond") && ("number" == typeof e.iconDiamond ? n.iconDiamond = t.longs === String ? String(e.iconDiamond) : e.iconDiamond : n.iconDiamond = t.longs === String ? a.Long.prototype.toString.call(e.iconDiamond) : t.longs === Number ? new a.LongBits(e.iconDiamond.low >>> 0, e.iconDiamond.high >>> 0).toNumber() : e.iconDiamond), null != e.level && e.hasOwnProperty("level") && ("number" == typeof e.level ? n.level = t.longs === String ? String(e.level) : e.level : n.level = t.longs === String ? a.Long.prototype.toString.call(e.level) : t.longs === Number ? new a.LongBits(e.level.low >>> 0, e.level.high >>> 0).toNumber() : e.level), null != e.levelStr && e.hasOwnProperty("levelStr") && (n.levelStr = e.levelStr), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.FansClub = function () + { + function e(e) + { + if (this.preferData = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.data = null, e.prototype.preferData = a.emptyObject, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.data && Object.hasOwnProperty.call(e, "data") && l.webcast.data.User.FansClub.FansClubData.encode(e.data, t.uint32(10).fork()).ldelim(), null != e.preferData && Object.hasOwnProperty.call(e, "preferData")) + for (var n = Object.keys(e.preferData), r = 0; r < n.length; ++r) t.uint32(18).fork().uint32(8).int32(n[r]), l.webcast.data.User.FansClub.FansClubData.encode(e.preferData[n[r]], t.uint32(18).fork()).ldelim().ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.User.FansClub; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.data = l.webcast.data.User.FansClub.FansClubData.decode(e, e.uint32()); + break; + case 2: + s.preferData === a.emptyObject && (s.preferData = {}); + var u = e.uint32() + e.pos; + for (n = 0, r = null; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.int32(); + break; + case 2: + r = l.webcast.data.User.FansClub.FansClubData.decode(e, e.uint32()); + break; + default: + e.skipType(7 & p) + } + } + s.preferData[n] = r; + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.data && e.hasOwnProperty("data") && (r = l.webcast.data.User.FansClub.FansClubData.verify(e.data))) return "data." + r; + if (null != e.preferData && e.hasOwnProperty("preferData")) + { + if (!a.isObject(e.preferData)) return "preferData: object expected"; + for (var t = Object.keys(e.preferData), n = 0; n < t.length; ++n) + { + if (!a.key32Re.test(t[n])) return "preferData: integer key{k:int32} expected"; + var r; + if (r = l.webcast.data.User.FansClub.FansClubData.verify(e.preferData[t[n]])) return "preferData." + r + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.FansClub) return e; + var t = new l.webcast.data.User.FansClub; + if (null != e.data) + { + if ("object" != typeof e.data) throw TypeError(".webcast.data.User.FansClub.data: object expected"); + t.data = l.webcast.data.User.FansClub.FansClubData.fromObject(e.data) + } + if (e.preferData) + { + if ("object" != typeof e.preferData) throw TypeError(".webcast.data.User.FansClub.preferData: object expected"); + t.preferData = {}; + for (var n = Object.keys(e.preferData), r = 0; r < n.length; ++r) + { + if ("object" != typeof e.preferData[n[r]]) throw TypeError(".webcast.data.User.FansClub.preferData: object expected"); + t.preferData[n[r]] = l.webcast.data.User.FansClub.FansClubData.fromObject(e.preferData[n[r]]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.preferData = {}), t.defaults && (r.data = null), null != e.data && e.hasOwnProperty("data") && (r.data = l.webcast.data.User.FansClub.FansClubData.toObject(e.data, t)), e.preferData && (n = Object.keys(e.preferData)).length) + { + r.preferData = {}; + for (var o = 0; o < n.length; ++o) r.preferData[n[o]] = l.webcast.data.User.FansClub.FansClubData.toObject(e.preferData[n[o]], t) + } + return r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.FansClubData = function () + { + function e(e) + { + if (this.availableGiftIds = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.clubName = "", e.prototype.level = 0, e.prototype.userFansClubStatus = 0, e.prototype.badge = null, e.prototype.availableGiftIds = a.emptyArray, e.prototype.anchorId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.clubName && Object.hasOwnProperty.call(e, "clubName") && t.uint32(10).string(e.clubName), null != e.level && Object.hasOwnProperty.call(e, "level") && t.uint32(16).int32(e.level), null != e.userFansClubStatus && Object.hasOwnProperty.call(e, "userFansClubStatus") && t.uint32(24).int32(e.userFansClubStatus), null != e.badge && Object.hasOwnProperty.call(e, "badge") && l.webcast.data.User.FansClub.FansClubData.UserBadge.encode(e.badge, t.uint32(34).fork()).ldelim(), null != e.availableGiftIds && e.availableGiftIds.length) + { + t.uint32(42).fork(); + for (var n = 0; n < e.availableGiftIds.length; ++n) t.int64(e.availableGiftIds[n]); + t.ldelim() + } + return null != e.anchorId && Object.hasOwnProperty.call(e, "anchorId") && t.uint32(48).int64(e.anchorId), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.FansClub.FansClubData; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.clubName = e.string(); + break; + case 2: + r.level = e.int32(); + break; + case 3: + r.userFansClubStatus = e.int32(); + break; + case 4: + r.badge = l.webcast.data.User.FansClub.FansClubData.UserBadge.decode(e, e.uint32()); + break; + case 5: + if (r.availableGiftIds && r.availableGiftIds.length || (r.availableGiftIds = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.availableGiftIds.push(e.int64()); + else r.availableGiftIds.push(e.int64()); + break; + case 6: + r.anchorId = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.clubName && e.hasOwnProperty("clubName") && !a.isString(e.clubName)) return "clubName: string expected"; + if (null != e.level && e.hasOwnProperty("level") && !a.isInteger(e.level)) return "level: integer expected"; + if (null != e.userFansClubStatus && e.hasOwnProperty("userFansClubStatus")) switch (e.userFansClubStatus) + { + default: + return "userFansClubStatus: enum value expected"; + case 0: + case 1: + case 2: + } + if (null != e.badge && e.hasOwnProperty("badge")) + { + var t = l.webcast.data.User.FansClub.FansClubData.UserBadge.verify(e.badge); + if (t) return "badge." + t + } + if (null != e.availableGiftIds && e.hasOwnProperty("availableGiftIds")) + { + if (!Array.isArray(e.availableGiftIds)) return "availableGiftIds: array expected"; + for (var n = 0; n < e.availableGiftIds.length; ++n) + if (!(a.isInteger(e.availableGiftIds[n]) || e.availableGiftIds[n] && a.isInteger(e.availableGiftIds[n].low) && a.isInteger(e.availableGiftIds[n].high))) return "availableGiftIds: integer|Long[] expected" + } + return null != e.anchorId && e.hasOwnProperty("anchorId") && !(a.isInteger(e.anchorId) || e.anchorId && a.isInteger(e.anchorId.low) && a.isInteger(e.anchorId.high)) ? "anchorId: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.FansClub.FansClubData) return e; + var t = new l.webcast.data.User.FansClub.FansClubData; + switch (null != e.clubName && (t.clubName = String(e.clubName)), null != e.level && (t.level = 0 | e.level), e.userFansClubStatus) + { + case "NotJoined": + case 0: + t.userFansClubStatus = 0; + break; + case "Active": + case 1: + t.userFansClubStatus = 1; + break; + case "Inactive": + case 2: + t.userFansClubStatus = 2 + } + if (null != e.badge) + { + if ("object" != typeof e.badge) throw TypeError(".webcast.data.User.FansClub.FansClubData.badge: object expected"); + t.badge = l.webcast.data.User.FansClub.FansClubData.UserBadge.fromObject(e.badge) + } + if (e.availableGiftIds) + { + if (!Array.isArray(e.availableGiftIds)) throw TypeError(".webcast.data.User.FansClub.FansClubData.availableGiftIds: array expected"); + t.availableGiftIds = []; + for (var n = 0; n < e.availableGiftIds.length; ++n) a.Long ? (t.availableGiftIds[n] = a.Long.fromValue(e.availableGiftIds[n])).unsigned = !1 : "string" == typeof e.availableGiftIds[n] ? t.availableGiftIds[n] = parseInt(e.availableGiftIds[n], 10) : "number" == typeof e.availableGiftIds[n] ? t.availableGiftIds[n] = e.availableGiftIds[n] : "object" == typeof e.availableGiftIds[n] && (t.availableGiftIds[n] = new a.LongBits(e.availableGiftIds[n].low >>> 0, e.availableGiftIds[n].high >>> 0).toNumber()) + } + return null != e.anchorId && (a.Long ? (t.anchorId = a.Long.fromValue(e.anchorId)).unsigned = !1 : "string" == typeof e.anchorId ? t.anchorId = parseInt(e.anchorId, 10) : "number" == typeof e.anchorId ? t.anchorId = e.anchorId : "object" == typeof e.anchorId && (t.anchorId = new a.LongBits(e.anchorId.low >>> 0, e.anchorId.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.availableGiftIds = []), t.defaults) + if (n.clubName = "", n.level = 0, n.userFansClubStatus = t.enums === String ? "NotJoined" : 0, n.badge = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.anchorId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.anchorId = t.longs === String ? "0" : 0; + if (null != e.clubName && e.hasOwnProperty("clubName") && (n.clubName = e.clubName), null != e.level && e.hasOwnProperty("level") && (n.level = e.level), null != e.userFansClubStatus && e.hasOwnProperty("userFansClubStatus") && (n.userFansClubStatus = t.enums === String ? l.webcast.data.User.FansClub.FansClubData.UserFansClubStatus[e.userFansClubStatus] : e.userFansClubStatus), null != e.badge && e.hasOwnProperty("badge") && (n.badge = l.webcast.data.User.FansClub.FansClubData.UserBadge.toObject(e.badge, t)), e.availableGiftIds && e.availableGiftIds.length) + { + n.availableGiftIds = []; + for (var o = 0; o < e.availableGiftIds.length; ++o) "number" == typeof e.availableGiftIds[o] ? n.availableGiftIds[o] = t.longs === String ? String(e.availableGiftIds[o]) : e.availableGiftIds[o] : n.availableGiftIds[o] = t.longs === String ? a.Long.prototype.toString.call(e.availableGiftIds[o]) : t.longs === Number ? new a.LongBits(e.availableGiftIds[o].low >>> 0, e.availableGiftIds[o].high >>> 0).toNumber() : e.availableGiftIds[o] + } + return null != e.anchorId && e.hasOwnProperty("anchorId") && ("number" == typeof e.anchorId ? n.anchorId = t.longs === String ? String(e.anchorId) : e.anchorId : n.anchorId = t.longs === String ? a.Long.prototype.toString.call(e.anchorId) : t.longs === Number ? new a.LongBits(e.anchorId.low >>> 0, e.anchorId.high >>> 0).toNumber() : e.anchorId), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.BadgeIcon = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "Unknown"] = 0, t[e[1] = "Icon"] = 1, t[e[2] = "SmallIcon"] = 2, t + }(), e.UserBadge = function () + { + function e(e) + { + if (this.icons = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.icons = a.emptyObject, e.prototype.title = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.icons && Object.hasOwnProperty.call(e, "icons")) + for (var n = Object.keys(e.icons), r = 0; r < n.length; ++r) t.uint32(10).fork().uint32(8).int32(n[r]), l.webcast.data.Image.encode(e.icons[n[r]], t.uint32(18).fork()).ldelim().ldelim(); + return null != e.title && Object.hasOwnProperty.call(e, "title") && t.uint32(18).string(e.title), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.User.FansClub.FansClubData.UserBadge; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.icons === a.emptyObject && (s.icons = {}); + var u = e.uint32() + e.pos; + for (n = 0, r = null; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.int32(); + break; + case 2: + r = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & p) + } + } + s.icons[n] = r; + break; + case 2: + s.title = e.string(); + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.icons && e.hasOwnProperty("icons")) + { + if (!a.isObject(e.icons)) return "icons: object expected"; + for (var t = Object.keys(e.icons), n = 0; n < t.length; ++n) + { + if (!a.key32Re.test(t[n])) return "icons: integer key{k:int32} expected"; + var r = l.webcast.data.Image.verify(e.icons[t[n]]); + if (r) return "icons." + r + } + } + return null != e.title && e.hasOwnProperty("title") && !a.isString(e.title) ? "title: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.FansClub.FansClubData.UserBadge) return e; + var t = new l.webcast.data.User.FansClub.FansClubData.UserBadge; + if (e.icons) + { + if ("object" != typeof e.icons) throw TypeError(".webcast.data.User.FansClub.FansClubData.UserBadge.icons: object expected"); + t.icons = {}; + for (var n = Object.keys(e.icons), r = 0; r < n.length; ++r) + { + if ("object" != typeof e.icons[n[r]]) throw TypeError(".webcast.data.User.FansClub.FansClubData.UserBadge.icons: object expected"); + t.icons[n[r]] = l.webcast.data.Image.fromObject(e.icons[n[r]]) + } + } + return null != e.title && (t.title = String(e.title)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.icons = {}), t.defaults && (r.title = ""), e.icons && (n = Object.keys(e.icons)).length) + { + r.icons = {}; + for (var o = 0; o < n.length; ++o) r.icons[n[o]] = l.webcast.data.Image.toObject(e.icons[n[o]], t) + } + return null != e.title && e.hasOwnProperty("title") && (r.title = e.title), r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.UserFansClubStatus = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "NotJoined"] = 0, t[e[1] = "Active"] = 1, t[e[2] = "Inactive"] = 2, t + }(), e + }(), e.PreferntialType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "PresonalProfile"] = 0, t[e[1] = "OtherRoom"] = 1, t + }(), e + }(), e.Border = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.icon = null, e.prototype.level = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.icon && Object.hasOwnProperty.call(e, "icon") && l.webcast.data.Image.encode(e.icon, t.uint32(10).fork()).ldelim(), null != e.level && Object.hasOwnProperty.call(e, "level") && t.uint32(16).int64(e.level), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.Border; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.icon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.level = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.icon && e.hasOwnProperty("icon")) + { + var t = l.webcast.data.Image.verify(e.icon); + if (t) return "icon." + t + } + return null != e.level && e.hasOwnProperty("level") && !(a.isInteger(e.level) || e.level && a.isInteger(e.level.low) && a.isInteger(e.level.high)) ? "level: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.Border) return e; + var t = new l.webcast.data.User.Border; + if (null != e.icon) + { + if ("object" != typeof e.icon) throw TypeError(".webcast.data.User.Border.icon: object expected"); + t.icon = l.webcast.data.Image.fromObject(e.icon) + } + return null != e.level && (a.Long ? (t.level = a.Long.fromValue(e.level)).unsigned = !1 : "string" == typeof e.level ? t.level = parseInt(e.level, 10) : "number" == typeof e.level ? t.level = e.level : "object" == typeof e.level && (t.level = new a.LongBits(e.level.low >>> 0, e.level.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + if (n.icon = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.level = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.level = t.longs === String ? "0" : 0; + return null != e.icon && e.hasOwnProperty("icon") && (n.icon = l.webcast.data.Image.toObject(e.icon, t)), null != e.level && e.hasOwnProperty("level") && ("number" == typeof e.level ? n.level = t.longs === String ? String(e.level) : e.level : n.level = t.longs === String ? a.Long.prototype.toString.call(e.level) : t.longs === Number ? new a.LongBits(e.level.low >>> 0, e.level.high >>> 0).toNumber() : e.level), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.UserAttr = function () + { + function e(e) + { + if (this.adminPrivileges = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.isMuted = !1, e.prototype.isAdmin = !1, e.prototype.isSuperAdmin = !1, e.prototype.adminPrivileges = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.isMuted && Object.hasOwnProperty.call(e, "isMuted") && t.uint32(8).bool(e.isMuted), null != e.isAdmin && Object.hasOwnProperty.call(e, "isAdmin") && t.uint32(16).bool(e.isAdmin), null != e.isSuperAdmin && Object.hasOwnProperty.call(e, "isSuperAdmin") && t.uint32(24).bool(e.isSuperAdmin), null != e.adminPrivileges && e.adminPrivileges.length) + { + t.uint32(34).fork(); + for (var n = 0; n < e.adminPrivileges.length; ++n) t.int32(e.adminPrivileges[n]); + t.ldelim() + } + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.UserAttr; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.isMuted = e.bool(); + break; + case 2: + r.isAdmin = e.bool(); + break; + case 3: + r.isSuperAdmin = e.bool(); + break; + case 4: + if (r.adminPrivileges && r.adminPrivileges.length || (r.adminPrivileges = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.adminPrivileges.push(e.int32()); + else r.adminPrivileges.push(e.int32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.isMuted && e.hasOwnProperty("isMuted") && "boolean" != typeof e.isMuted) return "isMuted: boolean expected"; + if (null != e.isAdmin && e.hasOwnProperty("isAdmin") && "boolean" != typeof e.isAdmin) return "isAdmin: boolean expected"; + if (null != e.isSuperAdmin && e.hasOwnProperty("isSuperAdmin") && "boolean" != typeof e.isSuperAdmin) return "isSuperAdmin: boolean expected"; + if (null != e.adminPrivileges && e.hasOwnProperty("adminPrivileges")) + { + if (!Array.isArray(e.adminPrivileges)) return "adminPrivileges: array expected"; + for (var t = 0; t < e.adminPrivileges.length; ++t) switch (e.adminPrivileges[t]) + { + default: + return "adminPrivileges: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.UserAttr) return e; + var t = new l.webcast.data.User.UserAttr; + if (null != e.isMuted && (t.isMuted = Boolean(e.isMuted)), null != e.isAdmin && (t.isAdmin = Boolean(e.isAdmin)), null != e.isSuperAdmin && (t.isSuperAdmin = Boolean(e.isSuperAdmin)), e.adminPrivileges) + { + if (!Array.isArray(e.adminPrivileges)) throw TypeError(".webcast.data.User.UserAttr.adminPrivileges: array expected"); + t.adminPrivileges = []; + for (var n = 0; n < e.adminPrivileges.length; ++n) switch (e.adminPrivileges[n]) + { + default: + case "UnknowPrivilege": + case 0: + t.adminPrivileges[n] = 0; + break; + case "Unknow2Privilege": + case 1: + t.adminPrivileges[n] = 1; + break; + case "PromptPrivilege": + case 2: + t.adminPrivileges[n] = 2; + break; + case "FactionPrivilege": + case 3: + t.adminPrivileges[n] = 3; + break; + case "WordPrivilege": + case 4: + t.adminPrivileges[n] = 4; + break; + case "SliencePrivilege": + case 5: + t.adminPrivileges[n] = 5; + break; + case "BlockPrivilege": + case 6: + t.adminPrivileges[n] = 6; + break; + case "LinkMicPrivilege": + case 7: + t.adminPrivileges[n] = 7; + break; + case "VotePrivilege": + case 8: + t.adminPrivileges[n] = 8; + break; + case "WishPrivilege": + case 9: + t.adminPrivileges[n] = 9; + break; + case "LittleGamePrivilege": + case 10: + t.adminPrivileges[n] = 10; + break; + case "ScreenChatPrivilege": + case 11: + t.adminPrivileges[n] = 11; + break; + case "CommentOnWallPrivilege": + case 12: + t.adminPrivileges[n] = 12; + break; + case "AdminDanmakuPrivilege": + case 13: + t.adminPrivileges[n] = 13 + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.adminPrivileges = []), t.defaults && (n.isMuted = !1, n.isAdmin = !1, n.isSuperAdmin = !1), null != e.isMuted && e.hasOwnProperty("isMuted") && (n.isMuted = e.isMuted), null != e.isAdmin && e.hasOwnProperty("isAdmin") && (n.isAdmin = e.isAdmin), null != e.isSuperAdmin && e.hasOwnProperty("isSuperAdmin") && (n.isSuperAdmin = e.isSuperAdmin), e.adminPrivileges && e.adminPrivileges.length) + { + n.adminPrivileges = []; + for (var r = 0; r < e.adminPrivileges.length; ++r) n.adminPrivileges[r] = t.enums === String ? l.webcast.data.AdminPrivilege[e.adminPrivileges[r]] : e.adminPrivileges[r] + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.OwnRoom = function () + { + function e(e) + { + if (this.roomIds = [], this.roomIdsStr = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.roomIds = a.emptyArray, e.prototype.roomIdsStr = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.roomIds && e.roomIds.length) + { + t.uint32(10).fork(); + for (var n = 0; n < e.roomIds.length; ++n) t.int64(e.roomIds[n]); + t.ldelim() + } + if (null != e.roomIdsStr && e.roomIdsStr.length) + for (n = 0; n < e.roomIdsStr.length; ++n) t.uint32(18).string(e.roomIdsStr[n]); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.OwnRoom; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + if (r.roomIds && r.roomIds.length || (r.roomIds = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.roomIds.push(e.int64()); + else r.roomIds.push(e.int64()); + break; + case 2: + r.roomIdsStr && r.roomIdsStr.length || (r.roomIdsStr = []), r.roomIdsStr.push(e.string()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.roomIds && e.hasOwnProperty("roomIds")) + { + if (!Array.isArray(e.roomIds)) return "roomIds: array expected"; + for (var t = 0; t < e.roomIds.length; ++t) + if (!(a.isInteger(e.roomIds[t]) || e.roomIds[t] && a.isInteger(e.roomIds[t].low) && a.isInteger(e.roomIds[t].high))) return "roomIds: integer|Long[] expected" + } + if (null != e.roomIdsStr && e.hasOwnProperty("roomIdsStr")) + { + if (!Array.isArray(e.roomIdsStr)) return "roomIdsStr: array expected"; + for (t = 0; t < e.roomIdsStr.length; ++t) + if (!a.isString(e.roomIdsStr[t])) return "roomIdsStr: string[] expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.OwnRoom) return e; + var t = new l.webcast.data.User.OwnRoom; + if (e.roomIds) + { + if (!Array.isArray(e.roomIds)) throw TypeError(".webcast.data.User.OwnRoom.roomIds: array expected"); + t.roomIds = []; + for (var n = 0; n < e.roomIds.length; ++n) a.Long ? (t.roomIds[n] = a.Long.fromValue(e.roomIds[n])).unsigned = !1 : "string" == typeof e.roomIds[n] ? t.roomIds[n] = parseInt(e.roomIds[n], 10) : "number" == typeof e.roomIds[n] ? t.roomIds[n] = e.roomIds[n] : "object" == typeof e.roomIds[n] && (t.roomIds[n] = new a.LongBits(e.roomIds[n].low >>> 0, e.roomIds[n].high >>> 0).toNumber()) + } + if (e.roomIdsStr) + { + if (!Array.isArray(e.roomIdsStr)) throw TypeError(".webcast.data.User.OwnRoom.roomIdsStr: array expected"); + t.roomIdsStr = []; + for (n = 0; n < e.roomIdsStr.length; ++n) t.roomIdsStr[n] = String(e.roomIdsStr[n]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.roomIds = [], n.roomIdsStr = []), e.roomIds && e.roomIds.length) + { + n.roomIds = []; + for (var r = 0; r < e.roomIds.length; ++r) "number" == typeof e.roomIds[r] ? n.roomIds[r] = t.longs === String ? String(e.roomIds[r]) : e.roomIds[r] : n.roomIds[r] = t.longs === String ? a.Long.prototype.toString.call(e.roomIds[r]) : t.longs === Number ? new a.LongBits(e.roomIds[r].low >>> 0, e.roomIds[r].high >>> 0).toNumber() : e.roomIds[r] + } + if (e.roomIdsStr && e.roomIdsStr.length) + { + n.roomIdsStr = []; + for (r = 0; r < e.roomIdsStr.length; ++r) n.roomIdsStr[r] = e.roomIdsStr[r] + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.AnchorInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.level = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.level && Object.hasOwnProperty.call(e, "level") && t.uint32(8).int64(e.level), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.AnchorInfo; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.level = e.int64(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.level && e.hasOwnProperty("level") && !(a.isInteger(e.level) || e.level && a.isInteger(e.level.low) && a.isInteger(e.level.high)) ? "level: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.AnchorInfo) return e; + var t = new l.webcast.data.User.AnchorInfo; + return null != e.level && (a.Long ? (t.level = a.Long.fromValue(e.level)).unsigned = !1 : "string" == typeof e.level ? t.level = parseInt(e.level, 10) : "number" == typeof e.level ? t.level = e.level : "object" == typeof e.level && (t.level = new a.LongBits(e.level.low >>> 0, e.level.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.level = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.level = t.longs === String ? "0" : 0; + return null != e.level && e.hasOwnProperty("level") && ("number" == typeof e.level ? n.level = t.longs === String ? String(e.level) : e.level : n.level = t.longs === String ? a.Long.prototype.toString.call(e.level) : t.longs === Number ? new a.LongBits(e.level.low >>> 0, e.level.high >>> 0).toNumber() : e.level), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.AnchorLevel = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.level = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.experience = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.lowestExperienceThisLevel = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.highestExperienceThisLevel = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.taskStartExperience = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.taskStartTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.taskDecreaseExperience = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.taskTargetExperience = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.taskEndTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.profileDialogBg = null, e.prototype.profileDialogBgBack = null, e.prototype.stageLevel = null, e.prototype.smallIcon = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.level && Object.hasOwnProperty.call(e, "level") && t.uint32(8).int64(e.level), null != e.experience && Object.hasOwnProperty.call(e, "experience") && t.uint32(16).int64(e.experience), null != e.lowestExperienceThisLevel && Object.hasOwnProperty.call(e, "lowestExperienceThisLevel") && t.uint32(24).int64(e.lowestExperienceThisLevel), null != e.highestExperienceThisLevel && Object.hasOwnProperty.call(e, "highestExperienceThisLevel") && t.uint32(32).int64(e.highestExperienceThisLevel), null != e.taskStartExperience && Object.hasOwnProperty.call(e, "taskStartExperience") && t.uint32(40).int64(e.taskStartExperience), null != e.taskStartTime && Object.hasOwnProperty.call(e, "taskStartTime") && t.uint32(48).int64(e.taskStartTime), null != e.taskDecreaseExperience && Object.hasOwnProperty.call(e, "taskDecreaseExperience") && t.uint32(56).int64(e.taskDecreaseExperience), null != e.taskTargetExperience && Object.hasOwnProperty.call(e, "taskTargetExperience") && t.uint32(64).int64(e.taskTargetExperience), null != e.taskEndTime && Object.hasOwnProperty.call(e, "taskEndTime") && t.uint32(72).int64(e.taskEndTime), null != e.profileDialogBg && Object.hasOwnProperty.call(e, "profileDialogBg") && l.webcast.data.Image.encode(e.profileDialogBg, t.uint32(82).fork()).ldelim(), null != e.profileDialogBgBack && Object.hasOwnProperty.call(e, "profileDialogBgBack") && l.webcast.data.Image.encode(e.profileDialogBgBack, t.uint32(90).fork()).ldelim(), null != e.stageLevel && Object.hasOwnProperty.call(e, "stageLevel") && l.webcast.data.Image.encode(e.stageLevel, t.uint32(98).fork()).ldelim(), null != e.smallIcon && Object.hasOwnProperty.call(e, "smallIcon") && l.webcast.data.Image.encode(e.smallIcon, t.uint32(106).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.AnchorLevel; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.level = e.int64(); + break; + case 2: + r.experience = e.int64(); + break; + case 3: + r.lowestExperienceThisLevel = e.int64(); + break; + case 4: + r.highestExperienceThisLevel = e.int64(); + break; + case 5: + r.taskStartExperience = e.int64(); + break; + case 6: + r.taskStartTime = e.int64(); + break; + case 7: + r.taskDecreaseExperience = e.int64(); + break; + case 8: + r.taskTargetExperience = e.int64(); + break; + case 9: + r.taskEndTime = e.int64(); + break; + case 10: + r.profileDialogBg = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 11: + r.profileDialogBgBack = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 12: + r.stageLevel = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 13: + r.smallIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.level && e.hasOwnProperty("level") && !(a.isInteger(e.level) || e.level && a.isInteger(e.level.low) && a.isInteger(e.level.high))) return "level: integer|Long expected"; + if (null != e.experience && e.hasOwnProperty("experience") && !(a.isInteger(e.experience) || e.experience && a.isInteger(e.experience.low) && a.isInteger(e.experience.high))) return "experience: integer|Long expected"; + if (null != e.lowestExperienceThisLevel && e.hasOwnProperty("lowestExperienceThisLevel") && !(a.isInteger(e.lowestExperienceThisLevel) || e.lowestExperienceThisLevel && a.isInteger(e.lowestExperienceThisLevel.low) && a.isInteger(e.lowestExperienceThisLevel.high))) return "lowestExperienceThisLevel: integer|Long expected"; + if (null != e.highestExperienceThisLevel && e.hasOwnProperty("highestExperienceThisLevel") && !(a.isInteger(e.highestExperienceThisLevel) || e.highestExperienceThisLevel && a.isInteger(e.highestExperienceThisLevel.low) && a.isInteger(e.highestExperienceThisLevel.high))) return "highestExperienceThisLevel: integer|Long expected"; + if (null != e.taskStartExperience && e.hasOwnProperty("taskStartExperience") && !(a.isInteger(e.taskStartExperience) || e.taskStartExperience && a.isInteger(e.taskStartExperience.low) && a.isInteger(e.taskStartExperience.high))) return "taskStartExperience: integer|Long expected"; + if (null != e.taskStartTime && e.hasOwnProperty("taskStartTime") && !(a.isInteger(e.taskStartTime) || e.taskStartTime && a.isInteger(e.taskStartTime.low) && a.isInteger(e.taskStartTime.high))) return "taskStartTime: integer|Long expected"; + if (null != e.taskDecreaseExperience && e.hasOwnProperty("taskDecreaseExperience") && !(a.isInteger(e.taskDecreaseExperience) || e.taskDecreaseExperience && a.isInteger(e.taskDecreaseExperience.low) && a.isInteger(e.taskDecreaseExperience.high))) return "taskDecreaseExperience: integer|Long expected"; + if (null != e.taskTargetExperience && e.hasOwnProperty("taskTargetExperience") && !(a.isInteger(e.taskTargetExperience) || e.taskTargetExperience && a.isInteger(e.taskTargetExperience.low) && a.isInteger(e.taskTargetExperience.high))) return "taskTargetExperience: integer|Long expected"; + if (null != e.taskEndTime && e.hasOwnProperty("taskEndTime") && !(a.isInteger(e.taskEndTime) || e.taskEndTime && a.isInteger(e.taskEndTime.low) && a.isInteger(e.taskEndTime.high))) return "taskEndTime: integer|Long expected"; + var t; + if (null != e.profileDialogBg && e.hasOwnProperty("profileDialogBg") && (t = l.webcast.data.Image.verify(e.profileDialogBg))) return "profileDialogBg." + t; + if (null != e.profileDialogBgBack && e.hasOwnProperty("profileDialogBgBack") && (t = l.webcast.data.Image.verify(e.profileDialogBgBack))) return "profileDialogBgBack." + t; + if (null != e.stageLevel && e.hasOwnProperty("stageLevel") && (t = l.webcast.data.Image.verify(e.stageLevel))) return "stageLevel." + t; + if (null != e.smallIcon && e.hasOwnProperty("smallIcon") && (t = l.webcast.data.Image.verify(e.smallIcon))) return "smallIcon." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.AnchorLevel) return e; + var t = new l.webcast.data.User.AnchorLevel; + if (null != e.level && (a.Long ? (t.level = a.Long.fromValue(e.level)).unsigned = !1 : "string" == typeof e.level ? t.level = parseInt(e.level, 10) : "number" == typeof e.level ? t.level = e.level : "object" == typeof e.level && (t.level = new a.LongBits(e.level.low >>> 0, e.level.high >>> 0).toNumber())), null != e.experience && (a.Long ? (t.experience = a.Long.fromValue(e.experience)).unsigned = !1 : "string" == typeof e.experience ? t.experience = parseInt(e.experience, 10) : "number" == typeof e.experience ? t.experience = e.experience : "object" == typeof e.experience && (t.experience = new a.LongBits(e.experience.low >>> 0, e.experience.high >>> 0).toNumber())), null != e.lowestExperienceThisLevel && (a.Long ? (t.lowestExperienceThisLevel = a.Long.fromValue(e.lowestExperienceThisLevel)).unsigned = !1 : "string" == typeof e.lowestExperienceThisLevel ? t.lowestExperienceThisLevel = parseInt(e.lowestExperienceThisLevel, 10) : "number" == typeof e.lowestExperienceThisLevel ? t.lowestExperienceThisLevel = e.lowestExperienceThisLevel : "object" == typeof e.lowestExperienceThisLevel && (t.lowestExperienceThisLevel = new a.LongBits(e.lowestExperienceThisLevel.low >>> 0, e.lowestExperienceThisLevel.high >>> 0).toNumber())), null != e.highestExperienceThisLevel && (a.Long ? (t.highestExperienceThisLevel = a.Long.fromValue(e.highestExperienceThisLevel)).unsigned = !1 : "string" == typeof e.highestExperienceThisLevel ? t.highestExperienceThisLevel = parseInt(e.highestExperienceThisLevel, 10) : "number" == typeof e.highestExperienceThisLevel ? t.highestExperienceThisLevel = e.highestExperienceThisLevel : "object" == typeof e.highestExperienceThisLevel && (t.highestExperienceThisLevel = new a.LongBits(e.highestExperienceThisLevel.low >>> 0, e.highestExperienceThisLevel.high >>> 0).toNumber())), null != e.taskStartExperience && (a.Long ? (t.taskStartExperience = a.Long.fromValue(e.taskStartExperience)).unsigned = !1 : "string" == typeof e.taskStartExperience ? t.taskStartExperience = parseInt(e.taskStartExperience, 10) : "number" == typeof e.taskStartExperience ? t.taskStartExperience = e.taskStartExperience : "object" == typeof e.taskStartExperience && (t.taskStartExperience = new a.LongBits(e.taskStartExperience.low >>> 0, e.taskStartExperience.high >>> 0).toNumber())), null != e.taskStartTime && (a.Long ? (t.taskStartTime = a.Long.fromValue(e.taskStartTime)).unsigned = !1 : "string" == typeof e.taskStartTime ? t.taskStartTime = parseInt(e.taskStartTime, 10) : "number" == typeof e.taskStartTime ? t.taskStartTime = e.taskStartTime : "object" == typeof e.taskStartTime && (t.taskStartTime = new a.LongBits(e.taskStartTime.low >>> 0, e.taskStartTime.high >>> 0).toNumber())), null != e.taskDecreaseExperience && (a.Long ? (t.taskDecreaseExperience = a.Long.fromValue(e.taskDecreaseExperience)).unsigned = !1 : "string" == typeof e.taskDecreaseExperience ? t.taskDecreaseExperience = parseInt(e.taskDecreaseExperience, 10) : "number" == typeof e.taskDecreaseExperience ? t.taskDecreaseExperience = e.taskDecreaseExperience : "object" == typeof e.taskDecreaseExperience && (t.taskDecreaseExperience = new a.LongBits(e.taskDecreaseExperience.low >>> 0, e.taskDecreaseExperience.high >>> 0).toNumber())), null != e.taskTargetExperience && (a.Long ? (t.taskTargetExperience = a.Long.fromValue(e.taskTargetExperience)).unsigned = !1 : "string" == typeof e.taskTargetExperience ? t.taskTargetExperience = parseInt(e.taskTargetExperience, 10) : "number" == typeof e.taskTargetExperience ? t.taskTargetExperience = e.taskTargetExperience : "object" == typeof e.taskTargetExperience && (t.taskTargetExperience = new a.LongBits(e.taskTargetExperience.low >>> 0, e.taskTargetExperience.high >>> 0).toNumber())), null != e.taskEndTime && (a.Long ? (t.taskEndTime = a.Long.fromValue(e.taskEndTime)).unsigned = !1 : "string" == typeof e.taskEndTime ? t.taskEndTime = parseInt(e.taskEndTime, 10) : "number" == typeof e.taskEndTime ? t.taskEndTime = e.taskEndTime : "object" == typeof e.taskEndTime && (t.taskEndTime = new a.LongBits(e.taskEndTime.low >>> 0, e.taskEndTime.high >>> 0).toNumber())), null != e.profileDialogBg) + { + if ("object" != typeof e.profileDialogBg) throw TypeError(".webcast.data.User.AnchorLevel.profileDialogBg: object expected"); + t.profileDialogBg = l.webcast.data.Image.fromObject(e.profileDialogBg) + } + if (null != e.profileDialogBgBack) + { + if ("object" != typeof e.profileDialogBgBack) throw TypeError(".webcast.data.User.AnchorLevel.profileDialogBgBack: object expected"); + t.profileDialogBgBack = l.webcast.data.Image.fromObject(e.profileDialogBgBack) + } + if (null != e.stageLevel) + { + if ("object" != typeof e.stageLevel) throw TypeError(".webcast.data.User.AnchorLevel.stageLevel: object expected"); + t.stageLevel = l.webcast.data.Image.fromObject(e.stageLevel) + } + if (null != e.smallIcon) + { + if ("object" != typeof e.smallIcon) throw TypeError(".webcast.data.User.AnchorLevel.smallIcon: object expected"); + t.smallIcon = l.webcast.data.Image.fromObject(e.smallIcon) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.level = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.level = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.experience = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.experience = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.lowestExperienceThisLevel = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.lowestExperienceThisLevel = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.highestExperienceThisLevel = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.highestExperienceThisLevel = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.taskStartExperience = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.taskStartExperience = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.taskStartTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.taskStartTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.taskDecreaseExperience = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.taskDecreaseExperience = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.taskTargetExperience = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.taskTargetExperience = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.taskEndTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.taskEndTime = t.longs === String ? "0" : 0; + n.profileDialogBg = null, n.profileDialogBgBack = null, n.stageLevel = null, n.smallIcon = null + } + return null != e.level && e.hasOwnProperty("level") && ("number" == typeof e.level ? n.level = t.longs === String ? String(e.level) : e.level : n.level = t.longs === String ? a.Long.prototype.toString.call(e.level) : t.longs === Number ? new a.LongBits(e.level.low >>> 0, e.level.high >>> 0).toNumber() : e.level), null != e.experience && e.hasOwnProperty("experience") && ("number" == typeof e.experience ? n.experience = t.longs === String ? String(e.experience) : e.experience : n.experience = t.longs === String ? a.Long.prototype.toString.call(e.experience) : t.longs === Number ? new a.LongBits(e.experience.low >>> 0, e.experience.high >>> 0).toNumber() : e.experience), null != e.lowestExperienceThisLevel && e.hasOwnProperty("lowestExperienceThisLevel") && ("number" == typeof e.lowestExperienceThisLevel ? n.lowestExperienceThisLevel = t.longs === String ? String(e.lowestExperienceThisLevel) : e.lowestExperienceThisLevel : n.lowestExperienceThisLevel = t.longs === String ? a.Long.prototype.toString.call(e.lowestExperienceThisLevel) : t.longs === Number ? new a.LongBits(e.lowestExperienceThisLevel.low >>> 0, e.lowestExperienceThisLevel.high >>> 0).toNumber() : e.lowestExperienceThisLevel), null != e.highestExperienceThisLevel && e.hasOwnProperty("highestExperienceThisLevel") && ("number" == typeof e.highestExperienceThisLevel ? n.highestExperienceThisLevel = t.longs === String ? String(e.highestExperienceThisLevel) : e.highestExperienceThisLevel : n.highestExperienceThisLevel = t.longs === String ? a.Long.prototype.toString.call(e.highestExperienceThisLevel) : t.longs === Number ? new a.LongBits(e.highestExperienceThisLevel.low >>> 0, e.highestExperienceThisLevel.high >>> 0).toNumber() : e.highestExperienceThisLevel), null != e.taskStartExperience && e.hasOwnProperty("taskStartExperience") && ("number" == typeof e.taskStartExperience ? n.taskStartExperience = t.longs === String ? String(e.taskStartExperience) : e.taskStartExperience : n.taskStartExperience = t.longs === String ? a.Long.prototype.toString.call(e.taskStartExperience) : t.longs === Number ? new a.LongBits(e.taskStartExperience.low >>> 0, e.taskStartExperience.high >>> 0).toNumber() : e.taskStartExperience), null != e.taskStartTime && e.hasOwnProperty("taskStartTime") && ("number" == typeof e.taskStartTime ? n.taskStartTime = t.longs === String ? String(e.taskStartTime) : e.taskStartTime : n.taskStartTime = t.longs === String ? a.Long.prototype.toString.call(e.taskStartTime) : t.longs === Number ? new a.LongBits(e.taskStartTime.low >>> 0, e.taskStartTime.high >>> 0).toNumber() : e.taskStartTime), null != e.taskDecreaseExperience && e.hasOwnProperty("taskDecreaseExperience") && ("number" == typeof e.taskDecreaseExperience ? n.taskDecreaseExperience = t.longs === String ? String(e.taskDecreaseExperience) : e.taskDecreaseExperience : n.taskDecreaseExperience = t.longs === String ? a.Long.prototype.toString.call(e.taskDecreaseExperience) : t.longs === Number ? new a.LongBits(e.taskDecreaseExperience.low >>> 0, e.taskDecreaseExperience.high >>> 0).toNumber() : e.taskDecreaseExperience), null != e.taskTargetExperience && e.hasOwnProperty("taskTargetExperience") && ("number" == typeof e.taskTargetExperience ? n.taskTargetExperience = t.longs === String ? String(e.taskTargetExperience) : e.taskTargetExperience : n.taskTargetExperience = t.longs === String ? a.Long.prototype.toString.call(e.taskTargetExperience) : t.longs === Number ? new a.LongBits(e.taskTargetExperience.low >>> 0, e.taskTargetExperience.high >>> 0).toNumber() : e.taskTargetExperience), null != e.taskEndTime && e.hasOwnProperty("taskEndTime") && ("number" == typeof e.taskEndTime ? n.taskEndTime = t.longs === String ? String(e.taskEndTime) : e.taskEndTime : n.taskEndTime = t.longs === String ? a.Long.prototype.toString.call(e.taskEndTime) : t.longs === Number ? new a.LongBits(e.taskEndTime.low >>> 0, e.taskEndTime.high >>> 0).toNumber() : e.taskEndTime), null != e.profileDialogBg && e.hasOwnProperty("profileDialogBg") && (n.profileDialogBg = l.webcast.data.Image.toObject(e.profileDialogBg, t)), null != e.profileDialogBgBack && e.hasOwnProperty("profileDialogBgBack") && (n.profileDialogBgBack = l.webcast.data.Image.toObject(e.profileDialogBgBack, t)), null != e.stageLevel && e.hasOwnProperty("stageLevel") && (n.stageLevel = l.webcast.data.Image.toObject(e.stageLevel, t)), null != e.smallIcon && e.hasOwnProperty("smallIcon") && (n.smallIcon = l.webcast.data.Image.toObject(e.smallIcon, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.AuthorStats = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.videoTotalCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.videoTotalPlayCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.videoTotalShareCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.videoTotalSeriesCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.varietyShowPlayCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.videoTotalFavoriteCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.videoTotalCount && Object.hasOwnProperty.call(e, "videoTotalCount") && t.uint32(8).int64(e.videoTotalCount), null != e.videoTotalPlayCount && Object.hasOwnProperty.call(e, "videoTotalPlayCount") && t.uint32(16).int64(e.videoTotalPlayCount), null != e.videoTotalShareCount && Object.hasOwnProperty.call(e, "videoTotalShareCount") && t.uint32(24).int64(e.videoTotalShareCount), null != e.videoTotalSeriesCount && Object.hasOwnProperty.call(e, "videoTotalSeriesCount") && t.uint32(32).int64(e.videoTotalSeriesCount), null != e.varietyShowPlayCount && Object.hasOwnProperty.call(e, "varietyShowPlayCount") && t.uint32(40).int64(e.varietyShowPlayCount), null != e.videoTotalFavoriteCount && Object.hasOwnProperty.call(e, "videoTotalFavoriteCount") && t.uint32(48).int64(e.videoTotalFavoriteCount), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.AuthorStats; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.videoTotalCount = e.int64(); + break; + case 2: + r.videoTotalPlayCount = e.int64(); + break; + case 3: + r.videoTotalShareCount = e.int64(); + break; + case 4: + r.videoTotalSeriesCount = e.int64(); + break; + case 5: + r.varietyShowPlayCount = e.int64(); + break; + case 6: + r.videoTotalFavoriteCount = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.videoTotalCount && e.hasOwnProperty("videoTotalCount") && !(a.isInteger(e.videoTotalCount) || e.videoTotalCount && a.isInteger(e.videoTotalCount.low) && a.isInteger(e.videoTotalCount.high)) ? "videoTotalCount: integer|Long expected" : null != e.videoTotalPlayCount && e.hasOwnProperty("videoTotalPlayCount") && !(a.isInteger(e.videoTotalPlayCount) || e.videoTotalPlayCount && a.isInteger(e.videoTotalPlayCount.low) && a.isInteger(e.videoTotalPlayCount.high)) ? "videoTotalPlayCount: integer|Long expected" : null != e.videoTotalShareCount && e.hasOwnProperty("videoTotalShareCount") && !(a.isInteger(e.videoTotalShareCount) || e.videoTotalShareCount && a.isInteger(e.videoTotalShareCount.low) && a.isInteger(e.videoTotalShareCount.high)) ? "videoTotalShareCount: integer|Long expected" : null != e.videoTotalSeriesCount && e.hasOwnProperty("videoTotalSeriesCount") && !(a.isInteger(e.videoTotalSeriesCount) || e.videoTotalSeriesCount && a.isInteger(e.videoTotalSeriesCount.low) && a.isInteger(e.videoTotalSeriesCount.high)) ? "videoTotalSeriesCount: integer|Long expected" : null != e.varietyShowPlayCount && e.hasOwnProperty("varietyShowPlayCount") && !(a.isInteger(e.varietyShowPlayCount) || e.varietyShowPlayCount && a.isInteger(e.varietyShowPlayCount.low) && a.isInteger(e.varietyShowPlayCount.high)) ? "varietyShowPlayCount: integer|Long expected" : null != e.videoTotalFavoriteCount && e.hasOwnProperty("videoTotalFavoriteCount") && !(a.isInteger(e.videoTotalFavoriteCount) || e.videoTotalFavoriteCount && a.isInteger(e.videoTotalFavoriteCount.low) && a.isInteger(e.videoTotalFavoriteCount.high)) ? "videoTotalFavoriteCount: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.AuthorStats) return e; + var t = new l.webcast.data.User.AuthorStats; + return null != e.videoTotalCount && (a.Long ? (t.videoTotalCount = a.Long.fromValue(e.videoTotalCount)).unsigned = !1 : "string" == typeof e.videoTotalCount ? t.videoTotalCount = parseInt(e.videoTotalCount, 10) : "number" == typeof e.videoTotalCount ? t.videoTotalCount = e.videoTotalCount : "object" == typeof e.videoTotalCount && (t.videoTotalCount = new a.LongBits(e.videoTotalCount.low >>> 0, e.videoTotalCount.high >>> 0).toNumber())), null != e.videoTotalPlayCount && (a.Long ? (t.videoTotalPlayCount = a.Long.fromValue(e.videoTotalPlayCount)).unsigned = !1 : "string" == typeof e.videoTotalPlayCount ? t.videoTotalPlayCount = parseInt(e.videoTotalPlayCount, 10) : "number" == typeof e.videoTotalPlayCount ? t.videoTotalPlayCount = e.videoTotalPlayCount : "object" == typeof e.videoTotalPlayCount && (t.videoTotalPlayCount = new a.LongBits(e.videoTotalPlayCount.low >>> 0, e.videoTotalPlayCount.high >>> 0).toNumber())), null != e.videoTotalShareCount && (a.Long ? (t.videoTotalShareCount = a.Long.fromValue(e.videoTotalShareCount)).unsigned = !1 : "string" == typeof e.videoTotalShareCount ? t.videoTotalShareCount = parseInt(e.videoTotalShareCount, 10) : "number" == typeof e.videoTotalShareCount ? t.videoTotalShareCount = e.videoTotalShareCount : "object" == typeof e.videoTotalShareCount && (t.videoTotalShareCount = new a.LongBits(e.videoTotalShareCount.low >>> 0, e.videoTotalShareCount.high >>> 0).toNumber())), null != e.videoTotalSeriesCount && (a.Long ? (t.videoTotalSeriesCount = a.Long.fromValue(e.videoTotalSeriesCount)).unsigned = !1 : "string" == typeof e.videoTotalSeriesCount ? t.videoTotalSeriesCount = parseInt(e.videoTotalSeriesCount, 10) : "number" == typeof e.videoTotalSeriesCount ? t.videoTotalSeriesCount = e.videoTotalSeriesCount : "object" == typeof e.videoTotalSeriesCount && (t.videoTotalSeriesCount = new a.LongBits(e.videoTotalSeriesCount.low >>> 0, e.videoTotalSeriesCount.high >>> 0).toNumber())), null != e.varietyShowPlayCount && (a.Long ? (t.varietyShowPlayCount = a.Long.fromValue(e.varietyShowPlayCount)).unsigned = !1 : "string" == typeof e.varietyShowPlayCount ? t.varietyShowPlayCount = parseInt(e.varietyShowPlayCount, 10) : "number" == typeof e.varietyShowPlayCount ? t.varietyShowPlayCount = e.varietyShowPlayCount : "object" == typeof e.varietyShowPlayCount && (t.varietyShowPlayCount = new a.LongBits(e.varietyShowPlayCount.low >>> 0, e.varietyShowPlayCount.high >>> 0).toNumber())), null != e.videoTotalFavoriteCount && (a.Long ? (t.videoTotalFavoriteCount = a.Long.fromValue(e.videoTotalFavoriteCount)).unsigned = !1 : "string" == typeof e.videoTotalFavoriteCount ? t.videoTotalFavoriteCount = parseInt(e.videoTotalFavoriteCount, 10) : "number" == typeof e.videoTotalFavoriteCount ? t.videoTotalFavoriteCount = e.videoTotalFavoriteCount : "object" == typeof e.videoTotalFavoriteCount && (t.videoTotalFavoriteCount = new a.LongBits(e.videoTotalFavoriteCount.low >>> 0, e.videoTotalFavoriteCount.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.videoTotalCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.videoTotalCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.videoTotalPlayCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.videoTotalPlayCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.videoTotalShareCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.videoTotalShareCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.videoTotalSeriesCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.videoTotalSeriesCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.varietyShowPlayCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.varietyShowPlayCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.videoTotalFavoriteCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.videoTotalFavoriteCount = t.longs === String ? "0" : 0 + } + return null != e.videoTotalCount && e.hasOwnProperty("videoTotalCount") && ("number" == typeof e.videoTotalCount ? n.videoTotalCount = t.longs === String ? String(e.videoTotalCount) : e.videoTotalCount : n.videoTotalCount = t.longs === String ? a.Long.prototype.toString.call(e.videoTotalCount) : t.longs === Number ? new a.LongBits(e.videoTotalCount.low >>> 0, e.videoTotalCount.high >>> 0).toNumber() : e.videoTotalCount), null != e.videoTotalPlayCount && e.hasOwnProperty("videoTotalPlayCount") && ("number" == typeof e.videoTotalPlayCount ? n.videoTotalPlayCount = t.longs === String ? String(e.videoTotalPlayCount) : e.videoTotalPlayCount : n.videoTotalPlayCount = t.longs === String ? a.Long.prototype.toString.call(e.videoTotalPlayCount) : t.longs === Number ? new a.LongBits(e.videoTotalPlayCount.low >>> 0, e.videoTotalPlayCount.high >>> 0).toNumber() : e.videoTotalPlayCount), null != e.videoTotalShareCount && e.hasOwnProperty("videoTotalShareCount") && ("number" == typeof e.videoTotalShareCount ? n.videoTotalShareCount = t.longs === String ? String(e.videoTotalShareCount) : e.videoTotalShareCount : n.videoTotalShareCount = t.longs === String ? a.Long.prototype.toString.call(e.videoTotalShareCount) : t.longs === Number ? new a.LongBits(e.videoTotalShareCount.low >>> 0, e.videoTotalShareCount.high >>> 0).toNumber() : e.videoTotalShareCount), null != e.videoTotalSeriesCount && e.hasOwnProperty("videoTotalSeriesCount") && ("number" == typeof e.videoTotalSeriesCount ? n.videoTotalSeriesCount = t.longs === String ? String(e.videoTotalSeriesCount) : e.videoTotalSeriesCount : n.videoTotalSeriesCount = t.longs === String ? a.Long.prototype.toString.call(e.videoTotalSeriesCount) : t.longs === Number ? new a.LongBits(e.videoTotalSeriesCount.low >>> 0, e.videoTotalSeriesCount.high >>> 0).toNumber() : e.videoTotalSeriesCount), null != e.varietyShowPlayCount && e.hasOwnProperty("varietyShowPlayCount") && ("number" == typeof e.varietyShowPlayCount ? n.varietyShowPlayCount = t.longs === String ? String(e.varietyShowPlayCount) : e.varietyShowPlayCount : n.varietyShowPlayCount = t.longs === String ? a.Long.prototype.toString.call(e.varietyShowPlayCount) : t.longs === Number ? new a.LongBits(e.varietyShowPlayCount.low >>> 0, e.varietyShowPlayCount.high >>> 0).toNumber() : e.varietyShowPlayCount), null != e.videoTotalFavoriteCount && e.hasOwnProperty("videoTotalFavoriteCount") && ("number" == typeof e.videoTotalFavoriteCount ? n.videoTotalFavoriteCount = t.longs === String ? String(e.videoTotalFavoriteCount) : e.videoTotalFavoriteCount : n.videoTotalFavoriteCount = t.longs === String ? a.Long.prototype.toString.call(e.videoTotalFavoriteCount) : t.longs === Number ? new a.LongBits(e.videoTotalFavoriteCount.low >>> 0, e.videoTotalFavoriteCount.high >>> 0).toNumber() : e.videoTotalFavoriteCount), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.XiguaParams = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.userAuthInfo = "", e.prototype.ugcPublishMediaId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.mediaId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.authorDesc = "", e.prototype.description = "", e.prototype.userVerified = !1, e.prototype.userExtendInfo = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.userAuthInfo && Object.hasOwnProperty.call(e, "userAuthInfo") && t.uint32(10).string(e.userAuthInfo), null != e.ugcPublishMediaId && Object.hasOwnProperty.call(e, "ugcPublishMediaId") && t.uint32(16).int64(e.ugcPublishMediaId), null != e.mediaId && Object.hasOwnProperty.call(e, "mediaId") && t.uint32(24).int64(e.mediaId), null != e.authorDesc && Object.hasOwnProperty.call(e, "authorDesc") && t.uint32(34).string(e.authorDesc), null != e.description && Object.hasOwnProperty.call(e, "description") && t.uint32(42).string(e.description), null != e.userVerified && Object.hasOwnProperty.call(e, "userVerified") && t.uint32(48).bool(e.userVerified), null != e.userExtendInfo && Object.hasOwnProperty.call(e, "userExtendInfo") && l.webcast.data.User.XiguaParams.UserExtendInfo.encode(e.userExtendInfo, t.uint32(58).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.XiguaParams; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.userAuthInfo = e.string(); + break; + case 2: + r.ugcPublishMediaId = e.int64(); + break; + case 3: + r.mediaId = e.int64(); + break; + case 4: + r.authorDesc = e.string(); + break; + case 5: + r.description = e.string(); + break; + case 6: + r.userVerified = e.bool(); + break; + case 7: + r.userExtendInfo = l.webcast.data.User.XiguaParams.UserExtendInfo.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.userAuthInfo && e.hasOwnProperty("userAuthInfo") && !a.isString(e.userAuthInfo)) return "userAuthInfo: string expected"; + if (null != e.ugcPublishMediaId && e.hasOwnProperty("ugcPublishMediaId") && !(a.isInteger(e.ugcPublishMediaId) || e.ugcPublishMediaId && a.isInteger(e.ugcPublishMediaId.low) && a.isInteger(e.ugcPublishMediaId.high))) return "ugcPublishMediaId: integer|Long expected"; + if (null != e.mediaId && e.hasOwnProperty("mediaId") && !(a.isInteger(e.mediaId) || e.mediaId && a.isInteger(e.mediaId.low) && a.isInteger(e.mediaId.high))) return "mediaId: integer|Long expected"; + if (null != e.authorDesc && e.hasOwnProperty("authorDesc") && !a.isString(e.authorDesc)) return "authorDesc: string expected"; + if (null != e.description && e.hasOwnProperty("description") && !a.isString(e.description)) return "description: string expected"; + if (null != e.userVerified && e.hasOwnProperty("userVerified") && "boolean" != typeof e.userVerified) return "userVerified: boolean expected"; + if (null != e.userExtendInfo && e.hasOwnProperty("userExtendInfo")) + { + var t = l.webcast.data.User.XiguaParams.UserExtendInfo.verify(e.userExtendInfo); + if (t) return "userExtendInfo." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.XiguaParams) return e; + var t = new l.webcast.data.User.XiguaParams; + if (null != e.userAuthInfo && (t.userAuthInfo = String(e.userAuthInfo)), null != e.ugcPublishMediaId && (a.Long ? (t.ugcPublishMediaId = a.Long.fromValue(e.ugcPublishMediaId)).unsigned = !1 : "string" == typeof e.ugcPublishMediaId ? t.ugcPublishMediaId = parseInt(e.ugcPublishMediaId, 10) : "number" == typeof e.ugcPublishMediaId ? t.ugcPublishMediaId = e.ugcPublishMediaId : "object" == typeof e.ugcPublishMediaId && (t.ugcPublishMediaId = new a.LongBits(e.ugcPublishMediaId.low >>> 0, e.ugcPublishMediaId.high >>> 0).toNumber())), null != e.mediaId && (a.Long ? (t.mediaId = a.Long.fromValue(e.mediaId)).unsigned = !1 : "string" == typeof e.mediaId ? t.mediaId = parseInt(e.mediaId, 10) : "number" == typeof e.mediaId ? t.mediaId = e.mediaId : "object" == typeof e.mediaId && (t.mediaId = new a.LongBits(e.mediaId.low >>> 0, e.mediaId.high >>> 0).toNumber())), null != e.authorDesc && (t.authorDesc = String(e.authorDesc)), null != e.description && (t.description = String(e.description)), null != e.userVerified && (t.userVerified = Boolean(e.userVerified)), null != e.userExtendInfo) + { + if ("object" != typeof e.userExtendInfo) throw TypeError(".webcast.data.User.XiguaParams.userExtendInfo: object expected"); + t.userExtendInfo = l.webcast.data.User.XiguaParams.UserExtendInfo.fromObject(e.userExtendInfo) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.userAuthInfo = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.ugcPublishMediaId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.ugcPublishMediaId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.mediaId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.mediaId = t.longs === String ? "0" : 0; + n.authorDesc = "", n.description = "", n.userVerified = !1, n.userExtendInfo = null + } + return null != e.userAuthInfo && e.hasOwnProperty("userAuthInfo") && (n.userAuthInfo = e.userAuthInfo), null != e.ugcPublishMediaId && e.hasOwnProperty("ugcPublishMediaId") && ("number" == typeof e.ugcPublishMediaId ? n.ugcPublishMediaId = t.longs === String ? String(e.ugcPublishMediaId) : e.ugcPublishMediaId : n.ugcPublishMediaId = t.longs === String ? a.Long.prototype.toString.call(e.ugcPublishMediaId) : t.longs === Number ? new a.LongBits(e.ugcPublishMediaId.low >>> 0, e.ugcPublishMediaId.high >>> 0).toNumber() : e.ugcPublishMediaId), null != e.mediaId && e.hasOwnProperty("mediaId") && ("number" == typeof e.mediaId ? n.mediaId = t.longs === String ? String(e.mediaId) : e.mediaId : n.mediaId = t.longs === String ? a.Long.prototype.toString.call(e.mediaId) : t.longs === Number ? new a.LongBits(e.mediaId.low >>> 0, e.mediaId.high >>> 0).toNumber() : e.mediaId), null != e.authorDesc && e.hasOwnProperty("authorDesc") && (n.authorDesc = e.authorDesc), null != e.description && e.hasOwnProperty("description") && (n.description = e.description), null != e.userVerified && e.hasOwnProperty("userVerified") && (n.userVerified = e.userVerified), null != e.userExtendInfo && e.hasOwnProperty("userExtendInfo") && (n.userExtendInfo = l.webcast.data.User.XiguaParams.UserExtendInfo.toObject(e.userExtendInfo, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.UserExtendInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.shareUrl = "", e.prototype.rSchemaUrl = "", e.prototype.rocketSchemaInfo = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.shareUrl && Object.hasOwnProperty.call(e, "shareUrl") && t.uint32(10).string(e.shareUrl), null != e.rSchemaUrl && Object.hasOwnProperty.call(e, "rSchemaUrl") && t.uint32(18).string(e.rSchemaUrl), null != e.rocketSchemaInfo && Object.hasOwnProperty.call(e, "rocketSchemaInfo") && l.webcast.data.User.XiguaParams.UserExtendInfo.RocketSchema.encode(e.rocketSchemaInfo, t.uint32(26).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.XiguaParams.UserExtendInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.shareUrl = e.string(); + break; + case 2: + r.rSchemaUrl = e.string(); + break; + case 3: + r.rocketSchemaInfo = l.webcast.data.User.XiguaParams.UserExtendInfo.RocketSchema.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.shareUrl && e.hasOwnProperty("shareUrl") && !a.isString(e.shareUrl)) return "shareUrl: string expected"; + if (null != e.rSchemaUrl && e.hasOwnProperty("rSchemaUrl") && !a.isString(e.rSchemaUrl)) return "rSchemaUrl: string expected"; + if (null != e.rocketSchemaInfo && e.hasOwnProperty("rocketSchemaInfo")) + { + var t = l.webcast.data.User.XiguaParams.UserExtendInfo.RocketSchema.verify(e.rocketSchemaInfo); + if (t) return "rocketSchemaInfo." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.XiguaParams.UserExtendInfo) return e; + var t = new l.webcast.data.User.XiguaParams.UserExtendInfo; + if (null != e.shareUrl && (t.shareUrl = String(e.shareUrl)), null != e.rSchemaUrl && (t.rSchemaUrl = String(e.rSchemaUrl)), null != e.rocketSchemaInfo) + { + if ("object" != typeof e.rocketSchemaInfo) throw TypeError(".webcast.data.User.XiguaParams.UserExtendInfo.rocketSchemaInfo: object expected"); + t.rocketSchemaInfo = l.webcast.data.User.XiguaParams.UserExtendInfo.RocketSchema.fromObject(e.rocketSchemaInfo) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.shareUrl = "", n.rSchemaUrl = "", n.rocketSchemaInfo = null), null != e.shareUrl && e.hasOwnProperty("shareUrl") && (n.shareUrl = e.shareUrl), null != e.rSchemaUrl && e.hasOwnProperty("rSchemaUrl") && (n.rSchemaUrl = e.rSchemaUrl), null != e.rocketSchemaInfo && e.hasOwnProperty("rocketSchemaInfo") && (n.rocketSchemaInfo = l.webcast.data.User.XiguaParams.UserExtendInfo.RocketSchema.toObject(e.rocketSchemaInfo, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.RocketSchema = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.rSchema = "", e.prototype.rToken = "", e.prototype.downloadUrl = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.rSchema && Object.hasOwnProperty.call(e, "rSchema") && t.uint32(10).string(e.rSchema), null != e.rToken && Object.hasOwnProperty.call(e, "rToken") && t.uint32(18).string(e.rToken), null != e.downloadUrl && Object.hasOwnProperty.call(e, "downloadUrl") && t.uint32(26).string(e.downloadUrl), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.XiguaParams.UserExtendInfo.RocketSchema; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.rSchema = e.string(); + break; + case 2: + r.rToken = e.string(); + break; + case 3: + r.downloadUrl = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.rSchema && e.hasOwnProperty("rSchema") && !a.isString(e.rSchema) ? "rSchema: string expected" : null != e.rToken && e.hasOwnProperty("rToken") && !a.isString(e.rToken) ? "rToken: string expected" : null != e.downloadUrl && e.hasOwnProperty("downloadUrl") && !a.isString(e.downloadUrl) ? "downloadUrl: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.XiguaParams.UserExtendInfo.RocketSchema) return e; + var t = new l.webcast.data.User.XiguaParams.UserExtendInfo.RocketSchema; + return null != e.rSchema && (t.rSchema = String(e.rSchema)), null != e.rToken && (t.rToken = String(e.rToken)), null != e.downloadUrl && (t.downloadUrl = String(e.downloadUrl)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.rSchema = "", n.rToken = "", n.downloadUrl = ""), null != e.rSchema && e.hasOwnProperty("rSchema") && (n.rSchema = e.rSchema), null != e.rToken && e.hasOwnProperty("rToken") && (n.rToken = e.rToken), null != e.downloadUrl && e.hasOwnProperty("downloadUrl") && (n.downloadUrl = e.downloadUrl), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e + }(), e.ActivityInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.Badge = null, e.prototype.StoryTag = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.Badge && Object.hasOwnProperty.call(e, "Badge") && l.webcast.data.Image.encode(e.Badge, t.uint32(10).fork()).ldelim(), null != e.StoryTag && Object.hasOwnProperty.call(e, "StoryTag") && l.webcast.data.Image.encode(e.StoryTag, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.ActivityInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.Badge = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.StoryTag = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.Badge && e.hasOwnProperty("Badge") && (t = l.webcast.data.Image.verify(e.Badge))) return "Badge." + t; + if (null != e.StoryTag && e.hasOwnProperty("StoryTag") && (t = l.webcast.data.Image.verify(e.StoryTag))) return "StoryTag." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.ActivityInfo) return e; + var t = new l.webcast.data.User.ActivityInfo; + if (null != e.Badge) + { + if ("object" != typeof e.Badge) throw TypeError(".webcast.data.User.ActivityInfo.Badge: object expected"); + t.Badge = l.webcast.data.Image.fromObject(e.Badge) + } + if (null != e.StoryTag) + { + if ("object" != typeof e.StoryTag) throw TypeError(".webcast.data.User.ActivityInfo.StoryTag: object expected"); + t.StoryTag = l.webcast.data.Image.fromObject(e.StoryTag) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.Badge = null, n.StoryTag = null), null != e.Badge && e.hasOwnProperty("Badge") && (n.Badge = l.webcast.data.Image.toObject(e.Badge, t)), null != e.StoryTag && e.hasOwnProperty("StoryTag") && (n.StoryTag = l.webcast.data.Image.toObject(e.StoryTag, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.NobleLevelInfo = function () + { + function e(e) + { + if (this.nobleBackgroundColor = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.nobleBackground = null, e.prototype.nobleLevel = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.nobleIcon = null, e.prototype.nobleName = "", e.prototype.expireTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.nobleBigIcon = null, e.prototype.nobleIconWithBack = null, e.prototype.nobleBoarder = null, e.prototype.nobleBackgroundColor = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.nobleBackground && Object.hasOwnProperty.call(e, "nobleBackground") && l.webcast.data.Image.encode(e.nobleBackground, t.uint32(10).fork()).ldelim(), null != e.nobleLevel && Object.hasOwnProperty.call(e, "nobleLevel") && t.uint32(16).int64(e.nobleLevel), null != e.nobleIcon && Object.hasOwnProperty.call(e, "nobleIcon") && l.webcast.data.Image.encode(e.nobleIcon, t.uint32(26).fork()).ldelim(), null != e.nobleName && Object.hasOwnProperty.call(e, "nobleName") && t.uint32(34).string(e.nobleName), null != e.expireTime && Object.hasOwnProperty.call(e, "expireTime") && t.uint32(40).int64(e.expireTime), null != e.nobleBigIcon && Object.hasOwnProperty.call(e, "nobleBigIcon") && l.webcast.data.Image.encode(e.nobleBigIcon, t.uint32(50).fork()).ldelim(), null != e.nobleIconWithBack && Object.hasOwnProperty.call(e, "nobleIconWithBack") && l.webcast.data.Image.encode(e.nobleIconWithBack, t.uint32(58).fork()).ldelim(), null != e.nobleBoarder && Object.hasOwnProperty.call(e, "nobleBoarder") && l.webcast.data.Image.encode(e.nobleBoarder, t.uint32(66).fork()).ldelim(), null != e.nobleBackgroundColor && e.nobleBackgroundColor.length) + for (var n = 0; n < e.nobleBackgroundColor.length; ++n) t.uint32(74).string(e.nobleBackgroundColor[n]); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.NobleLevelInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.nobleBackground = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.nobleLevel = e.int64(); + break; + case 3: + r.nobleIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 4: + r.nobleName = e.string(); + break; + case 5: + r.expireTime = e.int64(); + break; + case 6: + r.nobleBigIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 7: + r.nobleIconWithBack = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 8: + r.nobleBoarder = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 9: + r.nobleBackgroundColor && r.nobleBackgroundColor.length || (r.nobleBackgroundColor = []), r.nobleBackgroundColor.push(e.string()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.nobleBackground && e.hasOwnProperty("nobleBackground") && (t = l.webcast.data.Image.verify(e.nobleBackground))) return "nobleBackground." + t; + if (null != e.nobleLevel && e.hasOwnProperty("nobleLevel") && !(a.isInteger(e.nobleLevel) || e.nobleLevel && a.isInteger(e.nobleLevel.low) && a.isInteger(e.nobleLevel.high))) return "nobleLevel: integer|Long expected"; + if (null != e.nobleIcon && e.hasOwnProperty("nobleIcon") && (t = l.webcast.data.Image.verify(e.nobleIcon))) return "nobleIcon." + t; + if (null != e.nobleName && e.hasOwnProperty("nobleName") && !a.isString(e.nobleName)) return "nobleName: string expected"; + if (null != e.expireTime && e.hasOwnProperty("expireTime") && !(a.isInteger(e.expireTime) || e.expireTime && a.isInteger(e.expireTime.low) && a.isInteger(e.expireTime.high))) return "expireTime: integer|Long expected"; + if (null != e.nobleBigIcon && e.hasOwnProperty("nobleBigIcon") && (t = l.webcast.data.Image.verify(e.nobleBigIcon))) return "nobleBigIcon." + t; + if (null != e.nobleIconWithBack && e.hasOwnProperty("nobleIconWithBack") && (t = l.webcast.data.Image.verify(e.nobleIconWithBack))) return "nobleIconWithBack." + t; + if (null != e.nobleBoarder && e.hasOwnProperty("nobleBoarder") && (t = l.webcast.data.Image.verify(e.nobleBoarder))) return "nobleBoarder." + t; + if (null != e.nobleBackgroundColor && e.hasOwnProperty("nobleBackgroundColor")) + { + if (!Array.isArray(e.nobleBackgroundColor)) return "nobleBackgroundColor: array expected"; + for (var n = 0; n < e.nobleBackgroundColor.length; ++n) + if (!a.isString(e.nobleBackgroundColor[n])) return "nobleBackgroundColor: string[] expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.NobleLevelInfo) return e; + var t = new l.webcast.data.User.NobleLevelInfo; + if (null != e.nobleBackground) + { + if ("object" != typeof e.nobleBackground) throw TypeError(".webcast.data.User.NobleLevelInfo.nobleBackground: object expected"); + t.nobleBackground = l.webcast.data.Image.fromObject(e.nobleBackground) + } + if (null != e.nobleLevel && (a.Long ? (t.nobleLevel = a.Long.fromValue(e.nobleLevel)).unsigned = !1 : "string" == typeof e.nobleLevel ? t.nobleLevel = parseInt(e.nobleLevel, 10) : "number" == typeof e.nobleLevel ? t.nobleLevel = e.nobleLevel : "object" == typeof e.nobleLevel && (t.nobleLevel = new a.LongBits(e.nobleLevel.low >>> 0, e.nobleLevel.high >>> 0).toNumber())), null != e.nobleIcon) + { + if ("object" != typeof e.nobleIcon) throw TypeError(".webcast.data.User.NobleLevelInfo.nobleIcon: object expected"); + t.nobleIcon = l.webcast.data.Image.fromObject(e.nobleIcon) + } + if (null != e.nobleName && (t.nobleName = String(e.nobleName)), null != e.expireTime && (a.Long ? (t.expireTime = a.Long.fromValue(e.expireTime)).unsigned = !1 : "string" == typeof e.expireTime ? t.expireTime = parseInt(e.expireTime, 10) : "number" == typeof e.expireTime ? t.expireTime = e.expireTime : "object" == typeof e.expireTime && (t.expireTime = new a.LongBits(e.expireTime.low >>> 0, e.expireTime.high >>> 0).toNumber())), null != e.nobleBigIcon) + { + if ("object" != typeof e.nobleBigIcon) throw TypeError(".webcast.data.User.NobleLevelInfo.nobleBigIcon: object expected"); + t.nobleBigIcon = l.webcast.data.Image.fromObject(e.nobleBigIcon) + } + if (null != e.nobleIconWithBack) + { + if ("object" != typeof e.nobleIconWithBack) throw TypeError(".webcast.data.User.NobleLevelInfo.nobleIconWithBack: object expected"); + t.nobleIconWithBack = l.webcast.data.Image.fromObject(e.nobleIconWithBack) + } + if (null != e.nobleBoarder) + { + if ("object" != typeof e.nobleBoarder) throw TypeError(".webcast.data.User.NobleLevelInfo.nobleBoarder: object expected"); + t.nobleBoarder = l.webcast.data.Image.fromObject(e.nobleBoarder) + } + if (e.nobleBackgroundColor) + { + if (!Array.isArray(e.nobleBackgroundColor)) throw TypeError(".webcast.data.User.NobleLevelInfo.nobleBackgroundColor: array expected"); + t.nobleBackgroundColor = []; + for (var n = 0; n < e.nobleBackgroundColor.length; ++n) t.nobleBackgroundColor[n] = String(e.nobleBackgroundColor[n]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.nobleBackgroundColor = []), t.defaults) + { + if (n.nobleBackground = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.nobleLevel = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.nobleLevel = t.longs === String ? "0" : 0; + if (n.nobleIcon = null, n.nobleName = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.expireTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.expireTime = t.longs === String ? "0" : 0; + n.nobleBigIcon = null, n.nobleIconWithBack = null, n.nobleBoarder = null + } + if (null != e.nobleBackground && e.hasOwnProperty("nobleBackground") && (n.nobleBackground = l.webcast.data.Image.toObject(e.nobleBackground, t)), null != e.nobleLevel && e.hasOwnProperty("nobleLevel") && ("number" == typeof e.nobleLevel ? n.nobleLevel = t.longs === String ? String(e.nobleLevel) : e.nobleLevel : n.nobleLevel = t.longs === String ? a.Long.prototype.toString.call(e.nobleLevel) : t.longs === Number ? new a.LongBits(e.nobleLevel.low >>> 0, e.nobleLevel.high >>> 0).toNumber() : e.nobleLevel), null != e.nobleIcon && e.hasOwnProperty("nobleIcon") && (n.nobleIcon = l.webcast.data.Image.toObject(e.nobleIcon, t)), null != e.nobleName && e.hasOwnProperty("nobleName") && (n.nobleName = e.nobleName), null != e.expireTime && e.hasOwnProperty("expireTime") && ("number" == typeof e.expireTime ? n.expireTime = t.longs === String ? String(e.expireTime) : e.expireTime : n.expireTime = t.longs === String ? a.Long.prototype.toString.call(e.expireTime) : t.longs === Number ? new a.LongBits(e.expireTime.low >>> 0, e.expireTime.high >>> 0).toNumber() : e.expireTime), null != e.nobleBigIcon && e.hasOwnProperty("nobleBigIcon") && (n.nobleBigIcon = l.webcast.data.Image.toObject(e.nobleBigIcon, t)), null != e.nobleIconWithBack && e.hasOwnProperty("nobleIconWithBack") && (n.nobleIconWithBack = l.webcast.data.Image.toObject(e.nobleIconWithBack, t)), null != e.nobleBoarder && e.hasOwnProperty("nobleBoarder") && (n.nobleBoarder = l.webcast.data.Image.toObject(e.nobleBoarder, t)), e.nobleBackgroundColor && e.nobleBackgroundColor.length) + { + n.nobleBackgroundColor = []; + for (var o = 0; o < e.nobleBackgroundColor.length; ++o) n.nobleBackgroundColor[o] = e.nobleBackgroundColor[o] + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.BrotherhoodInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.name = "", e.prototype.level = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.background = null, e.prototype.fontColor = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(10).string(e.name), null != e.level && Object.hasOwnProperty.call(e, "level") && t.uint32(16).int64(e.level), null != e.background && Object.hasOwnProperty.call(e, "background") && l.webcast.data.Image.encode(e.background, t.uint32(26).fork()).ldelim(), null != e.fontColor && Object.hasOwnProperty.call(e, "fontColor") && t.uint32(34).string(e.fontColor), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.BrotherhoodInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.name = e.string(); + break; + case 2: + r.level = e.int64(); + break; + case 3: + r.background = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 4: + r.fontColor = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.name && e.hasOwnProperty("name") && !a.isString(e.name)) return "name: string expected"; + if (null != e.level && e.hasOwnProperty("level") && !(a.isInteger(e.level) || e.level && a.isInteger(e.level.low) && a.isInteger(e.level.high))) return "level: integer|Long expected"; + if (null != e.background && e.hasOwnProperty("background")) + { + var t = l.webcast.data.Image.verify(e.background); + if (t) return "background." + t + } + return null != e.fontColor && e.hasOwnProperty("fontColor") && !a.isString(e.fontColor) ? "fontColor: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.BrotherhoodInfo) return e; + var t = new l.webcast.data.User.BrotherhoodInfo; + if (null != e.name && (t.name = String(e.name)), null != e.level && (a.Long ? (t.level = a.Long.fromValue(e.level)).unsigned = !1 : "string" == typeof e.level ? t.level = parseInt(e.level, 10) : "number" == typeof e.level ? t.level = e.level : "object" == typeof e.level && (t.level = new a.LongBits(e.level.low >>> 0, e.level.high >>> 0).toNumber())), null != e.background) + { + if ("object" != typeof e.background) throw TypeError(".webcast.data.User.BrotherhoodInfo.background: object expected"); + t.background = l.webcast.data.Image.fromObject(e.background) + } + return null != e.fontColor && (t.fontColor = String(e.fontColor)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.name = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.level = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.level = t.longs === String ? "0" : 0; + n.background = null, n.fontColor = "" + } + return null != e.name && e.hasOwnProperty("name") && (n.name = e.name), null != e.level && e.hasOwnProperty("level") && ("number" == typeof e.level ? n.level = t.longs === String ? String(e.level) : e.level : n.level = t.longs === String ? a.Long.prototype.toString.call(e.level) : t.longs === Number ? new a.LongBits(e.level.low >>> 0, e.level.high >>> 0).toNumber() : e.level), null != e.background && e.hasOwnProperty("background") && (n.background = l.webcast.data.Image.toObject(e.background, t)), null != e.fontColor && e.hasOwnProperty("fontColor") && (n.fontColor = e.fontColor), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.AuthenticationInfo = function () + { + function e(e) + { + if (this.levelList = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.customVerify = "", e.prototype.enterpriseVerifyReason = "", e.prototype.authenticationBadge = null, e.prototype.levelList = a.emptyArray, e.prototype.accountTypeInfo = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.customVerify && Object.hasOwnProperty.call(e, "customVerify") && t.uint32(10).string(e.customVerify), null != e.enterpriseVerifyReason && Object.hasOwnProperty.call(e, "enterpriseVerifyReason") && t.uint32(18).string(e.enterpriseVerifyReason), null != e.authenticationBadge && Object.hasOwnProperty.call(e, "authenticationBadge") && l.webcast.data.Image.encode(e.authenticationBadge, t.uint32(26).fork()).ldelim(), null != e.levelList && e.levelList.length) + { + t.uint32(34).fork(); + for (var n = 0; n < e.levelList.length; ++n) t.int32(e.levelList[n]); + t.ldelim() + } + return null != e.accountTypeInfo && Object.hasOwnProperty.call(e, "accountTypeInfo") && l.webcast.data.User.AuthenticationInfo.AccountTypeInfo.encode(e.accountTypeInfo, t.uint32(82).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.AuthenticationInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.customVerify = e.string(); + break; + case 2: + r.enterpriseVerifyReason = e.string(); + break; + case 3: + r.authenticationBadge = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 4: + if (r.levelList && r.levelList.length || (r.levelList = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.levelList.push(e.int32()); + else r.levelList.push(e.int32()); + break; + case 10: + r.accountTypeInfo = l.webcast.data.User.AuthenticationInfo.AccountTypeInfo.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.customVerify && e.hasOwnProperty("customVerify") && !a.isString(e.customVerify)) return "customVerify: string expected"; + if (null != e.enterpriseVerifyReason && e.hasOwnProperty("enterpriseVerifyReason") && !a.isString(e.enterpriseVerifyReason)) return "enterpriseVerifyReason: string expected"; + var t; + if (null != e.authenticationBadge && e.hasOwnProperty("authenticationBadge") && (t = l.webcast.data.Image.verify(e.authenticationBadge))) return "authenticationBadge." + t; + if (null != e.levelList && e.hasOwnProperty("levelList")) + { + if (!Array.isArray(e.levelList)) return "levelList: array expected"; + for (var n = 0; n < e.levelList.length; ++n) + if (!a.isInteger(e.levelList[n])) return "levelList: integer[] expected" + } + if (null != e.accountTypeInfo && e.hasOwnProperty("accountTypeInfo") && (t = l.webcast.data.User.AuthenticationInfo.AccountTypeInfo.verify(e.accountTypeInfo))) return "accountTypeInfo." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.AuthenticationInfo) return e; + var t = new l.webcast.data.User.AuthenticationInfo; + if (null != e.customVerify && (t.customVerify = String(e.customVerify)), null != e.enterpriseVerifyReason && (t.enterpriseVerifyReason = String(e.enterpriseVerifyReason)), null != e.authenticationBadge) + { + if ("object" != typeof e.authenticationBadge) throw TypeError(".webcast.data.User.AuthenticationInfo.authenticationBadge: object expected"); + t.authenticationBadge = l.webcast.data.Image.fromObject(e.authenticationBadge) + } + if (e.levelList) + { + if (!Array.isArray(e.levelList)) throw TypeError(".webcast.data.User.AuthenticationInfo.levelList: array expected"); + t.levelList = []; + for (var n = 0; n < e.levelList.length; ++n) t.levelList[n] = 0 | e.levelList[n] + } + if (null != e.accountTypeInfo) + { + if ("object" != typeof e.accountTypeInfo) throw TypeError(".webcast.data.User.AuthenticationInfo.accountTypeInfo: object expected"); + t.accountTypeInfo = l.webcast.data.User.AuthenticationInfo.AccountTypeInfo.fromObject(e.accountTypeInfo) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.levelList = []), t.defaults && (n.customVerify = "", n.enterpriseVerifyReason = "", n.authenticationBadge = null, n.accountTypeInfo = null), null != e.customVerify && e.hasOwnProperty("customVerify") && (n.customVerify = e.customVerify), null != e.enterpriseVerifyReason && e.hasOwnProperty("enterpriseVerifyReason") && (n.enterpriseVerifyReason = e.enterpriseVerifyReason), null != e.authenticationBadge && e.hasOwnProperty("authenticationBadge") && (n.authenticationBadge = l.webcast.data.Image.toObject(e.authenticationBadge, t)), e.levelList && e.levelList.length) + { + n.levelList = []; + for (var r = 0; r < e.levelList.length; ++r) n.levelList[r] = e.levelList[r] + } + return null != e.accountTypeInfo && e.hasOwnProperty("accountTypeInfo") && (n.accountTypeInfo = l.webcast.data.User.AuthenticationInfo.AccountTypeInfo.toObject(e.accountTypeInfo, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.AccountTypeInfo = function () + { + function e(e) + { + if (this.accountTypeMap = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.accountTypeMap = a.emptyObject, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.accountTypeMap && Object.hasOwnProperty.call(e, "accountTypeMap")) + for (var n = Object.keys(e.accountTypeMap), r = 0; r < n.length; ++r) t.uint32(10).fork().uint32(8).int64(n[r]).uint32(16).bool(e.accountTypeMap[n[r]]).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.User.AuthenticationInfo.AccountTypeInfo; e.pos < i;) + { + var c = e.uint32(); + if (c >>> 3 == 1) + { + s.accountTypeMap === a.emptyObject && (s.accountTypeMap = {}); + var u = e.uint32() + e.pos; + for (n = 0, r = !1; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.int64(); + break; + case 2: + r = e.bool(); + break; + default: + e.skipType(7 & p) + } + } + s.accountTypeMap["object" == typeof n ? a.longToHash(n) : n] = r + } + else e.skipType(7 & c) + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.accountTypeMap && e.hasOwnProperty("accountTypeMap")) + { + if (!a.isObject(e.accountTypeMap)) return "accountTypeMap: object expected"; + for (var t = Object.keys(e.accountTypeMap), n = 0; n < t.length; ++n) + { + if (!a.key64Re.test(t[n])) return "accountTypeMap: integer|Long key{k:int64} expected"; + if ("boolean" != typeof e.accountTypeMap[t[n]]) return "accountTypeMap: boolean{k:int64} expected" + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.AuthenticationInfo.AccountTypeInfo) return e; + var t = new l.webcast.data.User.AuthenticationInfo.AccountTypeInfo; + if (e.accountTypeMap) + { + if ("object" != typeof e.accountTypeMap) throw TypeError(".webcast.data.User.AuthenticationInfo.AccountTypeInfo.accountTypeMap: object expected"); + t.accountTypeMap = {}; + for (var n = Object.keys(e.accountTypeMap), r = 0; r < n.length; ++r) t.accountTypeMap[n[r]] = Boolean(e.accountTypeMap[n[r]]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.accountTypeMap = {}), e.accountTypeMap && (n = Object.keys(e.accountTypeMap)).length) + { + r.accountTypeMap = {}; + for (var o = 0; o < n.length; ++o) r.accountTypeMap[n[o]] = e.accountTypeMap[n[o]] + } + return r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.PoiInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.isPoiEnabled = !1, e.prototype.poiId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.poiName = "", e.prototype.poiIdStr = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.isPoiEnabled && Object.hasOwnProperty.call(e, "isPoiEnabled") && t.uint32(8).bool(e.isPoiEnabled), null != e.poiId && Object.hasOwnProperty.call(e, "poiId") && t.uint32(16).int64(e.poiId), null != e.poiName && Object.hasOwnProperty.call(e, "poiName") && t.uint32(26).string(e.poiName), null != e.poiIdStr && Object.hasOwnProperty.call(e, "poiIdStr") && t.uint32(34).string(e.poiIdStr), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.PoiInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.isPoiEnabled = e.bool(); + break; + case 2: + r.poiId = e.int64(); + break; + case 3: + r.poiName = e.string(); + break; + case 4: + r.poiIdStr = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.isPoiEnabled && e.hasOwnProperty("isPoiEnabled") && "boolean" != typeof e.isPoiEnabled ? "isPoiEnabled: boolean expected" : null != e.poiId && e.hasOwnProperty("poiId") && !(a.isInteger(e.poiId) || e.poiId && a.isInteger(e.poiId.low) && a.isInteger(e.poiId.high)) ? "poiId: integer|Long expected" : null != e.poiName && e.hasOwnProperty("poiName") && !a.isString(e.poiName) ? "poiName: string expected" : null != e.poiIdStr && e.hasOwnProperty("poiIdStr") && !a.isString(e.poiIdStr) ? "poiIdStr: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.PoiInfo) return e; + var t = new l.webcast.data.User.PoiInfo; + return null != e.isPoiEnabled && (t.isPoiEnabled = Boolean(e.isPoiEnabled)), null != e.poiId && (a.Long ? (t.poiId = a.Long.fromValue(e.poiId)).unsigned = !1 : "string" == typeof e.poiId ? t.poiId = parseInt(e.poiId, 10) : "number" == typeof e.poiId ? t.poiId = e.poiId : "object" == typeof e.poiId && (t.poiId = new a.LongBits(e.poiId.low >>> 0, e.poiId.high >>> 0).toNumber())), null != e.poiName && (t.poiName = String(e.poiName)), null != e.poiIdStr && (t.poiIdStr = String(e.poiIdStr)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.isPoiEnabled = !1, a.Long) + { + var r = new a.Long(0, 0, !1); + n.poiId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.poiId = t.longs === String ? "0" : 0; + n.poiName = "", n.poiIdStr = "" + } + return null != e.isPoiEnabled && e.hasOwnProperty("isPoiEnabled") && (n.isPoiEnabled = e.isPoiEnabled), null != e.poiId && e.hasOwnProperty("poiId") && ("number" == typeof e.poiId ? n.poiId = t.longs === String ? String(e.poiId) : e.poiId : n.poiId = t.longs === String ? a.Long.prototype.toString.call(e.poiId) : t.longs === Number ? new a.LongBits(e.poiId.low >>> 0, e.poiId.high >>> 0).toNumber() : e.poiId), null != e.poiName && e.hasOwnProperty("poiName") && (n.poiName = e.poiName), null != e.poiIdStr && e.hasOwnProperty("poiIdStr") && (n.poiIdStr = e.poiIdStr), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.FansGroupInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.listFansGroupUrl = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.listFansGroupUrl && Object.hasOwnProperty.call(e, "listFansGroupUrl") && t.uint32(10).string(e.listFansGroupUrl), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.FansGroupInfo; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.listFansGroupUrl = e.string(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.listFansGroupUrl && e.hasOwnProperty("listFansGroupUrl") && !a.isString(e.listFansGroupUrl) ? "listFansGroupUrl: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.FansGroupInfo) return e; + var t = new l.webcast.data.User.FansGroupInfo; + return null != e.listFansGroupUrl && (t.listFansGroupUrl = String(e.listFansGroupUrl)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.listFansGroupUrl = ""), null != e.listFansGroupUrl && e.hasOwnProperty("listFansGroupUrl") && (n.listFansGroupUrl = e.listFansGroupUrl), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.UserStats = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.idStr = "", e.prototype.followingCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.followerCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.recordCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.totalDuration = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.dailyFanTicketCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.dailyIncome = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.itemCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.favoriteItemCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.diamondCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.diamondConsumedCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.tuwenItemCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(8).int64(e.id), null != e.idStr && Object.hasOwnProperty.call(e, "idStr") && t.uint32(18).string(e.idStr), null != e.followingCount && Object.hasOwnProperty.call(e, "followingCount") && t.uint32(24).int64(e.followingCount), null != e.followerCount && Object.hasOwnProperty.call(e, "followerCount") && t.uint32(32).int64(e.followerCount), null != e.recordCount && Object.hasOwnProperty.call(e, "recordCount") && t.uint32(40).int64(e.recordCount), null != e.totalDuration && Object.hasOwnProperty.call(e, "totalDuration") && t.uint32(48).int64(e.totalDuration), null != e.dailyFanTicketCount && Object.hasOwnProperty.call(e, "dailyFanTicketCount") && t.uint32(56).int64(e.dailyFanTicketCount), null != e.dailyIncome && Object.hasOwnProperty.call(e, "dailyIncome") && t.uint32(64).int64(e.dailyIncome), null != e.itemCount && Object.hasOwnProperty.call(e, "itemCount") && t.uint32(72).int64(e.itemCount), null != e.favoriteItemCount && Object.hasOwnProperty.call(e, "favoriteItemCount") && t.uint32(80).int64(e.favoriteItemCount), null != e.diamondCount && Object.hasOwnProperty.call(e, "diamondCount") && t.uint32(88).int64(e.diamondCount), null != e.diamondConsumedCount && Object.hasOwnProperty.call(e, "diamondConsumedCount") && t.uint32(96).int64(e.diamondConsumedCount), null != e.tuwenItemCount && Object.hasOwnProperty.call(e, "tuwenItemCount") && t.uint32(104).int64(e.tuwenItemCount), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.User.UserStats; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.id = e.int64(); + break; + case 2: + r.idStr = e.string(); + break; + case 3: + r.followingCount = e.int64(); + break; + case 4: + r.followerCount = e.int64(); + break; + case 5: + r.recordCount = e.int64(); + break; + case 6: + r.totalDuration = e.int64(); + break; + case 7: + r.dailyFanTicketCount = e.int64(); + break; + case 8: + r.dailyIncome = e.int64(); + break; + case 9: + r.itemCount = e.int64(); + break; + case 10: + r.favoriteItemCount = e.int64(); + break; + case 11: + r.diamondCount = e.int64(); + break; + case 12: + r.diamondConsumedCount = e.int64(); + break; + case 13: + r.tuwenItemCount = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high)) ? "id: integer|Long expected" : null != e.idStr && e.hasOwnProperty("idStr") && !a.isString(e.idStr) ? "idStr: string expected" : null != e.followingCount && e.hasOwnProperty("followingCount") && !(a.isInteger(e.followingCount) || e.followingCount && a.isInteger(e.followingCount.low) && a.isInteger(e.followingCount.high)) ? "followingCount: integer|Long expected" : null != e.followerCount && e.hasOwnProperty("followerCount") && !(a.isInteger(e.followerCount) || e.followerCount && a.isInteger(e.followerCount.low) && a.isInteger(e.followerCount.high)) ? "followerCount: integer|Long expected" : null != e.recordCount && e.hasOwnProperty("recordCount") && !(a.isInteger(e.recordCount) || e.recordCount && a.isInteger(e.recordCount.low) && a.isInteger(e.recordCount.high)) ? "recordCount: integer|Long expected" : null != e.totalDuration && e.hasOwnProperty("totalDuration") && !(a.isInteger(e.totalDuration) || e.totalDuration && a.isInteger(e.totalDuration.low) && a.isInteger(e.totalDuration.high)) ? "totalDuration: integer|Long expected" : null != e.dailyFanTicketCount && e.hasOwnProperty("dailyFanTicketCount") && !(a.isInteger(e.dailyFanTicketCount) || e.dailyFanTicketCount && a.isInteger(e.dailyFanTicketCount.low) && a.isInteger(e.dailyFanTicketCount.high)) ? "dailyFanTicketCount: integer|Long expected" : null != e.dailyIncome && e.hasOwnProperty("dailyIncome") && !(a.isInteger(e.dailyIncome) || e.dailyIncome && a.isInteger(e.dailyIncome.low) && a.isInteger(e.dailyIncome.high)) ? "dailyIncome: integer|Long expected" : null != e.itemCount && e.hasOwnProperty("itemCount") && !(a.isInteger(e.itemCount) || e.itemCount && a.isInteger(e.itemCount.low) && a.isInteger(e.itemCount.high)) ? "itemCount: integer|Long expected" : null != e.favoriteItemCount && e.hasOwnProperty("favoriteItemCount") && !(a.isInteger(e.favoriteItemCount) || e.favoriteItemCount && a.isInteger(e.favoriteItemCount.low) && a.isInteger(e.favoriteItemCount.high)) ? "favoriteItemCount: integer|Long expected" : null != e.diamondCount && e.hasOwnProperty("diamondCount") && !(a.isInteger(e.diamondCount) || e.diamondCount && a.isInteger(e.diamondCount.low) && a.isInteger(e.diamondCount.high)) ? "diamondCount: integer|Long expected" : null != e.diamondConsumedCount && e.hasOwnProperty("diamondConsumedCount") && !(a.isInteger(e.diamondConsumedCount) || e.diamondConsumedCount && a.isInteger(e.diamondConsumedCount.low) && a.isInteger(e.diamondConsumedCount.high)) ? "diamondConsumedCount: integer|Long expected" : null != e.tuwenItemCount && e.hasOwnProperty("tuwenItemCount") && !(a.isInteger(e.tuwenItemCount) || e.tuwenItemCount && a.isInteger(e.tuwenItemCount.low) && a.isInteger(e.tuwenItemCount.high)) ? "tuwenItemCount: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.User.UserStats) return e; + var t = new l.webcast.data.User.UserStats; + return null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), null != e.idStr && (t.idStr = String(e.idStr)), null != e.followingCount && (a.Long ? (t.followingCount = a.Long.fromValue(e.followingCount)).unsigned = !1 : "string" == typeof e.followingCount ? t.followingCount = parseInt(e.followingCount, 10) : "number" == typeof e.followingCount ? t.followingCount = e.followingCount : "object" == typeof e.followingCount && (t.followingCount = new a.LongBits(e.followingCount.low >>> 0, e.followingCount.high >>> 0).toNumber())), null != e.followerCount && (a.Long ? (t.followerCount = a.Long.fromValue(e.followerCount)).unsigned = !1 : "string" == typeof e.followerCount ? t.followerCount = parseInt(e.followerCount, 10) : "number" == typeof e.followerCount ? t.followerCount = e.followerCount : "object" == typeof e.followerCount && (t.followerCount = new a.LongBits(e.followerCount.low >>> 0, e.followerCount.high >>> 0).toNumber())), null != e.recordCount && (a.Long ? (t.recordCount = a.Long.fromValue(e.recordCount)).unsigned = !1 : "string" == typeof e.recordCount ? t.recordCount = parseInt(e.recordCount, 10) : "number" == typeof e.recordCount ? t.recordCount = e.recordCount : "object" == typeof e.recordCount && (t.recordCount = new a.LongBits(e.recordCount.low >>> 0, e.recordCount.high >>> 0).toNumber())), null != e.totalDuration && (a.Long ? (t.totalDuration = a.Long.fromValue(e.totalDuration)).unsigned = !1 : "string" == typeof e.totalDuration ? t.totalDuration = parseInt(e.totalDuration, 10) : "number" == typeof e.totalDuration ? t.totalDuration = e.totalDuration : "object" == typeof e.totalDuration && (t.totalDuration = new a.LongBits(e.totalDuration.low >>> 0, e.totalDuration.high >>> 0).toNumber())), null != e.dailyFanTicketCount && (a.Long ? (t.dailyFanTicketCount = a.Long.fromValue(e.dailyFanTicketCount)).unsigned = !1 : "string" == typeof e.dailyFanTicketCount ? t.dailyFanTicketCount = parseInt(e.dailyFanTicketCount, 10) : "number" == typeof e.dailyFanTicketCount ? t.dailyFanTicketCount = e.dailyFanTicketCount : "object" == typeof e.dailyFanTicketCount && (t.dailyFanTicketCount = new a.LongBits(e.dailyFanTicketCount.low >>> 0, e.dailyFanTicketCount.high >>> 0).toNumber())), null != e.dailyIncome && (a.Long ? (t.dailyIncome = a.Long.fromValue(e.dailyIncome)).unsigned = !1 : "string" == typeof e.dailyIncome ? t.dailyIncome = parseInt(e.dailyIncome, 10) : "number" == typeof e.dailyIncome ? t.dailyIncome = e.dailyIncome : "object" == typeof e.dailyIncome && (t.dailyIncome = new a.LongBits(e.dailyIncome.low >>> 0, e.dailyIncome.high >>> 0).toNumber())), null != e.itemCount && (a.Long ? (t.itemCount = a.Long.fromValue(e.itemCount)).unsigned = !1 : "string" == typeof e.itemCount ? t.itemCount = parseInt(e.itemCount, 10) : "number" == typeof e.itemCount ? t.itemCount = e.itemCount : "object" == typeof e.itemCount && (t.itemCount = new a.LongBits(e.itemCount.low >>> 0, e.itemCount.high >>> 0).toNumber())), null != e.favoriteItemCount && (a.Long ? (t.favoriteItemCount = a.Long.fromValue(e.favoriteItemCount)).unsigned = !1 : "string" == typeof e.favoriteItemCount ? t.favoriteItemCount = parseInt(e.favoriteItemCount, 10) : "number" == typeof e.favoriteItemCount ? t.favoriteItemCount = e.favoriteItemCount : "object" == typeof e.favoriteItemCount && (t.favoriteItemCount = new a.LongBits(e.favoriteItemCount.low >>> 0, e.favoriteItemCount.high >>> 0).toNumber())), null != e.diamondCount && (a.Long ? (t.diamondCount = a.Long.fromValue(e.diamondCount)).unsigned = !1 : "string" == typeof e.diamondCount ? t.diamondCount = parseInt(e.diamondCount, 10) : "number" == typeof e.diamondCount ? t.diamondCount = e.diamondCount : "object" == typeof e.diamondCount && (t.diamondCount = new a.LongBits(e.diamondCount.low >>> 0, e.diamondCount.high >>> 0).toNumber())), null != e.diamondConsumedCount && (a.Long ? (t.diamondConsumedCount = a.Long.fromValue(e.diamondConsumedCount)).unsigned = !1 : "string" == typeof e.diamondConsumedCount ? t.diamondConsumedCount = parseInt(e.diamondConsumedCount, 10) : "number" == typeof e.diamondConsumedCount ? t.diamondConsumedCount = e.diamondConsumedCount : "object" == typeof e.diamondConsumedCount && (t.diamondConsumedCount = new a.LongBits(e.diamondConsumedCount.low >>> 0, e.diamondConsumedCount.high >>> 0).toNumber())), null != e.tuwenItemCount && (a.Long ? (t.tuwenItemCount = a.Long.fromValue(e.tuwenItemCount)).unsigned = !1 : "string" == typeof e.tuwenItemCount ? t.tuwenItemCount = parseInt(e.tuwenItemCount, 10) : "number" == typeof e.tuwenItemCount ? t.tuwenItemCount = e.tuwenItemCount : "object" == typeof e.tuwenItemCount && (t.tuwenItemCount = new a.LongBits(e.tuwenItemCount.low >>> 0, e.tuwenItemCount.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.id = t.longs === String ? "0" : 0; + if (n.idStr = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.followingCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.followingCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.followerCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.followerCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.recordCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.recordCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.totalDuration = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.totalDuration = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.dailyFanTicketCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.dailyFanTicketCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.dailyIncome = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.dailyIncome = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.itemCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.itemCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.favoriteItemCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.favoriteItemCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.diamondCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.diamondCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.diamondConsumedCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.diamondConsumedCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.tuwenItemCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.tuwenItemCount = t.longs === String ? "0" : 0 + } + return null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? n.id = t.longs === String ? String(e.id) : e.id : n.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), null != e.idStr && e.hasOwnProperty("idStr") && (n.idStr = e.idStr), null != e.followingCount && e.hasOwnProperty("followingCount") && ("number" == typeof e.followingCount ? n.followingCount = t.longs === String ? String(e.followingCount) : e.followingCount : n.followingCount = t.longs === String ? a.Long.prototype.toString.call(e.followingCount) : t.longs === Number ? new a.LongBits(e.followingCount.low >>> 0, e.followingCount.high >>> 0).toNumber() : e.followingCount), null != e.followerCount && e.hasOwnProperty("followerCount") && ("number" == typeof e.followerCount ? n.followerCount = t.longs === String ? String(e.followerCount) : e.followerCount : n.followerCount = t.longs === String ? a.Long.prototype.toString.call(e.followerCount) : t.longs === Number ? new a.LongBits(e.followerCount.low >>> 0, e.followerCount.high >>> 0).toNumber() : e.followerCount), null != e.recordCount && e.hasOwnProperty("recordCount") && ("number" == typeof e.recordCount ? n.recordCount = t.longs === String ? String(e.recordCount) : e.recordCount : n.recordCount = t.longs === String ? a.Long.prototype.toString.call(e.recordCount) : t.longs === Number ? new a.LongBits(e.recordCount.low >>> 0, e.recordCount.high >>> 0).toNumber() : e.recordCount), null != e.totalDuration && e.hasOwnProperty("totalDuration") && ("number" == typeof e.totalDuration ? n.totalDuration = t.longs === String ? String(e.totalDuration) : e.totalDuration : n.totalDuration = t.longs === String ? a.Long.prototype.toString.call(e.totalDuration) : t.longs === Number ? new a.LongBits(e.totalDuration.low >>> 0, e.totalDuration.high >>> 0).toNumber() : e.totalDuration), null != e.dailyFanTicketCount && e.hasOwnProperty("dailyFanTicketCount") && ("number" == typeof e.dailyFanTicketCount ? n.dailyFanTicketCount = t.longs === String ? String(e.dailyFanTicketCount) : e.dailyFanTicketCount : n.dailyFanTicketCount = t.longs === String ? a.Long.prototype.toString.call(e.dailyFanTicketCount) : t.longs === Number ? new a.LongBits(e.dailyFanTicketCount.low >>> 0, e.dailyFanTicketCount.high >>> 0).toNumber() : e.dailyFanTicketCount), null != e.dailyIncome && e.hasOwnProperty("dailyIncome") && ("number" == typeof e.dailyIncome ? n.dailyIncome = t.longs === String ? String(e.dailyIncome) : e.dailyIncome : n.dailyIncome = t.longs === String ? a.Long.prototype.toString.call(e.dailyIncome) : t.longs === Number ? new a.LongBits(e.dailyIncome.low >>> 0, e.dailyIncome.high >>> 0).toNumber() : e.dailyIncome), null != e.itemCount && e.hasOwnProperty("itemCount") && ("number" == typeof e.itemCount ? n.itemCount = t.longs === String ? String(e.itemCount) : e.itemCount : n.itemCount = t.longs === String ? a.Long.prototype.toString.call(e.itemCount) : t.longs === Number ? new a.LongBits(e.itemCount.low >>> 0, e.itemCount.high >>> 0).toNumber() : e.itemCount), null != e.favoriteItemCount && e.hasOwnProperty("favoriteItemCount") && ("number" == typeof e.favoriteItemCount ? n.favoriteItemCount = t.longs === String ? String(e.favoriteItemCount) : e.favoriteItemCount : n.favoriteItemCount = t.longs === String ? a.Long.prototype.toString.call(e.favoriteItemCount) : t.longs === Number ? new a.LongBits(e.favoriteItemCount.low >>> 0, e.favoriteItemCount.high >>> 0).toNumber() : e.favoriteItemCount), null != e.diamondCount && e.hasOwnProperty("diamondCount") && ("number" == typeof e.diamondCount ? n.diamondCount = t.longs === String ? String(e.diamondCount) : e.diamondCount : n.diamondCount = t.longs === String ? a.Long.prototype.toString.call(e.diamondCount) : t.longs === Number ? new a.LongBits(e.diamondCount.low >>> 0, e.diamondCount.high >>> 0).toNumber() : e.diamondCount), null != e.diamondConsumedCount && e.hasOwnProperty("diamondConsumedCount") && ("number" == typeof e.diamondConsumedCount ? n.diamondConsumedCount = t.longs === String ? String(e.diamondConsumedCount) : e.diamondConsumedCount : n.diamondConsumedCount = t.longs === String ? a.Long.prototype.toString.call(e.diamondConsumedCount) : t.longs === Number ? new a.LongBits(e.diamondConsumedCount.low >>> 0, e.diamondConsumedCount.high >>> 0).toNumber() : e.diamondConsumedCount), null != e.tuwenItemCount && e.hasOwnProperty("tuwenItemCount") && ("number" == typeof e.tuwenItemCount ? n.tuwenItemCount = t.longs === String ? String(e.tuwenItemCount) : e.tuwenItemCount : n.tuwenItemCount = t.longs === String ? a.Long.prototype.toString.call(e.tuwenItemCount) : t.longs === Number ? new a.LongBits(e.tuwenItemCount.low >>> 0, e.tuwenItemCount.high >>> 0).toNumber() : e.tuwenItemCount), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.WebUser = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.idStr = "", e.prototype.secUid = "", e.prototype.nickname = "", e.prototype.avatarThumb = null, e.prototype.followInfo = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.idStr && Object.hasOwnProperty.call(e, "idStr") && t.uint32(10).string(e.idStr), null != e.secUid && Object.hasOwnProperty.call(e, "secUid") && t.uint32(18).string(e.secUid), null != e.nickname && Object.hasOwnProperty.call(e, "nickname") && t.uint32(26).string(e.nickname), null != e.avatarThumb && Object.hasOwnProperty.call(e, "avatarThumb") && l.webcast.data.WebImage.encode(e.avatarThumb, t.uint32(34).fork()).ldelim(), null != e.followInfo && Object.hasOwnProperty.call(e, "followInfo") && l.webcast.data.WebUser.FollowInfo.encode(e.followInfo, t.uint32(42).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.WebUser; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.idStr = e.string(); + break; + case 2: + r.secUid = e.string(); + break; + case 3: + r.nickname = e.string(); + break; + case 4: + r.avatarThumb = l.webcast.data.WebImage.decode(e, e.uint32()); + break; + case 5: + r.followInfo = l.webcast.data.WebUser.FollowInfo.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.idStr && e.hasOwnProperty("idStr") && !a.isString(e.idStr)) return "idStr: string expected"; + if (null != e.secUid && e.hasOwnProperty("secUid") && !a.isString(e.secUid)) return "secUid: string expected"; + if (null != e.nickname && e.hasOwnProperty("nickname") && !a.isString(e.nickname)) return "nickname: string expected"; + var t; + if (null != e.avatarThumb && e.hasOwnProperty("avatarThumb") && (t = l.webcast.data.WebImage.verify(e.avatarThumb))) return "avatarThumb." + t; + if (null != e.followInfo && e.hasOwnProperty("followInfo") && (t = l.webcast.data.WebUser.FollowInfo.verify(e.followInfo))) return "followInfo." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.WebUser) return e; + var t = new l.webcast.data.WebUser; + if (null != e.idStr && (t.idStr = String(e.idStr)), null != e.secUid && (t.secUid = String(e.secUid)), null != e.nickname && (t.nickname = String(e.nickname)), null != e.avatarThumb) + { + if ("object" != typeof e.avatarThumb) throw TypeError(".webcast.data.WebUser.avatarThumb: object expected"); + t.avatarThumb = l.webcast.data.WebImage.fromObject(e.avatarThumb) + } + if (null != e.followInfo) + { + if ("object" != typeof e.followInfo) throw TypeError(".webcast.data.WebUser.followInfo: object expected"); + t.followInfo = l.webcast.data.WebUser.FollowInfo.fromObject(e.followInfo) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.idStr = "", n.secUid = "", n.nickname = "", n.avatarThumb = null, n.followInfo = null), null != e.idStr && e.hasOwnProperty("idStr") && (n.idStr = e.idStr), null != e.secUid && e.hasOwnProperty("secUid") && (n.secUid = e.secUid), null != e.nickname && e.hasOwnProperty("nickname") && (n.nickname = e.nickname), null != e.avatarThumb && e.hasOwnProperty("avatarThumb") && (n.avatarThumb = l.webcast.data.WebImage.toObject(e.avatarThumb, t)), null != e.followInfo && e.hasOwnProperty("followInfo") && (n.followInfo = l.webcast.data.WebUser.FollowInfo.toObject(e.followInfo, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.FollowInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.followStatus = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.followStatusStr = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.followStatus && Object.hasOwnProperty.call(e, "followStatus") && t.uint32(8).int64(e.followStatus), null != e.followStatusStr && Object.hasOwnProperty.call(e, "followStatusStr") && t.uint32(18).string(e.followStatusStr), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.WebUser.FollowInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.followStatus = e.int64(); + break; + case 2: + r.followStatusStr = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.followStatus && e.hasOwnProperty("followStatus") && !(a.isInteger(e.followStatus) || e.followStatus && a.isInteger(e.followStatus.low) && a.isInteger(e.followStatus.high)) ? "followStatus: integer|Long expected" : null != e.followStatusStr && e.hasOwnProperty("followStatusStr") && !a.isString(e.followStatusStr) ? "followStatusStr: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.WebUser.FollowInfo) return e; + var t = new l.webcast.data.WebUser.FollowInfo; + return null != e.followStatus && (a.Long ? (t.followStatus = a.Long.fromValue(e.followStatus)).unsigned = !1 : "string" == typeof e.followStatus ? t.followStatus = parseInt(e.followStatus, 10) : "number" == typeof e.followStatus ? t.followStatus = e.followStatus : "object" == typeof e.followStatus && (t.followStatus = new a.LongBits(e.followStatus.low >>> 0, e.followStatus.high >>> 0).toNumber())), null != e.followStatusStr && (t.followStatusStr = String(e.followStatusStr)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.followStatus = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.followStatus = t.longs === String ? "0" : 0; + n.followStatusStr = "" + } + return null != e.followStatus && e.hasOwnProperty("followStatus") && ("number" == typeof e.followStatus ? n.followStatus = t.longs === String ? String(e.followStatus) : e.followStatus : n.followStatus = t.longs === String ? a.Long.prototype.toString.call(e.followStatus) : t.longs === Number ? new a.LongBits(e.followStatus.low >>> 0, e.followStatus.high >>> 0).toNumber() : e.followStatus), null != e.followStatusStr && e.hasOwnProperty("followStatusStr") && (n.followStatusStr = e.followStatusStr), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.IndustryCertification = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.profile = null, e.prototype.room = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.profile && Object.hasOwnProperty.call(e, "profile") && l.webcast.data.IndustryCertificationProfile.encode(e.profile, t.uint32(10).fork()).ldelim(), null != e.room && Object.hasOwnProperty.call(e, "room") && l.webcast.data.IndustryCertificationRoom.encode(e.room, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.IndustryCertification; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.profile = l.webcast.data.IndustryCertificationProfile.decode(e, e.uint32()); + break; + case 2: + r.room = l.webcast.data.IndustryCertificationRoom.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.profile && e.hasOwnProperty("profile") && (t = l.webcast.data.IndustryCertificationProfile.verify(e.profile))) return "profile." + t; + if (null != e.room && e.hasOwnProperty("room") && (t = l.webcast.data.IndustryCertificationRoom.verify(e.room))) return "room." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.IndustryCertification) return e; + var t = new l.webcast.data.IndustryCertification; + if (null != e.profile) + { + if ("object" != typeof e.profile) throw TypeError(".webcast.data.IndustryCertification.profile: object expected"); + t.profile = l.webcast.data.IndustryCertificationProfile.fromObject(e.profile) + } + if (null != e.room) + { + if ("object" != typeof e.room) throw TypeError(".webcast.data.IndustryCertification.room: object expected"); + t.room = l.webcast.data.IndustryCertificationRoom.fromObject(e.room) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.profile = null, n.room = null), null != e.profile && e.hasOwnProperty("profile") && (n.profile = l.webcast.data.IndustryCertificationProfile.toObject(e.profile, t)), null != e.room && e.hasOwnProperty("room") && (n.room = l.webcast.data.IndustryCertificationRoom.toObject(e.room, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.IndustryCertificationProfile = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.icon = null, e.prototype.content = "", e.prototype.schema = "", e.prototype.contentColor = "", e.prototype.bgColor = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.icon && Object.hasOwnProperty.call(e, "icon") && l.webcast.data.Image.encode(e.icon, t.uint32(10).fork()).ldelim(), null != e.content && Object.hasOwnProperty.call(e, "content") && t.uint32(18).string(e.content), null != e.schema && Object.hasOwnProperty.call(e, "schema") && t.uint32(26).string(e.schema), null != e.contentColor && Object.hasOwnProperty.call(e, "contentColor") && t.uint32(34).string(e.contentColor), null != e.bgColor && Object.hasOwnProperty.call(e, "bgColor") && t.uint32(42).string(e.bgColor), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.IndustryCertificationProfile; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.icon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.content = e.string(); + break; + case 3: + r.schema = e.string(); + break; + case 4: + r.contentColor = e.string(); + break; + case 5: + r.bgColor = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.icon && e.hasOwnProperty("icon")) + { + var t = l.webcast.data.Image.verify(e.icon); + if (t) return "icon." + t + } + return null != e.content && e.hasOwnProperty("content") && !a.isString(e.content) ? "content: string expected" : null != e.schema && e.hasOwnProperty("schema") && !a.isString(e.schema) ? "schema: string expected" : null != e.contentColor && e.hasOwnProperty("contentColor") && !a.isString(e.contentColor) ? "contentColor: string expected" : null != e.bgColor && e.hasOwnProperty("bgColor") && !a.isString(e.bgColor) ? "bgColor: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.IndustryCertificationProfile) return e; + var t = new l.webcast.data.IndustryCertificationProfile; + if (null != e.icon) + { + if ("object" != typeof e.icon) throw TypeError(".webcast.data.IndustryCertificationProfile.icon: object expected"); + t.icon = l.webcast.data.Image.fromObject(e.icon) + } + return null != e.content && (t.content = String(e.content)), null != e.schema && (t.schema = String(e.schema)), null != e.contentColor && (t.contentColor = String(e.contentColor)), null != e.bgColor && (t.bgColor = String(e.bgColor)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.icon = null, n.content = "", n.schema = "", n.contentColor = "", n.bgColor = ""), null != e.icon && e.hasOwnProperty("icon") && (n.icon = l.webcast.data.Image.toObject(e.icon, t)), null != e.content && e.hasOwnProperty("content") && (n.content = e.content), null != e.schema && e.hasOwnProperty("schema") && (n.schema = e.schema), null != e.contentColor && e.hasOwnProperty("contentColor") && (n.contentColor = e.contentColor), null != e.bgColor && e.hasOwnProperty("bgColor") && (n.bgColor = e.bgColor), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.IndustryCertificationRoom = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.roomOwner = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.roomOwner && Object.hasOwnProperty.call(e, "roomOwner") && l.webcast.data.IndustryCertificationRoom.RoomOwner.encode(e.roomOwner, t.uint32(10).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.IndustryCertificationRoom; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.roomOwner = l.webcast.data.IndustryCertificationRoom.RoomOwner.decode(e, e.uint32()); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.roomOwner && e.hasOwnProperty("roomOwner")) + { + var t = l.webcast.data.IndustryCertificationRoom.RoomOwner.verify(e.roomOwner); + if (t) return "roomOwner." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.IndustryCertificationRoom) return e; + var t = new l.webcast.data.IndustryCertificationRoom; + if (null != e.roomOwner) + { + if ("object" != typeof e.roomOwner) throw TypeError(".webcast.data.IndustryCertificationRoom.roomOwner: object expected"); + t.roomOwner = l.webcast.data.IndustryCertificationRoom.RoomOwner.fromObject(e.roomOwner) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.roomOwner = null), null != e.roomOwner && e.hasOwnProperty("roomOwner") && (n.roomOwner = l.webcast.data.IndustryCertificationRoom.RoomOwner.toObject(e.roomOwner, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.RoomOwner = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.title = null, e.prototype.subTitle = "", e.prototype.leftColor = "", e.prototype.rightColor = "", e.prototype.anchorIndustryType = 0, e.prototype.brandStoreTitle = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.title && Object.hasOwnProperty.call(e, "title") && l.webcast.data.Image.encode(e.title, t.uint32(10).fork()).ldelim(), null != e.subTitle && Object.hasOwnProperty.call(e, "subTitle") && t.uint32(18).string(e.subTitle), null != e.leftColor && Object.hasOwnProperty.call(e, "leftColor") && t.uint32(26).string(e.leftColor), null != e.rightColor && Object.hasOwnProperty.call(e, "rightColor") && t.uint32(34).string(e.rightColor), null != e.anchorIndustryType && Object.hasOwnProperty.call(e, "anchorIndustryType") && t.uint32(40).int32(e.anchorIndustryType), null != e.brandStoreTitle && Object.hasOwnProperty.call(e, "brandStoreTitle") && l.webcast.data.Image.encode(e.brandStoreTitle, t.uint32(50).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.IndustryCertificationRoom.RoomOwner; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.title = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.subTitle = e.string(); + break; + case 3: + r.leftColor = e.string(); + break; + case 4: + r.rightColor = e.string(); + break; + case 5: + r.anchorIndustryType = e.int32(); + break; + case 6: + r.brandStoreTitle = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.title && e.hasOwnProperty("title") && (t = l.webcast.data.Image.verify(e.title))) return "title." + t; + if (null != e.subTitle && e.hasOwnProperty("subTitle") && !a.isString(e.subTitle)) return "subTitle: string expected"; + if (null != e.leftColor && e.hasOwnProperty("leftColor") && !a.isString(e.leftColor)) return "leftColor: string expected"; + if (null != e.rightColor && e.hasOwnProperty("rightColor") && !a.isString(e.rightColor)) return "rightColor: string expected"; + if (null != e.anchorIndustryType && e.hasOwnProperty("anchorIndustryType") && !a.isInteger(e.anchorIndustryType)) return "anchorIndustryType: integer expected"; + if (null != e.brandStoreTitle && e.hasOwnProperty("brandStoreTitle") && (t = l.webcast.data.Image.verify(e.brandStoreTitle))) return "brandStoreTitle." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.IndustryCertificationRoom.RoomOwner) return e; + var t = new l.webcast.data.IndustryCertificationRoom.RoomOwner; + if (null != e.title) + { + if ("object" != typeof e.title) throw TypeError(".webcast.data.IndustryCertificationRoom.RoomOwner.title: object expected"); + t.title = l.webcast.data.Image.fromObject(e.title) + } + if (null != e.subTitle && (t.subTitle = String(e.subTitle)), null != e.leftColor && (t.leftColor = String(e.leftColor)), null != e.rightColor && (t.rightColor = String(e.rightColor)), null != e.anchorIndustryType && (t.anchorIndustryType = 0 | e.anchorIndustryType), null != e.brandStoreTitle) + { + if ("object" != typeof e.brandStoreTitle) throw TypeError(".webcast.data.IndustryCertificationRoom.RoomOwner.brandStoreTitle: object expected"); + t.brandStoreTitle = l.webcast.data.Image.fromObject(e.brandStoreTitle) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.title = null, n.subTitle = "", n.leftColor = "", n.rightColor = "", n.anchorIndustryType = 0, n.brandStoreTitle = null), null != e.title && e.hasOwnProperty("title") && (n.title = l.webcast.data.Image.toObject(e.title, t)), null != e.subTitle && e.hasOwnProperty("subTitle") && (n.subTitle = e.subTitle), null != e.leftColor && e.hasOwnProperty("leftColor") && (n.leftColor = e.leftColor), null != e.rightColor && e.hasOwnProperty("rightColor") && (n.rightColor = e.rightColor), null != e.anchorIndustryType && e.hasOwnProperty("anchorIndustryType") && (n.anchorIndustryType = e.anchorIndustryType), null != e.brandStoreTitle && e.hasOwnProperty("brandStoreTitle") && (n.brandStoreTitle = l.webcast.data.Image.toObject(e.brandStoreTitle, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.LivePushStatusEnum = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "LivePushStatusUnknown"] = 0, t[e[1] = "LivePushStatusAll"] = 1, t[e[2] = "LivePushStatusIndividual"] = 2, t[e[3] = "LivePushStatusNone"] = 3, t + }(), e.LiveUser = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.nickname = "", e.prototype.avatarThumb = null, e.prototype.avatarMedium = null, e.prototype.avatarLarge = null, e.prototype.followInfo = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(8).int64(e.id), null != e.nickname && Object.hasOwnProperty.call(e, "nickname") && t.uint32(18).string(e.nickname), null != e.avatarThumb && Object.hasOwnProperty.call(e, "avatarThumb") && l.webcast.data.Image.encode(e.avatarThumb, t.uint32(26).fork()).ldelim(), null != e.avatarMedium && Object.hasOwnProperty.call(e, "avatarMedium") && l.webcast.data.Image.encode(e.avatarMedium, t.uint32(34).fork()).ldelim(), null != e.avatarLarge && Object.hasOwnProperty.call(e, "avatarLarge") && l.webcast.data.Image.encode(e.avatarLarge, t.uint32(42).fork()).ldelim(), null != e.followInfo && Object.hasOwnProperty.call(e, "followInfo") && l.webcast.data.User.FollowInfo.encode(e.followInfo, t.uint32(50).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LiveUser; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.id = e.int64(); + break; + case 2: + r.nickname = e.string(); + break; + case 3: + r.avatarThumb = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 4: + r.avatarMedium = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 5: + r.avatarLarge = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 6: + r.followInfo = l.webcast.data.User.FollowInfo.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high))) return "id: integer|Long expected"; + if (null != e.nickname && e.hasOwnProperty("nickname") && !a.isString(e.nickname)) return "nickname: string expected"; + var t; + if (null != e.avatarThumb && e.hasOwnProperty("avatarThumb") && (t = l.webcast.data.Image.verify(e.avatarThumb))) return "avatarThumb." + t; + if (null != e.avatarMedium && e.hasOwnProperty("avatarMedium") && (t = l.webcast.data.Image.verify(e.avatarMedium))) return "avatarMedium." + t; + if (null != e.avatarLarge && e.hasOwnProperty("avatarLarge") && (t = l.webcast.data.Image.verify(e.avatarLarge))) return "avatarLarge." + t; + if (null != e.followInfo && e.hasOwnProperty("followInfo") && (t = l.webcast.data.User.FollowInfo.verify(e.followInfo))) return "followInfo." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LiveUser) return e; + var t = new l.webcast.data.LiveUser; + if (null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), null != e.nickname && (t.nickname = String(e.nickname)), null != e.avatarThumb) + { + if ("object" != typeof e.avatarThumb) throw TypeError(".webcast.data.LiveUser.avatarThumb: object expected"); + t.avatarThumb = l.webcast.data.Image.fromObject(e.avatarThumb) + } + if (null != e.avatarMedium) + { + if ("object" != typeof e.avatarMedium) throw TypeError(".webcast.data.LiveUser.avatarMedium: object expected"); + t.avatarMedium = l.webcast.data.Image.fromObject(e.avatarMedium) + } + if (null != e.avatarLarge) + { + if ("object" != typeof e.avatarLarge) throw TypeError(".webcast.data.LiveUser.avatarLarge: object expected"); + t.avatarLarge = l.webcast.data.Image.fromObject(e.avatarLarge) + } + if (null != e.followInfo) + { + if ("object" != typeof e.followInfo) throw TypeError(".webcast.data.LiveUser.followInfo: object expected"); + t.followInfo = l.webcast.data.User.FollowInfo.fromObject(e.followInfo) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.id = t.longs === String ? "0" : 0; + n.nickname = "", n.avatarThumb = null, n.avatarMedium = null, n.avatarLarge = null, n.followInfo = null + } + return null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? n.id = t.longs === String ? String(e.id) : e.id : n.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), null != e.nickname && e.hasOwnProperty("nickname") && (n.nickname = e.nickname), null != e.avatarThumb && e.hasOwnProperty("avatarThumb") && (n.avatarThumb = l.webcast.data.Image.toObject(e.avatarThumb, t)), null != e.avatarMedium && e.hasOwnProperty("avatarMedium") && (n.avatarMedium = l.webcast.data.Image.toObject(e.avatarMedium, t)), null != e.avatarLarge && e.hasOwnProperty("avatarLarge") && (n.avatarLarge = l.webcast.data.Image.toObject(e.avatarLarge, t)), null != e.followInfo && e.hasOwnProperty("followInfo") && (n.followInfo = l.webcast.data.User.FollowInfo.toObject(e.followInfo, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.Image = function () + { + function e(e) + { + if (this.urlList = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.urlList = a.emptyArray, e.prototype.uri = "", e.prototype.height = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.width = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.avgColor = "", e.prototype.imageType = 0, e.prototype.openWebUrl = "", e.prototype.content = null, e.prototype.isAnimated = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.urlList && e.urlList.length) + for (var n = 0; n < e.urlList.length; ++n) t.uint32(10).string(e.urlList[n]); + return null != e.uri && Object.hasOwnProperty.call(e, "uri") && t.uint32(18).string(e.uri), null != e.height && Object.hasOwnProperty.call(e, "height") && t.uint32(24).int64(e.height), null != e.width && Object.hasOwnProperty.call(e, "width") && t.uint32(32).int64(e.width), null != e.avgColor && Object.hasOwnProperty.call(e, "avgColor") && t.uint32(42).string(e.avgColor), null != e.imageType && Object.hasOwnProperty.call(e, "imageType") && t.uint32(48).int32(e.imageType), null != e.openWebUrl && Object.hasOwnProperty.call(e, "openWebUrl") && t.uint32(58).string(e.openWebUrl), null != e.content && Object.hasOwnProperty.call(e, "content") && l.webcast.data.Image.Content.encode(e.content, t.uint32(66).fork()).ldelim(), null != e.isAnimated && Object.hasOwnProperty.call(e, "isAnimated") && t.uint32(72).bool(e.isAnimated), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.Image; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.urlList && r.urlList.length || (r.urlList = []), r.urlList.push(e.string()); + break; + case 2: + r.uri = e.string(); + break; + case 3: + r.height = e.int64(); + break; + case 4: + r.width = e.int64(); + break; + case 5: + r.avgColor = e.string(); + break; + case 6: + r.imageType = e.int32(); + break; + case 7: + r.openWebUrl = e.string(); + break; + case 8: + r.content = l.webcast.data.Image.Content.decode(e, e.uint32()); + break; + case 9: + r.isAnimated = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.urlList && e.hasOwnProperty("urlList")) + { + if (!Array.isArray(e.urlList)) return "urlList: array expected"; + for (var t = 0; t < e.urlList.length; ++t) + if (!a.isString(e.urlList[t])) return "urlList: string[] expected" + } + if (null != e.uri && e.hasOwnProperty("uri") && !a.isString(e.uri)) return "uri: string expected"; + if (null != e.height && e.hasOwnProperty("height") && !(a.isInteger(e.height) || e.height && a.isInteger(e.height.low) && a.isInteger(e.height.high))) return "height: integer|Long expected"; + if (null != e.width && e.hasOwnProperty("width") && !(a.isInteger(e.width) || e.width && a.isInteger(e.width.low) && a.isInteger(e.width.high))) return "width: integer|Long expected"; + if (null != e.avgColor && e.hasOwnProperty("avgColor") && !a.isString(e.avgColor)) return "avgColor: string expected"; + if (null != e.imageType && e.hasOwnProperty("imageType") && !a.isInteger(e.imageType)) return "imageType: integer expected"; + if (null != e.openWebUrl && e.hasOwnProperty("openWebUrl") && !a.isString(e.openWebUrl)) return "openWebUrl: string expected"; + if (null != e.content && e.hasOwnProperty("content")) + { + var n = l.webcast.data.Image.Content.verify(e.content); + if (n) return "content." + n + } + return null != e.isAnimated && e.hasOwnProperty("isAnimated") && "boolean" != typeof e.isAnimated ? "isAnimated: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.Image) return e; + var t = new l.webcast.data.Image; + if (e.urlList) + { + if (!Array.isArray(e.urlList)) throw TypeError(".webcast.data.Image.urlList: array expected"); + t.urlList = []; + for (var n = 0; n < e.urlList.length; ++n) t.urlList[n] = String(e.urlList[n]) + } + if (null != e.uri && (t.uri = String(e.uri)), null != e.height && (a.Long ? (t.height = a.Long.fromValue(e.height)).unsigned = !1 : "string" == typeof e.height ? t.height = parseInt(e.height, 10) : "number" == typeof e.height ? t.height = e.height : "object" == typeof e.height && (t.height = new a.LongBits(e.height.low >>> 0, e.height.high >>> 0).toNumber())), null != e.width && (a.Long ? (t.width = a.Long.fromValue(e.width)).unsigned = !1 : "string" == typeof e.width ? t.width = parseInt(e.width, 10) : "number" == typeof e.width ? t.width = e.width : "object" == typeof e.width && (t.width = new a.LongBits(e.width.low >>> 0, e.width.high >>> 0).toNumber())), null != e.avgColor && (t.avgColor = String(e.avgColor)), null != e.imageType && (t.imageType = 0 | e.imageType), null != e.openWebUrl && (t.openWebUrl = String(e.openWebUrl)), null != e.content) + { + if ("object" != typeof e.content) throw TypeError(".webcast.data.Image.content: object expected"); + t.content = l.webcast.data.Image.Content.fromObject(e.content) + } + return null != e.isAnimated && (t.isAnimated = Boolean(e.isAnimated)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.urlList = []), t.defaults) + { + if (n.uri = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.height = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.height = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.width = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.width = t.longs === String ? "0" : 0; + n.avgColor = "", n.imageType = 0, n.openWebUrl = "", n.content = null, n.isAnimated = !1 + } + if (e.urlList && e.urlList.length) + { + n.urlList = []; + for (var o = 0; o < e.urlList.length; ++o) n.urlList[o] = e.urlList[o] + } + return null != e.uri && e.hasOwnProperty("uri") && (n.uri = e.uri), null != e.height && e.hasOwnProperty("height") && ("number" == typeof e.height ? n.height = t.longs === String ? String(e.height) : e.height : n.height = t.longs === String ? a.Long.prototype.toString.call(e.height) : t.longs === Number ? new a.LongBits(e.height.low >>> 0, e.height.high >>> 0).toNumber() : e.height), null != e.width && e.hasOwnProperty("width") && ("number" == typeof e.width ? n.width = t.longs === String ? String(e.width) : e.width : n.width = t.longs === String ? a.Long.prototype.toString.call(e.width) : t.longs === Number ? new a.LongBits(e.width.low >>> 0, e.width.high >>> 0).toNumber() : e.width), null != e.avgColor && e.hasOwnProperty("avgColor") && (n.avgColor = e.avgColor), null != e.imageType && e.hasOwnProperty("imageType") && (n.imageType = e.imageType), null != e.openWebUrl && e.hasOwnProperty("openWebUrl") && (n.openWebUrl = e.openWebUrl), null != e.content && e.hasOwnProperty("content") && (n.content = l.webcast.data.Image.Content.toObject(e.content, t)), null != e.isAnimated && e.hasOwnProperty("isAnimated") && (n.isAnimated = e.isAnimated), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Content = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.name = "", e.prototype.fontColor = "", e.prototype.level = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.alternativeText = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(10).string(e.name), null != e.fontColor && Object.hasOwnProperty.call(e, "fontColor") && t.uint32(18).string(e.fontColor), null != e.level && Object.hasOwnProperty.call(e, "level") && t.uint32(24).int64(e.level), null != e.alternativeText && Object.hasOwnProperty.call(e, "alternativeText") && t.uint32(34).string(e.alternativeText), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.Image.Content; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.name = e.string(); + break; + case 2: + r.fontColor = e.string(); + break; + case 3: + r.level = e.int64(); + break; + case 4: + r.alternativeText = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.name && e.hasOwnProperty("name") && !a.isString(e.name) ? "name: string expected" : null != e.fontColor && e.hasOwnProperty("fontColor") && !a.isString(e.fontColor) ? "fontColor: string expected" : null != e.level && e.hasOwnProperty("level") && !(a.isInteger(e.level) || e.level && a.isInteger(e.level.low) && a.isInteger(e.level.high)) ? "level: integer|Long expected" : null != e.alternativeText && e.hasOwnProperty("alternativeText") && !a.isString(e.alternativeText) ? "alternativeText: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.Image.Content) return e; + var t = new l.webcast.data.Image.Content; + return null != e.name && (t.name = String(e.name)), null != e.fontColor && (t.fontColor = String(e.fontColor)), null != e.level && (a.Long ? (t.level = a.Long.fromValue(e.level)).unsigned = !1 : "string" == typeof e.level ? t.level = parseInt(e.level, 10) : "number" == typeof e.level ? t.level = e.level : "object" == typeof e.level && (t.level = new a.LongBits(e.level.low >>> 0, e.level.high >>> 0).toNumber())), null != e.alternativeText && (t.alternativeText = String(e.alternativeText)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.name = "", n.fontColor = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.level = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.level = t.longs === String ? "0" : 0; + n.alternativeText = "" + } + return null != e.name && e.hasOwnProperty("name") && (n.name = e.name), null != e.fontColor && e.hasOwnProperty("fontColor") && (n.fontColor = e.fontColor), null != e.level && e.hasOwnProperty("level") && ("number" == typeof e.level ? n.level = t.longs === String ? String(e.level) : e.level : n.level = t.longs === String ? a.Long.prototype.toString.call(e.level) : t.longs === Number ? new a.LongBits(e.level.low >>> 0, e.level.high >>> 0).toNumber() : e.level), null != e.alternativeText && e.hasOwnProperty("alternativeText") && (n.alternativeText = e.alternativeText), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.DiggIcon = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.normalIconUrl = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(8).int64(e.id), null != e.normalIconUrl && Object.hasOwnProperty.call(e, "normalIconUrl") && l.webcast.data.Image.encode(e.normalIconUrl, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.DiggIcon; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.id = e.int64(); + break; + case 2: + r.normalIconUrl = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high))) return "id: integer|Long expected"; + if (null != e.normalIconUrl && e.hasOwnProperty("normalIconUrl")) + { + var t = l.webcast.data.Image.verify(e.normalIconUrl); + if (t) return "normalIconUrl." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.DiggIcon) return e; + var t = new l.webcast.data.DiggIcon; + if (null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), null != e.normalIconUrl) + { + if ("object" != typeof e.normalIconUrl) throw TypeError(".webcast.data.DiggIcon.normalIconUrl: object expected"); + t.normalIconUrl = l.webcast.data.Image.fromObject(e.normalIconUrl) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.id = t.longs === String ? "0" : 0; + n.normalIconUrl = null + } + return null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? n.id = t.longs === String ? String(e.id) : e.id : n.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), null != e.normalIconUrl && e.hasOwnProperty("normalIconUrl") && (n.normalIconUrl = l.webcast.data.Image.toObject(e.normalIconUrl, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.WebImage = function () + { + function e(e) + { + if (this.urlList = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.urlList = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.urlList && e.urlList.length) + for (var n = 0; n < e.urlList.length; ++n) t.uint32(10).string(e.urlList[n]); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.WebImage; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.urlList && r.urlList.length || (r.urlList = []), r.urlList.push(e.string()); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.urlList && e.hasOwnProperty("urlList")) + { + if (!Array.isArray(e.urlList)) return "urlList: array expected"; + for (var t = 0; t < e.urlList.length; ++t) + if (!a.isString(e.urlList[t])) return "urlList: string[] expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.WebImage) return e; + var t = new l.webcast.data.WebImage; + if (e.urlList) + { + if (!Array.isArray(e.urlList)) throw TypeError(".webcast.data.WebImage.urlList: array expected"); + t.urlList = []; + for (var n = 0; n < e.urlList.length; ++n) t.urlList[n] = String(e.urlList[n]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.urlList = []), e.urlList && e.urlList.length) + { + n.urlList = []; + for (var r = 0; r < e.urlList.length; ++r) n.urlList[r] = e.urlList[r] + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkmicVendor = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "UNKNOWN"] = 0, t[e[1] = "AGORO"] = 1, t[e[2] = "ZEGO"] = 2, t[e[4] = "BYTE"] = 4, t + }(), e.Scene = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "Scene_Unknown"] = 0, t[e[1] = "Scene_PK"] = 1, t[e[4] = "Scene_AudienceLinkmic"] = 4, t[e[5] = "Scene_AudioChatRoom"] = 5, t[e[7] = "Scene_AnchorMultiLinkmic"] = 7, t[e[8] = "Scene_VideoChatRoom"] = 8, t[e[9] = "Scene_KTV"] = 9, t[e[10] = "Scene_ShareVideo"] = 10, t[e[11] = "Scene_ShareKTV"] = 11, t[e[12] = "Scene_VideoEqualRoom"] = 12, t[e[13] = "Scene_VideoKTV"] = 13, t[e[100] = "Scene_Default"] = 100, t + }(), e.LinkmicStatus = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "DISABLE"] = 0, t[e[1] = "ENABLE"] = 1, t[e[2] = "JUST_FOLLOWING"] = 2, t[e[3] = "MULTI_LINKING"] = 3, t[e[4] = "MULTI_LINKING_ONLY_FOLLOWING"] = 4, t + }(), e.AnchorLinkmicUserSettings = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.isTurnOn = !1, e.prototype.acceptMultiLinkmic = !1, e.prototype.acceptNotFollowerInvite = !1, e.prototype.allowGiftToOtherAnchors = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.isTurnOn && Object.hasOwnProperty.call(e, "isTurnOn") && t.uint32(8).bool(e.isTurnOn), null != e.acceptMultiLinkmic && Object.hasOwnProperty.call(e, "acceptMultiLinkmic") && t.uint32(16).bool(e.acceptMultiLinkmic), null != e.acceptNotFollowerInvite && Object.hasOwnProperty.call(e, "acceptNotFollowerInvite") && t.uint32(24).bool(e.acceptNotFollowerInvite), null != e.allowGiftToOtherAnchors && Object.hasOwnProperty.call(e, "allowGiftToOtherAnchors") && t.uint32(32).bool(e.allowGiftToOtherAnchors), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.AnchorLinkmicUserSettings; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.isTurnOn = e.bool(); + break; + case 2: + r.acceptMultiLinkmic = e.bool(); + break; + case 3: + r.acceptNotFollowerInvite = e.bool(); + break; + case 4: + r.allowGiftToOtherAnchors = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.isTurnOn && e.hasOwnProperty("isTurnOn") && "boolean" != typeof e.isTurnOn ? "isTurnOn: boolean expected" : null != e.acceptMultiLinkmic && e.hasOwnProperty("acceptMultiLinkmic") && "boolean" != typeof e.acceptMultiLinkmic ? "acceptMultiLinkmic: boolean expected" : null != e.acceptNotFollowerInvite && e.hasOwnProperty("acceptNotFollowerInvite") && "boolean" != typeof e.acceptNotFollowerInvite ? "acceptNotFollowerInvite: boolean expected" : null != e.allowGiftToOtherAnchors && e.hasOwnProperty("allowGiftToOtherAnchors") && "boolean" != typeof e.allowGiftToOtherAnchors ? "allowGiftToOtherAnchors: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.AnchorLinkmicUserSettings) return e; + var t = new l.webcast.data.AnchorLinkmicUserSettings; + return null != e.isTurnOn && (t.isTurnOn = Boolean(e.isTurnOn)), null != e.acceptMultiLinkmic && (t.acceptMultiLinkmic = Boolean(e.acceptMultiLinkmic)), null != e.acceptNotFollowerInvite && (t.acceptNotFollowerInvite = Boolean(e.acceptNotFollowerInvite)), null != e.allowGiftToOtherAnchors && (t.allowGiftToOtherAnchors = Boolean(e.allowGiftToOtherAnchors)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.isTurnOn = !1, n.acceptMultiLinkmic = !1, n.acceptNotFollowerInvite = !1, n.allowGiftToOtherAnchors = !1), null != e.isTurnOn && e.hasOwnProperty("isTurnOn") && (n.isTurnOn = e.isTurnOn), null != e.acceptMultiLinkmic && e.hasOwnProperty("acceptMultiLinkmic") && (n.acceptMultiLinkmic = e.acceptMultiLinkmic), null != e.acceptNotFollowerInvite && e.hasOwnProperty("acceptNotFollowerInvite") && (n.acceptNotFollowerInvite = e.acceptNotFollowerInvite), null != e.allowGiftToOtherAnchors && e.hasOwnProperty("allowGiftToOtherAnchors") && (n.allowGiftToOtherAnchors = e.allowGiftToOtherAnchors), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.BattleUserSettings = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.isTurnOn = !1, e.prototype.acceptNotFollowerInvite = !1, e.prototype.allowGiftToOtherAnchors = !1, e.prototype.acceptFriendInvite = !1, e.prototype.acceptHourlyRankInvite = !1, e.prototype.acceptPopularityRankInvite = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.isTurnOn && Object.hasOwnProperty.call(e, "isTurnOn") && t.uint32(8).bool(e.isTurnOn), null != e.acceptNotFollowerInvite && Object.hasOwnProperty.call(e, "acceptNotFollowerInvite") && t.uint32(16).bool(e.acceptNotFollowerInvite), null != e.allowGiftToOtherAnchors && Object.hasOwnProperty.call(e, "allowGiftToOtherAnchors") && t.uint32(24).bool(e.allowGiftToOtherAnchors), null != e.acceptFriendInvite && Object.hasOwnProperty.call(e, "acceptFriendInvite") && t.uint32(32).bool(e.acceptFriendInvite), null != e.acceptHourlyRankInvite && Object.hasOwnProperty.call(e, "acceptHourlyRankInvite") && t.uint32(40).bool(e.acceptHourlyRankInvite), null != e.acceptPopularityRankInvite && Object.hasOwnProperty.call(e, "acceptPopularityRankInvite") && t.uint32(48).bool(e.acceptPopularityRankInvite), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.BattleUserSettings; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.isTurnOn = e.bool(); + break; + case 2: + r.acceptNotFollowerInvite = e.bool(); + break; + case 3: + r.allowGiftToOtherAnchors = e.bool(); + break; + case 4: + r.acceptFriendInvite = e.bool(); + break; + case 5: + r.acceptHourlyRankInvite = e.bool(); + break; + case 6: + r.acceptPopularityRankInvite = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.isTurnOn && e.hasOwnProperty("isTurnOn") && "boolean" != typeof e.isTurnOn ? "isTurnOn: boolean expected" : null != e.acceptNotFollowerInvite && e.hasOwnProperty("acceptNotFollowerInvite") && "boolean" != typeof e.acceptNotFollowerInvite ? "acceptNotFollowerInvite: boolean expected" : null != e.allowGiftToOtherAnchors && e.hasOwnProperty("allowGiftToOtherAnchors") && "boolean" != typeof e.allowGiftToOtherAnchors ? "allowGiftToOtherAnchors: boolean expected" : null != e.acceptFriendInvite && e.hasOwnProperty("acceptFriendInvite") && "boolean" != typeof e.acceptFriendInvite ? "acceptFriendInvite: boolean expected" : null != e.acceptHourlyRankInvite && e.hasOwnProperty("acceptHourlyRankInvite") && "boolean" != typeof e.acceptHourlyRankInvite ? "acceptHourlyRankInvite: boolean expected" : null != e.acceptPopularityRankInvite && e.hasOwnProperty("acceptPopularityRankInvite") && "boolean" != typeof e.acceptPopularityRankInvite ? "acceptPopularityRankInvite: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.BattleUserSettings) return e; + var t = new l.webcast.data.BattleUserSettings; + return null != e.isTurnOn && (t.isTurnOn = Boolean(e.isTurnOn)), null != e.acceptNotFollowerInvite && (t.acceptNotFollowerInvite = Boolean(e.acceptNotFollowerInvite)), null != e.allowGiftToOtherAnchors && (t.allowGiftToOtherAnchors = Boolean(e.allowGiftToOtherAnchors)), null != e.acceptFriendInvite && (t.acceptFriendInvite = Boolean(e.acceptFriendInvite)), null != e.acceptHourlyRankInvite && (t.acceptHourlyRankInvite = Boolean(e.acceptHourlyRankInvite)), null != e.acceptPopularityRankInvite && (t.acceptPopularityRankInvite = Boolean(e.acceptPopularityRankInvite)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.isTurnOn = !1, n.acceptNotFollowerInvite = !1, n.allowGiftToOtherAnchors = !1, n.acceptFriendInvite = !1, n.acceptHourlyRankInvite = !1, n.acceptPopularityRankInvite = !1), null != e.isTurnOn && e.hasOwnProperty("isTurnOn") && (n.isTurnOn = e.isTurnOn), null != e.acceptNotFollowerInvite && e.hasOwnProperty("acceptNotFollowerInvite") && (n.acceptNotFollowerInvite = e.acceptNotFollowerInvite), null != e.allowGiftToOtherAnchors && e.hasOwnProperty("allowGiftToOtherAnchors") && (n.allowGiftToOtherAnchors = e.allowGiftToOtherAnchors), null != e.acceptFriendInvite && e.hasOwnProperty("acceptFriendInvite") && (n.acceptFriendInvite = e.acceptFriendInvite), null != e.acceptHourlyRankInvite && e.hasOwnProperty("acceptHourlyRankInvite") && (n.acceptHourlyRankInvite = e.acceptHourlyRankInvite), null != e.acceptPopularityRankInvite && e.hasOwnProperty("acceptPopularityRankInvite") && (n.acceptPopularityRankInvite = e.acceptPopularityRankInvite), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.RivalExtraInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.text = "", e.prototype.textType = 0, e.prototype.label = "", e.prototype.anchorLayer = 0, e.prototype.linkerInfo = null, e.prototype.linkmicUserSettings = null, e.prototype.battleUserSettings = null, e.prototype.videoShowScore = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.text && Object.hasOwnProperty.call(e, "text") && t.uint32(10).string(e.text), null != e.textType && Object.hasOwnProperty.call(e, "textType") && t.uint32(16).int32(e.textType), null != e.label && Object.hasOwnProperty.call(e, "label") && t.uint32(26).string(e.label), null != e.anchorLayer && Object.hasOwnProperty.call(e, "anchorLayer") && t.uint32(32).int32(e.anchorLayer), null != e.linkerInfo && Object.hasOwnProperty.call(e, "linkerInfo") && l.webcast.data.RivalExtraInfo.LinkerInfo.encode(e.linkerInfo, t.uint32(42).fork()).ldelim(), null != e.linkmicUserSettings && Object.hasOwnProperty.call(e, "linkmicUserSettings") && l.webcast.data.AnchorLinkmicUserSettings.encode(e.linkmicUserSettings, t.uint32(50).fork()).ldelim(), null != e.battleUserSettings && Object.hasOwnProperty.call(e, "battleUserSettings") && l.webcast.data.BattleUserSettings.encode(e.battleUserSettings, t.uint32(58).fork()).ldelim(), null != e.videoShowScore && Object.hasOwnProperty.call(e, "videoShowScore") && t.uint32(64).int64(e.videoShowScore), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RivalExtraInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.text = e.string(); + break; + case 2: + r.textType = e.int32(); + break; + case 3: + r.label = e.string(); + break; + case 4: + r.anchorLayer = e.int32(); + break; + case 5: + r.linkerInfo = l.webcast.data.RivalExtraInfo.LinkerInfo.decode(e, e.uint32()); + break; + case 6: + r.linkmicUserSettings = l.webcast.data.AnchorLinkmicUserSettings.decode(e, e.uint32()); + break; + case 7: + r.battleUserSettings = l.webcast.data.BattleUserSettings.decode(e, e.uint32()); + break; + case 8: + r.videoShowScore = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.text && e.hasOwnProperty("text") && !a.isString(e.text)) return "text: string expected"; + if (null != e.textType && e.hasOwnProperty("textType")) switch (e.textType) + { + default: + return "textType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + } + if (null != e.label && e.hasOwnProperty("label") && !a.isString(e.label)) return "label: string expected"; + if (null != e.anchorLayer && e.hasOwnProperty("anchorLayer")) switch (e.anchorLayer) + { + default: + return "anchorLayer: enum value expected"; + case 0: + case 1: + case 2: + } + var t; + if (null != e.linkerInfo && e.hasOwnProperty("linkerInfo") && (t = l.webcast.data.RivalExtraInfo.LinkerInfo.verify(e.linkerInfo))) return "linkerInfo." + t; + if (null != e.linkmicUserSettings && e.hasOwnProperty("linkmicUserSettings") && (t = l.webcast.data.AnchorLinkmicUserSettings.verify(e.linkmicUserSettings))) return "linkmicUserSettings." + t; + if (null != e.battleUserSettings && e.hasOwnProperty("battleUserSettings") && (t = l.webcast.data.BattleUserSettings.verify(e.battleUserSettings))) return "battleUserSettings." + t; + return null != e.videoShowScore && e.hasOwnProperty("videoShowScore") && !(a.isInteger(e.videoShowScore) || e.videoShowScore && a.isInteger(e.videoShowScore.low) && a.isInteger(e.videoShowScore.high)) ? "videoShowScore: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RivalExtraInfo) return e; + var t = new l.webcast.data.RivalExtraInfo; + switch (null != e.text && (t.text = String(e.text)), e.textType) + { + case "TextTypeUnknown": + case 0: + t.textType = 0; + break; + case "CurRoomFanTicket": + case 1: + t.textType = 1; + break; + case "TotalDiamondCount": + case 2: + t.textType = 2; + break; + case "Distance": + case 3: + t.textType = 3; + break; + case "DistanceCity": + case 4: + t.textType = 4 + } + switch (null != e.label && (t.label = String(e.label)), e.anchorLayer) + { + case "AnchorLayerUnknown": + case 0: + t.anchorLayer = 0; + break; + case "AnchorLayerTop": + case 1: + t.anchorLayer = 1; + break; + case "AnchorLayerSMALL": + case 2: + t.anchorLayer = 2 + } + if (null != e.linkerInfo) + { + if ("object" != typeof e.linkerInfo) throw TypeError(".webcast.data.RivalExtraInfo.linkerInfo: object expected"); + t.linkerInfo = l.webcast.data.RivalExtraInfo.LinkerInfo.fromObject(e.linkerInfo) + } + if (null != e.linkmicUserSettings) + { + if ("object" != typeof e.linkmicUserSettings) throw TypeError(".webcast.data.RivalExtraInfo.linkmicUserSettings: object expected"); + t.linkmicUserSettings = l.webcast.data.AnchorLinkmicUserSettings.fromObject(e.linkmicUserSettings) + } + if (null != e.battleUserSettings) + { + if ("object" != typeof e.battleUserSettings) throw TypeError(".webcast.data.RivalExtraInfo.battleUserSettings: object expected"); + t.battleUserSettings = l.webcast.data.BattleUserSettings.fromObject(e.battleUserSettings) + } + return null != e.videoShowScore && (a.Long ? (t.videoShowScore = a.Long.fromValue(e.videoShowScore)).unsigned = !1 : "string" == typeof e.videoShowScore ? t.videoShowScore = parseInt(e.videoShowScore, 10) : "number" == typeof e.videoShowScore ? t.videoShowScore = e.videoShowScore : "object" == typeof e.videoShowScore && (t.videoShowScore = new a.LongBits(e.videoShowScore.low >>> 0, e.videoShowScore.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + if (n.text = "", n.textType = t.enums === String ? "TextTypeUnknown" : 0, n.label = "", n.anchorLayer = t.enums === String ? "AnchorLayerUnknown" : 0, n.linkerInfo = null, n.linkmicUserSettings = null, n.battleUserSettings = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.videoShowScore = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.videoShowScore = t.longs === String ? "0" : 0; + return null != e.text && e.hasOwnProperty("text") && (n.text = e.text), null != e.textType && e.hasOwnProperty("textType") && (n.textType = t.enums === String ? l.webcast.data.RivalExtraInfo.TextType[e.textType] : e.textType), null != e.label && e.hasOwnProperty("label") && (n.label = e.label), null != e.anchorLayer && e.hasOwnProperty("anchorLayer") && (n.anchorLayer = t.enums === String ? l.webcast.data.RivalExtraInfo.AnchorLayer[e.anchorLayer] : e.anchorLayer), null != e.linkerInfo && e.hasOwnProperty("linkerInfo") && (n.linkerInfo = l.webcast.data.RivalExtraInfo.LinkerInfo.toObject(e.linkerInfo, t)), null != e.linkmicUserSettings && e.hasOwnProperty("linkmicUserSettings") && (n.linkmicUserSettings = l.webcast.data.AnchorLinkmicUserSettings.toObject(e.linkmicUserSettings, t)), null != e.battleUserSettings && e.hasOwnProperty("battleUserSettings") && (n.battleUserSettings = l.webcast.data.BattleUserSettings.toObject(e.battleUserSettings, t)), null != e.videoShowScore && e.hasOwnProperty("videoShowScore") && ("number" == typeof e.videoShowScore ? n.videoShowScore = t.longs === String ? String(e.videoShowScore) : e.videoShowScore : n.videoShowScore = t.longs === String ? a.Long.prototype.toString.call(e.videoShowScore) : t.longs === Number ? new a.LongBits(e.videoShowScore.low >>> 0, e.videoShowScore.high >>> 0).toNumber() : e.videoShowScore), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.TextType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "TextTypeUnknown"] = 0, t[e[1] = "CurRoomFanTicket"] = 1, t[e[2] = "TotalDiamondCount"] = 2, t[e[3] = "Distance"] = 3, t[e[4] = "DistanceCity"] = 4, t + }(), e.AnchorLayer = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "AnchorLayerUnknown"] = 0, t[e[1] = "AnchorLayerTop"] = 1, t[e[2] = "AnchorLayerSMALL"] = 2, t + }(), e.LinkerInfo = function () + { + function e(e) + { + if (this.linkedUsers = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.linkedUsers = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.linkedUsers && e.linkedUsers.length) + for (var n = 0; n < e.linkedUsers.length; ++n) l.webcast.data.RivalExtraInfo.LinkerInfo.UserInfo.encode(e.linkedUsers[n], t.uint32(10).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RivalExtraInfo.LinkerInfo; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.linkedUsers && r.linkedUsers.length || (r.linkedUsers = []), r.linkedUsers.push(l.webcast.data.RivalExtraInfo.LinkerInfo.UserInfo.decode(e, e.uint32())); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.linkedUsers && e.hasOwnProperty("linkedUsers")) + { + if (!Array.isArray(e.linkedUsers)) return "linkedUsers: array expected"; + for (var t = 0; t < e.linkedUsers.length; ++t) + { + var n = l.webcast.data.RivalExtraInfo.LinkerInfo.UserInfo.verify(e.linkedUsers[t]); + if (n) return "linkedUsers." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RivalExtraInfo.LinkerInfo) return e; + var t = new l.webcast.data.RivalExtraInfo.LinkerInfo; + if (e.linkedUsers) + { + if (!Array.isArray(e.linkedUsers)) throw TypeError(".webcast.data.RivalExtraInfo.LinkerInfo.linkedUsers: array expected"); + t.linkedUsers = []; + for (var n = 0; n < e.linkedUsers.length; ++n) + { + if ("object" != typeof e.linkedUsers[n]) throw TypeError(".webcast.data.RivalExtraInfo.LinkerInfo.linkedUsers: object expected"); + t.linkedUsers[n] = l.webcast.data.RivalExtraInfo.LinkerInfo.UserInfo.fromObject(e.linkedUsers[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.linkedUsers = []), e.linkedUsers && e.linkedUsers.length) + { + n.linkedUsers = []; + for (var r = 0; r < e.linkedUsers.length; ++r) n.linkedUsers[r] = l.webcast.data.RivalExtraInfo.LinkerInfo.UserInfo.toObject(e.linkedUsers[r], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.UserInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.userId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.nickName = "", e.prototype.avatarThumb = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.userId && Object.hasOwnProperty.call(e, "userId") && t.uint32(8).int64(e.userId), null != e.nickName && Object.hasOwnProperty.call(e, "nickName") && t.uint32(18).string(e.nickName), null != e.avatarThumb && Object.hasOwnProperty.call(e, "avatarThumb") && l.webcast.data.Image.encode(e.avatarThumb, t.uint32(26).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RivalExtraInfo.LinkerInfo.UserInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.userId = e.int64(); + break; + case 2: + r.nickName = e.string(); + break; + case 3: + r.avatarThumb = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.userId && e.hasOwnProperty("userId") && !(a.isInteger(e.userId) || e.userId && a.isInteger(e.userId.low) && a.isInteger(e.userId.high))) return "userId: integer|Long expected"; + if (null != e.nickName && e.hasOwnProperty("nickName") && !a.isString(e.nickName)) return "nickName: string expected"; + if (null != e.avatarThumb && e.hasOwnProperty("avatarThumb")) + { + var t = l.webcast.data.Image.verify(e.avatarThumb); + if (t) return "avatarThumb." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RivalExtraInfo.LinkerInfo.UserInfo) return e; + var t = new l.webcast.data.RivalExtraInfo.LinkerInfo.UserInfo; + if (null != e.userId && (a.Long ? (t.userId = a.Long.fromValue(e.userId)).unsigned = !1 : "string" == typeof e.userId ? t.userId = parseInt(e.userId, 10) : "number" == typeof e.userId ? t.userId = e.userId : "object" == typeof e.userId && (t.userId = new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber())), null != e.nickName && (t.nickName = String(e.nickName)), null != e.avatarThumb) + { + if ("object" != typeof e.avatarThumb) throw TypeError(".webcast.data.RivalExtraInfo.LinkerInfo.UserInfo.avatarThumb: object expected"); + t.avatarThumb = l.webcast.data.Image.fromObject(e.avatarThumb) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.userId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.userId = t.longs === String ? "0" : 0; + n.nickName = "", n.avatarThumb = null + } + return null != e.userId && e.hasOwnProperty("userId") && ("number" == typeof e.userId ? n.userId = t.longs === String ? String(e.userId) : e.userId : n.userId = t.longs === String ? a.Long.prototype.toString.call(e.userId) : t.longs === Number ? new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber() : e.userId), null != e.nickName && e.hasOwnProperty("nickName") && (n.nickName = e.nickName), null != e.avatarThumb && e.hasOwnProperty("avatarThumb") && (n.avatarThumb = l.webcast.data.Image.toObject(e.avatarThumb, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e + }(), e.LinkmicPlayMode = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "LinkmicPlayMode_Unknown"] = 0, t[e[1] = "LinkmicPlayMode_VideoFriend"] = 1, t[e[2] = "LinkmicPlayMode_VideoChatFloatWindowLayout"] = 2, t[e[3] = "linkmicPlayMode_MultiPK"] = 3, t[e[4] = "LinkmicPlayMode_DynamicLayout"] = 4, t[e[5] = "LinkmicPlayMode_GuestBattle"] = 5, t[e[24] = "LinkmicPlayMode_AudioChat_1_PLUS_8"] = 24, t[e[25] = "LinkmicPlayMode_AudioChat_3x3_ONE_ENMPTY"] = 25, t[e[26] = "LinkmicPlayMode_AudioChat_3x3_N_EMPTY"] = 26, t + }(), e.VIPStatus = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "VIPStatus_Unknown"] = 0, t[e[1] = "Renewing"] = 1, t[e[2] = "RenewSuccess"] = 2, t[e[3] = "Protective"] = 3, t + }(), e.VIPPrivilegeDefinition = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "VIPPrivilegeDefinition_Unknown"] = 0, t[e[1] = "VideoBadge"] = 1, t[e[201] = "LiveBadge"] = 201, t[e[202] = "RoomNotify"] = 202, t[e[203] = "VIPSeat"] = 203, t[e[204] = "VIPRank"] = 204, t[e[205] = "ExclusiveVIPGift"] = 205, t[e[206] = "EnterEffect"] = 206, t[e[207] = "LiveCommentShading"] = 207, t[e[208] = "ExclusiveCustomerService"] = 208, t[e[209] = "AllRoomNotify"] = 209, t[e[210] = "PreventKickOff"] = 210, t + }(), e.VIPBadgeType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "VIPBadgeType_Unknown"] = 0, t[e[1] = "VIPDefault"] = 1, t[e[2] = "RankBigBadge"] = 2, t + }(), e.VIPBadge = function () + { + function e(e) + { + if (this.icons = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.icons = a.emptyObject, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.icons && Object.hasOwnProperty.call(e, "icons")) + for (var n = Object.keys(e.icons), r = 0; r < n.length; ++r) t.uint32(10).fork().uint32(8).int64(n[r]), l.webcast.data.Image.encode(e.icons[n[r]], t.uint32(18).fork()).ldelim().ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.VIPBadge; e.pos < i;) + { + var c = e.uint32(); + if (c >>> 3 == 1) + { + s.icons === a.emptyObject && (s.icons = {}); + var u = e.uint32() + e.pos; + for (n = 0, r = null; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.int64(); + break; + case 2: + r = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & p) + } + } + s.icons["object" == typeof n ? a.longToHash(n) : n] = r + } + else e.skipType(7 & c) + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.icons && e.hasOwnProperty("icons")) + { + if (!a.isObject(e.icons)) return "icons: object expected"; + for (var t = Object.keys(e.icons), n = 0; n < t.length; ++n) + { + if (!a.key64Re.test(t[n])) return "icons: integer|Long key{k:int64} expected"; + var r = l.webcast.data.Image.verify(e.icons[t[n]]); + if (r) return "icons." + r + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.VIPBadge) return e; + var t = new l.webcast.data.VIPBadge; + if (e.icons) + { + if ("object" != typeof e.icons) throw TypeError(".webcast.data.VIPBadge.icons: object expected"); + t.icons = {}; + for (var n = Object.keys(e.icons), r = 0; r < n.length; ++r) + { + if ("object" != typeof e.icons[n[r]]) throw TypeError(".webcast.data.VIPBadge.icons: object expected"); + t.icons[n[r]] = l.webcast.data.Image.fromObject(e.icons[n[r]]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.icons = {}), e.icons && (n = Object.keys(e.icons)).length) + { + r.icons = {}; + for (var o = 0; o < n.length; ++o) r.icons[n[o]] = l.webcast.data.Image.toObject(e.icons[n[o]], t) + } + return r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.UserVIPInfo = function () + { + function e(e) + { + if (this.privileges = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.vipLevel = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.vipLevelName = "", e.prototype.status = 0, e.prototype.startTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.endTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.remainingDays = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.totalConsume = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.targetConsume = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.badge = null, e.prototype.privileges = a.emptyObject, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.vipLevel && Object.hasOwnProperty.call(e, "vipLevel") && t.uint32(8).int64(e.vipLevel), null != e.vipLevelName && Object.hasOwnProperty.call(e, "vipLevelName") && t.uint32(18).string(e.vipLevelName), null != e.status && Object.hasOwnProperty.call(e, "status") && t.uint32(24).int32(e.status), null != e.startTime && Object.hasOwnProperty.call(e, "startTime") && t.uint32(32).int64(e.startTime), null != e.endTime && Object.hasOwnProperty.call(e, "endTime") && t.uint32(40).int64(e.endTime), null != e.remainingDays && Object.hasOwnProperty.call(e, "remainingDays") && t.uint32(48).int64(e.remainingDays), null != e.totalConsume && Object.hasOwnProperty.call(e, "totalConsume") && t.uint32(56).int64(e.totalConsume), null != e.targetConsume && Object.hasOwnProperty.call(e, "targetConsume") && t.uint32(64).int64(e.targetConsume), null != e.badge && Object.hasOwnProperty.call(e, "badge") && l.webcast.data.VIPBadge.encode(e.badge, t.uint32(74).fork()).ldelim(), null != e.privileges && Object.hasOwnProperty.call(e, "privileges")) + for (var n = Object.keys(e.privileges), r = 0; r < n.length; ++r) t.uint32(82).fork().uint32(8).int64(n[r]).uint32(16).bool(e.privileges[n[r]]).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.UserVIPInfo; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.vipLevel = e.int64(); + break; + case 2: + s.vipLevelName = e.string(); + break; + case 3: + s.status = e.int32(); + break; + case 4: + s.startTime = e.int64(); + break; + case 5: + s.endTime = e.int64(); + break; + case 6: + s.remainingDays = e.int64(); + break; + case 7: + s.totalConsume = e.int64(); + break; + case 8: + s.targetConsume = e.int64(); + break; + case 9: + s.badge = l.webcast.data.VIPBadge.decode(e, e.uint32()); + break; + case 10: + s.privileges === a.emptyObject && (s.privileges = {}); + var u = e.uint32() + e.pos; + for (n = 0, r = !1; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.int64(); + break; + case 2: + r = e.bool(); + break; + default: + e.skipType(7 & p) + } + } + s.privileges["object" == typeof n ? a.longToHash(n) : n] = r; + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.vipLevel && e.hasOwnProperty("vipLevel") && !(a.isInteger(e.vipLevel) || e.vipLevel && a.isInteger(e.vipLevel.low) && a.isInteger(e.vipLevel.high))) return "vipLevel: integer|Long expected"; + if (null != e.vipLevelName && e.hasOwnProperty("vipLevelName") && !a.isString(e.vipLevelName)) return "vipLevelName: string expected"; + if (null != e.status && e.hasOwnProperty("status")) switch (e.status) + { + default: + return "status: enum value expected"; + case 0: + case 1: + case 2: + case 3: + } + if (null != e.startTime && e.hasOwnProperty("startTime") && !(a.isInteger(e.startTime) || e.startTime && a.isInteger(e.startTime.low) && a.isInteger(e.startTime.high))) return "startTime: integer|Long expected"; + if (null != e.endTime && e.hasOwnProperty("endTime") && !(a.isInteger(e.endTime) || e.endTime && a.isInteger(e.endTime.low) && a.isInteger(e.endTime.high))) return "endTime: integer|Long expected"; + if (null != e.remainingDays && e.hasOwnProperty("remainingDays") && !(a.isInteger(e.remainingDays) || e.remainingDays && a.isInteger(e.remainingDays.low) && a.isInteger(e.remainingDays.high))) return "remainingDays: integer|Long expected"; + if (null != e.totalConsume && e.hasOwnProperty("totalConsume") && !(a.isInteger(e.totalConsume) || e.totalConsume && a.isInteger(e.totalConsume.low) && a.isInteger(e.totalConsume.high))) return "totalConsume: integer|Long expected"; + if (null != e.targetConsume && e.hasOwnProperty("targetConsume") && !(a.isInteger(e.targetConsume) || e.targetConsume && a.isInteger(e.targetConsume.low) && a.isInteger(e.targetConsume.high))) return "targetConsume: integer|Long expected"; + if (null != e.badge && e.hasOwnProperty("badge")) + { + var t = l.webcast.data.VIPBadge.verify(e.badge); + if (t) return "badge." + t + } + if (null != e.privileges && e.hasOwnProperty("privileges")) + { + if (!a.isObject(e.privileges)) return "privileges: object expected"; + for (var n = Object.keys(e.privileges), r = 0; r < n.length; ++r) + { + if (!a.key64Re.test(n[r])) return "privileges: integer|Long key{k:int64} expected"; + if ("boolean" != typeof e.privileges[n[r]]) return "privileges: boolean{k:int64} expected" + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.UserVIPInfo) return e; + var t = new l.webcast.data.UserVIPInfo; + switch (null != e.vipLevel && (a.Long ? (t.vipLevel = a.Long.fromValue(e.vipLevel)).unsigned = !1 : "string" == typeof e.vipLevel ? t.vipLevel = parseInt(e.vipLevel, 10) : "number" == typeof e.vipLevel ? t.vipLevel = e.vipLevel : "object" == typeof e.vipLevel && (t.vipLevel = new a.LongBits(e.vipLevel.low >>> 0, e.vipLevel.high >>> 0).toNumber())), null != e.vipLevelName && (t.vipLevelName = String(e.vipLevelName)), e.status) + { + case "VIPStatus_Unknown": + case 0: + t.status = 0; + break; + case "Renewing": + case 1: + t.status = 1; + break; + case "RenewSuccess": + case 2: + t.status = 2; + break; + case "Protective": + case 3: + t.status = 3 + } + if (null != e.startTime && (a.Long ? (t.startTime = a.Long.fromValue(e.startTime)).unsigned = !1 : "string" == typeof e.startTime ? t.startTime = parseInt(e.startTime, 10) : "number" == typeof e.startTime ? t.startTime = e.startTime : "object" == typeof e.startTime && (t.startTime = new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber())), null != e.endTime && (a.Long ? (t.endTime = a.Long.fromValue(e.endTime)).unsigned = !1 : "string" == typeof e.endTime ? t.endTime = parseInt(e.endTime, 10) : "number" == typeof e.endTime ? t.endTime = e.endTime : "object" == typeof e.endTime && (t.endTime = new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber())), null != e.remainingDays && (a.Long ? (t.remainingDays = a.Long.fromValue(e.remainingDays)).unsigned = !1 : "string" == typeof e.remainingDays ? t.remainingDays = parseInt(e.remainingDays, 10) : "number" == typeof e.remainingDays ? t.remainingDays = e.remainingDays : "object" == typeof e.remainingDays && (t.remainingDays = new a.LongBits(e.remainingDays.low >>> 0, e.remainingDays.high >>> 0).toNumber())), null != e.totalConsume && (a.Long ? (t.totalConsume = a.Long.fromValue(e.totalConsume)).unsigned = !1 : "string" == typeof e.totalConsume ? t.totalConsume = parseInt(e.totalConsume, 10) : "number" == typeof e.totalConsume ? t.totalConsume = e.totalConsume : "object" == typeof e.totalConsume && (t.totalConsume = new a.LongBits(e.totalConsume.low >>> 0, e.totalConsume.high >>> 0).toNumber())), null != e.targetConsume && (a.Long ? (t.targetConsume = a.Long.fromValue(e.targetConsume)).unsigned = !1 : "string" == typeof e.targetConsume ? t.targetConsume = parseInt(e.targetConsume, 10) : "number" == typeof e.targetConsume ? t.targetConsume = e.targetConsume : "object" == typeof e.targetConsume && (t.targetConsume = new a.LongBits(e.targetConsume.low >>> 0, e.targetConsume.high >>> 0).toNumber())), null != e.badge) + { + if ("object" != typeof e.badge) throw TypeError(".webcast.data.UserVIPInfo.badge: object expected"); + t.badge = l.webcast.data.VIPBadge.fromObject(e.badge) + } + if (e.privileges) + { + if ("object" != typeof e.privileges) throw TypeError(".webcast.data.UserVIPInfo.privileges: object expected"); + t.privileges = {}; + for (var n = Object.keys(e.privileges), r = 0; r < n.length; ++r) t.privileges[n[r]] = Boolean(e.privileges[n[r]]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.privileges = {}), t.defaults) + { + if (a.Long) + { + var o = new a.Long(0, 0, !1); + r.vipLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.vipLevel = t.longs === String ? "0" : 0; + if (r.vipLevelName = "", r.status = t.enums === String ? "VIPStatus_Unknown" : 0, a.Long) + { + o = new a.Long(0, 0, !1); + r.startTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.startTime = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.endTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.endTime = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.remainingDays = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.remainingDays = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.totalConsume = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.totalConsume = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.targetConsume = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.targetConsume = t.longs === String ? "0" : 0; + r.badge = null + } + if (null != e.vipLevel && e.hasOwnProperty("vipLevel") && ("number" == typeof e.vipLevel ? r.vipLevel = t.longs === String ? String(e.vipLevel) : e.vipLevel : r.vipLevel = t.longs === String ? a.Long.prototype.toString.call(e.vipLevel) : t.longs === Number ? new a.LongBits(e.vipLevel.low >>> 0, e.vipLevel.high >>> 0).toNumber() : e.vipLevel), null != e.vipLevelName && e.hasOwnProperty("vipLevelName") && (r.vipLevelName = e.vipLevelName), null != e.status && e.hasOwnProperty("status") && (r.status = t.enums === String ? l.webcast.data.VIPStatus[e.status] : e.status), null != e.startTime && e.hasOwnProperty("startTime") && ("number" == typeof e.startTime ? r.startTime = t.longs === String ? String(e.startTime) : e.startTime : r.startTime = t.longs === String ? a.Long.prototype.toString.call(e.startTime) : t.longs === Number ? new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber() : e.startTime), null != e.endTime && e.hasOwnProperty("endTime") && ("number" == typeof e.endTime ? r.endTime = t.longs === String ? String(e.endTime) : e.endTime : r.endTime = t.longs === String ? a.Long.prototype.toString.call(e.endTime) : t.longs === Number ? new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber() : e.endTime), null != e.remainingDays && e.hasOwnProperty("remainingDays") && ("number" == typeof e.remainingDays ? r.remainingDays = t.longs === String ? String(e.remainingDays) : e.remainingDays : r.remainingDays = t.longs === String ? a.Long.prototype.toString.call(e.remainingDays) : t.longs === Number ? new a.LongBits(e.remainingDays.low >>> 0, e.remainingDays.high >>> 0).toNumber() : e.remainingDays), null != e.totalConsume && e.hasOwnProperty("totalConsume") && ("number" == typeof e.totalConsume ? r.totalConsume = t.longs === String ? String(e.totalConsume) : e.totalConsume : r.totalConsume = t.longs === String ? a.Long.prototype.toString.call(e.totalConsume) : t.longs === Number ? new a.LongBits(e.totalConsume.low >>> 0, e.totalConsume.high >>> 0).toNumber() : e.totalConsume), null != e.targetConsume && e.hasOwnProperty("targetConsume") && ("number" == typeof e.targetConsume ? r.targetConsume = t.longs === String ? String(e.targetConsume) : e.targetConsume : r.targetConsume = t.longs === String ? a.Long.prototype.toString.call(e.targetConsume) : t.longs === Number ? new a.LongBits(e.targetConsume.low >>> 0, e.targetConsume.high >>> 0).toNumber() : e.targetConsume), null != e.badge && e.hasOwnProperty("badge") && (r.badge = l.webcast.data.VIPBadge.toObject(e.badge, t)), e.privileges && (n = Object.keys(e.privileges)).length) + { + r.privileges = {}; + for (var i = 0; i < n.length; ++i) r.privileges[n[i]] = e.privileges[n[i]] + } + return r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.VIPOpenInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.openPrice = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.renewPrice = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.openPrice && Object.hasOwnProperty.call(e, "openPrice") && t.uint32(8).int64(e.openPrice), null != e.renewPrice && Object.hasOwnProperty.call(e, "renewPrice") && t.uint32(16).int64(e.renewPrice), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.VIPOpenInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.openPrice = e.int64(); + break; + case 2: + r.renewPrice = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.openPrice && e.hasOwnProperty("openPrice") && !(a.isInteger(e.openPrice) || e.openPrice && a.isInteger(e.openPrice.low) && a.isInteger(e.openPrice.high)) ? "openPrice: integer|Long expected" : null != e.renewPrice && e.hasOwnProperty("renewPrice") && !(a.isInteger(e.renewPrice) || e.renewPrice && a.isInteger(e.renewPrice.low) && a.isInteger(e.renewPrice.high)) ? "renewPrice: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.VIPOpenInfo) return e; + var t = new l.webcast.data.VIPOpenInfo; + return null != e.openPrice && (a.Long ? (t.openPrice = a.Long.fromValue(e.openPrice)).unsigned = !1 : "string" == typeof e.openPrice ? t.openPrice = parseInt(e.openPrice, 10) : "number" == typeof e.openPrice ? t.openPrice = e.openPrice : "object" == typeof e.openPrice && (t.openPrice = new a.LongBits(e.openPrice.low >>> 0, e.openPrice.high >>> 0).toNumber())), null != e.renewPrice && (a.Long ? (t.renewPrice = a.Long.fromValue(e.renewPrice)).unsigned = !1 : "string" == typeof e.renewPrice ? t.renewPrice = parseInt(e.renewPrice, 10) : "number" == typeof e.renewPrice ? t.renewPrice = e.renewPrice : "object" == typeof e.renewPrice && (t.renewPrice = new a.LongBits(e.renewPrice.low >>> 0, e.renewPrice.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.openPrice = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.openPrice = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.renewPrice = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.renewPrice = t.longs === String ? "0" : 0 + } + return null != e.openPrice && e.hasOwnProperty("openPrice") && ("number" == typeof e.openPrice ? n.openPrice = t.longs === String ? String(e.openPrice) : e.openPrice : n.openPrice = t.longs === String ? a.Long.prototype.toString.call(e.openPrice) : t.longs === Number ? new a.LongBits(e.openPrice.low >>> 0, e.openPrice.high >>> 0).toNumber() : e.openPrice), null != e.renewPrice && e.hasOwnProperty("renewPrice") && ("number" == typeof e.renewPrice ? n.renewPrice = t.longs === String ? String(e.renewPrice) : e.renewPrice : n.renewPrice = t.longs === String ? a.Long.prototype.toString.call(e.renewPrice) : t.longs === Number ? new a.LongBits(e.renewPrice.low >>> 0, e.renewPrice.high >>> 0).toNumber() : e.renewPrice), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.AdminPrivilege = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "UnknowPrivilege"] = 0, t[e[1] = "Unknow2Privilege"] = 1, t[e[2] = "PromptPrivilege"] = 2, t[e[3] = "FactionPrivilege"] = 3, t[e[4] = "WordPrivilege"] = 4, t[e[5] = "SliencePrivilege"] = 5, t[e[6] = "BlockPrivilege"] = 6, t[e[7] = "LinkMicPrivilege"] = 7, t[e[8] = "VotePrivilege"] = 8, t[e[9] = "WishPrivilege"] = 9, t[e[10] = "LittleGamePrivilege"] = 10, t[e[11] = "ScreenChatPrivilege"] = 11, t[e[12] = "CommentOnWallPrivilege"] = 12, t[e[13] = "AdminDanmakuPrivilege"] = 13, t + }(), e.GradeBuffStatus = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "GradeBuffStatusUnknown"] = 0, t[e[1] = "GradeBuffStatusActive"] = 1, t[e[2] = "GradeBuffStatusExpired"] = 2, t + }(), e.GradeBuffStatsType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "BuffStatsTypeUnknown"] = 0, t[e[1] = "PayGradeScoreTotal"] = 1, t[e[2] = "PKScoreCurrentCycle"] = 2, t[e[3] = "RankScoreCurrentCycle"] = 3, t + }(), e.GradeBuffInfo = function () + { + function e(e) + { + if (this.statsInfo = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.buffLevel = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.status = 0, e.prototype.endTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.statsInfo = a.emptyObject, e.prototype.buffBadge = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.buffLevel && Object.hasOwnProperty.call(e, "buffLevel") && t.uint32(8).int64(e.buffLevel), null != e.status && Object.hasOwnProperty.call(e, "status") && t.uint32(16).int32(e.status), null != e.endTime && Object.hasOwnProperty.call(e, "endTime") && t.uint32(24).int64(e.endTime), null != e.statsInfo && Object.hasOwnProperty.call(e, "statsInfo")) + for (var n = Object.keys(e.statsInfo), r = 0; r < n.length; ++r) t.uint32(34).fork().uint32(8).int64(n[r]).uint32(16).int64(e.statsInfo[n[r]]).ldelim(); + return null != e.buffBadge && Object.hasOwnProperty.call(e, "buffBadge") && l.webcast.data.Image.encode(e.buffBadge, t.uint32(42).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.GradeBuffInfo; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.buffLevel = e.int64(); + break; + case 2: + s.status = e.int32(); + break; + case 3: + s.endTime = e.int64(); + break; + case 4: + s.statsInfo === a.emptyObject && (s.statsInfo = {}); + var u = e.uint32() + e.pos; + for (n = 0, r = 0; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.int64(); + break; + case 2: + r = e.int64(); + break; + default: + e.skipType(7 & p) + } + } + s.statsInfo["object" == typeof n ? a.longToHash(n) : n] = r; + break; + case 5: + s.buffBadge = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.buffLevel && e.hasOwnProperty("buffLevel") && !(a.isInteger(e.buffLevel) || e.buffLevel && a.isInteger(e.buffLevel.low) && a.isInteger(e.buffLevel.high))) return "buffLevel: integer|Long expected"; + if (null != e.status && e.hasOwnProperty("status")) switch (e.status) + { + default: + return "status: enum value expected"; + case 0: + case 1: + case 2: + } + if (null != e.endTime && e.hasOwnProperty("endTime") && !(a.isInteger(e.endTime) || e.endTime && a.isInteger(e.endTime.low) && a.isInteger(e.endTime.high))) return "endTime: integer|Long expected"; + if (null != e.statsInfo && e.hasOwnProperty("statsInfo")) + { + if (!a.isObject(e.statsInfo)) return "statsInfo: object expected"; + for (var t = Object.keys(e.statsInfo), n = 0; n < t.length; ++n) + { + if (!a.key64Re.test(t[n])) return "statsInfo: integer|Long key{k:int64} expected"; + if (!(a.isInteger(e.statsInfo[t[n]]) || e.statsInfo[t[n]] && a.isInteger(e.statsInfo[t[n]].low) && a.isInteger(e.statsInfo[t[n]].high))) return "statsInfo: integer|Long{k:int64} expected" + } + } + if (null != e.buffBadge && e.hasOwnProperty("buffBadge")) + { + var r = l.webcast.data.Image.verify(e.buffBadge); + if (r) return "buffBadge." + r + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GradeBuffInfo) return e; + var t = new l.webcast.data.GradeBuffInfo; + switch (null != e.buffLevel && (a.Long ? (t.buffLevel = a.Long.fromValue(e.buffLevel)).unsigned = !1 : "string" == typeof e.buffLevel ? t.buffLevel = parseInt(e.buffLevel, 10) : "number" == typeof e.buffLevel ? t.buffLevel = e.buffLevel : "object" == typeof e.buffLevel && (t.buffLevel = new a.LongBits(e.buffLevel.low >>> 0, e.buffLevel.high >>> 0).toNumber())), e.status) + { + case "GradeBuffStatusUnknown": + case 0: + t.status = 0; + break; + case "GradeBuffStatusActive": + case 1: + t.status = 1; + break; + case "GradeBuffStatusExpired": + case 2: + t.status = 2 + } + if (null != e.endTime && (a.Long ? (t.endTime = a.Long.fromValue(e.endTime)).unsigned = !1 : "string" == typeof e.endTime ? t.endTime = parseInt(e.endTime, 10) : "number" == typeof e.endTime ? t.endTime = e.endTime : "object" == typeof e.endTime && (t.endTime = new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber())), e.statsInfo) + { + if ("object" != typeof e.statsInfo) throw TypeError(".webcast.data.GradeBuffInfo.statsInfo: object expected"); + t.statsInfo = {}; + for (var n = Object.keys(e.statsInfo), r = 0; r < n.length; ++r) a.Long ? (t.statsInfo[n[r]] = a.Long.fromValue(e.statsInfo[n[r]])).unsigned = !1 : "string" == typeof e.statsInfo[n[r]] ? t.statsInfo[n[r]] = parseInt(e.statsInfo[n[r]], 10) : "number" == typeof e.statsInfo[n[r]] ? t.statsInfo[n[r]] = e.statsInfo[n[r]] : "object" == typeof e.statsInfo[n[r]] && (t.statsInfo[n[r]] = new a.LongBits(e.statsInfo[n[r]].low >>> 0, e.statsInfo[n[r]].high >>> 0).toNumber()) + } + if (null != e.buffBadge) + { + if ("object" != typeof e.buffBadge) throw TypeError(".webcast.data.GradeBuffInfo.buffBadge: object expected"); + t.buffBadge = l.webcast.data.Image.fromObject(e.buffBadge) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.statsInfo = {}), t.defaults) + { + if (a.Long) + { + var o = new a.Long(0, 0, !1); + r.buffLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.buffLevel = t.longs === String ? "0" : 0; + if (r.status = t.enums === String ? "GradeBuffStatusUnknown" : 0, a.Long) + { + o = new a.Long(0, 0, !1); + r.endTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.endTime = t.longs === String ? "0" : 0; + r.buffBadge = null + } + if (null != e.buffLevel && e.hasOwnProperty("buffLevel") && ("number" == typeof e.buffLevel ? r.buffLevel = t.longs === String ? String(e.buffLevel) : e.buffLevel : r.buffLevel = t.longs === String ? a.Long.prototype.toString.call(e.buffLevel) : t.longs === Number ? new a.LongBits(e.buffLevel.low >>> 0, e.buffLevel.high >>> 0).toNumber() : e.buffLevel), null != e.status && e.hasOwnProperty("status") && (r.status = t.enums === String ? l.webcast.data.GradeBuffStatus[e.status] : e.status), null != e.endTime && e.hasOwnProperty("endTime") && ("number" == typeof e.endTime ? r.endTime = t.longs === String ? String(e.endTime) : e.endTime : r.endTime = t.longs === String ? a.Long.prototype.toString.call(e.endTime) : t.longs === Number ? new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber() : e.endTime), e.statsInfo && (n = Object.keys(e.statsInfo)).length) + { + r.statsInfo = {}; + for (var i = 0; i < n.length; ++i) "number" == typeof e.statsInfo[n[i]] ? r.statsInfo[n[i]] = t.longs === String ? String(e.statsInfo[n[i]]) : e.statsInfo[n[i]] : r.statsInfo[n[i]] = t.longs === String ? a.Long.prototype.toString.call(e.statsInfo[n[i]]) : t.longs === Number ? new a.LongBits(e.statsInfo[n[i]].low >>> 0, e.statsInfo[n[i]].high >>> 0).toNumber() : e.statsInfo[n[i]] + } + return null != e.buffBadge && e.hasOwnProperty("buffBadge") && (r.buffBadge = l.webcast.data.Image.toObject(e.buffBadge, t)), r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.RoomSwitch = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "UndefinedSwitch"] = 0, t[e[1] = "OpenSwitch"] = 1, t[e[2] = "CloseSwitch"] = 2, t + }(), e.GameExtra = function () + { + function e(e) + { + if (this.data = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.kind = 0, e.prototype.status = 0, e.prototype.gameId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.giftLimit = 0, e.prototype.roundId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.gameKind = 0, e.prototype.chat = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.loader = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.reload = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.data = a.emptyObject, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.kind && Object.hasOwnProperty.call(e, "kind") && t.uint32(8).int32(e.kind), null != e.status && Object.hasOwnProperty.call(e, "status") && t.uint32(16).int32(e.status), null != e.gameId && Object.hasOwnProperty.call(e, "gameId") && t.uint32(24).int64(e.gameId), null != e.giftLimit && Object.hasOwnProperty.call(e, "giftLimit") && t.uint32(32).int32(e.giftLimit), null != e.roundId && Object.hasOwnProperty.call(e, "roundId") && t.uint32(40).int64(e.roundId), null != e.gameKind && Object.hasOwnProperty.call(e, "gameKind") && t.uint32(48).int32(e.gameKind), null != e.chat && Object.hasOwnProperty.call(e, "chat") && t.uint32(56).int64(e.chat), null != e.loader && Object.hasOwnProperty.call(e, "loader") && t.uint32(64).int64(e.loader), null != e.reload && Object.hasOwnProperty.call(e, "reload") && t.uint32(72).int64(e.reload), null != e.data && Object.hasOwnProperty.call(e, "data")) + for (var n = Object.keys(e.data), r = 0; r < n.length; ++r) t.uint32(82).fork().uint32(10).string(n[r]).uint32(18).string(e.data[n[r]]).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.GameExtra; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.kind = e.int32(); + break; + case 2: + s.status = e.int32(); + break; + case 3: + s.gameId = e.int64(); + break; + case 4: + s.giftLimit = e.int32(); + break; + case 5: + s.roundId = e.int64(); + break; + case 6: + s.gameKind = e.int32(); + break; + case 7: + s.chat = e.int64(); + break; + case 8: + s.loader = e.int64(); + break; + case 9: + s.reload = e.int64(); + break; + case 10: + s.data === a.emptyObject && (s.data = {}); + var u = e.uint32() + e.pos; + for (n = "", r = ""; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.data[n] = r; + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.kind && e.hasOwnProperty("kind") && !a.isInteger(e.kind)) return "kind: integer expected"; + if (null != e.status && e.hasOwnProperty("status") && !a.isInteger(e.status)) return "status: integer expected"; + if (null != e.gameId && e.hasOwnProperty("gameId") && !(a.isInteger(e.gameId) || e.gameId && a.isInteger(e.gameId.low) && a.isInteger(e.gameId.high))) return "gameId: integer|Long expected"; + if (null != e.giftLimit && e.hasOwnProperty("giftLimit") && !a.isInteger(e.giftLimit)) return "giftLimit: integer expected"; + if (null != e.roundId && e.hasOwnProperty("roundId") && !(a.isInteger(e.roundId) || e.roundId && a.isInteger(e.roundId.low) && a.isInteger(e.roundId.high))) return "roundId: integer|Long expected"; + if (null != e.gameKind && e.hasOwnProperty("gameKind")) switch (e.gameKind) + { + default: + return "gameKind: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + } + if (null != e.chat && e.hasOwnProperty("chat") && !(a.isInteger(e.chat) || e.chat && a.isInteger(e.chat.low) && a.isInteger(e.chat.high))) return "chat: integer|Long expected"; + if (null != e.loader && e.hasOwnProperty("loader") && !(a.isInteger(e.loader) || e.loader && a.isInteger(e.loader.low) && a.isInteger(e.loader.high))) return "loader: integer|Long expected"; + if (null != e.reload && e.hasOwnProperty("reload") && !(a.isInteger(e.reload) || e.reload && a.isInteger(e.reload.low) && a.isInteger(e.reload.high))) return "reload: integer|Long expected"; + if (null != e.data && e.hasOwnProperty("data")) + { + if (!a.isObject(e.data)) return "data: object expected"; + for (var t = Object.keys(e.data), n = 0; n < t.length; ++n) + if (!a.isString(e.data[t[n]])) return "data: string{k:string} expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GameExtra) return e; + var t = new l.webcast.data.GameExtra; + switch (null != e.kind && (t.kind = 0 | e.kind), null != e.status && (t.status = 0 | e.status), null != e.gameId && (a.Long ? (t.gameId = a.Long.fromValue(e.gameId)).unsigned = !1 : "string" == typeof e.gameId ? t.gameId = parseInt(e.gameId, 10) : "number" == typeof e.gameId ? t.gameId = e.gameId : "object" == typeof e.gameId && (t.gameId = new a.LongBits(e.gameId.low >>> 0, e.gameId.high >>> 0).toNumber())), null != e.giftLimit && (t.giftLimit = 0 | e.giftLimit), null != e.roundId && (a.Long ? (t.roundId = a.Long.fromValue(e.roundId)).unsigned = !1 : "string" == typeof e.roundId ? t.roundId = parseInt(e.roundId, 10) : "number" == typeof e.roundId ? t.roundId = e.roundId : "object" == typeof e.roundId && (t.roundId = new a.LongBits(e.roundId.low >>> 0, e.roundId.high >>> 0).toNumber())), e.gameKind) + { + case "GameKindUnknown": + case 0: + t.gameKind = 0; + break; + case "Effect": + case 1: + t.gameKind = 1; + break; + case "Wmini": + case 2: + t.gameKind = 2; + break; + case "Wgamex": + case 3: + t.gameKind = 3; + break; + case "Cloud": + case 4: + t.gameKind = 4 + } + if (null != e.chat && (a.Long ? (t.chat = a.Long.fromValue(e.chat)).unsigned = !1 : "string" == typeof e.chat ? t.chat = parseInt(e.chat, 10) : "number" == typeof e.chat ? t.chat = e.chat : "object" == typeof e.chat && (t.chat = new a.LongBits(e.chat.low >>> 0, e.chat.high >>> 0).toNumber())), null != e.loader && (a.Long ? (t.loader = a.Long.fromValue(e.loader)).unsigned = !1 : "string" == typeof e.loader ? t.loader = parseInt(e.loader, 10) : "number" == typeof e.loader ? t.loader = e.loader : "object" == typeof e.loader && (t.loader = new a.LongBits(e.loader.low >>> 0, e.loader.high >>> 0).toNumber())), null != e.reload && (a.Long ? (t.reload = a.Long.fromValue(e.reload)).unsigned = !1 : "string" == typeof e.reload ? t.reload = parseInt(e.reload, 10) : "number" == typeof e.reload ? t.reload = e.reload : "object" == typeof e.reload && (t.reload = new a.LongBits(e.reload.low >>> 0, e.reload.high >>> 0).toNumber())), e.data) + { + if ("object" != typeof e.data) throw TypeError(".webcast.data.GameExtra.data: object expected"); + t.data = {}; + for (var n = Object.keys(e.data), r = 0; r < n.length; ++r) t.data[n[r]] = String(e.data[n[r]]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.data = {}), t.defaults) + { + if (r.kind = 0, r.status = 0, a.Long) + { + var o = new a.Long(0, 0, !1); + r.gameId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.gameId = t.longs === String ? "0" : 0; + if (r.giftLimit = 0, a.Long) + { + o = new a.Long(0, 0, !1); + r.roundId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.roundId = t.longs === String ? "0" : 0; + if (r.gameKind = t.enums === String ? "GameKindUnknown" : 0, a.Long) + { + o = new a.Long(0, 0, !1); + r.chat = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.chat = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.loader = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.loader = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.reload = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.reload = t.longs === String ? "0" : 0 + } + if (null != e.kind && e.hasOwnProperty("kind") && (r.kind = e.kind), null != e.status && e.hasOwnProperty("status") && (r.status = e.status), null != e.gameId && e.hasOwnProperty("gameId") && ("number" == typeof e.gameId ? r.gameId = t.longs === String ? String(e.gameId) : e.gameId : r.gameId = t.longs === String ? a.Long.prototype.toString.call(e.gameId) : t.longs === Number ? new a.LongBits(e.gameId.low >>> 0, e.gameId.high >>> 0).toNumber() : e.gameId), null != e.giftLimit && e.hasOwnProperty("giftLimit") && (r.giftLimit = e.giftLimit), null != e.roundId && e.hasOwnProperty("roundId") && ("number" == typeof e.roundId ? r.roundId = t.longs === String ? String(e.roundId) : e.roundId : r.roundId = t.longs === String ? a.Long.prototype.toString.call(e.roundId) : t.longs === Number ? new a.LongBits(e.roundId.low >>> 0, e.roundId.high >>> 0).toNumber() : e.roundId), null != e.gameKind && e.hasOwnProperty("gameKind") && (r.gameKind = t.enums === String ? l.webcast.data.GameKind[e.gameKind] : e.gameKind), null != e.chat && e.hasOwnProperty("chat") && ("number" == typeof e.chat ? r.chat = t.longs === String ? String(e.chat) : e.chat : r.chat = t.longs === String ? a.Long.prototype.toString.call(e.chat) : t.longs === Number ? new a.LongBits(e.chat.low >>> 0, e.chat.high >>> 0).toNumber() : e.chat), null != e.loader && e.hasOwnProperty("loader") && ("number" == typeof e.loader ? r.loader = t.longs === String ? String(e.loader) : e.loader : r.loader = t.longs === String ? a.Long.prototype.toString.call(e.loader) : t.longs === Number ? new a.LongBits(e.loader.low >>> 0, e.loader.high >>> 0).toNumber() : e.loader), null != e.reload && e.hasOwnProperty("reload") && ("number" == typeof e.reload ? r.reload = t.longs === String ? String(e.reload) : e.reload : r.reload = t.longs === String ? a.Long.prototype.toString.call(e.reload) : t.longs === Number ? new a.LongBits(e.reload.low >>> 0, e.reload.high >>> 0).toNumber() : e.reload), e.data && (n = Object.keys(e.data)).length) + { + r.data = {}; + for (var i = 0; i < n.length; ++i) r.data[n[i]] = e.data[n[i]] + } + return r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.WebRoom = function () + { + function e(e) + { + if (this.adminUserIds = [], this.adminUserIdsStr = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.idStr = "", e.prototype.status = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.statusStr = "", e.prototype.title = "", e.prototype.userCountStr = "", e.prototype.cover = null, e.prototype.streamUrl = null, e.prototype.mosaicStatus = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.mosaicStatusStr = "", e.prototype.adminUserIds = a.emptyArray, e.prototype.adminUserIdsStr = a.emptyArray, e.prototype.owner = null, e.prototype.roomAuth = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.idStr && Object.hasOwnProperty.call(e, "idStr") && t.uint32(10).string(e.idStr), null != e.status && Object.hasOwnProperty.call(e, "status") && t.uint32(16).int64(e.status), null != e.statusStr && Object.hasOwnProperty.call(e, "statusStr") && t.uint32(26).string(e.statusStr), null != e.title && Object.hasOwnProperty.call(e, "title") && t.uint32(34).string(e.title), null != e.userCountStr && Object.hasOwnProperty.call(e, "userCountStr") && t.uint32(42).string(e.userCountStr), null != e.cover && Object.hasOwnProperty.call(e, "cover") && l.webcast.data.WebImage.encode(e.cover, t.uint32(50).fork()).ldelim(), null != e.streamUrl && Object.hasOwnProperty.call(e, "streamUrl") && l.webcast.data.WebStreamUrl.encode(e.streamUrl, t.uint32(58).fork()).ldelim(), null != e.mosaicStatus && Object.hasOwnProperty.call(e, "mosaicStatus") && t.uint32(64).int64(e.mosaicStatus), null != e.mosaicStatusStr && Object.hasOwnProperty.call(e, "mosaicStatusStr") && t.uint32(74).string(e.mosaicStatusStr), null != e.adminUserIds && e.adminUserIds.length) + { + t.uint32(82).fork(); + for (var n = 0; n < e.adminUserIds.length; ++n) t.int64(e.adminUserIds[n]); + t.ldelim() + } + if (null != e.adminUserIdsStr && e.adminUserIdsStr.length) + for (n = 0; n < e.adminUserIdsStr.length; ++n) t.uint32(90).string(e.adminUserIdsStr[n]); + return null != e.owner && Object.hasOwnProperty.call(e, "owner") && l.webcast.data.WebUser.encode(e.owner, t.uint32(98).fork()).ldelim(), null != e.roomAuth && Object.hasOwnProperty.call(e, "roomAuth") && l.webcast.data.WebRoomAuthStatus.encode(e.roomAuth, t.uint32(106).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.WebRoom; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.idStr = e.string(); + break; + case 2: + r.status = e.int64(); + break; + case 3: + r.statusStr = e.string(); + break; + case 4: + r.title = e.string(); + break; + case 5: + r.userCountStr = e.string(); + break; + case 6: + r.cover = l.webcast.data.WebImage.decode(e, e.uint32()); + break; + case 7: + r.streamUrl = l.webcast.data.WebStreamUrl.decode(e, e.uint32()); + break; + case 8: + r.mosaicStatus = e.int64(); + break; + case 9: + r.mosaicStatusStr = e.string(); + break; + case 10: + if (r.adminUserIds && r.adminUserIds.length || (r.adminUserIds = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.adminUserIds.push(e.int64()); + else r.adminUserIds.push(e.int64()); + break; + case 11: + r.adminUserIdsStr && r.adminUserIdsStr.length || (r.adminUserIdsStr = []), r.adminUserIdsStr.push(e.string()); + break; + case 12: + r.owner = l.webcast.data.WebUser.decode(e, e.uint32()); + break; + case 13: + r.roomAuth = l.webcast.data.WebRoomAuthStatus.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.idStr && e.hasOwnProperty("idStr") && !a.isString(e.idStr)) return "idStr: string expected"; + if (null != e.status && e.hasOwnProperty("status") && !(a.isInteger(e.status) || e.status && a.isInteger(e.status.low) && a.isInteger(e.status.high))) return "status: integer|Long expected"; + if (null != e.statusStr && e.hasOwnProperty("statusStr") && !a.isString(e.statusStr)) return "statusStr: string expected"; + if (null != e.title && e.hasOwnProperty("title") && !a.isString(e.title)) return "title: string expected"; + if (null != e.userCountStr && e.hasOwnProperty("userCountStr") && !a.isString(e.userCountStr)) return "userCountStr: string expected"; + var t; + if (null != e.cover && e.hasOwnProperty("cover") && (t = l.webcast.data.WebImage.verify(e.cover))) return "cover." + t; + if (null != e.streamUrl && e.hasOwnProperty("streamUrl") && (t = l.webcast.data.WebStreamUrl.verify(e.streamUrl))) return "streamUrl." + t; + if (null != e.mosaicStatus && e.hasOwnProperty("mosaicStatus") && !(a.isInteger(e.mosaicStatus) || e.mosaicStatus && a.isInteger(e.mosaicStatus.low) && a.isInteger(e.mosaicStatus.high))) return "mosaicStatus: integer|Long expected"; + if (null != e.mosaicStatusStr && e.hasOwnProperty("mosaicStatusStr") && !a.isString(e.mosaicStatusStr)) return "mosaicStatusStr: string expected"; + if (null != e.adminUserIds && e.hasOwnProperty("adminUserIds")) + { + if (!Array.isArray(e.adminUserIds)) return "adminUserIds: array expected"; + for (var n = 0; n < e.adminUserIds.length; ++n) + if (!(a.isInteger(e.adminUserIds[n]) || e.adminUserIds[n] && a.isInteger(e.adminUserIds[n].low) && a.isInteger(e.adminUserIds[n].high))) return "adminUserIds: integer|Long[] expected" + } + if (null != e.adminUserIdsStr && e.hasOwnProperty("adminUserIdsStr")) + { + if (!Array.isArray(e.adminUserIdsStr)) return "adminUserIdsStr: array expected"; + for (n = 0; n < e.adminUserIdsStr.length; ++n) + if (!a.isString(e.adminUserIdsStr[n])) return "adminUserIdsStr: string[] expected" + } + if (null != e.owner && e.hasOwnProperty("owner") && (t = l.webcast.data.WebUser.verify(e.owner))) return "owner." + t; + if (null != e.roomAuth && e.hasOwnProperty("roomAuth") && (t = l.webcast.data.WebRoomAuthStatus.verify(e.roomAuth))) return "roomAuth." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.WebRoom) return e; + var t = new l.webcast.data.WebRoom; + if (null != e.idStr && (t.idStr = String(e.idStr)), null != e.status && (a.Long ? (t.status = a.Long.fromValue(e.status)).unsigned = !1 : "string" == typeof e.status ? t.status = parseInt(e.status, 10) : "number" == typeof e.status ? t.status = e.status : "object" == typeof e.status && (t.status = new a.LongBits(e.status.low >>> 0, e.status.high >>> 0).toNumber())), null != e.statusStr && (t.statusStr = String(e.statusStr)), null != e.title && (t.title = String(e.title)), null != e.userCountStr && (t.userCountStr = String(e.userCountStr)), null != e.cover) + { + if ("object" != typeof e.cover) throw TypeError(".webcast.data.WebRoom.cover: object expected"); + t.cover = l.webcast.data.WebImage.fromObject(e.cover) + } + if (null != e.streamUrl) + { + if ("object" != typeof e.streamUrl) throw TypeError(".webcast.data.WebRoom.streamUrl: object expected"); + t.streamUrl = l.webcast.data.WebStreamUrl.fromObject(e.streamUrl) + } + if (null != e.mosaicStatus && (a.Long ? (t.mosaicStatus = a.Long.fromValue(e.mosaicStatus)).unsigned = !1 : "string" == typeof e.mosaicStatus ? t.mosaicStatus = parseInt(e.mosaicStatus, 10) : "number" == typeof e.mosaicStatus ? t.mosaicStatus = e.mosaicStatus : "object" == typeof e.mosaicStatus && (t.mosaicStatus = new a.LongBits(e.mosaicStatus.low >>> 0, e.mosaicStatus.high >>> 0).toNumber())), null != e.mosaicStatusStr && (t.mosaicStatusStr = String(e.mosaicStatusStr)), e.adminUserIds) + { + if (!Array.isArray(e.adminUserIds)) throw TypeError(".webcast.data.WebRoom.adminUserIds: array expected"); + t.adminUserIds = []; + for (var n = 0; n < e.adminUserIds.length; ++n) a.Long ? (t.adminUserIds[n] = a.Long.fromValue(e.adminUserIds[n])).unsigned = !1 : "string" == typeof e.adminUserIds[n] ? t.adminUserIds[n] = parseInt(e.adminUserIds[n], 10) : "number" == typeof e.adminUserIds[n] ? t.adminUserIds[n] = e.adminUserIds[n] : "object" == typeof e.adminUserIds[n] && (t.adminUserIds[n] = new a.LongBits(e.adminUserIds[n].low >>> 0, e.adminUserIds[n].high >>> 0).toNumber()) + } + if (e.adminUserIdsStr) + { + if (!Array.isArray(e.adminUserIdsStr)) throw TypeError(".webcast.data.WebRoom.adminUserIdsStr: array expected"); + t.adminUserIdsStr = []; + for (n = 0; n < e.adminUserIdsStr.length; ++n) t.adminUserIdsStr[n] = String(e.adminUserIdsStr[n]) + } + if (null != e.owner) + { + if ("object" != typeof e.owner) throw TypeError(".webcast.data.WebRoom.owner: object expected"); + t.owner = l.webcast.data.WebUser.fromObject(e.owner) + } + if (null != e.roomAuth) + { + if ("object" != typeof e.roomAuth) throw TypeError(".webcast.data.WebRoom.roomAuth: object expected"); + t.roomAuth = l.webcast.data.WebRoomAuthStatus.fromObject(e.roomAuth) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.adminUserIds = [], n.adminUserIdsStr = []), t.defaults) + { + if (n.idStr = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.status = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.status = t.longs === String ? "0" : 0; + if (n.statusStr = "", n.title = "", n.userCountStr = "", n.cover = null, n.streamUrl = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.mosaicStatus = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.mosaicStatus = t.longs === String ? "0" : 0; + n.mosaicStatusStr = "", n.owner = null, n.roomAuth = null + } + if (null != e.idStr && e.hasOwnProperty("idStr") && (n.idStr = e.idStr), null != e.status && e.hasOwnProperty("status") && ("number" == typeof e.status ? n.status = t.longs === String ? String(e.status) : e.status : n.status = t.longs === String ? a.Long.prototype.toString.call(e.status) : t.longs === Number ? new a.LongBits(e.status.low >>> 0, e.status.high >>> 0).toNumber() : e.status), null != e.statusStr && e.hasOwnProperty("statusStr") && (n.statusStr = e.statusStr), null != e.title && e.hasOwnProperty("title") && (n.title = e.title), null != e.userCountStr && e.hasOwnProperty("userCountStr") && (n.userCountStr = e.userCountStr), null != e.cover && e.hasOwnProperty("cover") && (n.cover = l.webcast.data.WebImage.toObject(e.cover, t)), null != e.streamUrl && e.hasOwnProperty("streamUrl") && (n.streamUrl = l.webcast.data.WebStreamUrl.toObject(e.streamUrl, t)), null != e.mosaicStatus && e.hasOwnProperty("mosaicStatus") && ("number" == typeof e.mosaicStatus ? n.mosaicStatus = t.longs === String ? String(e.mosaicStatus) : e.mosaicStatus : n.mosaicStatus = t.longs === String ? a.Long.prototype.toString.call(e.mosaicStatus) : t.longs === Number ? new a.LongBits(e.mosaicStatus.low >>> 0, e.mosaicStatus.high >>> 0).toNumber() : e.mosaicStatus), null != e.mosaicStatusStr && e.hasOwnProperty("mosaicStatusStr") && (n.mosaicStatusStr = e.mosaicStatusStr), e.adminUserIds && e.adminUserIds.length) + { + n.adminUserIds = []; + for (var o = 0; o < e.adminUserIds.length; ++o) "number" == typeof e.adminUserIds[o] ? n.adminUserIds[o] = t.longs === String ? String(e.adminUserIds[o]) : e.adminUserIds[o] : n.adminUserIds[o] = t.longs === String ? a.Long.prototype.toString.call(e.adminUserIds[o]) : t.longs === Number ? new a.LongBits(e.adminUserIds[o].low >>> 0, e.adminUserIds[o].high >>> 0).toNumber() : e.adminUserIds[o] + } + if (e.adminUserIdsStr && e.adminUserIdsStr.length) + { + n.adminUserIdsStr = []; + for (o = 0; o < e.adminUserIdsStr.length; ++o) n.adminUserIdsStr[o] = e.adminUserIdsStr[o] + } + return null != e.owner && e.hasOwnProperty("owner") && (n.owner = l.webcast.data.WebUser.toObject(e.owner, t)), null != e.roomAuth && e.hasOwnProperty("roomAuth") && (n.roomAuth = l.webcast.data.WebRoomAuthStatus.toObject(e.roomAuth, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.Room = function () + { + function e(e) + { + if (this.dynamicCoverDict = {}, this.decoList = [], this.topFans = [], this.adminUserIds = [], this.tags = [], this.roomTabs = [], this.liveDistribution = [], this.linkerMap = {}, this.AnchorABMap = {}, this.fansGroupAdminUserIds = [], this.vsRoles = [], this.filterWords = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.idStr = "", e.prototype.status = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.ownerUserId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.title = "", e.prototype.userCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.createTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.linkmicLayout = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.finishTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.extra = null, e.prototype.dynamicCoverUri = "", e.prototype.dynamicCoverDict = a.emptyObject, e.prototype.lastPingTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.liveId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.streamProvider = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.osType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.clientVersion = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.withLinkmic = !1, e.prototype.enableRoomPerspective = !1, e.prototype.cover = null, e.prototype.dynamicCover = null, e.prototype.dynamicCoverLow = null, e.prototype.shareUrl = "", e.prototype.anchorShareText = "", e.prototype.userShareText = "", e.prototype.streamId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.streamIdStr = "", e.prototype.streamUrl = null, e.prototype.mosaicStatus = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.mosaicTip = "", e.prototype.cellStyle = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.linkMic = null, e.prototype.luckymoneyNum = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.decoList = a.emptyArray, e.prototype.topFans = a.emptyArray, e.prototype.stats = null, e.prototype.sunDailyIconContent = "", e.prototype.distance = "", e.prototype.distanceCity = "", e.prototype.location = "", e.prototype.realDistance = "", e.prototype.feedRoomLabel = null, e.prototype.commonLabelList = "", e.prototype.livingRoomAttrs = null, e.prototype.adminUserIds = a.emptyArray, e.prototype.owner = null, e.prototype.privateInfo = "", e.prototype.hasCommerceGoods = !1, e.prototype.liveTypeNormal = !1, e.prototype.liveTypeLinkmic = !1, e.prototype.liveTypeAudio = !1, e.prototype.liveTypeThirdParty = !1, e.prototype.liveTypeScreenshot = !1, e.prototype.liveTypeSandbox = !1, e.prototype.liveTypeOfficial = !1, e.prototype.groupId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.orientation = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.category = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.tags = a.emptyArray, e.prototype.startTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.popularity = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.popularityStr = "", e.prototype.fcdnAppid = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.sellGoods = !1, e.prototype.webCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.verticalCoverUri = "", e.prototype.baseCategory = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.roomAuth = null, e.prototype.roomTabs = a.emptyArray, e.prototype.introduction = "", e.prototype.burst = null, e.prototype.healthScore = null, e.prototype.isReplay = !1, e.prototype.vid = "", e.prototype.groupSource = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.lotteryFinishTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.activityTag = null, e.prototype.portraitCover = null, e.prototype.background = null, e.prototype.layout = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.waitCopy = "", e.prototype.guideButton = null, e.prototype.previewCopy = "", e.prototype.isShowInquiryBall = !1, e.prototype.matchInfo = null, e.prototype.useFilter = !1, e.prototype.giftMsgStyle = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.distanceKm = "", e.prototype.finishUrl = "", e.prototype.officialRoomInfo = null, e.prototype.isShowUserCardSwitch = !1, e.prototype.videoFeedTag = "", e.prototype.forumExtraData = "", e.prototype.fansclubMsgStyle = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.followMsgStyle = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.shareMsgStyle = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.roomLayout = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.shortTitle = "", e.prototype.shortTouchAreaConfig = null, e.prototype.bookTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.bookEndTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.roomAuditStatus = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.liveDistribution = a.emptyArray, e.prototype.tv = null, e.prototype.replay = !1, e.prototype.challengeInfo = "", e.prototype.likeCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.searchId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.anchorScheduledTimeText = "", e.prototype.hotSentenceInfo = "", e.prototype.replayLocation = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.streamCloseTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.contentTag = "", e.prototype.contentLabel = null, e.prototype.operationLabel = null, e.prototype.anchorTabType = 0, e.prototype.gameExtra = null, e.prototype.officialChannel = null, e.prototype.stamps = "", e.prototype.commentBox = null, e.prototype.businessLive = 0, e.prototype.withKtv = !1, e.prototype.withDrawSomething = !1, e.prototype.webcastCommentTcs = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.roomTag = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.linkerMap = a.emptyObject, e.prototype.finishReason = 0, e.prototype.roomCart = null, e.prototype.scrollConfig = "", e.prototype.relationTag = "", e.prototype.ownerDeviceId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.autoCover = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.appId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.webcastSdkVersion = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.commentNameMode = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.roomCreateAbParam = "", e.prototype.preEnterTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.ranklistAudienceType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.previewFlowTag = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.previewTagUrl = null, e.prototype.quizExtra = null, e.prototype.AnchorABMap = a.emptyObject, e.prototype.linkerUsers = null, e.prototype.linkmicDisplayType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.AudioRoomBGImage = null, e.prototype.cityTopLinkerUsers = null, e.prototype.borderInfo = null, e.prototype.cityTopBackground = null, e.prototype.cityTopDistance = "", e.prototype.liveRoomMode = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.bonus = null, e.prototype.highlight = !1, e.prototype.isOfficialChannelRoom = !1, e.prototype.activityRoomSkinInfo = null, e.prototype.fansGroupAdminUserIds = a.emptyArray, e.prototype.replayInfo = null, e.prototype.officialChannelUid = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.livePlatformSource = "", e.prototype.acquaintanceStatus = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.commentWallInfo = null, e.prototype.commentWallPosition = null, e.prototype.liveTypeVsLive = !1, e.prototype.liveTypeVsPremiere = !1, e.prototype.episodeExtra = null, e.prototype.vsRoles = a.emptyArray, e.prototype.itemExplicitInfo = "", e.prototype.shortTouchAuth = null, e.prototype.sofaLayout = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.announcementInfo = null, e.prototype.isNeedCheckList = !1, e.prototype.liveStatusInfo = null, e.prototype.imInfo = null, e.prototype.assistLabel = null, e.prototype.interactOpenExtra = null, e.prototype.verticalTypeInfo = null, e.prototype.filterWords = a.emptyArray, e.prototype.dynamicLabel = null, e.prototype.linkerDetail = null, e.prototype.visibilityRange = 0, e.prototype.cornerMarkReach = null, e.prototype.previewExpose = null, e.prototype.welfareProjectInfo = null, e.prototype.gameRoomType = 0, e.prototype.paidLiveData = null, e.prototype.easterEggData = null, e.prototype.titleRecommend = !1, e.prototype.danmakuDetail = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.avatarLiveInfo = null, e.prototype.circleInfo = null, e.prototype.hasPromotionGames = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.screenshotSover = null, e.prototype.appearance = null, e.prototype.ecomData = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(8).int64(e.id), null != e.idStr && Object.hasOwnProperty.call(e, "idStr") && t.uint32(18).string(e.idStr), null != e.status && Object.hasOwnProperty.call(e, "status") && t.uint32(24).int64(e.status), null != e.ownerUserId && Object.hasOwnProperty.call(e, "ownerUserId") && t.uint32(32).int64(e.ownerUserId), null != e.title && Object.hasOwnProperty.call(e, "title") && t.uint32(42).string(e.title), null != e.userCount && Object.hasOwnProperty.call(e, "userCount") && t.uint32(48).int64(e.userCount), null != e.createTime && Object.hasOwnProperty.call(e, "createTime") && t.uint32(56).int64(e.createTime), null != e.linkmicLayout && Object.hasOwnProperty.call(e, "linkmicLayout") && t.uint32(64).int64(e.linkmicLayout), null != e.finishTime && Object.hasOwnProperty.call(e, "finishTime") && t.uint32(72).int64(e.finishTime), null != e.extra && Object.hasOwnProperty.call(e, "extra") && l.webcast.data.RoomExtra.encode(e.extra, t.uint32(82).fork()).ldelim(), null != e.dynamicCoverUri && Object.hasOwnProperty.call(e, "dynamicCoverUri") && t.uint32(90).string(e.dynamicCoverUri), null != e.dynamicCoverDict && Object.hasOwnProperty.call(e, "dynamicCoverDict")) + for (var n = Object.keys(e.dynamicCoverDict), r = 0; r < n.length; ++r) t.uint32(98).fork().uint32(8).int64(n[r]).uint32(18).string(e.dynamicCoverDict[n[r]]).ldelim(); + if (null != e.lastPingTime && Object.hasOwnProperty.call(e, "lastPingTime") && t.uint32(104).int64(e.lastPingTime), null != e.liveId && Object.hasOwnProperty.call(e, "liveId") && t.uint32(112).int64(e.liveId), null != e.streamProvider && Object.hasOwnProperty.call(e, "streamProvider") && t.uint32(120).int64(e.streamProvider), null != e.osType && Object.hasOwnProperty.call(e, "osType") && t.uint32(128).int64(e.osType), null != e.clientVersion && Object.hasOwnProperty.call(e, "clientVersion") && t.uint32(136).int64(e.clientVersion), null != e.withLinkmic && Object.hasOwnProperty.call(e, "withLinkmic") && t.uint32(144).bool(e.withLinkmic), null != e.enableRoomPerspective && Object.hasOwnProperty.call(e, "enableRoomPerspective") && t.uint32(152).bool(e.enableRoomPerspective), null != e.cover && Object.hasOwnProperty.call(e, "cover") && l.webcast.data.Image.encode(e.cover, t.uint32(162).fork()).ldelim(), null != e.dynamicCover && Object.hasOwnProperty.call(e, "dynamicCover") && l.webcast.data.Image.encode(e.dynamicCover, t.uint32(170).fork()).ldelim(), null != e.dynamicCoverLow && Object.hasOwnProperty.call(e, "dynamicCoverLow") && l.webcast.data.Image.encode(e.dynamicCoverLow, t.uint32(178).fork()).ldelim(), null != e.shareUrl && Object.hasOwnProperty.call(e, "shareUrl") && t.uint32(186).string(e.shareUrl), null != e.anchorShareText && Object.hasOwnProperty.call(e, "anchorShareText") && t.uint32(194).string(e.anchorShareText), null != e.userShareText && Object.hasOwnProperty.call(e, "userShareText") && t.uint32(202).string(e.userShareText), null != e.streamId && Object.hasOwnProperty.call(e, "streamId") && t.uint32(208).int64(e.streamId), null != e.streamIdStr && Object.hasOwnProperty.call(e, "streamIdStr") && t.uint32(218).string(e.streamIdStr), null != e.streamUrl && Object.hasOwnProperty.call(e, "streamUrl") && l.webcast.data.StreamUrl.encode(e.streamUrl, t.uint32(226).fork()).ldelim(), null != e.mosaicStatus && Object.hasOwnProperty.call(e, "mosaicStatus") && t.uint32(232).int64(e.mosaicStatus), null != e.mosaicTip && Object.hasOwnProperty.call(e, "mosaicTip") && t.uint32(242).string(e.mosaicTip), null != e.cellStyle && Object.hasOwnProperty.call(e, "cellStyle") && t.uint32(248).int64(e.cellStyle), null != e.linkMic && Object.hasOwnProperty.call(e, "linkMic") && l.webcast.data.LinkMic.encode(e.linkMic, t.uint32(258).fork()).ldelim(), null != e.luckymoneyNum && Object.hasOwnProperty.call(e, "luckymoneyNum") && t.uint32(264).int64(e.luckymoneyNum), null != e.decoList && e.decoList.length) + for (r = 0; r < e.decoList.length; ++r) l.webcast.data.Decoration.encode(e.decoList[r], t.uint32(274).fork()).ldelim(); + if (null != e.topFans && e.topFans.length) + for (r = 0; r < e.topFans.length; ++r) l.webcast.data.TopFan.encode(e.topFans[r], t.uint32(282).fork()).ldelim(); + if (null != e.stats && Object.hasOwnProperty.call(e, "stats") && l.webcast.data.RoomStats.encode(e.stats, t.uint32(290).fork()).ldelim(), null != e.sunDailyIconContent && Object.hasOwnProperty.call(e, "sunDailyIconContent") && t.uint32(298).string(e.sunDailyIconContent), null != e.distance && Object.hasOwnProperty.call(e, "distance") && t.uint32(306).string(e.distance), null != e.distanceCity && Object.hasOwnProperty.call(e, "distanceCity") && t.uint32(314).string(e.distanceCity), null != e.location && Object.hasOwnProperty.call(e, "location") && t.uint32(322).string(e.location), null != e.realDistance && Object.hasOwnProperty.call(e, "realDistance") && t.uint32(330).string(e.realDistance), null != e.feedRoomLabel && Object.hasOwnProperty.call(e, "feedRoomLabel") && l.webcast.data.Image.encode(e.feedRoomLabel, t.uint32(338).fork()).ldelim(), null != e.commonLabelList && Object.hasOwnProperty.call(e, "commonLabelList") && t.uint32(346).string(e.commonLabelList), null != e.livingRoomAttrs && Object.hasOwnProperty.call(e, "livingRoomAttrs") && l.webcast.data.RoomUserAttr.encode(e.livingRoomAttrs, t.uint32(354).fork()).ldelim(), null != e.adminUserIds && e.adminUserIds.length) + { + t.uint32(362).fork(); + for (r = 0; r < e.adminUserIds.length; ++r) t.int64(e.adminUserIds[r]); + t.ldelim() + } + if (null != e.owner && Object.hasOwnProperty.call(e, "owner") && l.webcast.data.User.encode(e.owner, t.uint32(370).fork()).ldelim(), null != e.privateInfo && Object.hasOwnProperty.call(e, "privateInfo") && t.uint32(378).string(e.privateInfo), null != e.hasCommerceGoods && Object.hasOwnProperty.call(e, "hasCommerceGoods") && t.uint32(384).bool(e.hasCommerceGoods), null != e.liveTypeNormal && Object.hasOwnProperty.call(e, "liveTypeNormal") && t.uint32(392).bool(e.liveTypeNormal), null != e.liveTypeLinkmic && Object.hasOwnProperty.call(e, "liveTypeLinkmic") && t.uint32(400).bool(e.liveTypeLinkmic), null != e.liveTypeAudio && Object.hasOwnProperty.call(e, "liveTypeAudio") && t.uint32(408).bool(e.liveTypeAudio), null != e.liveTypeThirdParty && Object.hasOwnProperty.call(e, "liveTypeThirdParty") && t.uint32(416).bool(e.liveTypeThirdParty), null != e.liveTypeScreenshot && Object.hasOwnProperty.call(e, "liveTypeScreenshot") && t.uint32(424).bool(e.liveTypeScreenshot), null != e.liveTypeSandbox && Object.hasOwnProperty.call(e, "liveTypeSandbox") && t.uint32(432).bool(e.liveTypeSandbox), null != e.liveTypeOfficial && Object.hasOwnProperty.call(e, "liveTypeOfficial") && t.uint32(440).bool(e.liveTypeOfficial), null != e.groupId && Object.hasOwnProperty.call(e, "groupId") && t.uint32(472).int64(e.groupId), null != e.orientation && Object.hasOwnProperty.call(e, "orientation") && t.uint32(480).int64(e.orientation), null != e.category && Object.hasOwnProperty.call(e, "category") && t.uint32(488).int64(e.category), null != e.tags && e.tags.length) + { + t.uint32(498).fork(); + for (r = 0; r < e.tags.length; ++r) t.int64(e.tags[r]); + t.ldelim() + } + if (null != e.startTime && Object.hasOwnProperty.call(e, "startTime") && t.uint32(504).int64(e.startTime), null != e.popularity && Object.hasOwnProperty.call(e, "popularity") && t.uint32(512).int64(e.popularity), null != e.popularityStr && Object.hasOwnProperty.call(e, "popularityStr") && t.uint32(522).string(e.popularityStr), null != e.fcdnAppid && Object.hasOwnProperty.call(e, "fcdnAppid") && t.uint32(528).int64(e.fcdnAppid), null != e.sellGoods && Object.hasOwnProperty.call(e, "sellGoods") && t.uint32(544).bool(e.sellGoods), null != e.webCount && Object.hasOwnProperty.call(e, "webCount") && t.uint32(552).int64(e.webCount), null != e.verticalCoverUri && Object.hasOwnProperty.call(e, "verticalCoverUri") && t.uint32(562).string(e.verticalCoverUri), null != e.baseCategory && Object.hasOwnProperty.call(e, "baseCategory") && t.uint32(568).int64(e.baseCategory), null != e.roomAuth && Object.hasOwnProperty.call(e, "roomAuth") && l.webcast.data.RoomAuthStatus.encode(e.roomAuth, t.uint32(578).fork()).ldelim(), null != e.roomTabs && e.roomTabs.length) + for (r = 0; r < e.roomTabs.length; ++r) l.webcast.data.RoomTab.encode(e.roomTabs[r], t.uint32(586).fork()).ldelim(); + if (null != e.introduction && Object.hasOwnProperty.call(e, "introduction") && t.uint32(594).string(e.introduction), null != e.burst && Object.hasOwnProperty.call(e, "burst") && l.webcast.data.BurstInfo.encode(e.burst, t.uint32(602).fork()).ldelim(), null != e.healthScore && Object.hasOwnProperty.call(e, "healthScore") && l.webcast.data.RoomHealthScoreInfo.encode(e.healthScore, t.uint32(610).fork()).ldelim(), null != e.isReplay && Object.hasOwnProperty.call(e, "isReplay") && t.uint32(616).bool(e.isReplay), null != e.vid && Object.hasOwnProperty.call(e, "vid") && t.uint32(626).string(e.vid), null != e.groupSource && Object.hasOwnProperty.call(e, "groupSource") && t.uint32(632).int64(e.groupSource), null != e.lotteryFinishTime && Object.hasOwnProperty.call(e, "lotteryFinishTime") && t.uint32(640).int64(e.lotteryFinishTime), null != e.activityTag && Object.hasOwnProperty.call(e, "activityTag") && l.webcast.data.RoomActivityTag.encode(e.activityTag, t.uint32(650).fork()).ldelim(), null != e.portraitCover && Object.hasOwnProperty.call(e, "portraitCover") && l.webcast.data.Image.encode(e.portraitCover, t.uint32(658).fork()).ldelim(), null != e.background && Object.hasOwnProperty.call(e, "background") && l.webcast.data.Image.encode(e.background, t.uint32(666).fork()).ldelim(), null != e.layout && Object.hasOwnProperty.call(e, "layout") && t.uint32(672).int64(e.layout), null != e.waitCopy && Object.hasOwnProperty.call(e, "waitCopy") && t.uint32(682).string(e.waitCopy), null != e.guideButton && Object.hasOwnProperty.call(e, "guideButton") && l.webcast.data.Image.encode(e.guideButton, t.uint32(690).fork()).ldelim(), null != e.previewCopy && Object.hasOwnProperty.call(e, "previewCopy") && t.uint32(698).string(e.previewCopy), null != e.isShowInquiryBall && Object.hasOwnProperty.call(e, "isShowInquiryBall") && t.uint32(704).bool(e.isShowInquiryBall), null != e.matchInfo && Object.hasOwnProperty.call(e, "matchInfo") && l.webcast.data.MatchInfo.encode(e.matchInfo, t.uint32(714).fork()).ldelim(), null != e.useFilter && Object.hasOwnProperty.call(e, "useFilter") && t.uint32(720).bool(e.useFilter), null != e.giftMsgStyle && Object.hasOwnProperty.call(e, "giftMsgStyle") && t.uint32(728).int64(e.giftMsgStyle), null != e.distanceKm && Object.hasOwnProperty.call(e, "distanceKm") && t.uint32(738).string(e.distanceKm), null != e.finishUrl && Object.hasOwnProperty.call(e, "finishUrl") && t.uint32(746).string(e.finishUrl), null != e.officialRoomInfo && Object.hasOwnProperty.call(e, "officialRoomInfo") && l.webcast.data.OfficialRoomInfo.encode(e.officialRoomInfo, t.uint32(754).fork()).ldelim(), null != e.isShowUserCardSwitch && Object.hasOwnProperty.call(e, "isShowUserCardSwitch") && t.uint32(760).bool(e.isShowUserCardSwitch), null != e.videoFeedTag && Object.hasOwnProperty.call(e, "videoFeedTag") && t.uint32(770).string(e.videoFeedTag), null != e.forumExtraData && Object.hasOwnProperty.call(e, "forumExtraData") && t.uint32(778).string(e.forumExtraData), null != e.fansclubMsgStyle && Object.hasOwnProperty.call(e, "fansclubMsgStyle") && t.uint32(784).int64(e.fansclubMsgStyle), null != e.followMsgStyle && Object.hasOwnProperty.call(e, "followMsgStyle") && t.uint32(792).int64(e.followMsgStyle), null != e.shareMsgStyle && Object.hasOwnProperty.call(e, "shareMsgStyle") && t.uint32(800).int64(e.shareMsgStyle), null != e.roomLayout && Object.hasOwnProperty.call(e, "roomLayout") && t.uint32(808).int64(e.roomLayout), null != e.shortTitle && Object.hasOwnProperty.call(e, "shortTitle") && t.uint32(818).string(e.shortTitle), null != e.shortTouchAreaConfig && Object.hasOwnProperty.call(e, "shortTouchAreaConfig") && l.webcast.data.RoomShortTouchAreaConfig.encode(e.shortTouchAreaConfig, t.uint32(826).fork()).ldelim(), null != e.bookTime && Object.hasOwnProperty.call(e, "bookTime") && t.uint32(832).int64(e.bookTime), null != e.bookEndTime && Object.hasOwnProperty.call(e, "bookEndTime") && t.uint32(840).int64(e.bookEndTime), null != e.roomAuditStatus && Object.hasOwnProperty.call(e, "roomAuditStatus") && t.uint32(848).int64(e.roomAuditStatus), null != e.liveDistribution && e.liveDistribution.length) + { + t.uint32(858).fork(); + for (r = 0; r < e.liveDistribution.length; ++r) t.int64(e.liveDistribution[r]); + t.ldelim() + } + if (null != e.tv && Object.hasOwnProperty.call(e, "tv") && l.webcast.data.TVStation.encode(e.tv, t.uint32(866).fork()).ldelim(), null != e.replay && Object.hasOwnProperty.call(e, "replay") && t.uint32(872).bool(e.replay), null != e.challengeInfo && Object.hasOwnProperty.call(e, "challengeInfo") && t.uint32(882).string(e.challengeInfo), null != e.likeCount && Object.hasOwnProperty.call(e, "likeCount") && t.uint32(888).int64(e.likeCount), null != e.searchId && Object.hasOwnProperty.call(e, "searchId") && t.uint32(896).int64(e.searchId), null != e.anchorScheduledTimeText && Object.hasOwnProperty.call(e, "anchorScheduledTimeText") && t.uint32(906).string(e.anchorScheduledTimeText), null != e.hotSentenceInfo && Object.hasOwnProperty.call(e, "hotSentenceInfo") && t.uint32(914).string(e.hotSentenceInfo), null != e.replayLocation && Object.hasOwnProperty.call(e, "replayLocation") && t.uint32(920).int64(e.replayLocation), null != e.streamCloseTime && Object.hasOwnProperty.call(e, "streamCloseTime") && t.uint32(928).int64(e.streamCloseTime), null != e.contentTag && Object.hasOwnProperty.call(e, "contentTag") && t.uint32(938).string(e.contentTag), null != e.contentLabel && Object.hasOwnProperty.call(e, "contentLabel") && l.webcast.data.Image.encode(e.contentLabel, t.uint32(946).fork()).ldelim(), null != e.operationLabel && Object.hasOwnProperty.call(e, "operationLabel") && l.webcast.data.Image.encode(e.operationLabel, t.uint32(954).fork()).ldelim(), null != e.anchorTabType && Object.hasOwnProperty.call(e, "anchorTabType") && t.uint32(960).int32(e.anchorTabType), null != e.gameExtra && Object.hasOwnProperty.call(e, "gameExtra") && l.webcast.data.GameExtra.encode(e.gameExtra, t.uint32(970).fork()).ldelim(), null != e.officialChannel && Object.hasOwnProperty.call(e, "officialChannel") && l.webcast.data.OfficialChannelInfo.encode(e.officialChannel, t.uint32(978).fork()).ldelim(), null != e.stamps && Object.hasOwnProperty.call(e, "stamps") && t.uint32(986).string(e.stamps), null != e.commentBox && Object.hasOwnProperty.call(e, "commentBox") && l.webcast.data.CommentBox.encode(e.commentBox, t.uint32(994).fork()).ldelim(), null != e.businessLive && Object.hasOwnProperty.call(e, "businessLive") && t.uint32(1e3).int32(e.businessLive), null != e.withKtv && Object.hasOwnProperty.call(e, "withKtv") && t.uint32(1008).bool(e.withKtv), null != e.withDrawSomething && Object.hasOwnProperty.call(e, "withDrawSomething") && t.uint32(1016).bool(e.withDrawSomething), null != e.webcastCommentTcs && Object.hasOwnProperty.call(e, "webcastCommentTcs") && t.uint32(1024).int64(e.webcastCommentTcs), null != e.roomTag && Object.hasOwnProperty.call(e, "roomTag") && t.uint32(1032).int64(e.roomTag), null != e.linkerMap && Object.hasOwnProperty.call(e, "linkerMap")) + for (n = Object.keys(e.linkerMap), r = 0; r < n.length; ++r) t.uint32(1042).fork().uint32(10).string(n[r]).uint32(16).int64(e.linkerMap[n[r]]).ldelim(); + if (null != e.finishReason && Object.hasOwnProperty.call(e, "finishReason") && t.uint32(1048).int32(e.finishReason), null != e.roomCart && Object.hasOwnProperty.call(e, "roomCart") && l.webcast.data.RoomCart.encode(e.roomCart, t.uint32(1058).fork()).ldelim(), null != e.scrollConfig && Object.hasOwnProperty.call(e, "scrollConfig") && t.uint32(1066).string(e.scrollConfig), null != e.relationTag && Object.hasOwnProperty.call(e, "relationTag") && t.uint32(1074).string(e.relationTag), null != e.ownerDeviceId && Object.hasOwnProperty.call(e, "ownerDeviceId") && t.uint32(1080).int64(e.ownerDeviceId), null != e.autoCover && Object.hasOwnProperty.call(e, "autoCover") && t.uint32(1088).int64(e.autoCover), null != e.appId && Object.hasOwnProperty.call(e, "appId") && t.uint32(1096).int64(e.appId), null != e.webcastSdkVersion && Object.hasOwnProperty.call(e, "webcastSdkVersion") && t.uint32(1104).int64(e.webcastSdkVersion), null != e.commentNameMode && Object.hasOwnProperty.call(e, "commentNameMode") && t.uint32(1112).int64(e.commentNameMode), null != e.roomCreateAbParam && Object.hasOwnProperty.call(e, "roomCreateAbParam") && t.uint32(1122).string(e.roomCreateAbParam), null != e.preEnterTime && Object.hasOwnProperty.call(e, "preEnterTime") && t.uint32(1128).int64(e.preEnterTime), null != e.ranklistAudienceType && Object.hasOwnProperty.call(e, "ranklistAudienceType") && t.uint32(1136).int64(e.ranklistAudienceType), null != e.previewFlowTag && Object.hasOwnProperty.call(e, "previewFlowTag") && t.uint32(1144).int64(e.previewFlowTag), null != e.previewTagUrl && Object.hasOwnProperty.call(e, "previewTagUrl") && l.webcast.data.Image.encode(e.previewTagUrl, t.uint32(1154).fork()).ldelim(), null != e.quizExtra && Object.hasOwnProperty.call(e, "quizExtra") && l.webcast.data.QuizExtra.encode(e.quizExtra, t.uint32(1162).fork()).ldelim(), null != e.AnchorABMap && Object.hasOwnProperty.call(e, "AnchorABMap")) + for (n = Object.keys(e.AnchorABMap), r = 0; r < n.length; ++r) t.uint32(1170).fork().uint32(10).string(n[r]).uint32(18).string(e.AnchorABMap[n[r]]).ldelim(); + if (null != e.linkerUsers && Object.hasOwnProperty.call(e, "linkerUsers") && l.webcast.data.LinkerUsers.encode(e.linkerUsers, t.uint32(1178).fork()).ldelim(), null != e.linkmicDisplayType && Object.hasOwnProperty.call(e, "linkmicDisplayType") && t.uint32(1184).int64(e.linkmicDisplayType), null != e.AudioRoomBGImage && Object.hasOwnProperty.call(e, "AudioRoomBGImage") && l.webcast.data.AudioBGData.encode(e.AudioRoomBGImage, t.uint32(1194).fork()).ldelim(), null != e.cityTopLinkerUsers && Object.hasOwnProperty.call(e, "cityTopLinkerUsers") && l.webcast.data.LinkerUsers.encode(e.cityTopLinkerUsers, t.uint32(1202).fork()).ldelim(), null != e.borderInfo && Object.hasOwnProperty.call(e, "borderInfo") && l.webcast.data.BorderInfo.encode(e.borderInfo, t.uint32(1210).fork()).ldelim(), null != e.cityTopBackground && Object.hasOwnProperty.call(e, "cityTopBackground") && l.webcast.data.Image.encode(e.cityTopBackground, t.uint32(1218).fork()).ldelim(), null != e.cityTopDistance && Object.hasOwnProperty.call(e, "cityTopDistance") && t.uint32(1226).string(e.cityTopDistance), null != e.liveRoomMode && Object.hasOwnProperty.call(e, "liveRoomMode") && t.uint32(1232).int64(e.liveRoomMode), null != e.bonus && Object.hasOwnProperty.call(e, "bonus") && l.webcast.data.Bonus.encode(e.bonus, t.uint32(1242).fork()).ldelim(), null != e.highlight && Object.hasOwnProperty.call(e, "highlight") && t.uint32(1248).bool(e.highlight), null != e.isOfficialChannelRoom && Object.hasOwnProperty.call(e, "isOfficialChannelRoom") && t.uint32(1256).bool(e.isOfficialChannelRoom), null != e.activityRoomSkinInfo && Object.hasOwnProperty.call(e, "activityRoomSkinInfo") && l.webcast.data.ActivityRoomSkinInfo.encode(e.activityRoomSkinInfo, t.uint32(1266).fork()).ldelim(), null != e.fansGroupAdminUserIds && e.fansGroupAdminUserIds.length) + { + t.uint32(1274).fork(); + for (r = 0; r < e.fansGroupAdminUserIds.length; ++r) t.int64(e.fansGroupAdminUserIds[r]); + t.ldelim() + } + if (null != e.replayInfo && Object.hasOwnProperty.call(e, "replayInfo") && l.webcast.data.RoomReplayInfo.encode(e.replayInfo, t.uint32(1282).fork()).ldelim(), null != e.officialChannelUid && Object.hasOwnProperty.call(e, "officialChannelUid") && t.uint32(1288).int64(e.officialChannelUid), null != e.livePlatformSource && Object.hasOwnProperty.call(e, "livePlatformSource") && t.uint32(1298).string(e.livePlatformSource), null != e.acquaintanceStatus && Object.hasOwnProperty.call(e, "acquaintanceStatus") && t.uint32(1304).int64(e.acquaintanceStatus), null != e.commentWallInfo && Object.hasOwnProperty.call(e, "commentWallInfo") && l.webcast.data.CommentWallInfo.encode(e.commentWallInfo, t.uint32(1314).fork()).ldelim(), null != e.commentWallPosition && Object.hasOwnProperty.call(e, "commentWallPosition") && l.webcast.data.CommentWallPosition.encode(e.commentWallPosition, t.uint32(1322).fork()).ldelim(), null != e.liveTypeVsLive && Object.hasOwnProperty.call(e, "liveTypeVsLive") && t.uint32(1328).bool(e.liveTypeVsLive), null != e.liveTypeVsPremiere && Object.hasOwnProperty.call(e, "liveTypeVsPremiere") && t.uint32(1336).bool(e.liveTypeVsPremiere), null != e.episodeExtra && Object.hasOwnProperty.call(e, "episodeExtra") && l.webcast.data.EpisodeExtraInfo.encode(e.episodeExtra, t.uint32(1346).fork()).ldelim(), null != e.vsRoles && e.vsRoles.length) + { + t.uint32(1354).fork(); + for (r = 0; r < e.vsRoles.length; ++r) t.int32(e.vsRoles[r]); + t.ldelim() + } + if (null != e.itemExplicitInfo && Object.hasOwnProperty.call(e, "itemExplicitInfo") && t.uint32(1362).string(e.itemExplicitInfo), null != e.shortTouchAuth && Object.hasOwnProperty.call(e, "shortTouchAuth") && l.webcast.data.ShortTouchAuth.encode(e.shortTouchAuth, t.uint32(1370).fork()).ldelim(), null != e.sofaLayout && Object.hasOwnProperty.call(e, "sofaLayout") && t.uint32(1376).int64(e.sofaLayout), null != e.announcementInfo && Object.hasOwnProperty.call(e, "announcementInfo") && l.webcast.data.AnnouncementInfo.encode(e.announcementInfo, t.uint32(1386).fork()).ldelim(), null != e.isNeedCheckList && Object.hasOwnProperty.call(e, "isNeedCheckList") && t.uint32(1392).bool(e.isNeedCheckList), null != e.liveStatusInfo && Object.hasOwnProperty.call(e, "liveStatusInfo") && l.webcast.data.LiveStatusInfo.encode(e.liveStatusInfo, t.uint32(1402).fork()).ldelim(), null != e.imInfo && Object.hasOwnProperty.call(e, "imInfo") && l.webcast.data.RoomIMInfo.encode(e.imInfo, t.uint32(1410).fork()).ldelim(), null != e.assistLabel && Object.hasOwnProperty.call(e, "assistLabel") && l.webcast.data.LabelInfo.encode(e.assistLabel, t.uint32(1418).fork()).ldelim(), null != e.interactOpenExtra && Object.hasOwnProperty.call(e, "interactOpenExtra") && l.webcast.data.InteractOpenExtra.encode(e.interactOpenExtra, t.uint32(1426).fork()).ldelim(), null != e.verticalTypeInfo && Object.hasOwnProperty.call(e, "verticalTypeInfo") && l.webcast.data.VerticalTypeInfo.encode(e.verticalTypeInfo, t.uint32(1434).fork()).ldelim(), null != e.filterWords && e.filterWords.length) + for (r = 0; r < e.filterWords.length; ++r) l.webcast.data.FilterWord.encode(e.filterWords[r], t.uint32(1442).fork()).ldelim(); + return null != e.dynamicLabel && Object.hasOwnProperty.call(e, "dynamicLabel") && l.webcast.data.LabelInfo.encode(e.dynamicLabel, t.uint32(1450).fork()).ldelim(), null != e.linkerDetail && Object.hasOwnProperty.call(e, "linkerDetail") && l.webcast.data.LinkerDetail.encode(e.linkerDetail, t.uint32(1458).fork()).ldelim(), null != e.visibilityRange && Object.hasOwnProperty.call(e, "visibilityRange") && t.uint32(1464).int32(e.visibilityRange), null != e.cornerMarkReach && Object.hasOwnProperty.call(e, "cornerMarkReach") && l.webcast.data.CornerMarkReach.encode(e.cornerMarkReach, t.uint32(1474).fork()).ldelim(), null != e.previewExpose && Object.hasOwnProperty.call(e, "previewExpose") && l.webcast.data.PreviewExposeData.encode(e.previewExpose, t.uint32(1482).fork()).ldelim(), null != e.welfareProjectInfo && Object.hasOwnProperty.call(e, "welfareProjectInfo") && l.webcast.data.WelfareProjectInfo.encode(e.welfareProjectInfo, t.uint32(1490).fork()).ldelim(), null != e.gameRoomType && Object.hasOwnProperty.call(e, "gameRoomType") && t.uint32(1496).int32(e.gameRoomType), null != e.paidLiveData && Object.hasOwnProperty.call(e, "paidLiveData") && l.webcast.data.PaidLiveData.encode(e.paidLiveData, t.uint32(1506).fork()).ldelim(), null != e.easterEggData && Object.hasOwnProperty.call(e, "easterEggData") && l.webcast.data.EasterEggData.encode(e.easterEggData, t.uint32(1514).fork()).ldelim(), null != e.titleRecommend && Object.hasOwnProperty.call(e, "titleRecommend") && t.uint32(1520).bool(e.titleRecommend), null != e.danmakuDetail && Object.hasOwnProperty.call(e, "danmakuDetail") && t.uint32(1528).int64(e.danmakuDetail), null != e.avatarLiveInfo && Object.hasOwnProperty.call(e, "avatarLiveInfo") && l.webcast.data.AvatarLiveInfo.encode(e.avatarLiveInfo, t.uint32(1538).fork()).ldelim(), null != e.circleInfo && Object.hasOwnProperty.call(e, "circleInfo") && l.webcast.data.CircleInfo.encode(e.circleInfo, t.uint32(1546).fork()).ldelim(), null != e.hasPromotionGames && Object.hasOwnProperty.call(e, "hasPromotionGames") && t.uint32(1552).int64(e.hasPromotionGames), null != e.screenshotSover && Object.hasOwnProperty.call(e, "screenshotSover") && l.webcast.data.Image.encode(e.screenshotSover, t.uint32(1562).fork()).ldelim(), null != e.appearance && Object.hasOwnProperty.call(e, "appearance") && l.webcast.data.Appearance.encode(e.appearance, t.uint32(1570).fork()).ldelim(), null != e.ecomData && Object.hasOwnProperty.call(e, "ecomData") && l.webcast.data.EcomData.encode(e.ecomData, t.uint32(1578).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.Room; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.id = e.int64(); + break; + case 2: + s.idStr = e.string(); + break; + case 3: + s.status = e.int64(); + break; + case 4: + s.ownerUserId = e.int64(); + break; + case 5: + s.title = e.string(); + break; + case 6: + s.userCount = e.int64(); + break; + case 7: + s.createTime = e.int64(); + break; + case 8: + s.linkmicLayout = e.int64(); + break; + case 9: + s.finishTime = e.int64(); + break; + case 10: + s.extra = l.webcast.data.RoomExtra.decode(e, e.uint32()); + break; + case 11: + s.dynamicCoverUri = e.string(); + break; + case 12: + s.dynamicCoverDict === a.emptyObject && (s.dynamicCoverDict = {}); + var u = e.uint32() + e.pos; + for (n = 0, r = ""; e.pos < u;) + { + switch ((p = e.uint32()) >>> 3) + { + case 1: + n = e.int64(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.dynamicCoverDict["object" == typeof n ? a.longToHash(n) : n] = r; + break; + case 13: + s.lastPingTime = e.int64(); + break; + case 14: + s.liveId = e.int64(); + break; + case 15: + s.streamProvider = e.int64(); + break; + case 16: + s.osType = e.int64(); + break; + case 17: + s.clientVersion = e.int64(); + break; + case 18: + s.withLinkmic = e.bool(); + break; + case 19: + s.enableRoomPerspective = e.bool(); + break; + case 20: + s.cover = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 21: + s.dynamicCover = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 22: + s.dynamicCoverLow = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 23: + s.shareUrl = e.string(); + break; + case 24: + s.anchorShareText = e.string(); + break; + case 25: + s.userShareText = e.string(); + break; + case 26: + s.streamId = e.int64(); + break; + case 27: + s.streamIdStr = e.string(); + break; + case 28: + s.streamUrl = l.webcast.data.StreamUrl.decode(e, e.uint32()); + break; + case 29: + s.mosaicStatus = e.int64(); + break; + case 30: + s.mosaicTip = e.string(); + break; + case 31: + s.cellStyle = e.int64(); + break; + case 32: + s.linkMic = l.webcast.data.LinkMic.decode(e, e.uint32()); + break; + case 33: + s.luckymoneyNum = e.int64(); + break; + case 34: + s.decoList && s.decoList.length || (s.decoList = []), s.decoList.push(l.webcast.data.Decoration.decode(e, e.uint32())); + break; + case 35: + s.topFans && s.topFans.length || (s.topFans = []), s.topFans.push(l.webcast.data.TopFan.decode(e, e.uint32())); + break; + case 36: + s.stats = l.webcast.data.RoomStats.decode(e, e.uint32()); + break; + case 37: + s.sunDailyIconContent = e.string(); + break; + case 38: + s.distance = e.string(); + break; + case 39: + s.distanceCity = e.string(); + break; + case 40: + s.location = e.string(); + break; + case 41: + s.realDistance = e.string(); + break; + case 42: + s.feedRoomLabel = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 43: + s.commonLabelList = e.string(); + break; + case 44: + s.livingRoomAttrs = l.webcast.data.RoomUserAttr.decode(e, e.uint32()); + break; + case 45: + if (s.adminUserIds && s.adminUserIds.length || (s.adminUserIds = []), 2 == (7 & c)) + for (u = e.uint32() + e.pos; e.pos < u;) s.adminUserIds.push(e.int64()); + else s.adminUserIds.push(e.int64()); + break; + case 46: + s.owner = l.webcast.data.User.decode(e, e.uint32()); + break; + case 47: + s.privateInfo = e.string(); + break; + case 48: + s.hasCommerceGoods = e.bool(); + break; + case 49: + s.liveTypeNormal = e.bool(); + break; + case 50: + s.liveTypeLinkmic = e.bool(); + break; + case 51: + s.liveTypeAudio = e.bool(); + break; + case 52: + s.liveTypeThirdParty = e.bool(); + break; + case 53: + s.liveTypeScreenshot = e.bool(); + break; + case 54: + s.liveTypeSandbox = e.bool(); + break; + case 55: + s.liveTypeOfficial = e.bool(); + break; + case 59: + s.groupId = e.int64(); + break; + case 60: + s.orientation = e.int64(); + break; + case 61: + s.category = e.int64(); + break; + case 62: + if (s.tags && s.tags.length || (s.tags = []), 2 == (7 & c)) + for (u = e.uint32() + e.pos; e.pos < u;) s.tags.push(e.int64()); + else s.tags.push(e.int64()); + break; + case 63: + s.startTime = e.int64(); + break; + case 64: + s.popularity = e.int64(); + break; + case 65: + s.popularityStr = e.string(); + break; + case 66: + s.fcdnAppid = e.int64(); + break; + case 68: + s.sellGoods = e.bool(); + break; + case 69: + s.webCount = e.int64(); + break; + case 70: + s.verticalCoverUri = e.string(); + break; + case 71: + s.baseCategory = e.int64(); + break; + case 72: + s.roomAuth = l.webcast.data.RoomAuthStatus.decode(e, e.uint32()); + break; + case 73: + s.roomTabs && s.roomTabs.length || (s.roomTabs = []), s.roomTabs.push(l.webcast.data.RoomTab.decode(e, e.uint32())); + break; + case 74: + s.introduction = e.string(); + break; + case 75: + s.burst = l.webcast.data.BurstInfo.decode(e, e.uint32()); + break; + case 76: + s.healthScore = l.webcast.data.RoomHealthScoreInfo.decode(e, e.uint32()); + break; + case 77: + s.isReplay = e.bool(); + break; + case 78: + s.vid = e.string(); + break; + case 79: + s.groupSource = e.int64(); + break; + case 80: + s.lotteryFinishTime = e.int64(); + break; + case 81: + s.activityTag = l.webcast.data.RoomActivityTag.decode(e, e.uint32()); + break; + case 82: + s.portraitCover = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 83: + s.background = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 84: + s.layout = e.int64(); + break; + case 85: + s.waitCopy = e.string(); + break; + case 86: + s.guideButton = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 87: + s.previewCopy = e.string(); + break; + case 88: + s.isShowInquiryBall = e.bool(); + break; + case 89: + s.matchInfo = l.webcast.data.MatchInfo.decode(e, e.uint32()); + break; + case 90: + s.useFilter = e.bool(); + break; + case 91: + s.giftMsgStyle = e.int64(); + break; + case 92: + s.distanceKm = e.string(); + break; + case 93: + s.finishUrl = e.string(); + break; + case 94: + s.officialRoomInfo = l.webcast.data.OfficialRoomInfo.decode(e, e.uint32()); + break; + case 95: + s.isShowUserCardSwitch = e.bool(); + break; + case 96: + s.videoFeedTag = e.string(); + break; + case 97: + s.forumExtraData = e.string(); + break; + case 98: + s.fansclubMsgStyle = e.int64(); + break; + case 99: + s.followMsgStyle = e.int64(); + break; + case 100: + s.shareMsgStyle = e.int64(); + break; + case 101: + s.roomLayout = e.int64(); + break; + case 102: + s.shortTitle = e.string(); + break; + case 103: + s.shortTouchAreaConfig = l.webcast.data.RoomShortTouchAreaConfig.decode(e, e.uint32()); + break; + case 104: + s.bookTime = e.int64(); + break; + case 105: + s.bookEndTime = e.int64(); + break; + case 106: + s.roomAuditStatus = e.int64(); + break; + case 107: + if (s.liveDistribution && s.liveDistribution.length || (s.liveDistribution = []), 2 == (7 & c)) + for (u = e.uint32() + e.pos; e.pos < u;) s.liveDistribution.push(e.int64()); + else s.liveDistribution.push(e.int64()); + break; + case 108: + s.tv = l.webcast.data.TVStation.decode(e, e.uint32()); + break; + case 109: + s.replay = e.bool(); + break; + case 110: + s.challengeInfo = e.string(); + break; + case 111: + s.likeCount = e.int64(); + break; + case 112: + s.searchId = e.int64(); + break; + case 113: + s.anchorScheduledTimeText = e.string(); + break; + case 114: + s.hotSentenceInfo = e.string(); + break; + case 115: + s.replayLocation = e.int64(); + break; + case 116: + s.streamCloseTime = e.int64(); + break; + case 117: + s.contentTag = e.string(); + break; + case 118: + s.contentLabel = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 119: + s.operationLabel = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 120: + s.anchorTabType = e.int32(); + break; + case 121: + s.gameExtra = l.webcast.data.GameExtra.decode(e, e.uint32()); + break; + case 122: + s.officialChannel = l.webcast.data.OfficialChannelInfo.decode(e, e.uint32()); + break; + case 123: + s.stamps = e.string(); + break; + case 124: + s.commentBox = l.webcast.data.CommentBox.decode(e, e.uint32()); + break; + case 125: + s.businessLive = e.int32(); + break; + case 126: + s.withKtv = e.bool(); + break; + case 127: + s.withDrawSomething = e.bool(); + break; + case 128: + s.webcastCommentTcs = e.int64(); + break; + case 129: + s.roomTag = e.int64(); + break; + case 130: + s.linkerMap === a.emptyObject && (s.linkerMap = {}); + u = e.uint32() + e.pos; + for (n = "", r = 0; e.pos < u;) + { + switch ((p = e.uint32()) >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.int64(); + break; + default: + e.skipType(7 & p) + } + } + s.linkerMap[n] = r; + break; + case 131: + s.finishReason = e.int32(); + break; + case 132: + s.roomCart = l.webcast.data.RoomCart.decode(e, e.uint32()); + break; + case 133: + s.scrollConfig = e.string(); + break; + case 134: + s.relationTag = e.string(); + break; + case 135: + s.ownerDeviceId = e.int64(); + break; + case 136: + s.autoCover = e.int64(); + break; + case 137: + s.appId = e.int64(); + break; + case 138: + s.webcastSdkVersion = e.int64(); + break; + case 139: + s.commentNameMode = e.int64(); + break; + case 140: + s.roomCreateAbParam = e.string(); + break; + case 141: + s.preEnterTime = e.int64(); + break; + case 142: + s.ranklistAudienceType = e.int64(); + break; + case 143: + s.previewFlowTag = e.int64(); + break; + case 144: + s.previewTagUrl = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 145: + s.quizExtra = l.webcast.data.QuizExtra.decode(e, e.uint32()); + break; + case 146: + s.AnchorABMap === a.emptyObject && (s.AnchorABMap = {}); + u = e.uint32() + e.pos; + for (n = "", r = ""; e.pos < u;) + { + var p; + switch ((p = e.uint32()) >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.AnchorABMap[n] = r; + break; + case 147: + s.linkerUsers = l.webcast.data.LinkerUsers.decode(e, e.uint32()); + break; + case 148: + s.linkmicDisplayType = e.int64(); + break; + case 149: + s.AudioRoomBGImage = l.webcast.data.AudioBGData.decode(e, e.uint32()); + break; + case 150: + s.cityTopLinkerUsers = l.webcast.data.LinkerUsers.decode(e, e.uint32()); + break; + case 151: + s.borderInfo = l.webcast.data.BorderInfo.decode(e, e.uint32()); + break; + case 152: + s.cityTopBackground = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 153: + s.cityTopDistance = e.string(); + break; + case 154: + s.liveRoomMode = e.int64(); + break; + case 155: + s.bonus = l.webcast.data.Bonus.decode(e, e.uint32()); + break; + case 156: + s.highlight = e.bool(); + break; + case 157: + s.isOfficialChannelRoom = e.bool(); + break; + case 158: + s.activityRoomSkinInfo = l.webcast.data.ActivityRoomSkinInfo.decode(e, e.uint32()); + break; + case 159: + if (s.fansGroupAdminUserIds && s.fansGroupAdminUserIds.length || (s.fansGroupAdminUserIds = []), 2 == (7 & c)) + for (u = e.uint32() + e.pos; e.pos < u;) s.fansGroupAdminUserIds.push(e.int64()); + else s.fansGroupAdminUserIds.push(e.int64()); + break; + case 160: + s.replayInfo = l.webcast.data.RoomReplayInfo.decode(e, e.uint32()); + break; + case 161: + s.officialChannelUid = e.int64(); + break; + case 162: + s.livePlatformSource = e.string(); + break; + case 163: + s.acquaintanceStatus = e.int64(); + break; + case 164: + s.commentWallInfo = l.webcast.data.CommentWallInfo.decode(e, e.uint32()); + break; + case 165: + s.commentWallPosition = l.webcast.data.CommentWallPosition.decode(e, e.uint32()); + break; + case 166: + s.liveTypeVsLive = e.bool(); + break; + case 167: + s.liveTypeVsPremiere = e.bool(); + break; + case 168: + s.episodeExtra = l.webcast.data.EpisodeExtraInfo.decode(e, e.uint32()); + break; + case 169: + if (s.vsRoles && s.vsRoles.length || (s.vsRoles = []), 2 == (7 & c)) + for (u = e.uint32() + e.pos; e.pos < u;) s.vsRoles.push(e.int32()); + else s.vsRoles.push(e.int32()); + break; + case 170: + s.itemExplicitInfo = e.string(); + break; + case 171: + s.shortTouchAuth = l.webcast.data.ShortTouchAuth.decode(e, e.uint32()); + break; + case 172: + s.sofaLayout = e.int64(); + break; + case 173: + s.announcementInfo = l.webcast.data.AnnouncementInfo.decode(e, e.uint32()); + break; + case 174: + s.isNeedCheckList = e.bool(); + break; + case 175: + s.liveStatusInfo = l.webcast.data.LiveStatusInfo.decode(e, e.uint32()); + break; + case 176: + s.imInfo = l.webcast.data.RoomIMInfo.decode(e, e.uint32()); + break; + case 177: + s.assistLabel = l.webcast.data.LabelInfo.decode(e, e.uint32()); + break; + case 178: + s.interactOpenExtra = l.webcast.data.InteractOpenExtra.decode(e, e.uint32()); + break; + case 179: + s.verticalTypeInfo = l.webcast.data.VerticalTypeInfo.decode(e, e.uint32()); + break; + case 180: + s.filterWords && s.filterWords.length || (s.filterWords = []), s.filterWords.push(l.webcast.data.FilterWord.decode(e, e.uint32())); + break; + case 181: + s.dynamicLabel = l.webcast.data.LabelInfo.decode(e, e.uint32()); + break; + case 182: + s.linkerDetail = l.webcast.data.LinkerDetail.decode(e, e.uint32()); + break; + case 183: + s.visibilityRange = e.int32(); + break; + case 184: + s.cornerMarkReach = l.webcast.data.CornerMarkReach.decode(e, e.uint32()); + break; + case 185: + s.previewExpose = l.webcast.data.PreviewExposeData.decode(e, e.uint32()); + break; + case 186: + s.welfareProjectInfo = l.webcast.data.WelfareProjectInfo.decode(e, e.uint32()); + break; + case 187: + s.gameRoomType = e.int32(); + break; + case 188: + s.paidLiveData = l.webcast.data.PaidLiveData.decode(e, e.uint32()); + break; + case 189: + s.easterEggData = l.webcast.data.EasterEggData.decode(e, e.uint32()); + break; + case 190: + s.titleRecommend = e.bool(); + break; + case 191: + s.danmakuDetail = e.int64(); + break; + case 192: + s.avatarLiveInfo = l.webcast.data.AvatarLiveInfo.decode(e, e.uint32()); + break; + case 193: + s.circleInfo = l.webcast.data.CircleInfo.decode(e, e.uint32()); + break; + case 194: + s.hasPromotionGames = e.int64(); + break; + case 195: + s.screenshotSover = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 196: + s.appearance = l.webcast.data.Appearance.decode(e, e.uint32()); + break; + case 197: + s.ecomData = l.webcast.data.EcomData.decode(e, e.uint32()); + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high))) return "id: integer|Long expected"; + if (null != e.idStr && e.hasOwnProperty("idStr") && !a.isString(e.idStr)) return "idStr: string expected"; + if (null != e.status && e.hasOwnProperty("status") && !(a.isInteger(e.status) || e.status && a.isInteger(e.status.low) && a.isInteger(e.status.high))) return "status: integer|Long expected"; + if (null != e.ownerUserId && e.hasOwnProperty("ownerUserId") && !(a.isInteger(e.ownerUserId) || e.ownerUserId && a.isInteger(e.ownerUserId.low) && a.isInteger(e.ownerUserId.high))) return "ownerUserId: integer|Long expected"; + if (null != e.title && e.hasOwnProperty("title") && !a.isString(e.title)) return "title: string expected"; + if (null != e.userCount && e.hasOwnProperty("userCount") && !(a.isInteger(e.userCount) || e.userCount && a.isInteger(e.userCount.low) && a.isInteger(e.userCount.high))) return "userCount: integer|Long expected"; + if (null != e.createTime && e.hasOwnProperty("createTime") && !(a.isInteger(e.createTime) || e.createTime && a.isInteger(e.createTime.low) && a.isInteger(e.createTime.high))) return "createTime: integer|Long expected"; + if (null != e.linkmicLayout && e.hasOwnProperty("linkmicLayout") && !(a.isInteger(e.linkmicLayout) || e.linkmicLayout && a.isInteger(e.linkmicLayout.low) && a.isInteger(e.linkmicLayout.high))) return "linkmicLayout: integer|Long expected"; + if (null != e.finishTime && e.hasOwnProperty("finishTime") && !(a.isInteger(e.finishTime) || e.finishTime && a.isInteger(e.finishTime.low) && a.isInteger(e.finishTime.high))) return "finishTime: integer|Long expected"; + if (null != e.extra && e.hasOwnProperty("extra") && (r = l.webcast.data.RoomExtra.verify(e.extra))) return "extra." + r; + if (null != e.dynamicCoverUri && e.hasOwnProperty("dynamicCoverUri") && !a.isString(e.dynamicCoverUri)) return "dynamicCoverUri: string expected"; + if (null != e.dynamicCoverDict && e.hasOwnProperty("dynamicCoverDict")) + { + if (!a.isObject(e.dynamicCoverDict)) return "dynamicCoverDict: object expected"; + for (var t = Object.keys(e.dynamicCoverDict), n = 0; n < t.length; ++n) + { + if (!a.key64Re.test(t[n])) return "dynamicCoverDict: integer|Long key{k:int64} expected"; + if (!a.isString(e.dynamicCoverDict[t[n]])) return "dynamicCoverDict: string{k:int64} expected" + } + } + if (null != e.lastPingTime && e.hasOwnProperty("lastPingTime") && !(a.isInteger(e.lastPingTime) || e.lastPingTime && a.isInteger(e.lastPingTime.low) && a.isInteger(e.lastPingTime.high))) return "lastPingTime: integer|Long expected"; + if (null != e.liveId && e.hasOwnProperty("liveId") && !(a.isInteger(e.liveId) || e.liveId && a.isInteger(e.liveId.low) && a.isInteger(e.liveId.high))) return "liveId: integer|Long expected"; + if (null != e.streamProvider && e.hasOwnProperty("streamProvider") && !(a.isInteger(e.streamProvider) || e.streamProvider && a.isInteger(e.streamProvider.low) && a.isInteger(e.streamProvider.high))) return "streamProvider: integer|Long expected"; + if (null != e.osType && e.hasOwnProperty("osType") && !(a.isInteger(e.osType) || e.osType && a.isInteger(e.osType.low) && a.isInteger(e.osType.high))) return "osType: integer|Long expected"; + if (null != e.clientVersion && e.hasOwnProperty("clientVersion") && !(a.isInteger(e.clientVersion) || e.clientVersion && a.isInteger(e.clientVersion.low) && a.isInteger(e.clientVersion.high))) return "clientVersion: integer|Long expected"; + if (null != e.withLinkmic && e.hasOwnProperty("withLinkmic") && "boolean" != typeof e.withLinkmic) return "withLinkmic: boolean expected"; + if (null != e.enableRoomPerspective && e.hasOwnProperty("enableRoomPerspective") && "boolean" != typeof e.enableRoomPerspective) return "enableRoomPerspective: boolean expected"; + if (null != e.cover && e.hasOwnProperty("cover") && (r = l.webcast.data.Image.verify(e.cover))) return "cover." + r; + if (null != e.dynamicCover && e.hasOwnProperty("dynamicCover") && (r = l.webcast.data.Image.verify(e.dynamicCover))) return "dynamicCover." + r; + if (null != e.dynamicCoverLow && e.hasOwnProperty("dynamicCoverLow") && (r = l.webcast.data.Image.verify(e.dynamicCoverLow))) return "dynamicCoverLow." + r; + if (null != e.shareUrl && e.hasOwnProperty("shareUrl") && !a.isString(e.shareUrl)) return "shareUrl: string expected"; + if (null != e.anchorShareText && e.hasOwnProperty("anchorShareText") && !a.isString(e.anchorShareText)) return "anchorShareText: string expected"; + if (null != e.userShareText && e.hasOwnProperty("userShareText") && !a.isString(e.userShareText)) return "userShareText: string expected"; + if (null != e.streamId && e.hasOwnProperty("streamId") && !(a.isInteger(e.streamId) || e.streamId && a.isInteger(e.streamId.low) && a.isInteger(e.streamId.high))) return "streamId: integer|Long expected"; + if (null != e.streamIdStr && e.hasOwnProperty("streamIdStr") && !a.isString(e.streamIdStr)) return "streamIdStr: string expected"; + if (null != e.streamUrl && e.hasOwnProperty("streamUrl") && (r = l.webcast.data.StreamUrl.verify(e.streamUrl))) return "streamUrl." + r; + if (null != e.mosaicStatus && e.hasOwnProperty("mosaicStatus") && !(a.isInteger(e.mosaicStatus) || e.mosaicStatus && a.isInteger(e.mosaicStatus.low) && a.isInteger(e.mosaicStatus.high))) return "mosaicStatus: integer|Long expected"; + if (null != e.mosaicTip && e.hasOwnProperty("mosaicTip") && !a.isString(e.mosaicTip)) return "mosaicTip: string expected"; + if (null != e.cellStyle && e.hasOwnProperty("cellStyle") && !(a.isInteger(e.cellStyle) || e.cellStyle && a.isInteger(e.cellStyle.low) && a.isInteger(e.cellStyle.high))) return "cellStyle: integer|Long expected"; + if (null != e.linkMic && e.hasOwnProperty("linkMic") && (r = l.webcast.data.LinkMic.verify(e.linkMic))) return "linkMic." + r; + if (null != e.luckymoneyNum && e.hasOwnProperty("luckymoneyNum") && !(a.isInteger(e.luckymoneyNum) || e.luckymoneyNum && a.isInteger(e.luckymoneyNum.low) && a.isInteger(e.luckymoneyNum.high))) return "luckymoneyNum: integer|Long expected"; + if (null != e.decoList && e.hasOwnProperty("decoList")) + { + if (!Array.isArray(e.decoList)) return "decoList: array expected"; + for (n = 0; n < e.decoList.length; ++n) + { + if (r = l.webcast.data.Decoration.verify(e.decoList[n])) return "decoList." + r + } + } + if (null != e.topFans && e.hasOwnProperty("topFans")) + { + if (!Array.isArray(e.topFans)) return "topFans: array expected"; + for (n = 0; n < e.topFans.length; ++n) + { + if (r = l.webcast.data.TopFan.verify(e.topFans[n])) return "topFans." + r + } + } + if (null != e.stats && e.hasOwnProperty("stats") && (r = l.webcast.data.RoomStats.verify(e.stats))) return "stats." + r; + if (null != e.sunDailyIconContent && e.hasOwnProperty("sunDailyIconContent") && !a.isString(e.sunDailyIconContent)) return "sunDailyIconContent: string expected"; + if (null != e.distance && e.hasOwnProperty("distance") && !a.isString(e.distance)) return "distance: string expected"; + if (null != e.distanceCity && e.hasOwnProperty("distanceCity") && !a.isString(e.distanceCity)) return "distanceCity: string expected"; + if (null != e.location && e.hasOwnProperty("location") && !a.isString(e.location)) return "location: string expected"; + if (null != e.realDistance && e.hasOwnProperty("realDistance") && !a.isString(e.realDistance)) return "realDistance: string expected"; + if (null != e.feedRoomLabel && e.hasOwnProperty("feedRoomLabel") && (r = l.webcast.data.Image.verify(e.feedRoomLabel))) return "feedRoomLabel." + r; + if (null != e.commonLabelList && e.hasOwnProperty("commonLabelList") && !a.isString(e.commonLabelList)) return "commonLabelList: string expected"; + if (null != e.livingRoomAttrs && e.hasOwnProperty("livingRoomAttrs") && (r = l.webcast.data.RoomUserAttr.verify(e.livingRoomAttrs))) return "livingRoomAttrs." + r; + if (null != e.adminUserIds && e.hasOwnProperty("adminUserIds")) + { + if (!Array.isArray(e.adminUserIds)) return "adminUserIds: array expected"; + for (n = 0; n < e.adminUserIds.length; ++n) + if (!(a.isInteger(e.adminUserIds[n]) || e.adminUserIds[n] && a.isInteger(e.adminUserIds[n].low) && a.isInteger(e.adminUserIds[n].high))) return "adminUserIds: integer|Long[] expected" + } + if (null != e.owner && e.hasOwnProperty("owner") && (r = l.webcast.data.User.verify(e.owner))) return "owner." + r; + if (null != e.privateInfo && e.hasOwnProperty("privateInfo") && !a.isString(e.privateInfo)) return "privateInfo: string expected"; + if (null != e.hasCommerceGoods && e.hasOwnProperty("hasCommerceGoods") && "boolean" != typeof e.hasCommerceGoods) return "hasCommerceGoods: boolean expected"; + if (null != e.liveTypeNormal && e.hasOwnProperty("liveTypeNormal") && "boolean" != typeof e.liveTypeNormal) return "liveTypeNormal: boolean expected"; + if (null != e.liveTypeLinkmic && e.hasOwnProperty("liveTypeLinkmic") && "boolean" != typeof e.liveTypeLinkmic) return "liveTypeLinkmic: boolean expected"; + if (null != e.liveTypeAudio && e.hasOwnProperty("liveTypeAudio") && "boolean" != typeof e.liveTypeAudio) return "liveTypeAudio: boolean expected"; + if (null != e.liveTypeThirdParty && e.hasOwnProperty("liveTypeThirdParty") && "boolean" != typeof e.liveTypeThirdParty) return "liveTypeThirdParty: boolean expected"; + if (null != e.liveTypeScreenshot && e.hasOwnProperty("liveTypeScreenshot") && "boolean" != typeof e.liveTypeScreenshot) return "liveTypeScreenshot: boolean expected"; + if (null != e.liveTypeSandbox && e.hasOwnProperty("liveTypeSandbox") && "boolean" != typeof e.liveTypeSandbox) return "liveTypeSandbox: boolean expected"; + if (null != e.liveTypeOfficial && e.hasOwnProperty("liveTypeOfficial") && "boolean" != typeof e.liveTypeOfficial) return "liveTypeOfficial: boolean expected"; + if (null != e.groupId && e.hasOwnProperty("groupId") && !(a.isInteger(e.groupId) || e.groupId && a.isInteger(e.groupId.low) && a.isInteger(e.groupId.high))) return "groupId: integer|Long expected"; + if (null != e.orientation && e.hasOwnProperty("orientation") && !(a.isInteger(e.orientation) || e.orientation && a.isInteger(e.orientation.low) && a.isInteger(e.orientation.high))) return "orientation: integer|Long expected"; + if (null != e.category && e.hasOwnProperty("category") && !(a.isInteger(e.category) || e.category && a.isInteger(e.category.low) && a.isInteger(e.category.high))) return "category: integer|Long expected"; + if (null != e.tags && e.hasOwnProperty("tags")) + { + if (!Array.isArray(e.tags)) return "tags: array expected"; + for (n = 0; n < e.tags.length; ++n) + if (!(a.isInteger(e.tags[n]) || e.tags[n] && a.isInteger(e.tags[n].low) && a.isInteger(e.tags[n].high))) return "tags: integer|Long[] expected" + } + if (null != e.startTime && e.hasOwnProperty("startTime") && !(a.isInteger(e.startTime) || e.startTime && a.isInteger(e.startTime.low) && a.isInteger(e.startTime.high))) return "startTime: integer|Long expected"; + if (null != e.popularity && e.hasOwnProperty("popularity") && !(a.isInteger(e.popularity) || e.popularity && a.isInteger(e.popularity.low) && a.isInteger(e.popularity.high))) return "popularity: integer|Long expected"; + if (null != e.popularityStr && e.hasOwnProperty("popularityStr") && !a.isString(e.popularityStr)) return "popularityStr: string expected"; + if (null != e.fcdnAppid && e.hasOwnProperty("fcdnAppid") && !(a.isInteger(e.fcdnAppid) || e.fcdnAppid && a.isInteger(e.fcdnAppid.low) && a.isInteger(e.fcdnAppid.high))) return "fcdnAppid: integer|Long expected"; + if (null != e.sellGoods && e.hasOwnProperty("sellGoods") && "boolean" != typeof e.sellGoods) return "sellGoods: boolean expected"; + if (null != e.webCount && e.hasOwnProperty("webCount") && !(a.isInteger(e.webCount) || e.webCount && a.isInteger(e.webCount.low) && a.isInteger(e.webCount.high))) return "webCount: integer|Long expected"; + if (null != e.verticalCoverUri && e.hasOwnProperty("verticalCoverUri") && !a.isString(e.verticalCoverUri)) return "verticalCoverUri: string expected"; + if (null != e.baseCategory && e.hasOwnProperty("baseCategory") && !(a.isInteger(e.baseCategory) || e.baseCategory && a.isInteger(e.baseCategory.low) && a.isInteger(e.baseCategory.high))) return "baseCategory: integer|Long expected"; + if (null != e.roomAuth && e.hasOwnProperty("roomAuth") && (r = l.webcast.data.RoomAuthStatus.verify(e.roomAuth))) return "roomAuth." + r; + if (null != e.roomTabs && e.hasOwnProperty("roomTabs")) + { + if (!Array.isArray(e.roomTabs)) return "roomTabs: array expected"; + for (n = 0; n < e.roomTabs.length; ++n) + { + if (r = l.webcast.data.RoomTab.verify(e.roomTabs[n])) return "roomTabs." + r + } + } + if (null != e.introduction && e.hasOwnProperty("introduction") && !a.isString(e.introduction)) return "introduction: string expected"; + if (null != e.burst && e.hasOwnProperty("burst") && (r = l.webcast.data.BurstInfo.verify(e.burst))) return "burst." + r; + if (null != e.healthScore && e.hasOwnProperty("healthScore") && (r = l.webcast.data.RoomHealthScoreInfo.verify(e.healthScore))) return "healthScore." + r; + if (null != e.isReplay && e.hasOwnProperty("isReplay") && "boolean" != typeof e.isReplay) return "isReplay: boolean expected"; + if (null != e.vid && e.hasOwnProperty("vid") && !a.isString(e.vid)) return "vid: string expected"; + if (null != e.groupSource && e.hasOwnProperty("groupSource") && !(a.isInteger(e.groupSource) || e.groupSource && a.isInteger(e.groupSource.low) && a.isInteger(e.groupSource.high))) return "groupSource: integer|Long expected"; + if (null != e.lotteryFinishTime && e.hasOwnProperty("lotteryFinishTime") && !(a.isInteger(e.lotteryFinishTime) || e.lotteryFinishTime && a.isInteger(e.lotteryFinishTime.low) && a.isInteger(e.lotteryFinishTime.high))) return "lotteryFinishTime: integer|Long expected"; + if (null != e.activityTag && e.hasOwnProperty("activityTag") && (r = l.webcast.data.RoomActivityTag.verify(e.activityTag))) return "activityTag." + r; + if (null != e.portraitCover && e.hasOwnProperty("portraitCover") && (r = l.webcast.data.Image.verify(e.portraitCover))) return "portraitCover." + r; + if (null != e.background && e.hasOwnProperty("background") && (r = l.webcast.data.Image.verify(e.background))) return "background." + r; + if (null != e.layout && e.hasOwnProperty("layout") && !(a.isInteger(e.layout) || e.layout && a.isInteger(e.layout.low) && a.isInteger(e.layout.high))) return "layout: integer|Long expected"; + if (null != e.waitCopy && e.hasOwnProperty("waitCopy") && !a.isString(e.waitCopy)) return "waitCopy: string expected"; + if (null != e.guideButton && e.hasOwnProperty("guideButton") && (r = l.webcast.data.Image.verify(e.guideButton))) return "guideButton." + r; + if (null != e.previewCopy && e.hasOwnProperty("previewCopy") && !a.isString(e.previewCopy)) return "previewCopy: string expected"; + if (null != e.isShowInquiryBall && e.hasOwnProperty("isShowInquiryBall") && "boolean" != typeof e.isShowInquiryBall) return "isShowInquiryBall: boolean expected"; + if (null != e.matchInfo && e.hasOwnProperty("matchInfo") && (r = l.webcast.data.MatchInfo.verify(e.matchInfo))) return "matchInfo." + r; + if (null != e.useFilter && e.hasOwnProperty("useFilter") && "boolean" != typeof e.useFilter) return "useFilter: boolean expected"; + if (null != e.giftMsgStyle && e.hasOwnProperty("giftMsgStyle") && !(a.isInteger(e.giftMsgStyle) || e.giftMsgStyle && a.isInteger(e.giftMsgStyle.low) && a.isInteger(e.giftMsgStyle.high))) return "giftMsgStyle: integer|Long expected"; + if (null != e.distanceKm && e.hasOwnProperty("distanceKm") && !a.isString(e.distanceKm)) return "distanceKm: string expected"; + if (null != e.finishUrl && e.hasOwnProperty("finishUrl") && !a.isString(e.finishUrl)) return "finishUrl: string expected"; + if (null != e.officialRoomInfo && e.hasOwnProperty("officialRoomInfo") && (r = l.webcast.data.OfficialRoomInfo.verify(e.officialRoomInfo))) return "officialRoomInfo." + r; + if (null != e.isShowUserCardSwitch && e.hasOwnProperty("isShowUserCardSwitch") && "boolean" != typeof e.isShowUserCardSwitch) return "isShowUserCardSwitch: boolean expected"; + if (null != e.videoFeedTag && e.hasOwnProperty("videoFeedTag") && !a.isString(e.videoFeedTag)) return "videoFeedTag: string expected"; + if (null != e.forumExtraData && e.hasOwnProperty("forumExtraData") && !a.isString(e.forumExtraData)) return "forumExtraData: string expected"; + if (null != e.fansclubMsgStyle && e.hasOwnProperty("fansclubMsgStyle") && !(a.isInteger(e.fansclubMsgStyle) || e.fansclubMsgStyle && a.isInteger(e.fansclubMsgStyle.low) && a.isInteger(e.fansclubMsgStyle.high))) return "fansclubMsgStyle: integer|Long expected"; + if (null != e.followMsgStyle && e.hasOwnProperty("followMsgStyle") && !(a.isInteger(e.followMsgStyle) || e.followMsgStyle && a.isInteger(e.followMsgStyle.low) && a.isInteger(e.followMsgStyle.high))) return "followMsgStyle: integer|Long expected"; + if (null != e.shareMsgStyle && e.hasOwnProperty("shareMsgStyle") && !(a.isInteger(e.shareMsgStyle) || e.shareMsgStyle && a.isInteger(e.shareMsgStyle.low) && a.isInteger(e.shareMsgStyle.high))) return "shareMsgStyle: integer|Long expected"; + if (null != e.roomLayout && e.hasOwnProperty("roomLayout") && !(a.isInteger(e.roomLayout) || e.roomLayout && a.isInteger(e.roomLayout.low) && a.isInteger(e.roomLayout.high))) return "roomLayout: integer|Long expected"; + if (null != e.shortTitle && e.hasOwnProperty("shortTitle") && !a.isString(e.shortTitle)) return "shortTitle: string expected"; + if (null != e.shortTouchAreaConfig && e.hasOwnProperty("shortTouchAreaConfig") && (r = l.webcast.data.RoomShortTouchAreaConfig.verify(e.shortTouchAreaConfig))) return "shortTouchAreaConfig." + r; + if (null != e.bookTime && e.hasOwnProperty("bookTime") && !(a.isInteger(e.bookTime) || e.bookTime && a.isInteger(e.bookTime.low) && a.isInteger(e.bookTime.high))) return "bookTime: integer|Long expected"; + if (null != e.bookEndTime && e.hasOwnProperty("bookEndTime") && !(a.isInteger(e.bookEndTime) || e.bookEndTime && a.isInteger(e.bookEndTime.low) && a.isInteger(e.bookEndTime.high))) return "bookEndTime: integer|Long expected"; + if (null != e.roomAuditStatus && e.hasOwnProperty("roomAuditStatus") && !(a.isInteger(e.roomAuditStatus) || e.roomAuditStatus && a.isInteger(e.roomAuditStatus.low) && a.isInteger(e.roomAuditStatus.high))) return "roomAuditStatus: integer|Long expected"; + if (null != e.liveDistribution && e.hasOwnProperty("liveDistribution")) + { + if (!Array.isArray(e.liveDistribution)) return "liveDistribution: array expected"; + for (n = 0; n < e.liveDistribution.length; ++n) + if (!(a.isInteger(e.liveDistribution[n]) || e.liveDistribution[n] && a.isInteger(e.liveDistribution[n].low) && a.isInteger(e.liveDistribution[n].high))) return "liveDistribution: integer|Long[] expected" + } + if (null != e.tv && e.hasOwnProperty("tv") && (r = l.webcast.data.TVStation.verify(e.tv))) return "tv." + r; + if (null != e.replay && e.hasOwnProperty("replay") && "boolean" != typeof e.replay) return "replay: boolean expected"; + if (null != e.challengeInfo && e.hasOwnProperty("challengeInfo") && !a.isString(e.challengeInfo)) return "challengeInfo: string expected"; + if (null != e.likeCount && e.hasOwnProperty("likeCount") && !(a.isInteger(e.likeCount) || e.likeCount && a.isInteger(e.likeCount.low) && a.isInteger(e.likeCount.high))) return "likeCount: integer|Long expected"; + if (null != e.searchId && e.hasOwnProperty("searchId") && !(a.isInteger(e.searchId) || e.searchId && a.isInteger(e.searchId.low) && a.isInteger(e.searchId.high))) return "searchId: integer|Long expected"; + if (null != e.anchorScheduledTimeText && e.hasOwnProperty("anchorScheduledTimeText") && !a.isString(e.anchorScheduledTimeText)) return "anchorScheduledTimeText: string expected"; + if (null != e.hotSentenceInfo && e.hasOwnProperty("hotSentenceInfo") && !a.isString(e.hotSentenceInfo)) return "hotSentenceInfo: string expected"; + if (null != e.replayLocation && e.hasOwnProperty("replayLocation") && !(a.isInteger(e.replayLocation) || e.replayLocation && a.isInteger(e.replayLocation.low) && a.isInteger(e.replayLocation.high))) return "replayLocation: integer|Long expected"; + if (null != e.streamCloseTime && e.hasOwnProperty("streamCloseTime") && !(a.isInteger(e.streamCloseTime) || e.streamCloseTime && a.isInteger(e.streamCloseTime.low) && a.isInteger(e.streamCloseTime.high))) return "streamCloseTime: integer|Long expected"; + if (null != e.contentTag && e.hasOwnProperty("contentTag") && !a.isString(e.contentTag)) return "contentTag: string expected"; + if (null != e.contentLabel && e.hasOwnProperty("contentLabel") && (r = l.webcast.data.Image.verify(e.contentLabel))) return "contentLabel." + r; + if (null != e.operationLabel && e.hasOwnProperty("operationLabel") && (r = l.webcast.data.Image.verify(e.operationLabel))) return "operationLabel." + r; + if (null != e.anchorTabType && e.hasOwnProperty("anchorTabType") && !a.isInteger(e.anchorTabType)) return "anchorTabType: integer expected"; + if (null != e.gameExtra && e.hasOwnProperty("gameExtra") && (r = l.webcast.data.GameExtra.verify(e.gameExtra))) return "gameExtra." + r; + if (null != e.officialChannel && e.hasOwnProperty("officialChannel") && (r = l.webcast.data.OfficialChannelInfo.verify(e.officialChannel))) return "officialChannel." + r; + if (null != e.stamps && e.hasOwnProperty("stamps") && !a.isString(e.stamps)) return "stamps: string expected"; + if (null != e.commentBox && e.hasOwnProperty("commentBox") && (r = l.webcast.data.CommentBox.verify(e.commentBox))) return "commentBox." + r; + if (null != e.businessLive && e.hasOwnProperty("businessLive") && !a.isInteger(e.businessLive)) return "businessLive: integer expected"; + if (null != e.withKtv && e.hasOwnProperty("withKtv") && "boolean" != typeof e.withKtv) return "withKtv: boolean expected"; + if (null != e.withDrawSomething && e.hasOwnProperty("withDrawSomething") && "boolean" != typeof e.withDrawSomething) return "withDrawSomething: boolean expected"; + if (null != e.webcastCommentTcs && e.hasOwnProperty("webcastCommentTcs") && !(a.isInteger(e.webcastCommentTcs) || e.webcastCommentTcs && a.isInteger(e.webcastCommentTcs.low) && a.isInteger(e.webcastCommentTcs.high))) return "webcastCommentTcs: integer|Long expected"; + if (null != e.roomTag && e.hasOwnProperty("roomTag") && !(a.isInteger(e.roomTag) || e.roomTag && a.isInteger(e.roomTag.low) && a.isInteger(e.roomTag.high))) return "roomTag: integer|Long expected"; + if (null != e.linkerMap && e.hasOwnProperty("linkerMap")) + { + if (!a.isObject(e.linkerMap)) return "linkerMap: object expected"; + for (t = Object.keys(e.linkerMap), n = 0; n < t.length; ++n) + if (!(a.isInteger(e.linkerMap[t[n]]) || e.linkerMap[t[n]] && a.isInteger(e.linkerMap[t[n]].low) && a.isInteger(e.linkerMap[t[n]].high))) return "linkerMap: integer|Long{k:string} expected" + } + if (null != e.finishReason && e.hasOwnProperty("finishReason") && !a.isInteger(e.finishReason)) return "finishReason: integer expected"; + if (null != e.roomCart && e.hasOwnProperty("roomCart") && (r = l.webcast.data.RoomCart.verify(e.roomCart))) return "roomCart." + r; + if (null != e.scrollConfig && e.hasOwnProperty("scrollConfig") && !a.isString(e.scrollConfig)) return "scrollConfig: string expected"; + if (null != e.relationTag && e.hasOwnProperty("relationTag") && !a.isString(e.relationTag)) return "relationTag: string expected"; + if (null != e.ownerDeviceId && e.hasOwnProperty("ownerDeviceId") && !(a.isInteger(e.ownerDeviceId) || e.ownerDeviceId && a.isInteger(e.ownerDeviceId.low) && a.isInteger(e.ownerDeviceId.high))) return "ownerDeviceId: integer|Long expected"; + if (null != e.autoCover && e.hasOwnProperty("autoCover") && !(a.isInteger(e.autoCover) || e.autoCover && a.isInteger(e.autoCover.low) && a.isInteger(e.autoCover.high))) return "autoCover: integer|Long expected"; + if (null != e.appId && e.hasOwnProperty("appId") && !(a.isInteger(e.appId) || e.appId && a.isInteger(e.appId.low) && a.isInteger(e.appId.high))) return "appId: integer|Long expected"; + if (null != e.webcastSdkVersion && e.hasOwnProperty("webcastSdkVersion") && !(a.isInteger(e.webcastSdkVersion) || e.webcastSdkVersion && a.isInteger(e.webcastSdkVersion.low) && a.isInteger(e.webcastSdkVersion.high))) return "webcastSdkVersion: integer|Long expected"; + if (null != e.commentNameMode && e.hasOwnProperty("commentNameMode") && !(a.isInteger(e.commentNameMode) || e.commentNameMode && a.isInteger(e.commentNameMode.low) && a.isInteger(e.commentNameMode.high))) return "commentNameMode: integer|Long expected"; + if (null != e.roomCreateAbParam && e.hasOwnProperty("roomCreateAbParam") && !a.isString(e.roomCreateAbParam)) return "roomCreateAbParam: string expected"; + if (null != e.preEnterTime && e.hasOwnProperty("preEnterTime") && !(a.isInteger(e.preEnterTime) || e.preEnterTime && a.isInteger(e.preEnterTime.low) && a.isInteger(e.preEnterTime.high))) return "preEnterTime: integer|Long expected"; + if (null != e.ranklistAudienceType && e.hasOwnProperty("ranklistAudienceType") && !(a.isInteger(e.ranklistAudienceType) || e.ranklistAudienceType && a.isInteger(e.ranklistAudienceType.low) && a.isInteger(e.ranklistAudienceType.high))) return "ranklistAudienceType: integer|Long expected"; + if (null != e.previewFlowTag && e.hasOwnProperty("previewFlowTag") && !(a.isInteger(e.previewFlowTag) || e.previewFlowTag && a.isInteger(e.previewFlowTag.low) && a.isInteger(e.previewFlowTag.high))) return "previewFlowTag: integer|Long expected"; + if (null != e.previewTagUrl && e.hasOwnProperty("previewTagUrl") && (r = l.webcast.data.Image.verify(e.previewTagUrl))) return "previewTagUrl." + r; + if (null != e.quizExtra && e.hasOwnProperty("quizExtra") && (r = l.webcast.data.QuizExtra.verify(e.quizExtra))) return "quizExtra." + r; + if (null != e.AnchorABMap && e.hasOwnProperty("AnchorABMap")) + { + if (!a.isObject(e.AnchorABMap)) return "AnchorABMap: object expected"; + for (t = Object.keys(e.AnchorABMap), n = 0; n < t.length; ++n) + if (!a.isString(e.AnchorABMap[t[n]])) return "AnchorABMap: string{k:string} expected" + } + if (null != e.linkerUsers && e.hasOwnProperty("linkerUsers") && (r = l.webcast.data.LinkerUsers.verify(e.linkerUsers))) return "linkerUsers." + r; + if (null != e.linkmicDisplayType && e.hasOwnProperty("linkmicDisplayType") && !(a.isInteger(e.linkmicDisplayType) || e.linkmicDisplayType && a.isInteger(e.linkmicDisplayType.low) && a.isInteger(e.linkmicDisplayType.high))) return "linkmicDisplayType: integer|Long expected"; + if (null != e.AudioRoomBGImage && e.hasOwnProperty("AudioRoomBGImage") && (r = l.webcast.data.AudioBGData.verify(e.AudioRoomBGImage))) return "AudioRoomBGImage." + r; + if (null != e.cityTopLinkerUsers && e.hasOwnProperty("cityTopLinkerUsers") && (r = l.webcast.data.LinkerUsers.verify(e.cityTopLinkerUsers))) return "cityTopLinkerUsers." + r; + if (null != e.borderInfo && e.hasOwnProperty("borderInfo") && (r = l.webcast.data.BorderInfo.verify(e.borderInfo))) return "borderInfo." + r; + if (null != e.cityTopBackground && e.hasOwnProperty("cityTopBackground") && (r = l.webcast.data.Image.verify(e.cityTopBackground))) return "cityTopBackground." + r; + if (null != e.cityTopDistance && e.hasOwnProperty("cityTopDistance") && !a.isString(e.cityTopDistance)) return "cityTopDistance: string expected"; + if (null != e.liveRoomMode && e.hasOwnProperty("liveRoomMode") && !(a.isInteger(e.liveRoomMode) || e.liveRoomMode && a.isInteger(e.liveRoomMode.low) && a.isInteger(e.liveRoomMode.high))) return "liveRoomMode: integer|Long expected"; + if (null != e.bonus && e.hasOwnProperty("bonus") && (r = l.webcast.data.Bonus.verify(e.bonus))) return "bonus." + r; + if (null != e.highlight && e.hasOwnProperty("highlight") && "boolean" != typeof e.highlight) return "highlight: boolean expected"; + if (null != e.isOfficialChannelRoom && e.hasOwnProperty("isOfficialChannelRoom") && "boolean" != typeof e.isOfficialChannelRoom) return "isOfficialChannelRoom: boolean expected"; + if (null != e.activityRoomSkinInfo && e.hasOwnProperty("activityRoomSkinInfo") && (r = l.webcast.data.ActivityRoomSkinInfo.verify(e.activityRoomSkinInfo))) return "activityRoomSkinInfo." + r; + if (null != e.fansGroupAdminUserIds && e.hasOwnProperty("fansGroupAdminUserIds")) + { + if (!Array.isArray(e.fansGroupAdminUserIds)) return "fansGroupAdminUserIds: array expected"; + for (n = 0; n < e.fansGroupAdminUserIds.length; ++n) + if (!(a.isInteger(e.fansGroupAdminUserIds[n]) || e.fansGroupAdminUserIds[n] && a.isInteger(e.fansGroupAdminUserIds[n].low) && a.isInteger(e.fansGroupAdminUserIds[n].high))) return "fansGroupAdminUserIds: integer|Long[] expected" + } + if (null != e.replayInfo && e.hasOwnProperty("replayInfo") && (r = l.webcast.data.RoomReplayInfo.verify(e.replayInfo))) return "replayInfo." + r; + if (null != e.officialChannelUid && e.hasOwnProperty("officialChannelUid") && !(a.isInteger(e.officialChannelUid) || e.officialChannelUid && a.isInteger(e.officialChannelUid.low) && a.isInteger(e.officialChannelUid.high))) return "officialChannelUid: integer|Long expected"; + if (null != e.livePlatformSource && e.hasOwnProperty("livePlatformSource") && !a.isString(e.livePlatformSource)) return "livePlatformSource: string expected"; + if (null != e.acquaintanceStatus && e.hasOwnProperty("acquaintanceStatus") && !(a.isInteger(e.acquaintanceStatus) || e.acquaintanceStatus && a.isInteger(e.acquaintanceStatus.low) && a.isInteger(e.acquaintanceStatus.high))) return "acquaintanceStatus: integer|Long expected"; + if (null != e.commentWallInfo && e.hasOwnProperty("commentWallInfo") && (r = l.webcast.data.CommentWallInfo.verify(e.commentWallInfo))) return "commentWallInfo." + r; + if (null != e.commentWallPosition && e.hasOwnProperty("commentWallPosition") && (r = l.webcast.data.CommentWallPosition.verify(e.commentWallPosition))) return "commentWallPosition." + r; + if (null != e.liveTypeVsLive && e.hasOwnProperty("liveTypeVsLive") && "boolean" != typeof e.liveTypeVsLive) return "liveTypeVsLive: boolean expected"; + if (null != e.liveTypeVsPremiere && e.hasOwnProperty("liveTypeVsPremiere") && "boolean" != typeof e.liveTypeVsPremiere) return "liveTypeVsPremiere: boolean expected"; + if (null != e.episodeExtra && e.hasOwnProperty("episodeExtra") && (r = l.webcast.data.EpisodeExtraInfo.verify(e.episodeExtra))) return "episodeExtra." + r; + if (null != e.vsRoles && e.hasOwnProperty("vsRoles")) + { + if (!Array.isArray(e.vsRoles)) return "vsRoles: array expected"; + for (n = 0; n < e.vsRoles.length; ++n) switch (e.vsRoles[n]) + { + default: + return "vsRoles: enum value[] expected"; + case 0: + case 1: + } + } + if (null != e.itemExplicitInfo && e.hasOwnProperty("itemExplicitInfo") && !a.isString(e.itemExplicitInfo)) return "itemExplicitInfo: string expected"; + if (null != e.shortTouchAuth && e.hasOwnProperty("shortTouchAuth") && (r = l.webcast.data.ShortTouchAuth.verify(e.shortTouchAuth))) return "shortTouchAuth." + r; + if (null != e.sofaLayout && e.hasOwnProperty("sofaLayout") && !(a.isInteger(e.sofaLayout) || e.sofaLayout && a.isInteger(e.sofaLayout.low) && a.isInteger(e.sofaLayout.high))) return "sofaLayout: integer|Long expected"; + if (null != e.announcementInfo && e.hasOwnProperty("announcementInfo") && (r = l.webcast.data.AnnouncementInfo.verify(e.announcementInfo))) return "announcementInfo." + r; + if (null != e.isNeedCheckList && e.hasOwnProperty("isNeedCheckList") && "boolean" != typeof e.isNeedCheckList) return "isNeedCheckList: boolean expected"; + if (null != e.liveStatusInfo && e.hasOwnProperty("liveStatusInfo") && (r = l.webcast.data.LiveStatusInfo.verify(e.liveStatusInfo))) return "liveStatusInfo." + r; + if (null != e.imInfo && e.hasOwnProperty("imInfo") && (r = l.webcast.data.RoomIMInfo.verify(e.imInfo))) return "imInfo." + r; + if (null != e.assistLabel && e.hasOwnProperty("assistLabel") && (r = l.webcast.data.LabelInfo.verify(e.assistLabel))) return "assistLabel." + r; + if (null != e.interactOpenExtra && e.hasOwnProperty("interactOpenExtra") && (r = l.webcast.data.InteractOpenExtra.verify(e.interactOpenExtra))) return "interactOpenExtra." + r; + if (null != e.verticalTypeInfo && e.hasOwnProperty("verticalTypeInfo") && (r = l.webcast.data.VerticalTypeInfo.verify(e.verticalTypeInfo))) return "verticalTypeInfo." + r; + if (null != e.filterWords && e.hasOwnProperty("filterWords")) + { + if (!Array.isArray(e.filterWords)) return "filterWords: array expected"; + for (n = 0; n < e.filterWords.length; ++n) + { + var r; + if (r = l.webcast.data.FilterWord.verify(e.filterWords[n])) return "filterWords." + r + } + } + if (null != e.dynamicLabel && e.hasOwnProperty("dynamicLabel") && (r = l.webcast.data.LabelInfo.verify(e.dynamicLabel))) return "dynamicLabel." + r; + if (null != e.linkerDetail && e.hasOwnProperty("linkerDetail") && (r = l.webcast.data.LinkerDetail.verify(e.linkerDetail))) return "linkerDetail." + r; + if (null != e.visibilityRange && e.hasOwnProperty("visibilityRange") && !a.isInteger(e.visibilityRange)) return "visibilityRange: integer expected"; + if (null != e.cornerMarkReach && e.hasOwnProperty("cornerMarkReach") && (r = l.webcast.data.CornerMarkReach.verify(e.cornerMarkReach))) return "cornerMarkReach." + r; + if (null != e.previewExpose && e.hasOwnProperty("previewExpose") && (r = l.webcast.data.PreviewExposeData.verify(e.previewExpose))) return "previewExpose." + r; + if (null != e.welfareProjectInfo && e.hasOwnProperty("welfareProjectInfo") && (r = l.webcast.data.WelfareProjectInfo.verify(e.welfareProjectInfo))) return "welfareProjectInfo." + r; + if (null != e.gameRoomType && e.hasOwnProperty("gameRoomType") && !a.isInteger(e.gameRoomType)) return "gameRoomType: integer expected"; + if (null != e.paidLiveData && e.hasOwnProperty("paidLiveData") && (r = l.webcast.data.PaidLiveData.verify(e.paidLiveData))) return "paidLiveData." + r; + if (null != e.easterEggData && e.hasOwnProperty("easterEggData") && (r = l.webcast.data.EasterEggData.verify(e.easterEggData))) return "easterEggData." + r; + if (null != e.titleRecommend && e.hasOwnProperty("titleRecommend") && "boolean" != typeof e.titleRecommend) return "titleRecommend: boolean expected"; + if (null != e.danmakuDetail && e.hasOwnProperty("danmakuDetail") && !(a.isInteger(e.danmakuDetail) || e.danmakuDetail && a.isInteger(e.danmakuDetail.low) && a.isInteger(e.danmakuDetail.high))) return "danmakuDetail: integer|Long expected"; + if (null != e.avatarLiveInfo && e.hasOwnProperty("avatarLiveInfo") && (r = l.webcast.data.AvatarLiveInfo.verify(e.avatarLiveInfo))) return "avatarLiveInfo." + r; + if (null != e.circleInfo && e.hasOwnProperty("circleInfo") && (r = l.webcast.data.CircleInfo.verify(e.circleInfo))) return "circleInfo." + r; + if (null != e.hasPromotionGames && e.hasOwnProperty("hasPromotionGames") && !(a.isInteger(e.hasPromotionGames) || e.hasPromotionGames && a.isInteger(e.hasPromotionGames.low) && a.isInteger(e.hasPromotionGames.high))) return "hasPromotionGames: integer|Long expected"; + if (null != e.screenshotSover && e.hasOwnProperty("screenshotSover") && (r = l.webcast.data.Image.verify(e.screenshotSover))) return "screenshotSover." + r; + if (null != e.appearance && e.hasOwnProperty("appearance") && (r = l.webcast.data.Appearance.verify(e.appearance))) return "appearance." + r; + if (null != e.ecomData && e.hasOwnProperty("ecomData") && (r = l.webcast.data.EcomData.verify(e.ecomData))) return "ecomData." + r; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.Room) return e; + var t = new l.webcast.data.Room; + if (null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), null != e.idStr && (t.idStr = String(e.idStr)), null != e.status && (a.Long ? (t.status = a.Long.fromValue(e.status)).unsigned = !1 : "string" == typeof e.status ? t.status = parseInt(e.status, 10) : "number" == typeof e.status ? t.status = e.status : "object" == typeof e.status && (t.status = new a.LongBits(e.status.low >>> 0, e.status.high >>> 0).toNumber())), null != e.ownerUserId && (a.Long ? (t.ownerUserId = a.Long.fromValue(e.ownerUserId)).unsigned = !1 : "string" == typeof e.ownerUserId ? t.ownerUserId = parseInt(e.ownerUserId, 10) : "number" == typeof e.ownerUserId ? t.ownerUserId = e.ownerUserId : "object" == typeof e.ownerUserId && (t.ownerUserId = new a.LongBits(e.ownerUserId.low >>> 0, e.ownerUserId.high >>> 0).toNumber())), null != e.title && (t.title = String(e.title)), null != e.userCount && (a.Long ? (t.userCount = a.Long.fromValue(e.userCount)).unsigned = !1 : "string" == typeof e.userCount ? t.userCount = parseInt(e.userCount, 10) : "number" == typeof e.userCount ? t.userCount = e.userCount : "object" == typeof e.userCount && (t.userCount = new a.LongBits(e.userCount.low >>> 0, e.userCount.high >>> 0).toNumber())), null != e.createTime && (a.Long ? (t.createTime = a.Long.fromValue(e.createTime)).unsigned = !1 : "string" == typeof e.createTime ? t.createTime = parseInt(e.createTime, 10) : "number" == typeof e.createTime ? t.createTime = e.createTime : "object" == typeof e.createTime && (t.createTime = new a.LongBits(e.createTime.low >>> 0, e.createTime.high >>> 0).toNumber())), null != e.linkmicLayout && (a.Long ? (t.linkmicLayout = a.Long.fromValue(e.linkmicLayout)).unsigned = !1 : "string" == typeof e.linkmicLayout ? t.linkmicLayout = parseInt(e.linkmicLayout, 10) : "number" == typeof e.linkmicLayout ? t.linkmicLayout = e.linkmicLayout : "object" == typeof e.linkmicLayout && (t.linkmicLayout = new a.LongBits(e.linkmicLayout.low >>> 0, e.linkmicLayout.high >>> 0).toNumber())), null != e.finishTime && (a.Long ? (t.finishTime = a.Long.fromValue(e.finishTime)).unsigned = !1 : "string" == typeof e.finishTime ? t.finishTime = parseInt(e.finishTime, 10) : "number" == typeof e.finishTime ? t.finishTime = e.finishTime : "object" == typeof e.finishTime && (t.finishTime = new a.LongBits(e.finishTime.low >>> 0, e.finishTime.high >>> 0).toNumber())), null != e.extra) + { + if ("object" != typeof e.extra) throw TypeError(".webcast.data.Room.extra: object expected"); + t.extra = l.webcast.data.RoomExtra.fromObject(e.extra) + } + if (null != e.dynamicCoverUri && (t.dynamicCoverUri = String(e.dynamicCoverUri)), e.dynamicCoverDict) + { + if ("object" != typeof e.dynamicCoverDict) throw TypeError(".webcast.data.Room.dynamicCoverDict: object expected"); + t.dynamicCoverDict = {}; + for (var n = Object.keys(e.dynamicCoverDict), r = 0; r < n.length; ++r) t.dynamicCoverDict[n[r]] = String(e.dynamicCoverDict[n[r]]) + } + if (null != e.lastPingTime && (a.Long ? (t.lastPingTime = a.Long.fromValue(e.lastPingTime)).unsigned = !1 : "string" == typeof e.lastPingTime ? t.lastPingTime = parseInt(e.lastPingTime, 10) : "number" == typeof e.lastPingTime ? t.lastPingTime = e.lastPingTime : "object" == typeof e.lastPingTime && (t.lastPingTime = new a.LongBits(e.lastPingTime.low >>> 0, e.lastPingTime.high >>> 0).toNumber())), null != e.liveId && (a.Long ? (t.liveId = a.Long.fromValue(e.liveId)).unsigned = !1 : "string" == typeof e.liveId ? t.liveId = parseInt(e.liveId, 10) : "number" == typeof e.liveId ? t.liveId = e.liveId : "object" == typeof e.liveId && (t.liveId = new a.LongBits(e.liveId.low >>> 0, e.liveId.high >>> 0).toNumber())), null != e.streamProvider && (a.Long ? (t.streamProvider = a.Long.fromValue(e.streamProvider)).unsigned = !1 : "string" == typeof e.streamProvider ? t.streamProvider = parseInt(e.streamProvider, 10) : "number" == typeof e.streamProvider ? t.streamProvider = e.streamProvider : "object" == typeof e.streamProvider && (t.streamProvider = new a.LongBits(e.streamProvider.low >>> 0, e.streamProvider.high >>> 0).toNumber())), null != e.osType && (a.Long ? (t.osType = a.Long.fromValue(e.osType)).unsigned = !1 : "string" == typeof e.osType ? t.osType = parseInt(e.osType, 10) : "number" == typeof e.osType ? t.osType = e.osType : "object" == typeof e.osType && (t.osType = new a.LongBits(e.osType.low >>> 0, e.osType.high >>> 0).toNumber())), null != e.clientVersion && (a.Long ? (t.clientVersion = a.Long.fromValue(e.clientVersion)).unsigned = !1 : "string" == typeof e.clientVersion ? t.clientVersion = parseInt(e.clientVersion, 10) : "number" == typeof e.clientVersion ? t.clientVersion = e.clientVersion : "object" == typeof e.clientVersion && (t.clientVersion = new a.LongBits(e.clientVersion.low >>> 0, e.clientVersion.high >>> 0).toNumber())), null != e.withLinkmic && (t.withLinkmic = Boolean(e.withLinkmic)), null != e.enableRoomPerspective && (t.enableRoomPerspective = Boolean(e.enableRoomPerspective)), null != e.cover) + { + if ("object" != typeof e.cover) throw TypeError(".webcast.data.Room.cover: object expected"); + t.cover = l.webcast.data.Image.fromObject(e.cover) + } + if (null != e.dynamicCover) + { + if ("object" != typeof e.dynamicCover) throw TypeError(".webcast.data.Room.dynamicCover: object expected"); + t.dynamicCover = l.webcast.data.Image.fromObject(e.dynamicCover) + } + if (null != e.dynamicCoverLow) + { + if ("object" != typeof e.dynamicCoverLow) throw TypeError(".webcast.data.Room.dynamicCoverLow: object expected"); + t.dynamicCoverLow = l.webcast.data.Image.fromObject(e.dynamicCoverLow) + } + if (null != e.shareUrl && (t.shareUrl = String(e.shareUrl)), null != e.anchorShareText && (t.anchorShareText = String(e.anchorShareText)), null != e.userShareText && (t.userShareText = String(e.userShareText)), null != e.streamId && (a.Long ? (t.streamId = a.Long.fromValue(e.streamId)).unsigned = !1 : "string" == typeof e.streamId ? t.streamId = parseInt(e.streamId, 10) : "number" == typeof e.streamId ? t.streamId = e.streamId : "object" == typeof e.streamId && (t.streamId = new a.LongBits(e.streamId.low >>> 0, e.streamId.high >>> 0).toNumber())), null != e.streamIdStr && (t.streamIdStr = String(e.streamIdStr)), null != e.streamUrl) + { + if ("object" != typeof e.streamUrl) throw TypeError(".webcast.data.Room.streamUrl: object expected"); + t.streamUrl = l.webcast.data.StreamUrl.fromObject(e.streamUrl) + } + if (null != e.mosaicStatus && (a.Long ? (t.mosaicStatus = a.Long.fromValue(e.mosaicStatus)).unsigned = !1 : "string" == typeof e.mosaicStatus ? t.mosaicStatus = parseInt(e.mosaicStatus, 10) : "number" == typeof e.mosaicStatus ? t.mosaicStatus = e.mosaicStatus : "object" == typeof e.mosaicStatus && (t.mosaicStatus = new a.LongBits(e.mosaicStatus.low >>> 0, e.mosaicStatus.high >>> 0).toNumber())), null != e.mosaicTip && (t.mosaicTip = String(e.mosaicTip)), null != e.cellStyle && (a.Long ? (t.cellStyle = a.Long.fromValue(e.cellStyle)).unsigned = !1 : "string" == typeof e.cellStyle ? t.cellStyle = parseInt(e.cellStyle, 10) : "number" == typeof e.cellStyle ? t.cellStyle = e.cellStyle : "object" == typeof e.cellStyle && (t.cellStyle = new a.LongBits(e.cellStyle.low >>> 0, e.cellStyle.high >>> 0).toNumber())), null != e.linkMic) + { + if ("object" != typeof e.linkMic) throw TypeError(".webcast.data.Room.linkMic: object expected"); + t.linkMic = l.webcast.data.LinkMic.fromObject(e.linkMic) + } + if (null != e.luckymoneyNum && (a.Long ? (t.luckymoneyNum = a.Long.fromValue(e.luckymoneyNum)).unsigned = !1 : "string" == typeof e.luckymoneyNum ? t.luckymoneyNum = parseInt(e.luckymoneyNum, 10) : "number" == typeof e.luckymoneyNum ? t.luckymoneyNum = e.luckymoneyNum : "object" == typeof e.luckymoneyNum && (t.luckymoneyNum = new a.LongBits(e.luckymoneyNum.low >>> 0, e.luckymoneyNum.high >>> 0).toNumber())), e.decoList) + { + if (!Array.isArray(e.decoList)) throw TypeError(".webcast.data.Room.decoList: array expected"); + t.decoList = []; + for (r = 0; r < e.decoList.length; ++r) + { + if ("object" != typeof e.decoList[r]) throw TypeError(".webcast.data.Room.decoList: object expected"); + t.decoList[r] = l.webcast.data.Decoration.fromObject(e.decoList[r]) + } + } + if (e.topFans) + { + if (!Array.isArray(e.topFans)) throw TypeError(".webcast.data.Room.topFans: array expected"); + t.topFans = []; + for (r = 0; r < e.topFans.length; ++r) + { + if ("object" != typeof e.topFans[r]) throw TypeError(".webcast.data.Room.topFans: object expected"); + t.topFans[r] = l.webcast.data.TopFan.fromObject(e.topFans[r]) + } + } + if (null != e.stats) + { + if ("object" != typeof e.stats) throw TypeError(".webcast.data.Room.stats: object expected"); + t.stats = l.webcast.data.RoomStats.fromObject(e.stats) + } + if (null != e.sunDailyIconContent && (t.sunDailyIconContent = String(e.sunDailyIconContent)), null != e.distance && (t.distance = String(e.distance)), null != e.distanceCity && (t.distanceCity = String(e.distanceCity)), null != e.location && (t.location = String(e.location)), null != e.realDistance && (t.realDistance = String(e.realDistance)), null != e.feedRoomLabel) + { + if ("object" != typeof e.feedRoomLabel) throw TypeError(".webcast.data.Room.feedRoomLabel: object expected"); + t.feedRoomLabel = l.webcast.data.Image.fromObject(e.feedRoomLabel) + } + if (null != e.commonLabelList && (t.commonLabelList = String(e.commonLabelList)), null != e.livingRoomAttrs) + { + if ("object" != typeof e.livingRoomAttrs) throw TypeError(".webcast.data.Room.livingRoomAttrs: object expected"); + t.livingRoomAttrs = l.webcast.data.RoomUserAttr.fromObject(e.livingRoomAttrs) + } + if (e.adminUserIds) + { + if (!Array.isArray(e.adminUserIds)) throw TypeError(".webcast.data.Room.adminUserIds: array expected"); + t.adminUserIds = []; + for (r = 0; r < e.adminUserIds.length; ++r) a.Long ? (t.adminUserIds[r] = a.Long.fromValue(e.adminUserIds[r])).unsigned = !1 : "string" == typeof e.adminUserIds[r] ? t.adminUserIds[r] = parseInt(e.adminUserIds[r], 10) : "number" == typeof e.adminUserIds[r] ? t.adminUserIds[r] = e.adminUserIds[r] : "object" == typeof e.adminUserIds[r] && (t.adminUserIds[r] = new a.LongBits(e.adminUserIds[r].low >>> 0, e.adminUserIds[r].high >>> 0).toNumber()) + } + if (null != e.owner) + { + if ("object" != typeof e.owner) throw TypeError(".webcast.data.Room.owner: object expected"); + t.owner = l.webcast.data.User.fromObject(e.owner) + } + if (null != e.privateInfo && (t.privateInfo = String(e.privateInfo)), null != e.hasCommerceGoods && (t.hasCommerceGoods = Boolean(e.hasCommerceGoods)), null != e.liveTypeNormal && (t.liveTypeNormal = Boolean(e.liveTypeNormal)), null != e.liveTypeLinkmic && (t.liveTypeLinkmic = Boolean(e.liveTypeLinkmic)), null != e.liveTypeAudio && (t.liveTypeAudio = Boolean(e.liveTypeAudio)), null != e.liveTypeThirdParty && (t.liveTypeThirdParty = Boolean(e.liveTypeThirdParty)), null != e.liveTypeScreenshot && (t.liveTypeScreenshot = Boolean(e.liveTypeScreenshot)), null != e.liveTypeSandbox && (t.liveTypeSandbox = Boolean(e.liveTypeSandbox)), null != e.liveTypeOfficial && (t.liveTypeOfficial = Boolean(e.liveTypeOfficial)), null != e.groupId && (a.Long ? (t.groupId = a.Long.fromValue(e.groupId)).unsigned = !1 : "string" == typeof e.groupId ? t.groupId = parseInt(e.groupId, 10) : "number" == typeof e.groupId ? t.groupId = e.groupId : "object" == typeof e.groupId && (t.groupId = new a.LongBits(e.groupId.low >>> 0, e.groupId.high >>> 0).toNumber())), null != e.orientation && (a.Long ? (t.orientation = a.Long.fromValue(e.orientation)).unsigned = !1 : "string" == typeof e.orientation ? t.orientation = parseInt(e.orientation, 10) : "number" == typeof e.orientation ? t.orientation = e.orientation : "object" == typeof e.orientation && (t.orientation = new a.LongBits(e.orientation.low >>> 0, e.orientation.high >>> 0).toNumber())), null != e.category && (a.Long ? (t.category = a.Long.fromValue(e.category)).unsigned = !1 : "string" == typeof e.category ? t.category = parseInt(e.category, 10) : "number" == typeof e.category ? t.category = e.category : "object" == typeof e.category && (t.category = new a.LongBits(e.category.low >>> 0, e.category.high >>> 0).toNumber())), e.tags) + { + if (!Array.isArray(e.tags)) throw TypeError(".webcast.data.Room.tags: array expected"); + t.tags = []; + for (r = 0; r < e.tags.length; ++r) a.Long ? (t.tags[r] = a.Long.fromValue(e.tags[r])).unsigned = !1 : "string" == typeof e.tags[r] ? t.tags[r] = parseInt(e.tags[r], 10) : "number" == typeof e.tags[r] ? t.tags[r] = e.tags[r] : "object" == typeof e.tags[r] && (t.tags[r] = new a.LongBits(e.tags[r].low >>> 0, e.tags[r].high >>> 0).toNumber()) + } + if (null != e.startTime && (a.Long ? (t.startTime = a.Long.fromValue(e.startTime)).unsigned = !1 : "string" == typeof e.startTime ? t.startTime = parseInt(e.startTime, 10) : "number" == typeof e.startTime ? t.startTime = e.startTime : "object" == typeof e.startTime && (t.startTime = new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber())), null != e.popularity && (a.Long ? (t.popularity = a.Long.fromValue(e.popularity)).unsigned = !1 : "string" == typeof e.popularity ? t.popularity = parseInt(e.popularity, 10) : "number" == typeof e.popularity ? t.popularity = e.popularity : "object" == typeof e.popularity && (t.popularity = new a.LongBits(e.popularity.low >>> 0, e.popularity.high >>> 0).toNumber())), null != e.popularityStr && (t.popularityStr = String(e.popularityStr)), null != e.fcdnAppid && (a.Long ? (t.fcdnAppid = a.Long.fromValue(e.fcdnAppid)).unsigned = !1 : "string" == typeof e.fcdnAppid ? t.fcdnAppid = parseInt(e.fcdnAppid, 10) : "number" == typeof e.fcdnAppid ? t.fcdnAppid = e.fcdnAppid : "object" == typeof e.fcdnAppid && (t.fcdnAppid = new a.LongBits(e.fcdnAppid.low >>> 0, e.fcdnAppid.high >>> 0).toNumber())), null != e.sellGoods && (t.sellGoods = Boolean(e.sellGoods)), null != e.webCount && (a.Long ? (t.webCount = a.Long.fromValue(e.webCount)).unsigned = !1 : "string" == typeof e.webCount ? t.webCount = parseInt(e.webCount, 10) : "number" == typeof e.webCount ? t.webCount = e.webCount : "object" == typeof e.webCount && (t.webCount = new a.LongBits(e.webCount.low >>> 0, e.webCount.high >>> 0).toNumber())), null != e.verticalCoverUri && (t.verticalCoverUri = String(e.verticalCoverUri)), null != e.baseCategory && (a.Long ? (t.baseCategory = a.Long.fromValue(e.baseCategory)).unsigned = !1 : "string" == typeof e.baseCategory ? t.baseCategory = parseInt(e.baseCategory, 10) : "number" == typeof e.baseCategory ? t.baseCategory = e.baseCategory : "object" == typeof e.baseCategory && (t.baseCategory = new a.LongBits(e.baseCategory.low >>> 0, e.baseCategory.high >>> 0).toNumber())), null != e.roomAuth) + { + if ("object" != typeof e.roomAuth) throw TypeError(".webcast.data.Room.roomAuth: object expected"); + t.roomAuth = l.webcast.data.RoomAuthStatus.fromObject(e.roomAuth) + } + if (e.roomTabs) + { + if (!Array.isArray(e.roomTabs)) throw TypeError(".webcast.data.Room.roomTabs: array expected"); + t.roomTabs = []; + for (r = 0; r < e.roomTabs.length; ++r) + { + if ("object" != typeof e.roomTabs[r]) throw TypeError(".webcast.data.Room.roomTabs: object expected"); + t.roomTabs[r] = l.webcast.data.RoomTab.fromObject(e.roomTabs[r]) + } + } + if (null != e.introduction && (t.introduction = String(e.introduction)), null != e.burst) + { + if ("object" != typeof e.burst) throw TypeError(".webcast.data.Room.burst: object expected"); + t.burst = l.webcast.data.BurstInfo.fromObject(e.burst) + } + if (null != e.healthScore) + { + if ("object" != typeof e.healthScore) throw TypeError(".webcast.data.Room.healthScore: object expected"); + t.healthScore = l.webcast.data.RoomHealthScoreInfo.fromObject(e.healthScore) + } + if (null != e.isReplay && (t.isReplay = Boolean(e.isReplay)), null != e.vid && (t.vid = String(e.vid)), null != e.groupSource && (a.Long ? (t.groupSource = a.Long.fromValue(e.groupSource)).unsigned = !1 : "string" == typeof e.groupSource ? t.groupSource = parseInt(e.groupSource, 10) : "number" == typeof e.groupSource ? t.groupSource = e.groupSource : "object" == typeof e.groupSource && (t.groupSource = new a.LongBits(e.groupSource.low >>> 0, e.groupSource.high >>> 0).toNumber())), null != e.lotteryFinishTime && (a.Long ? (t.lotteryFinishTime = a.Long.fromValue(e.lotteryFinishTime)).unsigned = !1 : "string" == typeof e.lotteryFinishTime ? t.lotteryFinishTime = parseInt(e.lotteryFinishTime, 10) : "number" == typeof e.lotteryFinishTime ? t.lotteryFinishTime = e.lotteryFinishTime : "object" == typeof e.lotteryFinishTime && (t.lotteryFinishTime = new a.LongBits(e.lotteryFinishTime.low >>> 0, e.lotteryFinishTime.high >>> 0).toNumber())), null != e.activityTag) + { + if ("object" != typeof e.activityTag) throw TypeError(".webcast.data.Room.activityTag: object expected"); + t.activityTag = l.webcast.data.RoomActivityTag.fromObject(e.activityTag) + } + if (null != e.portraitCover) + { + if ("object" != typeof e.portraitCover) throw TypeError(".webcast.data.Room.portraitCover: object expected"); + t.portraitCover = l.webcast.data.Image.fromObject(e.portraitCover) + } + if (null != e.background) + { + if ("object" != typeof e.background) throw TypeError(".webcast.data.Room.background: object expected"); + t.background = l.webcast.data.Image.fromObject(e.background) + } + if (null != e.layout && (a.Long ? (t.layout = a.Long.fromValue(e.layout)).unsigned = !1 : "string" == typeof e.layout ? t.layout = parseInt(e.layout, 10) : "number" == typeof e.layout ? t.layout = e.layout : "object" == typeof e.layout && (t.layout = new a.LongBits(e.layout.low >>> 0, e.layout.high >>> 0).toNumber())), null != e.waitCopy && (t.waitCopy = String(e.waitCopy)), null != e.guideButton) + { + if ("object" != typeof e.guideButton) throw TypeError(".webcast.data.Room.guideButton: object expected"); + t.guideButton = l.webcast.data.Image.fromObject(e.guideButton) + } + if (null != e.previewCopy && (t.previewCopy = String(e.previewCopy)), null != e.isShowInquiryBall && (t.isShowInquiryBall = Boolean(e.isShowInquiryBall)), null != e.matchInfo) + { + if ("object" != typeof e.matchInfo) throw TypeError(".webcast.data.Room.matchInfo: object expected"); + t.matchInfo = l.webcast.data.MatchInfo.fromObject(e.matchInfo) + } + if (null != e.useFilter && (t.useFilter = Boolean(e.useFilter)), null != e.giftMsgStyle && (a.Long ? (t.giftMsgStyle = a.Long.fromValue(e.giftMsgStyle)).unsigned = !1 : "string" == typeof e.giftMsgStyle ? t.giftMsgStyle = parseInt(e.giftMsgStyle, 10) : "number" == typeof e.giftMsgStyle ? t.giftMsgStyle = e.giftMsgStyle : "object" == typeof e.giftMsgStyle && (t.giftMsgStyle = new a.LongBits(e.giftMsgStyle.low >>> 0, e.giftMsgStyle.high >>> 0).toNumber())), null != e.distanceKm && (t.distanceKm = String(e.distanceKm)), null != e.finishUrl && (t.finishUrl = String(e.finishUrl)), null != e.officialRoomInfo) + { + if ("object" != typeof e.officialRoomInfo) throw TypeError(".webcast.data.Room.officialRoomInfo: object expected"); + t.officialRoomInfo = l.webcast.data.OfficialRoomInfo.fromObject(e.officialRoomInfo) + } + if (null != e.isShowUserCardSwitch && (t.isShowUserCardSwitch = Boolean(e.isShowUserCardSwitch)), null != e.videoFeedTag && (t.videoFeedTag = String(e.videoFeedTag)), null != e.forumExtraData && (t.forumExtraData = String(e.forumExtraData)), null != e.fansclubMsgStyle && (a.Long ? (t.fansclubMsgStyle = a.Long.fromValue(e.fansclubMsgStyle)).unsigned = !1 : "string" == typeof e.fansclubMsgStyle ? t.fansclubMsgStyle = parseInt(e.fansclubMsgStyle, 10) : "number" == typeof e.fansclubMsgStyle ? t.fansclubMsgStyle = e.fansclubMsgStyle : "object" == typeof e.fansclubMsgStyle && (t.fansclubMsgStyle = new a.LongBits(e.fansclubMsgStyle.low >>> 0, e.fansclubMsgStyle.high >>> 0).toNumber())), null != e.followMsgStyle && (a.Long ? (t.followMsgStyle = a.Long.fromValue(e.followMsgStyle)).unsigned = !1 : "string" == typeof e.followMsgStyle ? t.followMsgStyle = parseInt(e.followMsgStyle, 10) : "number" == typeof e.followMsgStyle ? t.followMsgStyle = e.followMsgStyle : "object" == typeof e.followMsgStyle && (t.followMsgStyle = new a.LongBits(e.followMsgStyle.low >>> 0, e.followMsgStyle.high >>> 0).toNumber())), null != e.shareMsgStyle && (a.Long ? (t.shareMsgStyle = a.Long.fromValue(e.shareMsgStyle)).unsigned = !1 : "string" == typeof e.shareMsgStyle ? t.shareMsgStyle = parseInt(e.shareMsgStyle, 10) : "number" == typeof e.shareMsgStyle ? t.shareMsgStyle = e.shareMsgStyle : "object" == typeof e.shareMsgStyle && (t.shareMsgStyle = new a.LongBits(e.shareMsgStyle.low >>> 0, e.shareMsgStyle.high >>> 0).toNumber())), null != e.roomLayout && (a.Long ? (t.roomLayout = a.Long.fromValue(e.roomLayout)).unsigned = !1 : "string" == typeof e.roomLayout ? t.roomLayout = parseInt(e.roomLayout, 10) : "number" == typeof e.roomLayout ? t.roomLayout = e.roomLayout : "object" == typeof e.roomLayout && (t.roomLayout = new a.LongBits(e.roomLayout.low >>> 0, e.roomLayout.high >>> 0).toNumber())), null != e.shortTitle && (t.shortTitle = String(e.shortTitle)), null != e.shortTouchAreaConfig) + { + if ("object" != typeof e.shortTouchAreaConfig) throw TypeError(".webcast.data.Room.shortTouchAreaConfig: object expected"); + t.shortTouchAreaConfig = l.webcast.data.RoomShortTouchAreaConfig.fromObject(e.shortTouchAreaConfig) + } + if (null != e.bookTime && (a.Long ? (t.bookTime = a.Long.fromValue(e.bookTime)).unsigned = !1 : "string" == typeof e.bookTime ? t.bookTime = parseInt(e.bookTime, 10) : "number" == typeof e.bookTime ? t.bookTime = e.bookTime : "object" == typeof e.bookTime && (t.bookTime = new a.LongBits(e.bookTime.low >>> 0, e.bookTime.high >>> 0).toNumber())), null != e.bookEndTime && (a.Long ? (t.bookEndTime = a.Long.fromValue(e.bookEndTime)).unsigned = !1 : "string" == typeof e.bookEndTime ? t.bookEndTime = parseInt(e.bookEndTime, 10) : "number" == typeof e.bookEndTime ? t.bookEndTime = e.bookEndTime : "object" == typeof e.bookEndTime && (t.bookEndTime = new a.LongBits(e.bookEndTime.low >>> 0, e.bookEndTime.high >>> 0).toNumber())), null != e.roomAuditStatus && (a.Long ? (t.roomAuditStatus = a.Long.fromValue(e.roomAuditStatus)).unsigned = !1 : "string" == typeof e.roomAuditStatus ? t.roomAuditStatus = parseInt(e.roomAuditStatus, 10) : "number" == typeof e.roomAuditStatus ? t.roomAuditStatus = e.roomAuditStatus : "object" == typeof e.roomAuditStatus && (t.roomAuditStatus = new a.LongBits(e.roomAuditStatus.low >>> 0, e.roomAuditStatus.high >>> 0).toNumber())), e.liveDistribution) + { + if (!Array.isArray(e.liveDistribution)) throw TypeError(".webcast.data.Room.liveDistribution: array expected"); + t.liveDistribution = []; + for (r = 0; r < e.liveDistribution.length; ++r) a.Long ? (t.liveDistribution[r] = a.Long.fromValue(e.liveDistribution[r])).unsigned = !1 : "string" == typeof e.liveDistribution[r] ? t.liveDistribution[r] = parseInt(e.liveDistribution[r], 10) : "number" == typeof e.liveDistribution[r] ? t.liveDistribution[r] = e.liveDistribution[r] : "object" == typeof e.liveDistribution[r] && (t.liveDistribution[r] = new a.LongBits(e.liveDistribution[r].low >>> 0, e.liveDistribution[r].high >>> 0).toNumber()) + } + if (null != e.tv) + { + if ("object" != typeof e.tv) throw TypeError(".webcast.data.Room.tv: object expected"); + t.tv = l.webcast.data.TVStation.fromObject(e.tv) + } + if (null != e.replay && (t.replay = Boolean(e.replay)), null != e.challengeInfo && (t.challengeInfo = String(e.challengeInfo)), null != e.likeCount && (a.Long ? (t.likeCount = a.Long.fromValue(e.likeCount)).unsigned = !1 : "string" == typeof e.likeCount ? t.likeCount = parseInt(e.likeCount, 10) : "number" == typeof e.likeCount ? t.likeCount = e.likeCount : "object" == typeof e.likeCount && (t.likeCount = new a.LongBits(e.likeCount.low >>> 0, e.likeCount.high >>> 0).toNumber())), null != e.searchId && (a.Long ? (t.searchId = a.Long.fromValue(e.searchId)).unsigned = !1 : "string" == typeof e.searchId ? t.searchId = parseInt(e.searchId, 10) : "number" == typeof e.searchId ? t.searchId = e.searchId : "object" == typeof e.searchId && (t.searchId = new a.LongBits(e.searchId.low >>> 0, e.searchId.high >>> 0).toNumber())), null != e.anchorScheduledTimeText && (t.anchorScheduledTimeText = String(e.anchorScheduledTimeText)), null != e.hotSentenceInfo && (t.hotSentenceInfo = String(e.hotSentenceInfo)), null != e.replayLocation && (a.Long ? (t.replayLocation = a.Long.fromValue(e.replayLocation)).unsigned = !1 : "string" == typeof e.replayLocation ? t.replayLocation = parseInt(e.replayLocation, 10) : "number" == typeof e.replayLocation ? t.replayLocation = e.replayLocation : "object" == typeof e.replayLocation && (t.replayLocation = new a.LongBits(e.replayLocation.low >>> 0, e.replayLocation.high >>> 0).toNumber())), null != e.streamCloseTime && (a.Long ? (t.streamCloseTime = a.Long.fromValue(e.streamCloseTime)).unsigned = !1 : "string" == typeof e.streamCloseTime ? t.streamCloseTime = parseInt(e.streamCloseTime, 10) : "number" == typeof e.streamCloseTime ? t.streamCloseTime = e.streamCloseTime : "object" == typeof e.streamCloseTime && (t.streamCloseTime = new a.LongBits(e.streamCloseTime.low >>> 0, e.streamCloseTime.high >>> 0).toNumber())), null != e.contentTag && (t.contentTag = String(e.contentTag)), null != e.contentLabel) + { + if ("object" != typeof e.contentLabel) throw TypeError(".webcast.data.Room.contentLabel: object expected"); + t.contentLabel = l.webcast.data.Image.fromObject(e.contentLabel) + } + if (null != e.operationLabel) + { + if ("object" != typeof e.operationLabel) throw TypeError(".webcast.data.Room.operationLabel: object expected"); + t.operationLabel = l.webcast.data.Image.fromObject(e.operationLabel) + } + if (null != e.anchorTabType && (t.anchorTabType = 0 | e.anchorTabType), null != e.gameExtra) + { + if ("object" != typeof e.gameExtra) throw TypeError(".webcast.data.Room.gameExtra: object expected"); + t.gameExtra = l.webcast.data.GameExtra.fromObject(e.gameExtra) + } + if (null != e.officialChannel) + { + if ("object" != typeof e.officialChannel) throw TypeError(".webcast.data.Room.officialChannel: object expected"); + t.officialChannel = l.webcast.data.OfficialChannelInfo.fromObject(e.officialChannel) + } + if (null != e.stamps && (t.stamps = String(e.stamps)), null != e.commentBox) + { + if ("object" != typeof e.commentBox) throw TypeError(".webcast.data.Room.commentBox: object expected"); + t.commentBox = l.webcast.data.CommentBox.fromObject(e.commentBox) + } + if (null != e.businessLive && (t.businessLive = 0 | e.businessLive), null != e.withKtv && (t.withKtv = Boolean(e.withKtv)), null != e.withDrawSomething && (t.withDrawSomething = Boolean(e.withDrawSomething)), null != e.webcastCommentTcs && (a.Long ? (t.webcastCommentTcs = a.Long.fromValue(e.webcastCommentTcs)).unsigned = !1 : "string" == typeof e.webcastCommentTcs ? t.webcastCommentTcs = parseInt(e.webcastCommentTcs, 10) : "number" == typeof e.webcastCommentTcs ? t.webcastCommentTcs = e.webcastCommentTcs : "object" == typeof e.webcastCommentTcs && (t.webcastCommentTcs = new a.LongBits(e.webcastCommentTcs.low >>> 0, e.webcastCommentTcs.high >>> 0).toNumber())), null != e.roomTag && (a.Long ? (t.roomTag = a.Long.fromValue(e.roomTag)).unsigned = !1 : "string" == typeof e.roomTag ? t.roomTag = parseInt(e.roomTag, 10) : "number" == typeof e.roomTag ? t.roomTag = e.roomTag : "object" == typeof e.roomTag && (t.roomTag = new a.LongBits(e.roomTag.low >>> 0, e.roomTag.high >>> 0).toNumber())), e.linkerMap) + { + if ("object" != typeof e.linkerMap) throw TypeError(".webcast.data.Room.linkerMap: object expected"); + t.linkerMap = {}; + for (n = Object.keys(e.linkerMap), r = 0; r < n.length; ++r) a.Long ? (t.linkerMap[n[r]] = a.Long.fromValue(e.linkerMap[n[r]])).unsigned = !1 : "string" == typeof e.linkerMap[n[r]] ? t.linkerMap[n[r]] = parseInt(e.linkerMap[n[r]], 10) : "number" == typeof e.linkerMap[n[r]] ? t.linkerMap[n[r]] = e.linkerMap[n[r]] : "object" == typeof e.linkerMap[n[r]] && (t.linkerMap[n[r]] = new a.LongBits(e.linkerMap[n[r]].low >>> 0, e.linkerMap[n[r]].high >>> 0).toNumber()) + } + if (null != e.finishReason && (t.finishReason = 0 | e.finishReason), null != e.roomCart) + { + if ("object" != typeof e.roomCart) throw TypeError(".webcast.data.Room.roomCart: object expected"); + t.roomCart = l.webcast.data.RoomCart.fromObject(e.roomCart) + } + if (null != e.scrollConfig && (t.scrollConfig = String(e.scrollConfig)), null != e.relationTag && (t.relationTag = String(e.relationTag)), null != e.ownerDeviceId && (a.Long ? (t.ownerDeviceId = a.Long.fromValue(e.ownerDeviceId)).unsigned = !1 : "string" == typeof e.ownerDeviceId ? t.ownerDeviceId = parseInt(e.ownerDeviceId, 10) : "number" == typeof e.ownerDeviceId ? t.ownerDeviceId = e.ownerDeviceId : "object" == typeof e.ownerDeviceId && (t.ownerDeviceId = new a.LongBits(e.ownerDeviceId.low >>> 0, e.ownerDeviceId.high >>> 0).toNumber())), null != e.autoCover && (a.Long ? (t.autoCover = a.Long.fromValue(e.autoCover)).unsigned = !1 : "string" == typeof e.autoCover ? t.autoCover = parseInt(e.autoCover, 10) : "number" == typeof e.autoCover ? t.autoCover = e.autoCover : "object" == typeof e.autoCover && (t.autoCover = new a.LongBits(e.autoCover.low >>> 0, e.autoCover.high >>> 0).toNumber())), null != e.appId && (a.Long ? (t.appId = a.Long.fromValue(e.appId)).unsigned = !1 : "string" == typeof e.appId ? t.appId = parseInt(e.appId, 10) : "number" == typeof e.appId ? t.appId = e.appId : "object" == typeof e.appId && (t.appId = new a.LongBits(e.appId.low >>> 0, e.appId.high >>> 0).toNumber())), null != e.webcastSdkVersion && (a.Long ? (t.webcastSdkVersion = a.Long.fromValue(e.webcastSdkVersion)).unsigned = !1 : "string" == typeof e.webcastSdkVersion ? t.webcastSdkVersion = parseInt(e.webcastSdkVersion, 10) : "number" == typeof e.webcastSdkVersion ? t.webcastSdkVersion = e.webcastSdkVersion : "object" == typeof e.webcastSdkVersion && (t.webcastSdkVersion = new a.LongBits(e.webcastSdkVersion.low >>> 0, e.webcastSdkVersion.high >>> 0).toNumber())), null != e.commentNameMode && (a.Long ? (t.commentNameMode = a.Long.fromValue(e.commentNameMode)).unsigned = !1 : "string" == typeof e.commentNameMode ? t.commentNameMode = parseInt(e.commentNameMode, 10) : "number" == typeof e.commentNameMode ? t.commentNameMode = e.commentNameMode : "object" == typeof e.commentNameMode && (t.commentNameMode = new a.LongBits(e.commentNameMode.low >>> 0, e.commentNameMode.high >>> 0).toNumber())), null != e.roomCreateAbParam && (t.roomCreateAbParam = String(e.roomCreateAbParam)), null != e.preEnterTime && (a.Long ? (t.preEnterTime = a.Long.fromValue(e.preEnterTime)).unsigned = !1 : "string" == typeof e.preEnterTime ? t.preEnterTime = parseInt(e.preEnterTime, 10) : "number" == typeof e.preEnterTime ? t.preEnterTime = e.preEnterTime : "object" == typeof e.preEnterTime && (t.preEnterTime = new a.LongBits(e.preEnterTime.low >>> 0, e.preEnterTime.high >>> 0).toNumber())), null != e.ranklistAudienceType && (a.Long ? (t.ranklistAudienceType = a.Long.fromValue(e.ranklistAudienceType)).unsigned = !1 : "string" == typeof e.ranklistAudienceType ? t.ranklistAudienceType = parseInt(e.ranklistAudienceType, 10) : "number" == typeof e.ranklistAudienceType ? t.ranklistAudienceType = e.ranklistAudienceType : "object" == typeof e.ranklistAudienceType && (t.ranklistAudienceType = new a.LongBits(e.ranklistAudienceType.low >>> 0, e.ranklistAudienceType.high >>> 0).toNumber())), null != e.previewFlowTag && (a.Long ? (t.previewFlowTag = a.Long.fromValue(e.previewFlowTag)).unsigned = !1 : "string" == typeof e.previewFlowTag ? t.previewFlowTag = parseInt(e.previewFlowTag, 10) : "number" == typeof e.previewFlowTag ? t.previewFlowTag = e.previewFlowTag : "object" == typeof e.previewFlowTag && (t.previewFlowTag = new a.LongBits(e.previewFlowTag.low >>> 0, e.previewFlowTag.high >>> 0).toNumber())), null != e.previewTagUrl) + { + if ("object" != typeof e.previewTagUrl) throw TypeError(".webcast.data.Room.previewTagUrl: object expected"); + t.previewTagUrl = l.webcast.data.Image.fromObject(e.previewTagUrl) + } + if (null != e.quizExtra) + { + if ("object" != typeof e.quizExtra) throw TypeError(".webcast.data.Room.quizExtra: object expected"); + t.quizExtra = l.webcast.data.QuizExtra.fromObject(e.quizExtra) + } + if (e.AnchorABMap) + { + if ("object" != typeof e.AnchorABMap) throw TypeError(".webcast.data.Room.AnchorABMap: object expected"); + t.AnchorABMap = {}; + for (n = Object.keys(e.AnchorABMap), r = 0; r < n.length; ++r) t.AnchorABMap[n[r]] = String(e.AnchorABMap[n[r]]) + } + if (null != e.linkerUsers) + { + if ("object" != typeof e.linkerUsers) throw TypeError(".webcast.data.Room.linkerUsers: object expected"); + t.linkerUsers = l.webcast.data.LinkerUsers.fromObject(e.linkerUsers) + } + if (null != e.linkmicDisplayType && (a.Long ? (t.linkmicDisplayType = a.Long.fromValue(e.linkmicDisplayType)).unsigned = !1 : "string" == typeof e.linkmicDisplayType ? t.linkmicDisplayType = parseInt(e.linkmicDisplayType, 10) : "number" == typeof e.linkmicDisplayType ? t.linkmicDisplayType = e.linkmicDisplayType : "object" == typeof e.linkmicDisplayType && (t.linkmicDisplayType = new a.LongBits(e.linkmicDisplayType.low >>> 0, e.linkmicDisplayType.high >>> 0).toNumber())), null != e.AudioRoomBGImage) + { + if ("object" != typeof e.AudioRoomBGImage) throw TypeError(".webcast.data.Room.AudioRoomBGImage: object expected"); + t.AudioRoomBGImage = l.webcast.data.AudioBGData.fromObject(e.AudioRoomBGImage) + } + if (null != e.cityTopLinkerUsers) + { + if ("object" != typeof e.cityTopLinkerUsers) throw TypeError(".webcast.data.Room.cityTopLinkerUsers: object expected"); + t.cityTopLinkerUsers = l.webcast.data.LinkerUsers.fromObject(e.cityTopLinkerUsers) + } + if (null != e.borderInfo) + { + if ("object" != typeof e.borderInfo) throw TypeError(".webcast.data.Room.borderInfo: object expected"); + t.borderInfo = l.webcast.data.BorderInfo.fromObject(e.borderInfo) + } + if (null != e.cityTopBackground) + { + if ("object" != typeof e.cityTopBackground) throw TypeError(".webcast.data.Room.cityTopBackground: object expected"); + t.cityTopBackground = l.webcast.data.Image.fromObject(e.cityTopBackground) + } + if (null != e.cityTopDistance && (t.cityTopDistance = String(e.cityTopDistance)), null != e.liveRoomMode && (a.Long ? (t.liveRoomMode = a.Long.fromValue(e.liveRoomMode)).unsigned = !1 : "string" == typeof e.liveRoomMode ? t.liveRoomMode = parseInt(e.liveRoomMode, 10) : "number" == typeof e.liveRoomMode ? t.liveRoomMode = e.liveRoomMode : "object" == typeof e.liveRoomMode && (t.liveRoomMode = new a.LongBits(e.liveRoomMode.low >>> 0, e.liveRoomMode.high >>> 0).toNumber())), null != e.bonus) + { + if ("object" != typeof e.bonus) throw TypeError(".webcast.data.Room.bonus: object expected"); + t.bonus = l.webcast.data.Bonus.fromObject(e.bonus) + } + if (null != e.highlight && (t.highlight = Boolean(e.highlight)), null != e.isOfficialChannelRoom && (t.isOfficialChannelRoom = Boolean(e.isOfficialChannelRoom)), null != e.activityRoomSkinInfo) + { + if ("object" != typeof e.activityRoomSkinInfo) throw TypeError(".webcast.data.Room.activityRoomSkinInfo: object expected"); + t.activityRoomSkinInfo = l.webcast.data.ActivityRoomSkinInfo.fromObject(e.activityRoomSkinInfo) + } + if (e.fansGroupAdminUserIds) + { + if (!Array.isArray(e.fansGroupAdminUserIds)) throw TypeError(".webcast.data.Room.fansGroupAdminUserIds: array expected"); + t.fansGroupAdminUserIds = []; + for (r = 0; r < e.fansGroupAdminUserIds.length; ++r) a.Long ? (t.fansGroupAdminUserIds[r] = a.Long.fromValue(e.fansGroupAdminUserIds[r])).unsigned = !1 : "string" == typeof e.fansGroupAdminUserIds[r] ? t.fansGroupAdminUserIds[r] = parseInt(e.fansGroupAdminUserIds[r], 10) : "number" == typeof e.fansGroupAdminUserIds[r] ? t.fansGroupAdminUserIds[r] = e.fansGroupAdminUserIds[r] : "object" == typeof e.fansGroupAdminUserIds[r] && (t.fansGroupAdminUserIds[r] = new a.LongBits(e.fansGroupAdminUserIds[r].low >>> 0, e.fansGroupAdminUserIds[r].high >>> 0).toNumber()) + } + if (null != e.replayInfo) + { + if ("object" != typeof e.replayInfo) throw TypeError(".webcast.data.Room.replayInfo: object expected"); + t.replayInfo = l.webcast.data.RoomReplayInfo.fromObject(e.replayInfo) + } + if (null != e.officialChannelUid && (a.Long ? (t.officialChannelUid = a.Long.fromValue(e.officialChannelUid)).unsigned = !1 : "string" == typeof e.officialChannelUid ? t.officialChannelUid = parseInt(e.officialChannelUid, 10) : "number" == typeof e.officialChannelUid ? t.officialChannelUid = e.officialChannelUid : "object" == typeof e.officialChannelUid && (t.officialChannelUid = new a.LongBits(e.officialChannelUid.low >>> 0, e.officialChannelUid.high >>> 0).toNumber())), null != e.livePlatformSource && (t.livePlatformSource = String(e.livePlatformSource)), null != e.acquaintanceStatus && (a.Long ? (t.acquaintanceStatus = a.Long.fromValue(e.acquaintanceStatus)).unsigned = !1 : "string" == typeof e.acquaintanceStatus ? t.acquaintanceStatus = parseInt(e.acquaintanceStatus, 10) : "number" == typeof e.acquaintanceStatus ? t.acquaintanceStatus = e.acquaintanceStatus : "object" == typeof e.acquaintanceStatus && (t.acquaintanceStatus = new a.LongBits(e.acquaintanceStatus.low >>> 0, e.acquaintanceStatus.high >>> 0).toNumber())), null != e.commentWallInfo) + { + if ("object" != typeof e.commentWallInfo) throw TypeError(".webcast.data.Room.commentWallInfo: object expected"); + t.commentWallInfo = l.webcast.data.CommentWallInfo.fromObject(e.commentWallInfo) + } + if (null != e.commentWallPosition) + { + if ("object" != typeof e.commentWallPosition) throw TypeError(".webcast.data.Room.commentWallPosition: object expected"); + t.commentWallPosition = l.webcast.data.CommentWallPosition.fromObject(e.commentWallPosition) + } + if (null != e.liveTypeVsLive && (t.liveTypeVsLive = Boolean(e.liveTypeVsLive)), null != e.liveTypeVsPremiere && (t.liveTypeVsPremiere = Boolean(e.liveTypeVsPremiere)), null != e.episodeExtra) + { + if ("object" != typeof e.episodeExtra) throw TypeError(".webcast.data.Room.episodeExtra: object expected"); + t.episodeExtra = l.webcast.data.EpisodeExtraInfo.fromObject(e.episodeExtra) + } + if (e.vsRoles) + { + if (!Array.isArray(e.vsRoles)) throw TypeError(".webcast.data.Room.vsRoles: array expected"); + t.vsRoles = []; + for (r = 0; r < e.vsRoles.length; ++r) switch (e.vsRoles[r]) + { + default: + case "Unknow": + case 0: + t.vsRoles[r] = 0; + break; + case "HundredCommittee": + case 1: + t.vsRoles[r] = 1 + } + } + if (null != e.itemExplicitInfo && (t.itemExplicitInfo = String(e.itemExplicitInfo)), null != e.shortTouchAuth) + { + if ("object" != typeof e.shortTouchAuth) throw TypeError(".webcast.data.Room.shortTouchAuth: object expected"); + t.shortTouchAuth = l.webcast.data.ShortTouchAuth.fromObject(e.shortTouchAuth) + } + if (null != e.sofaLayout && (a.Long ? (t.sofaLayout = a.Long.fromValue(e.sofaLayout)).unsigned = !1 : "string" == typeof e.sofaLayout ? t.sofaLayout = parseInt(e.sofaLayout, 10) : "number" == typeof e.sofaLayout ? t.sofaLayout = e.sofaLayout : "object" == typeof e.sofaLayout && (t.sofaLayout = new a.LongBits(e.sofaLayout.low >>> 0, e.sofaLayout.high >>> 0).toNumber())), null != e.announcementInfo) + { + if ("object" != typeof e.announcementInfo) throw TypeError(".webcast.data.Room.announcementInfo: object expected"); + t.announcementInfo = l.webcast.data.AnnouncementInfo.fromObject(e.announcementInfo) + } + if (null != e.isNeedCheckList && (t.isNeedCheckList = Boolean(e.isNeedCheckList)), null != e.liveStatusInfo) + { + if ("object" != typeof e.liveStatusInfo) throw TypeError(".webcast.data.Room.liveStatusInfo: object expected"); + t.liveStatusInfo = l.webcast.data.LiveStatusInfo.fromObject(e.liveStatusInfo) + } + if (null != e.imInfo) + { + if ("object" != typeof e.imInfo) throw TypeError(".webcast.data.Room.imInfo: object expected"); + t.imInfo = l.webcast.data.RoomIMInfo.fromObject(e.imInfo) + } + if (null != e.assistLabel) + { + if ("object" != typeof e.assistLabel) throw TypeError(".webcast.data.Room.assistLabel: object expected"); + t.assistLabel = l.webcast.data.LabelInfo.fromObject(e.assistLabel) + } + if (null != e.interactOpenExtra) + { + if ("object" != typeof e.interactOpenExtra) throw TypeError(".webcast.data.Room.interactOpenExtra: object expected"); + t.interactOpenExtra = l.webcast.data.InteractOpenExtra.fromObject(e.interactOpenExtra) + } + if (null != e.verticalTypeInfo) + { + if ("object" != typeof e.verticalTypeInfo) throw TypeError(".webcast.data.Room.verticalTypeInfo: object expected"); + t.verticalTypeInfo = l.webcast.data.VerticalTypeInfo.fromObject(e.verticalTypeInfo) + } + if (e.filterWords) + { + if (!Array.isArray(e.filterWords)) throw TypeError(".webcast.data.Room.filterWords: array expected"); + t.filterWords = []; + for (r = 0; r < e.filterWords.length; ++r) + { + if ("object" != typeof e.filterWords[r]) throw TypeError(".webcast.data.Room.filterWords: object expected"); + t.filterWords[r] = l.webcast.data.FilterWord.fromObject(e.filterWords[r]) + } + } + if (null != e.dynamicLabel) + { + if ("object" != typeof e.dynamicLabel) throw TypeError(".webcast.data.Room.dynamicLabel: object expected"); + t.dynamicLabel = l.webcast.data.LabelInfo.fromObject(e.dynamicLabel) + } + if (null != e.linkerDetail) + { + if ("object" != typeof e.linkerDetail) throw TypeError(".webcast.data.Room.linkerDetail: object expected"); + t.linkerDetail = l.webcast.data.LinkerDetail.fromObject(e.linkerDetail) + } + if (null != e.visibilityRange && (t.visibilityRange = 0 | e.visibilityRange), null != e.cornerMarkReach) + { + if ("object" != typeof e.cornerMarkReach) throw TypeError(".webcast.data.Room.cornerMarkReach: object expected"); + t.cornerMarkReach = l.webcast.data.CornerMarkReach.fromObject(e.cornerMarkReach) + } + if (null != e.previewExpose) + { + if ("object" != typeof e.previewExpose) throw TypeError(".webcast.data.Room.previewExpose: object expected"); + t.previewExpose = l.webcast.data.PreviewExposeData.fromObject(e.previewExpose) + } + if (null != e.welfareProjectInfo) + { + if ("object" != typeof e.welfareProjectInfo) throw TypeError(".webcast.data.Room.welfareProjectInfo: object expected"); + t.welfareProjectInfo = l.webcast.data.WelfareProjectInfo.fromObject(e.welfareProjectInfo) + } + if (null != e.gameRoomType && (t.gameRoomType = 0 | e.gameRoomType), null != e.paidLiveData) + { + if ("object" != typeof e.paidLiveData) throw TypeError(".webcast.data.Room.paidLiveData: object expected"); + t.paidLiveData = l.webcast.data.PaidLiveData.fromObject(e.paidLiveData) + } + if (null != e.easterEggData) + { + if ("object" != typeof e.easterEggData) throw TypeError(".webcast.data.Room.easterEggData: object expected"); + t.easterEggData = l.webcast.data.EasterEggData.fromObject(e.easterEggData) + } + if (null != e.titleRecommend && (t.titleRecommend = Boolean(e.titleRecommend)), null != e.danmakuDetail && (a.Long ? (t.danmakuDetail = a.Long.fromValue(e.danmakuDetail)).unsigned = !1 : "string" == typeof e.danmakuDetail ? t.danmakuDetail = parseInt(e.danmakuDetail, 10) : "number" == typeof e.danmakuDetail ? t.danmakuDetail = e.danmakuDetail : "object" == typeof e.danmakuDetail && (t.danmakuDetail = new a.LongBits(e.danmakuDetail.low >>> 0, e.danmakuDetail.high >>> 0).toNumber())), null != e.avatarLiveInfo) + { + if ("object" != typeof e.avatarLiveInfo) throw TypeError(".webcast.data.Room.avatarLiveInfo: object expected"); + t.avatarLiveInfo = l.webcast.data.AvatarLiveInfo.fromObject(e.avatarLiveInfo) + } + if (null != e.circleInfo) + { + if ("object" != typeof e.circleInfo) throw TypeError(".webcast.data.Room.circleInfo: object expected"); + t.circleInfo = l.webcast.data.CircleInfo.fromObject(e.circleInfo) + } + if (null != e.hasPromotionGames && (a.Long ? (t.hasPromotionGames = a.Long.fromValue(e.hasPromotionGames)).unsigned = !1 : "string" == typeof e.hasPromotionGames ? t.hasPromotionGames = parseInt(e.hasPromotionGames, 10) : "number" == typeof e.hasPromotionGames ? t.hasPromotionGames = e.hasPromotionGames : "object" == typeof e.hasPromotionGames && (t.hasPromotionGames = new a.LongBits(e.hasPromotionGames.low >>> 0, e.hasPromotionGames.high >>> 0).toNumber())), null != e.screenshotSover) + { + if ("object" != typeof e.screenshotSover) throw TypeError(".webcast.data.Room.screenshotSover: object expected"); + t.screenshotSover = l.webcast.data.Image.fromObject(e.screenshotSover) + } + if (null != e.appearance) + { + if ("object" != typeof e.appearance) throw TypeError(".webcast.data.Room.appearance: object expected"); + t.appearance = l.webcast.data.Appearance.fromObject(e.appearance) + } + if (null != e.ecomData) + { + if ("object" != typeof e.ecomData) throw TypeError(".webcast.data.Room.ecomData: object expected"); + t.ecomData = l.webcast.data.EcomData.fromObject(e.ecomData) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.arrays || t.defaults) && (r.decoList = [], r.topFans = [], r.adminUserIds = [], r.tags = [], r.roomTabs = [], r.liveDistribution = [], r.fansGroupAdminUserIds = [], r.vsRoles = [], r.filterWords = []), (t.objects || t.defaults) && (r.dynamicCoverDict = {}, r.linkerMap = {}, r.AnchorABMap = {}), t.defaults) + { + if (a.Long) + { + var o = new a.Long(0, 0, !1); + r.id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.id = t.longs === String ? "0" : 0; + if (r.idStr = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.status = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.status = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.ownerUserId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.ownerUserId = t.longs === String ? "0" : 0; + if (r.title = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.userCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.userCount = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.createTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.createTime = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.linkmicLayout = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.linkmicLayout = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.finishTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.finishTime = t.longs === String ? "0" : 0; + if (r.extra = null, r.dynamicCoverUri = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.lastPingTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.lastPingTime = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.liveId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.liveId = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.streamProvider = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.streamProvider = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.osType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.osType = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.clientVersion = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.clientVersion = t.longs === String ? "0" : 0; + if (r.withLinkmic = !1, r.enableRoomPerspective = !1, r.cover = null, r.dynamicCover = null, r.dynamicCoverLow = null, r.shareUrl = "", r.anchorShareText = "", r.userShareText = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.streamId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.streamId = t.longs === String ? "0" : 0; + if (r.streamIdStr = "", r.streamUrl = null, a.Long) + { + o = new a.Long(0, 0, !1); + r.mosaicStatus = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.mosaicStatus = t.longs === String ? "0" : 0; + if (r.mosaicTip = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.cellStyle = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.cellStyle = t.longs === String ? "0" : 0; + if (r.linkMic = null, a.Long) + { + o = new a.Long(0, 0, !1); + r.luckymoneyNum = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.luckymoneyNum = t.longs === String ? "0" : 0; + if (r.stats = null, r.sunDailyIconContent = "", r.distance = "", r.distanceCity = "", r.location = "", r.realDistance = "", r.feedRoomLabel = null, r.commonLabelList = "", r.livingRoomAttrs = null, r.owner = null, r.privateInfo = "", r.hasCommerceGoods = !1, r.liveTypeNormal = !1, r.liveTypeLinkmic = !1, r.liveTypeAudio = !1, r.liveTypeThirdParty = !1, r.liveTypeScreenshot = !1, r.liveTypeSandbox = !1, r.liveTypeOfficial = !1, a.Long) + { + o = new a.Long(0, 0, !1); + r.groupId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.groupId = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.orientation = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.orientation = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.category = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.category = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.startTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.startTime = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.popularity = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.popularity = t.longs === String ? "0" : 0; + if (r.popularityStr = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.fcdnAppid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.fcdnAppid = t.longs === String ? "0" : 0; + if (r.sellGoods = !1, a.Long) + { + o = new a.Long(0, 0, !1); + r.webCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.webCount = t.longs === String ? "0" : 0; + if (r.verticalCoverUri = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.baseCategory = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.baseCategory = t.longs === String ? "0" : 0; + if (r.roomAuth = null, r.introduction = "", r.burst = null, r.healthScore = null, r.isReplay = !1, r.vid = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.groupSource = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.groupSource = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.lotteryFinishTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.lotteryFinishTime = t.longs === String ? "0" : 0; + if (r.activityTag = null, r.portraitCover = null, r.background = null, a.Long) + { + o = new a.Long(0, 0, !1); + r.layout = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.layout = t.longs === String ? "0" : 0; + if (r.waitCopy = "", r.guideButton = null, r.previewCopy = "", r.isShowInquiryBall = !1, r.matchInfo = null, r.useFilter = !1, a.Long) + { + o = new a.Long(0, 0, !1); + r.giftMsgStyle = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.giftMsgStyle = t.longs === String ? "0" : 0; + if (r.distanceKm = "", r.finishUrl = "", r.officialRoomInfo = null, r.isShowUserCardSwitch = !1, r.videoFeedTag = "", r.forumExtraData = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.fansclubMsgStyle = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.fansclubMsgStyle = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.followMsgStyle = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.followMsgStyle = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.shareMsgStyle = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.shareMsgStyle = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.roomLayout = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.roomLayout = t.longs === String ? "0" : 0; + if (r.shortTitle = "", r.shortTouchAreaConfig = null, a.Long) + { + o = new a.Long(0, 0, !1); + r.bookTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.bookTime = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.bookEndTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.bookEndTime = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.roomAuditStatus = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.roomAuditStatus = t.longs === String ? "0" : 0; + if (r.tv = null, r.replay = !1, r.challengeInfo = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.likeCount = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.likeCount = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.searchId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.searchId = t.longs === String ? "0" : 0; + if (r.anchorScheduledTimeText = "", r.hotSentenceInfo = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.replayLocation = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.replayLocation = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.streamCloseTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.streamCloseTime = t.longs === String ? "0" : 0; + if (r.contentTag = "", r.contentLabel = null, r.operationLabel = null, r.anchorTabType = 0, r.gameExtra = null, r.officialChannel = null, r.stamps = "", r.commentBox = null, r.businessLive = 0, r.withKtv = !1, r.withDrawSomething = !1, a.Long) + { + o = new a.Long(0, 0, !1); + r.webcastCommentTcs = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.webcastCommentTcs = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.roomTag = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.roomTag = t.longs === String ? "0" : 0; + if (r.finishReason = 0, r.roomCart = null, r.scrollConfig = "", r.relationTag = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.ownerDeviceId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.ownerDeviceId = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.autoCover = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.autoCover = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.appId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.appId = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.webcastSdkVersion = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.webcastSdkVersion = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.commentNameMode = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.commentNameMode = t.longs === String ? "0" : 0; + if (r.roomCreateAbParam = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.preEnterTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.preEnterTime = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.ranklistAudienceType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.ranklistAudienceType = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.previewFlowTag = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.previewFlowTag = t.longs === String ? "0" : 0; + if (r.previewTagUrl = null, r.quizExtra = null, r.linkerUsers = null, a.Long) + { + o = new a.Long(0, 0, !1); + r.linkmicDisplayType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.linkmicDisplayType = t.longs === String ? "0" : 0; + if (r.AudioRoomBGImage = null, r.cityTopLinkerUsers = null, r.borderInfo = null, r.cityTopBackground = null, r.cityTopDistance = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.liveRoomMode = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.liveRoomMode = t.longs === String ? "0" : 0; + if (r.bonus = null, r.highlight = !1, r.isOfficialChannelRoom = !1, r.activityRoomSkinInfo = null, r.replayInfo = null, a.Long) + { + o = new a.Long(0, 0, !1); + r.officialChannelUid = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.officialChannelUid = t.longs === String ? "0" : 0; + if (r.livePlatformSource = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.acquaintanceStatus = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.acquaintanceStatus = t.longs === String ? "0" : 0; + if (r.commentWallInfo = null, r.commentWallPosition = null, r.liveTypeVsLive = !1, r.liveTypeVsPremiere = !1, r.episodeExtra = null, r.itemExplicitInfo = "", r.shortTouchAuth = null, a.Long) + { + o = new a.Long(0, 0, !1); + r.sofaLayout = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.sofaLayout = t.longs === String ? "0" : 0; + if (r.announcementInfo = null, r.isNeedCheckList = !1, r.liveStatusInfo = null, r.imInfo = null, r.assistLabel = null, r.interactOpenExtra = null, r.verticalTypeInfo = null, r.dynamicLabel = null, r.linkerDetail = null, r.visibilityRange = 0, r.cornerMarkReach = null, r.previewExpose = null, r.welfareProjectInfo = null, r.gameRoomType = 0, r.paidLiveData = null, r.easterEggData = null, r.titleRecommend = !1, a.Long) + { + o = new a.Long(0, 0, !1); + r.danmakuDetail = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.danmakuDetail = t.longs === String ? "0" : 0; + if (r.avatarLiveInfo = null, r.circleInfo = null, a.Long) + { + o = new a.Long(0, 0, !1); + r.hasPromotionGames = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.hasPromotionGames = t.longs === String ? "0" : 0; + r.screenshotSover = null, r.appearance = null, r.ecomData = null + } + if (null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? r.id = t.longs === String ? String(e.id) : e.id : r.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), null != e.idStr && e.hasOwnProperty("idStr") && (r.idStr = e.idStr), null != e.status && e.hasOwnProperty("status") && ("number" == typeof e.status ? r.status = t.longs === String ? String(e.status) : e.status : r.status = t.longs === String ? a.Long.prototype.toString.call(e.status) : t.longs === Number ? new a.LongBits(e.status.low >>> 0, e.status.high >>> 0).toNumber() : e.status), null != e.ownerUserId && e.hasOwnProperty("ownerUserId") && ("number" == typeof e.ownerUserId ? r.ownerUserId = t.longs === String ? String(e.ownerUserId) : e.ownerUserId : r.ownerUserId = t.longs === String ? a.Long.prototype.toString.call(e.ownerUserId) : t.longs === Number ? new a.LongBits(e.ownerUserId.low >>> 0, e.ownerUserId.high >>> 0).toNumber() : e.ownerUserId), null != e.title && e.hasOwnProperty("title") && (r.title = e.title), null != e.userCount && e.hasOwnProperty("userCount") && ("number" == typeof e.userCount ? r.userCount = t.longs === String ? String(e.userCount) : e.userCount : r.userCount = t.longs === String ? a.Long.prototype.toString.call(e.userCount) : t.longs === Number ? new a.LongBits(e.userCount.low >>> 0, e.userCount.high >>> 0).toNumber() : e.userCount), null != e.createTime && e.hasOwnProperty("createTime") && ("number" == typeof e.createTime ? r.createTime = t.longs === String ? String(e.createTime) : e.createTime : r.createTime = t.longs === String ? a.Long.prototype.toString.call(e.createTime) : t.longs === Number ? new a.LongBits(e.createTime.low >>> 0, e.createTime.high >>> 0).toNumber() : e.createTime), null != e.linkmicLayout && e.hasOwnProperty("linkmicLayout") && ("number" == typeof e.linkmicLayout ? r.linkmicLayout = t.longs === String ? String(e.linkmicLayout) : e.linkmicLayout : r.linkmicLayout = t.longs === String ? a.Long.prototype.toString.call(e.linkmicLayout) : t.longs === Number ? new a.LongBits(e.linkmicLayout.low >>> 0, e.linkmicLayout.high >>> 0).toNumber() : e.linkmicLayout), null != e.finishTime && e.hasOwnProperty("finishTime") && ("number" == typeof e.finishTime ? r.finishTime = t.longs === String ? String(e.finishTime) : e.finishTime : r.finishTime = t.longs === String ? a.Long.prototype.toString.call(e.finishTime) : t.longs === Number ? new a.LongBits(e.finishTime.low >>> 0, e.finishTime.high >>> 0).toNumber() : e.finishTime), null != e.extra && e.hasOwnProperty("extra") && (r.extra = l.webcast.data.RoomExtra.toObject(e.extra, t)), null != e.dynamicCoverUri && e.hasOwnProperty("dynamicCoverUri") && (r.dynamicCoverUri = e.dynamicCoverUri), e.dynamicCoverDict && (n = Object.keys(e.dynamicCoverDict)).length) + { + r.dynamicCoverDict = {}; + for (var i = 0; i < n.length; ++i) r.dynamicCoverDict[n[i]] = e.dynamicCoverDict[n[i]] + } + if (null != e.lastPingTime && e.hasOwnProperty("lastPingTime") && ("number" == typeof e.lastPingTime ? r.lastPingTime = t.longs === String ? String(e.lastPingTime) : e.lastPingTime : r.lastPingTime = t.longs === String ? a.Long.prototype.toString.call(e.lastPingTime) : t.longs === Number ? new a.LongBits(e.lastPingTime.low >>> 0, e.lastPingTime.high >>> 0).toNumber() : e.lastPingTime), null != e.liveId && e.hasOwnProperty("liveId") && ("number" == typeof e.liveId ? r.liveId = t.longs === String ? String(e.liveId) : e.liveId : r.liveId = t.longs === String ? a.Long.prototype.toString.call(e.liveId) : t.longs === Number ? new a.LongBits(e.liveId.low >>> 0, e.liveId.high >>> 0).toNumber() : e.liveId), null != e.streamProvider && e.hasOwnProperty("streamProvider") && ("number" == typeof e.streamProvider ? r.streamProvider = t.longs === String ? String(e.streamProvider) : e.streamProvider : r.streamProvider = t.longs === String ? a.Long.prototype.toString.call(e.streamProvider) : t.longs === Number ? new a.LongBits(e.streamProvider.low >>> 0, e.streamProvider.high >>> 0).toNumber() : e.streamProvider), null != e.osType && e.hasOwnProperty("osType") && ("number" == typeof e.osType ? r.osType = t.longs === String ? String(e.osType) : e.osType : r.osType = t.longs === String ? a.Long.prototype.toString.call(e.osType) : t.longs === Number ? new a.LongBits(e.osType.low >>> 0, e.osType.high >>> 0).toNumber() : e.osType), null != e.clientVersion && e.hasOwnProperty("clientVersion") && ("number" == typeof e.clientVersion ? r.clientVersion = t.longs === String ? String(e.clientVersion) : e.clientVersion : r.clientVersion = t.longs === String ? a.Long.prototype.toString.call(e.clientVersion) : t.longs === Number ? new a.LongBits(e.clientVersion.low >>> 0, e.clientVersion.high >>> 0).toNumber() : e.clientVersion), null != e.withLinkmic && e.hasOwnProperty("withLinkmic") && (r.withLinkmic = e.withLinkmic), null != e.enableRoomPerspective && e.hasOwnProperty("enableRoomPerspective") && (r.enableRoomPerspective = e.enableRoomPerspective), null != e.cover && e.hasOwnProperty("cover") && (r.cover = l.webcast.data.Image.toObject(e.cover, t)), null != e.dynamicCover && e.hasOwnProperty("dynamicCover") && (r.dynamicCover = l.webcast.data.Image.toObject(e.dynamicCover, t)), null != e.dynamicCoverLow && e.hasOwnProperty("dynamicCoverLow") && (r.dynamicCoverLow = l.webcast.data.Image.toObject(e.dynamicCoverLow, t)), null != e.shareUrl && e.hasOwnProperty("shareUrl") && (r.shareUrl = e.shareUrl), null != e.anchorShareText && e.hasOwnProperty("anchorShareText") && (r.anchorShareText = e.anchorShareText), null != e.userShareText && e.hasOwnProperty("userShareText") && (r.userShareText = e.userShareText), null != e.streamId && e.hasOwnProperty("streamId") && ("number" == typeof e.streamId ? r.streamId = t.longs === String ? String(e.streamId) : e.streamId : r.streamId = t.longs === String ? a.Long.prototype.toString.call(e.streamId) : t.longs === Number ? new a.LongBits(e.streamId.low >>> 0, e.streamId.high >>> 0).toNumber() : e.streamId), null != e.streamIdStr && e.hasOwnProperty("streamIdStr") && (r.streamIdStr = e.streamIdStr), null != e.streamUrl && e.hasOwnProperty("streamUrl") && (r.streamUrl = l.webcast.data.StreamUrl.toObject(e.streamUrl, t)), null != e.mosaicStatus && e.hasOwnProperty("mosaicStatus") && ("number" == typeof e.mosaicStatus ? r.mosaicStatus = t.longs === String ? String(e.mosaicStatus) : e.mosaicStatus : r.mosaicStatus = t.longs === String ? a.Long.prototype.toString.call(e.mosaicStatus) : t.longs === Number ? new a.LongBits(e.mosaicStatus.low >>> 0, e.mosaicStatus.high >>> 0).toNumber() : e.mosaicStatus), null != e.mosaicTip && e.hasOwnProperty("mosaicTip") && (r.mosaicTip = e.mosaicTip), null != e.cellStyle && e.hasOwnProperty("cellStyle") && ("number" == typeof e.cellStyle ? r.cellStyle = t.longs === String ? String(e.cellStyle) : e.cellStyle : r.cellStyle = t.longs === String ? a.Long.prototype.toString.call(e.cellStyle) : t.longs === Number ? new a.LongBits(e.cellStyle.low >>> 0, e.cellStyle.high >>> 0).toNumber() : e.cellStyle), null != e.linkMic && e.hasOwnProperty("linkMic") && (r.linkMic = l.webcast.data.LinkMic.toObject(e.linkMic, t)), null != e.luckymoneyNum && e.hasOwnProperty("luckymoneyNum") && ("number" == typeof e.luckymoneyNum ? r.luckymoneyNum = t.longs === String ? String(e.luckymoneyNum) : e.luckymoneyNum : r.luckymoneyNum = t.longs === String ? a.Long.prototype.toString.call(e.luckymoneyNum) : t.longs === Number ? new a.LongBits(e.luckymoneyNum.low >>> 0, e.luckymoneyNum.high >>> 0).toNumber() : e.luckymoneyNum), e.decoList && e.decoList.length) + { + r.decoList = []; + for (i = 0; i < e.decoList.length; ++i) r.decoList[i] = l.webcast.data.Decoration.toObject(e.decoList[i], t) + } + if (e.topFans && e.topFans.length) + { + r.topFans = []; + for (i = 0; i < e.topFans.length; ++i) r.topFans[i] = l.webcast.data.TopFan.toObject(e.topFans[i], t) + } + if (null != e.stats && e.hasOwnProperty("stats") && (r.stats = l.webcast.data.RoomStats.toObject(e.stats, t)), null != e.sunDailyIconContent && e.hasOwnProperty("sunDailyIconContent") && (r.sunDailyIconContent = e.sunDailyIconContent), null != e.distance && e.hasOwnProperty("distance") && (r.distance = e.distance), null != e.distanceCity && e.hasOwnProperty("distanceCity") && (r.distanceCity = e.distanceCity), null != e.location && e.hasOwnProperty("location") && (r.location = e.location), null != e.realDistance && e.hasOwnProperty("realDistance") && (r.realDistance = e.realDistance), null != e.feedRoomLabel && e.hasOwnProperty("feedRoomLabel") && (r.feedRoomLabel = l.webcast.data.Image.toObject(e.feedRoomLabel, t)), null != e.commonLabelList && e.hasOwnProperty("commonLabelList") && (r.commonLabelList = e.commonLabelList), null != e.livingRoomAttrs && e.hasOwnProperty("livingRoomAttrs") && (r.livingRoomAttrs = l.webcast.data.RoomUserAttr.toObject(e.livingRoomAttrs, t)), e.adminUserIds && e.adminUserIds.length) + { + r.adminUserIds = []; + for (i = 0; i < e.adminUserIds.length; ++i) "number" == typeof e.adminUserIds[i] ? r.adminUserIds[i] = t.longs === String ? String(e.adminUserIds[i]) : e.adminUserIds[i] : r.adminUserIds[i] = t.longs === String ? a.Long.prototype.toString.call(e.adminUserIds[i]) : t.longs === Number ? new a.LongBits(e.adminUserIds[i].low >>> 0, e.adminUserIds[i].high >>> 0).toNumber() : e.adminUserIds[i] + } + if (null != e.owner && e.hasOwnProperty("owner") && (r.owner = l.webcast.data.User.toObject(e.owner, t)), null != e.privateInfo && e.hasOwnProperty("privateInfo") && (r.privateInfo = e.privateInfo), null != e.hasCommerceGoods && e.hasOwnProperty("hasCommerceGoods") && (r.hasCommerceGoods = e.hasCommerceGoods), null != e.liveTypeNormal && e.hasOwnProperty("liveTypeNormal") && (r.liveTypeNormal = e.liveTypeNormal), null != e.liveTypeLinkmic && e.hasOwnProperty("liveTypeLinkmic") && (r.liveTypeLinkmic = e.liveTypeLinkmic), null != e.liveTypeAudio && e.hasOwnProperty("liveTypeAudio") && (r.liveTypeAudio = e.liveTypeAudio), null != e.liveTypeThirdParty && e.hasOwnProperty("liveTypeThirdParty") && (r.liveTypeThirdParty = e.liveTypeThirdParty), null != e.liveTypeScreenshot && e.hasOwnProperty("liveTypeScreenshot") && (r.liveTypeScreenshot = e.liveTypeScreenshot), null != e.liveTypeSandbox && e.hasOwnProperty("liveTypeSandbox") && (r.liveTypeSandbox = e.liveTypeSandbox), null != e.liveTypeOfficial && e.hasOwnProperty("liveTypeOfficial") && (r.liveTypeOfficial = e.liveTypeOfficial), null != e.groupId && e.hasOwnProperty("groupId") && ("number" == typeof e.groupId ? r.groupId = t.longs === String ? String(e.groupId) : e.groupId : r.groupId = t.longs === String ? a.Long.prototype.toString.call(e.groupId) : t.longs === Number ? new a.LongBits(e.groupId.low >>> 0, e.groupId.high >>> 0).toNumber() : e.groupId), null != e.orientation && e.hasOwnProperty("orientation") && ("number" == typeof e.orientation ? r.orientation = t.longs === String ? String(e.orientation) : e.orientation : r.orientation = t.longs === String ? a.Long.prototype.toString.call(e.orientation) : t.longs === Number ? new a.LongBits(e.orientation.low >>> 0, e.orientation.high >>> 0).toNumber() : e.orientation), null != e.category && e.hasOwnProperty("category") && ("number" == typeof e.category ? r.category = t.longs === String ? String(e.category) : e.category : r.category = t.longs === String ? a.Long.prototype.toString.call(e.category) : t.longs === Number ? new a.LongBits(e.category.low >>> 0, e.category.high >>> 0).toNumber() : e.category), e.tags && e.tags.length) + { + r.tags = []; + for (i = 0; i < e.tags.length; ++i) "number" == typeof e.tags[i] ? r.tags[i] = t.longs === String ? String(e.tags[i]) : e.tags[i] : r.tags[i] = t.longs === String ? a.Long.prototype.toString.call(e.tags[i]) : t.longs === Number ? new a.LongBits(e.tags[i].low >>> 0, e.tags[i].high >>> 0).toNumber() : e.tags[i] + } + if (null != e.startTime && e.hasOwnProperty("startTime") && ("number" == typeof e.startTime ? r.startTime = t.longs === String ? String(e.startTime) : e.startTime : r.startTime = t.longs === String ? a.Long.prototype.toString.call(e.startTime) : t.longs === Number ? new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber() : e.startTime), null != e.popularity && e.hasOwnProperty("popularity") && ("number" == typeof e.popularity ? r.popularity = t.longs === String ? String(e.popularity) : e.popularity : r.popularity = t.longs === String ? a.Long.prototype.toString.call(e.popularity) : t.longs === Number ? new a.LongBits(e.popularity.low >>> 0, e.popularity.high >>> 0).toNumber() : e.popularity), null != e.popularityStr && e.hasOwnProperty("popularityStr") && (r.popularityStr = e.popularityStr), null != e.fcdnAppid && e.hasOwnProperty("fcdnAppid") && ("number" == typeof e.fcdnAppid ? r.fcdnAppid = t.longs === String ? String(e.fcdnAppid) : e.fcdnAppid : r.fcdnAppid = t.longs === String ? a.Long.prototype.toString.call(e.fcdnAppid) : t.longs === Number ? new a.LongBits(e.fcdnAppid.low >>> 0, e.fcdnAppid.high >>> 0).toNumber() : e.fcdnAppid), null != e.sellGoods && e.hasOwnProperty("sellGoods") && (r.sellGoods = e.sellGoods), null != e.webCount && e.hasOwnProperty("webCount") && ("number" == typeof e.webCount ? r.webCount = t.longs === String ? String(e.webCount) : e.webCount : r.webCount = t.longs === String ? a.Long.prototype.toString.call(e.webCount) : t.longs === Number ? new a.LongBits(e.webCount.low >>> 0, e.webCount.high >>> 0).toNumber() : e.webCount), null != e.verticalCoverUri && e.hasOwnProperty("verticalCoverUri") && (r.verticalCoverUri = e.verticalCoverUri), null != e.baseCategory && e.hasOwnProperty("baseCategory") && ("number" == typeof e.baseCategory ? r.baseCategory = t.longs === String ? String(e.baseCategory) : e.baseCategory : r.baseCategory = t.longs === String ? a.Long.prototype.toString.call(e.baseCategory) : t.longs === Number ? new a.LongBits(e.baseCategory.low >>> 0, e.baseCategory.high >>> 0).toNumber() : e.baseCategory), null != e.roomAuth && e.hasOwnProperty("roomAuth") && (r.roomAuth = l.webcast.data.RoomAuthStatus.toObject(e.roomAuth, t)), e.roomTabs && e.roomTabs.length) + { + r.roomTabs = []; + for (i = 0; i < e.roomTabs.length; ++i) r.roomTabs[i] = l.webcast.data.RoomTab.toObject(e.roomTabs[i], t) + } + if (null != e.introduction && e.hasOwnProperty("introduction") && (r.introduction = e.introduction), null != e.burst && e.hasOwnProperty("burst") && (r.burst = l.webcast.data.BurstInfo.toObject(e.burst, t)), null != e.healthScore && e.hasOwnProperty("healthScore") && (r.healthScore = l.webcast.data.RoomHealthScoreInfo.toObject(e.healthScore, t)), null != e.isReplay && e.hasOwnProperty("isReplay") && (r.isReplay = e.isReplay), null != e.vid && e.hasOwnProperty("vid") && (r.vid = e.vid), null != e.groupSource && e.hasOwnProperty("groupSource") && ("number" == typeof e.groupSource ? r.groupSource = t.longs === String ? String(e.groupSource) : e.groupSource : r.groupSource = t.longs === String ? a.Long.prototype.toString.call(e.groupSource) : t.longs === Number ? new a.LongBits(e.groupSource.low >>> 0, e.groupSource.high >>> 0).toNumber() : e.groupSource), null != e.lotteryFinishTime && e.hasOwnProperty("lotteryFinishTime") && ("number" == typeof e.lotteryFinishTime ? r.lotteryFinishTime = t.longs === String ? String(e.lotteryFinishTime) : e.lotteryFinishTime : r.lotteryFinishTime = t.longs === String ? a.Long.prototype.toString.call(e.lotteryFinishTime) : t.longs === Number ? new a.LongBits(e.lotteryFinishTime.low >>> 0, e.lotteryFinishTime.high >>> 0).toNumber() : e.lotteryFinishTime), null != e.activityTag && e.hasOwnProperty("activityTag") && (r.activityTag = l.webcast.data.RoomActivityTag.toObject(e.activityTag, t)), null != e.portraitCover && e.hasOwnProperty("portraitCover") && (r.portraitCover = l.webcast.data.Image.toObject(e.portraitCover, t)), null != e.background && e.hasOwnProperty("background") && (r.background = l.webcast.data.Image.toObject(e.background, t)), null != e.layout && e.hasOwnProperty("layout") && ("number" == typeof e.layout ? r.layout = t.longs === String ? String(e.layout) : e.layout : r.layout = t.longs === String ? a.Long.prototype.toString.call(e.layout) : t.longs === Number ? new a.LongBits(e.layout.low >>> 0, e.layout.high >>> 0).toNumber() : e.layout), null != e.waitCopy && e.hasOwnProperty("waitCopy") && (r.waitCopy = e.waitCopy), null != e.guideButton && e.hasOwnProperty("guideButton") && (r.guideButton = l.webcast.data.Image.toObject(e.guideButton, t)), null != e.previewCopy && e.hasOwnProperty("previewCopy") && (r.previewCopy = e.previewCopy), null != e.isShowInquiryBall && e.hasOwnProperty("isShowInquiryBall") && (r.isShowInquiryBall = e.isShowInquiryBall), null != e.matchInfo && e.hasOwnProperty("matchInfo") && (r.matchInfo = l.webcast.data.MatchInfo.toObject(e.matchInfo, t)), null != e.useFilter && e.hasOwnProperty("useFilter") && (r.useFilter = e.useFilter), null != e.giftMsgStyle && e.hasOwnProperty("giftMsgStyle") && ("number" == typeof e.giftMsgStyle ? r.giftMsgStyle = t.longs === String ? String(e.giftMsgStyle) : e.giftMsgStyle : r.giftMsgStyle = t.longs === String ? a.Long.prototype.toString.call(e.giftMsgStyle) : t.longs === Number ? new a.LongBits(e.giftMsgStyle.low >>> 0, e.giftMsgStyle.high >>> 0).toNumber() : e.giftMsgStyle), null != e.distanceKm && e.hasOwnProperty("distanceKm") && (r.distanceKm = e.distanceKm), null != e.finishUrl && e.hasOwnProperty("finishUrl") && (r.finishUrl = e.finishUrl), null != e.officialRoomInfo && e.hasOwnProperty("officialRoomInfo") && (r.officialRoomInfo = l.webcast.data.OfficialRoomInfo.toObject(e.officialRoomInfo, t)), null != e.isShowUserCardSwitch && e.hasOwnProperty("isShowUserCardSwitch") && (r.isShowUserCardSwitch = e.isShowUserCardSwitch), null != e.videoFeedTag && e.hasOwnProperty("videoFeedTag") && (r.videoFeedTag = e.videoFeedTag), null != e.forumExtraData && e.hasOwnProperty("forumExtraData") && (r.forumExtraData = e.forumExtraData), null != e.fansclubMsgStyle && e.hasOwnProperty("fansclubMsgStyle") && ("number" == typeof e.fansclubMsgStyle ? r.fansclubMsgStyle = t.longs === String ? String(e.fansclubMsgStyle) : e.fansclubMsgStyle : r.fansclubMsgStyle = t.longs === String ? a.Long.prototype.toString.call(e.fansclubMsgStyle) : t.longs === Number ? new a.LongBits(e.fansclubMsgStyle.low >>> 0, e.fansclubMsgStyle.high >>> 0).toNumber() : e.fansclubMsgStyle), null != e.followMsgStyle && e.hasOwnProperty("followMsgStyle") && ("number" == typeof e.followMsgStyle ? r.followMsgStyle = t.longs === String ? String(e.followMsgStyle) : e.followMsgStyle : r.followMsgStyle = t.longs === String ? a.Long.prototype.toString.call(e.followMsgStyle) : t.longs === Number ? new a.LongBits(e.followMsgStyle.low >>> 0, e.followMsgStyle.high >>> 0).toNumber() : e.followMsgStyle), null != e.shareMsgStyle && e.hasOwnProperty("shareMsgStyle") && ("number" == typeof e.shareMsgStyle ? r.shareMsgStyle = t.longs === String ? String(e.shareMsgStyle) : e.shareMsgStyle : r.shareMsgStyle = t.longs === String ? a.Long.prototype.toString.call(e.shareMsgStyle) : t.longs === Number ? new a.LongBits(e.shareMsgStyle.low >>> 0, e.shareMsgStyle.high >>> 0).toNumber() : e.shareMsgStyle), null != e.roomLayout && e.hasOwnProperty("roomLayout") && ("number" == typeof e.roomLayout ? r.roomLayout = t.longs === String ? String(e.roomLayout) : e.roomLayout : r.roomLayout = t.longs === String ? a.Long.prototype.toString.call(e.roomLayout) : t.longs === Number ? new a.LongBits(e.roomLayout.low >>> 0, e.roomLayout.high >>> 0).toNumber() : e.roomLayout), null != e.shortTitle && e.hasOwnProperty("shortTitle") && (r.shortTitle = e.shortTitle), null != e.shortTouchAreaConfig && e.hasOwnProperty("shortTouchAreaConfig") && (r.shortTouchAreaConfig = l.webcast.data.RoomShortTouchAreaConfig.toObject(e.shortTouchAreaConfig, t)), null != e.bookTime && e.hasOwnProperty("bookTime") && ("number" == typeof e.bookTime ? r.bookTime = t.longs === String ? String(e.bookTime) : e.bookTime : r.bookTime = t.longs === String ? a.Long.prototype.toString.call(e.bookTime) : t.longs === Number ? new a.LongBits(e.bookTime.low >>> 0, e.bookTime.high >>> 0).toNumber() : e.bookTime), null != e.bookEndTime && e.hasOwnProperty("bookEndTime") && ("number" == typeof e.bookEndTime ? r.bookEndTime = t.longs === String ? String(e.bookEndTime) : e.bookEndTime : r.bookEndTime = t.longs === String ? a.Long.prototype.toString.call(e.bookEndTime) : t.longs === Number ? new a.LongBits(e.bookEndTime.low >>> 0, e.bookEndTime.high >>> 0).toNumber() : e.bookEndTime), null != e.roomAuditStatus && e.hasOwnProperty("roomAuditStatus") && ("number" == typeof e.roomAuditStatus ? r.roomAuditStatus = t.longs === String ? String(e.roomAuditStatus) : e.roomAuditStatus : r.roomAuditStatus = t.longs === String ? a.Long.prototype.toString.call(e.roomAuditStatus) : t.longs === Number ? new a.LongBits(e.roomAuditStatus.low >>> 0, e.roomAuditStatus.high >>> 0).toNumber() : e.roomAuditStatus), e.liveDistribution && e.liveDistribution.length) + { + r.liveDistribution = []; + for (i = 0; i < e.liveDistribution.length; ++i) "number" == typeof e.liveDistribution[i] ? r.liveDistribution[i] = t.longs === String ? String(e.liveDistribution[i]) : e.liveDistribution[i] : r.liveDistribution[i] = t.longs === String ? a.Long.prototype.toString.call(e.liveDistribution[i]) : t.longs === Number ? new a.LongBits(e.liveDistribution[i].low >>> 0, e.liveDistribution[i].high >>> 0).toNumber() : e.liveDistribution[i] + } + if (null != e.tv && e.hasOwnProperty("tv") && (r.tv = l.webcast.data.TVStation.toObject(e.tv, t)), null != e.replay && e.hasOwnProperty("replay") && (r.replay = e.replay), null != e.challengeInfo && e.hasOwnProperty("challengeInfo") && (r.challengeInfo = e.challengeInfo), null != e.likeCount && e.hasOwnProperty("likeCount") && ("number" == typeof e.likeCount ? r.likeCount = t.longs === String ? String(e.likeCount) : e.likeCount : r.likeCount = t.longs === String ? a.Long.prototype.toString.call(e.likeCount) : t.longs === Number ? new a.LongBits(e.likeCount.low >>> 0, e.likeCount.high >>> 0).toNumber() : e.likeCount), null != e.searchId && e.hasOwnProperty("searchId") && ("number" == typeof e.searchId ? r.searchId = t.longs === String ? String(e.searchId) : e.searchId : r.searchId = t.longs === String ? a.Long.prototype.toString.call(e.searchId) : t.longs === Number ? new a.LongBits(e.searchId.low >>> 0, e.searchId.high >>> 0).toNumber() : e.searchId), null != e.anchorScheduledTimeText && e.hasOwnProperty("anchorScheduledTimeText") && (r.anchorScheduledTimeText = e.anchorScheduledTimeText), null != e.hotSentenceInfo && e.hasOwnProperty("hotSentenceInfo") && (r.hotSentenceInfo = e.hotSentenceInfo), null != e.replayLocation && e.hasOwnProperty("replayLocation") && ("number" == typeof e.replayLocation ? r.replayLocation = t.longs === String ? String(e.replayLocation) : e.replayLocation : r.replayLocation = t.longs === String ? a.Long.prototype.toString.call(e.replayLocation) : t.longs === Number ? new a.LongBits(e.replayLocation.low >>> 0, e.replayLocation.high >>> 0).toNumber() : e.replayLocation), null != e.streamCloseTime && e.hasOwnProperty("streamCloseTime") && ("number" == typeof e.streamCloseTime ? r.streamCloseTime = t.longs === String ? String(e.streamCloseTime) : e.streamCloseTime : r.streamCloseTime = t.longs === String ? a.Long.prototype.toString.call(e.streamCloseTime) : t.longs === Number ? new a.LongBits(e.streamCloseTime.low >>> 0, e.streamCloseTime.high >>> 0).toNumber() : e.streamCloseTime), null != e.contentTag && e.hasOwnProperty("contentTag") && (r.contentTag = e.contentTag), null != e.contentLabel && e.hasOwnProperty("contentLabel") && (r.contentLabel = l.webcast.data.Image.toObject(e.contentLabel, t)), null != e.operationLabel && e.hasOwnProperty("operationLabel") && (r.operationLabel = l.webcast.data.Image.toObject(e.operationLabel, t)), null != e.anchorTabType && e.hasOwnProperty("anchorTabType") && (r.anchorTabType = e.anchorTabType), null != e.gameExtra && e.hasOwnProperty("gameExtra") && (r.gameExtra = l.webcast.data.GameExtra.toObject(e.gameExtra, t)), null != e.officialChannel && e.hasOwnProperty("officialChannel") && (r.officialChannel = l.webcast.data.OfficialChannelInfo.toObject(e.officialChannel, t)), null != e.stamps && e.hasOwnProperty("stamps") && (r.stamps = e.stamps), null != e.commentBox && e.hasOwnProperty("commentBox") && (r.commentBox = l.webcast.data.CommentBox.toObject(e.commentBox, t)), null != e.businessLive && e.hasOwnProperty("businessLive") && (r.businessLive = e.businessLive), null != e.withKtv && e.hasOwnProperty("withKtv") && (r.withKtv = e.withKtv), null != e.withDrawSomething && e.hasOwnProperty("withDrawSomething") && (r.withDrawSomething = e.withDrawSomething), null != e.webcastCommentTcs && e.hasOwnProperty("webcastCommentTcs") && ("number" == typeof e.webcastCommentTcs ? r.webcastCommentTcs = t.longs === String ? String(e.webcastCommentTcs) : e.webcastCommentTcs : r.webcastCommentTcs = t.longs === String ? a.Long.prototype.toString.call(e.webcastCommentTcs) : t.longs === Number ? new a.LongBits(e.webcastCommentTcs.low >>> 0, e.webcastCommentTcs.high >>> 0).toNumber() : e.webcastCommentTcs), null != e.roomTag && e.hasOwnProperty("roomTag") && ("number" == typeof e.roomTag ? r.roomTag = t.longs === String ? String(e.roomTag) : e.roomTag : r.roomTag = t.longs === String ? a.Long.prototype.toString.call(e.roomTag) : t.longs === Number ? new a.LongBits(e.roomTag.low >>> 0, e.roomTag.high >>> 0).toNumber() : e.roomTag), e.linkerMap && (n = Object.keys(e.linkerMap)).length) + { + r.linkerMap = {}; + for (i = 0; i < n.length; ++i) "number" == typeof e.linkerMap[n[i]] ? r.linkerMap[n[i]] = t.longs === String ? String(e.linkerMap[n[i]]) : e.linkerMap[n[i]] : r.linkerMap[n[i]] = t.longs === String ? a.Long.prototype.toString.call(e.linkerMap[n[i]]) : t.longs === Number ? new a.LongBits(e.linkerMap[n[i]].low >>> 0, e.linkerMap[n[i]].high >>> 0).toNumber() : e.linkerMap[n[i]] + } + if (null != e.finishReason && e.hasOwnProperty("finishReason") && (r.finishReason = e.finishReason), null != e.roomCart && e.hasOwnProperty("roomCart") && (r.roomCart = l.webcast.data.RoomCart.toObject(e.roomCart, t)), null != e.scrollConfig && e.hasOwnProperty("scrollConfig") && (r.scrollConfig = e.scrollConfig), null != e.relationTag && e.hasOwnProperty("relationTag") && (r.relationTag = e.relationTag), null != e.ownerDeviceId && e.hasOwnProperty("ownerDeviceId") && ("number" == typeof e.ownerDeviceId ? r.ownerDeviceId = t.longs === String ? String(e.ownerDeviceId) : e.ownerDeviceId : r.ownerDeviceId = t.longs === String ? a.Long.prototype.toString.call(e.ownerDeviceId) : t.longs === Number ? new a.LongBits(e.ownerDeviceId.low >>> 0, e.ownerDeviceId.high >>> 0).toNumber() : e.ownerDeviceId), null != e.autoCover && e.hasOwnProperty("autoCover") && ("number" == typeof e.autoCover ? r.autoCover = t.longs === String ? String(e.autoCover) : e.autoCover : r.autoCover = t.longs === String ? a.Long.prototype.toString.call(e.autoCover) : t.longs === Number ? new a.LongBits(e.autoCover.low >>> 0, e.autoCover.high >>> 0).toNumber() : e.autoCover), null != e.appId && e.hasOwnProperty("appId") && ("number" == typeof e.appId ? r.appId = t.longs === String ? String(e.appId) : e.appId : r.appId = t.longs === String ? a.Long.prototype.toString.call(e.appId) : t.longs === Number ? new a.LongBits(e.appId.low >>> 0, e.appId.high >>> 0).toNumber() : e.appId), null != e.webcastSdkVersion && e.hasOwnProperty("webcastSdkVersion") && ("number" == typeof e.webcastSdkVersion ? r.webcastSdkVersion = t.longs === String ? String(e.webcastSdkVersion) : e.webcastSdkVersion : r.webcastSdkVersion = t.longs === String ? a.Long.prototype.toString.call(e.webcastSdkVersion) : t.longs === Number ? new a.LongBits(e.webcastSdkVersion.low >>> 0, e.webcastSdkVersion.high >>> 0).toNumber() : e.webcastSdkVersion), null != e.commentNameMode && e.hasOwnProperty("commentNameMode") && ("number" == typeof e.commentNameMode ? r.commentNameMode = t.longs === String ? String(e.commentNameMode) : e.commentNameMode : r.commentNameMode = t.longs === String ? a.Long.prototype.toString.call(e.commentNameMode) : t.longs === Number ? new a.LongBits(e.commentNameMode.low >>> 0, e.commentNameMode.high >>> 0).toNumber() : e.commentNameMode), null != e.roomCreateAbParam && e.hasOwnProperty("roomCreateAbParam") && (r.roomCreateAbParam = e.roomCreateAbParam), null != e.preEnterTime && e.hasOwnProperty("preEnterTime") && ("number" == typeof e.preEnterTime ? r.preEnterTime = t.longs === String ? String(e.preEnterTime) : e.preEnterTime : r.preEnterTime = t.longs === String ? a.Long.prototype.toString.call(e.preEnterTime) : t.longs === Number ? new a.LongBits(e.preEnterTime.low >>> 0, e.preEnterTime.high >>> 0).toNumber() : e.preEnterTime), null != e.ranklistAudienceType && e.hasOwnProperty("ranklistAudienceType") && ("number" == typeof e.ranklistAudienceType ? r.ranklistAudienceType = t.longs === String ? String(e.ranklistAudienceType) : e.ranklistAudienceType : r.ranklistAudienceType = t.longs === String ? a.Long.prototype.toString.call(e.ranklistAudienceType) : t.longs === Number ? new a.LongBits(e.ranklistAudienceType.low >>> 0, e.ranklistAudienceType.high >>> 0).toNumber() : e.ranklistAudienceType), null != e.previewFlowTag && e.hasOwnProperty("previewFlowTag") && ("number" == typeof e.previewFlowTag ? r.previewFlowTag = t.longs === String ? String(e.previewFlowTag) : e.previewFlowTag : r.previewFlowTag = t.longs === String ? a.Long.prototype.toString.call(e.previewFlowTag) : t.longs === Number ? new a.LongBits(e.previewFlowTag.low >>> 0, e.previewFlowTag.high >>> 0).toNumber() : e.previewFlowTag), null != e.previewTagUrl && e.hasOwnProperty("previewTagUrl") && (r.previewTagUrl = l.webcast.data.Image.toObject(e.previewTagUrl, t)), null != e.quizExtra && e.hasOwnProperty("quizExtra") && (r.quizExtra = l.webcast.data.QuizExtra.toObject(e.quizExtra, t)), e.AnchorABMap && (n = Object.keys(e.AnchorABMap)).length) + { + r.AnchorABMap = {}; + for (i = 0; i < n.length; ++i) r.AnchorABMap[n[i]] = e.AnchorABMap[n[i]] + } + if (null != e.linkerUsers && e.hasOwnProperty("linkerUsers") && (r.linkerUsers = l.webcast.data.LinkerUsers.toObject(e.linkerUsers, t)), null != e.linkmicDisplayType && e.hasOwnProperty("linkmicDisplayType") && ("number" == typeof e.linkmicDisplayType ? r.linkmicDisplayType = t.longs === String ? String(e.linkmicDisplayType) : e.linkmicDisplayType : r.linkmicDisplayType = t.longs === String ? a.Long.prototype.toString.call(e.linkmicDisplayType) : t.longs === Number ? new a.LongBits(e.linkmicDisplayType.low >>> 0, e.linkmicDisplayType.high >>> 0).toNumber() : e.linkmicDisplayType), null != e.AudioRoomBGImage && e.hasOwnProperty("AudioRoomBGImage") && (r.AudioRoomBGImage = l.webcast.data.AudioBGData.toObject(e.AudioRoomBGImage, t)), null != e.cityTopLinkerUsers && e.hasOwnProperty("cityTopLinkerUsers") && (r.cityTopLinkerUsers = l.webcast.data.LinkerUsers.toObject(e.cityTopLinkerUsers, t)), null != e.borderInfo && e.hasOwnProperty("borderInfo") && (r.borderInfo = l.webcast.data.BorderInfo.toObject(e.borderInfo, t)), null != e.cityTopBackground && e.hasOwnProperty("cityTopBackground") && (r.cityTopBackground = l.webcast.data.Image.toObject(e.cityTopBackground, t)), null != e.cityTopDistance && e.hasOwnProperty("cityTopDistance") && (r.cityTopDistance = e.cityTopDistance), null != e.liveRoomMode && e.hasOwnProperty("liveRoomMode") && ("number" == typeof e.liveRoomMode ? r.liveRoomMode = t.longs === String ? String(e.liveRoomMode) : e.liveRoomMode : r.liveRoomMode = t.longs === String ? a.Long.prototype.toString.call(e.liveRoomMode) : t.longs === Number ? new a.LongBits(e.liveRoomMode.low >>> 0, e.liveRoomMode.high >>> 0).toNumber() : e.liveRoomMode), null != e.bonus && e.hasOwnProperty("bonus") && (r.bonus = l.webcast.data.Bonus.toObject(e.bonus, t)), null != e.highlight && e.hasOwnProperty("highlight") && (r.highlight = e.highlight), null != e.isOfficialChannelRoom && e.hasOwnProperty("isOfficialChannelRoom") && (r.isOfficialChannelRoom = e.isOfficialChannelRoom), null != e.activityRoomSkinInfo && e.hasOwnProperty("activityRoomSkinInfo") && (r.activityRoomSkinInfo = l.webcast.data.ActivityRoomSkinInfo.toObject(e.activityRoomSkinInfo, t)), e.fansGroupAdminUserIds && e.fansGroupAdminUserIds.length) + { + r.fansGroupAdminUserIds = []; + for (i = 0; i < e.fansGroupAdminUserIds.length; ++i) "number" == typeof e.fansGroupAdminUserIds[i] ? r.fansGroupAdminUserIds[i] = t.longs === String ? String(e.fansGroupAdminUserIds[i]) : e.fansGroupAdminUserIds[i] : r.fansGroupAdminUserIds[i] = t.longs === String ? a.Long.prototype.toString.call(e.fansGroupAdminUserIds[i]) : t.longs === Number ? new a.LongBits(e.fansGroupAdminUserIds[i].low >>> 0, e.fansGroupAdminUserIds[i].high >>> 0).toNumber() : e.fansGroupAdminUserIds[i] + } + if (null != e.replayInfo && e.hasOwnProperty("replayInfo") && (r.replayInfo = l.webcast.data.RoomReplayInfo.toObject(e.replayInfo, t)), null != e.officialChannelUid && e.hasOwnProperty("officialChannelUid") && ("number" == typeof e.officialChannelUid ? r.officialChannelUid = t.longs === String ? String(e.officialChannelUid) : e.officialChannelUid : r.officialChannelUid = t.longs === String ? a.Long.prototype.toString.call(e.officialChannelUid) : t.longs === Number ? new a.LongBits(e.officialChannelUid.low >>> 0, e.officialChannelUid.high >>> 0).toNumber() : e.officialChannelUid), null != e.livePlatformSource && e.hasOwnProperty("livePlatformSource") && (r.livePlatformSource = e.livePlatformSource), null != e.acquaintanceStatus && e.hasOwnProperty("acquaintanceStatus") && ("number" == typeof e.acquaintanceStatus ? r.acquaintanceStatus = t.longs === String ? String(e.acquaintanceStatus) : e.acquaintanceStatus : r.acquaintanceStatus = t.longs === String ? a.Long.prototype.toString.call(e.acquaintanceStatus) : t.longs === Number ? new a.LongBits(e.acquaintanceStatus.low >>> 0, e.acquaintanceStatus.high >>> 0).toNumber() : e.acquaintanceStatus), null != e.commentWallInfo && e.hasOwnProperty("commentWallInfo") && (r.commentWallInfo = l.webcast.data.CommentWallInfo.toObject(e.commentWallInfo, t)), null != e.commentWallPosition && e.hasOwnProperty("commentWallPosition") && (r.commentWallPosition = l.webcast.data.CommentWallPosition.toObject(e.commentWallPosition, t)), null != e.liveTypeVsLive && e.hasOwnProperty("liveTypeVsLive") && (r.liveTypeVsLive = e.liveTypeVsLive), null != e.liveTypeVsPremiere && e.hasOwnProperty("liveTypeVsPremiere") && (r.liveTypeVsPremiere = e.liveTypeVsPremiere), null != e.episodeExtra && e.hasOwnProperty("episodeExtra") && (r.episodeExtra = l.webcast.data.EpisodeExtraInfo.toObject(e.episodeExtra, t)), e.vsRoles && e.vsRoles.length) + { + r.vsRoles = []; + for (i = 0; i < e.vsRoles.length; ++i) r.vsRoles[i] = t.enums === String ? l.webcast.data.VsRoleEnum[e.vsRoles[i]] : e.vsRoles[i] + } + if (null != e.itemExplicitInfo && e.hasOwnProperty("itemExplicitInfo") && (r.itemExplicitInfo = e.itemExplicitInfo), null != e.shortTouchAuth && e.hasOwnProperty("shortTouchAuth") && (r.shortTouchAuth = l.webcast.data.ShortTouchAuth.toObject(e.shortTouchAuth, t)), null != e.sofaLayout && e.hasOwnProperty("sofaLayout") && ("number" == typeof e.sofaLayout ? r.sofaLayout = t.longs === String ? String(e.sofaLayout) : e.sofaLayout : r.sofaLayout = t.longs === String ? a.Long.prototype.toString.call(e.sofaLayout) : t.longs === Number ? new a.LongBits(e.sofaLayout.low >>> 0, e.sofaLayout.high >>> 0).toNumber() : e.sofaLayout), null != e.announcementInfo && e.hasOwnProperty("announcementInfo") && (r.announcementInfo = l.webcast.data.AnnouncementInfo.toObject(e.announcementInfo, t)), null != e.isNeedCheckList && e.hasOwnProperty("isNeedCheckList") && (r.isNeedCheckList = e.isNeedCheckList), null != e.liveStatusInfo && e.hasOwnProperty("liveStatusInfo") && (r.liveStatusInfo = l.webcast.data.LiveStatusInfo.toObject(e.liveStatusInfo, t)), null != e.imInfo && e.hasOwnProperty("imInfo") && (r.imInfo = l.webcast.data.RoomIMInfo.toObject(e.imInfo, t)), null != e.assistLabel && e.hasOwnProperty("assistLabel") && (r.assistLabel = l.webcast.data.LabelInfo.toObject(e.assistLabel, t)), null != e.interactOpenExtra && e.hasOwnProperty("interactOpenExtra") && (r.interactOpenExtra = l.webcast.data.InteractOpenExtra.toObject(e.interactOpenExtra, t)), null != e.verticalTypeInfo && e.hasOwnProperty("verticalTypeInfo") && (r.verticalTypeInfo = l.webcast.data.VerticalTypeInfo.toObject(e.verticalTypeInfo, t)), e.filterWords && e.filterWords.length) + { + r.filterWords = []; + for (i = 0; i < e.filterWords.length; ++i) r.filterWords[i] = l.webcast.data.FilterWord.toObject(e.filterWords[i], t) + } + return null != e.dynamicLabel && e.hasOwnProperty("dynamicLabel") && (r.dynamicLabel = l.webcast.data.LabelInfo.toObject(e.dynamicLabel, t)), null != e.linkerDetail && e.hasOwnProperty("linkerDetail") && (r.linkerDetail = l.webcast.data.LinkerDetail.toObject(e.linkerDetail, t)), null != e.visibilityRange && e.hasOwnProperty("visibilityRange") && (r.visibilityRange = e.visibilityRange), null != e.cornerMarkReach && e.hasOwnProperty("cornerMarkReach") && (r.cornerMarkReach = l.webcast.data.CornerMarkReach.toObject(e.cornerMarkReach, t)), null != e.previewExpose && e.hasOwnProperty("previewExpose") && (r.previewExpose = l.webcast.data.PreviewExposeData.toObject(e.previewExpose, t)), null != e.welfareProjectInfo && e.hasOwnProperty("welfareProjectInfo") && (r.welfareProjectInfo = l.webcast.data.WelfareProjectInfo.toObject(e.welfareProjectInfo, t)), null != e.gameRoomType && e.hasOwnProperty("gameRoomType") && (r.gameRoomType = e.gameRoomType), null != e.paidLiveData && e.hasOwnProperty("paidLiveData") && (r.paidLiveData = l.webcast.data.PaidLiveData.toObject(e.paidLiveData, t)), null != e.easterEggData && e.hasOwnProperty("easterEggData") && (r.easterEggData = l.webcast.data.EasterEggData.toObject(e.easterEggData, t)), null != e.titleRecommend && e.hasOwnProperty("titleRecommend") && (r.titleRecommend = e.titleRecommend), null != e.danmakuDetail && e.hasOwnProperty("danmakuDetail") && ("number" == typeof e.danmakuDetail ? r.danmakuDetail = t.longs === String ? String(e.danmakuDetail) : e.danmakuDetail : r.danmakuDetail = t.longs === String ? a.Long.prototype.toString.call(e.danmakuDetail) : t.longs === Number ? new a.LongBits(e.danmakuDetail.low >>> 0, e.danmakuDetail.high >>> 0).toNumber() : e.danmakuDetail), null != e.avatarLiveInfo && e.hasOwnProperty("avatarLiveInfo") && (r.avatarLiveInfo = l.webcast.data.AvatarLiveInfo.toObject(e.avatarLiveInfo, t)), null != e.circleInfo && e.hasOwnProperty("circleInfo") && (r.circleInfo = l.webcast.data.CircleInfo.toObject(e.circleInfo, t)), null != e.hasPromotionGames && e.hasOwnProperty("hasPromotionGames") && ("number" == typeof e.hasPromotionGames ? r.hasPromotionGames = t.longs === String ? String(e.hasPromotionGames) : e.hasPromotionGames : r.hasPromotionGames = t.longs === String ? a.Long.prototype.toString.call(e.hasPromotionGames) : t.longs === Number ? new a.LongBits(e.hasPromotionGames.low >>> 0, e.hasPromotionGames.high >>> 0).toNumber() : e.hasPromotionGames), null != e.screenshotSover && e.hasOwnProperty("screenshotSover") && (r.screenshotSover = l.webcast.data.Image.toObject(e.screenshotSover, t)), null != e.appearance && e.hasOwnProperty("appearance") && (r.appearance = l.webcast.data.Appearance.toObject(e.appearance, t)), null != e.ecomData && e.hasOwnProperty("ecomData") && (r.ecomData = l.webcast.data.EcomData.toObject(e.ecomData, t)), r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EcomData = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.liveCard = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.liveCard && Object.hasOwnProperty.call(e, "liveCard") && l.webcast.data.EcomLiveCard.encode(e.liveCard, t.uint32(10).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EcomData; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.liveCard = l.webcast.data.EcomLiveCard.decode(e, e.uint32()); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.liveCard && e.hasOwnProperty("liveCard")) + { + var t = l.webcast.data.EcomLiveCard.verify(e.liveCard); + if (t) return "liveCard." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EcomData) return e; + var t = new l.webcast.data.EcomData; + if (null != e.liveCard) + { + if ("object" != typeof e.liveCard) throw TypeError(".webcast.data.EcomData.liveCard: object expected"); + t.liveCard = l.webcast.data.EcomLiveCard.fromObject(e.liveCard) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.liveCard = null), null != e.liveCard && e.hasOwnProperty("liveCard") && (n.liveCard = l.webcast.data.EcomLiveCard.toObject(e.liveCard, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.AvatarLiveInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.type = "", e.prototype.text = "", e.prototype.textSize = 0, e.prototype.image = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.type && Object.hasOwnProperty.call(e, "type") && t.uint32(10).string(e.type), null != e.text && Object.hasOwnProperty.call(e, "text") && t.uint32(18).string(e.text), null != e.textSize && Object.hasOwnProperty.call(e, "textSize") && t.uint32(24).int32(e.textSize), null != e.image && Object.hasOwnProperty.call(e, "image") && l.webcast.data.Image.encode(e.image, t.uint32(34).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.AvatarLiveInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.type = e.string(); + break; + case 2: + r.text = e.string(); + break; + case 3: + r.textSize = e.int32(); + break; + case 4: + r.image = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.type && e.hasOwnProperty("type") && !a.isString(e.type)) return "type: string expected"; + if (null != e.text && e.hasOwnProperty("text") && !a.isString(e.text)) return "text: string expected"; + if (null != e.textSize && e.hasOwnProperty("textSize") && !a.isInteger(e.textSize)) return "textSize: integer expected"; + if (null != e.image && e.hasOwnProperty("image")) + { + var t = l.webcast.data.Image.verify(e.image); + if (t) return "image." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.AvatarLiveInfo) return e; + var t = new l.webcast.data.AvatarLiveInfo; + if (null != e.type && (t.type = String(e.type)), null != e.text && (t.text = String(e.text)), null != e.textSize && (t.textSize = 0 | e.textSize), null != e.image) + { + if ("object" != typeof e.image) throw TypeError(".webcast.data.AvatarLiveInfo.image: object expected"); + t.image = l.webcast.data.Image.fromObject(e.image) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.type = "", n.text = "", n.textSize = 0, n.image = null), null != e.type && e.hasOwnProperty("type") && (n.type = e.type), null != e.text && e.hasOwnProperty("text") && (n.text = e.text), null != e.textSize && e.hasOwnProperty("textSize") && (n.textSize = e.textSize), null != e.image && e.hasOwnProperty("image") && (n.image = l.webcast.data.Image.toObject(e.image, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.WelfareProjectInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.projectId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.showFrequency = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.containerCardUrl = "", e.prototype.welfareDetailPageUrl = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.projectId && Object.hasOwnProperty.call(e, "projectId") && t.uint32(8).int64(e.projectId), null != e.showFrequency && Object.hasOwnProperty.call(e, "showFrequency") && t.uint32(16).int64(e.showFrequency), null != e.containerCardUrl && Object.hasOwnProperty.call(e, "containerCardUrl") && t.uint32(26).string(e.containerCardUrl), null != e.welfareDetailPageUrl && Object.hasOwnProperty.call(e, "welfareDetailPageUrl") && t.uint32(34).string(e.welfareDetailPageUrl), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.WelfareProjectInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.projectId = e.int64(); + break; + case 2: + r.showFrequency = e.int64(); + break; + case 3: + r.containerCardUrl = e.string(); + break; + case 4: + r.welfareDetailPageUrl = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.projectId && e.hasOwnProperty("projectId") && !(a.isInteger(e.projectId) || e.projectId && a.isInteger(e.projectId.low) && a.isInteger(e.projectId.high)) ? "projectId: integer|Long expected" : null != e.showFrequency && e.hasOwnProperty("showFrequency") && !(a.isInteger(e.showFrequency) || e.showFrequency && a.isInteger(e.showFrequency.low) && a.isInteger(e.showFrequency.high)) ? "showFrequency: integer|Long expected" : null != e.containerCardUrl && e.hasOwnProperty("containerCardUrl") && !a.isString(e.containerCardUrl) ? "containerCardUrl: string expected" : null != e.welfareDetailPageUrl && e.hasOwnProperty("welfareDetailPageUrl") && !a.isString(e.welfareDetailPageUrl) ? "welfareDetailPageUrl: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.WelfareProjectInfo) return e; + var t = new l.webcast.data.WelfareProjectInfo; + return null != e.projectId && (a.Long ? (t.projectId = a.Long.fromValue(e.projectId)).unsigned = !1 : "string" == typeof e.projectId ? t.projectId = parseInt(e.projectId, 10) : "number" == typeof e.projectId ? t.projectId = e.projectId : "object" == typeof e.projectId && (t.projectId = new a.LongBits(e.projectId.low >>> 0, e.projectId.high >>> 0).toNumber())), null != e.showFrequency && (a.Long ? (t.showFrequency = a.Long.fromValue(e.showFrequency)).unsigned = !1 : "string" == typeof e.showFrequency ? t.showFrequency = parseInt(e.showFrequency, 10) : "number" == typeof e.showFrequency ? t.showFrequency = e.showFrequency : "object" == typeof e.showFrequency && (t.showFrequency = new a.LongBits(e.showFrequency.low >>> 0, e.showFrequency.high >>> 0).toNumber())), null != e.containerCardUrl && (t.containerCardUrl = String(e.containerCardUrl)), null != e.welfareDetailPageUrl && (t.welfareDetailPageUrl = String(e.welfareDetailPageUrl)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.projectId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.projectId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.showFrequency = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.showFrequency = t.longs === String ? "0" : 0; + n.containerCardUrl = "", n.welfareDetailPageUrl = "" + } + return null != e.projectId && e.hasOwnProperty("projectId") && ("number" == typeof e.projectId ? n.projectId = t.longs === String ? String(e.projectId) : e.projectId : n.projectId = t.longs === String ? a.Long.prototype.toString.call(e.projectId) : t.longs === Number ? new a.LongBits(e.projectId.low >>> 0, e.projectId.high >>> 0).toNumber() : e.projectId), null != e.showFrequency && e.hasOwnProperty("showFrequency") && ("number" == typeof e.showFrequency ? n.showFrequency = t.longs === String ? String(e.showFrequency) : e.showFrequency : n.showFrequency = t.longs === String ? a.Long.prototype.toString.call(e.showFrequency) : t.longs === Number ? new a.LongBits(e.showFrequency.low >>> 0, e.showFrequency.high >>> 0).toNumber() : e.showFrequency), null != e.containerCardUrl && e.hasOwnProperty("containerCardUrl") && (n.containerCardUrl = e.containerCardUrl), null != e.welfareDetailPageUrl && e.hasOwnProperty("welfareDetailPageUrl") && (n.welfareDetailPageUrl = e.welfareDetailPageUrl), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.CornerMarkReach = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.needReach = !1, e.prototype.duration = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.needReach && Object.hasOwnProperty.call(e, "needReach") && t.uint32(8).bool(e.needReach), null != e.duration && Object.hasOwnProperty.call(e, "duration") && t.uint32(16).int64(e.duration), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.CornerMarkReach; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.needReach = e.bool(); + break; + case 2: + r.duration = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.needReach && e.hasOwnProperty("needReach") && "boolean" != typeof e.needReach ? "needReach: boolean expected" : null != e.duration && e.hasOwnProperty("duration") && !(a.isInteger(e.duration) || e.duration && a.isInteger(e.duration.low) && a.isInteger(e.duration.high)) ? "duration: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.CornerMarkReach) return e; + var t = new l.webcast.data.CornerMarkReach; + return null != e.needReach && (t.needReach = Boolean(e.needReach)), null != e.duration && (a.Long ? (t.duration = a.Long.fromValue(e.duration)).unsigned = !1 : "string" == typeof e.duration ? t.duration = parseInt(e.duration, 10) : "number" == typeof e.duration ? t.duration = e.duration : "object" == typeof e.duration && (t.duration = new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + if (n.needReach = !1, a.Long) + { + var r = new a.Long(0, 0, !1); + n.duration = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.duration = t.longs === String ? "0" : 0; + return null != e.needReach && e.hasOwnProperty("needReach") && (n.needReach = e.needReach), null != e.duration && e.hasOwnProperty("duration") && ("number" == typeof e.duration ? n.duration = t.longs === String ? String(e.duration) : e.duration : n.duration = t.longs === String ? a.Long.prototype.toString.call(e.duration) : t.longs === Number ? new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber() : e.duration), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.VerticalTypeInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.name = "", e.prototype.tabType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.tagId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.isSubTag = !1, e.prototype.icon = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(10).string(e.name), null != e.tabType && Object.hasOwnProperty.call(e, "tabType") && t.uint32(16).int64(e.tabType), null != e.tagId && Object.hasOwnProperty.call(e, "tagId") && t.uint32(24).int64(e.tagId), null != e.isSubTag && Object.hasOwnProperty.call(e, "isSubTag") && t.uint32(32).bool(e.isSubTag), null != e.icon && Object.hasOwnProperty.call(e, "icon") && l.webcast.data.Image.encode(e.icon, t.uint32(42).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.VerticalTypeInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.name = e.string(); + break; + case 2: + r.tabType = e.int64(); + break; + case 3: + r.tagId = e.int64(); + break; + case 4: + r.isSubTag = e.bool(); + break; + case 5: + r.icon = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.name && e.hasOwnProperty("name") && !a.isString(e.name)) return "name: string expected"; + if (null != e.tabType && e.hasOwnProperty("tabType") && !(a.isInteger(e.tabType) || e.tabType && a.isInteger(e.tabType.low) && a.isInteger(e.tabType.high))) return "tabType: integer|Long expected"; + if (null != e.tagId && e.hasOwnProperty("tagId") && !(a.isInteger(e.tagId) || e.tagId && a.isInteger(e.tagId.low) && a.isInteger(e.tagId.high))) return "tagId: integer|Long expected"; + if (null != e.isSubTag && e.hasOwnProperty("isSubTag") && "boolean" != typeof e.isSubTag) return "isSubTag: boolean expected"; + if (null != e.icon && e.hasOwnProperty("icon")) + { + var t = l.webcast.data.Image.verify(e.icon); + if (t) return "icon." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.VerticalTypeInfo) return e; + var t = new l.webcast.data.VerticalTypeInfo; + if (null != e.name && (t.name = String(e.name)), null != e.tabType && (a.Long ? (t.tabType = a.Long.fromValue(e.tabType)).unsigned = !1 : "string" == typeof e.tabType ? t.tabType = parseInt(e.tabType, 10) : "number" == typeof e.tabType ? t.tabType = e.tabType : "object" == typeof e.tabType && (t.tabType = new a.LongBits(e.tabType.low >>> 0, e.tabType.high >>> 0).toNumber())), null != e.tagId && (a.Long ? (t.tagId = a.Long.fromValue(e.tagId)).unsigned = !1 : "string" == typeof e.tagId ? t.tagId = parseInt(e.tagId, 10) : "number" == typeof e.tagId ? t.tagId = e.tagId : "object" == typeof e.tagId && (t.tagId = new a.LongBits(e.tagId.low >>> 0, e.tagId.high >>> 0).toNumber())), null != e.isSubTag && (t.isSubTag = Boolean(e.isSubTag)), null != e.icon) + { + if ("object" != typeof e.icon) throw TypeError(".webcast.data.VerticalTypeInfo.icon: object expected"); + t.icon = l.webcast.data.Image.fromObject(e.icon) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.name = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.tabType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.tabType = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.tagId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.tagId = t.longs === String ? "0" : 0; + n.isSubTag = !1, n.icon = null + } + return null != e.name && e.hasOwnProperty("name") && (n.name = e.name), null != e.tabType && e.hasOwnProperty("tabType") && ("number" == typeof e.tabType ? n.tabType = t.longs === String ? String(e.tabType) : e.tabType : n.tabType = t.longs === String ? a.Long.prototype.toString.call(e.tabType) : t.longs === Number ? new a.LongBits(e.tabType.low >>> 0, e.tabType.high >>> 0).toNumber() : e.tabType), null != e.tagId && e.hasOwnProperty("tagId") && ("number" == typeof e.tagId ? n.tagId = t.longs === String ? String(e.tagId) : e.tagId : n.tagId = t.longs === String ? a.Long.prototype.toString.call(e.tagId) : t.longs === Number ? new a.LongBits(e.tagId.low >>> 0, e.tagId.high >>> 0).toNumber() : e.tagId), null != e.isSubTag && e.hasOwnProperty("isSubTag") && (n.isSubTag = e.isSubTag), null != e.icon && e.hasOwnProperty("icon") && (n.icon = l.webcast.data.Image.toObject(e.icon, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.FilterWord = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.id = "", e.prototype.isSelected = !1, e.prototype.name = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(10).string(e.id), null != e.isSelected && Object.hasOwnProperty.call(e, "isSelected") && t.uint32(16).bool(e.isSelected), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(26).string(e.name), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.FilterWord; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.id = e.string(); + break; + case 2: + r.isSelected = e.bool(); + break; + case 3: + r.name = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.id && e.hasOwnProperty("id") && !a.isString(e.id) ? "id: string expected" : null != e.isSelected && e.hasOwnProperty("isSelected") && "boolean" != typeof e.isSelected ? "isSelected: boolean expected" : null != e.name && e.hasOwnProperty("name") && !a.isString(e.name) ? "name: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.FilterWord) return e; + var t = new l.webcast.data.FilterWord; + return null != e.id && (t.id = String(e.id)), null != e.isSelected && (t.isSelected = Boolean(e.isSelected)), null != e.name && (t.name = String(e.name)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.id = "", n.isSelected = !1, n.name = ""), null != e.id && e.hasOwnProperty("id") && (n.id = e.id), null != e.isSelected && e.hasOwnProperty("isSelected") && (n.isSelected = e.isSelected), null != e.name && e.hasOwnProperty("name") && (n.name = e.name), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LabelInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.labelType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.displayType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.spliceLabel = null, e.prototype.wholeLabel = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.labelType && Object.hasOwnProperty.call(e, "labelType") && t.uint32(8).int64(e.labelType), null != e.displayType && Object.hasOwnProperty.call(e, "displayType") && t.uint32(16).int64(e.displayType), null != e.spliceLabel && Object.hasOwnProperty.call(e, "spliceLabel") && l.webcast.data.SpliceLabel.encode(e.spliceLabel, t.uint32(26).fork()).ldelim(), null != e.wholeLabel && Object.hasOwnProperty.call(e, "wholeLabel") && l.webcast.data.Image.encode(e.wholeLabel, t.uint32(34).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LabelInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.labelType = e.int64(); + break; + case 2: + r.displayType = e.int64(); + break; + case 3: + r.spliceLabel = l.webcast.data.SpliceLabel.decode(e, e.uint32()); + break; + case 4: + r.wholeLabel = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.labelType && e.hasOwnProperty("labelType") && !(a.isInteger(e.labelType) || e.labelType && a.isInteger(e.labelType.low) && a.isInteger(e.labelType.high))) return "labelType: integer|Long expected"; + if (null != e.displayType && e.hasOwnProperty("displayType") && !(a.isInteger(e.displayType) || e.displayType && a.isInteger(e.displayType.low) && a.isInteger(e.displayType.high))) return "displayType: integer|Long expected"; + var t; + if (null != e.spliceLabel && e.hasOwnProperty("spliceLabel") && (t = l.webcast.data.SpliceLabel.verify(e.spliceLabel))) return "spliceLabel." + t; + if (null != e.wholeLabel && e.hasOwnProperty("wholeLabel") && (t = l.webcast.data.Image.verify(e.wholeLabel))) return "wholeLabel." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LabelInfo) return e; + var t = new l.webcast.data.LabelInfo; + if (null != e.labelType && (a.Long ? (t.labelType = a.Long.fromValue(e.labelType)).unsigned = !1 : "string" == typeof e.labelType ? t.labelType = parseInt(e.labelType, 10) : "number" == typeof e.labelType ? t.labelType = e.labelType : "object" == typeof e.labelType && (t.labelType = new a.LongBits(e.labelType.low >>> 0, e.labelType.high >>> 0).toNumber())), null != e.displayType && (a.Long ? (t.displayType = a.Long.fromValue(e.displayType)).unsigned = !1 : "string" == typeof e.displayType ? t.displayType = parseInt(e.displayType, 10) : "number" == typeof e.displayType ? t.displayType = e.displayType : "object" == typeof e.displayType && (t.displayType = new a.LongBits(e.displayType.low >>> 0, e.displayType.high >>> 0).toNumber())), null != e.spliceLabel) + { + if ("object" != typeof e.spliceLabel) throw TypeError(".webcast.data.LabelInfo.spliceLabel: object expected"); + t.spliceLabel = l.webcast.data.SpliceLabel.fromObject(e.spliceLabel) + } + if (null != e.wholeLabel) + { + if ("object" != typeof e.wholeLabel) throw TypeError(".webcast.data.LabelInfo.wholeLabel: object expected"); + t.wholeLabel = l.webcast.data.Image.fromObject(e.wholeLabel) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.labelType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.labelType = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.displayType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.displayType = t.longs === String ? "0" : 0; + n.spliceLabel = null, n.wholeLabel = null + } + return null != e.labelType && e.hasOwnProperty("labelType") && ("number" == typeof e.labelType ? n.labelType = t.longs === String ? String(e.labelType) : e.labelType : n.labelType = t.longs === String ? a.Long.prototype.toString.call(e.labelType) : t.longs === Number ? new a.LongBits(e.labelType.low >>> 0, e.labelType.high >>> 0).toNumber() : e.labelType), null != e.displayType && e.hasOwnProperty("displayType") && ("number" == typeof e.displayType ? n.displayType = t.longs === String ? String(e.displayType) : e.displayType : n.displayType = t.longs === String ? a.Long.prototype.toString.call(e.displayType) : t.longs === Number ? new a.LongBits(e.displayType.low >>> 0, e.displayType.high >>> 0).toNumber() : e.displayType), null != e.spliceLabel && e.hasOwnProperty("spliceLabel") && (n.spliceLabel = l.webcast.data.SpliceLabel.toObject(e.spliceLabel, t)), null != e.wholeLabel && e.hasOwnProperty("wholeLabel") && (n.wholeLabel = l.webcast.data.Image.toObject(e.wholeLabel, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LabelType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "LabelUnknown"] = 0, t[e[9] = "SellGoods"] = 9, t[e[10] = "DrawSomething"] = 10, t[e[11] = "AnchorSing"] = 11, t[e[12] = "AudioLinkMic"] = 12, t[e[13] = "PK"] = 13, t[e[14] = "AudioLive"] = 14, t[e[15] = "ActivityTag"] = 15, t[e[16] = "OfficialLive"] = 16, t[e[17] = "OfficialChannel"] = 17, t[e[18] = "HotSentenceTop"] = 18, t[e[19] = "HourlyRankTop"] = 19, t[e[20] = "RedPackage"] = 20, t[e[21] = "Friend"] = 21, t[e[22] = "Following"] = 22, t[e[23] = "OnlineAudienceTopN"] = 23, t[e[24] = "HourlyRegionRankTop"] = 24, t[e[25] = "GameLabel"] = 25, t[e[26] = "GameBackgroundDefault"] = 26, t[e[27] = "GameBackgroundCustom"] = 27, t[e[28] = "TCFamilyTag"] = 28, t[e[29] = "AudioChatKTV"] = 29, t[e[30] = "ShareVideo"] = 30, t[e[31] = "FriendLinkMic"] = 31, t[e[32] = "LuckyPacket"] = 32, t[e[33] = "FriendsWatching"] = 33, t[e[34] = "FriendsWatched"] = 34, t[e[35] = "FriendLinkMicKTV"] = 35, t[e[36] = "SameCity"] = 36, t[e[37] = "NearBy"] = 37, t[e[38] = "HomeTown"] = 38, t[e[39] = "ShopRankHourlyTop"] = 39, t[e[40] = "WatchedLiveRecently"] = 40, t[e[41] = "Acquaintance"] = 41, t[e[42] = "Urged"] = 42, t[e[43] = "Distance"] = 43, t[e[44] = "HourlyPopularityRankTop"] = 44, t[e[45] = "PaidLive"] = 45, t[e[46] = "PaidLiveAssist"] = 46, t[e[47] = "SameCityDistance"] = 47, t + }(), e.SpliceLabel = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.text = "", e.prototype.textColor = "", e.prototype.backgroundImage = null, e.prototype.iconImage = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.text && Object.hasOwnProperty.call(e, "text") && t.uint32(10).string(e.text), null != e.textColor && Object.hasOwnProperty.call(e, "textColor") && t.uint32(18).string(e.textColor), null != e.backgroundImage && Object.hasOwnProperty.call(e, "backgroundImage") && l.webcast.data.Image.encode(e.backgroundImage, t.uint32(26).fork()).ldelim(), null != e.iconImage && Object.hasOwnProperty.call(e, "iconImage") && l.webcast.data.Image.encode(e.iconImage, t.uint32(34).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.SpliceLabel; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.text = e.string(); + break; + case 2: + r.textColor = e.string(); + break; + case 3: + r.backgroundImage = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 4: + r.iconImage = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.text && e.hasOwnProperty("text") && !a.isString(e.text)) return "text: string expected"; + if (null != e.textColor && e.hasOwnProperty("textColor") && !a.isString(e.textColor)) return "textColor: string expected"; + var t; + if (null != e.backgroundImage && e.hasOwnProperty("backgroundImage") && (t = l.webcast.data.Image.verify(e.backgroundImage))) return "backgroundImage." + t; + if (null != e.iconImage && e.hasOwnProperty("iconImage") && (t = l.webcast.data.Image.verify(e.iconImage))) return "iconImage." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.SpliceLabel) return e; + var t = new l.webcast.data.SpliceLabel; + if (null != e.text && (t.text = String(e.text)), null != e.textColor && (t.textColor = String(e.textColor)), null != e.backgroundImage) + { + if ("object" != typeof e.backgroundImage) throw TypeError(".webcast.data.SpliceLabel.backgroundImage: object expected"); + t.backgroundImage = l.webcast.data.Image.fromObject(e.backgroundImage) + } + if (null != e.iconImage) + { + if ("object" != typeof e.iconImage) throw TypeError(".webcast.data.SpliceLabel.iconImage: object expected"); + t.iconImage = l.webcast.data.Image.fromObject(e.iconImage) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.text = "", n.textColor = "", n.backgroundImage = null, n.iconImage = null), null != e.text && e.hasOwnProperty("text") && (n.text = e.text), null != e.textColor && e.hasOwnProperty("textColor") && (n.textColor = e.textColor), null != e.backgroundImage && e.hasOwnProperty("backgroundImage") && (n.backgroundImage = l.webcast.data.Image.toObject(e.backgroundImage, t)), null != e.iconImage && e.hasOwnProperty("iconImage") && (n.iconImage = l.webcast.data.Image.toObject(e.iconImage, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.VisibilityRangeEnum = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "Public"] = 0, t[e[1] = "OnlyFansCan"] = 1, t[e[2] = "OnlyFriendsCan"] = 2, t[e[3] = "SomePeopleCan"] = 3, t[e[4] = "SomePeopleNotCan"] = 4, t + }(), e.LiveStatusInfo = function () + { + function e(e) + { + if (this.liveNotifyLight = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.liveStatus = 0, e.prototype.liveUser = null, e.prototype.liveNotifyLight = a.emptyObject, e.prototype.previewText = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.liveStatus && Object.hasOwnProperty.call(e, "liveStatus") && t.uint32(8).int32(e.liveStatus), null != e.liveUser && Object.hasOwnProperty.call(e, "liveUser") && l.webcast.data.User.encode(e.liveUser, t.uint32(18).fork()).ldelim(), null != e.liveNotifyLight && Object.hasOwnProperty.call(e, "liveNotifyLight")) + for (var n = Object.keys(e.liveNotifyLight), r = 0; r < n.length; ++r) t.uint32(26).fork().uint32(8).int32(n[r]), l.webcast.data.Image.encode(e.liveNotifyLight[n[r]], t.uint32(18).fork()).ldelim().ldelim(); + return null != e.previewText && Object.hasOwnProperty.call(e, "previewText") && t.uint32(34).string(e.previewText), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.LiveStatusInfo; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.liveStatus = e.int32(); + break; + case 2: + s.liveUser = l.webcast.data.User.decode(e, e.uint32()); + break; + case 3: + s.liveNotifyLight === a.emptyObject && (s.liveNotifyLight = {}); + var u = e.uint32() + e.pos; + for (n = 0, r = null; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.int32(); + break; + case 2: + r = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & p) + } + } + s.liveNotifyLight[n] = r; + break; + case 4: + s.previewText = e.string(); + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.liveStatus && e.hasOwnProperty("liveStatus")) switch (e.liveStatus) + { + default: + return "liveStatus: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + } + if (null != e.liveUser && e.hasOwnProperty("liveUser") && (r = l.webcast.data.User.verify(e.liveUser))) return "liveUser." + r; + if (null != e.liveNotifyLight && e.hasOwnProperty("liveNotifyLight")) + { + if (!a.isObject(e.liveNotifyLight)) return "liveNotifyLight: object expected"; + for (var t = Object.keys(e.liveNotifyLight), n = 0; n < t.length; ++n) + { + if (!a.key32Re.test(t[n])) return "liveNotifyLight: integer key{k:int32} expected"; + var r; + if (r = l.webcast.data.Image.verify(e.liveNotifyLight[t[n]])) return "liveNotifyLight." + r + } + } + return null != e.previewText && e.hasOwnProperty("previewText") && !a.isString(e.previewText) ? "previewText: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LiveStatusInfo) return e; + var t = new l.webcast.data.LiveStatusInfo; + switch (e.liveStatus) + { + case "NotLiving": + case 0: + t.liveStatus = 0; + break; + case "Living": + case 1: + t.liveStatus = 1; + break; + case "Linkmic": + case 2: + t.liveStatus = 2; + break; + case "VsPremiere": + case 3: + t.liveStatus = 3; + break; + case "VsLive": + case 4: + t.liveStatus = 4 + } + if (null != e.liveUser) + { + if ("object" != typeof e.liveUser) throw TypeError(".webcast.data.LiveStatusInfo.liveUser: object expected"); + t.liveUser = l.webcast.data.User.fromObject(e.liveUser) + } + if (e.liveNotifyLight) + { + if ("object" != typeof e.liveNotifyLight) throw TypeError(".webcast.data.LiveStatusInfo.liveNotifyLight: object expected"); + t.liveNotifyLight = {}; + for (var n = Object.keys(e.liveNotifyLight), r = 0; r < n.length; ++r) + { + if ("object" != typeof e.liveNotifyLight[n[r]]) throw TypeError(".webcast.data.LiveStatusInfo.liveNotifyLight: object expected"); + t.liveNotifyLight[n[r]] = l.webcast.data.Image.fromObject(e.liveNotifyLight[n[r]]) + } + } + return null != e.previewText && (t.previewText = String(e.previewText)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.liveNotifyLight = {}), t.defaults && (r.liveStatus = t.enums === String ? "NotLiving" : 0, r.liveUser = null, r.previewText = ""), null != e.liveStatus && e.hasOwnProperty("liveStatus") && (r.liveStatus = t.enums === String ? l.webcast.data.LiveStatus[e.liveStatus] : e.liveStatus), null != e.liveUser && e.hasOwnProperty("liveUser") && (r.liveUser = l.webcast.data.User.toObject(e.liveUser, t)), e.liveNotifyLight && (n = Object.keys(e.liveNotifyLight)).length) + { + r.liveNotifyLight = {}; + for (var o = 0; o < n.length; ++o) r.liveNotifyLight[n[o]] = l.webcast.data.Image.toObject(e.liveNotifyLight[n[o]], t) + } + return null != e.previewText && e.hasOwnProperty("previewText") && (r.previewText = e.previewText), r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ShortTouchAuth = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.commerceLottery = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.commerceLottery && Object.hasOwnProperty.call(e, "commerceLottery") && t.uint32(8).int32(e.commerceLottery), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ShortTouchAuth; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.commerceLottery = e.int32(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.commerceLottery && e.hasOwnProperty("commerceLottery") && !a.isInteger(e.commerceLottery) ? "commerceLottery: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ShortTouchAuth) return e; + var t = new l.webcast.data.ShortTouchAuth; + return null != e.commerceLottery && (t.commerceLottery = 0 | e.commerceLottery), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.commerceLottery = 0), null != e.commerceLottery && e.hasOwnProperty("commerceLottery") && (n.commerceLottery = e.commerceLottery), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.AcquaintanceStatusEnum = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "AcquaintanceStatusUnknown"] = 0, t[e[1] = "AcquaintanceStatusFriend"] = 1, t[e[2] = "AcquaintanceStatusPrivate"] = 2, t + }(), e.LiveStatus = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "NotLiving"] = 0, t[e[1] = "Living"] = 1, t[e[2] = "Linkmic"] = 2, t[e[3] = "VsPremiere"] = 3, t[e[4] = "VsLive"] = 4, t + }(), e.VsRoleEnum = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "Unknow"] = 0, t[e[1] = "HundredCommittee"] = 1, t + }(), e.EpisodeStageEnum = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "episodeStageUnknown"] = 0, t[e[1] = "episodeStageLive"] = 1, t[e[2] = "episodeStagePremiere"] = 2, t[e[3] = "episodeStageRecord"] = 3, t + }(), e.EpisodeTypeEnum = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "episodeTypeUnknown"] = 0, t[e[1] = "episodeTypeNormal"] = 1, t[e[2] = "episodeTypeFeature"] = 2, t + }(), e.EpisodeSubTypeEnum = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "episodeSubTypeEnumUnknown"] = 0, t[e[1] = "episodeSubTypeEnumNormal"] = 1, t[e[2] = "episodeSubTypeEnumGuide"] = 2, t + }(), e.EpisodeRecordTypeEnum = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "episodeRecordTypeUnknown"] = 0, t[e[1] = "episodeRecordTypeNormal"] = 1, t[e[2] = "episodeRecordTypeLatest"] = 2, t[e[3] = "episodeRecordTypeGuide"] = 3, t + }(), e.EpisodeMod = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.episodeStage = 0, e.prototype.episodeType = 0, e.prototype.episodeSubType = 0, e.prototype.episodeRecordType = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.episodeStage && Object.hasOwnProperty.call(e, "episodeStage") && t.uint32(8).int32(e.episodeStage), null != e.episodeType && Object.hasOwnProperty.call(e, "episodeType") && t.uint32(16).int32(e.episodeType), null != e.episodeSubType && Object.hasOwnProperty.call(e, "episodeSubType") && t.uint32(24).int32(e.episodeSubType), null != e.episodeRecordType && Object.hasOwnProperty.call(e, "episodeRecordType") && t.uint32(32).int32(e.episodeRecordType), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EpisodeMod; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.episodeStage = e.int32(); + break; + case 2: + r.episodeType = e.int32(); + break; + case 3: + r.episodeSubType = e.int32(); + break; + case 4: + r.episodeRecordType = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.episodeStage && e.hasOwnProperty("episodeStage")) switch (e.episodeStage) + { + default: + return "episodeStage: enum value expected"; + case 0: + case 1: + case 2: + case 3: + } + if (null != e.episodeType && e.hasOwnProperty("episodeType")) switch (e.episodeType) + { + default: + return "episodeType: enum value expected"; + case 0: + case 1: + case 2: + } + if (null != e.episodeSubType && e.hasOwnProperty("episodeSubType")) switch (e.episodeSubType) + { + default: + return "episodeSubType: enum value expected"; + case 0: + case 1: + case 2: + } + if (null != e.episodeRecordType && e.hasOwnProperty("episodeRecordType")) switch (e.episodeRecordType) + { + default: + return "episodeRecordType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EpisodeMod) return e; + var t = new l.webcast.data.EpisodeMod; + switch (e.episodeStage) + { + case "episodeStageUnknown": + case 0: + t.episodeStage = 0; + break; + case "episodeStageLive": + case 1: + t.episodeStage = 1; + break; + case "episodeStagePremiere": + case 2: + t.episodeStage = 2; + break; + case "episodeStageRecord": + case 3: + t.episodeStage = 3 + } + switch (e.episodeType) + { + case "episodeTypeUnknown": + case 0: + t.episodeType = 0; + break; + case "episodeTypeNormal": + case 1: + t.episodeType = 1; + break; + case "episodeTypeFeature": + case 2: + t.episodeType = 2 + } + switch (e.episodeSubType) + { + case "episodeSubTypeEnumUnknown": + case 0: + t.episodeSubType = 0; + break; + case "episodeSubTypeEnumNormal": + case 1: + t.episodeSubType = 1; + break; + case "episodeSubTypeEnumGuide": + case 2: + t.episodeSubType = 2 + } + switch (e.episodeRecordType) + { + case "episodeRecordTypeUnknown": + case 0: + t.episodeRecordType = 0; + break; + case "episodeRecordTypeNormal": + case 1: + t.episodeRecordType = 1; + break; + case "episodeRecordTypeLatest": + case 2: + t.episodeRecordType = 2; + break; + case "episodeRecordTypeGuide": + case 3: + t.episodeRecordType = 3 + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.episodeStage = t.enums === String ? "episodeStageUnknown" : 0, n.episodeType = t.enums === String ? "episodeTypeUnknown" : 0, n.episodeSubType = t.enums === String ? "episodeSubTypeEnumUnknown" : 0, n.episodeRecordType = t.enums === String ? "episodeRecordTypeUnknown" : 0), null != e.episodeStage && e.hasOwnProperty("episodeStage") && (n.episodeStage = t.enums === String ? l.webcast.data.EpisodeStageEnum[e.episodeStage] : e.episodeStage), null != e.episodeType && e.hasOwnProperty("episodeType") && (n.episodeType = t.enums === String ? l.webcast.data.EpisodeTypeEnum[e.episodeType] : e.episodeType), null != e.episodeSubType && e.hasOwnProperty("episodeSubType") && (n.episodeSubType = t.enums === String ? l.webcast.data.EpisodeSubTypeEnum[e.episodeSubType] : e.episodeSubType), null != e.episodeRecordType && e.hasOwnProperty("episodeRecordType") && (n.episodeRecordType = t.enums === String ? l.webcast.data.EpisodeRecordTypeEnum[e.episodeRecordType] : e.episodeRecordType), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ToolbarType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "ToolbarDefault"] = 0, t[e[1] = "ToolbarTopic"] = 1, t[e[2] = "ToolbarRank"] = 2, t[e[3] = "ToolVSInteraction"] = 3, t[e[4] = "ToolbarCart"] = 4, t[e[5] = "ToolbarGift"] = 5, t[e[6] = "ToolbarInput"] = 6, t + }(), e.DisplayType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "DisplayNone"] = 0, t[e[1] = "DisplayVertical"] = 1, t[e[2] = "DisplayHorizontal"] = 2, t[e[3] = "DisplayAll"] = 3, t + }(), e.BGType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "BGTypeUnknow"] = 0, t[e[1] = "BGKTV"] = 1, t[e[2] = "BGAudio"] = 2, t[e[3] = "BGVideo"] = 3, t[e[4] = "BGVideoKTV"] = 4, t + }(), e.ToolbarItemConfig = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.toolbarType = 0, e.prototype.icon = null, e.prototype.jumpSchema = "", e.prototype.displayType = 0, e.prototype.dynamicIcon = null, e.prototype.iconVertical = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.toolbarType && Object.hasOwnProperty.call(e, "toolbarType") && t.uint32(8).int32(e.toolbarType), null != e.icon && Object.hasOwnProperty.call(e, "icon") && l.webcast.data.Image.encode(e.icon, t.uint32(18).fork()).ldelim(), null != e.jumpSchema && Object.hasOwnProperty.call(e, "jumpSchema") && t.uint32(26).string(e.jumpSchema), null != e.displayType && Object.hasOwnProperty.call(e, "displayType") && t.uint32(32).int32(e.displayType), null != e.dynamicIcon && Object.hasOwnProperty.call(e, "dynamicIcon") && l.webcast.data.Image.encode(e.dynamicIcon, t.uint32(42).fork()).ldelim(), null != e.iconVertical && Object.hasOwnProperty.call(e, "iconVertical") && l.webcast.data.Image.encode(e.iconVertical, t.uint32(50).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ToolbarItemConfig; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.toolbarType = e.int32(); + break; + case 2: + r.icon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 3: + r.jumpSchema = e.string(); + break; + case 4: + r.displayType = e.int32(); + break; + case 5: + r.dynamicIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 6: + r.iconVertical = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.toolbarType && e.hasOwnProperty("toolbarType")) switch (e.toolbarType) + { + default: + return "toolbarType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + } + var t; + if (null != e.icon && e.hasOwnProperty("icon") && (t = l.webcast.data.Image.verify(e.icon))) return "icon." + t; + if (null != e.jumpSchema && e.hasOwnProperty("jumpSchema") && !a.isString(e.jumpSchema)) return "jumpSchema: string expected"; + if (null != e.displayType && e.hasOwnProperty("displayType")) switch (e.displayType) + { + default: + return "displayType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + } + if (null != e.dynamicIcon && e.hasOwnProperty("dynamicIcon") && (t = l.webcast.data.Image.verify(e.dynamicIcon))) return "dynamicIcon." + t; + if (null != e.iconVertical && e.hasOwnProperty("iconVertical") && (t = l.webcast.data.Image.verify(e.iconVertical))) return "iconVertical." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ToolbarItemConfig) return e; + var t = new l.webcast.data.ToolbarItemConfig; + switch (e.toolbarType) + { + case "ToolbarDefault": + case 0: + t.toolbarType = 0; + break; + case "ToolbarTopic": + case 1: + t.toolbarType = 1; + break; + case "ToolbarRank": + case 2: + t.toolbarType = 2; + break; + case "ToolVSInteraction": + case 3: + t.toolbarType = 3; + break; + case "ToolbarCart": + case 4: + t.toolbarType = 4; + break; + case "ToolbarGift": + case 5: + t.toolbarType = 5; + break; + case "ToolbarInput": + case 6: + t.toolbarType = 6 + } + if (null != e.icon) + { + if ("object" != typeof e.icon) throw TypeError(".webcast.data.ToolbarItemConfig.icon: object expected"); + t.icon = l.webcast.data.Image.fromObject(e.icon) + } + switch (null != e.jumpSchema && (t.jumpSchema = String(e.jumpSchema)), e.displayType) + { + case "DisplayNone": + case 0: + t.displayType = 0; + break; + case "DisplayVertical": + case 1: + t.displayType = 1; + break; + case "DisplayHorizontal": + case 2: + t.displayType = 2; + break; + case "DisplayAll": + case 3: + t.displayType = 3 + } + if (null != e.dynamicIcon) + { + if ("object" != typeof e.dynamicIcon) throw TypeError(".webcast.data.ToolbarItemConfig.dynamicIcon: object expected"); + t.dynamicIcon = l.webcast.data.Image.fromObject(e.dynamicIcon) + } + if (null != e.iconVertical) + { + if ("object" != typeof e.iconVertical) throw TypeError(".webcast.data.ToolbarItemConfig.iconVertical: object expected"); + t.iconVertical = l.webcast.data.Image.fromObject(e.iconVertical) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.toolbarType = t.enums === String ? "ToolbarDefault" : 0, n.icon = null, n.jumpSchema = "", n.displayType = t.enums === String ? "DisplayNone" : 0, n.dynamicIcon = null, n.iconVertical = null), null != e.toolbarType && e.hasOwnProperty("toolbarType") && (n.toolbarType = t.enums === String ? l.webcast.data.ToolbarType[e.toolbarType] : e.toolbarType), null != e.icon && e.hasOwnProperty("icon") && (n.icon = l.webcast.data.Image.toObject(e.icon, t)), null != e.jumpSchema && e.hasOwnProperty("jumpSchema") && (n.jumpSchema = e.jumpSchema), null != e.displayType && e.hasOwnProperty("displayType") && (n.displayType = t.enums === String ? l.webcast.data.DisplayType[e.displayType] : e.displayType), null != e.dynamicIcon && e.hasOwnProperty("dynamicIcon") && (n.dynamicIcon = l.webcast.data.Image.toObject(e.dynamicIcon, t)), null != e.iconVertical && e.hasOwnProperty("iconVertical") && (n.iconVertical = l.webcast.data.Image.toObject(e.iconVertical, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.WatchInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.desc = "", e.prototype.count = "", e.prototype.countWithBackup = "", e.prototype.realCount = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.desc && Object.hasOwnProperty.call(e, "desc") && t.uint32(10).string(e.desc), null != e.count && Object.hasOwnProperty.call(e, "count") && t.uint32(18).string(e.count), null != e.countWithBackup && Object.hasOwnProperty.call(e, "countWithBackup") && t.uint32(26).string(e.countWithBackup), null != e.realCount && Object.hasOwnProperty.call(e, "realCount") && t.uint32(32).int32(e.realCount), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.WatchInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.desc = e.string(); + break; + case 2: + r.count = e.string(); + break; + case 3: + r.countWithBackup = e.string(); + break; + case 4: + r.realCount = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.desc && e.hasOwnProperty("desc") && !a.isString(e.desc) ? "desc: string expected" : null != e.count && e.hasOwnProperty("count") && !a.isString(e.count) ? "count: string expected" : null != e.countWithBackup && e.hasOwnProperty("countWithBackup") && !a.isString(e.countWithBackup) ? "countWithBackup: string expected" : null != e.realCount && e.hasOwnProperty("realCount") && !a.isInteger(e.realCount) ? "realCount: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.WatchInfo) return e; + var t = new l.webcast.data.WatchInfo; + return null != e.desc && (t.desc = String(e.desc)), null != e.count && (t.count = String(e.count)), null != e.countWithBackup && (t.countWithBackup = String(e.countWithBackup)), null != e.realCount && (t.realCount = 0 | e.realCount), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.desc = "", n.count = "", n.countWithBackup = "", n.realCount = 0), null != e.desc && e.hasOwnProperty("desc") && (n.desc = e.desc), null != e.count && e.hasOwnProperty("count") && (n.count = e.count), null != e.countWithBackup && e.hasOwnProperty("countWithBackup") && (n.countWithBackup = e.countWithBackup), null != e.realCount && e.hasOwnProperty("realCount") && (n.realCount = e.realCount), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EpisodeStyle = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "episodeDefault"] = 0, t[e[1] = "episodeAcross"] = 1, t[e[2] = "episodeVertical"] = 2, t + }(), e.EpisodeExtraInfo = function () + { + function e(e) + { + if (this.operationPlaceTextList = [], this.toolbarList = [], this.pannelToolbar = [], this.cameraInfos = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.episodeMod = null, e.prototype.currentPeriod = "", e.prototype.title = "", e.prototype.episodeListH5 = "", e.prototype.watchInfo = null, e.prototype.episodeId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.episodeIdStr = "", e.prototype.itemId = "", e.prototype.selectionUrl = "", e.prototype.relationPlaceText = "", e.prototype.operationPlaceTextList = a.emptyArray, e.prototype.toolbarList = a.emptyArray, e.prototype.collected = !1, e.prototype.seasonId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.finishUrl = "", e.prototype.releaseTime = "", e.prototype.watchPeriod = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.latestPeriod = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.showName = "", e.prototype.currentPeriodRaw = 0, e.prototype.videoCode = 0, e.prototype.seasonIdStr = "", e.prototype.watchPvRaw = "", e.prototype.nextSpecialEpisodeId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.cover = null, e.prototype.coverVertical = null, e.prototype.style = 0, e.prototype.playControl = null, e.prototype.previewImage = null, e.prototype.giftPannel = null, e.prototype.pannelIcon = null, e.prototype.pannelToolbar = a.emptyArray, e.prototype.previewBottom = null, e.prototype.drawSubTitle = "", e.prototype.seasonCoverVertical = null, e.prototype.cameraInfos = a.emptyArray, e.prototype.defaultCameraId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.defaultCameraIdStr = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.defaultCameraIdStrV2 = "", e.prototype.priorityCamera = null, e.prototype.multiSeasonTag = "", e.prototype.previewBackground = null, e.prototype.background = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.episodeMod && Object.hasOwnProperty.call(e, "episodeMod") && l.webcast.data.EpisodeMod.encode(e.episodeMod, t.uint32(10).fork()).ldelim(), null != e.currentPeriod && Object.hasOwnProperty.call(e, "currentPeriod") && t.uint32(18).string(e.currentPeriod), null != e.title && Object.hasOwnProperty.call(e, "title") && t.uint32(26).string(e.title), null != e.episodeListH5 && Object.hasOwnProperty.call(e, "episodeListH5") && t.uint32(34).string(e.episodeListH5), null != e.watchInfo && Object.hasOwnProperty.call(e, "watchInfo") && l.webcast.data.WatchInfo.encode(e.watchInfo, t.uint32(42).fork()).ldelim(), null != e.episodeId && Object.hasOwnProperty.call(e, "episodeId") && t.uint32(48).int64(e.episodeId), null != e.episodeIdStr && Object.hasOwnProperty.call(e, "episodeIdStr") && t.uint32(58).string(e.episodeIdStr), null != e.itemId && Object.hasOwnProperty.call(e, "itemId") && t.uint32(66).string(e.itemId), null != e.selectionUrl && Object.hasOwnProperty.call(e, "selectionUrl") && t.uint32(74).string(e.selectionUrl), null != e.relationPlaceText && Object.hasOwnProperty.call(e, "relationPlaceText") && t.uint32(82).string(e.relationPlaceText), null != e.operationPlaceTextList && e.operationPlaceTextList.length) + for (var n = 0; n < e.operationPlaceTextList.length; ++n) t.uint32(90).string(e.operationPlaceTextList[n]); + if (null != e.toolbarList && e.toolbarList.length) + for (n = 0; n < e.toolbarList.length; ++n) l.webcast.data.ToolbarItemConfig.encode(e.toolbarList[n], t.uint32(98).fork()).ldelim(); + if (null != e.collected && Object.hasOwnProperty.call(e, "collected") && t.uint32(104).bool(e.collected), null != e.seasonId && Object.hasOwnProperty.call(e, "seasonId") && t.uint32(112).int64(e.seasonId), null != e.finishUrl && Object.hasOwnProperty.call(e, "finishUrl") && t.uint32(122).string(e.finishUrl), null != e.releaseTime && Object.hasOwnProperty.call(e, "releaseTime") && t.uint32(130).string(e.releaseTime), null != e.watchPeriod && Object.hasOwnProperty.call(e, "watchPeriod") && t.uint32(136).int64(e.watchPeriod), null != e.latestPeriod && Object.hasOwnProperty.call(e, "latestPeriod") && t.uint32(144).int64(e.latestPeriod), null != e.showName && Object.hasOwnProperty.call(e, "showName") && t.uint32(154).string(e.showName), null != e.currentPeriodRaw && Object.hasOwnProperty.call(e, "currentPeriodRaw") && t.uint32(160).int32(e.currentPeriodRaw), null != e.videoCode && Object.hasOwnProperty.call(e, "videoCode") && t.uint32(168).int32(e.videoCode), null != e.seasonIdStr && Object.hasOwnProperty.call(e, "seasonIdStr") && t.uint32(178).string(e.seasonIdStr), null != e.watchPvRaw && Object.hasOwnProperty.call(e, "watchPvRaw") && t.uint32(186).string(e.watchPvRaw), null != e.nextSpecialEpisodeId && Object.hasOwnProperty.call(e, "nextSpecialEpisodeId") && t.uint32(192).int64(e.nextSpecialEpisodeId), null != e.cover && Object.hasOwnProperty.call(e, "cover") && l.webcast.data.Image.encode(e.cover, t.uint32(202).fork()).ldelim(), null != e.coverVertical && Object.hasOwnProperty.call(e, "coverVertical") && l.webcast.data.Image.encode(e.coverVertical, t.uint32(210).fork()).ldelim(), null != e.style && Object.hasOwnProperty.call(e, "style") && t.uint32(216).int32(e.style), null != e.playControl && Object.hasOwnProperty.call(e, "playControl") && l.webcast.data.EpisodePremierePlay.encode(e.playControl, t.uint32(226).fork()).ldelim(), null != e.previewImage && Object.hasOwnProperty.call(e, "previewImage") && l.webcast.data.EpisodePreviewImage.encode(e.previewImage, t.uint32(234).fork()).ldelim(), null != e.giftPannel && Object.hasOwnProperty.call(e, "giftPannel") && l.webcast.data.VSGiftPannel.encode(e.giftPannel, t.uint32(242).fork()).ldelim(), null != e.pannelIcon && Object.hasOwnProperty.call(e, "pannelIcon") && l.webcast.data.VSPannelIcon.encode(e.pannelIcon, t.uint32(250).fork()).ldelim(), null != e.pannelToolbar && e.pannelToolbar.length) + for (n = 0; n < e.pannelToolbar.length; ++n) l.webcast.data.ToolbarItemConfig.encode(e.pannelToolbar[n], t.uint32(258).fork()).ldelim(); + if (null != e.previewBottom && Object.hasOwnProperty.call(e, "previewBottom") && l.webcast.data.EpisodePreviewBottom.encode(e.previewBottom, t.uint32(266).fork()).ldelim(), null != e.drawSubTitle && Object.hasOwnProperty.call(e, "drawSubTitle") && t.uint32(274).string(e.drawSubTitle), null != e.seasonCoverVertical && Object.hasOwnProperty.call(e, "seasonCoverVertical") && l.webcast.data.Image.encode(e.seasonCoverVertical, t.uint32(282).fork()).ldelim(), null != e.cameraInfos && e.cameraInfos.length) + for (n = 0; n < e.cameraInfos.length; ++n) l.webcast.data.VSCameraInfo.encode(e.cameraInfos[n], t.uint32(290).fork()).ldelim(); + return null != e.defaultCameraId && Object.hasOwnProperty.call(e, "defaultCameraId") && t.uint32(296).int64(e.defaultCameraId), null != e.defaultCameraIdStr && Object.hasOwnProperty.call(e, "defaultCameraIdStr") && t.uint32(304).int64(e.defaultCameraIdStr), null != e.defaultCameraIdStrV2 && Object.hasOwnProperty.call(e, "defaultCameraIdStrV2") && t.uint32(314).string(e.defaultCameraIdStrV2), null != e.priorityCamera && Object.hasOwnProperty.call(e, "priorityCamera") && l.webcast.data.VSCameraInfo.encode(e.priorityCamera, t.uint32(322).fork()).ldelim(), null != e.multiSeasonTag && Object.hasOwnProperty.call(e, "multiSeasonTag") && t.uint32(330).string(e.multiSeasonTag), null != e.previewBackground && Object.hasOwnProperty.call(e, "previewBackground") && l.webcast.data.Image.encode(e.previewBackground, t.uint32(338).fork()).ldelim(), null != e.background && Object.hasOwnProperty.call(e, "background") && l.webcast.data.Image.encode(e.background, t.uint32(346).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EpisodeExtraInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.episodeMod = l.webcast.data.EpisodeMod.decode(e, e.uint32()); + break; + case 2: + r.currentPeriod = e.string(); + break; + case 3: + r.title = e.string(); + break; + case 4: + r.episodeListH5 = e.string(); + break; + case 5: + r.watchInfo = l.webcast.data.WatchInfo.decode(e, e.uint32()); + break; + case 6: + r.episodeId = e.int64(); + break; + case 7: + r.episodeIdStr = e.string(); + break; + case 8: + r.itemId = e.string(); + break; + case 9: + r.selectionUrl = e.string(); + break; + case 10: + r.relationPlaceText = e.string(); + break; + case 11: + r.operationPlaceTextList && r.operationPlaceTextList.length || (r.operationPlaceTextList = []), r.operationPlaceTextList.push(e.string()); + break; + case 12: + r.toolbarList && r.toolbarList.length || (r.toolbarList = []), r.toolbarList.push(l.webcast.data.ToolbarItemConfig.decode(e, e.uint32())); + break; + case 13: + r.collected = e.bool(); + break; + case 14: + r.seasonId = e.int64(); + break; + case 15: + r.finishUrl = e.string(); + break; + case 16: + r.releaseTime = e.string(); + break; + case 17: + r.watchPeriod = e.int64(); + break; + case 18: + r.latestPeriod = e.int64(); + break; + case 19: + r.showName = e.string(); + break; + case 20: + r.currentPeriodRaw = e.int32(); + break; + case 21: + r.videoCode = e.int32(); + break; + case 22: + r.seasonIdStr = e.string(); + break; + case 23: + r.watchPvRaw = e.string(); + break; + case 24: + r.nextSpecialEpisodeId = e.int64(); + break; + case 25: + r.cover = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 26: + r.coverVertical = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 27: + r.style = e.int32(); + break; + case 28: + r.playControl = l.webcast.data.EpisodePremierePlay.decode(e, e.uint32()); + break; + case 29: + r.previewImage = l.webcast.data.EpisodePreviewImage.decode(e, e.uint32()); + break; + case 30: + r.giftPannel = l.webcast.data.VSGiftPannel.decode(e, e.uint32()); + break; + case 31: + r.pannelIcon = l.webcast.data.VSPannelIcon.decode(e, e.uint32()); + break; + case 32: + r.pannelToolbar && r.pannelToolbar.length || (r.pannelToolbar = []), r.pannelToolbar.push(l.webcast.data.ToolbarItemConfig.decode(e, e.uint32())); + break; + case 33: + r.previewBottom = l.webcast.data.EpisodePreviewBottom.decode(e, e.uint32()); + break; + case 34: + r.drawSubTitle = e.string(); + break; + case 35: + r.seasonCoverVertical = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 36: + r.cameraInfos && r.cameraInfos.length || (r.cameraInfos = []), r.cameraInfos.push(l.webcast.data.VSCameraInfo.decode(e, e.uint32())); + break; + case 37: + r.defaultCameraId = e.int64(); + break; + case 38: + r.defaultCameraIdStr = e.int64(); + break; + case 39: + r.defaultCameraIdStrV2 = e.string(); + break; + case 40: + r.priorityCamera = l.webcast.data.VSCameraInfo.decode(e, e.uint32()); + break; + case 41: + r.multiSeasonTag = e.string(); + break; + case 42: + r.previewBackground = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 43: + r.background = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.episodeMod && e.hasOwnProperty("episodeMod") && (n = l.webcast.data.EpisodeMod.verify(e.episodeMod))) return "episodeMod." + n; + if (null != e.currentPeriod && e.hasOwnProperty("currentPeriod") && !a.isString(e.currentPeriod)) return "currentPeriod: string expected"; + if (null != e.title && e.hasOwnProperty("title") && !a.isString(e.title)) return "title: string expected"; + if (null != e.episodeListH5 && e.hasOwnProperty("episodeListH5") && !a.isString(e.episodeListH5)) return "episodeListH5: string expected"; + if (null != e.watchInfo && e.hasOwnProperty("watchInfo") && (n = l.webcast.data.WatchInfo.verify(e.watchInfo))) return "watchInfo." + n; + if (null != e.episodeId && e.hasOwnProperty("episodeId") && !(a.isInteger(e.episodeId) || e.episodeId && a.isInteger(e.episodeId.low) && a.isInteger(e.episodeId.high))) return "episodeId: integer|Long expected"; + if (null != e.episodeIdStr && e.hasOwnProperty("episodeIdStr") && !a.isString(e.episodeIdStr)) return "episodeIdStr: string expected"; + if (null != e.itemId && e.hasOwnProperty("itemId") && !a.isString(e.itemId)) return "itemId: string expected"; + if (null != e.selectionUrl && e.hasOwnProperty("selectionUrl") && !a.isString(e.selectionUrl)) return "selectionUrl: string expected"; + if (null != e.relationPlaceText && e.hasOwnProperty("relationPlaceText") && !a.isString(e.relationPlaceText)) return "relationPlaceText: string expected"; + if (null != e.operationPlaceTextList && e.hasOwnProperty("operationPlaceTextList")) + { + if (!Array.isArray(e.operationPlaceTextList)) return "operationPlaceTextList: array expected"; + for (var t = 0; t < e.operationPlaceTextList.length; ++t) + if (!a.isString(e.operationPlaceTextList[t])) return "operationPlaceTextList: string[] expected" + } + if (null != e.toolbarList && e.hasOwnProperty("toolbarList")) + { + if (!Array.isArray(e.toolbarList)) return "toolbarList: array expected"; + for (t = 0; t < e.toolbarList.length; ++t) + { + if (n = l.webcast.data.ToolbarItemConfig.verify(e.toolbarList[t])) return "toolbarList." + n + } + } + if (null != e.collected && e.hasOwnProperty("collected") && "boolean" != typeof e.collected) return "collected: boolean expected"; + if (null != e.seasonId && e.hasOwnProperty("seasonId") && !(a.isInteger(e.seasonId) || e.seasonId && a.isInteger(e.seasonId.low) && a.isInteger(e.seasonId.high))) return "seasonId: integer|Long expected"; + if (null != e.finishUrl && e.hasOwnProperty("finishUrl") && !a.isString(e.finishUrl)) return "finishUrl: string expected"; + if (null != e.releaseTime && e.hasOwnProperty("releaseTime") && !a.isString(e.releaseTime)) return "releaseTime: string expected"; + if (null != e.watchPeriod && e.hasOwnProperty("watchPeriod") && !(a.isInteger(e.watchPeriod) || e.watchPeriod && a.isInteger(e.watchPeriod.low) && a.isInteger(e.watchPeriod.high))) return "watchPeriod: integer|Long expected"; + if (null != e.latestPeriod && e.hasOwnProperty("latestPeriod") && !(a.isInteger(e.latestPeriod) || e.latestPeriod && a.isInteger(e.latestPeriod.low) && a.isInteger(e.latestPeriod.high))) return "latestPeriod: integer|Long expected"; + if (null != e.showName && e.hasOwnProperty("showName") && !a.isString(e.showName)) return "showName: string expected"; + if (null != e.currentPeriodRaw && e.hasOwnProperty("currentPeriodRaw") && !a.isInteger(e.currentPeriodRaw)) return "currentPeriodRaw: integer expected"; + if (null != e.videoCode && e.hasOwnProperty("videoCode") && !a.isInteger(e.videoCode)) return "videoCode: integer expected"; + if (null != e.seasonIdStr && e.hasOwnProperty("seasonIdStr") && !a.isString(e.seasonIdStr)) return "seasonIdStr: string expected"; + if (null != e.watchPvRaw && e.hasOwnProperty("watchPvRaw") && !a.isString(e.watchPvRaw)) return "watchPvRaw: string expected"; + if (null != e.nextSpecialEpisodeId && e.hasOwnProperty("nextSpecialEpisodeId") && !(a.isInteger(e.nextSpecialEpisodeId) || e.nextSpecialEpisodeId && a.isInteger(e.nextSpecialEpisodeId.low) && a.isInteger(e.nextSpecialEpisodeId.high))) return "nextSpecialEpisodeId: integer|Long expected"; + if (null != e.cover && e.hasOwnProperty("cover") && (n = l.webcast.data.Image.verify(e.cover))) return "cover." + n; + if (null != e.coverVertical && e.hasOwnProperty("coverVertical") && (n = l.webcast.data.Image.verify(e.coverVertical))) return "coverVertical." + n; + if (null != e.style && e.hasOwnProperty("style")) switch (e.style) + { + default: + return "style: enum value expected"; + case 0: + case 1: + case 2: + } + if (null != e.playControl && e.hasOwnProperty("playControl") && (n = l.webcast.data.EpisodePremierePlay.verify(e.playControl))) return "playControl." + n; + if (null != e.previewImage && e.hasOwnProperty("previewImage") && (n = l.webcast.data.EpisodePreviewImage.verify(e.previewImage))) return "previewImage." + n; + if (null != e.giftPannel && e.hasOwnProperty("giftPannel") && (n = l.webcast.data.VSGiftPannel.verify(e.giftPannel))) return "giftPannel." + n; + if (null != e.pannelIcon && e.hasOwnProperty("pannelIcon") && (n = l.webcast.data.VSPannelIcon.verify(e.pannelIcon))) return "pannelIcon." + n; + if (null != e.pannelToolbar && e.hasOwnProperty("pannelToolbar")) + { + if (!Array.isArray(e.pannelToolbar)) return "pannelToolbar: array expected"; + for (t = 0; t < e.pannelToolbar.length; ++t) + { + if (n = l.webcast.data.ToolbarItemConfig.verify(e.pannelToolbar[t])) return "pannelToolbar." + n + } + } + if (null != e.previewBottom && e.hasOwnProperty("previewBottom") && (n = l.webcast.data.EpisodePreviewBottom.verify(e.previewBottom))) return "previewBottom." + n; + if (null != e.drawSubTitle && e.hasOwnProperty("drawSubTitle") && !a.isString(e.drawSubTitle)) return "drawSubTitle: string expected"; + if (null != e.seasonCoverVertical && e.hasOwnProperty("seasonCoverVertical") && (n = l.webcast.data.Image.verify(e.seasonCoverVertical))) return "seasonCoverVertical." + n; + if (null != e.cameraInfos && e.hasOwnProperty("cameraInfos")) + { + if (!Array.isArray(e.cameraInfos)) return "cameraInfos: array expected"; + for (t = 0; t < e.cameraInfos.length; ++t) + { + var n; + if (n = l.webcast.data.VSCameraInfo.verify(e.cameraInfos[t])) return "cameraInfos." + n + } + } + if (null != e.defaultCameraId && e.hasOwnProperty("defaultCameraId") && !(a.isInteger(e.defaultCameraId) || e.defaultCameraId && a.isInteger(e.defaultCameraId.low) && a.isInteger(e.defaultCameraId.high))) return "defaultCameraId: integer|Long expected"; + if (null != e.defaultCameraIdStr && e.hasOwnProperty("defaultCameraIdStr") && !(a.isInteger(e.defaultCameraIdStr) || e.defaultCameraIdStr && a.isInteger(e.defaultCameraIdStr.low) && a.isInteger(e.defaultCameraIdStr.high))) return "defaultCameraIdStr: integer|Long expected"; + if (null != e.defaultCameraIdStrV2 && e.hasOwnProperty("defaultCameraIdStrV2") && !a.isString(e.defaultCameraIdStrV2)) return "defaultCameraIdStrV2: string expected"; + if (null != e.priorityCamera && e.hasOwnProperty("priorityCamera") && (n = l.webcast.data.VSCameraInfo.verify(e.priorityCamera))) return "priorityCamera." + n; + if (null != e.multiSeasonTag && e.hasOwnProperty("multiSeasonTag") && !a.isString(e.multiSeasonTag)) return "multiSeasonTag: string expected"; + if (null != e.previewBackground && e.hasOwnProperty("previewBackground") && (n = l.webcast.data.Image.verify(e.previewBackground))) return "previewBackground." + n; + if (null != e.background && e.hasOwnProperty("background") && (n = l.webcast.data.Image.verify(e.background))) return "background." + n; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EpisodeExtraInfo) return e; + var t = new l.webcast.data.EpisodeExtraInfo; + if (null != e.episodeMod) + { + if ("object" != typeof e.episodeMod) throw TypeError(".webcast.data.EpisodeExtraInfo.episodeMod: object expected"); + t.episodeMod = l.webcast.data.EpisodeMod.fromObject(e.episodeMod) + } + if (null != e.currentPeriod && (t.currentPeriod = String(e.currentPeriod)), null != e.title && (t.title = String(e.title)), null != e.episodeListH5 && (t.episodeListH5 = String(e.episodeListH5)), null != e.watchInfo) + { + if ("object" != typeof e.watchInfo) throw TypeError(".webcast.data.EpisodeExtraInfo.watchInfo: object expected"); + t.watchInfo = l.webcast.data.WatchInfo.fromObject(e.watchInfo) + } + if (null != e.episodeId && (a.Long ? (t.episodeId = a.Long.fromValue(e.episodeId)).unsigned = !1 : "string" == typeof e.episodeId ? t.episodeId = parseInt(e.episodeId, 10) : "number" == typeof e.episodeId ? t.episodeId = e.episodeId : "object" == typeof e.episodeId && (t.episodeId = new a.LongBits(e.episodeId.low >>> 0, e.episodeId.high >>> 0).toNumber())), null != e.episodeIdStr && (t.episodeIdStr = String(e.episodeIdStr)), null != e.itemId && (t.itemId = String(e.itemId)), null != e.selectionUrl && (t.selectionUrl = String(e.selectionUrl)), null != e.relationPlaceText && (t.relationPlaceText = String(e.relationPlaceText)), e.operationPlaceTextList) + { + if (!Array.isArray(e.operationPlaceTextList)) throw TypeError(".webcast.data.EpisodeExtraInfo.operationPlaceTextList: array expected"); + t.operationPlaceTextList = []; + for (var n = 0; n < e.operationPlaceTextList.length; ++n) t.operationPlaceTextList[n] = String(e.operationPlaceTextList[n]) + } + if (e.toolbarList) + { + if (!Array.isArray(e.toolbarList)) throw TypeError(".webcast.data.EpisodeExtraInfo.toolbarList: array expected"); + t.toolbarList = []; + for (n = 0; n < e.toolbarList.length; ++n) + { + if ("object" != typeof e.toolbarList[n]) throw TypeError(".webcast.data.EpisodeExtraInfo.toolbarList: object expected"); + t.toolbarList[n] = l.webcast.data.ToolbarItemConfig.fromObject(e.toolbarList[n]) + } + } + if (null != e.collected && (t.collected = Boolean(e.collected)), null != e.seasonId && (a.Long ? (t.seasonId = a.Long.fromValue(e.seasonId)).unsigned = !1 : "string" == typeof e.seasonId ? t.seasonId = parseInt(e.seasonId, 10) : "number" == typeof e.seasonId ? t.seasonId = e.seasonId : "object" == typeof e.seasonId && (t.seasonId = new a.LongBits(e.seasonId.low >>> 0, e.seasonId.high >>> 0).toNumber())), null != e.finishUrl && (t.finishUrl = String(e.finishUrl)), null != e.releaseTime && (t.releaseTime = String(e.releaseTime)), null != e.watchPeriod && (a.Long ? (t.watchPeriod = a.Long.fromValue(e.watchPeriod)).unsigned = !1 : "string" == typeof e.watchPeriod ? t.watchPeriod = parseInt(e.watchPeriod, 10) : "number" == typeof e.watchPeriod ? t.watchPeriod = e.watchPeriod : "object" == typeof e.watchPeriod && (t.watchPeriod = new a.LongBits(e.watchPeriod.low >>> 0, e.watchPeriod.high >>> 0).toNumber())), null != e.latestPeriod && (a.Long ? (t.latestPeriod = a.Long.fromValue(e.latestPeriod)).unsigned = !1 : "string" == typeof e.latestPeriod ? t.latestPeriod = parseInt(e.latestPeriod, 10) : "number" == typeof e.latestPeriod ? t.latestPeriod = e.latestPeriod : "object" == typeof e.latestPeriod && (t.latestPeriod = new a.LongBits(e.latestPeriod.low >>> 0, e.latestPeriod.high >>> 0).toNumber())), null != e.showName && (t.showName = String(e.showName)), null != e.currentPeriodRaw && (t.currentPeriodRaw = 0 | e.currentPeriodRaw), null != e.videoCode && (t.videoCode = 0 | e.videoCode), null != e.seasonIdStr && (t.seasonIdStr = String(e.seasonIdStr)), null != e.watchPvRaw && (t.watchPvRaw = String(e.watchPvRaw)), null != e.nextSpecialEpisodeId && (a.Long ? (t.nextSpecialEpisodeId = a.Long.fromValue(e.nextSpecialEpisodeId)).unsigned = !1 : "string" == typeof e.nextSpecialEpisodeId ? t.nextSpecialEpisodeId = parseInt(e.nextSpecialEpisodeId, 10) : "number" == typeof e.nextSpecialEpisodeId ? t.nextSpecialEpisodeId = e.nextSpecialEpisodeId : "object" == typeof e.nextSpecialEpisodeId && (t.nextSpecialEpisodeId = new a.LongBits(e.nextSpecialEpisodeId.low >>> 0, e.nextSpecialEpisodeId.high >>> 0).toNumber())), null != e.cover) + { + if ("object" != typeof e.cover) throw TypeError(".webcast.data.EpisodeExtraInfo.cover: object expected"); + t.cover = l.webcast.data.Image.fromObject(e.cover) + } + if (null != e.coverVertical) + { + if ("object" != typeof e.coverVertical) throw TypeError(".webcast.data.EpisodeExtraInfo.coverVertical: object expected"); + t.coverVertical = l.webcast.data.Image.fromObject(e.coverVertical) + } + switch (e.style) + { + case "episodeDefault": + case 0: + t.style = 0; + break; + case "episodeAcross": + case 1: + t.style = 1; + break; + case "episodeVertical": + case 2: + t.style = 2 + } + if (null != e.playControl) + { + if ("object" != typeof e.playControl) throw TypeError(".webcast.data.EpisodeExtraInfo.playControl: object expected"); + t.playControl = l.webcast.data.EpisodePremierePlay.fromObject(e.playControl) + } + if (null != e.previewImage) + { + if ("object" != typeof e.previewImage) throw TypeError(".webcast.data.EpisodeExtraInfo.previewImage: object expected"); + t.previewImage = l.webcast.data.EpisodePreviewImage.fromObject(e.previewImage) + } + if (null != e.giftPannel) + { + if ("object" != typeof e.giftPannel) throw TypeError(".webcast.data.EpisodeExtraInfo.giftPannel: object expected"); + t.giftPannel = l.webcast.data.VSGiftPannel.fromObject(e.giftPannel) + } + if (null != e.pannelIcon) + { + if ("object" != typeof e.pannelIcon) throw TypeError(".webcast.data.EpisodeExtraInfo.pannelIcon: object expected"); + t.pannelIcon = l.webcast.data.VSPannelIcon.fromObject(e.pannelIcon) + } + if (e.pannelToolbar) + { + if (!Array.isArray(e.pannelToolbar)) throw TypeError(".webcast.data.EpisodeExtraInfo.pannelToolbar: array expected"); + t.pannelToolbar = []; + for (n = 0; n < e.pannelToolbar.length; ++n) + { + if ("object" != typeof e.pannelToolbar[n]) throw TypeError(".webcast.data.EpisodeExtraInfo.pannelToolbar: object expected"); + t.pannelToolbar[n] = l.webcast.data.ToolbarItemConfig.fromObject(e.pannelToolbar[n]) + } + } + if (null != e.previewBottom) + { + if ("object" != typeof e.previewBottom) throw TypeError(".webcast.data.EpisodeExtraInfo.previewBottom: object expected"); + t.previewBottom = l.webcast.data.EpisodePreviewBottom.fromObject(e.previewBottom) + } + if (null != e.drawSubTitle && (t.drawSubTitle = String(e.drawSubTitle)), null != e.seasonCoverVertical) + { + if ("object" != typeof e.seasonCoverVertical) throw TypeError(".webcast.data.EpisodeExtraInfo.seasonCoverVertical: object expected"); + t.seasonCoverVertical = l.webcast.data.Image.fromObject(e.seasonCoverVertical) + } + if (e.cameraInfos) + { + if (!Array.isArray(e.cameraInfos)) throw TypeError(".webcast.data.EpisodeExtraInfo.cameraInfos: array expected"); + t.cameraInfos = []; + for (n = 0; n < e.cameraInfos.length; ++n) + { + if ("object" != typeof e.cameraInfos[n]) throw TypeError(".webcast.data.EpisodeExtraInfo.cameraInfos: object expected"); + t.cameraInfos[n] = l.webcast.data.VSCameraInfo.fromObject(e.cameraInfos[n]) + } + } + if (null != e.defaultCameraId && (a.Long ? (t.defaultCameraId = a.Long.fromValue(e.defaultCameraId)).unsigned = !1 : "string" == typeof e.defaultCameraId ? t.defaultCameraId = parseInt(e.defaultCameraId, 10) : "number" == typeof e.defaultCameraId ? t.defaultCameraId = e.defaultCameraId : "object" == typeof e.defaultCameraId && (t.defaultCameraId = new a.LongBits(e.defaultCameraId.low >>> 0, e.defaultCameraId.high >>> 0).toNumber())), null != e.defaultCameraIdStr && (a.Long ? (t.defaultCameraIdStr = a.Long.fromValue(e.defaultCameraIdStr)).unsigned = !1 : "string" == typeof e.defaultCameraIdStr ? t.defaultCameraIdStr = parseInt(e.defaultCameraIdStr, 10) : "number" == typeof e.defaultCameraIdStr ? t.defaultCameraIdStr = e.defaultCameraIdStr : "object" == typeof e.defaultCameraIdStr && (t.defaultCameraIdStr = new a.LongBits(e.defaultCameraIdStr.low >>> 0, e.defaultCameraIdStr.high >>> 0).toNumber())), null != e.defaultCameraIdStrV2 && (t.defaultCameraIdStrV2 = String(e.defaultCameraIdStrV2)), null != e.priorityCamera) + { + if ("object" != typeof e.priorityCamera) throw TypeError(".webcast.data.EpisodeExtraInfo.priorityCamera: object expected"); + t.priorityCamera = l.webcast.data.VSCameraInfo.fromObject(e.priorityCamera) + } + if (null != e.multiSeasonTag && (t.multiSeasonTag = String(e.multiSeasonTag)), null != e.previewBackground) + { + if ("object" != typeof e.previewBackground) throw TypeError(".webcast.data.EpisodeExtraInfo.previewBackground: object expected"); + t.previewBackground = l.webcast.data.Image.fromObject(e.previewBackground) + } + if (null != e.background) + { + if ("object" != typeof e.background) throw TypeError(".webcast.data.EpisodeExtraInfo.background: object expected"); + t.background = l.webcast.data.Image.fromObject(e.background) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.operationPlaceTextList = [], n.toolbarList = [], n.pannelToolbar = [], n.cameraInfos = []), t.defaults) + { + if (n.episodeMod = null, n.currentPeriod = "", n.title = "", n.episodeListH5 = "", n.watchInfo = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.episodeId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.episodeId = t.longs === String ? "0" : 0; + if (n.episodeIdStr = "", n.itemId = "", n.selectionUrl = "", n.relationPlaceText = "", n.collected = !1, a.Long) + { + r = new a.Long(0, 0, !1); + n.seasonId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.seasonId = t.longs === String ? "0" : 0; + if (n.finishUrl = "", n.releaseTime = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.watchPeriod = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.watchPeriod = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.latestPeriod = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.latestPeriod = t.longs === String ? "0" : 0; + if (n.showName = "", n.currentPeriodRaw = 0, n.videoCode = 0, n.seasonIdStr = "", n.watchPvRaw = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.nextSpecialEpisodeId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.nextSpecialEpisodeId = t.longs === String ? "0" : 0; + if (n.cover = null, n.coverVertical = null, n.style = t.enums === String ? "episodeDefault" : 0, n.playControl = null, n.previewImage = null, n.giftPannel = null, n.pannelIcon = null, n.previewBottom = null, n.drawSubTitle = "", n.seasonCoverVertical = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.defaultCameraId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.defaultCameraId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.defaultCameraIdStr = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.defaultCameraIdStr = t.longs === String ? "0" : 0; + n.defaultCameraIdStrV2 = "", n.priorityCamera = null, n.multiSeasonTag = "", n.previewBackground = null, n.background = null + } + if (null != e.episodeMod && e.hasOwnProperty("episodeMod") && (n.episodeMod = l.webcast.data.EpisodeMod.toObject(e.episodeMod, t)), null != e.currentPeriod && e.hasOwnProperty("currentPeriod") && (n.currentPeriod = e.currentPeriod), null != e.title && e.hasOwnProperty("title") && (n.title = e.title), null != e.episodeListH5 && e.hasOwnProperty("episodeListH5") && (n.episodeListH5 = e.episodeListH5), null != e.watchInfo && e.hasOwnProperty("watchInfo") && (n.watchInfo = l.webcast.data.WatchInfo.toObject(e.watchInfo, t)), null != e.episodeId && e.hasOwnProperty("episodeId") && ("number" == typeof e.episodeId ? n.episodeId = t.longs === String ? String(e.episodeId) : e.episodeId : n.episodeId = t.longs === String ? a.Long.prototype.toString.call(e.episodeId) : t.longs === Number ? new a.LongBits(e.episodeId.low >>> 0, e.episodeId.high >>> 0).toNumber() : e.episodeId), null != e.episodeIdStr && e.hasOwnProperty("episodeIdStr") && (n.episodeIdStr = e.episodeIdStr), null != e.itemId && e.hasOwnProperty("itemId") && (n.itemId = e.itemId), null != e.selectionUrl && e.hasOwnProperty("selectionUrl") && (n.selectionUrl = e.selectionUrl), null != e.relationPlaceText && e.hasOwnProperty("relationPlaceText") && (n.relationPlaceText = e.relationPlaceText), e.operationPlaceTextList && e.operationPlaceTextList.length) + { + n.operationPlaceTextList = []; + for (var o = 0; o < e.operationPlaceTextList.length; ++o) n.operationPlaceTextList[o] = e.operationPlaceTextList[o] + } + if (e.toolbarList && e.toolbarList.length) + { + n.toolbarList = []; + for (o = 0; o < e.toolbarList.length; ++o) n.toolbarList[o] = l.webcast.data.ToolbarItemConfig.toObject(e.toolbarList[o], t) + } + if (null != e.collected && e.hasOwnProperty("collected") && (n.collected = e.collected), null != e.seasonId && e.hasOwnProperty("seasonId") && ("number" == typeof e.seasonId ? n.seasonId = t.longs === String ? String(e.seasonId) : e.seasonId : n.seasonId = t.longs === String ? a.Long.prototype.toString.call(e.seasonId) : t.longs === Number ? new a.LongBits(e.seasonId.low >>> 0, e.seasonId.high >>> 0).toNumber() : e.seasonId), null != e.finishUrl && e.hasOwnProperty("finishUrl") && (n.finishUrl = e.finishUrl), null != e.releaseTime && e.hasOwnProperty("releaseTime") && (n.releaseTime = e.releaseTime), null != e.watchPeriod && e.hasOwnProperty("watchPeriod") && ("number" == typeof e.watchPeriod ? n.watchPeriod = t.longs === String ? String(e.watchPeriod) : e.watchPeriod : n.watchPeriod = t.longs === String ? a.Long.prototype.toString.call(e.watchPeriod) : t.longs === Number ? new a.LongBits(e.watchPeriod.low >>> 0, e.watchPeriod.high >>> 0).toNumber() : e.watchPeriod), null != e.latestPeriod && e.hasOwnProperty("latestPeriod") && ("number" == typeof e.latestPeriod ? n.latestPeriod = t.longs === String ? String(e.latestPeriod) : e.latestPeriod : n.latestPeriod = t.longs === String ? a.Long.prototype.toString.call(e.latestPeriod) : t.longs === Number ? new a.LongBits(e.latestPeriod.low >>> 0, e.latestPeriod.high >>> 0).toNumber() : e.latestPeriod), null != e.showName && e.hasOwnProperty("showName") && (n.showName = e.showName), null != e.currentPeriodRaw && e.hasOwnProperty("currentPeriodRaw") && (n.currentPeriodRaw = e.currentPeriodRaw), null != e.videoCode && e.hasOwnProperty("videoCode") && (n.videoCode = e.videoCode), null != e.seasonIdStr && e.hasOwnProperty("seasonIdStr") && (n.seasonIdStr = e.seasonIdStr), null != e.watchPvRaw && e.hasOwnProperty("watchPvRaw") && (n.watchPvRaw = e.watchPvRaw), null != e.nextSpecialEpisodeId && e.hasOwnProperty("nextSpecialEpisodeId") && ("number" == typeof e.nextSpecialEpisodeId ? n.nextSpecialEpisodeId = t.longs === String ? String(e.nextSpecialEpisodeId) : e.nextSpecialEpisodeId : n.nextSpecialEpisodeId = t.longs === String ? a.Long.prototype.toString.call(e.nextSpecialEpisodeId) : t.longs === Number ? new a.LongBits(e.nextSpecialEpisodeId.low >>> 0, e.nextSpecialEpisodeId.high >>> 0).toNumber() : e.nextSpecialEpisodeId), null != e.cover && e.hasOwnProperty("cover") && (n.cover = l.webcast.data.Image.toObject(e.cover, t)), null != e.coverVertical && e.hasOwnProperty("coverVertical") && (n.coverVertical = l.webcast.data.Image.toObject(e.coverVertical, t)), null != e.style && e.hasOwnProperty("style") && (n.style = t.enums === String ? l.webcast.data.EpisodeStyle[e.style] : e.style), null != e.playControl && e.hasOwnProperty("playControl") && (n.playControl = l.webcast.data.EpisodePremierePlay.toObject(e.playControl, t)), null != e.previewImage && e.hasOwnProperty("previewImage") && (n.previewImage = l.webcast.data.EpisodePreviewImage.toObject(e.previewImage, t)), null != e.giftPannel && e.hasOwnProperty("giftPannel") && (n.giftPannel = l.webcast.data.VSGiftPannel.toObject(e.giftPannel, t)), null != e.pannelIcon && e.hasOwnProperty("pannelIcon") && (n.pannelIcon = l.webcast.data.VSPannelIcon.toObject(e.pannelIcon, t)), e.pannelToolbar && e.pannelToolbar.length) + { + n.pannelToolbar = []; + for (o = 0; o < e.pannelToolbar.length; ++o) n.pannelToolbar[o] = l.webcast.data.ToolbarItemConfig.toObject(e.pannelToolbar[o], t) + } + if (null != e.previewBottom && e.hasOwnProperty("previewBottom") && (n.previewBottom = l.webcast.data.EpisodePreviewBottom.toObject(e.previewBottom, t)), null != e.drawSubTitle && e.hasOwnProperty("drawSubTitle") && (n.drawSubTitle = e.drawSubTitle), null != e.seasonCoverVertical && e.hasOwnProperty("seasonCoverVertical") && (n.seasonCoverVertical = l.webcast.data.Image.toObject(e.seasonCoverVertical, t)), e.cameraInfos && e.cameraInfos.length) + { + n.cameraInfos = []; + for (o = 0; o < e.cameraInfos.length; ++o) n.cameraInfos[o] = l.webcast.data.VSCameraInfo.toObject(e.cameraInfos[o], t) + } + return null != e.defaultCameraId && e.hasOwnProperty("defaultCameraId") && ("number" == typeof e.defaultCameraId ? n.defaultCameraId = t.longs === String ? String(e.defaultCameraId) : e.defaultCameraId : n.defaultCameraId = t.longs === String ? a.Long.prototype.toString.call(e.defaultCameraId) : t.longs === Number ? new a.LongBits(e.defaultCameraId.low >>> 0, e.defaultCameraId.high >>> 0).toNumber() : e.defaultCameraId), null != e.defaultCameraIdStr && e.hasOwnProperty("defaultCameraIdStr") && ("number" == typeof e.defaultCameraIdStr ? n.defaultCameraIdStr = t.longs === String ? String(e.defaultCameraIdStr) : e.defaultCameraIdStr : n.defaultCameraIdStr = t.longs === String ? a.Long.prototype.toString.call(e.defaultCameraIdStr) : t.longs === Number ? new a.LongBits(e.defaultCameraIdStr.low >>> 0, e.defaultCameraIdStr.high >>> 0).toNumber() : e.defaultCameraIdStr), null != e.defaultCameraIdStrV2 && e.hasOwnProperty("defaultCameraIdStrV2") && (n.defaultCameraIdStrV2 = e.defaultCameraIdStrV2), null != e.priorityCamera && e.hasOwnProperty("priorityCamera") && (n.priorityCamera = l.webcast.data.VSCameraInfo.toObject(e.priorityCamera, t)), null != e.multiSeasonTag && e.hasOwnProperty("multiSeasonTag") && (n.multiSeasonTag = e.multiSeasonTag), null != e.previewBackground && e.hasOwnProperty("previewBackground") && (n.previewBackground = l.webcast.data.Image.toObject(e.previewBackground, t)), null != e.background && e.hasOwnProperty("background") && (n.background = l.webcast.data.Image.toObject(e.background, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.Bonus = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.bonusType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.author = null, e.prototype.title = "", e.prototype.subTitle = "", e.prototype.text = "", e.prototype.style = "", e.prototype.commerceInfo = null, e.prototype.openUrl = "", e.prototype.token = "", e.prototype.source = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.label = null, e.prototype.sceneId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.maybeCarp = !1, e.prototype.countdownSecond = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.bonusType && Object.hasOwnProperty.call(e, "bonusType") && t.uint32(8).int64(e.bonusType), null != e.author && Object.hasOwnProperty.call(e, "author") && l.webcast.data.BonusAuthor.encode(e.author, t.uint32(18).fork()).ldelim(), null != e.title && Object.hasOwnProperty.call(e, "title") && t.uint32(26).string(e.title), null != e.subTitle && Object.hasOwnProperty.call(e, "subTitle") && t.uint32(34).string(e.subTitle), null != e.text && Object.hasOwnProperty.call(e, "text") && t.uint32(42).string(e.text), null != e.style && Object.hasOwnProperty.call(e, "style") && t.uint32(50).string(e.style), null != e.commerceInfo && Object.hasOwnProperty.call(e, "commerceInfo") && l.webcast.data.BonusCommerce.encode(e.commerceInfo, t.uint32(58).fork()).ldelim(), null != e.openUrl && Object.hasOwnProperty.call(e, "openUrl") && t.uint32(66).string(e.openUrl), null != e.token && Object.hasOwnProperty.call(e, "token") && t.uint32(74).string(e.token), null != e.source && Object.hasOwnProperty.call(e, "source") && t.uint32(80).int64(e.source), null != e.label && Object.hasOwnProperty.call(e, "label") && l.webcast.data.Image.encode(e.label, t.uint32(90).fork()).ldelim(), null != e.sceneId && Object.hasOwnProperty.call(e, "sceneId") && t.uint32(96).int64(e.sceneId), null != e.maybeCarp && Object.hasOwnProperty.call(e, "maybeCarp") && t.uint32(104).bool(e.maybeCarp), null != e.countdownSecond && Object.hasOwnProperty.call(e, "countdownSecond") && t.uint32(112).int64(e.countdownSecond), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.Bonus; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.bonusType = e.int64(); + break; + case 2: + r.author = l.webcast.data.BonusAuthor.decode(e, e.uint32()); + break; + case 3: + r.title = e.string(); + break; + case 4: + r.subTitle = e.string(); + break; + case 5: + r.text = e.string(); + break; + case 6: + r.style = e.string(); + break; + case 7: + r.commerceInfo = l.webcast.data.BonusCommerce.decode(e, e.uint32()); + break; + case 8: + r.openUrl = e.string(); + break; + case 9: + r.token = e.string(); + break; + case 10: + r.source = e.int64(); + break; + case 11: + r.label = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 12: + r.sceneId = e.int64(); + break; + case 13: + r.maybeCarp = e.bool(); + break; + case 14: + r.countdownSecond = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.bonusType && e.hasOwnProperty("bonusType") && !(a.isInteger(e.bonusType) || e.bonusType && a.isInteger(e.bonusType.low) && a.isInteger(e.bonusType.high))) return "bonusType: integer|Long expected"; + var t; + if (null != e.author && e.hasOwnProperty("author") && (t = l.webcast.data.BonusAuthor.verify(e.author))) return "author." + t; + if (null != e.title && e.hasOwnProperty("title") && !a.isString(e.title)) return "title: string expected"; + if (null != e.subTitle && e.hasOwnProperty("subTitle") && !a.isString(e.subTitle)) return "subTitle: string expected"; + if (null != e.text && e.hasOwnProperty("text") && !a.isString(e.text)) return "text: string expected"; + if (null != e.style && e.hasOwnProperty("style") && !a.isString(e.style)) return "style: string expected"; + if (null != e.commerceInfo && e.hasOwnProperty("commerceInfo") && (t = l.webcast.data.BonusCommerce.verify(e.commerceInfo))) return "commerceInfo." + t; + if (null != e.openUrl && e.hasOwnProperty("openUrl") && !a.isString(e.openUrl)) return "openUrl: string expected"; + if (null != e.token && e.hasOwnProperty("token") && !a.isString(e.token)) return "token: string expected"; + if (null != e.source && e.hasOwnProperty("source") && !(a.isInteger(e.source) || e.source && a.isInteger(e.source.low) && a.isInteger(e.source.high))) return "source: integer|Long expected"; + if (null != e.label && e.hasOwnProperty("label") && (t = l.webcast.data.Image.verify(e.label))) return "label." + t; + return null != e.sceneId && e.hasOwnProperty("sceneId") && !(a.isInteger(e.sceneId) || e.sceneId && a.isInteger(e.sceneId.low) && a.isInteger(e.sceneId.high)) ? "sceneId: integer|Long expected" : null != e.maybeCarp && e.hasOwnProperty("maybeCarp") && "boolean" != typeof e.maybeCarp ? "maybeCarp: boolean expected" : null != e.countdownSecond && e.hasOwnProperty("countdownSecond") && !(a.isInteger(e.countdownSecond) || e.countdownSecond && a.isInteger(e.countdownSecond.low) && a.isInteger(e.countdownSecond.high)) ? "countdownSecond: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.Bonus) return e; + var t = new l.webcast.data.Bonus; + if (null != e.bonusType && (a.Long ? (t.bonusType = a.Long.fromValue(e.bonusType)).unsigned = !1 : "string" == typeof e.bonusType ? t.bonusType = parseInt(e.bonusType, 10) : "number" == typeof e.bonusType ? t.bonusType = e.bonusType : "object" == typeof e.bonusType && (t.bonusType = new a.LongBits(e.bonusType.low >>> 0, e.bonusType.high >>> 0).toNumber())), null != e.author) + { + if ("object" != typeof e.author) throw TypeError(".webcast.data.Bonus.author: object expected"); + t.author = l.webcast.data.BonusAuthor.fromObject(e.author) + } + if (null != e.title && (t.title = String(e.title)), null != e.subTitle && (t.subTitle = String(e.subTitle)), null != e.text && (t.text = String(e.text)), null != e.style && (t.style = String(e.style)), null != e.commerceInfo) + { + if ("object" != typeof e.commerceInfo) throw TypeError(".webcast.data.Bonus.commerceInfo: object expected"); + t.commerceInfo = l.webcast.data.BonusCommerce.fromObject(e.commerceInfo) + } + if (null != e.openUrl && (t.openUrl = String(e.openUrl)), null != e.token && (t.token = String(e.token)), null != e.source && (a.Long ? (t.source = a.Long.fromValue(e.source)).unsigned = !1 : "string" == typeof e.source ? t.source = parseInt(e.source, 10) : "number" == typeof e.source ? t.source = e.source : "object" == typeof e.source && (t.source = new a.LongBits(e.source.low >>> 0, e.source.high >>> 0).toNumber())), null != e.label) + { + if ("object" != typeof e.label) throw TypeError(".webcast.data.Bonus.label: object expected"); + t.label = l.webcast.data.Image.fromObject(e.label) + } + return null != e.sceneId && (a.Long ? (t.sceneId = a.Long.fromValue(e.sceneId)).unsigned = !1 : "string" == typeof e.sceneId ? t.sceneId = parseInt(e.sceneId, 10) : "number" == typeof e.sceneId ? t.sceneId = e.sceneId : "object" == typeof e.sceneId && (t.sceneId = new a.LongBits(e.sceneId.low >>> 0, e.sceneId.high >>> 0).toNumber())), null != e.maybeCarp && (t.maybeCarp = Boolean(e.maybeCarp)), null != e.countdownSecond && (a.Long ? (t.countdownSecond = a.Long.fromValue(e.countdownSecond)).unsigned = !1 : "string" == typeof e.countdownSecond ? t.countdownSecond = parseInt(e.countdownSecond, 10) : "number" == typeof e.countdownSecond ? t.countdownSecond = e.countdownSecond : "object" == typeof e.countdownSecond && (t.countdownSecond = new a.LongBits(e.countdownSecond.low >>> 0, e.countdownSecond.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.bonusType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.bonusType = t.longs === String ? "0" : 0; + if (n.author = null, n.title = "", n.subTitle = "", n.text = "", n.style = "", n.commerceInfo = null, n.openUrl = "", n.token = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.source = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.source = t.longs === String ? "0" : 0; + if (n.label = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.sceneId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.sceneId = t.longs === String ? "0" : 0; + if (n.maybeCarp = !1, a.Long) + { + r = new a.Long(0, 0, !1); + n.countdownSecond = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.countdownSecond = t.longs === String ? "0" : 0 + } + return null != e.bonusType && e.hasOwnProperty("bonusType") && ("number" == typeof e.bonusType ? n.bonusType = t.longs === String ? String(e.bonusType) : e.bonusType : n.bonusType = t.longs === String ? a.Long.prototype.toString.call(e.bonusType) : t.longs === Number ? new a.LongBits(e.bonusType.low >>> 0, e.bonusType.high >>> 0).toNumber() : e.bonusType), null != e.author && e.hasOwnProperty("author") && (n.author = l.webcast.data.BonusAuthor.toObject(e.author, t)), null != e.title && e.hasOwnProperty("title") && (n.title = e.title), null != e.subTitle && e.hasOwnProperty("subTitle") && (n.subTitle = e.subTitle), null != e.text && e.hasOwnProperty("text") && (n.text = e.text), null != e.style && e.hasOwnProperty("style") && (n.style = e.style), null != e.commerceInfo && e.hasOwnProperty("commerceInfo") && (n.commerceInfo = l.webcast.data.BonusCommerce.toObject(e.commerceInfo, t)), null != e.openUrl && e.hasOwnProperty("openUrl") && (n.openUrl = e.openUrl), null != e.token && e.hasOwnProperty("token") && (n.token = e.token), null != e.source && e.hasOwnProperty("source") && ("number" == typeof e.source ? n.source = t.longs === String ? String(e.source) : e.source : n.source = t.longs === String ? a.Long.prototype.toString.call(e.source) : t.longs === Number ? new a.LongBits(e.source.low >>> 0, e.source.high >>> 0).toNumber() : e.source), null != e.label && e.hasOwnProperty("label") && (n.label = l.webcast.data.Image.toObject(e.label, t)), null != e.sceneId && e.hasOwnProperty("sceneId") && ("number" == typeof e.sceneId ? n.sceneId = t.longs === String ? String(e.sceneId) : e.sceneId : n.sceneId = t.longs === String ? a.Long.prototype.toString.call(e.sceneId) : t.longs === Number ? new a.LongBits(e.sceneId.low >>> 0, e.sceneId.high >>> 0).toNumber() : e.sceneId), null != e.maybeCarp && e.hasOwnProperty("maybeCarp") && (n.maybeCarp = e.maybeCarp), null != e.countdownSecond && e.hasOwnProperty("countdownSecond") && ("number" == typeof e.countdownSecond ? n.countdownSecond = t.longs === String ? String(e.countdownSecond) : e.countdownSecond : n.countdownSecond = t.longs === String ? a.Long.prototype.toString.call(e.countdownSecond) : t.longs === Number ? new a.LongBits(e.countdownSecond.low >>> 0, e.countdownSecond.high >>> 0).toNumber() : e.countdownSecond), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.BonusCommerce = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(8).int64(e.id), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.BonusCommerce; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.id = e.int64(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high)) ? "id: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.BonusCommerce) return e; + var t = new l.webcast.data.BonusCommerce; + return null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.id = t.longs === String ? "0" : 0; + return null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? n.id = t.longs === String ? String(e.id) : e.id : n.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.BonusAuthor = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.name = "", e.prototype.avatarLarger = null, e.prototype.avatarThumb = null, e.prototype.avatarMedium = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(8).int64(e.id), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(18).string(e.name), null != e.avatarLarger && Object.hasOwnProperty.call(e, "avatarLarger") && l.webcast.data.Image.encode(e.avatarLarger, t.uint32(26).fork()).ldelim(), null != e.avatarThumb && Object.hasOwnProperty.call(e, "avatarThumb") && l.webcast.data.Image.encode(e.avatarThumb, t.uint32(34).fork()).ldelim(), null != e.avatarMedium && Object.hasOwnProperty.call(e, "avatarMedium") && l.webcast.data.Image.encode(e.avatarMedium, t.uint32(42).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.BonusAuthor; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.id = e.int64(); + break; + case 2: + r.name = e.string(); + break; + case 3: + r.avatarLarger = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 4: + r.avatarThumb = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 5: + r.avatarMedium = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high))) return "id: integer|Long expected"; + if (null != e.name && e.hasOwnProperty("name") && !a.isString(e.name)) return "name: string expected"; + var t; + if (null != e.avatarLarger && e.hasOwnProperty("avatarLarger") && (t = l.webcast.data.Image.verify(e.avatarLarger))) return "avatarLarger." + t; + if (null != e.avatarThumb && e.hasOwnProperty("avatarThumb") && (t = l.webcast.data.Image.verify(e.avatarThumb))) return "avatarThumb." + t; + if (null != e.avatarMedium && e.hasOwnProperty("avatarMedium") && (t = l.webcast.data.Image.verify(e.avatarMedium))) return "avatarMedium." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.BonusAuthor) return e; + var t = new l.webcast.data.BonusAuthor; + if (null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), null != e.name && (t.name = String(e.name)), null != e.avatarLarger) + { + if ("object" != typeof e.avatarLarger) throw TypeError(".webcast.data.BonusAuthor.avatarLarger: object expected"); + t.avatarLarger = l.webcast.data.Image.fromObject(e.avatarLarger) + } + if (null != e.avatarThumb) + { + if ("object" != typeof e.avatarThumb) throw TypeError(".webcast.data.BonusAuthor.avatarThumb: object expected"); + t.avatarThumb = l.webcast.data.Image.fromObject(e.avatarThumb) + } + if (null != e.avatarMedium) + { + if ("object" != typeof e.avatarMedium) throw TypeError(".webcast.data.BonusAuthor.avatarMedium: object expected"); + t.avatarMedium = l.webcast.data.Image.fromObject(e.avatarMedium) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.id = t.longs === String ? "0" : 0; + n.name = "", n.avatarLarger = null, n.avatarThumb = null, n.avatarMedium = null + } + return null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? n.id = t.longs === String ? String(e.id) : e.id : n.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), null != e.name && e.hasOwnProperty("name") && (n.name = e.name), null != e.avatarLarger && e.hasOwnProperty("avatarLarger") && (n.avatarLarger = l.webcast.data.Image.toObject(e.avatarLarger, t)), null != e.avatarThumb && e.hasOwnProperty("avatarThumb") && (n.avatarThumb = l.webcast.data.Image.toObject(e.avatarThumb, t)), null != e.avatarMedium && e.hasOwnProperty("avatarMedium") && (n.avatarMedium = l.webcast.data.Image.toObject(e.avatarMedium, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.BorderInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.borderType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.staticBorder = null, e.prototype.dynamicBorder = null, e.prototype.duration = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.borderType && Object.hasOwnProperty.call(e, "borderType") && t.uint32(8).int64(e.borderType), null != e.staticBorder && Object.hasOwnProperty.call(e, "staticBorder") && l.webcast.data.StaticBorderInfo.encode(e.staticBorder, t.uint32(18).fork()).ldelim(), null != e.dynamicBorder && Object.hasOwnProperty.call(e, "dynamicBorder") && l.webcast.data.DynamicBorderInfo.encode(e.dynamicBorder, t.uint32(26).fork()).ldelim(), null != e.duration && Object.hasOwnProperty.call(e, "duration") && t.uint32(32).int64(e.duration), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.BorderInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.borderType = e.int64(); + break; + case 2: + r.staticBorder = l.webcast.data.StaticBorderInfo.decode(e, e.uint32()); + break; + case 3: + r.dynamicBorder = l.webcast.data.DynamicBorderInfo.decode(e, e.uint32()); + break; + case 4: + r.duration = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.borderType && e.hasOwnProperty("borderType") && !(a.isInteger(e.borderType) || e.borderType && a.isInteger(e.borderType.low) && a.isInteger(e.borderType.high))) return "borderType: integer|Long expected"; + var t; + if (null != e.staticBorder && e.hasOwnProperty("staticBorder") && (t = l.webcast.data.StaticBorderInfo.verify(e.staticBorder))) return "staticBorder." + t; + if (null != e.dynamicBorder && e.hasOwnProperty("dynamicBorder") && (t = l.webcast.data.DynamicBorderInfo.verify(e.dynamicBorder))) return "dynamicBorder." + t; + return null != e.duration && e.hasOwnProperty("duration") && !(a.isInteger(e.duration) || e.duration && a.isInteger(e.duration.low) && a.isInteger(e.duration.high)) ? "duration: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.BorderInfo) return e; + var t = new l.webcast.data.BorderInfo; + if (null != e.borderType && (a.Long ? (t.borderType = a.Long.fromValue(e.borderType)).unsigned = !1 : "string" == typeof e.borderType ? t.borderType = parseInt(e.borderType, 10) : "number" == typeof e.borderType ? t.borderType = e.borderType : "object" == typeof e.borderType && (t.borderType = new a.LongBits(e.borderType.low >>> 0, e.borderType.high >>> 0).toNumber())), null != e.staticBorder) + { + if ("object" != typeof e.staticBorder) throw TypeError(".webcast.data.BorderInfo.staticBorder: object expected"); + t.staticBorder = l.webcast.data.StaticBorderInfo.fromObject(e.staticBorder) + } + if (null != e.dynamicBorder) + { + if ("object" != typeof e.dynamicBorder) throw TypeError(".webcast.data.BorderInfo.dynamicBorder: object expected"); + t.dynamicBorder = l.webcast.data.DynamicBorderInfo.fromObject(e.dynamicBorder) + } + return null != e.duration && (a.Long ? (t.duration = a.Long.fromValue(e.duration)).unsigned = !1 : "string" == typeof e.duration ? t.duration = parseInt(e.duration, 10) : "number" == typeof e.duration ? t.duration = e.duration : "object" == typeof e.duration && (t.duration = new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.borderType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.borderType = t.longs === String ? "0" : 0; + if (n.staticBorder = null, n.dynamicBorder = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.duration = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.duration = t.longs === String ? "0" : 0 + } + return null != e.borderType && e.hasOwnProperty("borderType") && ("number" == typeof e.borderType ? n.borderType = t.longs === String ? String(e.borderType) : e.borderType : n.borderType = t.longs === String ? a.Long.prototype.toString.call(e.borderType) : t.longs === Number ? new a.LongBits(e.borderType.low >>> 0, e.borderType.high >>> 0).toNumber() : e.borderType), null != e.staticBorder && e.hasOwnProperty("staticBorder") && (n.staticBorder = l.webcast.data.StaticBorderInfo.toObject(e.staticBorder, t)), null != e.dynamicBorder && e.hasOwnProperty("dynamicBorder") && (n.dynamicBorder = l.webcast.data.DynamicBorderInfo.toObject(e.dynamicBorder, t)), null != e.duration && e.hasOwnProperty("duration") && ("number" == typeof e.duration ? n.duration = t.longs === String ? String(e.duration) : e.duration : n.duration = t.longs === String ? a.Long.prototype.toString.call(e.duration) : t.longs === Number ? new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber() : e.duration), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.StaticBorderInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.top = null, e.prototype.bottom = null, e.prototype.left = null, e.prototype.right = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.top && Object.hasOwnProperty.call(e, "top") && l.webcast.data.Image.encode(e.top, t.uint32(10).fork()).ldelim(), null != e.bottom && Object.hasOwnProperty.call(e, "bottom") && l.webcast.data.Image.encode(e.bottom, t.uint32(18).fork()).ldelim(), null != e.left && Object.hasOwnProperty.call(e, "left") && l.webcast.data.Image.encode(e.left, t.uint32(26).fork()).ldelim(), null != e.right && Object.hasOwnProperty.call(e, "right") && l.webcast.data.Image.encode(e.right, t.uint32(34).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.StaticBorderInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.top = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.bottom = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 3: + r.left = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 4: + r.right = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.top && e.hasOwnProperty("top") && (t = l.webcast.data.Image.verify(e.top))) return "top." + t; + if (null != e.bottom && e.hasOwnProperty("bottom") && (t = l.webcast.data.Image.verify(e.bottom))) return "bottom." + t; + if (null != e.left && e.hasOwnProperty("left") && (t = l.webcast.data.Image.verify(e.left))) return "left." + t; + if (null != e.right && e.hasOwnProperty("right") && (t = l.webcast.data.Image.verify(e.right))) return "right." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.StaticBorderInfo) return e; + var t = new l.webcast.data.StaticBorderInfo; + if (null != e.top) + { + if ("object" != typeof e.top) throw TypeError(".webcast.data.StaticBorderInfo.top: object expected"); + t.top = l.webcast.data.Image.fromObject(e.top) + } + if (null != e.bottom) + { + if ("object" != typeof e.bottom) throw TypeError(".webcast.data.StaticBorderInfo.bottom: object expected"); + t.bottom = l.webcast.data.Image.fromObject(e.bottom) + } + if (null != e.left) + { + if ("object" != typeof e.left) throw TypeError(".webcast.data.StaticBorderInfo.left: object expected"); + t.left = l.webcast.data.Image.fromObject(e.left) + } + if (null != e.right) + { + if ("object" != typeof e.right) throw TypeError(".webcast.data.StaticBorderInfo.right: object expected"); + t.right = l.webcast.data.Image.fromObject(e.right) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.top = null, n.bottom = null, n.left = null, n.right = null), null != e.top && e.hasOwnProperty("top") && (n.top = l.webcast.data.Image.toObject(e.top, t)), null != e.bottom && e.hasOwnProperty("bottom") && (n.bottom = l.webcast.data.Image.toObject(e.bottom, t)), null != e.left && e.hasOwnProperty("left") && (n.left = l.webcast.data.Image.toObject(e.left, t)), null != e.right && e.hasOwnProperty("right") && (n.right = l.webcast.data.Image.toObject(e.right, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.DynamicBorderInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(8).int64(e.id), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.DynamicBorderInfo; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.id = e.int64(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high)) ? "id: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.DynamicBorderInfo) return e; + var t = new l.webcast.data.DynamicBorderInfo; + return null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.id = t.longs === String ? "0" : 0; + return null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? n.id = t.longs === String ? String(e.id) : e.id : n.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerUsers = function () + { + function e(e) + { + if (this.usersInfo = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.count = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.usersInfo = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.count && Object.hasOwnProperty.call(e, "count") && t.uint32(8).int64(e.count), null != e.usersInfo && e.usersInfo.length) + for (var n = 0; n < e.usersInfo.length; ++n) l.webcast.data.User.encode(e.usersInfo[n], t.uint32(18).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkerUsers; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.count = e.int64(); + break; + case 2: + r.usersInfo && r.usersInfo.length || (r.usersInfo = []), r.usersInfo.push(l.webcast.data.User.decode(e, e.uint32())); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.count && e.hasOwnProperty("count") && !(a.isInteger(e.count) || e.count && a.isInteger(e.count.low) && a.isInteger(e.count.high))) return "count: integer|Long expected"; + if (null != e.usersInfo && e.hasOwnProperty("usersInfo")) + { + if (!Array.isArray(e.usersInfo)) return "usersInfo: array expected"; + for (var t = 0; t < e.usersInfo.length; ++t) + { + var n = l.webcast.data.User.verify(e.usersInfo[t]); + if (n) return "usersInfo." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkerUsers) return e; + var t = new l.webcast.data.LinkerUsers; + if (null != e.count && (a.Long ? (t.count = a.Long.fromValue(e.count)).unsigned = !1 : "string" == typeof e.count ? t.count = parseInt(e.count, 10) : "number" == typeof e.count ? t.count = e.count : "object" == typeof e.count && (t.count = new a.LongBits(e.count.low >>> 0, e.count.high >>> 0).toNumber())), e.usersInfo) + { + if (!Array.isArray(e.usersInfo)) throw TypeError(".webcast.data.LinkerUsers.usersInfo: array expected"); + t.usersInfo = []; + for (var n = 0; n < e.usersInfo.length; ++n) + { + if ("object" != typeof e.usersInfo[n]) throw TypeError(".webcast.data.LinkerUsers.usersInfo: object expected"); + t.usersInfo[n] = l.webcast.data.User.fromObject(e.usersInfo[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.usersInfo = []), t.defaults) + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.count = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.count = t.longs === String ? "0" : 0; + if (null != e.count && e.hasOwnProperty("count") && ("number" == typeof e.count ? n.count = t.longs === String ? String(e.count) : e.count : n.count = t.longs === String ? a.Long.prototype.toString.call(e.count) : t.longs === Number ? new a.LongBits(e.count.low >>> 0, e.count.high >>> 0).toNumber() : e.count), e.usersInfo && e.usersInfo.length) + { + n.usersInfo = []; + for (var o = 0; o < e.usersInfo.length; ++o) n.usersInfo[o] = l.webcast.data.User.toObject(e.usersInfo[o], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.OfficialChannelInfo = function () + { + function e(e) + { + if (this.delayEnterTime = {}, this.hostUids = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.channelUser = null, e.prototype.channelName = "", e.prototype.channelIntro = "", e.prototype.endTimestamp = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.forbiddenBeforeEnd = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.currentShowId = 0, e.prototype.maxEnterTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.maxNextTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.delayEnterTime = a.emptyObject, e.prototype.hostPermission = !1, e.prototype.backupRoomId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.livingUser = null, e.prototype.hostCanAcceptGift = !1, e.prototype.hostUids = a.emptyArray, e.prototype.backupRoomIdStr = "", e.prototype.enableHost = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.channelUser && Object.hasOwnProperty.call(e, "channelUser") && l.webcast.data.User.encode(e.channelUser, t.uint32(10).fork()).ldelim(), null != e.channelName && Object.hasOwnProperty.call(e, "channelName") && t.uint32(18).string(e.channelName), null != e.channelIntro && Object.hasOwnProperty.call(e, "channelIntro") && t.uint32(26).string(e.channelIntro), null != e.endTimestamp && Object.hasOwnProperty.call(e, "endTimestamp") && t.uint32(32).int64(e.endTimestamp), null != e.forbiddenBeforeEnd && Object.hasOwnProperty.call(e, "forbiddenBeforeEnd") && t.uint32(40).int64(e.forbiddenBeforeEnd), null != e.currentShowId && Object.hasOwnProperty.call(e, "currentShowId") && t.uint32(48).int32(e.currentShowId), null != e.maxEnterTime && Object.hasOwnProperty.call(e, "maxEnterTime") && t.uint32(56).int64(e.maxEnterTime), null != e.maxNextTime && Object.hasOwnProperty.call(e, "maxNextTime") && t.uint32(64).int64(e.maxNextTime), null != e.delayEnterTime && Object.hasOwnProperty.call(e, "delayEnterTime")) + for (var n = Object.keys(e.delayEnterTime), r = 0; r < n.length; ++r) t.uint32(74).fork().uint32(8).int64(n[r]).uint32(16).int64(e.delayEnterTime[n[r]]).ldelim(); + if (null != e.hostPermission && Object.hasOwnProperty.call(e, "hostPermission") && t.uint32(80).bool(e.hostPermission), null != e.backupRoomId && Object.hasOwnProperty.call(e, "backupRoomId") && t.uint32(88).int64(e.backupRoomId), null != e.livingUser && Object.hasOwnProperty.call(e, "livingUser") && l.webcast.data.User.encode(e.livingUser, t.uint32(98).fork()).ldelim(), null != e.hostCanAcceptGift && Object.hasOwnProperty.call(e, "hostCanAcceptGift") && t.uint32(104).bool(e.hostCanAcceptGift), null != e.hostUids && e.hostUids.length) + { + t.uint32(114).fork(); + for (r = 0; r < e.hostUids.length; ++r) t.int64(e.hostUids[r]); + t.ldelim() + } + return null != e.backupRoomIdStr && Object.hasOwnProperty.call(e, "backupRoomIdStr") && t.uint32(122).string(e.backupRoomIdStr), null != e.enableHost && Object.hasOwnProperty.call(e, "enableHost") && t.uint32(128).bool(e.enableHost), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.OfficialChannelInfo; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.channelUser = l.webcast.data.User.decode(e, e.uint32()); + break; + case 2: + s.channelName = e.string(); + break; + case 3: + s.channelIntro = e.string(); + break; + case 4: + s.endTimestamp = e.int64(); + break; + case 5: + s.forbiddenBeforeEnd = e.int64(); + break; + case 6: + s.currentShowId = e.int32(); + break; + case 7: + s.maxEnterTime = e.int64(); + break; + case 8: + s.maxNextTime = e.int64(); + break; + case 9: + s.delayEnterTime === a.emptyObject && (s.delayEnterTime = {}); + var u = e.uint32() + e.pos; + for (n = 0, r = 0; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.int64(); + break; + case 2: + r = e.int64(); + break; + default: + e.skipType(7 & p) + } + } + s.delayEnterTime["object" == typeof n ? a.longToHash(n) : n] = r; + break; + case 10: + s.hostPermission = e.bool(); + break; + case 11: + s.backupRoomId = e.int64(); + break; + case 12: + s.livingUser = l.webcast.data.User.decode(e, e.uint32()); + break; + case 13: + s.hostCanAcceptGift = e.bool(); + break; + case 14: + if (s.hostUids && s.hostUids.length || (s.hostUids = []), 2 == (7 & c)) + for (u = e.uint32() + e.pos; e.pos < u;) s.hostUids.push(e.int64()); + else s.hostUids.push(e.int64()); + break; + case 15: + s.backupRoomIdStr = e.string(); + break; + case 16: + s.enableHost = e.bool(); + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.channelUser && e.hasOwnProperty("channelUser") && (t = l.webcast.data.User.verify(e.channelUser))) return "channelUser." + t; + if (null != e.channelName && e.hasOwnProperty("channelName") && !a.isString(e.channelName)) return "channelName: string expected"; + if (null != e.channelIntro && e.hasOwnProperty("channelIntro") && !a.isString(e.channelIntro)) return "channelIntro: string expected"; + if (null != e.endTimestamp && e.hasOwnProperty("endTimestamp") && !(a.isInteger(e.endTimestamp) || e.endTimestamp && a.isInteger(e.endTimestamp.low) && a.isInteger(e.endTimestamp.high))) return "endTimestamp: integer|Long expected"; + if (null != e.forbiddenBeforeEnd && e.hasOwnProperty("forbiddenBeforeEnd") && !(a.isInteger(e.forbiddenBeforeEnd) || e.forbiddenBeforeEnd && a.isInteger(e.forbiddenBeforeEnd.low) && a.isInteger(e.forbiddenBeforeEnd.high))) return "forbiddenBeforeEnd: integer|Long expected"; + if (null != e.currentShowId && e.hasOwnProperty("currentShowId") && !a.isInteger(e.currentShowId)) return "currentShowId: integer expected"; + if (null != e.maxEnterTime && e.hasOwnProperty("maxEnterTime") && !(a.isInteger(e.maxEnterTime) || e.maxEnterTime && a.isInteger(e.maxEnterTime.low) && a.isInteger(e.maxEnterTime.high))) return "maxEnterTime: integer|Long expected"; + if (null != e.maxNextTime && e.hasOwnProperty("maxNextTime") && !(a.isInteger(e.maxNextTime) || e.maxNextTime && a.isInteger(e.maxNextTime.low) && a.isInteger(e.maxNextTime.high))) return "maxNextTime: integer|Long expected"; + if (null != e.delayEnterTime && e.hasOwnProperty("delayEnterTime")) + { + if (!a.isObject(e.delayEnterTime)) return "delayEnterTime: object expected"; + for (var n = Object.keys(e.delayEnterTime), r = 0; r < n.length; ++r) + { + if (!a.key64Re.test(n[r])) return "delayEnterTime: integer|Long key{k:int64} expected"; + if (!(a.isInteger(e.delayEnterTime[n[r]]) || e.delayEnterTime[n[r]] && a.isInteger(e.delayEnterTime[n[r]].low) && a.isInteger(e.delayEnterTime[n[r]].high))) return "delayEnterTime: integer|Long{k:int64} expected" + } + } + if (null != e.hostPermission && e.hasOwnProperty("hostPermission") && "boolean" != typeof e.hostPermission) return "hostPermission: boolean expected"; + if (null != e.backupRoomId && e.hasOwnProperty("backupRoomId") && !(a.isInteger(e.backupRoomId) || e.backupRoomId && a.isInteger(e.backupRoomId.low) && a.isInteger(e.backupRoomId.high))) return "backupRoomId: integer|Long expected"; + if (null != e.livingUser && e.hasOwnProperty("livingUser") && (t = l.webcast.data.User.verify(e.livingUser))) return "livingUser." + t; + if (null != e.hostCanAcceptGift && e.hasOwnProperty("hostCanAcceptGift") && "boolean" != typeof e.hostCanAcceptGift) return "hostCanAcceptGift: boolean expected"; + if (null != e.hostUids && e.hasOwnProperty("hostUids")) + { + if (!Array.isArray(e.hostUids)) return "hostUids: array expected"; + for (r = 0; r < e.hostUids.length; ++r) + if (!(a.isInteger(e.hostUids[r]) || e.hostUids[r] && a.isInteger(e.hostUids[r].low) && a.isInteger(e.hostUids[r].high))) return "hostUids: integer|Long[] expected" + } + return null != e.backupRoomIdStr && e.hasOwnProperty("backupRoomIdStr") && !a.isString(e.backupRoomIdStr) ? "backupRoomIdStr: string expected" : null != e.enableHost && e.hasOwnProperty("enableHost") && "boolean" != typeof e.enableHost ? "enableHost: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.OfficialChannelInfo) return e; + var t = new l.webcast.data.OfficialChannelInfo; + if (null != e.channelUser) + { + if ("object" != typeof e.channelUser) throw TypeError(".webcast.data.OfficialChannelInfo.channelUser: object expected"); + t.channelUser = l.webcast.data.User.fromObject(e.channelUser) + } + if (null != e.channelName && (t.channelName = String(e.channelName)), null != e.channelIntro && (t.channelIntro = String(e.channelIntro)), null != e.endTimestamp && (a.Long ? (t.endTimestamp = a.Long.fromValue(e.endTimestamp)).unsigned = !1 : "string" == typeof e.endTimestamp ? t.endTimestamp = parseInt(e.endTimestamp, 10) : "number" == typeof e.endTimestamp ? t.endTimestamp = e.endTimestamp : "object" == typeof e.endTimestamp && (t.endTimestamp = new a.LongBits(e.endTimestamp.low >>> 0, e.endTimestamp.high >>> 0).toNumber())), null != e.forbiddenBeforeEnd && (a.Long ? (t.forbiddenBeforeEnd = a.Long.fromValue(e.forbiddenBeforeEnd)).unsigned = !1 : "string" == typeof e.forbiddenBeforeEnd ? t.forbiddenBeforeEnd = parseInt(e.forbiddenBeforeEnd, 10) : "number" == typeof e.forbiddenBeforeEnd ? t.forbiddenBeforeEnd = e.forbiddenBeforeEnd : "object" == typeof e.forbiddenBeforeEnd && (t.forbiddenBeforeEnd = new a.LongBits(e.forbiddenBeforeEnd.low >>> 0, e.forbiddenBeforeEnd.high >>> 0).toNumber())), null != e.currentShowId && (t.currentShowId = 0 | e.currentShowId), null != e.maxEnterTime && (a.Long ? (t.maxEnterTime = a.Long.fromValue(e.maxEnterTime)).unsigned = !1 : "string" == typeof e.maxEnterTime ? t.maxEnterTime = parseInt(e.maxEnterTime, 10) : "number" == typeof e.maxEnterTime ? t.maxEnterTime = e.maxEnterTime : "object" == typeof e.maxEnterTime && (t.maxEnterTime = new a.LongBits(e.maxEnterTime.low >>> 0, e.maxEnterTime.high >>> 0).toNumber())), null != e.maxNextTime && (a.Long ? (t.maxNextTime = a.Long.fromValue(e.maxNextTime)).unsigned = !1 : "string" == typeof e.maxNextTime ? t.maxNextTime = parseInt(e.maxNextTime, 10) : "number" == typeof e.maxNextTime ? t.maxNextTime = e.maxNextTime : "object" == typeof e.maxNextTime && (t.maxNextTime = new a.LongBits(e.maxNextTime.low >>> 0, e.maxNextTime.high >>> 0).toNumber())), e.delayEnterTime) + { + if ("object" != typeof e.delayEnterTime) throw TypeError(".webcast.data.OfficialChannelInfo.delayEnterTime: object expected"); + t.delayEnterTime = {}; + for (var n = Object.keys(e.delayEnterTime), r = 0; r < n.length; ++r) a.Long ? (t.delayEnterTime[n[r]] = a.Long.fromValue(e.delayEnterTime[n[r]])).unsigned = !1 : "string" == typeof e.delayEnterTime[n[r]] ? t.delayEnterTime[n[r]] = parseInt(e.delayEnterTime[n[r]], 10) : "number" == typeof e.delayEnterTime[n[r]] ? t.delayEnterTime[n[r]] = e.delayEnterTime[n[r]] : "object" == typeof e.delayEnterTime[n[r]] && (t.delayEnterTime[n[r]] = new a.LongBits(e.delayEnterTime[n[r]].low >>> 0, e.delayEnterTime[n[r]].high >>> 0).toNumber()) + } + if (null != e.hostPermission && (t.hostPermission = Boolean(e.hostPermission)), null != e.backupRoomId && (a.Long ? (t.backupRoomId = a.Long.fromValue(e.backupRoomId)).unsigned = !1 : "string" == typeof e.backupRoomId ? t.backupRoomId = parseInt(e.backupRoomId, 10) : "number" == typeof e.backupRoomId ? t.backupRoomId = e.backupRoomId : "object" == typeof e.backupRoomId && (t.backupRoomId = new a.LongBits(e.backupRoomId.low >>> 0, e.backupRoomId.high >>> 0).toNumber())), null != e.livingUser) + { + if ("object" != typeof e.livingUser) throw TypeError(".webcast.data.OfficialChannelInfo.livingUser: object expected"); + t.livingUser = l.webcast.data.User.fromObject(e.livingUser) + } + if (null != e.hostCanAcceptGift && (t.hostCanAcceptGift = Boolean(e.hostCanAcceptGift)), e.hostUids) + { + if (!Array.isArray(e.hostUids)) throw TypeError(".webcast.data.OfficialChannelInfo.hostUids: array expected"); + t.hostUids = []; + for (r = 0; r < e.hostUids.length; ++r) a.Long ? (t.hostUids[r] = a.Long.fromValue(e.hostUids[r])).unsigned = !1 : "string" == typeof e.hostUids[r] ? t.hostUids[r] = parseInt(e.hostUids[r], 10) : "number" == typeof e.hostUids[r] ? t.hostUids[r] = e.hostUids[r] : "object" == typeof e.hostUids[r] && (t.hostUids[r] = new a.LongBits(e.hostUids[r].low >>> 0, e.hostUids[r].high >>> 0).toNumber()) + } + return null != e.backupRoomIdStr && (t.backupRoomIdStr = String(e.backupRoomIdStr)), null != e.enableHost && (t.enableHost = Boolean(e.enableHost)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.arrays || t.defaults) && (r.hostUids = []), (t.objects || t.defaults) && (r.delayEnterTime = {}), t.defaults) + { + if (r.channelUser = null, r.channelName = "", r.channelIntro = "", a.Long) + { + var o = new a.Long(0, 0, !1); + r.endTimestamp = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.endTimestamp = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.forbiddenBeforeEnd = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.forbiddenBeforeEnd = t.longs === String ? "0" : 0; + if (r.currentShowId = 0, a.Long) + { + o = new a.Long(0, 0, !1); + r.maxEnterTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.maxEnterTime = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.maxNextTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.maxNextTime = t.longs === String ? "0" : 0; + if (r.hostPermission = !1, a.Long) + { + o = new a.Long(0, 0, !1); + r.backupRoomId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.backupRoomId = t.longs === String ? "0" : 0; + r.livingUser = null, r.hostCanAcceptGift = !1, r.backupRoomIdStr = "", r.enableHost = !1 + } + if (null != e.channelUser && e.hasOwnProperty("channelUser") && (r.channelUser = l.webcast.data.User.toObject(e.channelUser, t)), null != e.channelName && e.hasOwnProperty("channelName") && (r.channelName = e.channelName), null != e.channelIntro && e.hasOwnProperty("channelIntro") && (r.channelIntro = e.channelIntro), null != e.endTimestamp && e.hasOwnProperty("endTimestamp") && ("number" == typeof e.endTimestamp ? r.endTimestamp = t.longs === String ? String(e.endTimestamp) : e.endTimestamp : r.endTimestamp = t.longs === String ? a.Long.prototype.toString.call(e.endTimestamp) : t.longs === Number ? new a.LongBits(e.endTimestamp.low >>> 0, e.endTimestamp.high >>> 0).toNumber() : e.endTimestamp), null != e.forbiddenBeforeEnd && e.hasOwnProperty("forbiddenBeforeEnd") && ("number" == typeof e.forbiddenBeforeEnd ? r.forbiddenBeforeEnd = t.longs === String ? String(e.forbiddenBeforeEnd) : e.forbiddenBeforeEnd : r.forbiddenBeforeEnd = t.longs === String ? a.Long.prototype.toString.call(e.forbiddenBeforeEnd) : t.longs === Number ? new a.LongBits(e.forbiddenBeforeEnd.low >>> 0, e.forbiddenBeforeEnd.high >>> 0).toNumber() : e.forbiddenBeforeEnd), null != e.currentShowId && e.hasOwnProperty("currentShowId") && (r.currentShowId = e.currentShowId), null != e.maxEnterTime && e.hasOwnProperty("maxEnterTime") && ("number" == typeof e.maxEnterTime ? r.maxEnterTime = t.longs === String ? String(e.maxEnterTime) : e.maxEnterTime : r.maxEnterTime = t.longs === String ? a.Long.prototype.toString.call(e.maxEnterTime) : t.longs === Number ? new a.LongBits(e.maxEnterTime.low >>> 0, e.maxEnterTime.high >>> 0).toNumber() : e.maxEnterTime), null != e.maxNextTime && e.hasOwnProperty("maxNextTime") && ("number" == typeof e.maxNextTime ? r.maxNextTime = t.longs === String ? String(e.maxNextTime) : e.maxNextTime : r.maxNextTime = t.longs === String ? a.Long.prototype.toString.call(e.maxNextTime) : t.longs === Number ? new a.LongBits(e.maxNextTime.low >>> 0, e.maxNextTime.high >>> 0).toNumber() : e.maxNextTime), e.delayEnterTime && (n = Object.keys(e.delayEnterTime)).length) + { + r.delayEnterTime = {}; + for (var i = 0; i < n.length; ++i) "number" == typeof e.delayEnterTime[n[i]] ? r.delayEnterTime[n[i]] = t.longs === String ? String(e.delayEnterTime[n[i]]) : e.delayEnterTime[n[i]] : r.delayEnterTime[n[i]] = t.longs === String ? a.Long.prototype.toString.call(e.delayEnterTime[n[i]]) : t.longs === Number ? new a.LongBits(e.delayEnterTime[n[i]].low >>> 0, e.delayEnterTime[n[i]].high >>> 0).toNumber() : e.delayEnterTime[n[i]] + } + if (null != e.hostPermission && e.hasOwnProperty("hostPermission") && (r.hostPermission = e.hostPermission), null != e.backupRoomId && e.hasOwnProperty("backupRoomId") && ("number" == typeof e.backupRoomId ? r.backupRoomId = t.longs === String ? String(e.backupRoomId) : e.backupRoomId : r.backupRoomId = t.longs === String ? a.Long.prototype.toString.call(e.backupRoomId) : t.longs === Number ? new a.LongBits(e.backupRoomId.low >>> 0, e.backupRoomId.high >>> 0).toNumber() : e.backupRoomId), null != e.livingUser && e.hasOwnProperty("livingUser") && (r.livingUser = l.webcast.data.User.toObject(e.livingUser, t)), null != e.hostCanAcceptGift && e.hasOwnProperty("hostCanAcceptGift") && (r.hostCanAcceptGift = e.hostCanAcceptGift), e.hostUids && e.hostUids.length) + { + r.hostUids = []; + for (i = 0; i < e.hostUids.length; ++i) "number" == typeof e.hostUids[i] ? r.hostUids[i] = t.longs === String ? String(e.hostUids[i]) : e.hostUids[i] : r.hostUids[i] = t.longs === String ? a.Long.prototype.toString.call(e.hostUids[i]) : t.longs === Number ? new a.LongBits(e.hostUids[i].low >>> 0, e.hostUids[i].high >>> 0).toNumber() : e.hostUids[i] + } + return null != e.backupRoomIdStr && e.hasOwnProperty("backupRoomIdStr") && (r.backupRoomIdStr = e.backupRoomIdStr), null != e.enableHost && e.hasOwnProperty("enableHost") && (r.enableHost = e.enableHost), r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.RoomShortTouchAreaConfig = function () + { + function e(e) + { + if (this.elements = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.elements = a.emptyObject, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.elements && Object.hasOwnProperty.call(e, "elements")) + for (var n = Object.keys(e.elements), r = 0; r < n.length; ++r) t.uint32(10).fork().uint32(8).int32(n[r]), l.webcast.data.RoomShortTouchAreaConfig.Element.encode(e.elements[n[r]], t.uint32(18).fork()).ldelim().ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.RoomShortTouchAreaConfig; e.pos < i;) + { + var c = e.uint32(); + if (c >>> 3 == 1) + { + s.elements === a.emptyObject && (s.elements = {}); + var u = e.uint32() + e.pos; + for (n = 0, r = null; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.int32(); + break; + case 2: + r = l.webcast.data.RoomShortTouchAreaConfig.Element.decode(e, e.uint32()); + break; + default: + e.skipType(7 & p) + } + } + s.elements[n] = r + } + else e.skipType(7 & c) + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.elements && e.hasOwnProperty("elements")) + { + if (!a.isObject(e.elements)) return "elements: object expected"; + for (var t = Object.keys(e.elements), n = 0; n < t.length; ++n) + { + if (!a.key32Re.test(t[n])) return "elements: integer key{k:int32} expected"; + var r = l.webcast.data.RoomShortTouchAreaConfig.Element.verify(e.elements[t[n]]); + if (r) return "elements." + r + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RoomShortTouchAreaConfig) return e; + var t = new l.webcast.data.RoomShortTouchAreaConfig; + if (e.elements) + { + if ("object" != typeof e.elements) throw TypeError(".webcast.data.RoomShortTouchAreaConfig.elements: object expected"); + t.elements = {}; + for (var n = Object.keys(e.elements), r = 0; r < n.length; ++r) + { + if ("object" != typeof e.elements[n[r]]) throw TypeError(".webcast.data.RoomShortTouchAreaConfig.elements: object expected"); + t.elements[n[r]] = l.webcast.data.RoomShortTouchAreaConfig.Element.fromObject(e.elements[n[r]]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.elements = {}), e.elements && (n = Object.keys(e.elements)).length) + { + r.elements = {}; + for (var o = 0; o < n.length; ++o) r.elements[n[o]] = l.webcast.data.RoomShortTouchAreaConfig.Element.toObject(e.elements[n[o]], t) + } + return r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.ElementType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "Unknown"] = 0, t[e[11] = "NewRegularLuckyBox"] = 11, t[e[13] = "PopularCard"] = 13, t[e[14] = "ActivityTreasure"] = 14, t[e[15] = "GiftSummon"] = 15, t[e[16] = "BoxTreasure"] = 16, t[e[17] = "ActivityBoxPortal"] = 17, t[e[18] = "ActivityRain"] = 18, t[e[19] = "ActivityRainPortal"] = 19, t[e[20] = "ActivityLottery"] = 20, t[e[21] = "ActivityLotteryPortal"] = 21, t[e[23] = "ActivityInfiniteIdol"] = 23, t[e[24] = "Activity9Treasure"] = 24, t[e[25] = "FansclubClubTask"] = 25, t[e[26] = "LuckyChallenge"] = 26, t[e[28] = "PKBounty"] = 28, t[e[29] = "PersonalizedTask"] = 29, t[e[31] = "ActivityPotentialAnchor"] = 31, t[e[32] = "ActivityHourRank2Treasure"] = 32, t[e[33] = "ActivityHourRank2Portal"] = 33, t[e[34] = "ActivityAirPK4TreasureDH"] = 34, t[e[35] = "ActivityAirPK4PortalDH"] = 35, t[e[36] = "ActivityAirPK4TreasureXT"] = 36, t[e[37] = "ActivityAirPK4PortalXT"] = 37, t + }(), e.Element = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.type = 0, e.prototype.priority = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.type && Object.hasOwnProperty.call(e, "type") && t.uint32(8).int32(e.type), null != e.priority && Object.hasOwnProperty.call(e, "priority") && t.uint32(16).int32(e.priority), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RoomShortTouchAreaConfig.Element; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.type = e.int32(); + break; + case 2: + r.priority = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.type && e.hasOwnProperty("type") && !a.isInteger(e.type) ? "type: integer expected" : null != e.priority && e.hasOwnProperty("priority") && !a.isInteger(e.priority) ? "priority: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RoomShortTouchAreaConfig.Element) return e; + var t = new l.webcast.data.RoomShortTouchAreaConfig.Element; + return null != e.type && (t.type = 0 | e.type), null != e.priority && (t.priority = 0 | e.priority), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.type = 0, n.priority = 0), null != e.type && e.hasOwnProperty("type") && (n.type = e.type), null != e.priority && e.hasOwnProperty("priority") && (n.priority = e.priority), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.MatchInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.skin = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.skin && Object.hasOwnProperty.call(e, "skin") && l.webcast.data.MatchSkinInfo.encode(e.skin, t.uint32(10).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.MatchInfo; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.skin = l.webcast.data.MatchSkinInfo.decode(e, e.uint32()); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.skin && e.hasOwnProperty("skin")) + { + var t = l.webcast.data.MatchSkinInfo.verify(e.skin); + if (t) return "skin." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.MatchInfo) return e; + var t = new l.webcast.data.MatchInfo; + if (null != e.skin) + { + if ("object" != typeof e.skin) throw TypeError(".webcast.data.MatchInfo.skin: object expected"); + t.skin = l.webcast.data.MatchSkinInfo.fromObject(e.skin) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.skin = null), null != e.skin && e.hasOwnProperty("skin") && (n.skin = l.webcast.data.MatchSkinInfo.toObject(e.skin, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.MatchSkinInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.unfollowSkin = null, e.prototype.followedSkin = null, e.prototype.tabSelectedColor = "", e.prototype.tabUnselectedColor = "", e.prototype.commentPlaceHolderColor = "", e.prototype.anchorNameColor = "", e.prototype.anchorInfoColor = "", e.prototype.userBannerImage = null, e.prototype.toolBarImage = null, e.prototype.commentPlaceHolderBgColor = "", e.prototype.shareIcon = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.unfollowSkin && Object.hasOwnProperty.call(e, "unfollowSkin") && l.webcast.data.MatchSkinInfo.FollowBtnSkin.encode(e.unfollowSkin, t.uint32(10).fork()).ldelim(), null != e.followedSkin && Object.hasOwnProperty.call(e, "followedSkin") && l.webcast.data.MatchSkinInfo.FollowBtnSkin.encode(e.followedSkin, t.uint32(18).fork()).ldelim(), null != e.tabSelectedColor && Object.hasOwnProperty.call(e, "tabSelectedColor") && t.uint32(26).string(e.tabSelectedColor), null != e.tabUnselectedColor && Object.hasOwnProperty.call(e, "tabUnselectedColor") && t.uint32(34).string(e.tabUnselectedColor), null != e.commentPlaceHolderColor && Object.hasOwnProperty.call(e, "commentPlaceHolderColor") && t.uint32(42).string(e.commentPlaceHolderColor), null != e.anchorNameColor && Object.hasOwnProperty.call(e, "anchorNameColor") && t.uint32(50).string(e.anchorNameColor), null != e.anchorInfoColor && Object.hasOwnProperty.call(e, "anchorInfoColor") && t.uint32(58).string(e.anchorInfoColor), null != e.userBannerImage && Object.hasOwnProperty.call(e, "userBannerImage") && l.webcast.data.Image.encode(e.userBannerImage, t.uint32(66).fork()).ldelim(), null != e.toolBarImage && Object.hasOwnProperty.call(e, "toolBarImage") && l.webcast.data.Image.encode(e.toolBarImage, t.uint32(74).fork()).ldelim(), null != e.commentPlaceHolderBgColor && Object.hasOwnProperty.call(e, "commentPlaceHolderBgColor") && t.uint32(82).string(e.commentPlaceHolderBgColor), null != e.shareIcon && Object.hasOwnProperty.call(e, "shareIcon") && l.webcast.data.Image.encode(e.shareIcon, t.uint32(90).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.MatchSkinInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.unfollowSkin = l.webcast.data.MatchSkinInfo.FollowBtnSkin.decode(e, e.uint32()); + break; + case 2: + r.followedSkin = l.webcast.data.MatchSkinInfo.FollowBtnSkin.decode(e, e.uint32()); + break; + case 3: + r.tabSelectedColor = e.string(); + break; + case 4: + r.tabUnselectedColor = e.string(); + break; + case 5: + r.commentPlaceHolderColor = e.string(); + break; + case 6: + r.anchorNameColor = e.string(); + break; + case 7: + r.anchorInfoColor = e.string(); + break; + case 8: + r.userBannerImage = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 9: + r.toolBarImage = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 10: + r.commentPlaceHolderBgColor = e.string(); + break; + case 11: + r.shareIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.unfollowSkin && e.hasOwnProperty("unfollowSkin") && (t = l.webcast.data.MatchSkinInfo.FollowBtnSkin.verify(e.unfollowSkin))) return "unfollowSkin." + t; + if (null != e.followedSkin && e.hasOwnProperty("followedSkin") && (t = l.webcast.data.MatchSkinInfo.FollowBtnSkin.verify(e.followedSkin))) return "followedSkin." + t; + if (null != e.tabSelectedColor && e.hasOwnProperty("tabSelectedColor") && !a.isString(e.tabSelectedColor)) return "tabSelectedColor: string expected"; + if (null != e.tabUnselectedColor && e.hasOwnProperty("tabUnselectedColor") && !a.isString(e.tabUnselectedColor)) return "tabUnselectedColor: string expected"; + if (null != e.commentPlaceHolderColor && e.hasOwnProperty("commentPlaceHolderColor") && !a.isString(e.commentPlaceHolderColor)) return "commentPlaceHolderColor: string expected"; + if (null != e.anchorNameColor && e.hasOwnProperty("anchorNameColor") && !a.isString(e.anchorNameColor)) return "anchorNameColor: string expected"; + if (null != e.anchorInfoColor && e.hasOwnProperty("anchorInfoColor") && !a.isString(e.anchorInfoColor)) return "anchorInfoColor: string expected"; + if (null != e.userBannerImage && e.hasOwnProperty("userBannerImage") && (t = l.webcast.data.Image.verify(e.userBannerImage))) return "userBannerImage." + t; + if (null != e.toolBarImage && e.hasOwnProperty("toolBarImage") && (t = l.webcast.data.Image.verify(e.toolBarImage))) return "toolBarImage." + t; + if (null != e.commentPlaceHolderBgColor && e.hasOwnProperty("commentPlaceHolderBgColor") && !a.isString(e.commentPlaceHolderBgColor)) return "commentPlaceHolderBgColor: string expected"; + if (null != e.shareIcon && e.hasOwnProperty("shareIcon") && (t = l.webcast.data.Image.verify(e.shareIcon))) return "shareIcon." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.MatchSkinInfo) return e; + var t = new l.webcast.data.MatchSkinInfo; + if (null != e.unfollowSkin) + { + if ("object" != typeof e.unfollowSkin) throw TypeError(".webcast.data.MatchSkinInfo.unfollowSkin: object expected"); + t.unfollowSkin = l.webcast.data.MatchSkinInfo.FollowBtnSkin.fromObject(e.unfollowSkin) + } + if (null != e.followedSkin) + { + if ("object" != typeof e.followedSkin) throw TypeError(".webcast.data.MatchSkinInfo.followedSkin: object expected"); + t.followedSkin = l.webcast.data.MatchSkinInfo.FollowBtnSkin.fromObject(e.followedSkin) + } + if (null != e.tabSelectedColor && (t.tabSelectedColor = String(e.tabSelectedColor)), null != e.tabUnselectedColor && (t.tabUnselectedColor = String(e.tabUnselectedColor)), null != e.commentPlaceHolderColor && (t.commentPlaceHolderColor = String(e.commentPlaceHolderColor)), null != e.anchorNameColor && (t.anchorNameColor = String(e.anchorNameColor)), null != e.anchorInfoColor && (t.anchorInfoColor = String(e.anchorInfoColor)), null != e.userBannerImage) + { + if ("object" != typeof e.userBannerImage) throw TypeError(".webcast.data.MatchSkinInfo.userBannerImage: object expected"); + t.userBannerImage = l.webcast.data.Image.fromObject(e.userBannerImage) + } + if (null != e.toolBarImage) + { + if ("object" != typeof e.toolBarImage) throw TypeError(".webcast.data.MatchSkinInfo.toolBarImage: object expected"); + t.toolBarImage = l.webcast.data.Image.fromObject(e.toolBarImage) + } + if (null != e.commentPlaceHolderBgColor && (t.commentPlaceHolderBgColor = String(e.commentPlaceHolderBgColor)), null != e.shareIcon) + { + if ("object" != typeof e.shareIcon) throw TypeError(".webcast.data.MatchSkinInfo.shareIcon: object expected"); + t.shareIcon = l.webcast.data.Image.fromObject(e.shareIcon) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.unfollowSkin = null, n.followedSkin = null, n.tabSelectedColor = "", n.tabUnselectedColor = "", n.commentPlaceHolderColor = "", n.anchorNameColor = "", n.anchorInfoColor = "", n.userBannerImage = null, n.toolBarImage = null, n.commentPlaceHolderBgColor = "", n.shareIcon = null), null != e.unfollowSkin && e.hasOwnProperty("unfollowSkin") && (n.unfollowSkin = l.webcast.data.MatchSkinInfo.FollowBtnSkin.toObject(e.unfollowSkin, t)), null != e.followedSkin && e.hasOwnProperty("followedSkin") && (n.followedSkin = l.webcast.data.MatchSkinInfo.FollowBtnSkin.toObject(e.followedSkin, t)), null != e.tabSelectedColor && e.hasOwnProperty("tabSelectedColor") && (n.tabSelectedColor = e.tabSelectedColor), null != e.tabUnselectedColor && e.hasOwnProperty("tabUnselectedColor") && (n.tabUnselectedColor = e.tabUnselectedColor), null != e.commentPlaceHolderColor && e.hasOwnProperty("commentPlaceHolderColor") && (n.commentPlaceHolderColor = e.commentPlaceHolderColor), null != e.anchorNameColor && e.hasOwnProperty("anchorNameColor") && (n.anchorNameColor = e.anchorNameColor), null != e.anchorInfoColor && e.hasOwnProperty("anchorInfoColor") && (n.anchorInfoColor = e.anchorInfoColor), null != e.userBannerImage && e.hasOwnProperty("userBannerImage") && (n.userBannerImage = l.webcast.data.Image.toObject(e.userBannerImage, t)), null != e.toolBarImage && e.hasOwnProperty("toolBarImage") && (n.toolBarImage = l.webcast.data.Image.toObject(e.toolBarImage, t)), null != e.commentPlaceHolderBgColor && e.hasOwnProperty("commentPlaceHolderBgColor") && (n.commentPlaceHolderBgColor = e.commentPlaceHolderBgColor), null != e.shareIcon && e.hasOwnProperty("shareIcon") && (n.shareIcon = l.webcast.data.Image.toObject(e.shareIcon, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.FollowBtnSkin = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.leftColor = "", e.prototype.rightColor = "", e.prototype.fontColor = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.leftColor && Object.hasOwnProperty.call(e, "leftColor") && t.uint32(10).string(e.leftColor), null != e.rightColor && Object.hasOwnProperty.call(e, "rightColor") && t.uint32(18).string(e.rightColor), null != e.fontColor && Object.hasOwnProperty.call(e, "fontColor") && t.uint32(26).string(e.fontColor), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.MatchSkinInfo.FollowBtnSkin; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.leftColor = e.string(); + break; + case 2: + r.rightColor = e.string(); + break; + case 3: + r.fontColor = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.leftColor && e.hasOwnProperty("leftColor") && !a.isString(e.leftColor) ? "leftColor: string expected" : null != e.rightColor && e.hasOwnProperty("rightColor") && !a.isString(e.rightColor) ? "rightColor: string expected" : null != e.fontColor && e.hasOwnProperty("fontColor") && !a.isString(e.fontColor) ? "fontColor: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.MatchSkinInfo.FollowBtnSkin) return e; + var t = new l.webcast.data.MatchSkinInfo.FollowBtnSkin; + return null != e.leftColor && (t.leftColor = String(e.leftColor)), null != e.rightColor && (t.rightColor = String(e.rightColor)), null != e.fontColor && (t.fontColor = String(e.fontColor)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.leftColor = "", n.rightColor = "", n.fontColor = ""), null != e.leftColor && e.hasOwnProperty("leftColor") && (n.leftColor = e.leftColor), null != e.rightColor && e.hasOwnProperty("rightColor") && (n.rightColor = e.rightColor), null != e.fontColor && e.hasOwnProperty("fontColor") && (n.fontColor = e.fontColor), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.RoomActivityTag = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.activityType = 0, e.prototype.name = "", e.prototype.url = "", e.prototype.extra = "", e.prototype.icon = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.activityType && Object.hasOwnProperty.call(e, "activityType") && t.uint32(8).int32(e.activityType), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(18).string(e.name), null != e.url && Object.hasOwnProperty.call(e, "url") && t.uint32(26).string(e.url), null != e.extra && Object.hasOwnProperty.call(e, "extra") && t.uint32(34).string(e.extra), null != e.icon && Object.hasOwnProperty.call(e, "icon") && l.webcast.data.Image.encode(e.icon, t.uint32(42).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RoomActivityTag; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.activityType = e.int32(); + break; + case 2: + r.name = e.string(); + break; + case 3: + r.url = e.string(); + break; + case 4: + r.extra = e.string(); + break; + case 5: + r.icon = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.activityType && e.hasOwnProperty("activityType")) switch (e.activityType) + { + default: + return "activityType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + } + if (null != e.name && e.hasOwnProperty("name") && !a.isString(e.name)) return "name: string expected"; + if (null != e.url && e.hasOwnProperty("url") && !a.isString(e.url)) return "url: string expected"; + if (null != e.extra && e.hasOwnProperty("extra") && !a.isString(e.extra)) return "extra: string expected"; + if (null != e.icon && e.hasOwnProperty("icon")) + { + var t = l.webcast.data.Image.verify(e.icon); + if (t) return "icon." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RoomActivityTag) return e; + var t = new l.webcast.data.RoomActivityTag; + switch (e.activityType) + { + case "XiguaPlay": + case 0: + t.activityType = 0; + break; + case "OperationTag": + case 1: + t.activityType = 1; + break; + case "Lottery": + case 2: + t.activityType = 2; + break; + case "Quiz": + case 3: + t.activityType = 3; + break; + case "CategoryType": + case 4: + t.activityType = 4; + break; + case "PureImage": + case 5: + t.activityType = 5 + } + if (null != e.name && (t.name = String(e.name)), null != e.url && (t.url = String(e.url)), null != e.extra && (t.extra = String(e.extra)), null != e.icon) + { + if ("object" != typeof e.icon) throw TypeError(".webcast.data.RoomActivityTag.icon: object expected"); + t.icon = l.webcast.data.Image.fromObject(e.icon) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.activityType = t.enums === String ? "XiguaPlay" : 0, n.name = "", n.url = "", n.extra = "", n.icon = null), null != e.activityType && e.hasOwnProperty("activityType") && (n.activityType = t.enums === String ? l.webcast.data.RoomActivityTag.TagType[e.activityType] : e.activityType), null != e.name && e.hasOwnProperty("name") && (n.name = e.name), null != e.url && e.hasOwnProperty("url") && (n.url = e.url), null != e.extra && e.hasOwnProperty("extra") && (n.extra = e.extra), null != e.icon && e.hasOwnProperty("icon") && (n.icon = l.webcast.data.Image.toObject(e.icon, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.TagType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "XiguaPlay"] = 0, t[e[1] = "OperationTag"] = 1, t[e[2] = "Lottery"] = 2, t[e[3] = "Quiz"] = 3, t[e[4] = "CategoryType"] = 4, t[e[5] = "PureImage"] = 5, t + }(), e + }(), e.RoomAuthStatus = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.Chat = !1, e.prototype.Danmaku = !1, e.prototype.Gift = !1, e.prototype.LuckMoney = !1, e.prototype.Digg = !1, e.prototype.RoomContributor = !1, e.prototype.Props = !1, e.prototype.UserCard = !1, e.prototype.POI = !1, e.prototype.MoreAnchor = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.Banner = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.Share = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.UserCorner = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.Landscape = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.LandscapeChat = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.PublicScreen = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.GiftAnchorMt = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.RecordScreen = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.DonationSticker = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.HourRank = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.CommerceCard = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.AudioChat = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.DanmakuDefault = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.KtvOrderSong = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.SelectionAlbum = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.Like = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.MultiplierPlayback = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.DownloadVideo = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.Collect = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.TimedShutdown = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.Seek = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.Denounce = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.Dislike = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.OnlyTa = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.CastScreen = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.CommentWall = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.BulletStyle = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.ShowGamePlugin = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.VSGift = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.VSTopic = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.VSRank = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.AdminCommentWall = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.CommerceComponent = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.DouPlus = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.GamePointsPlaying = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.Poster = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.Highlights = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.TypingCommentState = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.StrokeUpDownGuide = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.OffReason = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.Chat && Object.hasOwnProperty.call(e, "Chat") && t.uint32(8).bool(e.Chat), null != e.Danmaku && Object.hasOwnProperty.call(e, "Danmaku") && t.uint32(16).bool(e.Danmaku), null != e.Gift && Object.hasOwnProperty.call(e, "Gift") && t.uint32(24).bool(e.Gift), null != e.LuckMoney && Object.hasOwnProperty.call(e, "LuckMoney") && t.uint32(32).bool(e.LuckMoney), null != e.Digg && Object.hasOwnProperty.call(e, "Digg") && t.uint32(40).bool(e.Digg), null != e.RoomContributor && Object.hasOwnProperty.call(e, "RoomContributor") && t.uint32(56).bool(e.RoomContributor), null != e.Props && Object.hasOwnProperty.call(e, "Props") && t.uint32(64).bool(e.Props), null != e.UserCard && Object.hasOwnProperty.call(e, "UserCard") && t.uint32(72).bool(e.UserCard), null != e.POI && Object.hasOwnProperty.call(e, "POI") && t.uint32(80).bool(e.POI), null != e.MoreAnchor && Object.hasOwnProperty.call(e, "MoreAnchor") && t.uint32(88).int64(e.MoreAnchor), null != e.Banner && Object.hasOwnProperty.call(e, "Banner") && t.uint32(96).int64(e.Banner), null != e.Share && Object.hasOwnProperty.call(e, "Share") && t.uint32(104).int64(e.Share), null != e.UserCorner && Object.hasOwnProperty.call(e, "UserCorner") && t.uint32(112).int64(e.UserCorner), null != e.Landscape && Object.hasOwnProperty.call(e, "Landscape") && t.uint32(120).int64(e.Landscape), null != e.LandscapeChat && Object.hasOwnProperty.call(e, "LandscapeChat") && t.uint32(128).int64(e.LandscapeChat), null != e.PublicScreen && Object.hasOwnProperty.call(e, "PublicScreen") && t.uint32(136).int64(e.PublicScreen), null != e.GiftAnchorMt && Object.hasOwnProperty.call(e, "GiftAnchorMt") && t.uint32(144).int64(e.GiftAnchorMt), null != e.RecordScreen && Object.hasOwnProperty.call(e, "RecordScreen") && t.uint32(152).int64(e.RecordScreen), null != e.DonationSticker && Object.hasOwnProperty.call(e, "DonationSticker") && t.uint32(160).int64(e.DonationSticker), null != e.HourRank && Object.hasOwnProperty.call(e, "HourRank") && t.uint32(168).int64(e.HourRank), null != e.CommerceCard && Object.hasOwnProperty.call(e, "CommerceCard") && t.uint32(176).int64(e.CommerceCard), null != e.AudioChat && Object.hasOwnProperty.call(e, "AudioChat") && t.uint32(184).int64(e.AudioChat), null != e.DanmakuDefault && Object.hasOwnProperty.call(e, "DanmakuDefault") && t.uint32(192).int64(e.DanmakuDefault), null != e.KtvOrderSong && Object.hasOwnProperty.call(e, "KtvOrderSong") && t.uint32(200).int64(e.KtvOrderSong), null != e.SelectionAlbum && Object.hasOwnProperty.call(e, "SelectionAlbum") && t.uint32(208).int64(e.SelectionAlbum), null != e.Like && Object.hasOwnProperty.call(e, "Like") && t.uint32(216).int64(e.Like), null != e.MultiplierPlayback && Object.hasOwnProperty.call(e, "MultiplierPlayback") && t.uint32(224).int64(e.MultiplierPlayback), null != e.DownloadVideo && Object.hasOwnProperty.call(e, "DownloadVideo") && t.uint32(232).int64(e.DownloadVideo), null != e.Collect && Object.hasOwnProperty.call(e, "Collect") && t.uint32(240).int64(e.Collect), null != e.TimedShutdown && Object.hasOwnProperty.call(e, "TimedShutdown") && t.uint32(248).int64(e.TimedShutdown), null != e.Seek && Object.hasOwnProperty.call(e, "Seek") && t.uint32(256).int64(e.Seek), null != e.Denounce && Object.hasOwnProperty.call(e, "Denounce") && t.uint32(264).int64(e.Denounce), null != e.Dislike && Object.hasOwnProperty.call(e, "Dislike") && t.uint32(272).int64(e.Dislike), null != e.OnlyTa && Object.hasOwnProperty.call(e, "OnlyTa") && t.uint32(280).int64(e.OnlyTa), null != e.CastScreen && Object.hasOwnProperty.call(e, "CastScreen") && t.uint32(288).int64(e.CastScreen), null != e.CommentWall && Object.hasOwnProperty.call(e, "CommentWall") && t.uint32(296).int64(e.CommentWall), null != e.BulletStyle && Object.hasOwnProperty.call(e, "BulletStyle") && t.uint32(304).int64(e.BulletStyle), null != e.ShowGamePlugin && Object.hasOwnProperty.call(e, "ShowGamePlugin") && t.uint32(312).int64(e.ShowGamePlugin), null != e.VSGift && Object.hasOwnProperty.call(e, "VSGift") && t.uint32(320).int64(e.VSGift), null != e.VSTopic && Object.hasOwnProperty.call(e, "VSTopic") && t.uint32(328).int64(e.VSTopic), null != e.VSRank && Object.hasOwnProperty.call(e, "VSRank") && t.uint32(336).int64(e.VSRank), null != e.AdminCommentWall && Object.hasOwnProperty.call(e, "AdminCommentWall") && t.uint32(344).int64(e.AdminCommentWall), null != e.CommerceComponent && Object.hasOwnProperty.call(e, "CommerceComponent") && t.uint32(352).int64(e.CommerceComponent), null != e.DouPlus && Object.hasOwnProperty.call(e, "DouPlus") && t.uint32(360).int64(e.DouPlus), null != e.GamePointsPlaying && Object.hasOwnProperty.call(e, "GamePointsPlaying") && t.uint32(368).int64(e.GamePointsPlaying), null != e.Poster && Object.hasOwnProperty.call(e, "Poster") && t.uint32(376).int64(e.Poster), null != e.Highlights && Object.hasOwnProperty.call(e, "Highlights") && t.uint32(384).int64(e.Highlights), null != e.TypingCommentState && Object.hasOwnProperty.call(e, "TypingCommentState") && t.uint32(392).int64(e.TypingCommentState), null != e.StrokeUpDownGuide && Object.hasOwnProperty.call(e, "StrokeUpDownGuide") && t.uint32(400).int64(e.StrokeUpDownGuide), null != e.OffReason && Object.hasOwnProperty.call(e, "OffReason") && l.webcast.data.RoomAuthStatus.RoomAuthOffReasons.encode(e.OffReason, t.uint32(802).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RoomAuthStatus; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.Chat = e.bool(); + break; + case 2: + r.Danmaku = e.bool(); + break; + case 3: + r.Gift = e.bool(); + break; + case 4: + r.LuckMoney = e.bool(); + break; + case 5: + r.Digg = e.bool(); + break; + case 7: + r.RoomContributor = e.bool(); + break; + case 8: + r.Props = e.bool(); + break; + case 9: + r.UserCard = e.bool(); + break; + case 10: + r.POI = e.bool(); + break; + case 11: + r.MoreAnchor = e.int64(); + break; + case 12: + r.Banner = e.int64(); + break; + case 13: + r.Share = e.int64(); + break; + case 14: + r.UserCorner = e.int64(); + break; + case 15: + r.Landscape = e.int64(); + break; + case 16: + r.LandscapeChat = e.int64(); + break; + case 17: + r.PublicScreen = e.int64(); + break; + case 18: + r.GiftAnchorMt = e.int64(); + break; + case 19: + r.RecordScreen = e.int64(); + break; + case 20: + r.DonationSticker = e.int64(); + break; + case 21: + r.HourRank = e.int64(); + break; + case 22: + r.CommerceCard = e.int64(); + break; + case 23: + r.AudioChat = e.int64(); + break; + case 24: + r.DanmakuDefault = e.int64(); + break; + case 25: + r.KtvOrderSong = e.int64(); + break; + case 26: + r.SelectionAlbum = e.int64(); + break; + case 27: + r.Like = e.int64(); + break; + case 28: + r.MultiplierPlayback = e.int64(); + break; + case 29: + r.DownloadVideo = e.int64(); + break; + case 30: + r.Collect = e.int64(); + break; + case 31: + r.TimedShutdown = e.int64(); + break; + case 32: + r.Seek = e.int64(); + break; + case 33: + r.Denounce = e.int64(); + break; + case 34: + r.Dislike = e.int64(); + break; + case 35: + r.OnlyTa = e.int64(); + break; + case 36: + r.CastScreen = e.int64(); + break; + case 37: + r.CommentWall = e.int64(); + break; + case 38: + r.BulletStyle = e.int64(); + break; + case 39: + r.ShowGamePlugin = e.int64(); + break; + case 40: + r.VSGift = e.int64(); + break; + case 41: + r.VSTopic = e.int64(); + break; + case 42: + r.VSRank = e.int64(); + break; + case 43: + r.AdminCommentWall = e.int64(); + break; + case 44: + r.CommerceComponent = e.int64(); + break; + case 45: + r.DouPlus = e.int64(); + break; + case 46: + r.GamePointsPlaying = e.int64(); + break; + case 47: + r.Poster = e.int64(); + break; + case 48: + r.Highlights = e.int64(); + break; + case 49: + r.TypingCommentState = e.int64(); + break; + case 50: + r.StrokeUpDownGuide = e.int64(); + break; + case 100: + r.OffReason = l.webcast.data.RoomAuthStatus.RoomAuthOffReasons.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.Chat && e.hasOwnProperty("Chat") && "boolean" != typeof e.Chat) return "Chat: boolean expected"; + if (null != e.Danmaku && e.hasOwnProperty("Danmaku") && "boolean" != typeof e.Danmaku) return "Danmaku: boolean expected"; + if (null != e.Gift && e.hasOwnProperty("Gift") && "boolean" != typeof e.Gift) return "Gift: boolean expected"; + if (null != e.LuckMoney && e.hasOwnProperty("LuckMoney") && "boolean" != typeof e.LuckMoney) return "LuckMoney: boolean expected"; + if (null != e.Digg && e.hasOwnProperty("Digg") && "boolean" != typeof e.Digg) return "Digg: boolean expected"; + if (null != e.RoomContributor && e.hasOwnProperty("RoomContributor") && "boolean" != typeof e.RoomContributor) return "RoomContributor: boolean expected"; + if (null != e.Props && e.hasOwnProperty("Props") && "boolean" != typeof e.Props) return "Props: boolean expected"; + if (null != e.UserCard && e.hasOwnProperty("UserCard") && "boolean" != typeof e.UserCard) return "UserCard: boolean expected"; + if (null != e.POI && e.hasOwnProperty("POI") && "boolean" != typeof e.POI) return "POI: boolean expected"; + if (null != e.MoreAnchor && e.hasOwnProperty("MoreAnchor") && !(a.isInteger(e.MoreAnchor) || e.MoreAnchor && a.isInteger(e.MoreAnchor.low) && a.isInteger(e.MoreAnchor.high))) return "MoreAnchor: integer|Long expected"; + if (null != e.Banner && e.hasOwnProperty("Banner") && !(a.isInteger(e.Banner) || e.Banner && a.isInteger(e.Banner.low) && a.isInteger(e.Banner.high))) return "Banner: integer|Long expected"; + if (null != e.Share && e.hasOwnProperty("Share") && !(a.isInteger(e.Share) || e.Share && a.isInteger(e.Share.low) && a.isInteger(e.Share.high))) return "Share: integer|Long expected"; + if (null != e.UserCorner && e.hasOwnProperty("UserCorner") && !(a.isInteger(e.UserCorner) || e.UserCorner && a.isInteger(e.UserCorner.low) && a.isInteger(e.UserCorner.high))) return "UserCorner: integer|Long expected"; + if (null != e.Landscape && e.hasOwnProperty("Landscape") && !(a.isInteger(e.Landscape) || e.Landscape && a.isInteger(e.Landscape.low) && a.isInteger(e.Landscape.high))) return "Landscape: integer|Long expected"; + if (null != e.LandscapeChat && e.hasOwnProperty("LandscapeChat") && !(a.isInteger(e.LandscapeChat) || e.LandscapeChat && a.isInteger(e.LandscapeChat.low) && a.isInteger(e.LandscapeChat.high))) return "LandscapeChat: integer|Long expected"; + if (null != e.PublicScreen && e.hasOwnProperty("PublicScreen") && !(a.isInteger(e.PublicScreen) || e.PublicScreen && a.isInteger(e.PublicScreen.low) && a.isInteger(e.PublicScreen.high))) return "PublicScreen: integer|Long expected"; + if (null != e.GiftAnchorMt && e.hasOwnProperty("GiftAnchorMt") && !(a.isInteger(e.GiftAnchorMt) || e.GiftAnchorMt && a.isInteger(e.GiftAnchorMt.low) && a.isInteger(e.GiftAnchorMt.high))) return "GiftAnchorMt: integer|Long expected"; + if (null != e.RecordScreen && e.hasOwnProperty("RecordScreen") && !(a.isInteger(e.RecordScreen) || e.RecordScreen && a.isInteger(e.RecordScreen.low) && a.isInteger(e.RecordScreen.high))) return "RecordScreen: integer|Long expected"; + if (null != e.DonationSticker && e.hasOwnProperty("DonationSticker") && !(a.isInteger(e.DonationSticker) || e.DonationSticker && a.isInteger(e.DonationSticker.low) && a.isInteger(e.DonationSticker.high))) return "DonationSticker: integer|Long expected"; + if (null != e.HourRank && e.hasOwnProperty("HourRank") && !(a.isInteger(e.HourRank) || e.HourRank && a.isInteger(e.HourRank.low) && a.isInteger(e.HourRank.high))) return "HourRank: integer|Long expected"; + if (null != e.CommerceCard && e.hasOwnProperty("CommerceCard") && !(a.isInteger(e.CommerceCard) || e.CommerceCard && a.isInteger(e.CommerceCard.low) && a.isInteger(e.CommerceCard.high))) return "CommerceCard: integer|Long expected"; + if (null != e.AudioChat && e.hasOwnProperty("AudioChat") && !(a.isInteger(e.AudioChat) || e.AudioChat && a.isInteger(e.AudioChat.low) && a.isInteger(e.AudioChat.high))) return "AudioChat: integer|Long expected"; + if (null != e.DanmakuDefault && e.hasOwnProperty("DanmakuDefault") && !(a.isInteger(e.DanmakuDefault) || e.DanmakuDefault && a.isInteger(e.DanmakuDefault.low) && a.isInteger(e.DanmakuDefault.high))) return "DanmakuDefault: integer|Long expected"; + if (null != e.KtvOrderSong && e.hasOwnProperty("KtvOrderSong") && !(a.isInteger(e.KtvOrderSong) || e.KtvOrderSong && a.isInteger(e.KtvOrderSong.low) && a.isInteger(e.KtvOrderSong.high))) return "KtvOrderSong: integer|Long expected"; + if (null != e.SelectionAlbum && e.hasOwnProperty("SelectionAlbum") && !(a.isInteger(e.SelectionAlbum) || e.SelectionAlbum && a.isInteger(e.SelectionAlbum.low) && a.isInteger(e.SelectionAlbum.high))) return "SelectionAlbum: integer|Long expected"; + if (null != e.Like && e.hasOwnProperty("Like") && !(a.isInteger(e.Like) || e.Like && a.isInteger(e.Like.low) && a.isInteger(e.Like.high))) return "Like: integer|Long expected"; + if (null != e.MultiplierPlayback && e.hasOwnProperty("MultiplierPlayback") && !(a.isInteger(e.MultiplierPlayback) || e.MultiplierPlayback && a.isInteger(e.MultiplierPlayback.low) && a.isInteger(e.MultiplierPlayback.high))) return "MultiplierPlayback: integer|Long expected"; + if (null != e.DownloadVideo && e.hasOwnProperty("DownloadVideo") && !(a.isInteger(e.DownloadVideo) || e.DownloadVideo && a.isInteger(e.DownloadVideo.low) && a.isInteger(e.DownloadVideo.high))) return "DownloadVideo: integer|Long expected"; + if (null != e.Collect && e.hasOwnProperty("Collect") && !(a.isInteger(e.Collect) || e.Collect && a.isInteger(e.Collect.low) && a.isInteger(e.Collect.high))) return "Collect: integer|Long expected"; + if (null != e.TimedShutdown && e.hasOwnProperty("TimedShutdown") && !(a.isInteger(e.TimedShutdown) || e.TimedShutdown && a.isInteger(e.TimedShutdown.low) && a.isInteger(e.TimedShutdown.high))) return "TimedShutdown: integer|Long expected"; + if (null != e.Seek && e.hasOwnProperty("Seek") && !(a.isInteger(e.Seek) || e.Seek && a.isInteger(e.Seek.low) && a.isInteger(e.Seek.high))) return "Seek: integer|Long expected"; + if (null != e.Denounce && e.hasOwnProperty("Denounce") && !(a.isInteger(e.Denounce) || e.Denounce && a.isInteger(e.Denounce.low) && a.isInteger(e.Denounce.high))) return "Denounce: integer|Long expected"; + if (null != e.Dislike && e.hasOwnProperty("Dislike") && !(a.isInteger(e.Dislike) || e.Dislike && a.isInteger(e.Dislike.low) && a.isInteger(e.Dislike.high))) return "Dislike: integer|Long expected"; + if (null != e.OnlyTa && e.hasOwnProperty("OnlyTa") && !(a.isInteger(e.OnlyTa) || e.OnlyTa && a.isInteger(e.OnlyTa.low) && a.isInteger(e.OnlyTa.high))) return "OnlyTa: integer|Long expected"; + if (null != e.CastScreen && e.hasOwnProperty("CastScreen") && !(a.isInteger(e.CastScreen) || e.CastScreen && a.isInteger(e.CastScreen.low) && a.isInteger(e.CastScreen.high))) return "CastScreen: integer|Long expected"; + if (null != e.CommentWall && e.hasOwnProperty("CommentWall") && !(a.isInteger(e.CommentWall) || e.CommentWall && a.isInteger(e.CommentWall.low) && a.isInteger(e.CommentWall.high))) return "CommentWall: integer|Long expected"; + if (null != e.BulletStyle && e.hasOwnProperty("BulletStyle") && !(a.isInteger(e.BulletStyle) || e.BulletStyle && a.isInteger(e.BulletStyle.low) && a.isInteger(e.BulletStyle.high))) return "BulletStyle: integer|Long expected"; + if (null != e.ShowGamePlugin && e.hasOwnProperty("ShowGamePlugin") && !(a.isInteger(e.ShowGamePlugin) || e.ShowGamePlugin && a.isInteger(e.ShowGamePlugin.low) && a.isInteger(e.ShowGamePlugin.high))) return "ShowGamePlugin: integer|Long expected"; + if (null != e.VSGift && e.hasOwnProperty("VSGift") && !(a.isInteger(e.VSGift) || e.VSGift && a.isInteger(e.VSGift.low) && a.isInteger(e.VSGift.high))) return "VSGift: integer|Long expected"; + if (null != e.VSTopic && e.hasOwnProperty("VSTopic") && !(a.isInteger(e.VSTopic) || e.VSTopic && a.isInteger(e.VSTopic.low) && a.isInteger(e.VSTopic.high))) return "VSTopic: integer|Long expected"; + if (null != e.VSRank && e.hasOwnProperty("VSRank") && !(a.isInteger(e.VSRank) || e.VSRank && a.isInteger(e.VSRank.low) && a.isInteger(e.VSRank.high))) return "VSRank: integer|Long expected"; + if (null != e.AdminCommentWall && e.hasOwnProperty("AdminCommentWall") && !(a.isInteger(e.AdminCommentWall) || e.AdminCommentWall && a.isInteger(e.AdminCommentWall.low) && a.isInteger(e.AdminCommentWall.high))) return "AdminCommentWall: integer|Long expected"; + if (null != e.CommerceComponent && e.hasOwnProperty("CommerceComponent") && !(a.isInteger(e.CommerceComponent) || e.CommerceComponent && a.isInteger(e.CommerceComponent.low) && a.isInteger(e.CommerceComponent.high))) return "CommerceComponent: integer|Long expected"; + if (null != e.DouPlus && e.hasOwnProperty("DouPlus") && !(a.isInteger(e.DouPlus) || e.DouPlus && a.isInteger(e.DouPlus.low) && a.isInteger(e.DouPlus.high))) return "DouPlus: integer|Long expected"; + if (null != e.GamePointsPlaying && e.hasOwnProperty("GamePointsPlaying") && !(a.isInteger(e.GamePointsPlaying) || e.GamePointsPlaying && a.isInteger(e.GamePointsPlaying.low) && a.isInteger(e.GamePointsPlaying.high))) return "GamePointsPlaying: integer|Long expected"; + if (null != e.Poster && e.hasOwnProperty("Poster") && !(a.isInteger(e.Poster) || e.Poster && a.isInteger(e.Poster.low) && a.isInteger(e.Poster.high))) return "Poster: integer|Long expected"; + if (null != e.Highlights && e.hasOwnProperty("Highlights") && !(a.isInteger(e.Highlights) || e.Highlights && a.isInteger(e.Highlights.low) && a.isInteger(e.Highlights.high))) return "Highlights: integer|Long expected"; + if (null != e.TypingCommentState && e.hasOwnProperty("TypingCommentState") && !(a.isInteger(e.TypingCommentState) || e.TypingCommentState && a.isInteger(e.TypingCommentState.low) && a.isInteger(e.TypingCommentState.high))) return "TypingCommentState: integer|Long expected"; + if (null != e.StrokeUpDownGuide && e.hasOwnProperty("StrokeUpDownGuide") && !(a.isInteger(e.StrokeUpDownGuide) || e.StrokeUpDownGuide && a.isInteger(e.StrokeUpDownGuide.low) && a.isInteger(e.StrokeUpDownGuide.high))) return "StrokeUpDownGuide: integer|Long expected"; + if (null != e.OffReason && e.hasOwnProperty("OffReason")) + { + var t = l.webcast.data.RoomAuthStatus.RoomAuthOffReasons.verify(e.OffReason); + if (t) return "OffReason." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RoomAuthStatus) return e; + var t = new l.webcast.data.RoomAuthStatus; + if (null != e.Chat && (t.Chat = Boolean(e.Chat)), null != e.Danmaku && (t.Danmaku = Boolean(e.Danmaku)), null != e.Gift && (t.Gift = Boolean(e.Gift)), null != e.LuckMoney && (t.LuckMoney = Boolean(e.LuckMoney)), null != e.Digg && (t.Digg = Boolean(e.Digg)), null != e.RoomContributor && (t.RoomContributor = Boolean(e.RoomContributor)), null != e.Props && (t.Props = Boolean(e.Props)), null != e.UserCard && (t.UserCard = Boolean(e.UserCard)), null != e.POI && (t.POI = Boolean(e.POI)), null != e.MoreAnchor && (a.Long ? (t.MoreAnchor = a.Long.fromValue(e.MoreAnchor)).unsigned = !1 : "string" == typeof e.MoreAnchor ? t.MoreAnchor = parseInt(e.MoreAnchor, 10) : "number" == typeof e.MoreAnchor ? t.MoreAnchor = e.MoreAnchor : "object" == typeof e.MoreAnchor && (t.MoreAnchor = new a.LongBits(e.MoreAnchor.low >>> 0, e.MoreAnchor.high >>> 0).toNumber())), null != e.Banner && (a.Long ? (t.Banner = a.Long.fromValue(e.Banner)).unsigned = !1 : "string" == typeof e.Banner ? t.Banner = parseInt(e.Banner, 10) : "number" == typeof e.Banner ? t.Banner = e.Banner : "object" == typeof e.Banner && (t.Banner = new a.LongBits(e.Banner.low >>> 0, e.Banner.high >>> 0).toNumber())), null != e.Share && (a.Long ? (t.Share = a.Long.fromValue(e.Share)).unsigned = !1 : "string" == typeof e.Share ? t.Share = parseInt(e.Share, 10) : "number" == typeof e.Share ? t.Share = e.Share : "object" == typeof e.Share && (t.Share = new a.LongBits(e.Share.low >>> 0, e.Share.high >>> 0).toNumber())), null != e.UserCorner && (a.Long ? (t.UserCorner = a.Long.fromValue(e.UserCorner)).unsigned = !1 : "string" == typeof e.UserCorner ? t.UserCorner = parseInt(e.UserCorner, 10) : "number" == typeof e.UserCorner ? t.UserCorner = e.UserCorner : "object" == typeof e.UserCorner && (t.UserCorner = new a.LongBits(e.UserCorner.low >>> 0, e.UserCorner.high >>> 0).toNumber())), null != e.Landscape && (a.Long ? (t.Landscape = a.Long.fromValue(e.Landscape)).unsigned = !1 : "string" == typeof e.Landscape ? t.Landscape = parseInt(e.Landscape, 10) : "number" == typeof e.Landscape ? t.Landscape = e.Landscape : "object" == typeof e.Landscape && (t.Landscape = new a.LongBits(e.Landscape.low >>> 0, e.Landscape.high >>> 0).toNumber())), null != e.LandscapeChat && (a.Long ? (t.LandscapeChat = a.Long.fromValue(e.LandscapeChat)).unsigned = !1 : "string" == typeof e.LandscapeChat ? t.LandscapeChat = parseInt(e.LandscapeChat, 10) : "number" == typeof e.LandscapeChat ? t.LandscapeChat = e.LandscapeChat : "object" == typeof e.LandscapeChat && (t.LandscapeChat = new a.LongBits(e.LandscapeChat.low >>> 0, e.LandscapeChat.high >>> 0).toNumber())), null != e.PublicScreen && (a.Long ? (t.PublicScreen = a.Long.fromValue(e.PublicScreen)).unsigned = !1 : "string" == typeof e.PublicScreen ? t.PublicScreen = parseInt(e.PublicScreen, 10) : "number" == typeof e.PublicScreen ? t.PublicScreen = e.PublicScreen : "object" == typeof e.PublicScreen && (t.PublicScreen = new a.LongBits(e.PublicScreen.low >>> 0, e.PublicScreen.high >>> 0).toNumber())), null != e.GiftAnchorMt && (a.Long ? (t.GiftAnchorMt = a.Long.fromValue(e.GiftAnchorMt)).unsigned = !1 : "string" == typeof e.GiftAnchorMt ? t.GiftAnchorMt = parseInt(e.GiftAnchorMt, 10) : "number" == typeof e.GiftAnchorMt ? t.GiftAnchorMt = e.GiftAnchorMt : "object" == typeof e.GiftAnchorMt && (t.GiftAnchorMt = new a.LongBits(e.GiftAnchorMt.low >>> 0, e.GiftAnchorMt.high >>> 0).toNumber())), null != e.RecordScreen && (a.Long ? (t.RecordScreen = a.Long.fromValue(e.RecordScreen)).unsigned = !1 : "string" == typeof e.RecordScreen ? t.RecordScreen = parseInt(e.RecordScreen, 10) : "number" == typeof e.RecordScreen ? t.RecordScreen = e.RecordScreen : "object" == typeof e.RecordScreen && (t.RecordScreen = new a.LongBits(e.RecordScreen.low >>> 0, e.RecordScreen.high >>> 0).toNumber())), null != e.DonationSticker && (a.Long ? (t.DonationSticker = a.Long.fromValue(e.DonationSticker)).unsigned = !1 : "string" == typeof e.DonationSticker ? t.DonationSticker = parseInt(e.DonationSticker, 10) : "number" == typeof e.DonationSticker ? t.DonationSticker = e.DonationSticker : "object" == typeof e.DonationSticker && (t.DonationSticker = new a.LongBits(e.DonationSticker.low >>> 0, e.DonationSticker.high >>> 0).toNumber())), null != e.HourRank && (a.Long ? (t.HourRank = a.Long.fromValue(e.HourRank)).unsigned = !1 : "string" == typeof e.HourRank ? t.HourRank = parseInt(e.HourRank, 10) : "number" == typeof e.HourRank ? t.HourRank = e.HourRank : "object" == typeof e.HourRank && (t.HourRank = new a.LongBits(e.HourRank.low >>> 0, e.HourRank.high >>> 0).toNumber())), null != e.CommerceCard && (a.Long ? (t.CommerceCard = a.Long.fromValue(e.CommerceCard)).unsigned = !1 : "string" == typeof e.CommerceCard ? t.CommerceCard = parseInt(e.CommerceCard, 10) : "number" == typeof e.CommerceCard ? t.CommerceCard = e.CommerceCard : "object" == typeof e.CommerceCard && (t.CommerceCard = new a.LongBits(e.CommerceCard.low >>> 0, e.CommerceCard.high >>> 0).toNumber())), null != e.AudioChat && (a.Long ? (t.AudioChat = a.Long.fromValue(e.AudioChat)).unsigned = !1 : "string" == typeof e.AudioChat ? t.AudioChat = parseInt(e.AudioChat, 10) : "number" == typeof e.AudioChat ? t.AudioChat = e.AudioChat : "object" == typeof e.AudioChat && (t.AudioChat = new a.LongBits(e.AudioChat.low >>> 0, e.AudioChat.high >>> 0).toNumber())), null != e.DanmakuDefault && (a.Long ? (t.DanmakuDefault = a.Long.fromValue(e.DanmakuDefault)).unsigned = !1 : "string" == typeof e.DanmakuDefault ? t.DanmakuDefault = parseInt(e.DanmakuDefault, 10) : "number" == typeof e.DanmakuDefault ? t.DanmakuDefault = e.DanmakuDefault : "object" == typeof e.DanmakuDefault && (t.DanmakuDefault = new a.LongBits(e.DanmakuDefault.low >>> 0, e.DanmakuDefault.high >>> 0).toNumber())), null != e.KtvOrderSong && (a.Long ? (t.KtvOrderSong = a.Long.fromValue(e.KtvOrderSong)).unsigned = !1 : "string" == typeof e.KtvOrderSong ? t.KtvOrderSong = parseInt(e.KtvOrderSong, 10) : "number" == typeof e.KtvOrderSong ? t.KtvOrderSong = e.KtvOrderSong : "object" == typeof e.KtvOrderSong && (t.KtvOrderSong = new a.LongBits(e.KtvOrderSong.low >>> 0, e.KtvOrderSong.high >>> 0).toNumber())), null != e.SelectionAlbum && (a.Long ? (t.SelectionAlbum = a.Long.fromValue(e.SelectionAlbum)).unsigned = !1 : "string" == typeof e.SelectionAlbum ? t.SelectionAlbum = parseInt(e.SelectionAlbum, 10) : "number" == typeof e.SelectionAlbum ? t.SelectionAlbum = e.SelectionAlbum : "object" == typeof e.SelectionAlbum && (t.SelectionAlbum = new a.LongBits(e.SelectionAlbum.low >>> 0, e.SelectionAlbum.high >>> 0).toNumber())), null != e.Like && (a.Long ? (t.Like = a.Long.fromValue(e.Like)).unsigned = !1 : "string" == typeof e.Like ? t.Like = parseInt(e.Like, 10) : "number" == typeof e.Like ? t.Like = e.Like : "object" == typeof e.Like && (t.Like = new a.LongBits(e.Like.low >>> 0, e.Like.high >>> 0).toNumber())), null != e.MultiplierPlayback && (a.Long ? (t.MultiplierPlayback = a.Long.fromValue(e.MultiplierPlayback)).unsigned = !1 : "string" == typeof e.MultiplierPlayback ? t.MultiplierPlayback = parseInt(e.MultiplierPlayback, 10) : "number" == typeof e.MultiplierPlayback ? t.MultiplierPlayback = e.MultiplierPlayback : "object" == typeof e.MultiplierPlayback && (t.MultiplierPlayback = new a.LongBits(e.MultiplierPlayback.low >>> 0, e.MultiplierPlayback.high >>> 0).toNumber())), null != e.DownloadVideo && (a.Long ? (t.DownloadVideo = a.Long.fromValue(e.DownloadVideo)).unsigned = !1 : "string" == typeof e.DownloadVideo ? t.DownloadVideo = parseInt(e.DownloadVideo, 10) : "number" == typeof e.DownloadVideo ? t.DownloadVideo = e.DownloadVideo : "object" == typeof e.DownloadVideo && (t.DownloadVideo = new a.LongBits(e.DownloadVideo.low >>> 0, e.DownloadVideo.high >>> 0).toNumber())), null != e.Collect && (a.Long ? (t.Collect = a.Long.fromValue(e.Collect)).unsigned = !1 : "string" == typeof e.Collect ? t.Collect = parseInt(e.Collect, 10) : "number" == typeof e.Collect ? t.Collect = e.Collect : "object" == typeof e.Collect && (t.Collect = new a.LongBits(e.Collect.low >>> 0, e.Collect.high >>> 0).toNumber())), null != e.TimedShutdown && (a.Long ? (t.TimedShutdown = a.Long.fromValue(e.TimedShutdown)).unsigned = !1 : "string" == typeof e.TimedShutdown ? t.TimedShutdown = parseInt(e.TimedShutdown, 10) : "number" == typeof e.TimedShutdown ? t.TimedShutdown = e.TimedShutdown : "object" == typeof e.TimedShutdown && (t.TimedShutdown = new a.LongBits(e.TimedShutdown.low >>> 0, e.TimedShutdown.high >>> 0).toNumber())), null != e.Seek && (a.Long ? (t.Seek = a.Long.fromValue(e.Seek)).unsigned = !1 : "string" == typeof e.Seek ? t.Seek = parseInt(e.Seek, 10) : "number" == typeof e.Seek ? t.Seek = e.Seek : "object" == typeof e.Seek && (t.Seek = new a.LongBits(e.Seek.low >>> 0, e.Seek.high >>> 0).toNumber())), null != e.Denounce && (a.Long ? (t.Denounce = a.Long.fromValue(e.Denounce)).unsigned = !1 : "string" == typeof e.Denounce ? t.Denounce = parseInt(e.Denounce, 10) : "number" == typeof e.Denounce ? t.Denounce = e.Denounce : "object" == typeof e.Denounce && (t.Denounce = new a.LongBits(e.Denounce.low >>> 0, e.Denounce.high >>> 0).toNumber())), null != e.Dislike && (a.Long ? (t.Dislike = a.Long.fromValue(e.Dislike)).unsigned = !1 : "string" == typeof e.Dislike ? t.Dislike = parseInt(e.Dislike, 10) : "number" == typeof e.Dislike ? t.Dislike = e.Dislike : "object" == typeof e.Dislike && (t.Dislike = new a.LongBits(e.Dislike.low >>> 0, e.Dislike.high >>> 0).toNumber())), null != e.OnlyTa && (a.Long ? (t.OnlyTa = a.Long.fromValue(e.OnlyTa)).unsigned = !1 : "string" == typeof e.OnlyTa ? t.OnlyTa = parseInt(e.OnlyTa, 10) : "number" == typeof e.OnlyTa ? t.OnlyTa = e.OnlyTa : "object" == typeof e.OnlyTa && (t.OnlyTa = new a.LongBits(e.OnlyTa.low >>> 0, e.OnlyTa.high >>> 0).toNumber())), null != e.CastScreen && (a.Long ? (t.CastScreen = a.Long.fromValue(e.CastScreen)).unsigned = !1 : "string" == typeof e.CastScreen ? t.CastScreen = parseInt(e.CastScreen, 10) : "number" == typeof e.CastScreen ? t.CastScreen = e.CastScreen : "object" == typeof e.CastScreen && (t.CastScreen = new a.LongBits(e.CastScreen.low >>> 0, e.CastScreen.high >>> 0).toNumber())), null != e.CommentWall && (a.Long ? (t.CommentWall = a.Long.fromValue(e.CommentWall)).unsigned = !1 : "string" == typeof e.CommentWall ? t.CommentWall = parseInt(e.CommentWall, 10) : "number" == typeof e.CommentWall ? t.CommentWall = e.CommentWall : "object" == typeof e.CommentWall && (t.CommentWall = new a.LongBits(e.CommentWall.low >>> 0, e.CommentWall.high >>> 0).toNumber())), null != e.BulletStyle && (a.Long ? (t.BulletStyle = a.Long.fromValue(e.BulletStyle)).unsigned = !1 : "string" == typeof e.BulletStyle ? t.BulletStyle = parseInt(e.BulletStyle, 10) : "number" == typeof e.BulletStyle ? t.BulletStyle = e.BulletStyle : "object" == typeof e.BulletStyle && (t.BulletStyle = new a.LongBits(e.BulletStyle.low >>> 0, e.BulletStyle.high >>> 0).toNumber())), null != e.ShowGamePlugin && (a.Long ? (t.ShowGamePlugin = a.Long.fromValue(e.ShowGamePlugin)).unsigned = !1 : "string" == typeof e.ShowGamePlugin ? t.ShowGamePlugin = parseInt(e.ShowGamePlugin, 10) : "number" == typeof e.ShowGamePlugin ? t.ShowGamePlugin = e.ShowGamePlugin : "object" == typeof e.ShowGamePlugin && (t.ShowGamePlugin = new a.LongBits(e.ShowGamePlugin.low >>> 0, e.ShowGamePlugin.high >>> 0).toNumber())), null != e.VSGift && (a.Long ? (t.VSGift = a.Long.fromValue(e.VSGift)).unsigned = !1 : "string" == typeof e.VSGift ? t.VSGift = parseInt(e.VSGift, 10) : "number" == typeof e.VSGift ? t.VSGift = e.VSGift : "object" == typeof e.VSGift && (t.VSGift = new a.LongBits(e.VSGift.low >>> 0, e.VSGift.high >>> 0).toNumber())), null != e.VSTopic && (a.Long ? (t.VSTopic = a.Long.fromValue(e.VSTopic)).unsigned = !1 : "string" == typeof e.VSTopic ? t.VSTopic = parseInt(e.VSTopic, 10) : "number" == typeof e.VSTopic ? t.VSTopic = e.VSTopic : "object" == typeof e.VSTopic && (t.VSTopic = new a.LongBits(e.VSTopic.low >>> 0, e.VSTopic.high >>> 0).toNumber())), null != e.VSRank && (a.Long ? (t.VSRank = a.Long.fromValue(e.VSRank)).unsigned = !1 : "string" == typeof e.VSRank ? t.VSRank = parseInt(e.VSRank, 10) : "number" == typeof e.VSRank ? t.VSRank = e.VSRank : "object" == typeof e.VSRank && (t.VSRank = new a.LongBits(e.VSRank.low >>> 0, e.VSRank.high >>> 0).toNumber())), null != e.AdminCommentWall && (a.Long ? (t.AdminCommentWall = a.Long.fromValue(e.AdminCommentWall)).unsigned = !1 : "string" == typeof e.AdminCommentWall ? t.AdminCommentWall = parseInt(e.AdminCommentWall, 10) : "number" == typeof e.AdminCommentWall ? t.AdminCommentWall = e.AdminCommentWall : "object" == typeof e.AdminCommentWall && (t.AdminCommentWall = new a.LongBits(e.AdminCommentWall.low >>> 0, e.AdminCommentWall.high >>> 0).toNumber())), null != e.CommerceComponent && (a.Long ? (t.CommerceComponent = a.Long.fromValue(e.CommerceComponent)).unsigned = !1 : "string" == typeof e.CommerceComponent ? t.CommerceComponent = parseInt(e.CommerceComponent, 10) : "number" == typeof e.CommerceComponent ? t.CommerceComponent = e.CommerceComponent : "object" == typeof e.CommerceComponent && (t.CommerceComponent = new a.LongBits(e.CommerceComponent.low >>> 0, e.CommerceComponent.high >>> 0).toNumber())), null != e.DouPlus && (a.Long ? (t.DouPlus = a.Long.fromValue(e.DouPlus)).unsigned = !1 : "string" == typeof e.DouPlus ? t.DouPlus = parseInt(e.DouPlus, 10) : "number" == typeof e.DouPlus ? t.DouPlus = e.DouPlus : "object" == typeof e.DouPlus && (t.DouPlus = new a.LongBits(e.DouPlus.low >>> 0, e.DouPlus.high >>> 0).toNumber())), null != e.GamePointsPlaying && (a.Long ? (t.GamePointsPlaying = a.Long.fromValue(e.GamePointsPlaying)).unsigned = !1 : "string" == typeof e.GamePointsPlaying ? t.GamePointsPlaying = parseInt(e.GamePointsPlaying, 10) : "number" == typeof e.GamePointsPlaying ? t.GamePointsPlaying = e.GamePointsPlaying : "object" == typeof e.GamePointsPlaying && (t.GamePointsPlaying = new a.LongBits(e.GamePointsPlaying.low >>> 0, e.GamePointsPlaying.high >>> 0).toNumber())), null != e.Poster && (a.Long ? (t.Poster = a.Long.fromValue(e.Poster)).unsigned = !1 : "string" == typeof e.Poster ? t.Poster = parseInt(e.Poster, 10) : "number" == typeof e.Poster ? t.Poster = e.Poster : "object" == typeof e.Poster && (t.Poster = new a.LongBits(e.Poster.low >>> 0, e.Poster.high >>> 0).toNumber())), null != e.Highlights && (a.Long ? (t.Highlights = a.Long.fromValue(e.Highlights)).unsigned = !1 : "string" == typeof e.Highlights ? t.Highlights = parseInt(e.Highlights, 10) : "number" == typeof e.Highlights ? t.Highlights = e.Highlights : "object" == typeof e.Highlights && (t.Highlights = new a.LongBits(e.Highlights.low >>> 0, e.Highlights.high >>> 0).toNumber())), null != e.TypingCommentState && (a.Long ? (t.TypingCommentState = a.Long.fromValue(e.TypingCommentState)).unsigned = !1 : "string" == typeof e.TypingCommentState ? t.TypingCommentState = parseInt(e.TypingCommentState, 10) : "number" == typeof e.TypingCommentState ? t.TypingCommentState = e.TypingCommentState : "object" == typeof e.TypingCommentState && (t.TypingCommentState = new a.LongBits(e.TypingCommentState.low >>> 0, e.TypingCommentState.high >>> 0).toNumber())), null != e.StrokeUpDownGuide && (a.Long ? (t.StrokeUpDownGuide = a.Long.fromValue(e.StrokeUpDownGuide)).unsigned = !1 : "string" == typeof e.StrokeUpDownGuide ? t.StrokeUpDownGuide = parseInt(e.StrokeUpDownGuide, 10) : "number" == typeof e.StrokeUpDownGuide ? t.StrokeUpDownGuide = e.StrokeUpDownGuide : "object" == typeof e.StrokeUpDownGuide && (t.StrokeUpDownGuide = new a.LongBits(e.StrokeUpDownGuide.low >>> 0, e.StrokeUpDownGuide.high >>> 0).toNumber())), null != e.OffReason) + { + if ("object" != typeof e.OffReason) throw TypeError(".webcast.data.RoomAuthStatus.OffReason: object expected"); + t.OffReason = l.webcast.data.RoomAuthStatus.RoomAuthOffReasons.fromObject(e.OffReason) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.Chat = !1, n.Danmaku = !1, n.Gift = !1, n.LuckMoney = !1, n.Digg = !1, n.RoomContributor = !1, n.Props = !1, n.UserCard = !1, n.POI = !1, a.Long) + { + var r = new a.Long(0, 0, !1); + n.MoreAnchor = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.MoreAnchor = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.Banner = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.Banner = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.Share = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.Share = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.UserCorner = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.UserCorner = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.Landscape = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.Landscape = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.LandscapeChat = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.LandscapeChat = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.PublicScreen = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.PublicScreen = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.GiftAnchorMt = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.GiftAnchorMt = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.RecordScreen = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.RecordScreen = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.DonationSticker = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.DonationSticker = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.HourRank = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.HourRank = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.CommerceCard = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.CommerceCard = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.AudioChat = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.AudioChat = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.DanmakuDefault = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.DanmakuDefault = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.KtvOrderSong = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.KtvOrderSong = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.SelectionAlbum = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.SelectionAlbum = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.Like = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.Like = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.MultiplierPlayback = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.MultiplierPlayback = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.DownloadVideo = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.DownloadVideo = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.Collect = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.Collect = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.TimedShutdown = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.TimedShutdown = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.Seek = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.Seek = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.Denounce = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.Denounce = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.Dislike = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.Dislike = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.OnlyTa = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.OnlyTa = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.CastScreen = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.CastScreen = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.CommentWall = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.CommentWall = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.BulletStyle = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.BulletStyle = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.ShowGamePlugin = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.ShowGamePlugin = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.VSGift = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.VSGift = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.VSTopic = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.VSTopic = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.VSRank = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.VSRank = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.AdminCommentWall = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.AdminCommentWall = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.CommerceComponent = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.CommerceComponent = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.DouPlus = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.DouPlus = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.GamePointsPlaying = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.GamePointsPlaying = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.Poster = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.Poster = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.Highlights = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.Highlights = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.TypingCommentState = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.TypingCommentState = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.StrokeUpDownGuide = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.StrokeUpDownGuide = t.longs === String ? "0" : 0; + n.OffReason = null + } + return null != e.Chat && e.hasOwnProperty("Chat") && (n.Chat = e.Chat), null != e.Danmaku && e.hasOwnProperty("Danmaku") && (n.Danmaku = e.Danmaku), null != e.Gift && e.hasOwnProperty("Gift") && (n.Gift = e.Gift), null != e.LuckMoney && e.hasOwnProperty("LuckMoney") && (n.LuckMoney = e.LuckMoney), null != e.Digg && e.hasOwnProperty("Digg") && (n.Digg = e.Digg), null != e.RoomContributor && e.hasOwnProperty("RoomContributor") && (n.RoomContributor = e.RoomContributor), null != e.Props && e.hasOwnProperty("Props") && (n.Props = e.Props), null != e.UserCard && e.hasOwnProperty("UserCard") && (n.UserCard = e.UserCard), null != e.POI && e.hasOwnProperty("POI") && (n.POI = e.POI), null != e.MoreAnchor && e.hasOwnProperty("MoreAnchor") && ("number" == typeof e.MoreAnchor ? n.MoreAnchor = t.longs === String ? String(e.MoreAnchor) : e.MoreAnchor : n.MoreAnchor = t.longs === String ? a.Long.prototype.toString.call(e.MoreAnchor) : t.longs === Number ? new a.LongBits(e.MoreAnchor.low >>> 0, e.MoreAnchor.high >>> 0).toNumber() : e.MoreAnchor), null != e.Banner && e.hasOwnProperty("Banner") && ("number" == typeof e.Banner ? n.Banner = t.longs === String ? String(e.Banner) : e.Banner : n.Banner = t.longs === String ? a.Long.prototype.toString.call(e.Banner) : t.longs === Number ? new a.LongBits(e.Banner.low >>> 0, e.Banner.high >>> 0).toNumber() : e.Banner), null != e.Share && e.hasOwnProperty("Share") && ("number" == typeof e.Share ? n.Share = t.longs === String ? String(e.Share) : e.Share : n.Share = t.longs === String ? a.Long.prototype.toString.call(e.Share) : t.longs === Number ? new a.LongBits(e.Share.low >>> 0, e.Share.high >>> 0).toNumber() : e.Share), null != e.UserCorner && e.hasOwnProperty("UserCorner") && ("number" == typeof e.UserCorner ? n.UserCorner = t.longs === String ? String(e.UserCorner) : e.UserCorner : n.UserCorner = t.longs === String ? a.Long.prototype.toString.call(e.UserCorner) : t.longs === Number ? new a.LongBits(e.UserCorner.low >>> 0, e.UserCorner.high >>> 0).toNumber() : e.UserCorner), null != e.Landscape && e.hasOwnProperty("Landscape") && ("number" == typeof e.Landscape ? n.Landscape = t.longs === String ? String(e.Landscape) : e.Landscape : n.Landscape = t.longs === String ? a.Long.prototype.toString.call(e.Landscape) : t.longs === Number ? new a.LongBits(e.Landscape.low >>> 0, e.Landscape.high >>> 0).toNumber() : e.Landscape), null != e.LandscapeChat && e.hasOwnProperty("LandscapeChat") && ("number" == typeof e.LandscapeChat ? n.LandscapeChat = t.longs === String ? String(e.LandscapeChat) : e.LandscapeChat : n.LandscapeChat = t.longs === String ? a.Long.prototype.toString.call(e.LandscapeChat) : t.longs === Number ? new a.LongBits(e.LandscapeChat.low >>> 0, e.LandscapeChat.high >>> 0).toNumber() : e.LandscapeChat), null != e.PublicScreen && e.hasOwnProperty("PublicScreen") && ("number" == typeof e.PublicScreen ? n.PublicScreen = t.longs === String ? String(e.PublicScreen) : e.PublicScreen : n.PublicScreen = t.longs === String ? a.Long.prototype.toString.call(e.PublicScreen) : t.longs === Number ? new a.LongBits(e.PublicScreen.low >>> 0, e.PublicScreen.high >>> 0).toNumber() : e.PublicScreen), null != e.GiftAnchorMt && e.hasOwnProperty("GiftAnchorMt") && ("number" == typeof e.GiftAnchorMt ? n.GiftAnchorMt = t.longs === String ? String(e.GiftAnchorMt) : e.GiftAnchorMt : n.GiftAnchorMt = t.longs === String ? a.Long.prototype.toString.call(e.GiftAnchorMt) : t.longs === Number ? new a.LongBits(e.GiftAnchorMt.low >>> 0, e.GiftAnchorMt.high >>> 0).toNumber() : e.GiftAnchorMt), null != e.RecordScreen && e.hasOwnProperty("RecordScreen") && ("number" == typeof e.RecordScreen ? n.RecordScreen = t.longs === String ? String(e.RecordScreen) : e.RecordScreen : n.RecordScreen = t.longs === String ? a.Long.prototype.toString.call(e.RecordScreen) : t.longs === Number ? new a.LongBits(e.RecordScreen.low >>> 0, e.RecordScreen.high >>> 0).toNumber() : e.RecordScreen), null != e.DonationSticker && e.hasOwnProperty("DonationSticker") && ("number" == typeof e.DonationSticker ? n.DonationSticker = t.longs === String ? String(e.DonationSticker) : e.DonationSticker : n.DonationSticker = t.longs === String ? a.Long.prototype.toString.call(e.DonationSticker) : t.longs === Number ? new a.LongBits(e.DonationSticker.low >>> 0, e.DonationSticker.high >>> 0).toNumber() : e.DonationSticker), null != e.HourRank && e.hasOwnProperty("HourRank") && ("number" == typeof e.HourRank ? n.HourRank = t.longs === String ? String(e.HourRank) : e.HourRank : n.HourRank = t.longs === String ? a.Long.prototype.toString.call(e.HourRank) : t.longs === Number ? new a.LongBits(e.HourRank.low >>> 0, e.HourRank.high >>> 0).toNumber() : e.HourRank), null != e.CommerceCard && e.hasOwnProperty("CommerceCard") && ("number" == typeof e.CommerceCard ? n.CommerceCard = t.longs === String ? String(e.CommerceCard) : e.CommerceCard : n.CommerceCard = t.longs === String ? a.Long.prototype.toString.call(e.CommerceCard) : t.longs === Number ? new a.LongBits(e.CommerceCard.low >>> 0, e.CommerceCard.high >>> 0).toNumber() : e.CommerceCard), null != e.AudioChat && e.hasOwnProperty("AudioChat") && ("number" == typeof e.AudioChat ? n.AudioChat = t.longs === String ? String(e.AudioChat) : e.AudioChat : n.AudioChat = t.longs === String ? a.Long.prototype.toString.call(e.AudioChat) : t.longs === Number ? new a.LongBits(e.AudioChat.low >>> 0, e.AudioChat.high >>> 0).toNumber() : e.AudioChat), null != e.DanmakuDefault && e.hasOwnProperty("DanmakuDefault") && ("number" == typeof e.DanmakuDefault ? n.DanmakuDefault = t.longs === String ? String(e.DanmakuDefault) : e.DanmakuDefault : n.DanmakuDefault = t.longs === String ? a.Long.prototype.toString.call(e.DanmakuDefault) : t.longs === Number ? new a.LongBits(e.DanmakuDefault.low >>> 0, e.DanmakuDefault.high >>> 0).toNumber() : e.DanmakuDefault), null != e.KtvOrderSong && e.hasOwnProperty("KtvOrderSong") && ("number" == typeof e.KtvOrderSong ? n.KtvOrderSong = t.longs === String ? String(e.KtvOrderSong) : e.KtvOrderSong : n.KtvOrderSong = t.longs === String ? a.Long.prototype.toString.call(e.KtvOrderSong) : t.longs === Number ? new a.LongBits(e.KtvOrderSong.low >>> 0, e.KtvOrderSong.high >>> 0).toNumber() : e.KtvOrderSong), null != e.SelectionAlbum && e.hasOwnProperty("SelectionAlbum") && ("number" == typeof e.SelectionAlbum ? n.SelectionAlbum = t.longs === String ? String(e.SelectionAlbum) : e.SelectionAlbum : n.SelectionAlbum = t.longs === String ? a.Long.prototype.toString.call(e.SelectionAlbum) : t.longs === Number ? new a.LongBits(e.SelectionAlbum.low >>> 0, e.SelectionAlbum.high >>> 0).toNumber() : e.SelectionAlbum), null != e.Like && e.hasOwnProperty("Like") && ("number" == typeof e.Like ? n.Like = t.longs === String ? String(e.Like) : e.Like : n.Like = t.longs === String ? a.Long.prototype.toString.call(e.Like) : t.longs === Number ? new a.LongBits(e.Like.low >>> 0, e.Like.high >>> 0).toNumber() : e.Like), null != e.MultiplierPlayback && e.hasOwnProperty("MultiplierPlayback") && ("number" == typeof e.MultiplierPlayback ? n.MultiplierPlayback = t.longs === String ? String(e.MultiplierPlayback) : e.MultiplierPlayback : n.MultiplierPlayback = t.longs === String ? a.Long.prototype.toString.call(e.MultiplierPlayback) : t.longs === Number ? new a.LongBits(e.MultiplierPlayback.low >>> 0, e.MultiplierPlayback.high >>> 0).toNumber() : e.MultiplierPlayback), null != e.DownloadVideo && e.hasOwnProperty("DownloadVideo") && ("number" == typeof e.DownloadVideo ? n.DownloadVideo = t.longs === String ? String(e.DownloadVideo) : e.DownloadVideo : n.DownloadVideo = t.longs === String ? a.Long.prototype.toString.call(e.DownloadVideo) : t.longs === Number ? new a.LongBits(e.DownloadVideo.low >>> 0, e.DownloadVideo.high >>> 0).toNumber() : e.DownloadVideo), null != e.Collect && e.hasOwnProperty("Collect") && ("number" == typeof e.Collect ? n.Collect = t.longs === String ? String(e.Collect) : e.Collect : n.Collect = t.longs === String ? a.Long.prototype.toString.call(e.Collect) : t.longs === Number ? new a.LongBits(e.Collect.low >>> 0, e.Collect.high >>> 0).toNumber() : e.Collect), null != e.TimedShutdown && e.hasOwnProperty("TimedShutdown") && ("number" == typeof e.TimedShutdown ? n.TimedShutdown = t.longs === String ? String(e.TimedShutdown) : e.TimedShutdown : n.TimedShutdown = t.longs === String ? a.Long.prototype.toString.call(e.TimedShutdown) : t.longs === Number ? new a.LongBits(e.TimedShutdown.low >>> 0, e.TimedShutdown.high >>> 0).toNumber() : e.TimedShutdown), null != e.Seek && e.hasOwnProperty("Seek") && ("number" == typeof e.Seek ? n.Seek = t.longs === String ? String(e.Seek) : e.Seek : n.Seek = t.longs === String ? a.Long.prototype.toString.call(e.Seek) : t.longs === Number ? new a.LongBits(e.Seek.low >>> 0, e.Seek.high >>> 0).toNumber() : e.Seek), null != e.Denounce && e.hasOwnProperty("Denounce") && ("number" == typeof e.Denounce ? n.Denounce = t.longs === String ? String(e.Denounce) : e.Denounce : n.Denounce = t.longs === String ? a.Long.prototype.toString.call(e.Denounce) : t.longs === Number ? new a.LongBits(e.Denounce.low >>> 0, e.Denounce.high >>> 0).toNumber() : e.Denounce), null != e.Dislike && e.hasOwnProperty("Dislike") && ("number" == typeof e.Dislike ? n.Dislike = t.longs === String ? String(e.Dislike) : e.Dislike : n.Dislike = t.longs === String ? a.Long.prototype.toString.call(e.Dislike) : t.longs === Number ? new a.LongBits(e.Dislike.low >>> 0, e.Dislike.high >>> 0).toNumber() : e.Dislike), null != e.OnlyTa && e.hasOwnProperty("OnlyTa") && ("number" == typeof e.OnlyTa ? n.OnlyTa = t.longs === String ? String(e.OnlyTa) : e.OnlyTa : n.OnlyTa = t.longs === String ? a.Long.prototype.toString.call(e.OnlyTa) : t.longs === Number ? new a.LongBits(e.OnlyTa.low >>> 0, e.OnlyTa.high >>> 0).toNumber() : e.OnlyTa), null != e.CastScreen && e.hasOwnProperty("CastScreen") && ("number" == typeof e.CastScreen ? n.CastScreen = t.longs === String ? String(e.CastScreen) : e.CastScreen : n.CastScreen = t.longs === String ? a.Long.prototype.toString.call(e.CastScreen) : t.longs === Number ? new a.LongBits(e.CastScreen.low >>> 0, e.CastScreen.high >>> 0).toNumber() : e.CastScreen), null != e.CommentWall && e.hasOwnProperty("CommentWall") && ("number" == typeof e.CommentWall ? n.CommentWall = t.longs === String ? String(e.CommentWall) : e.CommentWall : n.CommentWall = t.longs === String ? a.Long.prototype.toString.call(e.CommentWall) : t.longs === Number ? new a.LongBits(e.CommentWall.low >>> 0, e.CommentWall.high >>> 0).toNumber() : e.CommentWall), null != e.BulletStyle && e.hasOwnProperty("BulletStyle") && ("number" == typeof e.BulletStyle ? n.BulletStyle = t.longs === String ? String(e.BulletStyle) : e.BulletStyle : n.BulletStyle = t.longs === String ? a.Long.prototype.toString.call(e.BulletStyle) : t.longs === Number ? new a.LongBits(e.BulletStyle.low >>> 0, e.BulletStyle.high >>> 0).toNumber() : e.BulletStyle), null != e.ShowGamePlugin && e.hasOwnProperty("ShowGamePlugin") && ("number" == typeof e.ShowGamePlugin ? n.ShowGamePlugin = t.longs === String ? String(e.ShowGamePlugin) : e.ShowGamePlugin : n.ShowGamePlugin = t.longs === String ? a.Long.prototype.toString.call(e.ShowGamePlugin) : t.longs === Number ? new a.LongBits(e.ShowGamePlugin.low >>> 0, e.ShowGamePlugin.high >>> 0).toNumber() : e.ShowGamePlugin), null != e.VSGift && e.hasOwnProperty("VSGift") && ("number" == typeof e.VSGift ? n.VSGift = t.longs === String ? String(e.VSGift) : e.VSGift : n.VSGift = t.longs === String ? a.Long.prototype.toString.call(e.VSGift) : t.longs === Number ? new a.LongBits(e.VSGift.low >>> 0, e.VSGift.high >>> 0).toNumber() : e.VSGift), null != e.VSTopic && e.hasOwnProperty("VSTopic") && ("number" == typeof e.VSTopic ? n.VSTopic = t.longs === String ? String(e.VSTopic) : e.VSTopic : n.VSTopic = t.longs === String ? a.Long.prototype.toString.call(e.VSTopic) : t.longs === Number ? new a.LongBits(e.VSTopic.low >>> 0, e.VSTopic.high >>> 0).toNumber() : e.VSTopic), null != e.VSRank && e.hasOwnProperty("VSRank") && ("number" == typeof e.VSRank ? n.VSRank = t.longs === String ? String(e.VSRank) : e.VSRank : n.VSRank = t.longs === String ? a.Long.prototype.toString.call(e.VSRank) : t.longs === Number ? new a.LongBits(e.VSRank.low >>> 0, e.VSRank.high >>> 0).toNumber() : e.VSRank), null != e.AdminCommentWall && e.hasOwnProperty("AdminCommentWall") && ("number" == typeof e.AdminCommentWall ? n.AdminCommentWall = t.longs === String ? String(e.AdminCommentWall) : e.AdminCommentWall : n.AdminCommentWall = t.longs === String ? a.Long.prototype.toString.call(e.AdminCommentWall) : t.longs === Number ? new a.LongBits(e.AdminCommentWall.low >>> 0, e.AdminCommentWall.high >>> 0).toNumber() : e.AdminCommentWall), null != e.CommerceComponent && e.hasOwnProperty("CommerceComponent") && ("number" == typeof e.CommerceComponent ? n.CommerceComponent = t.longs === String ? String(e.CommerceComponent) : e.CommerceComponent : n.CommerceComponent = t.longs === String ? a.Long.prototype.toString.call(e.CommerceComponent) : t.longs === Number ? new a.LongBits(e.CommerceComponent.low >>> 0, e.CommerceComponent.high >>> 0).toNumber() : e.CommerceComponent), null != e.DouPlus && e.hasOwnProperty("DouPlus") && ("number" == typeof e.DouPlus ? n.DouPlus = t.longs === String ? String(e.DouPlus) : e.DouPlus : n.DouPlus = t.longs === String ? a.Long.prototype.toString.call(e.DouPlus) : t.longs === Number ? new a.LongBits(e.DouPlus.low >>> 0, e.DouPlus.high >>> 0).toNumber() : e.DouPlus), null != e.GamePointsPlaying && e.hasOwnProperty("GamePointsPlaying") && ("number" == typeof e.GamePointsPlaying ? n.GamePointsPlaying = t.longs === String ? String(e.GamePointsPlaying) : e.GamePointsPlaying : n.GamePointsPlaying = t.longs === String ? a.Long.prototype.toString.call(e.GamePointsPlaying) : t.longs === Number ? new a.LongBits(e.GamePointsPlaying.low >>> 0, e.GamePointsPlaying.high >>> 0).toNumber() : e.GamePointsPlaying), null != e.Poster && e.hasOwnProperty("Poster") && ("number" == typeof e.Poster ? n.Poster = t.longs === String ? String(e.Poster) : e.Poster : n.Poster = t.longs === String ? a.Long.prototype.toString.call(e.Poster) : t.longs === Number ? new a.LongBits(e.Poster.low >>> 0, e.Poster.high >>> 0).toNumber() : e.Poster), null != e.Highlights && e.hasOwnProperty("Highlights") && ("number" == typeof e.Highlights ? n.Highlights = t.longs === String ? String(e.Highlights) : e.Highlights : n.Highlights = t.longs === String ? a.Long.prototype.toString.call(e.Highlights) : t.longs === Number ? new a.LongBits(e.Highlights.low >>> 0, e.Highlights.high >>> 0).toNumber() : e.Highlights), null != e.TypingCommentState && e.hasOwnProperty("TypingCommentState") && ("number" == typeof e.TypingCommentState ? n.TypingCommentState = t.longs === String ? String(e.TypingCommentState) : e.TypingCommentState : n.TypingCommentState = t.longs === String ? a.Long.prototype.toString.call(e.TypingCommentState) : t.longs === Number ? new a.LongBits(e.TypingCommentState.low >>> 0, e.TypingCommentState.high >>> 0).toNumber() : e.TypingCommentState), null != e.StrokeUpDownGuide && e.hasOwnProperty("StrokeUpDownGuide") && ("number" == typeof e.StrokeUpDownGuide ? n.StrokeUpDownGuide = t.longs === String ? String(e.StrokeUpDownGuide) : e.StrokeUpDownGuide : n.StrokeUpDownGuide = t.longs === String ? a.Long.prototype.toString.call(e.StrokeUpDownGuide) : t.longs === Number ? new a.LongBits(e.StrokeUpDownGuide.low >>> 0, e.StrokeUpDownGuide.high >>> 0).toNumber() : e.StrokeUpDownGuide), null != e.OffReason && e.hasOwnProperty("OffReason") && (n.OffReason = l.webcast.data.RoomAuthStatus.RoomAuthOffReasons.toObject(e.OffReason, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.RoomAuthOffReasons = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.gift = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.gift && Object.hasOwnProperty.call(e, "gift") && t.uint32(10).string(e.gift), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RoomAuthStatus.RoomAuthOffReasons; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.gift = e.string(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.gift && e.hasOwnProperty("gift") && !a.isString(e.gift) ? "gift: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RoomAuthStatus.RoomAuthOffReasons) return e; + var t = new l.webcast.data.RoomAuthStatus.RoomAuthOffReasons; + return null != e.gift && (t.gift = String(e.gift)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.gift = ""), null != e.gift && e.hasOwnProperty("gift") && (n.gift = e.gift), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.WebRoomAuthStatus = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.Chat = !1, e.prototype.Danmaku = !1, e.prototype.UserCard = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.Chat && Object.hasOwnProperty.call(e, "Chat") && t.uint32(8).bool(e.Chat), null != e.Danmaku && Object.hasOwnProperty.call(e, "Danmaku") && t.uint32(16).bool(e.Danmaku), null != e.UserCard && Object.hasOwnProperty.call(e, "UserCard") && t.uint32(72).bool(e.UserCard), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.WebRoomAuthStatus; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.Chat = e.bool(); + break; + case 2: + r.Danmaku = e.bool(); + break; + case 9: + r.UserCard = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.Chat && e.hasOwnProperty("Chat") && "boolean" != typeof e.Chat ? "Chat: boolean expected" : null != e.Danmaku && e.hasOwnProperty("Danmaku") && "boolean" != typeof e.Danmaku ? "Danmaku: boolean expected" : null != e.UserCard && e.hasOwnProperty("UserCard") && "boolean" != typeof e.UserCard ? "UserCard: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.WebRoomAuthStatus) return e; + var t = new l.webcast.data.WebRoomAuthStatus; + return null != e.Chat && (t.Chat = Boolean(e.Chat)), null != e.Danmaku && (t.Danmaku = Boolean(e.Danmaku)), null != e.UserCard && (t.UserCard = Boolean(e.UserCard)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.Chat = !1, n.Danmaku = !1, n.UserCard = !1), null != e.Chat && e.hasOwnProperty("Chat") && (n.Chat = e.Chat), null != e.Danmaku && e.hasOwnProperty("Danmaku") && (n.Danmaku = e.Danmaku), null != e.UserCard && e.hasOwnProperty("UserCard") && (n.UserCard = e.UserCard), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.RoomTabType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "UnknownTab"] = 0, t[e[1] = "ChatTab"] = 1, t[e[2] = "RankTab"] = 2, t[e[3] = "IntroTab"] = 3, t[e[4] = "FansclubTab"] = 4, t[e[5] = "RaceSchedule"] = 5, t[e[6] = "CommonH5Tab"] = 6, t[e[7] = "NobleList"] = 7, t + }(), e.RoomTab = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.tabType = 0, e.prototype.tabName = "", e.prototype.tabUrl = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.tabType && Object.hasOwnProperty.call(e, "tabType") && t.uint32(8).int32(e.tabType), null != e.tabName && Object.hasOwnProperty.call(e, "tabName") && t.uint32(18).string(e.tabName), null != e.tabUrl && Object.hasOwnProperty.call(e, "tabUrl") && t.uint32(26).string(e.tabUrl), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RoomTab; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.tabType = e.int32(); + break; + case 2: + r.tabName = e.string(); + break; + case 3: + r.tabUrl = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.tabType && e.hasOwnProperty("tabType")) switch (e.tabType) + { + default: + return "tabType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + } + return null != e.tabName && e.hasOwnProperty("tabName") && !a.isString(e.tabName) ? "tabName: string expected" : null != e.tabUrl && e.hasOwnProperty("tabUrl") && !a.isString(e.tabUrl) ? "tabUrl: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RoomTab) return e; + var t = new l.webcast.data.RoomTab; + switch (e.tabType) + { + case "UnknownTab": + case 0: + t.tabType = 0; + break; + case "ChatTab": + case 1: + t.tabType = 1; + break; + case "RankTab": + case 2: + t.tabType = 2; + break; + case "IntroTab": + case 3: + t.tabType = 3; + break; + case "FansclubTab": + case 4: + t.tabType = 4; + break; + case "RaceSchedule": + case 5: + t.tabType = 5; + break; + case "CommonH5Tab": + case 6: + t.tabType = 6; + break; + case "NobleList": + case 7: + t.tabType = 7 + } + return null != e.tabName && (t.tabName = String(e.tabName)), null != e.tabUrl && (t.tabUrl = String(e.tabUrl)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.tabType = t.enums === String ? "UnknownTab" : 0, n.tabName = "", n.tabUrl = ""), null != e.tabType && e.hasOwnProperty("tabType") && (n.tabType = t.enums === String ? l.webcast.data.RoomTabType[e.tabType] : e.tabType), null != e.tabName && e.hasOwnProperty("tabName") && (n.tabName = e.tabName), null != e.tabUrl && e.hasOwnProperty("tabUrl") && (n.tabUrl = e.tabUrl), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.RoomExtra = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.isSandbox = !1, e.prototype.enterRegionRestriction = null, e.prototype.enterRegionMatch = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.isSandbox && Object.hasOwnProperty.call(e, "isSandbox") && t.uint32(8).bool(e.isSandbox), null != e.enterRegionRestriction && Object.hasOwnProperty.call(e, "enterRegionRestriction") && l.webcast.data.RegionRestriction.encode(e.enterRegionRestriction, t.uint32(18).fork()).ldelim(), null != e.enterRegionMatch && Object.hasOwnProperty.call(e, "enterRegionMatch") && l.webcast.data.RegionMatch.encode(e.enterRegionMatch, t.uint32(26).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RoomExtra; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.isSandbox = e.bool(); + break; + case 2: + r.enterRegionRestriction = l.webcast.data.RegionRestriction.decode(e, e.uint32()); + break; + case 3: + r.enterRegionMatch = l.webcast.data.RegionMatch.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.isSandbox && e.hasOwnProperty("isSandbox") && "boolean" != typeof e.isSandbox) return "isSandbox: boolean expected"; + var t; + if (null != e.enterRegionRestriction && e.hasOwnProperty("enterRegionRestriction") && (t = l.webcast.data.RegionRestriction.verify(e.enterRegionRestriction))) return "enterRegionRestriction." + t; + if (null != e.enterRegionMatch && e.hasOwnProperty("enterRegionMatch") && (t = l.webcast.data.RegionMatch.verify(e.enterRegionMatch))) return "enterRegionMatch." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RoomExtra) return e; + var t = new l.webcast.data.RoomExtra; + if (null != e.isSandbox && (t.isSandbox = Boolean(e.isSandbox)), null != e.enterRegionRestriction) + { + if ("object" != typeof e.enterRegionRestriction) throw TypeError(".webcast.data.RoomExtra.enterRegionRestriction: object expected"); + t.enterRegionRestriction = l.webcast.data.RegionRestriction.fromObject(e.enterRegionRestriction) + } + if (null != e.enterRegionMatch) + { + if ("object" != typeof e.enterRegionMatch) throw TypeError(".webcast.data.RoomExtra.enterRegionMatch: object expected"); + t.enterRegionMatch = l.webcast.data.RegionMatch.fromObject(e.enterRegionMatch) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.isSandbox = !1, n.enterRegionRestriction = null, n.enterRegionMatch = null), null != e.isSandbox && e.hasOwnProperty("isSandbox") && (n.isSandbox = e.isSandbox), null != e.enterRegionRestriction && e.hasOwnProperty("enterRegionRestriction") && (n.enterRegionRestriction = l.webcast.data.RegionRestriction.toObject(e.enterRegionRestriction, t)), null != e.enterRegionMatch && e.hasOwnProperty("enterRegionMatch") && (n.enterRegionMatch = l.webcast.data.RegionMatch.toObject(e.enterRegionMatch, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.RoomPrivateInfo = function () + { + function e(e) + { + if (this.selfVisibleAntidirtTables = [], this.banAntidirtTables = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.isSandbox = !1, e.prototype.enterRegionRestriction = null, e.prototype.locale = "", e.prototype.gpsRegion = null, e.prototype.region = null, e.prototype.tagSet = "", e.prototype.latitude = 0, e.prototype.longitude = 0, e.prototype.citycode = "", e.prototype.laneEnv = "", e.prototype.enterRegionMatch = null, e.prototype.selfVisibleAntidirtTables = a.emptyArray, e.prototype.banAntidirtTables = a.emptyArray, e.prototype.webcastCommentTcs = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.isSandbox && Object.hasOwnProperty.call(e, "isSandbox") && t.uint32(8).bool(e.isSandbox), null != e.enterRegionRestriction && Object.hasOwnProperty.call(e, "enterRegionRestriction") && l.webcast.data.RegionRestriction.encode(e.enterRegionRestriction, t.uint32(18).fork()).ldelim(), null != e.locale && Object.hasOwnProperty.call(e, "locale") && t.uint32(26).string(e.locale), null != e.gpsRegion && Object.hasOwnProperty.call(e, "gpsRegion") && l.webcast.data.Region.encode(e.gpsRegion, t.uint32(34).fork()).ldelim(), null != e.region && Object.hasOwnProperty.call(e, "region") && l.webcast.data.Region.encode(e.region, t.uint32(42).fork()).ldelim(), null != e.tagSet && Object.hasOwnProperty.call(e, "tagSet") && t.uint32(50).string(e.tagSet), null != e.latitude && Object.hasOwnProperty.call(e, "latitude") && t.uint32(57).double(e.latitude), null != e.longitude && Object.hasOwnProperty.call(e, "longitude") && t.uint32(65).double(e.longitude), null != e.citycode && Object.hasOwnProperty.call(e, "citycode") && t.uint32(74).string(e.citycode), null != e.laneEnv && Object.hasOwnProperty.call(e, "laneEnv") && t.uint32(82).string(e.laneEnv), null != e.enterRegionMatch && Object.hasOwnProperty.call(e, "enterRegionMatch") && l.webcast.data.RegionMatch.encode(e.enterRegionMatch, t.uint32(90).fork()).ldelim(), null != e.selfVisibleAntidirtTables && e.selfVisibleAntidirtTables.length) + { + t.uint32(98).fork(); + for (var n = 0; n < e.selfVisibleAntidirtTables.length; ++n) t.int64(e.selfVisibleAntidirtTables[n]); + t.ldelim() + } + if (null != e.banAntidirtTables && e.banAntidirtTables.length) + { + t.uint32(106).fork(); + for (n = 0; n < e.banAntidirtTables.length; ++n) t.int64(e.banAntidirtTables[n]); + t.ldelim() + } + return null != e.webcastCommentTcs && Object.hasOwnProperty.call(e, "webcastCommentTcs") && t.uint32(112).int64(e.webcastCommentTcs), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RoomPrivateInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.isSandbox = e.bool(); + break; + case 2: + r.enterRegionRestriction = l.webcast.data.RegionRestriction.decode(e, e.uint32()); + break; + case 3: + r.locale = e.string(); + break; + case 4: + r.gpsRegion = l.webcast.data.Region.decode(e, e.uint32()); + break; + case 5: + r.region = l.webcast.data.Region.decode(e, e.uint32()); + break; + case 6: + r.tagSet = e.string(); + break; + case 7: + r.latitude = e.double(); + break; + case 8: + r.longitude = e.double(); + break; + case 9: + r.citycode = e.string(); + break; + case 10: + r.laneEnv = e.string(); + break; + case 11: + r.enterRegionMatch = l.webcast.data.RegionMatch.decode(e, e.uint32()); + break; + case 12: + if (r.selfVisibleAntidirtTables && r.selfVisibleAntidirtTables.length || (r.selfVisibleAntidirtTables = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.selfVisibleAntidirtTables.push(e.int64()); + else r.selfVisibleAntidirtTables.push(e.int64()); + break; + case 13: + if (r.banAntidirtTables && r.banAntidirtTables.length || (r.banAntidirtTables = []), 2 == (7 & i)) + for (a = e.uint32() + e.pos; e.pos < a;) r.banAntidirtTables.push(e.int64()); + else r.banAntidirtTables.push(e.int64()); + break; + case 14: + r.webcastCommentTcs = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.isSandbox && e.hasOwnProperty("isSandbox") && "boolean" != typeof e.isSandbox) return "isSandbox: boolean expected"; + var t; + if (null != e.enterRegionRestriction && e.hasOwnProperty("enterRegionRestriction") && (t = l.webcast.data.RegionRestriction.verify(e.enterRegionRestriction))) return "enterRegionRestriction." + t; + if (null != e.locale && e.hasOwnProperty("locale") && !a.isString(e.locale)) return "locale: string expected"; + if (null != e.gpsRegion && e.hasOwnProperty("gpsRegion") && (t = l.webcast.data.Region.verify(e.gpsRegion))) return "gpsRegion." + t; + if (null != e.region && e.hasOwnProperty("region") && (t = l.webcast.data.Region.verify(e.region))) return "region." + t; + if (null != e.tagSet && e.hasOwnProperty("tagSet") && !a.isString(e.tagSet)) return "tagSet: string expected"; + if (null != e.latitude && e.hasOwnProperty("latitude") && "number" != typeof e.latitude) return "latitude: number expected"; + if (null != e.longitude && e.hasOwnProperty("longitude") && "number" != typeof e.longitude) return "longitude: number expected"; + if (null != e.citycode && e.hasOwnProperty("citycode") && !a.isString(e.citycode)) return "citycode: string expected"; + if (null != e.laneEnv && e.hasOwnProperty("laneEnv") && !a.isString(e.laneEnv)) return "laneEnv: string expected"; + if (null != e.enterRegionMatch && e.hasOwnProperty("enterRegionMatch") && (t = l.webcast.data.RegionMatch.verify(e.enterRegionMatch))) return "enterRegionMatch." + t; + if (null != e.selfVisibleAntidirtTables && e.hasOwnProperty("selfVisibleAntidirtTables")) + { + if (!Array.isArray(e.selfVisibleAntidirtTables)) return "selfVisibleAntidirtTables: array expected"; + for (var n = 0; n < e.selfVisibleAntidirtTables.length; ++n) + if (!(a.isInteger(e.selfVisibleAntidirtTables[n]) || e.selfVisibleAntidirtTables[n] && a.isInteger(e.selfVisibleAntidirtTables[n].low) && a.isInteger(e.selfVisibleAntidirtTables[n].high))) return "selfVisibleAntidirtTables: integer|Long[] expected" + } + if (null != e.banAntidirtTables && e.hasOwnProperty("banAntidirtTables")) + { + if (!Array.isArray(e.banAntidirtTables)) return "banAntidirtTables: array expected"; + for (n = 0; n < e.banAntidirtTables.length; ++n) + if (!(a.isInteger(e.banAntidirtTables[n]) || e.banAntidirtTables[n] && a.isInteger(e.banAntidirtTables[n].low) && a.isInteger(e.banAntidirtTables[n].high))) return "banAntidirtTables: integer|Long[] expected" + } + return null != e.webcastCommentTcs && e.hasOwnProperty("webcastCommentTcs") && !(a.isInteger(e.webcastCommentTcs) || e.webcastCommentTcs && a.isInteger(e.webcastCommentTcs.low) && a.isInteger(e.webcastCommentTcs.high)) ? "webcastCommentTcs: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RoomPrivateInfo) return e; + var t = new l.webcast.data.RoomPrivateInfo; + if (null != e.isSandbox && (t.isSandbox = Boolean(e.isSandbox)), null != e.enterRegionRestriction) + { + if ("object" != typeof e.enterRegionRestriction) throw TypeError(".webcast.data.RoomPrivateInfo.enterRegionRestriction: object expected"); + t.enterRegionRestriction = l.webcast.data.RegionRestriction.fromObject(e.enterRegionRestriction) + } + if (null != e.locale && (t.locale = String(e.locale)), null != e.gpsRegion) + { + if ("object" != typeof e.gpsRegion) throw TypeError(".webcast.data.RoomPrivateInfo.gpsRegion: object expected"); + t.gpsRegion = l.webcast.data.Region.fromObject(e.gpsRegion) + } + if (null != e.region) + { + if ("object" != typeof e.region) throw TypeError(".webcast.data.RoomPrivateInfo.region: object expected"); + t.region = l.webcast.data.Region.fromObject(e.region) + } + if (null != e.tagSet && (t.tagSet = String(e.tagSet)), null != e.latitude && (t.latitude = Number(e.latitude)), null != e.longitude && (t.longitude = Number(e.longitude)), null != e.citycode && (t.citycode = String(e.citycode)), null != e.laneEnv && (t.laneEnv = String(e.laneEnv)), null != e.enterRegionMatch) + { + if ("object" != typeof e.enterRegionMatch) throw TypeError(".webcast.data.RoomPrivateInfo.enterRegionMatch: object expected"); + t.enterRegionMatch = l.webcast.data.RegionMatch.fromObject(e.enterRegionMatch) + } + if (e.selfVisibleAntidirtTables) + { + if (!Array.isArray(e.selfVisibleAntidirtTables)) throw TypeError(".webcast.data.RoomPrivateInfo.selfVisibleAntidirtTables: array expected"); + t.selfVisibleAntidirtTables = []; + for (var n = 0; n < e.selfVisibleAntidirtTables.length; ++n) a.Long ? (t.selfVisibleAntidirtTables[n] = a.Long.fromValue(e.selfVisibleAntidirtTables[n])).unsigned = !1 : "string" == typeof e.selfVisibleAntidirtTables[n] ? t.selfVisibleAntidirtTables[n] = parseInt(e.selfVisibleAntidirtTables[n], 10) : "number" == typeof e.selfVisibleAntidirtTables[n] ? t.selfVisibleAntidirtTables[n] = e.selfVisibleAntidirtTables[n] : "object" == typeof e.selfVisibleAntidirtTables[n] && (t.selfVisibleAntidirtTables[n] = new a.LongBits(e.selfVisibleAntidirtTables[n].low >>> 0, e.selfVisibleAntidirtTables[n].high >>> 0).toNumber()) + } + if (e.banAntidirtTables) + { + if (!Array.isArray(e.banAntidirtTables)) throw TypeError(".webcast.data.RoomPrivateInfo.banAntidirtTables: array expected"); + t.banAntidirtTables = []; + for (n = 0; n < e.banAntidirtTables.length; ++n) a.Long ? (t.banAntidirtTables[n] = a.Long.fromValue(e.banAntidirtTables[n])).unsigned = !1 : "string" == typeof e.banAntidirtTables[n] ? t.banAntidirtTables[n] = parseInt(e.banAntidirtTables[n], 10) : "number" == typeof e.banAntidirtTables[n] ? t.banAntidirtTables[n] = e.banAntidirtTables[n] : "object" == typeof e.banAntidirtTables[n] && (t.banAntidirtTables[n] = new a.LongBits(e.banAntidirtTables[n].low >>> 0, e.banAntidirtTables[n].high >>> 0).toNumber()) + } + return null != e.webcastCommentTcs && (a.Long ? (t.webcastCommentTcs = a.Long.fromValue(e.webcastCommentTcs)).unsigned = !1 : "string" == typeof e.webcastCommentTcs ? t.webcastCommentTcs = parseInt(e.webcastCommentTcs, 10) : "number" == typeof e.webcastCommentTcs ? t.webcastCommentTcs = e.webcastCommentTcs : "object" == typeof e.webcastCommentTcs && (t.webcastCommentTcs = new a.LongBits(e.webcastCommentTcs.low >>> 0, e.webcastCommentTcs.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.selfVisibleAntidirtTables = [], n.banAntidirtTables = []), t.defaults) + if (n.isSandbox = !1, n.enterRegionRestriction = null, n.locale = "", n.gpsRegion = null, n.region = null, n.tagSet = "", n.latitude = 0, n.longitude = 0, n.citycode = "", n.laneEnv = "", n.enterRegionMatch = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.webcastCommentTcs = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.webcastCommentTcs = t.longs === String ? "0" : 0; + if (null != e.isSandbox && e.hasOwnProperty("isSandbox") && (n.isSandbox = e.isSandbox), null != e.enterRegionRestriction && e.hasOwnProperty("enterRegionRestriction") && (n.enterRegionRestriction = l.webcast.data.RegionRestriction.toObject(e.enterRegionRestriction, t)), null != e.locale && e.hasOwnProperty("locale") && (n.locale = e.locale), null != e.gpsRegion && e.hasOwnProperty("gpsRegion") && (n.gpsRegion = l.webcast.data.Region.toObject(e.gpsRegion, t)), null != e.region && e.hasOwnProperty("region") && (n.region = l.webcast.data.Region.toObject(e.region, t)), null != e.tagSet && e.hasOwnProperty("tagSet") && (n.tagSet = e.tagSet), null != e.latitude && e.hasOwnProperty("latitude") && (n.latitude = t.json && !isFinite(e.latitude) ? String(e.latitude) : e.latitude), null != e.longitude && e.hasOwnProperty("longitude") && (n.longitude = t.json && !isFinite(e.longitude) ? String(e.longitude) : e.longitude), null != e.citycode && e.hasOwnProperty("citycode") && (n.citycode = e.citycode), null != e.laneEnv && e.hasOwnProperty("laneEnv") && (n.laneEnv = e.laneEnv), null != e.enterRegionMatch && e.hasOwnProperty("enterRegionMatch") && (n.enterRegionMatch = l.webcast.data.RegionMatch.toObject(e.enterRegionMatch, t)), e.selfVisibleAntidirtTables && e.selfVisibleAntidirtTables.length) + { + n.selfVisibleAntidirtTables = []; + for (var o = 0; o < e.selfVisibleAntidirtTables.length; ++o) "number" == typeof e.selfVisibleAntidirtTables[o] ? n.selfVisibleAntidirtTables[o] = t.longs === String ? String(e.selfVisibleAntidirtTables[o]) : e.selfVisibleAntidirtTables[o] : n.selfVisibleAntidirtTables[o] = t.longs === String ? a.Long.prototype.toString.call(e.selfVisibleAntidirtTables[o]) : t.longs === Number ? new a.LongBits(e.selfVisibleAntidirtTables[o].low >>> 0, e.selfVisibleAntidirtTables[o].high >>> 0).toNumber() : e.selfVisibleAntidirtTables[o] + } + if (e.banAntidirtTables && e.banAntidirtTables.length) + { + n.banAntidirtTables = []; + for (o = 0; o < e.banAntidirtTables.length; ++o) "number" == typeof e.banAntidirtTables[o] ? n.banAntidirtTables[o] = t.longs === String ? String(e.banAntidirtTables[o]) : e.banAntidirtTables[o] : n.banAntidirtTables[o] = t.longs === String ? a.Long.prototype.toString.call(e.banAntidirtTables[o]) : t.longs === Number ? new a.LongBits(e.banAntidirtTables[o].low >>> 0, e.banAntidirtTables[o].high >>> 0).toNumber() : e.banAntidirtTables[o] + } + return null != e.webcastCommentTcs && e.hasOwnProperty("webcastCommentTcs") && ("number" == typeof e.webcastCommentTcs ? n.webcastCommentTcs = t.longs === String ? String(e.webcastCommentTcs) : e.webcastCommentTcs : n.webcastCommentTcs = t.longs === String ? a.Long.prototype.toString.call(e.webcastCommentTcs) : t.longs === Number ? new a.LongBits(e.webcastCommentTcs.low >>> 0, e.webcastCommentTcs.high >>> 0).toNumber() : e.webcastCommentTcs), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.RegionRestriction = function () + { + function e(e) + { + if (this.whiteList = [], this.blackList = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.type = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.whiteList = a.emptyArray, e.prototype.blackList = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.type && Object.hasOwnProperty.call(e, "type") && t.uint32(8).int64(e.type), null != e.whiteList && e.whiteList.length) + for (var n = 0; n < e.whiteList.length; ++n) t.uint32(18).string(e.whiteList[n]); + if (null != e.blackList && e.blackList.length) + for (n = 0; n < e.blackList.length; ++n) t.uint32(26).string(e.blackList[n]); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RegionRestriction; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.type = e.int64(); + break; + case 2: + r.whiteList && r.whiteList.length || (r.whiteList = []), r.whiteList.push(e.string()); + break; + case 3: + r.blackList && r.blackList.length || (r.blackList = []), r.blackList.push(e.string()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.type && e.hasOwnProperty("type") && !(a.isInteger(e.type) || e.type && a.isInteger(e.type.low) && a.isInteger(e.type.high))) return "type: integer|Long expected"; + if (null != e.whiteList && e.hasOwnProperty("whiteList")) + { + if (!Array.isArray(e.whiteList)) return "whiteList: array expected"; + for (var t = 0; t < e.whiteList.length; ++t) + if (!a.isString(e.whiteList[t])) return "whiteList: string[] expected" + } + if (null != e.blackList && e.hasOwnProperty("blackList")) + { + if (!Array.isArray(e.blackList)) return "blackList: array expected"; + for (t = 0; t < e.blackList.length; ++t) + if (!a.isString(e.blackList[t])) return "blackList: string[] expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RegionRestriction) return e; + var t = new l.webcast.data.RegionRestriction; + if (null != e.type && (a.Long ? (t.type = a.Long.fromValue(e.type)).unsigned = !1 : "string" == typeof e.type ? t.type = parseInt(e.type, 10) : "number" == typeof e.type ? t.type = e.type : "object" == typeof e.type && (t.type = new a.LongBits(e.type.low >>> 0, e.type.high >>> 0).toNumber())), e.whiteList) + { + if (!Array.isArray(e.whiteList)) throw TypeError(".webcast.data.RegionRestriction.whiteList: array expected"); + t.whiteList = []; + for (var n = 0; n < e.whiteList.length; ++n) t.whiteList[n] = String(e.whiteList[n]) + } + if (e.blackList) + { + if (!Array.isArray(e.blackList)) throw TypeError(".webcast.data.RegionRestriction.blackList: array expected"); + t.blackList = []; + for (n = 0; n < e.blackList.length; ++n) t.blackList[n] = String(e.blackList[n]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.whiteList = [], n.blackList = []), t.defaults) + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.type = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.type = t.longs === String ? "0" : 0; + if (null != e.type && e.hasOwnProperty("type") && ("number" == typeof e.type ? n.type = t.longs === String ? String(e.type) : e.type : n.type = t.longs === String ? a.Long.prototype.toString.call(e.type) : t.longs === Number ? new a.LongBits(e.type.low >>> 0, e.type.high >>> 0).toNumber() : e.type), e.whiteList && e.whiteList.length) + { + n.whiteList = []; + for (var o = 0; o < e.whiteList.length; ++o) n.whiteList[o] = e.whiteList[o] + } + if (e.blackList && e.blackList.length) + { + n.blackList = []; + for (o = 0; o < e.blackList.length; ++o) n.blackList[o] = e.blackList[o] + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.RegionMatch = function () + { + function e(e) + { + if (this.allowList = [], this.denyList = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.type = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.allowList = a.emptyArray, e.prototype.denyList = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.type && Object.hasOwnProperty.call(e, "type") && t.uint32(8).int64(e.type), null != e.allowList && e.allowList.length) + for (var n = 0; n < e.allowList.length; ++n) t.uint32(18).string(e.allowList[n]); + if (null != e.denyList && e.denyList.length) + for (n = 0; n < e.denyList.length; ++n) t.uint32(26).string(e.denyList[n]); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RegionMatch; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.type = e.int64(); + break; + case 2: + r.allowList && r.allowList.length || (r.allowList = []), r.allowList.push(e.string()); + break; + case 3: + r.denyList && r.denyList.length || (r.denyList = []), r.denyList.push(e.string()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.type && e.hasOwnProperty("type") && !(a.isInteger(e.type) || e.type && a.isInteger(e.type.low) && a.isInteger(e.type.high))) return "type: integer|Long expected"; + if (null != e.allowList && e.hasOwnProperty("allowList")) + { + if (!Array.isArray(e.allowList)) return "allowList: array expected"; + for (var t = 0; t < e.allowList.length; ++t) + if (!a.isString(e.allowList[t])) return "allowList: string[] expected" + } + if (null != e.denyList && e.hasOwnProperty("denyList")) + { + if (!Array.isArray(e.denyList)) return "denyList: array expected"; + for (t = 0; t < e.denyList.length; ++t) + if (!a.isString(e.denyList[t])) return "denyList: string[] expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RegionMatch) return e; + var t = new l.webcast.data.RegionMatch; + if (null != e.type && (a.Long ? (t.type = a.Long.fromValue(e.type)).unsigned = !1 : "string" == typeof e.type ? t.type = parseInt(e.type, 10) : "number" == typeof e.type ? t.type = e.type : "object" == typeof e.type && (t.type = new a.LongBits(e.type.low >>> 0, e.type.high >>> 0).toNumber())), e.allowList) + { + if (!Array.isArray(e.allowList)) throw TypeError(".webcast.data.RegionMatch.allowList: array expected"); + t.allowList = []; + for (var n = 0; n < e.allowList.length; ++n) t.allowList[n] = String(e.allowList[n]) + } + if (e.denyList) + { + if (!Array.isArray(e.denyList)) throw TypeError(".webcast.data.RegionMatch.denyList: array expected"); + t.denyList = []; + for (n = 0; n < e.denyList.length; ++n) t.denyList[n] = String(e.denyList[n]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.allowList = [], n.denyList = []), t.defaults) + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.type = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.type = t.longs === String ? "0" : 0; + if (null != e.type && e.hasOwnProperty("type") && ("number" == typeof e.type ? n.type = t.longs === String ? String(e.type) : e.type : n.type = t.longs === String ? a.Long.prototype.toString.call(e.type) : t.longs === Number ? new a.LongBits(e.type.low >>> 0, e.type.high >>> 0).toNumber() : e.type), e.allowList && e.allowList.length) + { + n.allowList = []; + for (var o = 0; o < e.allowList.length; ++o) n.allowList[o] = e.allowList[o] + } + if (e.denyList && e.denyList.length) + { + n.denyList = []; + for (o = 0; o < e.denyList.length; ++o) n.denyList[o] = e.denyList[o] + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.Region = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.latitude = "", e.prototype.longitude = "", e.prototype.city = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.latitude && Object.hasOwnProperty.call(e, "latitude") && t.uint32(10).string(e.latitude), null != e.longitude && Object.hasOwnProperty.call(e, "longitude") && t.uint32(18).string(e.longitude), null != e.city && Object.hasOwnProperty.call(e, "city") && t.uint32(26).string(e.city), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.Region; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.latitude = e.string(); + break; + case 2: + r.longitude = e.string(); + break; + case 3: + r.city = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.latitude && e.hasOwnProperty("latitude") && !a.isString(e.latitude) ? "latitude: string expected" : null != e.longitude && e.hasOwnProperty("longitude") && !a.isString(e.longitude) ? "longitude: string expected" : null != e.city && e.hasOwnProperty("city") && !a.isString(e.city) ? "city: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.Region) return e; + var t = new l.webcast.data.Region; + return null != e.latitude && (t.latitude = String(e.latitude)), null != e.longitude && (t.longitude = String(e.longitude)), null != e.city && (t.city = String(e.city)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.latitude = "", n.longitude = "", n.city = ""), null != e.latitude && e.hasOwnProperty("latitude") && (n.latitude = e.latitude), null != e.longitude && e.hasOwnProperty("longitude") && (n.longitude = e.longitude), null != e.city && e.hasOwnProperty("city") && (n.city = e.city), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.StreamUrl = function () + { + function e(e) + { + if (this.resolutionName = {}, this.flvPullUrl = {}, this.candidateResolution = [], this.flvPullUrlParams = {}, this.pushUrls = [], this.hlsPullUrlMap = {}, this.completePushUrls = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.provider = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.idStr = "", e.prototype.resolutionName = a.emptyObject, e.prototype.defaultResolution = "", e.prototype.extra = null, e.prototype.rtmpPushUrl = "", e.prototype.rtmpPullUrl = "", e.prototype.flvPullUrl = a.emptyObject, e.prototype.candidateResolution = a.emptyArray, e.prototype.hlsPullUrl = "", e.prototype.hlsPullUrlParams = "", e.prototype.rtmpPullUrlParams = "", e.prototype.flvPullUrlParams = a.emptyObject, e.prototype.rtmpPushUrlParams = "", e.prototype.pushUrls = a.emptyArray, e.prototype.liveCoreSdkData = null, e.prototype.hlsPullUrlMap = a.emptyObject, e.prototype.completePushUrls = a.emptyArray, e.prototype.streamControlType = 0, e.prototype.streamOrientation = 0, e.prototype.pushStreamType = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.provider && Object.hasOwnProperty.call(e, "provider") && t.uint32(8).int64(e.provider), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(16).int64(e.id), null != e.idStr && Object.hasOwnProperty.call(e, "idStr") && t.uint32(26).string(e.idStr), null != e.resolutionName && Object.hasOwnProperty.call(e, "resolutionName")) + for (var n = Object.keys(e.resolutionName), r = 0; r < n.length; ++r) t.uint32(34).fork().uint32(10).string(n[r]).uint32(18).string(e.resolutionName[n[r]]).ldelim(); + if (null != e.defaultResolution && Object.hasOwnProperty.call(e, "defaultResolution") && t.uint32(42).string(e.defaultResolution), null != e.extra && Object.hasOwnProperty.call(e, "extra") && l.webcast.data.StreamUrl.StreamUrlExtra.encode(e.extra, t.uint32(50).fork()).ldelim(), null != e.rtmpPushUrl && Object.hasOwnProperty.call(e, "rtmpPushUrl") && t.uint32(58).string(e.rtmpPushUrl), null != e.rtmpPullUrl && Object.hasOwnProperty.call(e, "rtmpPullUrl") && t.uint32(66).string(e.rtmpPullUrl), null != e.flvPullUrl && Object.hasOwnProperty.call(e, "flvPullUrl")) + for (n = Object.keys(e.flvPullUrl), r = 0; r < n.length; ++r) t.uint32(74).fork().uint32(10).string(n[r]).uint32(18).string(e.flvPullUrl[n[r]]).ldelim(); + if (null != e.candidateResolution && e.candidateResolution.length) + for (r = 0; r < e.candidateResolution.length; ++r) t.uint32(82).string(e.candidateResolution[r]); + if (null != e.hlsPullUrl && Object.hasOwnProperty.call(e, "hlsPullUrl") && t.uint32(90).string(e.hlsPullUrl), null != e.hlsPullUrlParams && Object.hasOwnProperty.call(e, "hlsPullUrlParams") && t.uint32(98).string(e.hlsPullUrlParams), null != e.rtmpPullUrlParams && Object.hasOwnProperty.call(e, "rtmpPullUrlParams") && t.uint32(106).string(e.rtmpPullUrlParams), null != e.flvPullUrlParams && Object.hasOwnProperty.call(e, "flvPullUrlParams")) + for (n = Object.keys(e.flvPullUrlParams), r = 0; r < n.length; ++r) t.uint32(114).fork().uint32(10).string(n[r]).uint32(18).string(e.flvPullUrlParams[n[r]]).ldelim(); + if (null != e.rtmpPushUrlParams && Object.hasOwnProperty.call(e, "rtmpPushUrlParams") && t.uint32(122).string(e.rtmpPushUrlParams), null != e.pushUrls && e.pushUrls.length) + for (r = 0; r < e.pushUrls.length; ++r) t.uint32(130).string(e.pushUrls[r]); + if (null != e.liveCoreSdkData && Object.hasOwnProperty.call(e, "liveCoreSdkData") && l.webcast.data.StreamUrl.LiveCoreSDKData.encode(e.liveCoreSdkData, t.uint32(138).fork()).ldelim(), null != e.hlsPullUrlMap && Object.hasOwnProperty.call(e, "hlsPullUrlMap")) + for (n = Object.keys(e.hlsPullUrlMap), r = 0; r < n.length; ++r) t.uint32(146).fork().uint32(10).string(n[r]).uint32(18).string(e.hlsPullUrlMap[n[r]]).ldelim(); + if (null != e.completePushUrls && e.completePushUrls.length) + for (r = 0; r < e.completePushUrls.length; ++r) t.uint32(154).string(e.completePushUrls[r]); + return null != e.streamControlType && Object.hasOwnProperty.call(e, "streamControlType") && t.uint32(160).int32(e.streamControlType), null != e.streamOrientation && Object.hasOwnProperty.call(e, "streamOrientation") && t.uint32(168).int32(e.streamOrientation), null != e.pushStreamType && Object.hasOwnProperty.call(e, "pushStreamType") && t.uint32(176).int32(e.pushStreamType), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.StreamUrl; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.provider = e.int64(); + break; + case 2: + s.id = e.int64(); + break; + case 3: + s.idStr = e.string(); + break; + case 4: + s.resolutionName === a.emptyObject && (s.resolutionName = {}); + var u = e.uint32() + e.pos; + for (n = "", r = ""; e.pos < u;) + { + switch ((p = e.uint32()) >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.resolutionName[n] = r; + break; + case 5: + s.defaultResolution = e.string(); + break; + case 6: + s.extra = l.webcast.data.StreamUrl.StreamUrlExtra.decode(e, e.uint32()); + break; + case 7: + s.rtmpPushUrl = e.string(); + break; + case 8: + s.rtmpPullUrl = e.string(); + break; + case 9: + s.flvPullUrl === a.emptyObject && (s.flvPullUrl = {}); + u = e.uint32() + e.pos; + for (n = "", r = ""; e.pos < u;) + { + switch ((p = e.uint32()) >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.flvPullUrl[n] = r; + break; + case 10: + s.candidateResolution && s.candidateResolution.length || (s.candidateResolution = []), s.candidateResolution.push(e.string()); + break; + case 11: + s.hlsPullUrl = e.string(); + break; + case 12: + s.hlsPullUrlParams = e.string(); + break; + case 13: + s.rtmpPullUrlParams = e.string(); + break; + case 14: + s.flvPullUrlParams === a.emptyObject && (s.flvPullUrlParams = {}); + u = e.uint32() + e.pos; + for (n = "", r = ""; e.pos < u;) + { + switch ((p = e.uint32()) >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.flvPullUrlParams[n] = r; + break; + case 15: + s.rtmpPushUrlParams = e.string(); + break; + case 16: + s.pushUrls && s.pushUrls.length || (s.pushUrls = []), s.pushUrls.push(e.string()); + break; + case 17: + s.liveCoreSdkData = l.webcast.data.StreamUrl.LiveCoreSDKData.decode(e, e.uint32()); + break; + case 18: + s.hlsPullUrlMap === a.emptyObject && (s.hlsPullUrlMap = {}); + u = e.uint32() + e.pos; + for (n = "", r = ""; e.pos < u;) + { + var p; + switch ((p = e.uint32()) >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.hlsPullUrlMap[n] = r; + break; + case 19: + s.completePushUrls && s.completePushUrls.length || (s.completePushUrls = []), s.completePushUrls.push(e.string()); + break; + case 20: + s.streamControlType = e.int32(); + break; + case 21: + s.streamOrientation = e.int32(); + break; + case 22: + s.pushStreamType = e.int32(); + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.provider && e.hasOwnProperty("provider") && !(a.isInteger(e.provider) || e.provider && a.isInteger(e.provider.low) && a.isInteger(e.provider.high))) return "provider: integer|Long expected"; + if (null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high))) return "id: integer|Long expected"; + if (null != e.idStr && e.hasOwnProperty("idStr") && !a.isString(e.idStr)) return "idStr: string expected"; + if (null != e.resolutionName && e.hasOwnProperty("resolutionName")) + { + if (!a.isObject(e.resolutionName)) return "resolutionName: object expected"; + for (var t = Object.keys(e.resolutionName), n = 0; n < t.length; ++n) + if (!a.isString(e.resolutionName[t[n]])) return "resolutionName: string{k:string} expected" + } + if (null != e.defaultResolution && e.hasOwnProperty("defaultResolution") && !a.isString(e.defaultResolution)) return "defaultResolution: string expected"; + var r; + if (null != e.extra && e.hasOwnProperty("extra") && (r = l.webcast.data.StreamUrl.StreamUrlExtra.verify(e.extra))) return "extra." + r; + if (null != e.rtmpPushUrl && e.hasOwnProperty("rtmpPushUrl") && !a.isString(e.rtmpPushUrl)) return "rtmpPushUrl: string expected"; + if (null != e.rtmpPullUrl && e.hasOwnProperty("rtmpPullUrl") && !a.isString(e.rtmpPullUrl)) return "rtmpPullUrl: string expected"; + if (null != e.flvPullUrl && e.hasOwnProperty("flvPullUrl")) + { + if (!a.isObject(e.flvPullUrl)) return "flvPullUrl: object expected"; + for (t = Object.keys(e.flvPullUrl), n = 0; n < t.length; ++n) + if (!a.isString(e.flvPullUrl[t[n]])) return "flvPullUrl: string{k:string} expected" + } + if (null != e.candidateResolution && e.hasOwnProperty("candidateResolution")) + { + if (!Array.isArray(e.candidateResolution)) return "candidateResolution: array expected"; + for (n = 0; n < e.candidateResolution.length; ++n) + if (!a.isString(e.candidateResolution[n])) return "candidateResolution: string[] expected" + } + if (null != e.hlsPullUrl && e.hasOwnProperty("hlsPullUrl") && !a.isString(e.hlsPullUrl)) return "hlsPullUrl: string expected"; + if (null != e.hlsPullUrlParams && e.hasOwnProperty("hlsPullUrlParams") && !a.isString(e.hlsPullUrlParams)) return "hlsPullUrlParams: string expected"; + if (null != e.rtmpPullUrlParams && e.hasOwnProperty("rtmpPullUrlParams") && !a.isString(e.rtmpPullUrlParams)) return "rtmpPullUrlParams: string expected"; + if (null != e.flvPullUrlParams && e.hasOwnProperty("flvPullUrlParams")) + { + if (!a.isObject(e.flvPullUrlParams)) return "flvPullUrlParams: object expected"; + for (t = Object.keys(e.flvPullUrlParams), n = 0; n < t.length; ++n) + if (!a.isString(e.flvPullUrlParams[t[n]])) return "flvPullUrlParams: string{k:string} expected" + } + if (null != e.rtmpPushUrlParams && e.hasOwnProperty("rtmpPushUrlParams") && !a.isString(e.rtmpPushUrlParams)) return "rtmpPushUrlParams: string expected"; + if (null != e.pushUrls && e.hasOwnProperty("pushUrls")) + { + if (!Array.isArray(e.pushUrls)) return "pushUrls: array expected"; + for (n = 0; n < e.pushUrls.length; ++n) + if (!a.isString(e.pushUrls[n])) return "pushUrls: string[] expected" + } + if (null != e.liveCoreSdkData && e.hasOwnProperty("liveCoreSdkData") && (r = l.webcast.data.StreamUrl.LiveCoreSDKData.verify(e.liveCoreSdkData))) return "liveCoreSdkData." + r; + if (null != e.hlsPullUrlMap && e.hasOwnProperty("hlsPullUrlMap")) + { + if (!a.isObject(e.hlsPullUrlMap)) return "hlsPullUrlMap: object expected"; + for (t = Object.keys(e.hlsPullUrlMap), n = 0; n < t.length; ++n) + if (!a.isString(e.hlsPullUrlMap[t[n]])) return "hlsPullUrlMap: string{k:string} expected" + } + if (null != e.completePushUrls && e.hasOwnProperty("completePushUrls")) + { + if (!Array.isArray(e.completePushUrls)) return "completePushUrls: array expected"; + for (n = 0; n < e.completePushUrls.length; ++n) + if (!a.isString(e.completePushUrls[n])) return "completePushUrls: string[] expected" + } + return null != e.streamControlType && e.hasOwnProperty("streamControlType") && !a.isInteger(e.streamControlType) ? "streamControlType: integer expected" : null != e.streamOrientation && e.hasOwnProperty("streamOrientation") && !a.isInteger(e.streamOrientation) ? "streamOrientation: integer expected" : null != e.pushStreamType && e.hasOwnProperty("pushStreamType") && !a.isInteger(e.pushStreamType) ? "pushStreamType: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.StreamUrl) return e; + var t = new l.webcast.data.StreamUrl; + if (null != e.provider && (a.Long ? (t.provider = a.Long.fromValue(e.provider)).unsigned = !1 : "string" == typeof e.provider ? t.provider = parseInt(e.provider, 10) : "number" == typeof e.provider ? t.provider = e.provider : "object" == typeof e.provider && (t.provider = new a.LongBits(e.provider.low >>> 0, e.provider.high >>> 0).toNumber())), null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), null != e.idStr && (t.idStr = String(e.idStr)), e.resolutionName) + { + if ("object" != typeof e.resolutionName) throw TypeError(".webcast.data.StreamUrl.resolutionName: object expected"); + t.resolutionName = {}; + for (var n = Object.keys(e.resolutionName), r = 0; r < n.length; ++r) t.resolutionName[n[r]] = String(e.resolutionName[n[r]]) + } + if (null != e.defaultResolution && (t.defaultResolution = String(e.defaultResolution)), null != e.extra) + { + if ("object" != typeof e.extra) throw TypeError(".webcast.data.StreamUrl.extra: object expected"); + t.extra = l.webcast.data.StreamUrl.StreamUrlExtra.fromObject(e.extra) + } + if (null != e.rtmpPushUrl && (t.rtmpPushUrl = String(e.rtmpPushUrl)), null != e.rtmpPullUrl && (t.rtmpPullUrl = String(e.rtmpPullUrl)), e.flvPullUrl) + { + if ("object" != typeof e.flvPullUrl) throw TypeError(".webcast.data.StreamUrl.flvPullUrl: object expected"); + t.flvPullUrl = {}; + for (n = Object.keys(e.flvPullUrl), r = 0; r < n.length; ++r) t.flvPullUrl[n[r]] = String(e.flvPullUrl[n[r]]) + } + if (e.candidateResolution) + { + if (!Array.isArray(e.candidateResolution)) throw TypeError(".webcast.data.StreamUrl.candidateResolution: array expected"); + t.candidateResolution = []; + for (r = 0; r < e.candidateResolution.length; ++r) t.candidateResolution[r] = String(e.candidateResolution[r]) + } + if (null != e.hlsPullUrl && (t.hlsPullUrl = String(e.hlsPullUrl)), null != e.hlsPullUrlParams && (t.hlsPullUrlParams = String(e.hlsPullUrlParams)), null != e.rtmpPullUrlParams && (t.rtmpPullUrlParams = String(e.rtmpPullUrlParams)), e.flvPullUrlParams) + { + if ("object" != typeof e.flvPullUrlParams) throw TypeError(".webcast.data.StreamUrl.flvPullUrlParams: object expected"); + t.flvPullUrlParams = {}; + for (n = Object.keys(e.flvPullUrlParams), r = 0; r < n.length; ++r) t.flvPullUrlParams[n[r]] = String(e.flvPullUrlParams[n[r]]) + } + if (null != e.rtmpPushUrlParams && (t.rtmpPushUrlParams = String(e.rtmpPushUrlParams)), e.pushUrls) + { + if (!Array.isArray(e.pushUrls)) throw TypeError(".webcast.data.StreamUrl.pushUrls: array expected"); + t.pushUrls = []; + for (r = 0; r < e.pushUrls.length; ++r) t.pushUrls[r] = String(e.pushUrls[r]) + } + if (null != e.liveCoreSdkData) + { + if ("object" != typeof e.liveCoreSdkData) throw TypeError(".webcast.data.StreamUrl.liveCoreSdkData: object expected"); + t.liveCoreSdkData = l.webcast.data.StreamUrl.LiveCoreSDKData.fromObject(e.liveCoreSdkData) + } + if (e.hlsPullUrlMap) + { + if ("object" != typeof e.hlsPullUrlMap) throw TypeError(".webcast.data.StreamUrl.hlsPullUrlMap: object expected"); + t.hlsPullUrlMap = {}; + for (n = Object.keys(e.hlsPullUrlMap), r = 0; r < n.length; ++r) t.hlsPullUrlMap[n[r]] = String(e.hlsPullUrlMap[n[r]]) + } + if (e.completePushUrls) + { + if (!Array.isArray(e.completePushUrls)) throw TypeError(".webcast.data.StreamUrl.completePushUrls: array expected"); + t.completePushUrls = []; + for (r = 0; r < e.completePushUrls.length; ++r) t.completePushUrls[r] = String(e.completePushUrls[r]) + } + return null != e.streamControlType && (t.streamControlType = 0 | e.streamControlType), null != e.streamOrientation && (t.streamOrientation = 0 | e.streamOrientation), null != e.pushStreamType && (t.pushStreamType = 0 | e.pushStreamType), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.arrays || t.defaults) && (r.candidateResolution = [], r.pushUrls = [], r.completePushUrls = []), (t.objects || t.defaults) && (r.resolutionName = {}, r.flvPullUrl = {}, r.flvPullUrlParams = {}, r.hlsPullUrlMap = {}), t.defaults) + { + if (a.Long) + { + var o = new a.Long(0, 0, !1); + r.provider = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.provider = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.id = t.longs === String ? "0" : 0; + r.idStr = "", r.defaultResolution = "", r.extra = null, r.rtmpPushUrl = "", r.rtmpPullUrl = "", r.hlsPullUrl = "", r.hlsPullUrlParams = "", r.rtmpPullUrlParams = "", r.rtmpPushUrlParams = "", r.liveCoreSdkData = null, r.streamControlType = 0, r.streamOrientation = 0, r.pushStreamType = 0 + } + if (null != e.provider && e.hasOwnProperty("provider") && ("number" == typeof e.provider ? r.provider = t.longs === String ? String(e.provider) : e.provider : r.provider = t.longs === String ? a.Long.prototype.toString.call(e.provider) : t.longs === Number ? new a.LongBits(e.provider.low >>> 0, e.provider.high >>> 0).toNumber() : e.provider), null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? r.id = t.longs === String ? String(e.id) : e.id : r.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), null != e.idStr && e.hasOwnProperty("idStr") && (r.idStr = e.idStr), e.resolutionName && (n = Object.keys(e.resolutionName)).length) + { + r.resolutionName = {}; + for (var i = 0; i < n.length; ++i) r.resolutionName[n[i]] = e.resolutionName[n[i]] + } + if (null != e.defaultResolution && e.hasOwnProperty("defaultResolution") && (r.defaultResolution = e.defaultResolution), null != e.extra && e.hasOwnProperty("extra") && (r.extra = l.webcast.data.StreamUrl.StreamUrlExtra.toObject(e.extra, t)), null != e.rtmpPushUrl && e.hasOwnProperty("rtmpPushUrl") && (r.rtmpPushUrl = e.rtmpPushUrl), null != e.rtmpPullUrl && e.hasOwnProperty("rtmpPullUrl") && (r.rtmpPullUrl = e.rtmpPullUrl), e.flvPullUrl && (n = Object.keys(e.flvPullUrl)).length) + { + r.flvPullUrl = {}; + for (i = 0; i < n.length; ++i) r.flvPullUrl[n[i]] = e.flvPullUrl[n[i]] + } + if (e.candidateResolution && e.candidateResolution.length) + { + r.candidateResolution = []; + for (i = 0; i < e.candidateResolution.length; ++i) r.candidateResolution[i] = e.candidateResolution[i] + } + if (null != e.hlsPullUrl && e.hasOwnProperty("hlsPullUrl") && (r.hlsPullUrl = e.hlsPullUrl), null != e.hlsPullUrlParams && e.hasOwnProperty("hlsPullUrlParams") && (r.hlsPullUrlParams = e.hlsPullUrlParams), null != e.rtmpPullUrlParams && e.hasOwnProperty("rtmpPullUrlParams") && (r.rtmpPullUrlParams = e.rtmpPullUrlParams), e.flvPullUrlParams && (n = Object.keys(e.flvPullUrlParams)).length) + { + r.flvPullUrlParams = {}; + for (i = 0; i < n.length; ++i) r.flvPullUrlParams[n[i]] = e.flvPullUrlParams[n[i]] + } + if (null != e.rtmpPushUrlParams && e.hasOwnProperty("rtmpPushUrlParams") && (r.rtmpPushUrlParams = e.rtmpPushUrlParams), e.pushUrls && e.pushUrls.length) + { + r.pushUrls = []; + for (i = 0; i < e.pushUrls.length; ++i) r.pushUrls[i] = e.pushUrls[i] + } + if (null != e.liveCoreSdkData && e.hasOwnProperty("liveCoreSdkData") && (r.liveCoreSdkData = l.webcast.data.StreamUrl.LiveCoreSDKData.toObject(e.liveCoreSdkData, t)), e.hlsPullUrlMap && (n = Object.keys(e.hlsPullUrlMap)).length) + { + r.hlsPullUrlMap = {}; + for (i = 0; i < n.length; ++i) r.hlsPullUrlMap[n[i]] = e.hlsPullUrlMap[n[i]] + } + if (e.completePushUrls && e.completePushUrls.length) + { + r.completePushUrls = []; + for (i = 0; i < e.completePushUrls.length; ++i) r.completePushUrls[i] = e.completePushUrls[i] + } + return null != e.streamControlType && e.hasOwnProperty("streamControlType") && (r.streamControlType = e.streamControlType), null != e.streamOrientation && e.hasOwnProperty("streamOrientation") && (r.streamOrientation = e.streamOrientation), null != e.pushStreamType && e.hasOwnProperty("pushStreamType") && (r.pushStreamType = e.pushStreamType), r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.StreamUrlExtra = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.height = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.width = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.fps = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.maxBitrate = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.minBitrate = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.defaultBitrate = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.bitrateAdaptStrategy = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.anchorInteractProfile = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.audienceInteractProfile = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.hardwareEncode = !1, e.prototype.videoProfile = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.superResolution = null, e.prototype.h265Enable = !1, e.prototype.gopSec = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.bframeEnable = !1, e.prototype.roi = !1, e.prototype.swRoi = !1, e.prototype.bytevc1Enable = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.height && Object.hasOwnProperty.call(e, "height") && t.uint32(8).int64(e.height), null != e.width && Object.hasOwnProperty.call(e, "width") && t.uint32(16).int64(e.width), null != e.fps && Object.hasOwnProperty.call(e, "fps") && t.uint32(24).int64(e.fps), null != e.maxBitrate && Object.hasOwnProperty.call(e, "maxBitrate") && t.uint32(32).int64(e.maxBitrate), null != e.minBitrate && Object.hasOwnProperty.call(e, "minBitrate") && t.uint32(40).int64(e.minBitrate), null != e.defaultBitrate && Object.hasOwnProperty.call(e, "defaultBitrate") && t.uint32(48).int64(e.defaultBitrate), null != e.bitrateAdaptStrategy && Object.hasOwnProperty.call(e, "bitrateAdaptStrategy") && t.uint32(56).int64(e.bitrateAdaptStrategy), null != e.anchorInteractProfile && Object.hasOwnProperty.call(e, "anchorInteractProfile") && t.uint32(64).int64(e.anchorInteractProfile), null != e.audienceInteractProfile && Object.hasOwnProperty.call(e, "audienceInteractProfile") && t.uint32(72).int64(e.audienceInteractProfile), null != e.hardwareEncode && Object.hasOwnProperty.call(e, "hardwareEncode") && t.uint32(80).bool(e.hardwareEncode), null != e.videoProfile && Object.hasOwnProperty.call(e, "videoProfile") && t.uint32(96).int64(e.videoProfile), null != e.superResolution && Object.hasOwnProperty.call(e, "superResolution") && l.webcast.data.StreamUrl.StreamUrlExtra.SuperResolution.encode(e.superResolution, t.uint32(114).fork()).ldelim(), null != e.h265Enable && Object.hasOwnProperty.call(e, "h265Enable") && t.uint32(120).bool(e.h265Enable), null != e.gopSec && Object.hasOwnProperty.call(e, "gopSec") && t.uint32(128).int64(e.gopSec), null != e.bframeEnable && Object.hasOwnProperty.call(e, "bframeEnable") && t.uint32(136).bool(e.bframeEnable), null != e.roi && Object.hasOwnProperty.call(e, "roi") && t.uint32(144).bool(e.roi), null != e.swRoi && Object.hasOwnProperty.call(e, "swRoi") && t.uint32(152).bool(e.swRoi), null != e.bytevc1Enable && Object.hasOwnProperty.call(e, "bytevc1Enable") && t.uint32(160).bool(e.bytevc1Enable), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.StreamUrl.StreamUrlExtra; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.height = e.int64(); + break; + case 2: + r.width = e.int64(); + break; + case 3: + r.fps = e.int64(); + break; + case 4: + r.maxBitrate = e.int64(); + break; + case 5: + r.minBitrate = e.int64(); + break; + case 6: + r.defaultBitrate = e.int64(); + break; + case 7: + r.bitrateAdaptStrategy = e.int64(); + break; + case 8: + r.anchorInteractProfile = e.int64(); + break; + case 9: + r.audienceInteractProfile = e.int64(); + break; + case 10: + r.hardwareEncode = e.bool(); + break; + case 12: + r.videoProfile = e.int64(); + break; + case 14: + r.superResolution = l.webcast.data.StreamUrl.StreamUrlExtra.SuperResolution.decode(e, e.uint32()); + break; + case 15: + r.h265Enable = e.bool(); + break; + case 16: + r.gopSec = e.int64(); + break; + case 17: + r.bframeEnable = e.bool(); + break; + case 18: + r.roi = e.bool(); + break; + case 19: + r.swRoi = e.bool(); + break; + case 20: + r.bytevc1Enable = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.height && e.hasOwnProperty("height") && !(a.isInteger(e.height) || e.height && a.isInteger(e.height.low) && a.isInteger(e.height.high))) return "height: integer|Long expected"; + if (null != e.width && e.hasOwnProperty("width") && !(a.isInteger(e.width) || e.width && a.isInteger(e.width.low) && a.isInteger(e.width.high))) return "width: integer|Long expected"; + if (null != e.fps && e.hasOwnProperty("fps") && !(a.isInteger(e.fps) || e.fps && a.isInteger(e.fps.low) && a.isInteger(e.fps.high))) return "fps: integer|Long expected"; + if (null != e.maxBitrate && e.hasOwnProperty("maxBitrate") && !(a.isInteger(e.maxBitrate) || e.maxBitrate && a.isInteger(e.maxBitrate.low) && a.isInteger(e.maxBitrate.high))) return "maxBitrate: integer|Long expected"; + if (null != e.minBitrate && e.hasOwnProperty("minBitrate") && !(a.isInteger(e.minBitrate) || e.minBitrate && a.isInteger(e.minBitrate.low) && a.isInteger(e.minBitrate.high))) return "minBitrate: integer|Long expected"; + if (null != e.defaultBitrate && e.hasOwnProperty("defaultBitrate") && !(a.isInteger(e.defaultBitrate) || e.defaultBitrate && a.isInteger(e.defaultBitrate.low) && a.isInteger(e.defaultBitrate.high))) return "defaultBitrate: integer|Long expected"; + if (null != e.bitrateAdaptStrategy && e.hasOwnProperty("bitrateAdaptStrategy") && !(a.isInteger(e.bitrateAdaptStrategy) || e.bitrateAdaptStrategy && a.isInteger(e.bitrateAdaptStrategy.low) && a.isInteger(e.bitrateAdaptStrategy.high))) return "bitrateAdaptStrategy: integer|Long expected"; + if (null != e.anchorInteractProfile && e.hasOwnProperty("anchorInteractProfile") && !(a.isInteger(e.anchorInteractProfile) || e.anchorInteractProfile && a.isInteger(e.anchorInteractProfile.low) && a.isInteger(e.anchorInteractProfile.high))) return "anchorInteractProfile: integer|Long expected"; + if (null != e.audienceInteractProfile && e.hasOwnProperty("audienceInteractProfile") && !(a.isInteger(e.audienceInteractProfile) || e.audienceInteractProfile && a.isInteger(e.audienceInteractProfile.low) && a.isInteger(e.audienceInteractProfile.high))) return "audienceInteractProfile: integer|Long expected"; + if (null != e.hardwareEncode && e.hasOwnProperty("hardwareEncode") && "boolean" != typeof e.hardwareEncode) return "hardwareEncode: boolean expected"; + if (null != e.videoProfile && e.hasOwnProperty("videoProfile") && !(a.isInteger(e.videoProfile) || e.videoProfile && a.isInteger(e.videoProfile.low) && a.isInteger(e.videoProfile.high))) return "videoProfile: integer|Long expected"; + if (null != e.superResolution && e.hasOwnProperty("superResolution")) + { + var t = l.webcast.data.StreamUrl.StreamUrlExtra.SuperResolution.verify(e.superResolution); + if (t) return "superResolution." + t + } + return null != e.h265Enable && e.hasOwnProperty("h265Enable") && "boolean" != typeof e.h265Enable ? "h265Enable: boolean expected" : null != e.gopSec && e.hasOwnProperty("gopSec") && !(a.isInteger(e.gopSec) || e.gopSec && a.isInteger(e.gopSec.low) && a.isInteger(e.gopSec.high)) ? "gopSec: integer|Long expected" : null != e.bframeEnable && e.hasOwnProperty("bframeEnable") && "boolean" != typeof e.bframeEnable ? "bframeEnable: boolean expected" : null != e.roi && e.hasOwnProperty("roi") && "boolean" != typeof e.roi ? "roi: boolean expected" : null != e.swRoi && e.hasOwnProperty("swRoi") && "boolean" != typeof e.swRoi ? "swRoi: boolean expected" : null != e.bytevc1Enable && e.hasOwnProperty("bytevc1Enable") && "boolean" != typeof e.bytevc1Enable ? "bytevc1Enable: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.StreamUrl.StreamUrlExtra) return e; + var t = new l.webcast.data.StreamUrl.StreamUrlExtra; + if (null != e.height && (a.Long ? (t.height = a.Long.fromValue(e.height)).unsigned = !1 : "string" == typeof e.height ? t.height = parseInt(e.height, 10) : "number" == typeof e.height ? t.height = e.height : "object" == typeof e.height && (t.height = new a.LongBits(e.height.low >>> 0, e.height.high >>> 0).toNumber())), null != e.width && (a.Long ? (t.width = a.Long.fromValue(e.width)).unsigned = !1 : "string" == typeof e.width ? t.width = parseInt(e.width, 10) : "number" == typeof e.width ? t.width = e.width : "object" == typeof e.width && (t.width = new a.LongBits(e.width.low >>> 0, e.width.high >>> 0).toNumber())), null != e.fps && (a.Long ? (t.fps = a.Long.fromValue(e.fps)).unsigned = !1 : "string" == typeof e.fps ? t.fps = parseInt(e.fps, 10) : "number" == typeof e.fps ? t.fps = e.fps : "object" == typeof e.fps && (t.fps = new a.LongBits(e.fps.low >>> 0, e.fps.high >>> 0).toNumber())), null != e.maxBitrate && (a.Long ? (t.maxBitrate = a.Long.fromValue(e.maxBitrate)).unsigned = !1 : "string" == typeof e.maxBitrate ? t.maxBitrate = parseInt(e.maxBitrate, 10) : "number" == typeof e.maxBitrate ? t.maxBitrate = e.maxBitrate : "object" == typeof e.maxBitrate && (t.maxBitrate = new a.LongBits(e.maxBitrate.low >>> 0, e.maxBitrate.high >>> 0).toNumber())), null != e.minBitrate && (a.Long ? (t.minBitrate = a.Long.fromValue(e.minBitrate)).unsigned = !1 : "string" == typeof e.minBitrate ? t.minBitrate = parseInt(e.minBitrate, 10) : "number" == typeof e.minBitrate ? t.minBitrate = e.minBitrate : "object" == typeof e.minBitrate && (t.minBitrate = new a.LongBits(e.minBitrate.low >>> 0, e.minBitrate.high >>> 0).toNumber())), null != e.defaultBitrate && (a.Long ? (t.defaultBitrate = a.Long.fromValue(e.defaultBitrate)).unsigned = !1 : "string" == typeof e.defaultBitrate ? t.defaultBitrate = parseInt(e.defaultBitrate, 10) : "number" == typeof e.defaultBitrate ? t.defaultBitrate = e.defaultBitrate : "object" == typeof e.defaultBitrate && (t.defaultBitrate = new a.LongBits(e.defaultBitrate.low >>> 0, e.defaultBitrate.high >>> 0).toNumber())), null != e.bitrateAdaptStrategy && (a.Long ? (t.bitrateAdaptStrategy = a.Long.fromValue(e.bitrateAdaptStrategy)).unsigned = !1 : "string" == typeof e.bitrateAdaptStrategy ? t.bitrateAdaptStrategy = parseInt(e.bitrateAdaptStrategy, 10) : "number" == typeof e.bitrateAdaptStrategy ? t.bitrateAdaptStrategy = e.bitrateAdaptStrategy : "object" == typeof e.bitrateAdaptStrategy && (t.bitrateAdaptStrategy = new a.LongBits(e.bitrateAdaptStrategy.low >>> 0, e.bitrateAdaptStrategy.high >>> 0).toNumber())), null != e.anchorInteractProfile && (a.Long ? (t.anchorInteractProfile = a.Long.fromValue(e.anchorInteractProfile)).unsigned = !1 : "string" == typeof e.anchorInteractProfile ? t.anchorInteractProfile = parseInt(e.anchorInteractProfile, 10) : "number" == typeof e.anchorInteractProfile ? t.anchorInteractProfile = e.anchorInteractProfile : "object" == typeof e.anchorInteractProfile && (t.anchorInteractProfile = new a.LongBits(e.anchorInteractProfile.low >>> 0, e.anchorInteractProfile.high >>> 0).toNumber())), null != e.audienceInteractProfile && (a.Long ? (t.audienceInteractProfile = a.Long.fromValue(e.audienceInteractProfile)).unsigned = !1 : "string" == typeof e.audienceInteractProfile ? t.audienceInteractProfile = parseInt(e.audienceInteractProfile, 10) : "number" == typeof e.audienceInteractProfile ? t.audienceInteractProfile = e.audienceInteractProfile : "object" == typeof e.audienceInteractProfile && (t.audienceInteractProfile = new a.LongBits(e.audienceInteractProfile.low >>> 0, e.audienceInteractProfile.high >>> 0).toNumber())), null != e.hardwareEncode && (t.hardwareEncode = Boolean(e.hardwareEncode)), null != e.videoProfile && (a.Long ? (t.videoProfile = a.Long.fromValue(e.videoProfile)).unsigned = !1 : "string" == typeof e.videoProfile ? t.videoProfile = parseInt(e.videoProfile, 10) : "number" == typeof e.videoProfile ? t.videoProfile = e.videoProfile : "object" == typeof e.videoProfile && (t.videoProfile = new a.LongBits(e.videoProfile.low >>> 0, e.videoProfile.high >>> 0).toNumber())), null != e.superResolution) + { + if ("object" != typeof e.superResolution) throw TypeError(".webcast.data.StreamUrl.StreamUrlExtra.superResolution: object expected"); + t.superResolution = l.webcast.data.StreamUrl.StreamUrlExtra.SuperResolution.fromObject(e.superResolution) + } + return null != e.h265Enable && (t.h265Enable = Boolean(e.h265Enable)), null != e.gopSec && (a.Long ? (t.gopSec = a.Long.fromValue(e.gopSec)).unsigned = !1 : "string" == typeof e.gopSec ? t.gopSec = parseInt(e.gopSec, 10) : "number" == typeof e.gopSec ? t.gopSec = e.gopSec : "object" == typeof e.gopSec && (t.gopSec = new a.LongBits(e.gopSec.low >>> 0, e.gopSec.high >>> 0).toNumber())), null != e.bframeEnable && (t.bframeEnable = Boolean(e.bframeEnable)), null != e.roi && (t.roi = Boolean(e.roi)), null != e.swRoi && (t.swRoi = Boolean(e.swRoi)), null != e.bytevc1Enable && (t.bytevc1Enable = Boolean(e.bytevc1Enable)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.height = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.height = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.width = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.width = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.fps = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fps = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.maxBitrate = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.maxBitrate = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.minBitrate = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.minBitrate = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.defaultBitrate = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.defaultBitrate = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.bitrateAdaptStrategy = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.bitrateAdaptStrategy = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.anchorInteractProfile = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.anchorInteractProfile = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.audienceInteractProfile = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.audienceInteractProfile = t.longs === String ? "0" : 0; + if (n.hardwareEncode = !1, a.Long) + { + r = new a.Long(0, 0, !1); + n.videoProfile = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.videoProfile = t.longs === String ? "0" : 0; + if (n.superResolution = null, n.h265Enable = !1, a.Long) + { + r = new a.Long(0, 0, !1); + n.gopSec = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.gopSec = t.longs === String ? "0" : 0; + n.bframeEnable = !1, n.roi = !1, n.swRoi = !1, n.bytevc1Enable = !1 + } + return null != e.height && e.hasOwnProperty("height") && ("number" == typeof e.height ? n.height = t.longs === String ? String(e.height) : e.height : n.height = t.longs === String ? a.Long.prototype.toString.call(e.height) : t.longs === Number ? new a.LongBits(e.height.low >>> 0, e.height.high >>> 0).toNumber() : e.height), null != e.width && e.hasOwnProperty("width") && ("number" == typeof e.width ? n.width = t.longs === String ? String(e.width) : e.width : n.width = t.longs === String ? a.Long.prototype.toString.call(e.width) : t.longs === Number ? new a.LongBits(e.width.low >>> 0, e.width.high >>> 0).toNumber() : e.width), null != e.fps && e.hasOwnProperty("fps") && ("number" == typeof e.fps ? n.fps = t.longs === String ? String(e.fps) : e.fps : n.fps = t.longs === String ? a.Long.prototype.toString.call(e.fps) : t.longs === Number ? new a.LongBits(e.fps.low >>> 0, e.fps.high >>> 0).toNumber() : e.fps), null != e.maxBitrate && e.hasOwnProperty("maxBitrate") && ("number" == typeof e.maxBitrate ? n.maxBitrate = t.longs === String ? String(e.maxBitrate) : e.maxBitrate : n.maxBitrate = t.longs === String ? a.Long.prototype.toString.call(e.maxBitrate) : t.longs === Number ? new a.LongBits(e.maxBitrate.low >>> 0, e.maxBitrate.high >>> 0).toNumber() : e.maxBitrate), null != e.minBitrate && e.hasOwnProperty("minBitrate") && ("number" == typeof e.minBitrate ? n.minBitrate = t.longs === String ? String(e.minBitrate) : e.minBitrate : n.minBitrate = t.longs === String ? a.Long.prototype.toString.call(e.minBitrate) : t.longs === Number ? new a.LongBits(e.minBitrate.low >>> 0, e.minBitrate.high >>> 0).toNumber() : e.minBitrate), null != e.defaultBitrate && e.hasOwnProperty("defaultBitrate") && ("number" == typeof e.defaultBitrate ? n.defaultBitrate = t.longs === String ? String(e.defaultBitrate) : e.defaultBitrate : n.defaultBitrate = t.longs === String ? a.Long.prototype.toString.call(e.defaultBitrate) : t.longs === Number ? new a.LongBits(e.defaultBitrate.low >>> 0, e.defaultBitrate.high >>> 0).toNumber() : e.defaultBitrate), null != e.bitrateAdaptStrategy && e.hasOwnProperty("bitrateAdaptStrategy") && ("number" == typeof e.bitrateAdaptStrategy ? n.bitrateAdaptStrategy = t.longs === String ? String(e.bitrateAdaptStrategy) : e.bitrateAdaptStrategy : n.bitrateAdaptStrategy = t.longs === String ? a.Long.prototype.toString.call(e.bitrateAdaptStrategy) : t.longs === Number ? new a.LongBits(e.bitrateAdaptStrategy.low >>> 0, e.bitrateAdaptStrategy.high >>> 0).toNumber() : e.bitrateAdaptStrategy), null != e.anchorInteractProfile && e.hasOwnProperty("anchorInteractProfile") && ("number" == typeof e.anchorInteractProfile ? n.anchorInteractProfile = t.longs === String ? String(e.anchorInteractProfile) : e.anchorInteractProfile : n.anchorInteractProfile = t.longs === String ? a.Long.prototype.toString.call(e.anchorInteractProfile) : t.longs === Number ? new a.LongBits(e.anchorInteractProfile.low >>> 0, e.anchorInteractProfile.high >>> 0).toNumber() : e.anchorInteractProfile), null != e.audienceInteractProfile && e.hasOwnProperty("audienceInteractProfile") && ("number" == typeof e.audienceInteractProfile ? n.audienceInteractProfile = t.longs === String ? String(e.audienceInteractProfile) : e.audienceInteractProfile : n.audienceInteractProfile = t.longs === String ? a.Long.prototype.toString.call(e.audienceInteractProfile) : t.longs === Number ? new a.LongBits(e.audienceInteractProfile.low >>> 0, e.audienceInteractProfile.high >>> 0).toNumber() : e.audienceInteractProfile), null != e.hardwareEncode && e.hasOwnProperty("hardwareEncode") && (n.hardwareEncode = e.hardwareEncode), null != e.videoProfile && e.hasOwnProperty("videoProfile") && ("number" == typeof e.videoProfile ? n.videoProfile = t.longs === String ? String(e.videoProfile) : e.videoProfile : n.videoProfile = t.longs === String ? a.Long.prototype.toString.call(e.videoProfile) : t.longs === Number ? new a.LongBits(e.videoProfile.low >>> 0, e.videoProfile.high >>> 0).toNumber() : e.videoProfile), null != e.superResolution && e.hasOwnProperty("superResolution") && (n.superResolution = l.webcast.data.StreamUrl.StreamUrlExtra.SuperResolution.toObject(e.superResolution, t)), null != e.h265Enable && e.hasOwnProperty("h265Enable") && (n.h265Enable = e.h265Enable), null != e.gopSec && e.hasOwnProperty("gopSec") && ("number" == typeof e.gopSec ? n.gopSec = t.longs === String ? String(e.gopSec) : e.gopSec : n.gopSec = t.longs === String ? a.Long.prototype.toString.call(e.gopSec) : t.longs === Number ? new a.LongBits(e.gopSec.low >>> 0, e.gopSec.high >>> 0).toNumber() : e.gopSec), null != e.bframeEnable && e.hasOwnProperty("bframeEnable") && (n.bframeEnable = e.bframeEnable), null != e.roi && e.hasOwnProperty("roi") && (n.roi = e.roi), null != e.swRoi && e.hasOwnProperty("swRoi") && (n.swRoi = e.swRoi), null != e.bytevc1Enable && e.hasOwnProperty("bytevc1Enable") && (n.bytevc1Enable = e.bytevc1Enable), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.SuperResolution = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.enable = !1, e.prototype.strength = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.antialiasing = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.enable && Object.hasOwnProperty.call(e, "enable") && t.uint32(8).bool(e.enable), null != e.strength && Object.hasOwnProperty.call(e, "strength") && t.uint32(16).int64(e.strength), null != e.antialiasing && Object.hasOwnProperty.call(e, "antialiasing") && t.uint32(24).bool(e.antialiasing), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.StreamUrl.StreamUrlExtra.SuperResolution; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.enable = e.bool(); + break; + case 2: + r.strength = e.int64(); + break; + case 3: + r.antialiasing = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.enable && e.hasOwnProperty("enable") && "boolean" != typeof e.enable ? "enable: boolean expected" : null != e.strength && e.hasOwnProperty("strength") && !(a.isInteger(e.strength) || e.strength && a.isInteger(e.strength.low) && a.isInteger(e.strength.high)) ? "strength: integer|Long expected" : null != e.antialiasing && e.hasOwnProperty("antialiasing") && "boolean" != typeof e.antialiasing ? "antialiasing: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.StreamUrl.StreamUrlExtra.SuperResolution) return e; + var t = new l.webcast.data.StreamUrl.StreamUrlExtra.SuperResolution; + return null != e.enable && (t.enable = Boolean(e.enable)), null != e.strength && (a.Long ? (t.strength = a.Long.fromValue(e.strength)).unsigned = !1 : "string" == typeof e.strength ? t.strength = parseInt(e.strength, 10) : "number" == typeof e.strength ? t.strength = e.strength : "object" == typeof e.strength && (t.strength = new a.LongBits(e.strength.low >>> 0, e.strength.high >>> 0).toNumber())), null != e.antialiasing && (t.antialiasing = Boolean(e.antialiasing)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.enable = !1, a.Long) + { + var r = new a.Long(0, 0, !1); + n.strength = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.strength = t.longs === String ? "0" : 0; + n.antialiasing = !1 + } + return null != e.enable && e.hasOwnProperty("enable") && (n.enable = e.enable), null != e.strength && e.hasOwnProperty("strength") && ("number" == typeof e.strength ? n.strength = t.longs === String ? String(e.strength) : e.strength : n.strength = t.longs === String ? a.Long.prototype.toString.call(e.strength) : t.longs === Number ? new a.LongBits(e.strength.low >>> 0, e.strength.high >>> 0).toNumber() : e.strength), null != e.antialiasing && e.hasOwnProperty("antialiasing") && (n.antialiasing = e.antialiasing), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.LiveCoreSDKData = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.pullData = null, e.prototype.pushData = null, e.prototype.size = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.pullData && Object.hasOwnProperty.call(e, "pullData") && l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.encode(e.pullData, t.uint32(10).fork()).ldelim(), null != e.pushData && Object.hasOwnProperty.call(e, "pushData") && l.webcast.data.StreamUrl.LiveCoreSDKData.PushData.encode(e.pushData, t.uint32(18).fork()).ldelim(), null != e.size && Object.hasOwnProperty.call(e, "size") && t.uint32(26).string(e.size), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.StreamUrl.LiveCoreSDKData; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.pullData = l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.decode(e, e.uint32()); + break; + case 2: + r.pushData = l.webcast.data.StreamUrl.LiveCoreSDKData.PushData.decode(e, e.uint32()); + break; + case 3: + r.size = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.pullData && e.hasOwnProperty("pullData") && (t = l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.verify(e.pullData))) return "pullData." + t; + if (null != e.pushData && e.hasOwnProperty("pushData") && (t = l.webcast.data.StreamUrl.LiveCoreSDKData.PushData.verify(e.pushData))) return "pushData." + t; + return null != e.size && e.hasOwnProperty("size") && !a.isString(e.size) ? "size: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.StreamUrl.LiveCoreSDKData) return e; + var t = new l.webcast.data.StreamUrl.LiveCoreSDKData; + if (null != e.pullData) + { + if ("object" != typeof e.pullData) throw TypeError(".webcast.data.StreamUrl.LiveCoreSDKData.pullData: object expected"); + t.pullData = l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.fromObject(e.pullData) + } + if (null != e.pushData) + { + if ("object" != typeof e.pushData) throw TypeError(".webcast.data.StreamUrl.LiveCoreSDKData.pushData: object expected"); + t.pushData = l.webcast.data.StreamUrl.LiveCoreSDKData.PushData.fromObject(e.pushData) + } + return null != e.size && (t.size = String(e.size)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.pullData = null, n.pushData = null, n.size = ""), null != e.pullData && e.hasOwnProperty("pullData") && (n.pullData = l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.toObject(e.pullData, t)), null != e.pushData && e.hasOwnProperty("pushData") && (n.pushData = l.webcast.data.StreamUrl.LiveCoreSDKData.PushData.toObject(e.pushData, t)), null != e.size && e.hasOwnProperty("size") && (n.size = e.size), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.PullData = function () + { + function e(e) + { + if (this.hlsDataUnencrypted = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.streamData = "", e.prototype.options = null, e.prototype.version = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.hlsDataUnencrypted = a.emptyObject, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.streamData && Object.hasOwnProperty.call(e, "streamData") && t.uint32(10).string(e.streamData), null != e.options && Object.hasOwnProperty.call(e, "options") && l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.encode(e.options, t.uint32(18).fork()).ldelim(), null != e.version && Object.hasOwnProperty.call(e, "version") && t.uint32(24).int64(e.version), null != e.hlsDataUnencrypted && Object.hasOwnProperty.call(e, "hlsDataUnencrypted")) + for (var n = Object.keys(e.hlsDataUnencrypted), r = 0; r < n.length; ++r) t.uint32(34).fork().uint32(10).string(n[r]).uint32(18).string(e.hlsDataUnencrypted[n[r]]).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.StreamUrl.LiveCoreSDKData.PullData; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.streamData = e.string(); + break; + case 2: + s.options = l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.decode(e, e.uint32()); + break; + case 3: + s.version = e.int64(); + break; + case 4: + s.hlsDataUnencrypted === a.emptyObject && (s.hlsDataUnencrypted = {}); + var u = e.uint32() + e.pos; + for (n = "", r = ""; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.hlsDataUnencrypted[n] = r; + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.streamData && e.hasOwnProperty("streamData") && !a.isString(e.streamData)) return "streamData: string expected"; + if (null != e.options && e.hasOwnProperty("options")) + { + var t = l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.verify(e.options); + if (t) return "options." + t + } + if (null != e.version && e.hasOwnProperty("version") && !(a.isInteger(e.version) || e.version && a.isInteger(e.version.low) && a.isInteger(e.version.high))) return "version: integer|Long expected"; + if (null != e.hlsDataUnencrypted && e.hasOwnProperty("hlsDataUnencrypted")) + { + if (!a.isObject(e.hlsDataUnencrypted)) return "hlsDataUnencrypted: object expected"; + for (var n = Object.keys(e.hlsDataUnencrypted), r = 0; r < n.length; ++r) + if (!a.isString(e.hlsDataUnencrypted[n[r]])) return "hlsDataUnencrypted: string{k:string} expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.StreamUrl.LiveCoreSDKData.PullData) return e; + var t = new l.webcast.data.StreamUrl.LiveCoreSDKData.PullData; + if (null != e.streamData && (t.streamData = String(e.streamData)), null != e.options) + { + if ("object" != typeof e.options) throw TypeError(".webcast.data.StreamUrl.LiveCoreSDKData.PullData.options: object expected"); + t.options = l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.fromObject(e.options) + } + if (null != e.version && (a.Long ? (t.version = a.Long.fromValue(e.version)).unsigned = !1 : "string" == typeof e.version ? t.version = parseInt(e.version, 10) : "number" == typeof e.version ? t.version = e.version : "object" == typeof e.version && (t.version = new a.LongBits(e.version.low >>> 0, e.version.high >>> 0).toNumber())), e.hlsDataUnencrypted) + { + if ("object" != typeof e.hlsDataUnencrypted) throw TypeError(".webcast.data.StreamUrl.LiveCoreSDKData.PullData.hlsDataUnencrypted: object expected"); + t.hlsDataUnencrypted = {}; + for (var n = Object.keys(e.hlsDataUnencrypted), r = 0; r < n.length; ++r) t.hlsDataUnencrypted[n[r]] = String(e.hlsDataUnencrypted[n[r]]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.hlsDataUnencrypted = {}), t.defaults) + if (r.streamData = "", r.options = null, a.Long) + { + var o = new a.Long(0, 0, !1); + r.version = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.version = t.longs === String ? "0" : 0; + if (null != e.streamData && e.hasOwnProperty("streamData") && (r.streamData = e.streamData), null != e.options && e.hasOwnProperty("options") && (r.options = l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.toObject(e.options, t)), null != e.version && e.hasOwnProperty("version") && ("number" == typeof e.version ? r.version = t.longs === String ? String(e.version) : e.version : r.version = t.longs === String ? a.Long.prototype.toString.call(e.version) : t.longs === Number ? new a.LongBits(e.version.low >>> 0, e.version.high >>> 0).toNumber() : e.version), e.hlsDataUnencrypted && (n = Object.keys(e.hlsDataUnencrypted)).length) + { + r.hlsDataUnencrypted = {}; + for (var i = 0; i < n.length; ++i) r.hlsDataUnencrypted[n[i]] = e.hlsDataUnencrypted[n[i]] + } + return r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Options = function () + { + function e(e) + { + if (this.qualities = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.defaultQuality = null, e.prototype.qualities = a.emptyArray, e.prototype.vpassDefault = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.defaultQuality && Object.hasOwnProperty.call(e, "defaultQuality") && l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.Quality.encode(e.defaultQuality, t.uint32(10).fork()).ldelim(), null != e.qualities && e.qualities.length) + for (var n = 0; n < e.qualities.length; ++n) l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.Quality.encode(e.qualities[n], t.uint32(18).fork()).ldelim(); + return null != e.vpassDefault && Object.hasOwnProperty.call(e, "vpassDefault") && t.uint32(24).bool(e.vpassDefault), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.defaultQuality = l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.Quality.decode(e, e.uint32()); + break; + case 2: + r.qualities && r.qualities.length || (r.qualities = []), r.qualities.push(l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.Quality.decode(e, e.uint32())); + break; + case 3: + r.vpassDefault = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.defaultQuality && e.hasOwnProperty("defaultQuality") && (n = l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.Quality.verify(e.defaultQuality))) return "defaultQuality." + n; + if (null != e.qualities && e.hasOwnProperty("qualities")) + { + if (!Array.isArray(e.qualities)) return "qualities: array expected"; + for (var t = 0; t < e.qualities.length; ++t) + { + var n; + if (n = l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.Quality.verify(e.qualities[t])) return "qualities." + n + } + } + return null != e.vpassDefault && e.hasOwnProperty("vpassDefault") && "boolean" != typeof e.vpassDefault ? "vpassDefault: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options) return e; + var t = new l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options; + if (null != e.defaultQuality) + { + if ("object" != typeof e.defaultQuality) throw TypeError(".webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.defaultQuality: object expected"); + t.defaultQuality = l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.Quality.fromObject(e.defaultQuality) + } + if (e.qualities) + { + if (!Array.isArray(e.qualities)) throw TypeError(".webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.qualities: array expected"); + t.qualities = []; + for (var n = 0; n < e.qualities.length; ++n) + { + if ("object" != typeof e.qualities[n]) throw TypeError(".webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.qualities: object expected"); + t.qualities[n] = l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.Quality.fromObject(e.qualities[n]) + } + } + return null != e.vpassDefault && (t.vpassDefault = Boolean(e.vpassDefault)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.qualities = []), t.defaults && (n.defaultQuality = null, n.vpassDefault = !1), null != e.defaultQuality && e.hasOwnProperty("defaultQuality") && (n.defaultQuality = l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.Quality.toObject(e.defaultQuality, t)), e.qualities && e.qualities.length) + { + n.qualities = []; + for (var r = 0; r < e.qualities.length; ++r) n.qualities[r] = l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.Quality.toObject(e.qualities[r], t) + } + return null != e.vpassDefault && e.hasOwnProperty("vpassDefault") && (n.vpassDefault = e.vpassDefault), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Quality = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.name = "", e.prototype.sdkKey = "", e.prototype.vCodec = "", e.prototype.resolution = "", e.prototype.level = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(10).string(e.name), null != e.sdkKey && Object.hasOwnProperty.call(e, "sdkKey") && t.uint32(18).string(e.sdkKey), null != e.vCodec && Object.hasOwnProperty.call(e, "vCodec") && t.uint32(26).string(e.vCodec), null != e.resolution && Object.hasOwnProperty.call(e, "resolution") && t.uint32(34).string(e.resolution), null != e.level && Object.hasOwnProperty.call(e, "level") && t.uint32(40).int32(e.level), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.Quality; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.name = e.string(); + break; + case 2: + r.sdkKey = e.string(); + break; + case 3: + r.vCodec = e.string(); + break; + case 4: + r.resolution = e.string(); + break; + case 5: + r.level = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.name && e.hasOwnProperty("name") && !a.isString(e.name) ? "name: string expected" : null != e.sdkKey && e.hasOwnProperty("sdkKey") && !a.isString(e.sdkKey) ? "sdkKey: string expected" : null != e.vCodec && e.hasOwnProperty("vCodec") && !a.isString(e.vCodec) ? "vCodec: string expected" : null != e.resolution && e.hasOwnProperty("resolution") && !a.isString(e.resolution) ? "resolution: string expected" : null != e.level && e.hasOwnProperty("level") && !a.isInteger(e.level) ? "level: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.Quality) return e; + var t = new l.webcast.data.StreamUrl.LiveCoreSDKData.PullData.Options.Quality; + return null != e.name && (t.name = String(e.name)), null != e.sdkKey && (t.sdkKey = String(e.sdkKey)), null != e.vCodec && (t.vCodec = String(e.vCodec)), null != e.resolution && (t.resolution = String(e.resolution)), null != e.level && (t.level = 0 | e.level), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.name = "", n.sdkKey = "", n.vCodec = "", n.resolution = "", n.level = 0), null != e.name && e.hasOwnProperty("name") && (n.name = e.name), null != e.sdkKey && e.hasOwnProperty("sdkKey") && (n.sdkKey = e.sdkKey), null != e.vCodec && e.hasOwnProperty("vCodec") && (n.vCodec = e.vCodec), null != e.resolution && e.hasOwnProperty("resolution") && (n.resolution = e.resolution), null != e.level && e.hasOwnProperty("level") && (n.level = e.level), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e + }(), e.PushData = function () + { + function e(e) + { + if (this.resolutionParams = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.resolutionParams = a.emptyObject, e.prototype.pushStreamLevel = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.resolutionParams && Object.hasOwnProperty.call(e, "resolutionParams")) + for (var n = Object.keys(e.resolutionParams), r = 0; r < n.length; ++r) t.uint32(10).fork().uint32(10).string(n[r]), l.webcast.data.StreamUrl.LiveCoreSDKData.PushData.ResolutionParams.encode(e.resolutionParams[n[r]], t.uint32(18).fork()).ldelim().ldelim(); + return null != e.pushStreamLevel && Object.hasOwnProperty.call(e, "pushStreamLevel") && t.uint32(16).int32(e.pushStreamLevel), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.StreamUrl.LiveCoreSDKData.PushData; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.resolutionParams === a.emptyObject && (s.resolutionParams = {}); + var u = e.uint32() + e.pos; + for (n = "", r = null; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = l.webcast.data.StreamUrl.LiveCoreSDKData.PushData.ResolutionParams.decode(e, e.uint32()); + break; + default: + e.skipType(7 & p) + } + } + s.resolutionParams[n] = r; + break; + case 2: + s.pushStreamLevel = e.int32(); + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.resolutionParams && e.hasOwnProperty("resolutionParams")) + { + if (!a.isObject(e.resolutionParams)) return "resolutionParams: object expected"; + for (var t = Object.keys(e.resolutionParams), n = 0; n < t.length; ++n) + { + var r = l.webcast.data.StreamUrl.LiveCoreSDKData.PushData.ResolutionParams.verify(e.resolutionParams[t[n]]); + if (r) return "resolutionParams." + r + } + } + return null != e.pushStreamLevel && e.hasOwnProperty("pushStreamLevel") && !a.isInteger(e.pushStreamLevel) ? "pushStreamLevel: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.StreamUrl.LiveCoreSDKData.PushData) return e; + var t = new l.webcast.data.StreamUrl.LiveCoreSDKData.PushData; + if (e.resolutionParams) + { + if ("object" != typeof e.resolutionParams) throw TypeError(".webcast.data.StreamUrl.LiveCoreSDKData.PushData.resolutionParams: object expected"); + t.resolutionParams = {}; + for (var n = Object.keys(e.resolutionParams), r = 0; r < n.length; ++r) + { + if ("object" != typeof e.resolutionParams[n[r]]) throw TypeError(".webcast.data.StreamUrl.LiveCoreSDKData.PushData.resolutionParams: object expected"); + t.resolutionParams[n[r]] = l.webcast.data.StreamUrl.LiveCoreSDKData.PushData.ResolutionParams.fromObject(e.resolutionParams[n[r]]) + } + } + return null != e.pushStreamLevel && (t.pushStreamLevel = 0 | e.pushStreamLevel), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.resolutionParams = {}), t.defaults && (r.pushStreamLevel = 0), e.resolutionParams && (n = Object.keys(e.resolutionParams)).length) + { + r.resolutionParams = {}; + for (var o = 0; o < n.length; ++o) r.resolutionParams[n[o]] = l.webcast.data.StreamUrl.LiveCoreSDKData.PushData.ResolutionParams.toObject(e.resolutionParams[n[o]], t) + } + return null != e.pushStreamLevel && e.hasOwnProperty("pushStreamLevel") && (r.pushStreamLevel = e.pushStreamLevel), r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.ResolutionParams = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.width = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.height = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.defaultBitrate = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.minBitrate = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.maxBitrate = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.fps = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.width && Object.hasOwnProperty.call(e, "width") && t.uint32(8).int64(e.width), null != e.height && Object.hasOwnProperty.call(e, "height") && t.uint32(16).int64(e.height), null != e.defaultBitrate && Object.hasOwnProperty.call(e, "defaultBitrate") && t.uint32(24).int64(e.defaultBitrate), null != e.minBitrate && Object.hasOwnProperty.call(e, "minBitrate") && t.uint32(32).int64(e.minBitrate), null != e.maxBitrate && Object.hasOwnProperty.call(e, "maxBitrate") && t.uint32(40).int64(e.maxBitrate), null != e.fps && Object.hasOwnProperty.call(e, "fps") && t.uint32(48).int64(e.fps), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.StreamUrl.LiveCoreSDKData.PushData.ResolutionParams; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.width = e.int64(); + break; + case 2: + r.height = e.int64(); + break; + case 3: + r.defaultBitrate = e.int64(); + break; + case 4: + r.minBitrate = e.int64(); + break; + case 5: + r.maxBitrate = e.int64(); + break; + case 6: + r.fps = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.width && e.hasOwnProperty("width") && !(a.isInteger(e.width) || e.width && a.isInteger(e.width.low) && a.isInteger(e.width.high)) ? "width: integer|Long expected" : null != e.height && e.hasOwnProperty("height") && !(a.isInteger(e.height) || e.height && a.isInteger(e.height.low) && a.isInteger(e.height.high)) ? "height: integer|Long expected" : null != e.defaultBitrate && e.hasOwnProperty("defaultBitrate") && !(a.isInteger(e.defaultBitrate) || e.defaultBitrate && a.isInteger(e.defaultBitrate.low) && a.isInteger(e.defaultBitrate.high)) ? "defaultBitrate: integer|Long expected" : null != e.minBitrate && e.hasOwnProperty("minBitrate") && !(a.isInteger(e.minBitrate) || e.minBitrate && a.isInteger(e.minBitrate.low) && a.isInteger(e.minBitrate.high)) ? "minBitrate: integer|Long expected" : null != e.maxBitrate && e.hasOwnProperty("maxBitrate") && !(a.isInteger(e.maxBitrate) || e.maxBitrate && a.isInteger(e.maxBitrate.low) && a.isInteger(e.maxBitrate.high)) ? "maxBitrate: integer|Long expected" : null != e.fps && e.hasOwnProperty("fps") && !(a.isInteger(e.fps) || e.fps && a.isInteger(e.fps.low) && a.isInteger(e.fps.high)) ? "fps: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.StreamUrl.LiveCoreSDKData.PushData.ResolutionParams) return e; + var t = new l.webcast.data.StreamUrl.LiveCoreSDKData.PushData.ResolutionParams; + return null != e.width && (a.Long ? (t.width = a.Long.fromValue(e.width)).unsigned = !1 : "string" == typeof e.width ? t.width = parseInt(e.width, 10) : "number" == typeof e.width ? t.width = e.width : "object" == typeof e.width && (t.width = new a.LongBits(e.width.low >>> 0, e.width.high >>> 0).toNumber())), null != e.height && (a.Long ? (t.height = a.Long.fromValue(e.height)).unsigned = !1 : "string" == typeof e.height ? t.height = parseInt(e.height, 10) : "number" == typeof e.height ? t.height = e.height : "object" == typeof e.height && (t.height = new a.LongBits(e.height.low >>> 0, e.height.high >>> 0).toNumber())), null != e.defaultBitrate && (a.Long ? (t.defaultBitrate = a.Long.fromValue(e.defaultBitrate)).unsigned = !1 : "string" == typeof e.defaultBitrate ? t.defaultBitrate = parseInt(e.defaultBitrate, 10) : "number" == typeof e.defaultBitrate ? t.defaultBitrate = e.defaultBitrate : "object" == typeof e.defaultBitrate && (t.defaultBitrate = new a.LongBits(e.defaultBitrate.low >>> 0, e.defaultBitrate.high >>> 0).toNumber())), null != e.minBitrate && (a.Long ? (t.minBitrate = a.Long.fromValue(e.minBitrate)).unsigned = !1 : "string" == typeof e.minBitrate ? t.minBitrate = parseInt(e.minBitrate, 10) : "number" == typeof e.minBitrate ? t.minBitrate = e.minBitrate : "object" == typeof e.minBitrate && (t.minBitrate = new a.LongBits(e.minBitrate.low >>> 0, e.minBitrate.high >>> 0).toNumber())), null != e.maxBitrate && (a.Long ? (t.maxBitrate = a.Long.fromValue(e.maxBitrate)).unsigned = !1 : "string" == typeof e.maxBitrate ? t.maxBitrate = parseInt(e.maxBitrate, 10) : "number" == typeof e.maxBitrate ? t.maxBitrate = e.maxBitrate : "object" == typeof e.maxBitrate && (t.maxBitrate = new a.LongBits(e.maxBitrate.low >>> 0, e.maxBitrate.high >>> 0).toNumber())), null != e.fps && (a.Long ? (t.fps = a.Long.fromValue(e.fps)).unsigned = !1 : "string" == typeof e.fps ? t.fps = parseInt(e.fps, 10) : "number" == typeof e.fps ? t.fps = e.fps : "object" == typeof e.fps && (t.fps = new a.LongBits(e.fps.low >>> 0, e.fps.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.width = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.width = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.height = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.height = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.defaultBitrate = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.defaultBitrate = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.minBitrate = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.minBitrate = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.maxBitrate = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.maxBitrate = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.fps = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fps = t.longs === String ? "0" : 0 + } + return null != e.width && e.hasOwnProperty("width") && ("number" == typeof e.width ? n.width = t.longs === String ? String(e.width) : e.width : n.width = t.longs === String ? a.Long.prototype.toString.call(e.width) : t.longs === Number ? new a.LongBits(e.width.low >>> 0, e.width.high >>> 0).toNumber() : e.width), null != e.height && e.hasOwnProperty("height") && ("number" == typeof e.height ? n.height = t.longs === String ? String(e.height) : e.height : n.height = t.longs === String ? a.Long.prototype.toString.call(e.height) : t.longs === Number ? new a.LongBits(e.height.low >>> 0, e.height.high >>> 0).toNumber() : e.height), null != e.defaultBitrate && e.hasOwnProperty("defaultBitrate") && ("number" == typeof e.defaultBitrate ? n.defaultBitrate = t.longs === String ? String(e.defaultBitrate) : e.defaultBitrate : n.defaultBitrate = t.longs === String ? a.Long.prototype.toString.call(e.defaultBitrate) : t.longs === Number ? new a.LongBits(e.defaultBitrate.low >>> 0, e.defaultBitrate.high >>> 0).toNumber() : e.defaultBitrate), null != e.minBitrate && e.hasOwnProperty("minBitrate") && ("number" == typeof e.minBitrate ? n.minBitrate = t.longs === String ? String(e.minBitrate) : e.minBitrate : n.minBitrate = t.longs === String ? a.Long.prototype.toString.call(e.minBitrate) : t.longs === Number ? new a.LongBits(e.minBitrate.low >>> 0, e.minBitrate.high >>> 0).toNumber() : e.minBitrate), null != e.maxBitrate && e.hasOwnProperty("maxBitrate") && ("number" == typeof e.maxBitrate ? n.maxBitrate = t.longs === String ? String(e.maxBitrate) : e.maxBitrate : n.maxBitrate = t.longs === String ? a.Long.prototype.toString.call(e.maxBitrate) : t.longs === Number ? new a.LongBits(e.maxBitrate.low >>> 0, e.maxBitrate.high >>> 0).toNumber() : e.maxBitrate), null != e.fps && e.hasOwnProperty("fps") && ("number" == typeof e.fps ? n.fps = t.longs === String ? String(e.fps) : e.fps : n.fps = t.longs === String ? a.Long.prototype.toString.call(e.fps) : t.longs === Number ? new a.LongBits(e.fps.low >>> 0, e.fps.high >>> 0).toNumber() : e.fps), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e + }(), e + }(), e.VSCameraInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.cameraId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.cameraIdStr = "", e.prototype.title = "", e.prototype.cover = null, e.prototype.coverVertical = null, e.prototype.streamInfo = null, e.prototype.startTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.endTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.style = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.cameraId && Object.hasOwnProperty.call(e, "cameraId") && t.uint32(8).int64(e.cameraId), null != e.cameraIdStr && Object.hasOwnProperty.call(e, "cameraIdStr") && t.uint32(18).string(e.cameraIdStr), null != e.title && Object.hasOwnProperty.call(e, "title") && t.uint32(26).string(e.title), null != e.cover && Object.hasOwnProperty.call(e, "cover") && l.webcast.data.Image.encode(e.cover, t.uint32(34).fork()).ldelim(), null != e.coverVertical && Object.hasOwnProperty.call(e, "coverVertical") && l.webcast.data.Image.encode(e.coverVertical, t.uint32(42).fork()).ldelim(), null != e.streamInfo && Object.hasOwnProperty.call(e, "streamInfo") && l.webcast.data.StreamUrl.encode(e.streamInfo, t.uint32(50).fork()).ldelim(), null != e.startTime && Object.hasOwnProperty.call(e, "startTime") && t.uint32(56).int64(e.startTime), null != e.endTime && Object.hasOwnProperty.call(e, "endTime") && t.uint32(64).int64(e.endTime), null != e.style && Object.hasOwnProperty.call(e, "style") && t.uint32(72).int32(e.style), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.VSCameraInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.cameraId = e.int64(); + break; + case 2: + r.cameraIdStr = e.string(); + break; + case 3: + r.title = e.string(); + break; + case 4: + r.cover = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 5: + r.coverVertical = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 6: + r.streamInfo = l.webcast.data.StreamUrl.decode(e, e.uint32()); + break; + case 7: + r.startTime = e.int64(); + break; + case 8: + r.endTime = e.int64(); + break; + case 9: + r.style = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.cameraId && e.hasOwnProperty("cameraId") && !(a.isInteger(e.cameraId) || e.cameraId && a.isInteger(e.cameraId.low) && a.isInteger(e.cameraId.high))) return "cameraId: integer|Long expected"; + if (null != e.cameraIdStr && e.hasOwnProperty("cameraIdStr") && !a.isString(e.cameraIdStr)) return "cameraIdStr: string expected"; + if (null != e.title && e.hasOwnProperty("title") && !a.isString(e.title)) return "title: string expected"; + var t; + if (null != e.cover && e.hasOwnProperty("cover") && (t = l.webcast.data.Image.verify(e.cover))) return "cover." + t; + if (null != e.coverVertical && e.hasOwnProperty("coverVertical") && (t = l.webcast.data.Image.verify(e.coverVertical))) return "coverVertical." + t; + if (null != e.streamInfo && e.hasOwnProperty("streamInfo") && (t = l.webcast.data.StreamUrl.verify(e.streamInfo))) return "streamInfo." + t; + if (null != e.startTime && e.hasOwnProperty("startTime") && !(a.isInteger(e.startTime) || e.startTime && a.isInteger(e.startTime.low) && a.isInteger(e.startTime.high))) return "startTime: integer|Long expected"; + if (null != e.endTime && e.hasOwnProperty("endTime") && !(a.isInteger(e.endTime) || e.endTime && a.isInteger(e.endTime.low) && a.isInteger(e.endTime.high))) return "endTime: integer|Long expected"; + if (null != e.style && e.hasOwnProperty("style")) switch (e.style) + { + default: + return "style: enum value expected"; + case 0: + case 1: + case 2: + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.VSCameraInfo) return e; + var t = new l.webcast.data.VSCameraInfo; + if (null != e.cameraId && (a.Long ? (t.cameraId = a.Long.fromValue(e.cameraId)).unsigned = !1 : "string" == typeof e.cameraId ? t.cameraId = parseInt(e.cameraId, 10) : "number" == typeof e.cameraId ? t.cameraId = e.cameraId : "object" == typeof e.cameraId && (t.cameraId = new a.LongBits(e.cameraId.low >>> 0, e.cameraId.high >>> 0).toNumber())), null != e.cameraIdStr && (t.cameraIdStr = String(e.cameraIdStr)), null != e.title && (t.title = String(e.title)), null != e.cover) + { + if ("object" != typeof e.cover) throw TypeError(".webcast.data.VSCameraInfo.cover: object expected"); + t.cover = l.webcast.data.Image.fromObject(e.cover) + } + if (null != e.coverVertical) + { + if ("object" != typeof e.coverVertical) throw TypeError(".webcast.data.VSCameraInfo.coverVertical: object expected"); + t.coverVertical = l.webcast.data.Image.fromObject(e.coverVertical) + } + if (null != e.streamInfo) + { + if ("object" != typeof e.streamInfo) throw TypeError(".webcast.data.VSCameraInfo.streamInfo: object expected"); + t.streamInfo = l.webcast.data.StreamUrl.fromObject(e.streamInfo) + } + switch (null != e.startTime && (a.Long ? (t.startTime = a.Long.fromValue(e.startTime)).unsigned = !1 : "string" == typeof e.startTime ? t.startTime = parseInt(e.startTime, 10) : "number" == typeof e.startTime ? t.startTime = e.startTime : "object" == typeof e.startTime && (t.startTime = new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber())), null != e.endTime && (a.Long ? (t.endTime = a.Long.fromValue(e.endTime)).unsigned = !1 : "string" == typeof e.endTime ? t.endTime = parseInt(e.endTime, 10) : "number" == typeof e.endTime ? t.endTime = e.endTime : "object" == typeof e.endTime && (t.endTime = new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber())), e.style) + { + case "episodeDefault": + case 0: + t.style = 0; + break; + case "episodeAcross": + case 1: + t.style = 1; + break; + case "episodeVertical": + case 2: + t.style = 2 + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.cameraId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.cameraId = t.longs === String ? "0" : 0; + if (n.cameraIdStr = "", n.title = "", n.cover = null, n.coverVertical = null, n.streamInfo = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.startTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.startTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.endTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.endTime = t.longs === String ? "0" : 0; + n.style = t.enums === String ? "episodeDefault" : 0 + } + return null != e.cameraId && e.hasOwnProperty("cameraId") && ("number" == typeof e.cameraId ? n.cameraId = t.longs === String ? String(e.cameraId) : e.cameraId : n.cameraId = t.longs === String ? a.Long.prototype.toString.call(e.cameraId) : t.longs === Number ? new a.LongBits(e.cameraId.low >>> 0, e.cameraId.high >>> 0).toNumber() : e.cameraId), null != e.cameraIdStr && e.hasOwnProperty("cameraIdStr") && (n.cameraIdStr = e.cameraIdStr), null != e.title && e.hasOwnProperty("title") && (n.title = e.title), null != e.cover && e.hasOwnProperty("cover") && (n.cover = l.webcast.data.Image.toObject(e.cover, t)), null != e.coverVertical && e.hasOwnProperty("coverVertical") && (n.coverVertical = l.webcast.data.Image.toObject(e.coverVertical, t)), null != e.streamInfo && e.hasOwnProperty("streamInfo") && (n.streamInfo = l.webcast.data.StreamUrl.toObject(e.streamInfo, t)), null != e.startTime && e.hasOwnProperty("startTime") && ("number" == typeof e.startTime ? n.startTime = t.longs === String ? String(e.startTime) : e.startTime : n.startTime = t.longs === String ? a.Long.prototype.toString.call(e.startTime) : t.longs === Number ? new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber() : e.startTime), null != e.endTime && e.hasOwnProperty("endTime") && ("number" == typeof e.endTime ? n.endTime = t.longs === String ? String(e.endTime) : e.endTime : n.endTime = t.longs === String ? a.Long.prototype.toString.call(e.endTime) : t.longs === Number ? new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber() : e.endTime), null != e.style && e.hasOwnProperty("style") && (n.style = t.enums === String ? l.webcast.data.EpisodeStyle[e.style] : e.style), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.WebStreamUrl = function () + { + function e(e) + { + if (this.flvPullUrl = {}, this.hlsPullUrlMap = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.flvPullUrl = a.emptyObject, e.prototype.defaultResolution = "", e.prototype.hlsPullUrlMap = a.emptyObject, e.prototype.hlsPullUrl = "", e.prototype.streamOrientation = 0, e.prototype.liveCoreSdkData = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.flvPullUrl && Object.hasOwnProperty.call(e, "flvPullUrl")) + for (var n = Object.keys(e.flvPullUrl), r = 0; r < n.length; ++r) t.uint32(10).fork().uint32(10).string(n[r]).uint32(18).string(e.flvPullUrl[n[r]]).ldelim(); + if (null != e.defaultResolution && Object.hasOwnProperty.call(e, "defaultResolution") && t.uint32(18).string(e.defaultResolution), null != e.hlsPullUrlMap && Object.hasOwnProperty.call(e, "hlsPullUrlMap")) + for (n = Object.keys(e.hlsPullUrlMap), r = 0; r < n.length; ++r) t.uint32(26).fork().uint32(10).string(n[r]).uint32(18).string(e.hlsPullUrlMap[n[r]]).ldelim(); + return null != e.hlsPullUrl && Object.hasOwnProperty.call(e, "hlsPullUrl") && t.uint32(34).string(e.hlsPullUrl), null != e.streamOrientation && Object.hasOwnProperty.call(e, "streamOrientation") && t.uint32(40).int32(e.streamOrientation), null != e.liveCoreSdkData && Object.hasOwnProperty.call(e, "liveCoreSdkData") && l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.encode(e.liveCoreSdkData, t.uint32(50).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.WebStreamUrl; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.flvPullUrl === a.emptyObject && (s.flvPullUrl = {}); + var u = e.uint32() + e.pos; + for (n = "", r = ""; e.pos < u;) + { + switch ((p = e.uint32()) >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.flvPullUrl[n] = r; + break; + case 2: + s.defaultResolution = e.string(); + break; + case 3: + s.hlsPullUrlMap === a.emptyObject && (s.hlsPullUrlMap = {}); + u = e.uint32() + e.pos; + for (n = "", r = ""; e.pos < u;) + { + var p; + switch ((p = e.uint32()) >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.hlsPullUrlMap[n] = r; + break; + case 4: + s.hlsPullUrl = e.string(); + break; + case 5: + s.streamOrientation = e.int32(); + break; + case 6: + s.liveCoreSdkData = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.decode(e, e.uint32()); + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.flvPullUrl && e.hasOwnProperty("flvPullUrl")) + { + if (!a.isObject(e.flvPullUrl)) return "flvPullUrl: object expected"; + for (var t = Object.keys(e.flvPullUrl), n = 0; n < t.length; ++n) + if (!a.isString(e.flvPullUrl[t[n]])) return "flvPullUrl: string{k:string} expected" + } + if (null != e.defaultResolution && e.hasOwnProperty("defaultResolution") && !a.isString(e.defaultResolution)) return "defaultResolution: string expected"; + if (null != e.hlsPullUrlMap && e.hasOwnProperty("hlsPullUrlMap")) + { + if (!a.isObject(e.hlsPullUrlMap)) return "hlsPullUrlMap: object expected"; + for (t = Object.keys(e.hlsPullUrlMap), n = 0; n < t.length; ++n) + if (!a.isString(e.hlsPullUrlMap[t[n]])) return "hlsPullUrlMap: string{k:string} expected" + } + if (null != e.hlsPullUrl && e.hasOwnProperty("hlsPullUrl") && !a.isString(e.hlsPullUrl)) return "hlsPullUrl: string expected"; + if (null != e.streamOrientation && e.hasOwnProperty("streamOrientation") && !a.isInteger(e.streamOrientation)) return "streamOrientation: integer expected"; + if (null != e.liveCoreSdkData && e.hasOwnProperty("liveCoreSdkData")) + { + var r = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.verify(e.liveCoreSdkData); + if (r) return "liveCoreSdkData." + r + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.WebStreamUrl) return e; + var t = new l.webcast.data.WebStreamUrl; + if (e.flvPullUrl) + { + if ("object" != typeof e.flvPullUrl) throw TypeError(".webcast.data.WebStreamUrl.flvPullUrl: object expected"); + t.flvPullUrl = {}; + for (var n = Object.keys(e.flvPullUrl), r = 0; r < n.length; ++r) t.flvPullUrl[n[r]] = String(e.flvPullUrl[n[r]]) + } + if (null != e.defaultResolution && (t.defaultResolution = String(e.defaultResolution)), e.hlsPullUrlMap) + { + if ("object" != typeof e.hlsPullUrlMap) throw TypeError(".webcast.data.WebStreamUrl.hlsPullUrlMap: object expected"); + t.hlsPullUrlMap = {}; + for (n = Object.keys(e.hlsPullUrlMap), r = 0; r < n.length; ++r) t.hlsPullUrlMap[n[r]] = String(e.hlsPullUrlMap[n[r]]) + } + if (null != e.hlsPullUrl && (t.hlsPullUrl = String(e.hlsPullUrl)), null != e.streamOrientation && (t.streamOrientation = 0 | e.streamOrientation), null != e.liveCoreSdkData) + { + if ("object" != typeof e.liveCoreSdkData) throw TypeError(".webcast.data.WebStreamUrl.liveCoreSdkData: object expected"); + t.liveCoreSdkData = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.fromObject(e.liveCoreSdkData) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.flvPullUrl = {}, r.hlsPullUrlMap = {}), t.defaults && (r.defaultResolution = "", r.hlsPullUrl = "", r.streamOrientation = 0, r.liveCoreSdkData = null), e.flvPullUrl && (n = Object.keys(e.flvPullUrl)).length) + { + r.flvPullUrl = {}; + for (var o = 0; o < n.length; ++o) r.flvPullUrl[n[o]] = e.flvPullUrl[n[o]] + } + if (null != e.defaultResolution && e.hasOwnProperty("defaultResolution") && (r.defaultResolution = e.defaultResolution), e.hlsPullUrlMap && (n = Object.keys(e.hlsPullUrlMap)).length) + { + r.hlsPullUrlMap = {}; + for (o = 0; o < n.length; ++o) r.hlsPullUrlMap[n[o]] = e.hlsPullUrlMap[n[o]] + } + return null != e.hlsPullUrl && e.hasOwnProperty("hlsPullUrl") && (r.hlsPullUrl = e.hlsPullUrl), null != e.streamOrientation && e.hasOwnProperty("streamOrientation") && (r.streamOrientation = e.streamOrientation), null != e.liveCoreSdkData && e.hasOwnProperty("liveCoreSdkData") && (r.liveCoreSdkData = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.toObject(e.liveCoreSdkData, t)), r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.WebLiveCoreSDKData = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.pullData = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.pullData && Object.hasOwnProperty.call(e, "pullData") && l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.encode(e.pullData, t.uint32(10).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.WebStreamUrl.WebLiveCoreSDKData; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.pullData = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.decode(e, e.uint32()); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.pullData && e.hasOwnProperty("pullData")) + { + var t = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.verify(e.pullData); + if (t) return "pullData." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.WebStreamUrl.WebLiveCoreSDKData) return e; + var t = new l.webcast.data.WebStreamUrl.WebLiveCoreSDKData; + if (null != e.pullData) + { + if ("object" != typeof e.pullData) throw TypeError(".webcast.data.WebStreamUrl.WebLiveCoreSDKData.pullData: object expected"); + t.pullData = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.fromObject(e.pullData) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.pullData = null), null != e.pullData && e.hasOwnProperty("pullData") && (n.pullData = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.toObject(e.pullData, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.PullData = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.options = null, e.prototype.streamData = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.streamData && Object.hasOwnProperty.call(e, "streamData") && t.uint32(10).string(e.streamData), null != e.options && Object.hasOwnProperty.call(e, "options") && l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.encode(e.options, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 2: + r.options = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.decode(e, e.uint32()); + break; + case 1: + r.streamData = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.options && e.hasOwnProperty("options")) + { + var t = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.verify(e.options); + if (t) return "options." + t + } + return null != e.streamData && e.hasOwnProperty("streamData") && !a.isString(e.streamData) ? "streamData: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData) return e; + var t = new l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData; + if (null != e.options) + { + if ("object" != typeof e.options) throw TypeError(".webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.options: object expected"); + t.options = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.fromObject(e.options) + } + return null != e.streamData && (t.streamData = String(e.streamData)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.streamData = "", n.options = null), null != e.streamData && e.hasOwnProperty("streamData") && (n.streamData = e.streamData), null != e.options && e.hasOwnProperty("options") && (n.options = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.toObject(e.options, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Options = function () + { + function e(e) + { + if (this.qualities = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.defaultQuality = null, e.prototype.qualities = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.defaultQuality && Object.hasOwnProperty.call(e, "defaultQuality") && l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.Quality.encode(e.defaultQuality, t.uint32(10).fork()).ldelim(), null != e.qualities && e.qualities.length) + for (var n = 0; n < e.qualities.length; ++n) l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.Quality.encode(e.qualities[n], t.uint32(18).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.defaultQuality = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.Quality.decode(e, e.uint32()); + break; + case 2: + r.qualities && r.qualities.length || (r.qualities = []), r.qualities.push(l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.Quality.decode(e, e.uint32())); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.defaultQuality && e.hasOwnProperty("defaultQuality") && (n = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.Quality.verify(e.defaultQuality))) return "defaultQuality." + n; + if (null != e.qualities && e.hasOwnProperty("qualities")) + { + if (!Array.isArray(e.qualities)) return "qualities: array expected"; + for (var t = 0; t < e.qualities.length; ++t) + { + var n; + if (n = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.Quality.verify(e.qualities[t])) return "qualities." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options) return e; + var t = new l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options; + if (null != e.defaultQuality) + { + if ("object" != typeof e.defaultQuality) throw TypeError(".webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.defaultQuality: object expected"); + t.defaultQuality = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.Quality.fromObject(e.defaultQuality) + } + if (e.qualities) + { + if (!Array.isArray(e.qualities)) throw TypeError(".webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.qualities: array expected"); + t.qualities = []; + for (var n = 0; n < e.qualities.length; ++n) + { + if ("object" != typeof e.qualities[n]) throw TypeError(".webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.qualities: object expected"); + t.qualities[n] = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.Quality.fromObject(e.qualities[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.qualities = []), t.defaults && (n.defaultQuality = null), null != e.defaultQuality && e.hasOwnProperty("defaultQuality") && (n.defaultQuality = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.Quality.toObject(e.defaultQuality, t)), e.qualities && e.qualities.length) + { + n.qualities = []; + for (var r = 0; r < e.qualities.length; ++r) n.qualities[r] = l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.Quality.toObject(e.qualities[r], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Quality = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.name = "", e.prototype.sdkKey = "", e.prototype.vCodec = "", e.prototype.resolution = "", e.prototype.level = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(10).string(e.name), null != e.sdkKey && Object.hasOwnProperty.call(e, "sdkKey") && t.uint32(18).string(e.sdkKey), null != e.vCodec && Object.hasOwnProperty.call(e, "vCodec") && t.uint32(26).string(e.vCodec), null != e.resolution && Object.hasOwnProperty.call(e, "resolution") && t.uint32(34).string(e.resolution), null != e.level && Object.hasOwnProperty.call(e, "level") && t.uint32(40).int32(e.level), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.Quality; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.name = e.string(); + break; + case 2: + r.sdkKey = e.string(); + break; + case 3: + r.vCodec = e.string(); + break; + case 4: + r.resolution = e.string(); + break; + case 5: + r.level = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.name && e.hasOwnProperty("name") && !a.isString(e.name) ? "name: string expected" : null != e.sdkKey && e.hasOwnProperty("sdkKey") && !a.isString(e.sdkKey) ? "sdkKey: string expected" : null != e.vCodec && e.hasOwnProperty("vCodec") && !a.isString(e.vCodec) ? "vCodec: string expected" : null != e.resolution && e.hasOwnProperty("resolution") && !a.isString(e.resolution) ? "resolution: string expected" : null != e.level && e.hasOwnProperty("level") && !a.isInteger(e.level) ? "level: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.Quality) return e; + var t = new l.webcast.data.WebStreamUrl.WebLiveCoreSDKData.PullData.Options.Quality; + return null != e.name && (t.name = String(e.name)), null != e.sdkKey && (t.sdkKey = String(e.sdkKey)), null != e.vCodec && (t.vCodec = String(e.vCodec)), null != e.resolution && (t.resolution = String(e.resolution)), null != e.level && (t.level = 0 | e.level), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.name = "", n.sdkKey = "", n.vCodec = "", n.resolution = "", n.level = 0), null != e.name && e.hasOwnProperty("name") && (n.name = e.name), null != e.sdkKey && e.hasOwnProperty("sdkKey") && (n.sdkKey = e.sdkKey), null != e.vCodec && e.hasOwnProperty("vCodec") && (n.vCodec = e.vCodec), null != e.resolution && e.hasOwnProperty("resolution") && (n.resolution = e.resolution), null != e.level && e.hasOwnProperty("level") && (n.level = e.level), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e + }(), e + }(), e + }(), e.LinkMic = function () + { + function e(e) + { + if (this.battleScores = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.channelId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.channelInfo = null, e.prototype.battleScores = a.emptyArray, e.prototype.battleSettings = null, e.prototype.rivalAnchorId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.channelId && Object.hasOwnProperty.call(e, "channelId") && t.uint32(8).int64(e.channelId), null != e.channelInfo && Object.hasOwnProperty.call(e, "channelInfo") && l.webcast.data.LinkMic.LinkMicChannelInfo.encode(e.channelInfo, t.uint32(18).fork()).ldelim(), null != e.battleScores && e.battleScores.length) + for (var n = 0; n < e.battleScores.length; ++n) l.webcast.data.LinkMic.LinkMicBattleScore.encode(e.battleScores[n], t.uint32(26).fork()).ldelim(); + return null != e.battleSettings && Object.hasOwnProperty.call(e, "battleSettings") && l.webcast.data.LinkMic.LinkMicBattleSetting.encode(e.battleSettings, t.uint32(34).fork()).ldelim(), null != e.rivalAnchorId && Object.hasOwnProperty.call(e, "rivalAnchorId") && t.uint32(40).int64(e.rivalAnchorId), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkMic; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.channelId = e.int64(); + break; + case 2: + r.channelInfo = l.webcast.data.LinkMic.LinkMicChannelInfo.decode(e, e.uint32()); + break; + case 3: + r.battleScores && r.battleScores.length || (r.battleScores = []), r.battleScores.push(l.webcast.data.LinkMic.LinkMicBattleScore.decode(e, e.uint32())); + break; + case 4: + r.battleSettings = l.webcast.data.LinkMic.LinkMicBattleSetting.decode(e, e.uint32()); + break; + case 5: + r.rivalAnchorId = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.channelId && e.hasOwnProperty("channelId") && !(a.isInteger(e.channelId) || e.channelId && a.isInteger(e.channelId.low) && a.isInteger(e.channelId.high))) return "channelId: integer|Long expected"; + if (null != e.channelInfo && e.hasOwnProperty("channelInfo") && (n = l.webcast.data.LinkMic.LinkMicChannelInfo.verify(e.channelInfo))) return "channelInfo." + n; + if (null != e.battleScores && e.hasOwnProperty("battleScores")) + { + if (!Array.isArray(e.battleScores)) return "battleScores: array expected"; + for (var t = 0; t < e.battleScores.length; ++t) + { + var n; + if (n = l.webcast.data.LinkMic.LinkMicBattleScore.verify(e.battleScores[t])) return "battleScores." + n + } + } + if (null != e.battleSettings && e.hasOwnProperty("battleSettings") && (n = l.webcast.data.LinkMic.LinkMicBattleSetting.verify(e.battleSettings))) return "battleSettings." + n; + return null != e.rivalAnchorId && e.hasOwnProperty("rivalAnchorId") && !(a.isInteger(e.rivalAnchorId) || e.rivalAnchorId && a.isInteger(e.rivalAnchorId.low) && a.isInteger(e.rivalAnchorId.high)) ? "rivalAnchorId: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkMic) return e; + var t = new l.webcast.data.LinkMic; + if (null != e.channelId && (a.Long ? (t.channelId = a.Long.fromValue(e.channelId)).unsigned = !1 : "string" == typeof e.channelId ? t.channelId = parseInt(e.channelId, 10) : "number" == typeof e.channelId ? t.channelId = e.channelId : "object" == typeof e.channelId && (t.channelId = new a.LongBits(e.channelId.low >>> 0, e.channelId.high >>> 0).toNumber())), null != e.channelInfo) + { + if ("object" != typeof e.channelInfo) throw TypeError(".webcast.data.LinkMic.channelInfo: object expected"); + t.channelInfo = l.webcast.data.LinkMic.LinkMicChannelInfo.fromObject(e.channelInfo) + } + if (e.battleScores) + { + if (!Array.isArray(e.battleScores)) throw TypeError(".webcast.data.LinkMic.battleScores: array expected"); + t.battleScores = []; + for (var n = 0; n < e.battleScores.length; ++n) + { + if ("object" != typeof e.battleScores[n]) throw TypeError(".webcast.data.LinkMic.battleScores: object expected"); + t.battleScores[n] = l.webcast.data.LinkMic.LinkMicBattleScore.fromObject(e.battleScores[n]) + } + } + if (null != e.battleSettings) + { + if ("object" != typeof e.battleSettings) throw TypeError(".webcast.data.LinkMic.battleSettings: object expected"); + t.battleSettings = l.webcast.data.LinkMic.LinkMicBattleSetting.fromObject(e.battleSettings) + } + return null != e.rivalAnchorId && (a.Long ? (t.rivalAnchorId = a.Long.fromValue(e.rivalAnchorId)).unsigned = !1 : "string" == typeof e.rivalAnchorId ? t.rivalAnchorId = parseInt(e.rivalAnchorId, 10) : "number" == typeof e.rivalAnchorId ? t.rivalAnchorId = e.rivalAnchorId : "object" == typeof e.rivalAnchorId && (t.rivalAnchorId = new a.LongBits(e.rivalAnchorId.low >>> 0, e.rivalAnchorId.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.battleScores = []), t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.channelId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.channelId = t.longs === String ? "0" : 0; + if (n.channelInfo = null, n.battleSettings = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.rivalAnchorId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.rivalAnchorId = t.longs === String ? "0" : 0 + } + if (null != e.channelId && e.hasOwnProperty("channelId") && ("number" == typeof e.channelId ? n.channelId = t.longs === String ? String(e.channelId) : e.channelId : n.channelId = t.longs === String ? a.Long.prototype.toString.call(e.channelId) : t.longs === Number ? new a.LongBits(e.channelId.low >>> 0, e.channelId.high >>> 0).toNumber() : e.channelId), null != e.channelInfo && e.hasOwnProperty("channelInfo") && (n.channelInfo = l.webcast.data.LinkMic.LinkMicChannelInfo.toObject(e.channelInfo, t)), e.battleScores && e.battleScores.length) + { + n.battleScores = []; + for (var o = 0; o < e.battleScores.length; ++o) n.battleScores[o] = l.webcast.data.LinkMic.LinkMicBattleScore.toObject(e.battleScores[o], t) + } + return null != e.battleSettings && e.hasOwnProperty("battleSettings") && (n.battleSettings = l.webcast.data.LinkMic.LinkMicBattleSetting.toObject(e.battleSettings, t)), null != e.rivalAnchorId && e.hasOwnProperty("rivalAnchorId") && ("number" == typeof e.rivalAnchorId ? n.rivalAnchorId = t.longs === String ? String(e.rivalAnchorId) : e.rivalAnchorId : n.rivalAnchorId = t.longs === String ? a.Long.prototype.toString.call(e.rivalAnchorId) : t.longs === Number ? new a.LongBits(e.rivalAnchorId.low >>> 0, e.rivalAnchorId.high >>> 0).toNumber() : e.rivalAnchorId), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.LinkMicChannelInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.layout = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.vendor = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.dimension = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.layout && Object.hasOwnProperty.call(e, "layout") && t.uint32(8).int64(e.layout), null != e.vendor && Object.hasOwnProperty.call(e, "vendor") && t.uint32(16).int64(e.vendor), null != e.dimension && Object.hasOwnProperty.call(e, "dimension") && t.uint32(24).int64(e.dimension), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkMic.LinkMicChannelInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.layout = e.int64(); + break; + case 2: + r.vendor = e.int64(); + break; + case 3: + r.dimension = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.layout && e.hasOwnProperty("layout") && !(a.isInteger(e.layout) || e.layout && a.isInteger(e.layout.low) && a.isInteger(e.layout.high)) ? "layout: integer|Long expected" : null != e.vendor && e.hasOwnProperty("vendor") && !(a.isInteger(e.vendor) || e.vendor && a.isInteger(e.vendor.low) && a.isInteger(e.vendor.high)) ? "vendor: integer|Long expected" : null != e.dimension && e.hasOwnProperty("dimension") && !(a.isInteger(e.dimension) || e.dimension && a.isInteger(e.dimension.low) && a.isInteger(e.dimension.high)) ? "dimension: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkMic.LinkMicChannelInfo) return e; + var t = new l.webcast.data.LinkMic.LinkMicChannelInfo; + return null != e.layout && (a.Long ? (t.layout = a.Long.fromValue(e.layout)).unsigned = !1 : "string" == typeof e.layout ? t.layout = parseInt(e.layout, 10) : "number" == typeof e.layout ? t.layout = e.layout : "object" == typeof e.layout && (t.layout = new a.LongBits(e.layout.low >>> 0, e.layout.high >>> 0).toNumber())), null != e.vendor && (a.Long ? (t.vendor = a.Long.fromValue(e.vendor)).unsigned = !1 : "string" == typeof e.vendor ? t.vendor = parseInt(e.vendor, 10) : "number" == typeof e.vendor ? t.vendor = e.vendor : "object" == typeof e.vendor && (t.vendor = new a.LongBits(e.vendor.low >>> 0, e.vendor.high >>> 0).toNumber())), null != e.dimension && (a.Long ? (t.dimension = a.Long.fromValue(e.dimension)).unsigned = !1 : "string" == typeof e.dimension ? t.dimension = parseInt(e.dimension, 10) : "number" == typeof e.dimension ? t.dimension = e.dimension : "object" == typeof e.dimension && (t.dimension = new a.LongBits(e.dimension.low >>> 0, e.dimension.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.layout = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.layout = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.vendor = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.vendor = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.dimension = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.dimension = t.longs === String ? "0" : 0 + } + return null != e.layout && e.hasOwnProperty("layout") && ("number" == typeof e.layout ? n.layout = t.longs === String ? String(e.layout) : e.layout : n.layout = t.longs === String ? a.Long.prototype.toString.call(e.layout) : t.longs === Number ? new a.LongBits(e.layout.low >>> 0, e.layout.high >>> 0).toNumber() : e.layout), null != e.vendor && e.hasOwnProperty("vendor") && ("number" == typeof e.vendor ? n.vendor = t.longs === String ? String(e.vendor) : e.vendor : n.vendor = t.longs === String ? a.Long.prototype.toString.call(e.vendor) : t.longs === Number ? new a.LongBits(e.vendor.low >>> 0, e.vendor.high >>> 0).toNumber() : e.vendor), null != e.dimension && e.hasOwnProperty("dimension") && ("number" == typeof e.dimension ? n.dimension = t.longs === String ? String(e.dimension) : e.dimension : n.dimension = t.longs === String ? a.Long.prototype.toString.call(e.dimension) : t.longs === Number ? new a.LongBits(e.dimension.low >>> 0, e.dimension.high >>> 0).toNumber() : e.dimension), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkMicBattleScore = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.userId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.score = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.userId && Object.hasOwnProperty.call(e, "userId") && t.uint32(8).int64(e.userId), null != e.score && Object.hasOwnProperty.call(e, "score") && t.uint32(16).int64(e.score), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkMic.LinkMicBattleScore; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.userId = e.int64(); + break; + case 2: + r.score = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.userId && e.hasOwnProperty("userId") && !(a.isInteger(e.userId) || e.userId && a.isInteger(e.userId.low) && a.isInteger(e.userId.high)) ? "userId: integer|Long expected" : null != e.score && e.hasOwnProperty("score") && !(a.isInteger(e.score) || e.score && a.isInteger(e.score.low) && a.isInteger(e.score.high)) ? "score: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkMic.LinkMicBattleScore) return e; + var t = new l.webcast.data.LinkMic.LinkMicBattleScore; + return null != e.userId && (a.Long ? (t.userId = a.Long.fromValue(e.userId)).unsigned = !1 : "string" == typeof e.userId ? t.userId = parseInt(e.userId, 10) : "number" == typeof e.userId ? t.userId = e.userId : "object" == typeof e.userId && (t.userId = new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber())), null != e.score && (a.Long ? (t.score = a.Long.fromValue(e.score)).unsigned = !1 : "string" == typeof e.score ? t.score = parseInt(e.score, 10) : "number" == typeof e.score ? t.score = e.score : "object" == typeof e.score && (t.score = new a.LongBits(e.score.low >>> 0, e.score.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.userId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.userId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.score = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.score = t.longs === String ? "0" : 0 + } + return null != e.userId && e.hasOwnProperty("userId") && ("number" == typeof e.userId ? n.userId = t.longs === String ? String(e.userId) : e.userId : n.userId = t.longs === String ? a.Long.prototype.toString.call(e.userId) : t.longs === Number ? new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber() : e.userId), null != e.score && e.hasOwnProperty("score") && ("number" == typeof e.score ? n.score = t.longs === String ? String(e.score) : e.score : n.score = t.longs === String ? a.Long.prototype.toString.call(e.score) : t.longs === Number ? new a.LongBits(e.score.low >>> 0, e.score.high >>> 0).toNumber() : e.score), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkMicBattleSetting = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.channelId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.duration = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.startTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.startTimeMs = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.theme = "", e.prototype.finished = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.battleId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.matchType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.channelId && Object.hasOwnProperty.call(e, "channelId") && t.uint32(8).int64(e.channelId), null != e.duration && Object.hasOwnProperty.call(e, "duration") && t.uint32(16).int64(e.duration), null != e.startTime && Object.hasOwnProperty.call(e, "startTime") && t.uint32(24).int64(e.startTime), null != e.startTimeMs && Object.hasOwnProperty.call(e, "startTimeMs") && t.uint32(32).int64(e.startTimeMs), null != e.theme && Object.hasOwnProperty.call(e, "theme") && t.uint32(42).string(e.theme), null != e.finished && Object.hasOwnProperty.call(e, "finished") && t.uint32(48).int64(e.finished), null != e.battleId && Object.hasOwnProperty.call(e, "battleId") && t.uint32(56).int64(e.battleId), null != e.matchType && Object.hasOwnProperty.call(e, "matchType") && t.uint32(64).int64(e.matchType), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkMic.LinkMicBattleSetting; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.channelId = e.int64(); + break; + case 2: + r.duration = e.int64(); + break; + case 3: + r.startTime = e.int64(); + break; + case 4: + r.startTimeMs = e.int64(); + break; + case 5: + r.theme = e.string(); + break; + case 6: + r.finished = e.int64(); + break; + case 7: + r.battleId = e.int64(); + break; + case 8: + r.matchType = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.channelId && e.hasOwnProperty("channelId") && !(a.isInteger(e.channelId) || e.channelId && a.isInteger(e.channelId.low) && a.isInteger(e.channelId.high)) ? "channelId: integer|Long expected" : null != e.duration && e.hasOwnProperty("duration") && !(a.isInteger(e.duration) || e.duration && a.isInteger(e.duration.low) && a.isInteger(e.duration.high)) ? "duration: integer|Long expected" : null != e.startTime && e.hasOwnProperty("startTime") && !(a.isInteger(e.startTime) || e.startTime && a.isInteger(e.startTime.low) && a.isInteger(e.startTime.high)) ? "startTime: integer|Long expected" : null != e.startTimeMs && e.hasOwnProperty("startTimeMs") && !(a.isInteger(e.startTimeMs) || e.startTimeMs && a.isInteger(e.startTimeMs.low) && a.isInteger(e.startTimeMs.high)) ? "startTimeMs: integer|Long expected" : null != e.theme && e.hasOwnProperty("theme") && !a.isString(e.theme) ? "theme: string expected" : null != e.finished && e.hasOwnProperty("finished") && !(a.isInteger(e.finished) || e.finished && a.isInteger(e.finished.low) && a.isInteger(e.finished.high)) ? "finished: integer|Long expected" : null != e.battleId && e.hasOwnProperty("battleId") && !(a.isInteger(e.battleId) || e.battleId && a.isInteger(e.battleId.low) && a.isInteger(e.battleId.high)) ? "battleId: integer|Long expected" : null != e.matchType && e.hasOwnProperty("matchType") && !(a.isInteger(e.matchType) || e.matchType && a.isInteger(e.matchType.low) && a.isInteger(e.matchType.high)) ? "matchType: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkMic.LinkMicBattleSetting) return e; + var t = new l.webcast.data.LinkMic.LinkMicBattleSetting; + return null != e.channelId && (a.Long ? (t.channelId = a.Long.fromValue(e.channelId)).unsigned = !1 : "string" == typeof e.channelId ? t.channelId = parseInt(e.channelId, 10) : "number" == typeof e.channelId ? t.channelId = e.channelId : "object" == typeof e.channelId && (t.channelId = new a.LongBits(e.channelId.low >>> 0, e.channelId.high >>> 0).toNumber())), null != e.duration && (a.Long ? (t.duration = a.Long.fromValue(e.duration)).unsigned = !1 : "string" == typeof e.duration ? t.duration = parseInt(e.duration, 10) : "number" == typeof e.duration ? t.duration = e.duration : "object" == typeof e.duration && (t.duration = new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber())), null != e.startTime && (a.Long ? (t.startTime = a.Long.fromValue(e.startTime)).unsigned = !1 : "string" == typeof e.startTime ? t.startTime = parseInt(e.startTime, 10) : "number" == typeof e.startTime ? t.startTime = e.startTime : "object" == typeof e.startTime && (t.startTime = new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber())), null != e.startTimeMs && (a.Long ? (t.startTimeMs = a.Long.fromValue(e.startTimeMs)).unsigned = !1 : "string" == typeof e.startTimeMs ? t.startTimeMs = parseInt(e.startTimeMs, 10) : "number" == typeof e.startTimeMs ? t.startTimeMs = e.startTimeMs : "object" == typeof e.startTimeMs && (t.startTimeMs = new a.LongBits(e.startTimeMs.low >>> 0, e.startTimeMs.high >>> 0).toNumber())), null != e.theme && (t.theme = String(e.theme)), null != e.finished && (a.Long ? (t.finished = a.Long.fromValue(e.finished)).unsigned = !1 : "string" == typeof e.finished ? t.finished = parseInt(e.finished, 10) : "number" == typeof e.finished ? t.finished = e.finished : "object" == typeof e.finished && (t.finished = new a.LongBits(e.finished.low >>> 0, e.finished.high >>> 0).toNumber())), null != e.battleId && (a.Long ? (t.battleId = a.Long.fromValue(e.battleId)).unsigned = !1 : "string" == typeof e.battleId ? t.battleId = parseInt(e.battleId, 10) : "number" == typeof e.battleId ? t.battleId = e.battleId : "object" == typeof e.battleId && (t.battleId = new a.LongBits(e.battleId.low >>> 0, e.battleId.high >>> 0).toNumber())), null != e.matchType && (a.Long ? (t.matchType = a.Long.fromValue(e.matchType)).unsigned = !1 : "string" == typeof e.matchType ? t.matchType = parseInt(e.matchType, 10) : "number" == typeof e.matchType ? t.matchType = e.matchType : "object" == typeof e.matchType && (t.matchType = new a.LongBits(e.matchType.low >>> 0, e.matchType.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.channelId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.channelId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.duration = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.duration = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.startTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.startTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.startTimeMs = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.startTimeMs = t.longs === String ? "0" : 0; + if (n.theme = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.finished = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.finished = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.battleId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.battleId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.matchType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.matchType = t.longs === String ? "0" : 0 + } + return null != e.channelId && e.hasOwnProperty("channelId") && ("number" == typeof e.channelId ? n.channelId = t.longs === String ? String(e.channelId) : e.channelId : n.channelId = t.longs === String ? a.Long.prototype.toString.call(e.channelId) : t.longs === Number ? new a.LongBits(e.channelId.low >>> 0, e.channelId.high >>> 0).toNumber() : e.channelId), null != e.duration && e.hasOwnProperty("duration") && ("number" == typeof e.duration ? n.duration = t.longs === String ? String(e.duration) : e.duration : n.duration = t.longs === String ? a.Long.prototype.toString.call(e.duration) : t.longs === Number ? new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber() : e.duration), null != e.startTime && e.hasOwnProperty("startTime") && ("number" == typeof e.startTime ? n.startTime = t.longs === String ? String(e.startTime) : e.startTime : n.startTime = t.longs === String ? a.Long.prototype.toString.call(e.startTime) : t.longs === Number ? new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber() : e.startTime), null != e.startTimeMs && e.hasOwnProperty("startTimeMs") && ("number" == typeof e.startTimeMs ? n.startTimeMs = t.longs === String ? String(e.startTimeMs) : e.startTimeMs : n.startTimeMs = t.longs === String ? a.Long.prototype.toString.call(e.startTimeMs) : t.longs === Number ? new a.LongBits(e.startTimeMs.low >>> 0, e.startTimeMs.high >>> 0).toNumber() : e.startTimeMs), null != e.theme && e.hasOwnProperty("theme") && (n.theme = e.theme), null != e.finished && e.hasOwnProperty("finished") && ("number" == typeof e.finished ? n.finished = t.longs === String ? String(e.finished) : e.finished : n.finished = t.longs === String ? a.Long.prototype.toString.call(e.finished) : t.longs === Number ? new a.LongBits(e.finished.low >>> 0, e.finished.high >>> 0).toNumber() : e.finished), null != e.battleId && e.hasOwnProperty("battleId") && ("number" == typeof e.battleId ? n.battleId = t.longs === String ? String(e.battleId) : e.battleId : n.battleId = t.longs === String ? a.Long.prototype.toString.call(e.battleId) : t.longs === Number ? new a.LongBits(e.battleId.low >>> 0, e.battleId.high >>> 0).toNumber() : e.battleId), null != e.matchType && e.hasOwnProperty("matchType") && ("number" == typeof e.matchType ? n.matchType = t.longs === String ? String(e.matchType) : e.matchType : n.matchType = t.longs === String ? a.Long.prototype.toString.call(e.matchType) : t.longs === Number ? new a.LongBits(e.matchType.low >>> 0, e.matchType.high >>> 0).toNumber() : e.matchType), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.Reservation = function () + { + function e(e) + { + if (this.btnRect = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.appointmentId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.anchorId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.roomId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.startTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.endTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.btnRect = a.emptyArray, e.prototype.btnColor = "", e.prototype.isReserved = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.appointmentId && Object.hasOwnProperty.call(e, "appointmentId") && t.uint32(8).int64(e.appointmentId), null != e.anchorId && Object.hasOwnProperty.call(e, "anchorId") && t.uint32(16).int64(e.anchorId), null != e.roomId && Object.hasOwnProperty.call(e, "roomId") && t.uint32(24).int64(e.roomId), null != e.startTime && Object.hasOwnProperty.call(e, "startTime") && t.uint32(32).int64(e.startTime), null != e.endTime && Object.hasOwnProperty.call(e, "endTime") && t.uint32(40).int64(e.endTime), null != e.btnRect && e.btnRect.length) + { + t.uint32(50).fork(); + for (var n = 0; n < e.btnRect.length; ++n) t.int64(e.btnRect[n]); + t.ldelim() + } + return null != e.btnColor && Object.hasOwnProperty.call(e, "btnColor") && t.uint32(58).string(e.btnColor), null != e.isReserved && Object.hasOwnProperty.call(e, "isReserved") && t.uint32(64).bool(e.isReserved), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.Reservation; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.appointmentId = e.int64(); + break; + case 2: + r.anchorId = e.int64(); + break; + case 3: + r.roomId = e.int64(); + break; + case 4: + r.startTime = e.int64(); + break; + case 5: + r.endTime = e.int64(); + break; + case 6: + if (r.btnRect && r.btnRect.length || (r.btnRect = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.btnRect.push(e.int64()); + else r.btnRect.push(e.int64()); + break; + case 7: + r.btnColor = e.string(); + break; + case 8: + r.isReserved = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.appointmentId && e.hasOwnProperty("appointmentId") && !(a.isInteger(e.appointmentId) || e.appointmentId && a.isInteger(e.appointmentId.low) && a.isInteger(e.appointmentId.high))) return "appointmentId: integer|Long expected"; + if (null != e.anchorId && e.hasOwnProperty("anchorId") && !(a.isInteger(e.anchorId) || e.anchorId && a.isInteger(e.anchorId.low) && a.isInteger(e.anchorId.high))) return "anchorId: integer|Long expected"; + if (null != e.roomId && e.hasOwnProperty("roomId") && !(a.isInteger(e.roomId) || e.roomId && a.isInteger(e.roomId.low) && a.isInteger(e.roomId.high))) return "roomId: integer|Long expected"; + if (null != e.startTime && e.hasOwnProperty("startTime") && !(a.isInteger(e.startTime) || e.startTime && a.isInteger(e.startTime.low) && a.isInteger(e.startTime.high))) return "startTime: integer|Long expected"; + if (null != e.endTime && e.hasOwnProperty("endTime") && !(a.isInteger(e.endTime) || e.endTime && a.isInteger(e.endTime.low) && a.isInteger(e.endTime.high))) return "endTime: integer|Long expected"; + if (null != e.btnRect && e.hasOwnProperty("btnRect")) + { + if (!Array.isArray(e.btnRect)) return "btnRect: array expected"; + for (var t = 0; t < e.btnRect.length; ++t) + if (!(a.isInteger(e.btnRect[t]) || e.btnRect[t] && a.isInteger(e.btnRect[t].low) && a.isInteger(e.btnRect[t].high))) return "btnRect: integer|Long[] expected" + } + return null != e.btnColor && e.hasOwnProperty("btnColor") && !a.isString(e.btnColor) ? "btnColor: string expected" : null != e.isReserved && e.hasOwnProperty("isReserved") && "boolean" != typeof e.isReserved ? "isReserved: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.Reservation) return e; + var t = new l.webcast.data.Reservation; + if (null != e.appointmentId && (a.Long ? (t.appointmentId = a.Long.fromValue(e.appointmentId)).unsigned = !1 : "string" == typeof e.appointmentId ? t.appointmentId = parseInt(e.appointmentId, 10) : "number" == typeof e.appointmentId ? t.appointmentId = e.appointmentId : "object" == typeof e.appointmentId && (t.appointmentId = new a.LongBits(e.appointmentId.low >>> 0, e.appointmentId.high >>> 0).toNumber())), null != e.anchorId && (a.Long ? (t.anchorId = a.Long.fromValue(e.anchorId)).unsigned = !1 : "string" == typeof e.anchorId ? t.anchorId = parseInt(e.anchorId, 10) : "number" == typeof e.anchorId ? t.anchorId = e.anchorId : "object" == typeof e.anchorId && (t.anchorId = new a.LongBits(e.anchorId.low >>> 0, e.anchorId.high >>> 0).toNumber())), null != e.roomId && (a.Long ? (t.roomId = a.Long.fromValue(e.roomId)).unsigned = !1 : "string" == typeof e.roomId ? t.roomId = parseInt(e.roomId, 10) : "number" == typeof e.roomId ? t.roomId = e.roomId : "object" == typeof e.roomId && (t.roomId = new a.LongBits(e.roomId.low >>> 0, e.roomId.high >>> 0).toNumber())), null != e.startTime && (a.Long ? (t.startTime = a.Long.fromValue(e.startTime)).unsigned = !1 : "string" == typeof e.startTime ? t.startTime = parseInt(e.startTime, 10) : "number" == typeof e.startTime ? t.startTime = e.startTime : "object" == typeof e.startTime && (t.startTime = new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber())), null != e.endTime && (a.Long ? (t.endTime = a.Long.fromValue(e.endTime)).unsigned = !1 : "string" == typeof e.endTime ? t.endTime = parseInt(e.endTime, 10) : "number" == typeof e.endTime ? t.endTime = e.endTime : "object" == typeof e.endTime && (t.endTime = new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber())), e.btnRect) + { + if (!Array.isArray(e.btnRect)) throw TypeError(".webcast.data.Reservation.btnRect: array expected"); + t.btnRect = []; + for (var n = 0; n < e.btnRect.length; ++n) a.Long ? (t.btnRect[n] = a.Long.fromValue(e.btnRect[n])).unsigned = !1 : "string" == typeof e.btnRect[n] ? t.btnRect[n] = parseInt(e.btnRect[n], 10) : "number" == typeof e.btnRect[n] ? t.btnRect[n] = e.btnRect[n] : "object" == typeof e.btnRect[n] && (t.btnRect[n] = new a.LongBits(e.btnRect[n].low >>> 0, e.btnRect[n].high >>> 0).toNumber()) + } + return null != e.btnColor && (t.btnColor = String(e.btnColor)), null != e.isReserved && (t.isReserved = Boolean(e.isReserved)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.btnRect = []), t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.appointmentId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.appointmentId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.anchorId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.anchorId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.roomId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.roomId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.startTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.startTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.endTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.endTime = t.longs === String ? "0" : 0; + n.btnColor = "", n.isReserved = !1 + } + if (null != e.appointmentId && e.hasOwnProperty("appointmentId") && ("number" == typeof e.appointmentId ? n.appointmentId = t.longs === String ? String(e.appointmentId) : e.appointmentId : n.appointmentId = t.longs === String ? a.Long.prototype.toString.call(e.appointmentId) : t.longs === Number ? new a.LongBits(e.appointmentId.low >>> 0, e.appointmentId.high >>> 0).toNumber() : e.appointmentId), null != e.anchorId && e.hasOwnProperty("anchorId") && ("number" == typeof e.anchorId ? n.anchorId = t.longs === String ? String(e.anchorId) : e.anchorId : n.anchorId = t.longs === String ? a.Long.prototype.toString.call(e.anchorId) : t.longs === Number ? new a.LongBits(e.anchorId.low >>> 0, e.anchorId.high >>> 0).toNumber() : e.anchorId), null != e.roomId && e.hasOwnProperty("roomId") && ("number" == typeof e.roomId ? n.roomId = t.longs === String ? String(e.roomId) : e.roomId : n.roomId = t.longs === String ? a.Long.prototype.toString.call(e.roomId) : t.longs === Number ? new a.LongBits(e.roomId.low >>> 0, e.roomId.high >>> 0).toNumber() : e.roomId), null != e.startTime && e.hasOwnProperty("startTime") && ("number" == typeof e.startTime ? n.startTime = t.longs === String ? String(e.startTime) : e.startTime : n.startTime = t.longs === String ? a.Long.prototype.toString.call(e.startTime) : t.longs === Number ? new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber() : e.startTime), null != e.endTime && e.hasOwnProperty("endTime") && ("number" == typeof e.endTime ? n.endTime = t.longs === String ? String(e.endTime) : e.endTime : n.endTime = t.longs === String ? a.Long.prototype.toString.call(e.endTime) : t.longs === Number ? new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber() : e.endTime), e.btnRect && e.btnRect.length) + { + n.btnRect = []; + for (var o = 0; o < e.btnRect.length; ++o) "number" == typeof e.btnRect[o] ? n.btnRect[o] = t.longs === String ? String(e.btnRect[o]) : e.btnRect[o] : n.btnRect[o] = t.longs === String ? a.Long.prototype.toString.call(e.btnRect[o]) : t.longs === Number ? new a.LongBits(e.btnRect[o].low >>> 0, e.btnRect[o].high >>> 0).toNumber() : e.btnRect[o] + } + return null != e.btnColor && e.hasOwnProperty("btnColor") && (n.btnColor = e.btnColor), null != e.isReserved && e.hasOwnProperty("isReserved") && (n.isReserved = e.isReserved), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.Decoration = function () + { + function e(e) + { + if (this.inputRect = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.image = null, e.prototype.type = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.inputRect = a.emptyArray, e.prototype.textSize = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.textColor = "", e.prototype.content = "", e.prototype.maxLength = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.status = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.h = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.x = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.w = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.y = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.kind = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.subType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.reservation = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(8).int64(e.id), null != e.image && Object.hasOwnProperty.call(e, "image") && l.webcast.data.Image.encode(e.image, t.uint32(18).fork()).ldelim(), null != e.type && Object.hasOwnProperty.call(e, "type") && t.uint32(24).int64(e.type), null != e.inputRect && e.inputRect.length) + { + t.uint32(34).fork(); + for (var n = 0; n < e.inputRect.length; ++n) t.int64(e.inputRect[n]); + t.ldelim() + } + return null != e.textSize && Object.hasOwnProperty.call(e, "textSize") && t.uint32(40).int64(e.textSize), null != e.textColor && Object.hasOwnProperty.call(e, "textColor") && t.uint32(50).string(e.textColor), null != e.content && Object.hasOwnProperty.call(e, "content") && t.uint32(58).string(e.content), null != e.maxLength && Object.hasOwnProperty.call(e, "maxLength") && t.uint32(64).int64(e.maxLength), null != e.status && Object.hasOwnProperty.call(e, "status") && t.uint32(72).int64(e.status), null != e.h && Object.hasOwnProperty.call(e, "h") && t.uint32(80).int64(e.h), null != e.x && Object.hasOwnProperty.call(e, "x") && t.uint32(88).int64(e.x), null != e.w && Object.hasOwnProperty.call(e, "w") && t.uint32(96).int64(e.w), null != e.y && Object.hasOwnProperty.call(e, "y") && t.uint32(104).int64(e.y), null != e.kind && Object.hasOwnProperty.call(e, "kind") && t.uint32(112).int64(e.kind), null != e.subType && Object.hasOwnProperty.call(e, "subType") && t.uint32(120).int64(e.subType), null != e.reservation && Object.hasOwnProperty.call(e, "reservation") && l.webcast.data.Reservation.encode(e.reservation, t.uint32(130).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.Decoration; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.id = e.int64(); + break; + case 2: + r.image = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 3: + r.type = e.int64(); + break; + case 4: + if (r.inputRect && r.inputRect.length || (r.inputRect = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.inputRect.push(e.int64()); + else r.inputRect.push(e.int64()); + break; + case 5: + r.textSize = e.int64(); + break; + case 6: + r.textColor = e.string(); + break; + case 7: + r.content = e.string(); + break; + case 8: + r.maxLength = e.int64(); + break; + case 9: + r.status = e.int64(); + break; + case 10: + r.h = e.int64(); + break; + case 11: + r.x = e.int64(); + break; + case 12: + r.w = e.int64(); + break; + case 13: + r.y = e.int64(); + break; + case 14: + r.kind = e.int64(); + break; + case 15: + r.subType = e.int64(); + break; + case 16: + r.reservation = l.webcast.data.Reservation.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high))) return "id: integer|Long expected"; + var t; + if (null != e.image && e.hasOwnProperty("image") && (t = l.webcast.data.Image.verify(e.image))) return "image." + t; + if (null != e.type && e.hasOwnProperty("type") && !(a.isInteger(e.type) || e.type && a.isInteger(e.type.low) && a.isInteger(e.type.high))) return "type: integer|Long expected"; + if (null != e.inputRect && e.hasOwnProperty("inputRect")) + { + if (!Array.isArray(e.inputRect)) return "inputRect: array expected"; + for (var n = 0; n < e.inputRect.length; ++n) + if (!(a.isInteger(e.inputRect[n]) || e.inputRect[n] && a.isInteger(e.inputRect[n].low) && a.isInteger(e.inputRect[n].high))) return "inputRect: integer|Long[] expected" + } + if (null != e.textSize && e.hasOwnProperty("textSize") && !(a.isInteger(e.textSize) || e.textSize && a.isInteger(e.textSize.low) && a.isInteger(e.textSize.high))) return "textSize: integer|Long expected"; + if (null != e.textColor && e.hasOwnProperty("textColor") && !a.isString(e.textColor)) return "textColor: string expected"; + if (null != e.content && e.hasOwnProperty("content") && !a.isString(e.content)) return "content: string expected"; + if (null != e.maxLength && e.hasOwnProperty("maxLength") && !(a.isInteger(e.maxLength) || e.maxLength && a.isInteger(e.maxLength.low) && a.isInteger(e.maxLength.high))) return "maxLength: integer|Long expected"; + if (null != e.status && e.hasOwnProperty("status") && !(a.isInteger(e.status) || e.status && a.isInteger(e.status.low) && a.isInteger(e.status.high))) return "status: integer|Long expected"; + if (null != e.h && e.hasOwnProperty("h") && !(a.isInteger(e.h) || e.h && a.isInteger(e.h.low) && a.isInteger(e.h.high))) return "h: integer|Long expected"; + if (null != e.x && e.hasOwnProperty("x") && !(a.isInteger(e.x) || e.x && a.isInteger(e.x.low) && a.isInteger(e.x.high))) return "x: integer|Long expected"; + if (null != e.w && e.hasOwnProperty("w") && !(a.isInteger(e.w) || e.w && a.isInteger(e.w.low) && a.isInteger(e.w.high))) return "w: integer|Long expected"; + if (null != e.y && e.hasOwnProperty("y") && !(a.isInteger(e.y) || e.y && a.isInteger(e.y.low) && a.isInteger(e.y.high))) return "y: integer|Long expected"; + if (null != e.kind && e.hasOwnProperty("kind") && !(a.isInteger(e.kind) || e.kind && a.isInteger(e.kind.low) && a.isInteger(e.kind.high))) return "kind: integer|Long expected"; + if (null != e.subType && e.hasOwnProperty("subType") && !(a.isInteger(e.subType) || e.subType && a.isInteger(e.subType.low) && a.isInteger(e.subType.high))) return "subType: integer|Long expected"; + if (null != e.reservation && e.hasOwnProperty("reservation") && (t = l.webcast.data.Reservation.verify(e.reservation))) return "reservation." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.Decoration) return e; + var t = new l.webcast.data.Decoration; + if (null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), null != e.image) + { + if ("object" != typeof e.image) throw TypeError(".webcast.data.Decoration.image: object expected"); + t.image = l.webcast.data.Image.fromObject(e.image) + } + if (null != e.type && (a.Long ? (t.type = a.Long.fromValue(e.type)).unsigned = !1 : "string" == typeof e.type ? t.type = parseInt(e.type, 10) : "number" == typeof e.type ? t.type = e.type : "object" == typeof e.type && (t.type = new a.LongBits(e.type.low >>> 0, e.type.high >>> 0).toNumber())), e.inputRect) + { + if (!Array.isArray(e.inputRect)) throw TypeError(".webcast.data.Decoration.inputRect: array expected"); + t.inputRect = []; + for (var n = 0; n < e.inputRect.length; ++n) a.Long ? (t.inputRect[n] = a.Long.fromValue(e.inputRect[n])).unsigned = !1 : "string" == typeof e.inputRect[n] ? t.inputRect[n] = parseInt(e.inputRect[n], 10) : "number" == typeof e.inputRect[n] ? t.inputRect[n] = e.inputRect[n] : "object" == typeof e.inputRect[n] && (t.inputRect[n] = new a.LongBits(e.inputRect[n].low >>> 0, e.inputRect[n].high >>> 0).toNumber()) + } + if (null != e.textSize && (a.Long ? (t.textSize = a.Long.fromValue(e.textSize)).unsigned = !1 : "string" == typeof e.textSize ? t.textSize = parseInt(e.textSize, 10) : "number" == typeof e.textSize ? t.textSize = e.textSize : "object" == typeof e.textSize && (t.textSize = new a.LongBits(e.textSize.low >>> 0, e.textSize.high >>> 0).toNumber())), null != e.textColor && (t.textColor = String(e.textColor)), null != e.content && (t.content = String(e.content)), null != e.maxLength && (a.Long ? (t.maxLength = a.Long.fromValue(e.maxLength)).unsigned = !1 : "string" == typeof e.maxLength ? t.maxLength = parseInt(e.maxLength, 10) : "number" == typeof e.maxLength ? t.maxLength = e.maxLength : "object" == typeof e.maxLength && (t.maxLength = new a.LongBits(e.maxLength.low >>> 0, e.maxLength.high >>> 0).toNumber())), null != e.status && (a.Long ? (t.status = a.Long.fromValue(e.status)).unsigned = !1 : "string" == typeof e.status ? t.status = parseInt(e.status, 10) : "number" == typeof e.status ? t.status = e.status : "object" == typeof e.status && (t.status = new a.LongBits(e.status.low >>> 0, e.status.high >>> 0).toNumber())), null != e.h && (a.Long ? (t.h = a.Long.fromValue(e.h)).unsigned = !1 : "string" == typeof e.h ? t.h = parseInt(e.h, 10) : "number" == typeof e.h ? t.h = e.h : "object" == typeof e.h && (t.h = new a.LongBits(e.h.low >>> 0, e.h.high >>> 0).toNumber())), null != e.x && (a.Long ? (t.x = a.Long.fromValue(e.x)).unsigned = !1 : "string" == typeof e.x ? t.x = parseInt(e.x, 10) : "number" == typeof e.x ? t.x = e.x : "object" == typeof e.x && (t.x = new a.LongBits(e.x.low >>> 0, e.x.high >>> 0).toNumber())), null != e.w && (a.Long ? (t.w = a.Long.fromValue(e.w)).unsigned = !1 : "string" == typeof e.w ? t.w = parseInt(e.w, 10) : "number" == typeof e.w ? t.w = e.w : "object" == typeof e.w && (t.w = new a.LongBits(e.w.low >>> 0, e.w.high >>> 0).toNumber())), null != e.y && (a.Long ? (t.y = a.Long.fromValue(e.y)).unsigned = !1 : "string" == typeof e.y ? t.y = parseInt(e.y, 10) : "number" == typeof e.y ? t.y = e.y : "object" == typeof e.y && (t.y = new a.LongBits(e.y.low >>> 0, e.y.high >>> 0).toNumber())), null != e.kind && (a.Long ? (t.kind = a.Long.fromValue(e.kind)).unsigned = !1 : "string" == typeof e.kind ? t.kind = parseInt(e.kind, 10) : "number" == typeof e.kind ? t.kind = e.kind : "object" == typeof e.kind && (t.kind = new a.LongBits(e.kind.low >>> 0, e.kind.high >>> 0).toNumber())), null != e.subType && (a.Long ? (t.subType = a.Long.fromValue(e.subType)).unsigned = !1 : "string" == typeof e.subType ? t.subType = parseInt(e.subType, 10) : "number" == typeof e.subType ? t.subType = e.subType : "object" == typeof e.subType && (t.subType = new a.LongBits(e.subType.low >>> 0, e.subType.high >>> 0).toNumber())), null != e.reservation) + { + if ("object" != typeof e.reservation) throw TypeError(".webcast.data.Decoration.reservation: object expected"); + t.reservation = l.webcast.data.Reservation.fromObject(e.reservation) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.inputRect = []), t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.id = t.longs === String ? "0" : 0; + if (n.image = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.type = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.type = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.textSize = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.textSize = t.longs === String ? "0" : 0; + if (n.textColor = "", n.content = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.maxLength = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.maxLength = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.status = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.status = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.h = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.h = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.x = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.x = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.w = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.w = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.y = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.y = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.kind = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.kind = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.subType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.subType = t.longs === String ? "0" : 0; + n.reservation = null + } + if (null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? n.id = t.longs === String ? String(e.id) : e.id : n.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), null != e.image && e.hasOwnProperty("image") && (n.image = l.webcast.data.Image.toObject(e.image, t)), null != e.type && e.hasOwnProperty("type") && ("number" == typeof e.type ? n.type = t.longs === String ? String(e.type) : e.type : n.type = t.longs === String ? a.Long.prototype.toString.call(e.type) : t.longs === Number ? new a.LongBits(e.type.low >>> 0, e.type.high >>> 0).toNumber() : e.type), e.inputRect && e.inputRect.length) + { + n.inputRect = []; + for (var o = 0; o < e.inputRect.length; ++o) "number" == typeof e.inputRect[o] ? n.inputRect[o] = t.longs === String ? String(e.inputRect[o]) : e.inputRect[o] : n.inputRect[o] = t.longs === String ? a.Long.prototype.toString.call(e.inputRect[o]) : t.longs === Number ? new a.LongBits(e.inputRect[o].low >>> 0, e.inputRect[o].high >>> 0).toNumber() : e.inputRect[o] + } + return null != e.textSize && e.hasOwnProperty("textSize") && ("number" == typeof e.textSize ? n.textSize = t.longs === String ? String(e.textSize) : e.textSize : n.textSize = t.longs === String ? a.Long.prototype.toString.call(e.textSize) : t.longs === Number ? new a.LongBits(e.textSize.low >>> 0, e.textSize.high >>> 0).toNumber() : e.textSize), null != e.textColor && e.hasOwnProperty("textColor") && (n.textColor = e.textColor), null != e.content && e.hasOwnProperty("content") && (n.content = e.content), null != e.maxLength && e.hasOwnProperty("maxLength") && ("number" == typeof e.maxLength ? n.maxLength = t.longs === String ? String(e.maxLength) : e.maxLength : n.maxLength = t.longs === String ? a.Long.prototype.toString.call(e.maxLength) : t.longs === Number ? new a.LongBits(e.maxLength.low >>> 0, e.maxLength.high >>> 0).toNumber() : e.maxLength), null != e.status && e.hasOwnProperty("status") && ("number" == typeof e.status ? n.status = t.longs === String ? String(e.status) : e.status : n.status = t.longs === String ? a.Long.prototype.toString.call(e.status) : t.longs === Number ? new a.LongBits(e.status.low >>> 0, e.status.high >>> 0).toNumber() : e.status), null != e.h && e.hasOwnProperty("h") && ("number" == typeof e.h ? n.h = t.longs === String ? String(e.h) : e.h : n.h = t.longs === String ? a.Long.prototype.toString.call(e.h) : t.longs === Number ? new a.LongBits(e.h.low >>> 0, e.h.high >>> 0).toNumber() : e.h), null != e.x && e.hasOwnProperty("x") && ("number" == typeof e.x ? n.x = t.longs === String ? String(e.x) : e.x : n.x = t.longs === String ? a.Long.prototype.toString.call(e.x) : t.longs === Number ? new a.LongBits(e.x.low >>> 0, e.x.high >>> 0).toNumber() : e.x), null != e.w && e.hasOwnProperty("w") && ("number" == typeof e.w ? n.w = t.longs === String ? String(e.w) : e.w : n.w = t.longs === String ? a.Long.prototype.toString.call(e.w) : t.longs === Number ? new a.LongBits(e.w.low >>> 0, e.w.high >>> 0).toNumber() : e.w), null != e.y && e.hasOwnProperty("y") && ("number" == typeof e.y ? n.y = t.longs === String ? String(e.y) : e.y : n.y = t.longs === String ? a.Long.prototype.toString.call(e.y) : t.longs === Number ? new a.LongBits(e.y.low >>> 0, e.y.high >>> 0).toNumber() : e.y), null != e.kind && e.hasOwnProperty("kind") && ("number" == typeof e.kind ? n.kind = t.longs === String ? String(e.kind) : e.kind : n.kind = t.longs === String ? a.Long.prototype.toString.call(e.kind) : t.longs === Number ? new a.LongBits(e.kind.low >>> 0, e.kind.high >>> 0).toNumber() : e.kind), null != e.subType && e.hasOwnProperty("subType") && ("number" == typeof e.subType ? n.subType = t.longs === String ? String(e.subType) : e.subType : n.subType = t.longs === String ? a.Long.prototype.toString.call(e.subType) : t.longs === Number ? new a.LongBits(e.subType.low >>> 0, e.subType.high >>> 0).toNumber() : e.subType), null != e.reservation && e.hasOwnProperty("reservation") && (n.reservation = l.webcast.data.Reservation.toObject(e.reservation, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.RoomStats = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.idStr = "", e.prototype.fanTicket = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.money = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.totalUser = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.giftUvCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.followCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.userCountComposition = null, e.prototype.watermelon = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.diggCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.enterCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.douPlusPromotion = "", e.prototype.totalUserDesp = "", e.prototype.likeCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.totalUserStr = "", e.prototype.userCountStr = "", e.prototype.commentCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.welfareDonationAmount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(8).int64(e.id), null != e.idStr && Object.hasOwnProperty.call(e, "idStr") && t.uint32(18).string(e.idStr), null != e.fanTicket && Object.hasOwnProperty.call(e, "fanTicket") && t.uint32(24).int64(e.fanTicket), null != e.money && Object.hasOwnProperty.call(e, "money") && t.uint32(32).int64(e.money), null != e.totalUser && Object.hasOwnProperty.call(e, "totalUser") && t.uint32(40).int64(e.totalUser), null != e.giftUvCount && Object.hasOwnProperty.call(e, "giftUvCount") && t.uint32(48).int64(e.giftUvCount), null != e.followCount && Object.hasOwnProperty.call(e, "followCount") && t.uint32(56).int64(e.followCount), null != e.userCountComposition && Object.hasOwnProperty.call(e, "userCountComposition") && l.webcast.data.RoomStats.UserCountComposition.encode(e.userCountComposition, t.uint32(66).fork()).ldelim(), null != e.watermelon && Object.hasOwnProperty.call(e, "watermelon") && t.uint32(72).int64(e.watermelon), null != e.diggCount && Object.hasOwnProperty.call(e, "diggCount") && t.uint32(80).int64(e.diggCount), null != e.enterCount && Object.hasOwnProperty.call(e, "enterCount") && t.uint32(88).int64(e.enterCount), null != e.douPlusPromotion && Object.hasOwnProperty.call(e, "douPlusPromotion") && t.uint32(98).string(e.douPlusPromotion), null != e.totalUserDesp && Object.hasOwnProperty.call(e, "totalUserDesp") && t.uint32(106).string(e.totalUserDesp), null != e.likeCount && Object.hasOwnProperty.call(e, "likeCount") && t.uint32(112).int64(e.likeCount), null != e.totalUserStr && Object.hasOwnProperty.call(e, "totalUserStr") && t.uint32(122).string(e.totalUserStr), null != e.userCountStr && Object.hasOwnProperty.call(e, "userCountStr") && t.uint32(130).string(e.userCountStr), null != e.commentCount && Object.hasOwnProperty.call(e, "commentCount") && t.uint32(136).int64(e.commentCount), null != e.welfareDonationAmount && Object.hasOwnProperty.call(e, "welfareDonationAmount") && t.uint32(144).int64(e.welfareDonationAmount), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RoomStats; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.id = e.int64(); + break; + case 2: + r.idStr = e.string(); + break; + case 3: + r.fanTicket = e.int64(); + break; + case 4: + r.money = e.int64(); + break; + case 5: + r.totalUser = e.int64(); + break; + case 6: + r.giftUvCount = e.int64(); + break; + case 7: + r.followCount = e.int64(); + break; + case 8: + r.userCountComposition = l.webcast.data.RoomStats.UserCountComposition.decode(e, e.uint32()); + break; + case 9: + r.watermelon = e.int64(); + break; + case 10: + r.diggCount = e.int64(); + break; + case 11: + r.enterCount = e.int64(); + break; + case 12: + r.douPlusPromotion = e.string(); + break; + case 13: + r.totalUserDesp = e.string(); + break; + case 14: + r.likeCount = e.int64(); + break; + case 15: + r.totalUserStr = e.string(); + break; + case 16: + r.userCountStr = e.string(); + break; + case 17: + r.commentCount = e.int64(); + break; + case 18: + r.welfareDonationAmount = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high))) return "id: integer|Long expected"; + if (null != e.idStr && e.hasOwnProperty("idStr") && !a.isString(e.idStr)) return "idStr: string expected"; + if (null != e.fanTicket && e.hasOwnProperty("fanTicket") && !(a.isInteger(e.fanTicket) || e.fanTicket && a.isInteger(e.fanTicket.low) && a.isInteger(e.fanTicket.high))) return "fanTicket: integer|Long expected"; + if (null != e.money && e.hasOwnProperty("money") && !(a.isInteger(e.money) || e.money && a.isInteger(e.money.low) && a.isInteger(e.money.high))) return "money: integer|Long expected"; + if (null != e.totalUser && e.hasOwnProperty("totalUser") && !(a.isInteger(e.totalUser) || e.totalUser && a.isInteger(e.totalUser.low) && a.isInteger(e.totalUser.high))) return "totalUser: integer|Long expected"; + if (null != e.giftUvCount && e.hasOwnProperty("giftUvCount") && !(a.isInteger(e.giftUvCount) || e.giftUvCount && a.isInteger(e.giftUvCount.low) && a.isInteger(e.giftUvCount.high))) return "giftUvCount: integer|Long expected"; + if (null != e.followCount && e.hasOwnProperty("followCount") && !(a.isInteger(e.followCount) || e.followCount && a.isInteger(e.followCount.low) && a.isInteger(e.followCount.high))) return "followCount: integer|Long expected"; + if (null != e.userCountComposition && e.hasOwnProperty("userCountComposition")) + { + var t = l.webcast.data.RoomStats.UserCountComposition.verify(e.userCountComposition); + if (t) return "userCountComposition." + t + } + return null != e.watermelon && e.hasOwnProperty("watermelon") && !(a.isInteger(e.watermelon) || e.watermelon && a.isInteger(e.watermelon.low) && a.isInteger(e.watermelon.high)) ? "watermelon: integer|Long expected" : null != e.diggCount && e.hasOwnProperty("diggCount") && !(a.isInteger(e.diggCount) || e.diggCount && a.isInteger(e.diggCount.low) && a.isInteger(e.diggCount.high)) ? "diggCount: integer|Long expected" : null != e.enterCount && e.hasOwnProperty("enterCount") && !(a.isInteger(e.enterCount) || e.enterCount && a.isInteger(e.enterCount.low) && a.isInteger(e.enterCount.high)) ? "enterCount: integer|Long expected" : null != e.douPlusPromotion && e.hasOwnProperty("douPlusPromotion") && !a.isString(e.douPlusPromotion) ? "douPlusPromotion: string expected" : null != e.totalUserDesp && e.hasOwnProperty("totalUserDesp") && !a.isString(e.totalUserDesp) ? "totalUserDesp: string expected" : null != e.likeCount && e.hasOwnProperty("likeCount") && !(a.isInteger(e.likeCount) || e.likeCount && a.isInteger(e.likeCount.low) && a.isInteger(e.likeCount.high)) ? "likeCount: integer|Long expected" : null != e.totalUserStr && e.hasOwnProperty("totalUserStr") && !a.isString(e.totalUserStr) ? "totalUserStr: string expected" : null != e.userCountStr && e.hasOwnProperty("userCountStr") && !a.isString(e.userCountStr) ? "userCountStr: string expected" : null != e.commentCount && e.hasOwnProperty("commentCount") && !(a.isInteger(e.commentCount) || e.commentCount && a.isInteger(e.commentCount.low) && a.isInteger(e.commentCount.high)) ? "commentCount: integer|Long expected" : null != e.welfareDonationAmount && e.hasOwnProperty("welfareDonationAmount") && !(a.isInteger(e.welfareDonationAmount) || e.welfareDonationAmount && a.isInteger(e.welfareDonationAmount.low) && a.isInteger(e.welfareDonationAmount.high)) ? "welfareDonationAmount: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RoomStats) return e; + var t = new l.webcast.data.RoomStats; + if (null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), null != e.idStr && (t.idStr = String(e.idStr)), null != e.fanTicket && (a.Long ? (t.fanTicket = a.Long.fromValue(e.fanTicket)).unsigned = !1 : "string" == typeof e.fanTicket ? t.fanTicket = parseInt(e.fanTicket, 10) : "number" == typeof e.fanTicket ? t.fanTicket = e.fanTicket : "object" == typeof e.fanTicket && (t.fanTicket = new a.LongBits(e.fanTicket.low >>> 0, e.fanTicket.high >>> 0).toNumber())), null != e.money && (a.Long ? (t.money = a.Long.fromValue(e.money)).unsigned = !1 : "string" == typeof e.money ? t.money = parseInt(e.money, 10) : "number" == typeof e.money ? t.money = e.money : "object" == typeof e.money && (t.money = new a.LongBits(e.money.low >>> 0, e.money.high >>> 0).toNumber())), null != e.totalUser && (a.Long ? (t.totalUser = a.Long.fromValue(e.totalUser)).unsigned = !1 : "string" == typeof e.totalUser ? t.totalUser = parseInt(e.totalUser, 10) : "number" == typeof e.totalUser ? t.totalUser = e.totalUser : "object" == typeof e.totalUser && (t.totalUser = new a.LongBits(e.totalUser.low >>> 0, e.totalUser.high >>> 0).toNumber())), null != e.giftUvCount && (a.Long ? (t.giftUvCount = a.Long.fromValue(e.giftUvCount)).unsigned = !1 : "string" == typeof e.giftUvCount ? t.giftUvCount = parseInt(e.giftUvCount, 10) : "number" == typeof e.giftUvCount ? t.giftUvCount = e.giftUvCount : "object" == typeof e.giftUvCount && (t.giftUvCount = new a.LongBits(e.giftUvCount.low >>> 0, e.giftUvCount.high >>> 0).toNumber())), null != e.followCount && (a.Long ? (t.followCount = a.Long.fromValue(e.followCount)).unsigned = !1 : "string" == typeof e.followCount ? t.followCount = parseInt(e.followCount, 10) : "number" == typeof e.followCount ? t.followCount = e.followCount : "object" == typeof e.followCount && (t.followCount = new a.LongBits(e.followCount.low >>> 0, e.followCount.high >>> 0).toNumber())), null != e.userCountComposition) + { + if ("object" != typeof e.userCountComposition) throw TypeError(".webcast.data.RoomStats.userCountComposition: object expected"); + t.userCountComposition = l.webcast.data.RoomStats.UserCountComposition.fromObject(e.userCountComposition) + } + return null != e.watermelon && (a.Long ? (t.watermelon = a.Long.fromValue(e.watermelon)).unsigned = !1 : "string" == typeof e.watermelon ? t.watermelon = parseInt(e.watermelon, 10) : "number" == typeof e.watermelon ? t.watermelon = e.watermelon : "object" == typeof e.watermelon && (t.watermelon = new a.LongBits(e.watermelon.low >>> 0, e.watermelon.high >>> 0).toNumber())), null != e.diggCount && (a.Long ? (t.diggCount = a.Long.fromValue(e.diggCount)).unsigned = !1 : "string" == typeof e.diggCount ? t.diggCount = parseInt(e.diggCount, 10) : "number" == typeof e.diggCount ? t.diggCount = e.diggCount : "object" == typeof e.diggCount && (t.diggCount = new a.LongBits(e.diggCount.low >>> 0, e.diggCount.high >>> 0).toNumber())), null != e.enterCount && (a.Long ? (t.enterCount = a.Long.fromValue(e.enterCount)).unsigned = !1 : "string" == typeof e.enterCount ? t.enterCount = parseInt(e.enterCount, 10) : "number" == typeof e.enterCount ? t.enterCount = e.enterCount : "object" == typeof e.enterCount && (t.enterCount = new a.LongBits(e.enterCount.low >>> 0, e.enterCount.high >>> 0).toNumber())), null != e.douPlusPromotion && (t.douPlusPromotion = String(e.douPlusPromotion)), null != e.totalUserDesp && (t.totalUserDesp = String(e.totalUserDesp)), null != e.likeCount && (a.Long ? (t.likeCount = a.Long.fromValue(e.likeCount)).unsigned = !1 : "string" == typeof e.likeCount ? t.likeCount = parseInt(e.likeCount, 10) : "number" == typeof e.likeCount ? t.likeCount = e.likeCount : "object" == typeof e.likeCount && (t.likeCount = new a.LongBits(e.likeCount.low >>> 0, e.likeCount.high >>> 0).toNumber())), null != e.totalUserStr && (t.totalUserStr = String(e.totalUserStr)), null != e.userCountStr && (t.userCountStr = String(e.userCountStr)), null != e.commentCount && (a.Long ? (t.commentCount = a.Long.fromValue(e.commentCount)).unsigned = !1 : "string" == typeof e.commentCount ? t.commentCount = parseInt(e.commentCount, 10) : "number" == typeof e.commentCount ? t.commentCount = e.commentCount : "object" == typeof e.commentCount && (t.commentCount = new a.LongBits(e.commentCount.low >>> 0, e.commentCount.high >>> 0).toNumber())), null != e.welfareDonationAmount && (a.Long ? (t.welfareDonationAmount = a.Long.fromValue(e.welfareDonationAmount)).unsigned = !1 : "string" == typeof e.welfareDonationAmount ? t.welfareDonationAmount = parseInt(e.welfareDonationAmount, 10) : "number" == typeof e.welfareDonationAmount ? t.welfareDonationAmount = e.welfareDonationAmount : "object" == typeof e.welfareDonationAmount && (t.welfareDonationAmount = new a.LongBits(e.welfareDonationAmount.low >>> 0, e.welfareDonationAmount.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.id = t.longs === String ? "0" : 0; + if (n.idStr = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.fanTicket = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fanTicket = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.money = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.money = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.totalUser = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.totalUser = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.giftUvCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.giftUvCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.followCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.followCount = t.longs === String ? "0" : 0; + if (n.userCountComposition = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.watermelon = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.watermelon = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.diggCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.diggCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.enterCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.enterCount = t.longs === String ? "0" : 0; + if (n.douPlusPromotion = "", n.totalUserDesp = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.likeCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.likeCount = t.longs === String ? "0" : 0; + if (n.totalUserStr = "", n.userCountStr = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.commentCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.commentCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.welfareDonationAmount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.welfareDonationAmount = t.longs === String ? "0" : 0 + } + return null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? n.id = t.longs === String ? String(e.id) : e.id : n.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), null != e.idStr && e.hasOwnProperty("idStr") && (n.idStr = e.idStr), null != e.fanTicket && e.hasOwnProperty("fanTicket") && ("number" == typeof e.fanTicket ? n.fanTicket = t.longs === String ? String(e.fanTicket) : e.fanTicket : n.fanTicket = t.longs === String ? a.Long.prototype.toString.call(e.fanTicket) : t.longs === Number ? new a.LongBits(e.fanTicket.low >>> 0, e.fanTicket.high >>> 0).toNumber() : e.fanTicket), null != e.money && e.hasOwnProperty("money") && ("number" == typeof e.money ? n.money = t.longs === String ? String(e.money) : e.money : n.money = t.longs === String ? a.Long.prototype.toString.call(e.money) : t.longs === Number ? new a.LongBits(e.money.low >>> 0, e.money.high >>> 0).toNumber() : e.money), null != e.totalUser && e.hasOwnProperty("totalUser") && ("number" == typeof e.totalUser ? n.totalUser = t.longs === String ? String(e.totalUser) : e.totalUser : n.totalUser = t.longs === String ? a.Long.prototype.toString.call(e.totalUser) : t.longs === Number ? new a.LongBits(e.totalUser.low >>> 0, e.totalUser.high >>> 0).toNumber() : e.totalUser), null != e.giftUvCount && e.hasOwnProperty("giftUvCount") && ("number" == typeof e.giftUvCount ? n.giftUvCount = t.longs === String ? String(e.giftUvCount) : e.giftUvCount : n.giftUvCount = t.longs === String ? a.Long.prototype.toString.call(e.giftUvCount) : t.longs === Number ? new a.LongBits(e.giftUvCount.low >>> 0, e.giftUvCount.high >>> 0).toNumber() : e.giftUvCount), null != e.followCount && e.hasOwnProperty("followCount") && ("number" == typeof e.followCount ? n.followCount = t.longs === String ? String(e.followCount) : e.followCount : n.followCount = t.longs === String ? a.Long.prototype.toString.call(e.followCount) : t.longs === Number ? new a.LongBits(e.followCount.low >>> 0, e.followCount.high >>> 0).toNumber() : e.followCount), null != e.userCountComposition && e.hasOwnProperty("userCountComposition") && (n.userCountComposition = l.webcast.data.RoomStats.UserCountComposition.toObject(e.userCountComposition, t)), null != e.watermelon && e.hasOwnProperty("watermelon") && ("number" == typeof e.watermelon ? n.watermelon = t.longs === String ? String(e.watermelon) : e.watermelon : n.watermelon = t.longs === String ? a.Long.prototype.toString.call(e.watermelon) : t.longs === Number ? new a.LongBits(e.watermelon.low >>> 0, e.watermelon.high >>> 0).toNumber() : e.watermelon), null != e.diggCount && e.hasOwnProperty("diggCount") && ("number" == typeof e.diggCount ? n.diggCount = t.longs === String ? String(e.diggCount) : e.diggCount : n.diggCount = t.longs === String ? a.Long.prototype.toString.call(e.diggCount) : t.longs === Number ? new a.LongBits(e.diggCount.low >>> 0, e.diggCount.high >>> 0).toNumber() : e.diggCount), null != e.enterCount && e.hasOwnProperty("enterCount") && ("number" == typeof e.enterCount ? n.enterCount = t.longs === String ? String(e.enterCount) : e.enterCount : n.enterCount = t.longs === String ? a.Long.prototype.toString.call(e.enterCount) : t.longs === Number ? new a.LongBits(e.enterCount.low >>> 0, e.enterCount.high >>> 0).toNumber() : e.enterCount), null != e.douPlusPromotion && e.hasOwnProperty("douPlusPromotion") && (n.douPlusPromotion = e.douPlusPromotion), null != e.totalUserDesp && e.hasOwnProperty("totalUserDesp") && (n.totalUserDesp = e.totalUserDesp), null != e.likeCount && e.hasOwnProperty("likeCount") && ("number" == typeof e.likeCount ? n.likeCount = t.longs === String ? String(e.likeCount) : e.likeCount : n.likeCount = t.longs === String ? a.Long.prototype.toString.call(e.likeCount) : t.longs === Number ? new a.LongBits(e.likeCount.low >>> 0, e.likeCount.high >>> 0).toNumber() : e.likeCount), null != e.totalUserStr && e.hasOwnProperty("totalUserStr") && (n.totalUserStr = e.totalUserStr), null != e.userCountStr && e.hasOwnProperty("userCountStr") && (n.userCountStr = e.userCountStr), null != e.commentCount && e.hasOwnProperty("commentCount") && ("number" == typeof e.commentCount ? n.commentCount = t.longs === String ? String(e.commentCount) : e.commentCount : n.commentCount = t.longs === String ? a.Long.prototype.toString.call(e.commentCount) : t.longs === Number ? new a.LongBits(e.commentCount.low >>> 0, e.commentCount.high >>> 0).toNumber() : e.commentCount), null != e.welfareDonationAmount && e.hasOwnProperty("welfareDonationAmount") && ("number" == typeof e.welfareDonationAmount ? n.welfareDonationAmount = t.longs === String ? String(e.welfareDonationAmount) : e.welfareDonationAmount : n.welfareDonationAmount = t.longs === String ? a.Long.prototype.toString.call(e.welfareDonationAmount) : t.longs === Number ? new a.LongBits(e.welfareDonationAmount.low >>> 0, e.welfareDonationAmount.high >>> 0).toNumber() : e.welfareDonationAmount), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.UserCountComposition = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.city = 0, e.prototype.videoDetail = 0, e.prototype.myFollow = 0, e.prototype.other = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.city && Object.hasOwnProperty.call(e, "city") && t.uint32(9).double(e.city), null != e.videoDetail && Object.hasOwnProperty.call(e, "videoDetail") && t.uint32(17).double(e.videoDetail), null != e.myFollow && Object.hasOwnProperty.call(e, "myFollow") && t.uint32(25).double(e.myFollow), null != e.other && Object.hasOwnProperty.call(e, "other") && t.uint32(33).double(e.other), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RoomStats.UserCountComposition; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.city = e.double(); + break; + case 2: + r.videoDetail = e.double(); + break; + case 3: + r.myFollow = e.double(); + break; + case 4: + r.other = e.double(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.city && e.hasOwnProperty("city") && "number" != typeof e.city ? "city: number expected" : null != e.videoDetail && e.hasOwnProperty("videoDetail") && "number" != typeof e.videoDetail ? "videoDetail: number expected" : null != e.myFollow && e.hasOwnProperty("myFollow") && "number" != typeof e.myFollow ? "myFollow: number expected" : null != e.other && e.hasOwnProperty("other") && "number" != typeof e.other ? "other: number expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RoomStats.UserCountComposition) return e; + var t = new l.webcast.data.RoomStats.UserCountComposition; + return null != e.city && (t.city = Number(e.city)), null != e.videoDetail && (t.videoDetail = Number(e.videoDetail)), null != e.myFollow && (t.myFollow = Number(e.myFollow)), null != e.other && (t.other = Number(e.other)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.city = 0, n.videoDetail = 0, n.myFollow = 0, n.other = 0), null != e.city && e.hasOwnProperty("city") && (n.city = t.json && !isFinite(e.city) ? String(e.city) : e.city), null != e.videoDetail && e.hasOwnProperty("videoDetail") && (n.videoDetail = t.json && !isFinite(e.videoDetail) ? String(e.videoDetail) : e.videoDetail), null != e.myFollow && e.hasOwnProperty("myFollow") && (n.myFollow = t.json && !isFinite(e.myFollow) ? String(e.myFollow) : e.myFollow), null != e.other && e.hasOwnProperty("other") && (n.other = t.json && !isFinite(e.other) ? String(e.other) : e.other), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.TopFan = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.fanTicket = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.user = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.fanTicket && Object.hasOwnProperty.call(e, "fanTicket") && t.uint32(8).int64(e.fanTicket), null != e.user && Object.hasOwnProperty.call(e, "user") && l.webcast.data.User.encode(e.user, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.TopFan; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.fanTicket = e.int64(); + break; + case 2: + r.user = l.webcast.data.User.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.fanTicket && e.hasOwnProperty("fanTicket") && !(a.isInteger(e.fanTicket) || e.fanTicket && a.isInteger(e.fanTicket.low) && a.isInteger(e.fanTicket.high))) return "fanTicket: integer|Long expected"; + if (null != e.user && e.hasOwnProperty("user")) + { + var t = l.webcast.data.User.verify(e.user); + if (t) return "user." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.TopFan) return e; + var t = new l.webcast.data.TopFan; + if (null != e.fanTicket && (a.Long ? (t.fanTicket = a.Long.fromValue(e.fanTicket)).unsigned = !1 : "string" == typeof e.fanTicket ? t.fanTicket = parseInt(e.fanTicket, 10) : "number" == typeof e.fanTicket ? t.fanTicket = e.fanTicket : "object" == typeof e.fanTicket && (t.fanTicket = new a.LongBits(e.fanTicket.low >>> 0, e.fanTicket.high >>> 0).toNumber())), null != e.user) + { + if ("object" != typeof e.user) throw TypeError(".webcast.data.TopFan.user: object expected"); + t.user = l.webcast.data.User.fromObject(e.user) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.fanTicket = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fanTicket = t.longs === String ? "0" : 0; + n.user = null + } + return null != e.fanTicket && e.hasOwnProperty("fanTicket") && ("number" == typeof e.fanTicket ? n.fanTicket = t.longs === String ? String(e.fanTicket) : e.fanTicket : n.fanTicket = t.longs === String ? a.Long.prototype.toString.call(e.fanTicket) : t.longs === Number ? new a.LongBits(e.fanTicket.low >>> 0, e.fanTicket.high >>> 0).toNumber() : e.fanTicket), null != e.user && e.hasOwnProperty("user") && (n.user = l.webcast.data.User.toObject(e.user, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.RoomUserAttr = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.roomId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.roomIdStr = "", e.prototype.silenceFlag = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.adminFlag = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.rank = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.roomId && Object.hasOwnProperty.call(e, "roomId") && t.uint32(8).int64(e.roomId), null != e.roomIdStr && Object.hasOwnProperty.call(e, "roomIdStr") && t.uint32(18).string(e.roomIdStr), null != e.silenceFlag && Object.hasOwnProperty.call(e, "silenceFlag") && t.uint32(24).int64(e.silenceFlag), null != e.adminFlag && Object.hasOwnProperty.call(e, "adminFlag") && t.uint32(32).int64(e.adminFlag), null != e.rank && Object.hasOwnProperty.call(e, "rank") && t.uint32(40).int64(e.rank), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RoomUserAttr; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.roomId = e.int64(); + break; + case 2: + r.roomIdStr = e.string(); + break; + case 3: + r.silenceFlag = e.int64(); + break; + case 4: + r.adminFlag = e.int64(); + break; + case 5: + r.rank = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.roomId && e.hasOwnProperty("roomId") && !(a.isInteger(e.roomId) || e.roomId && a.isInteger(e.roomId.low) && a.isInteger(e.roomId.high)) ? "roomId: integer|Long expected" : null != e.roomIdStr && e.hasOwnProperty("roomIdStr") && !a.isString(e.roomIdStr) ? "roomIdStr: string expected" : null != e.silenceFlag && e.hasOwnProperty("silenceFlag") && !(a.isInteger(e.silenceFlag) || e.silenceFlag && a.isInteger(e.silenceFlag.low) && a.isInteger(e.silenceFlag.high)) ? "silenceFlag: integer|Long expected" : null != e.adminFlag && e.hasOwnProperty("adminFlag") && !(a.isInteger(e.adminFlag) || e.adminFlag && a.isInteger(e.adminFlag.low) && a.isInteger(e.adminFlag.high)) ? "adminFlag: integer|Long expected" : null != e.rank && e.hasOwnProperty("rank") && !(a.isInteger(e.rank) || e.rank && a.isInteger(e.rank.low) && a.isInteger(e.rank.high)) ? "rank: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RoomUserAttr) return e; + var t = new l.webcast.data.RoomUserAttr; + return null != e.roomId && (a.Long ? (t.roomId = a.Long.fromValue(e.roomId)).unsigned = !1 : "string" == typeof e.roomId ? t.roomId = parseInt(e.roomId, 10) : "number" == typeof e.roomId ? t.roomId = e.roomId : "object" == typeof e.roomId && (t.roomId = new a.LongBits(e.roomId.low >>> 0, e.roomId.high >>> 0).toNumber())), null != e.roomIdStr && (t.roomIdStr = String(e.roomIdStr)), null != e.silenceFlag && (a.Long ? (t.silenceFlag = a.Long.fromValue(e.silenceFlag)).unsigned = !1 : "string" == typeof e.silenceFlag ? t.silenceFlag = parseInt(e.silenceFlag, 10) : "number" == typeof e.silenceFlag ? t.silenceFlag = e.silenceFlag : "object" == typeof e.silenceFlag && (t.silenceFlag = new a.LongBits(e.silenceFlag.low >>> 0, e.silenceFlag.high >>> 0).toNumber())), null != e.adminFlag && (a.Long ? (t.adminFlag = a.Long.fromValue(e.adminFlag)).unsigned = !1 : "string" == typeof e.adminFlag ? t.adminFlag = parseInt(e.adminFlag, 10) : "number" == typeof e.adminFlag ? t.adminFlag = e.adminFlag : "object" == typeof e.adminFlag && (t.adminFlag = new a.LongBits(e.adminFlag.low >>> 0, e.adminFlag.high >>> 0).toNumber())), null != e.rank && (a.Long ? (t.rank = a.Long.fromValue(e.rank)).unsigned = !1 : "string" == typeof e.rank ? t.rank = parseInt(e.rank, 10) : "number" == typeof e.rank ? t.rank = e.rank : "object" == typeof e.rank && (t.rank = new a.LongBits(e.rank.low >>> 0, e.rank.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.roomId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.roomId = t.longs === String ? "0" : 0; + if (n.roomIdStr = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.silenceFlag = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.silenceFlag = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.adminFlag = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.adminFlag = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.rank = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.rank = t.longs === String ? "0" : 0 + } + return null != e.roomId && e.hasOwnProperty("roomId") && ("number" == typeof e.roomId ? n.roomId = t.longs === String ? String(e.roomId) : e.roomId : n.roomId = t.longs === String ? a.Long.prototype.toString.call(e.roomId) : t.longs === Number ? new a.LongBits(e.roomId.low >>> 0, e.roomId.high >>> 0).toNumber() : e.roomId), null != e.roomIdStr && e.hasOwnProperty("roomIdStr") && (n.roomIdStr = e.roomIdStr), null != e.silenceFlag && e.hasOwnProperty("silenceFlag") && ("number" == typeof e.silenceFlag ? n.silenceFlag = t.longs === String ? String(e.silenceFlag) : e.silenceFlag : n.silenceFlag = t.longs === String ? a.Long.prototype.toString.call(e.silenceFlag) : t.longs === Number ? new a.LongBits(e.silenceFlag.low >>> 0, e.silenceFlag.high >>> 0).toNumber() : e.silenceFlag), null != e.adminFlag && e.hasOwnProperty("adminFlag") && ("number" == typeof e.adminFlag ? n.adminFlag = t.longs === String ? String(e.adminFlag) : e.adminFlag : n.adminFlag = t.longs === String ? a.Long.prototype.toString.call(e.adminFlag) : t.longs === Number ? new a.LongBits(e.adminFlag.low >>> 0, e.adminFlag.high >>> 0).toNumber() : e.adminFlag), null != e.rank && e.hasOwnProperty("rank") && ("number" == typeof e.rank ? n.rank = t.longs === String ? String(e.rank) : e.rank : n.rank = t.longs === String ? a.Long.prototype.toString.call(e.rank) : t.longs === Number ? new a.LongBits(e.rank.low >>> 0, e.rank.high >>> 0).toNumber() : e.rank), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.CoverInfo = function () + { + function e(e) + { + if (this.urlList = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.urlList = a.emptyArray, e.prototype.uri = "", e.prototype.width = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.height = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.urlList && e.urlList.length) + for (var n = 0; n < e.urlList.length; ++n) t.uint32(10).string(e.urlList[n]); + return null != e.uri && Object.hasOwnProperty.call(e, "uri") && t.uint32(18).string(e.uri), null != e.width && Object.hasOwnProperty.call(e, "width") && t.uint32(24).int64(e.width), null != e.height && Object.hasOwnProperty.call(e, "height") && t.uint32(32).int64(e.height), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.CoverInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.urlList && r.urlList.length || (r.urlList = []), r.urlList.push(e.string()); + break; + case 2: + r.uri = e.string(); + break; + case 3: + r.width = e.int64(); + break; + case 4: + r.height = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.urlList && e.hasOwnProperty("urlList")) + { + if (!Array.isArray(e.urlList)) return "urlList: array expected"; + for (var t = 0; t < e.urlList.length; ++t) + if (!a.isString(e.urlList[t])) return "urlList: string[] expected" + } + return null != e.uri && e.hasOwnProperty("uri") && !a.isString(e.uri) ? "uri: string expected" : null != e.width && e.hasOwnProperty("width") && !(a.isInteger(e.width) || e.width && a.isInteger(e.width.low) && a.isInteger(e.width.high)) ? "width: integer|Long expected" : null != e.height && e.hasOwnProperty("height") && !(a.isInteger(e.height) || e.height && a.isInteger(e.height.low) && a.isInteger(e.height.high)) ? "height: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.CoverInfo) return e; + var t = new l.webcast.data.CoverInfo; + if (e.urlList) + { + if (!Array.isArray(e.urlList)) throw TypeError(".webcast.data.CoverInfo.urlList: array expected"); + t.urlList = []; + for (var n = 0; n < e.urlList.length; ++n) t.urlList[n] = String(e.urlList[n]) + } + return null != e.uri && (t.uri = String(e.uri)), null != e.width && (a.Long ? (t.width = a.Long.fromValue(e.width)).unsigned = !1 : "string" == typeof e.width ? t.width = parseInt(e.width, 10) : "number" == typeof e.width ? t.width = e.width : "object" == typeof e.width && (t.width = new a.LongBits(e.width.low >>> 0, e.width.high >>> 0).toNumber())), null != e.height && (a.Long ? (t.height = a.Long.fromValue(e.height)).unsigned = !1 : "string" == typeof e.height ? t.height = parseInt(e.height, 10) : "number" == typeof e.height ? t.height = e.height : "object" == typeof e.height && (t.height = new a.LongBits(e.height.low >>> 0, e.height.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.urlList = []), t.defaults) + { + if (n.uri = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.width = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.width = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.height = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.height = t.longs === String ? "0" : 0 + } + if (e.urlList && e.urlList.length) + { + n.urlList = []; + for (var o = 0; o < e.urlList.length; ++o) n.urlList[o] = e.urlList[o] + } + return null != e.uri && e.hasOwnProperty("uri") && (n.uri = e.uri), null != e.width && e.hasOwnProperty("width") && ("number" == typeof e.width ? n.width = t.longs === String ? String(e.width) : e.width : n.width = t.longs === String ? a.Long.prototype.toString.call(e.width) : t.longs === Number ? new a.LongBits(e.width.low >>> 0, e.width.high >>> 0).toNumber() : e.width), null != e.height && e.hasOwnProperty("height") && ("number" == typeof e.height ? n.height = t.longs === String ? String(e.height) : e.height : n.height = t.longs === String ? a.Long.prototype.toString.call(e.height) : t.longs === Number ? new a.LongBits(e.height.low >>> 0, e.height.high >>> 0).toNumber() : e.height), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.BurstInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.burstTimeRemainSeconds = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.multiple = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.propertyDefinitionId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.propertyIcon = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.burstTimeRemainSeconds && Object.hasOwnProperty.call(e, "burstTimeRemainSeconds") && t.uint32(8).int64(e.burstTimeRemainSeconds), null != e.multiple && Object.hasOwnProperty.call(e, "multiple") && t.uint32(16).int64(e.multiple), null != e.propertyDefinitionId && Object.hasOwnProperty.call(e, "propertyDefinitionId") && t.uint32(24).int64(e.propertyDefinitionId), null != e.propertyIcon && Object.hasOwnProperty.call(e, "propertyIcon") && l.webcast.data.Image.encode(e.propertyIcon, t.uint32(34).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.BurstInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.burstTimeRemainSeconds = e.int64(); + break; + case 2: + r.multiple = e.int64(); + break; + case 3: + r.propertyDefinitionId = e.int64(); + break; + case 4: + r.propertyIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.burstTimeRemainSeconds && e.hasOwnProperty("burstTimeRemainSeconds") && !(a.isInteger(e.burstTimeRemainSeconds) || e.burstTimeRemainSeconds && a.isInteger(e.burstTimeRemainSeconds.low) && a.isInteger(e.burstTimeRemainSeconds.high))) return "burstTimeRemainSeconds: integer|Long expected"; + if (null != e.multiple && e.hasOwnProperty("multiple") && !(a.isInteger(e.multiple) || e.multiple && a.isInteger(e.multiple.low) && a.isInteger(e.multiple.high))) return "multiple: integer|Long expected"; + if (null != e.propertyDefinitionId && e.hasOwnProperty("propertyDefinitionId") && !(a.isInteger(e.propertyDefinitionId) || e.propertyDefinitionId && a.isInteger(e.propertyDefinitionId.low) && a.isInteger(e.propertyDefinitionId.high))) return "propertyDefinitionId: integer|Long expected"; + if (null != e.propertyIcon && e.hasOwnProperty("propertyIcon")) + { + var t = l.webcast.data.Image.verify(e.propertyIcon); + if (t) return "propertyIcon." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.BurstInfo) return e; + var t = new l.webcast.data.BurstInfo; + if (null != e.burstTimeRemainSeconds && (a.Long ? (t.burstTimeRemainSeconds = a.Long.fromValue(e.burstTimeRemainSeconds)).unsigned = !1 : "string" == typeof e.burstTimeRemainSeconds ? t.burstTimeRemainSeconds = parseInt(e.burstTimeRemainSeconds, 10) : "number" == typeof e.burstTimeRemainSeconds ? t.burstTimeRemainSeconds = e.burstTimeRemainSeconds : "object" == typeof e.burstTimeRemainSeconds && (t.burstTimeRemainSeconds = new a.LongBits(e.burstTimeRemainSeconds.low >>> 0, e.burstTimeRemainSeconds.high >>> 0).toNumber())), null != e.multiple && (a.Long ? (t.multiple = a.Long.fromValue(e.multiple)).unsigned = !1 : "string" == typeof e.multiple ? t.multiple = parseInt(e.multiple, 10) : "number" == typeof e.multiple ? t.multiple = e.multiple : "object" == typeof e.multiple && (t.multiple = new a.LongBits(e.multiple.low >>> 0, e.multiple.high >>> 0).toNumber())), null != e.propertyDefinitionId && (a.Long ? (t.propertyDefinitionId = a.Long.fromValue(e.propertyDefinitionId)).unsigned = !1 : "string" == typeof e.propertyDefinitionId ? t.propertyDefinitionId = parseInt(e.propertyDefinitionId, 10) : "number" == typeof e.propertyDefinitionId ? t.propertyDefinitionId = e.propertyDefinitionId : "object" == typeof e.propertyDefinitionId && (t.propertyDefinitionId = new a.LongBits(e.propertyDefinitionId.low >>> 0, e.propertyDefinitionId.high >>> 0).toNumber())), null != e.propertyIcon) + { + if ("object" != typeof e.propertyIcon) throw TypeError(".webcast.data.BurstInfo.propertyIcon: object expected"); + t.propertyIcon = l.webcast.data.Image.fromObject(e.propertyIcon) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.burstTimeRemainSeconds = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.burstTimeRemainSeconds = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.multiple = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.multiple = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.propertyDefinitionId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.propertyDefinitionId = t.longs === String ? "0" : 0; + n.propertyIcon = null + } + return null != e.burstTimeRemainSeconds && e.hasOwnProperty("burstTimeRemainSeconds") && ("number" == typeof e.burstTimeRemainSeconds ? n.burstTimeRemainSeconds = t.longs === String ? String(e.burstTimeRemainSeconds) : e.burstTimeRemainSeconds : n.burstTimeRemainSeconds = t.longs === String ? a.Long.prototype.toString.call(e.burstTimeRemainSeconds) : t.longs === Number ? new a.LongBits(e.burstTimeRemainSeconds.low >>> 0, e.burstTimeRemainSeconds.high >>> 0).toNumber() : e.burstTimeRemainSeconds), null != e.multiple && e.hasOwnProperty("multiple") && ("number" == typeof e.multiple ? n.multiple = t.longs === String ? String(e.multiple) : e.multiple : n.multiple = t.longs === String ? a.Long.prototype.toString.call(e.multiple) : t.longs === Number ? new a.LongBits(e.multiple.low >>> 0, e.multiple.high >>> 0).toNumber() : e.multiple), null != e.propertyDefinitionId && e.hasOwnProperty("propertyDefinitionId") && ("number" == typeof e.propertyDefinitionId ? n.propertyDefinitionId = t.longs === String ? String(e.propertyDefinitionId) : e.propertyDefinitionId : n.propertyDefinitionId = t.longs === String ? a.Long.prototype.toString.call(e.propertyDefinitionId) : t.longs === Number ? new a.LongBits(e.propertyDefinitionId.low >>> 0, e.propertyDefinitionId.high >>> 0).toNumber() : e.propertyDefinitionId), null != e.propertyIcon && e.hasOwnProperty("propertyIcon") && (n.propertyIcon = l.webcast.data.Image.toObject(e.propertyIcon, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.RoomHealthScoreInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.score = 0, e.prototype.bubbleMessage = "", e.prototype.jumpUrl = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.score && Object.hasOwnProperty.call(e, "score") && t.uint32(9).double(e.score), null != e.bubbleMessage && Object.hasOwnProperty.call(e, "bubbleMessage") && t.uint32(18).string(e.bubbleMessage), null != e.jumpUrl && Object.hasOwnProperty.call(e, "jumpUrl") && t.uint32(26).string(e.jumpUrl), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RoomHealthScoreInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.score = e.double(); + break; + case 2: + r.bubbleMessage = e.string(); + break; + case 3: + r.jumpUrl = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.score && e.hasOwnProperty("score") && "number" != typeof e.score ? "score: number expected" : null != e.bubbleMessage && e.hasOwnProperty("bubbleMessage") && !a.isString(e.bubbleMessage) ? "bubbleMessage: string expected" : null != e.jumpUrl && e.hasOwnProperty("jumpUrl") && !a.isString(e.jumpUrl) ? "jumpUrl: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RoomHealthScoreInfo) return e; + var t = new l.webcast.data.RoomHealthScoreInfo; + return null != e.score && (t.score = Number(e.score)), null != e.bubbleMessage && (t.bubbleMessage = String(e.bubbleMessage)), null != e.jumpUrl && (t.jumpUrl = String(e.jumpUrl)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.score = 0, n.bubbleMessage = "", n.jumpUrl = ""), null != e.score && e.hasOwnProperty("score") && (n.score = t.json && !isFinite(e.score) ? String(e.score) : e.score), null != e.bubbleMessage && e.hasOwnProperty("bubbleMessage") && (n.bubbleMessage = e.bubbleMessage), null != e.jumpUrl && e.hasOwnProperty("jumpUrl") && (n.jumpUrl = e.jumpUrl), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.CoverQuality = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.level = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.bubbleTip = "", e.prototype.popTip = "", e.prototype.uri = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.level && Object.hasOwnProperty.call(e, "level") && t.uint32(8).int64(e.level), null != e.bubbleTip && Object.hasOwnProperty.call(e, "bubbleTip") && t.uint32(18).string(e.bubbleTip), null != e.popTip && Object.hasOwnProperty.call(e, "popTip") && t.uint32(26).string(e.popTip), null != e.uri && Object.hasOwnProperty.call(e, "uri") && t.uint32(34).string(e.uri), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.CoverQuality; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.level = e.int64(); + break; + case 2: + r.bubbleTip = e.string(); + break; + case 3: + r.popTip = e.string(); + break; + case 4: + r.uri = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.level && e.hasOwnProperty("level") && !(a.isInteger(e.level) || e.level && a.isInteger(e.level.low) && a.isInteger(e.level.high)) ? "level: integer|Long expected" : null != e.bubbleTip && e.hasOwnProperty("bubbleTip") && !a.isString(e.bubbleTip) ? "bubbleTip: string expected" : null != e.popTip && e.hasOwnProperty("popTip") && !a.isString(e.popTip) ? "popTip: string expected" : null != e.uri && e.hasOwnProperty("uri") && !a.isString(e.uri) ? "uri: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.CoverQuality) return e; + var t = new l.webcast.data.CoverQuality; + return null != e.level && (a.Long ? (t.level = a.Long.fromValue(e.level)).unsigned = !1 : "string" == typeof e.level ? t.level = parseInt(e.level, 10) : "number" == typeof e.level ? t.level = e.level : "object" == typeof e.level && (t.level = new a.LongBits(e.level.low >>> 0, e.level.high >>> 0).toNumber())), null != e.bubbleTip && (t.bubbleTip = String(e.bubbleTip)), null != e.popTip && (t.popTip = String(e.popTip)), null != e.uri && (t.uri = String(e.uri)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.level = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.level = t.longs === String ? "0" : 0; + n.bubbleTip = "", n.popTip = "", n.uri = "" + } + return null != e.level && e.hasOwnProperty("level") && ("number" == typeof e.level ? n.level = t.longs === String ? String(e.level) : e.level : n.level = t.longs === String ? a.Long.prototype.toString.call(e.level) : t.longs === Number ? new a.LongBits(e.level.low >>> 0, e.level.high >>> 0).toNumber() : e.level), null != e.bubbleTip && e.hasOwnProperty("bubbleTip") && (n.bubbleTip = e.bubbleTip), null != e.popTip && e.hasOwnProperty("popTip") && (n.popTip = e.popTip), null != e.uri && e.hasOwnProperty("uri") && (n.uri = e.uri), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ToutiaoRoomCell = function () + { + function e(e) + { + if (this.data = [], this.largeImage = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.data = a.emptyArray, e.prototype.largeImage = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.data && e.data.length) + for (var n = 0; n < e.data.length; ++n) l.webcast.data.Room.encode(e.data[n], t.uint32(10).fork()).ldelim(); + if (null != e.largeImage && e.largeImage.length) + for (n = 0; n < e.largeImage.length; ++n) l.webcast.data.Image.encode(e.largeImage[n], t.uint32(18).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ToutiaoRoomCell; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.data && r.data.length || (r.data = []), r.data.push(l.webcast.data.Room.decode(e, e.uint32())); + break; + case 2: + r.largeImage && r.largeImage.length || (r.largeImage = []), r.largeImage.push(l.webcast.data.Image.decode(e, e.uint32())); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.data && e.hasOwnProperty("data")) + { + if (!Array.isArray(e.data)) return "data: array expected"; + for (var t = 0; t < e.data.length; ++t) + { + if (n = l.webcast.data.Room.verify(e.data[t])) return "data." + n + } + } + if (null != e.largeImage && e.hasOwnProperty("largeImage")) + { + if (!Array.isArray(e.largeImage)) return "largeImage: array expected"; + for (t = 0; t < e.largeImage.length; ++t) + { + var n; + if (n = l.webcast.data.Image.verify(e.largeImage[t])) return "largeImage." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ToutiaoRoomCell) return e; + var t = new l.webcast.data.ToutiaoRoomCell; + if (e.data) + { + if (!Array.isArray(e.data)) throw TypeError(".webcast.data.ToutiaoRoomCell.data: array expected"); + t.data = []; + for (var n = 0; n < e.data.length; ++n) + { + if ("object" != typeof e.data[n]) throw TypeError(".webcast.data.ToutiaoRoomCell.data: object expected"); + t.data[n] = l.webcast.data.Room.fromObject(e.data[n]) + } + } + if (e.largeImage) + { + if (!Array.isArray(e.largeImage)) throw TypeError(".webcast.data.ToutiaoRoomCell.largeImage: array expected"); + t.largeImage = []; + for (n = 0; n < e.largeImage.length; ++n) + { + if ("object" != typeof e.largeImage[n]) throw TypeError(".webcast.data.ToutiaoRoomCell.largeImage: object expected"); + t.largeImage[n] = l.webcast.data.Image.fromObject(e.largeImage[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.data = [], n.largeImage = []), e.data && e.data.length) + { + n.data = []; + for (var r = 0; r < e.data.length; ++r) n.data[r] = l.webcast.data.Room.toObject(e.data[r], t) + } + if (e.largeImage && e.largeImage.length) + { + n.largeImage = []; + for (r = 0; r < e.largeImage.length; ++r) n.largeImage[r] = l.webcast.data.Image.toObject(e.largeImage[r], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.TVStation = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.isIdle = !1, e.prototype.stateDesc = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.isIdle && Object.hasOwnProperty.call(e, "isIdle") && t.uint32(8).bool(e.isIdle), null != e.stateDesc && Object.hasOwnProperty.call(e, "stateDesc") && t.uint32(18).string(e.stateDesc), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.TVStation; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.isIdle = e.bool(); + break; + case 2: + r.stateDesc = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.isIdle && e.hasOwnProperty("isIdle") && "boolean" != typeof e.isIdle ? "isIdle: boolean expected" : null != e.stateDesc && e.hasOwnProperty("stateDesc") && !a.isString(e.stateDesc) ? "stateDesc: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.TVStation) return e; + var t = new l.webcast.data.TVStation; + return null != e.isIdle && (t.isIdle = Boolean(e.isIdle)), null != e.stateDesc && (t.stateDesc = String(e.stateDesc)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.isIdle = !1, n.stateDesc = ""), null != e.isIdle && e.hasOwnProperty("isIdle") && (n.isIdle = e.isIdle), null != e.stateDesc && e.hasOwnProperty("stateDesc") && (n.stateDesc = e.stateDesc), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.CommentBox = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.icon = null, e.prototype.placeholder = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.icon && Object.hasOwnProperty.call(e, "icon") && l.webcast.data.Image.encode(e.icon, t.uint32(10).fork()).ldelim(), null != e.placeholder && Object.hasOwnProperty.call(e, "placeholder") && t.uint32(18).string(e.placeholder), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.CommentBox; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.icon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.placeholder = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.icon && e.hasOwnProperty("icon")) + { + var t = l.webcast.data.Image.verify(e.icon); + if (t) return "icon." + t + } + return null != e.placeholder && e.hasOwnProperty("placeholder") && !a.isString(e.placeholder) ? "placeholder: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.CommentBox) return e; + var t = new l.webcast.data.CommentBox; + if (null != e.icon) + { + if ("object" != typeof e.icon) throw TypeError(".webcast.data.CommentBox.icon: object expected"); + t.icon = l.webcast.data.Image.fromObject(e.icon) + } + return null != e.placeholder && (t.placeholder = String(e.placeholder)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.icon = null, n.placeholder = ""), null != e.icon && e.hasOwnProperty("icon") && (n.icon = l.webcast.data.Image.toObject(e.icon, t)), null != e.placeholder && e.hasOwnProperty("placeholder") && (n.placeholder = e.placeholder), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.RoomCart = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.containCart = !1, e.prototype.total = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.flashTotal = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.cartIcon = "", e.prototype.showCart = 0, e.prototype.vertical = null, e.prototype.horizontal = null, e.prototype.globalCustomIcons = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.containCart && Object.hasOwnProperty.call(e, "containCart") && t.uint32(8).bool(e.containCart), null != e.total && Object.hasOwnProperty.call(e, "total") && t.uint32(16).int64(e.total), null != e.flashTotal && Object.hasOwnProperty.call(e, "flashTotal") && t.uint32(24).int64(e.flashTotal), null != e.cartIcon && Object.hasOwnProperty.call(e, "cartIcon") && t.uint32(34).string(e.cartIcon), null != e.showCart && Object.hasOwnProperty.call(e, "showCart") && t.uint32(40).int32(e.showCart), null != e.vertical && Object.hasOwnProperty.call(e, "vertical") && l.webcast.data.CartVertical.encode(e.vertical, t.uint32(50).fork()).ldelim(), null != e.horizontal && Object.hasOwnProperty.call(e, "horizontal") && l.webcast.data.CartHorizontal.encode(e.horizontal, t.uint32(58).fork()).ldelim(), null != e.globalCustomIcons && Object.hasOwnProperty.call(e, "globalCustomIcons") && l.webcast.data.GlobalCustomIcons.encode(e.globalCustomIcons, t.uint32(66).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RoomCart; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.containCart = e.bool(); + break; + case 2: + r.total = e.int64(); + break; + case 3: + r.flashTotal = e.int64(); + break; + case 4: + r.cartIcon = e.string(); + break; + case 5: + r.showCart = e.int32(); + break; + case 6: + r.vertical = l.webcast.data.CartVertical.decode(e, e.uint32()); + break; + case 7: + r.horizontal = l.webcast.data.CartHorizontal.decode(e, e.uint32()); + break; + case 8: + r.globalCustomIcons = l.webcast.data.GlobalCustomIcons.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.containCart && e.hasOwnProperty("containCart") && "boolean" != typeof e.containCart) return "containCart: boolean expected"; + if (null != e.total && e.hasOwnProperty("total") && !(a.isInteger(e.total) || e.total && a.isInteger(e.total.low) && a.isInteger(e.total.high))) return "total: integer|Long expected"; + if (null != e.flashTotal && e.hasOwnProperty("flashTotal") && !(a.isInteger(e.flashTotal) || e.flashTotal && a.isInteger(e.flashTotal.low) && a.isInteger(e.flashTotal.high))) return "flashTotal: integer|Long expected"; + if (null != e.cartIcon && e.hasOwnProperty("cartIcon") && !a.isString(e.cartIcon)) return "cartIcon: string expected"; + if (null != e.showCart && e.hasOwnProperty("showCart") && !a.isInteger(e.showCart)) return "showCart: integer expected"; + var t; + if (null != e.vertical && e.hasOwnProperty("vertical") && (t = l.webcast.data.CartVertical.verify(e.vertical))) return "vertical." + t; + if (null != e.horizontal && e.hasOwnProperty("horizontal") && (t = l.webcast.data.CartHorizontal.verify(e.horizontal))) return "horizontal." + t; + if (null != e.globalCustomIcons && e.hasOwnProperty("globalCustomIcons") && (t = l.webcast.data.GlobalCustomIcons.verify(e.globalCustomIcons))) return "globalCustomIcons." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RoomCart) return e; + var t = new l.webcast.data.RoomCart; + if (null != e.containCart && (t.containCart = Boolean(e.containCart)), null != e.total && (a.Long ? (t.total = a.Long.fromValue(e.total)).unsigned = !1 : "string" == typeof e.total ? t.total = parseInt(e.total, 10) : "number" == typeof e.total ? t.total = e.total : "object" == typeof e.total && (t.total = new a.LongBits(e.total.low >>> 0, e.total.high >>> 0).toNumber())), null != e.flashTotal && (a.Long ? (t.flashTotal = a.Long.fromValue(e.flashTotal)).unsigned = !1 : "string" == typeof e.flashTotal ? t.flashTotal = parseInt(e.flashTotal, 10) : "number" == typeof e.flashTotal ? t.flashTotal = e.flashTotal : "object" == typeof e.flashTotal && (t.flashTotal = new a.LongBits(e.flashTotal.low >>> 0, e.flashTotal.high >>> 0).toNumber())), null != e.cartIcon && (t.cartIcon = String(e.cartIcon)), null != e.showCart && (t.showCart = 0 | e.showCart), null != e.vertical) + { + if ("object" != typeof e.vertical) throw TypeError(".webcast.data.RoomCart.vertical: object expected"); + t.vertical = l.webcast.data.CartVertical.fromObject(e.vertical) + } + if (null != e.horizontal) + { + if ("object" != typeof e.horizontal) throw TypeError(".webcast.data.RoomCart.horizontal: object expected"); + t.horizontal = l.webcast.data.CartHorizontal.fromObject(e.horizontal) + } + if (null != e.globalCustomIcons) + { + if ("object" != typeof e.globalCustomIcons) throw TypeError(".webcast.data.RoomCart.globalCustomIcons: object expected"); + t.globalCustomIcons = l.webcast.data.GlobalCustomIcons.fromObject(e.globalCustomIcons) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.containCart = !1, a.Long) + { + var r = new a.Long(0, 0, !1); + n.total = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.total = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.flashTotal = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.flashTotal = t.longs === String ? "0" : 0; + n.cartIcon = "", n.showCart = 0, n.vertical = null, n.horizontal = null, n.globalCustomIcons = null + } + return null != e.containCart && e.hasOwnProperty("containCart") && (n.containCart = e.containCart), null != e.total && e.hasOwnProperty("total") && ("number" == typeof e.total ? n.total = t.longs === String ? String(e.total) : e.total : n.total = t.longs === String ? a.Long.prototype.toString.call(e.total) : t.longs === Number ? new a.LongBits(e.total.low >>> 0, e.total.high >>> 0).toNumber() : e.total), null != e.flashTotal && e.hasOwnProperty("flashTotal") && ("number" == typeof e.flashTotal ? n.flashTotal = t.longs === String ? String(e.flashTotal) : e.flashTotal : n.flashTotal = t.longs === String ? a.Long.prototype.toString.call(e.flashTotal) : t.longs === Number ? new a.LongBits(e.flashTotal.low >>> 0, e.flashTotal.high >>> 0).toNumber() : e.flashTotal), null != e.cartIcon && e.hasOwnProperty("cartIcon") && (n.cartIcon = e.cartIcon), null != e.showCart && e.hasOwnProperty("showCart") && (n.showCart = e.showCart), null != e.vertical && e.hasOwnProperty("vertical") && (n.vertical = l.webcast.data.CartVertical.toObject(e.vertical, t)), null != e.horizontal && e.hasOwnProperty("horizontal") && (n.horizontal = l.webcast.data.CartHorizontal.toObject(e.horizontal, t)), null != e.globalCustomIcons && e.hasOwnProperty("globalCustomIcons") && (n.globalCustomIcons = l.webcast.data.GlobalCustomIcons.toObject(e.globalCustomIcons, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.CartVertical = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.allowShowCart = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.allowShowCart && Object.hasOwnProperty.call(e, "allowShowCart") && t.uint32(8).bool(e.allowShowCart), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.CartVertical; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.allowShowCart = e.bool(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.allowShowCart && e.hasOwnProperty("allowShowCart") && "boolean" != typeof e.allowShowCart ? "allowShowCart: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.CartVertical) return e; + var t = new l.webcast.data.CartVertical; + return null != e.allowShowCart && (t.allowShowCart = Boolean(e.allowShowCart)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.allowShowCart = !1), null != e.allowShowCart && e.hasOwnProperty("allowShowCart") && (n.allowShowCart = e.allowShowCart), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.CartHorizontal = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.allowShowCart = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.allowShowCart && Object.hasOwnProperty.call(e, "allowShowCart") && t.uint32(8).bool(e.allowShowCart), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.CartHorizontal; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.allowShowCart = e.bool(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.allowShowCart && e.hasOwnProperty("allowShowCart") && "boolean" != typeof e.allowShowCart ? "allowShowCart: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.CartHorizontal) return e; + var t = new l.webcast.data.CartHorizontal; + return null != e.allowShowCart && (t.allowShowCart = Boolean(e.allowShowCart)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.allowShowCart = !1), null != e.allowShowCart && e.hasOwnProperty("allowShowCart") && (n.allowShowCart = e.allowShowCart), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.GlobalCustomIcons = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.staticIconUrl = "", e.prototype.animatedIconUrl = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.staticIconUrl && Object.hasOwnProperty.call(e, "staticIconUrl") && t.uint32(10).string(e.staticIconUrl), null != e.animatedIconUrl && Object.hasOwnProperty.call(e, "animatedIconUrl") && t.uint32(18).string(e.animatedIconUrl), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.GlobalCustomIcons; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.staticIconUrl = e.string(); + break; + case 2: + r.animatedIconUrl = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.staticIconUrl && e.hasOwnProperty("staticIconUrl") && !a.isString(e.staticIconUrl) ? "staticIconUrl: string expected" : null != e.animatedIconUrl && e.hasOwnProperty("animatedIconUrl") && !a.isString(e.animatedIconUrl) ? "animatedIconUrl: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GlobalCustomIcons) return e; + var t = new l.webcast.data.GlobalCustomIcons; + return null != e.staticIconUrl && (t.staticIconUrl = String(e.staticIconUrl)), null != e.animatedIconUrl && (t.animatedIconUrl = String(e.animatedIconUrl)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.staticIconUrl = "", n.animatedIconUrl = ""), null != e.staticIconUrl && e.hasOwnProperty("staticIconUrl") && (n.staticIconUrl = e.staticIconUrl), null != e.animatedIconUrl && e.hasOwnProperty("animatedIconUrl") && (n.animatedIconUrl = e.animatedIconUrl), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ContainerType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "UnknownContainerType"] = 0, t[e[1] = "Lynx"] = 1, t[e[2] = "WebView"] = 2, t + }(), e.ShortTouchBigCard = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.bigCardUrl = "", e.prototype.containerType = 0, e.prototype.width = 0, e.prototype.height = 0, e.prototype.duration = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.bigCardUrl && Object.hasOwnProperty.call(e, "bigCardUrl") && t.uint32(10).string(e.bigCardUrl), null != e.containerType && Object.hasOwnProperty.call(e, "containerType") && t.uint32(16).int32(e.containerType), null != e.width && Object.hasOwnProperty.call(e, "width") && t.uint32(24).int32(e.width), null != e.height && Object.hasOwnProperty.call(e, "height") && t.uint32(32).int32(e.height), null != e.duration && Object.hasOwnProperty.call(e, "duration") && t.uint32(40).int32(e.duration), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ShortTouchBigCard; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.bigCardUrl = e.string(); + break; + case 2: + r.containerType = e.int32(); + break; + case 3: + r.width = e.int32(); + break; + case 4: + r.height = e.int32(); + break; + case 5: + r.duration = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.bigCardUrl && e.hasOwnProperty("bigCardUrl") && !a.isString(e.bigCardUrl)) return "bigCardUrl: string expected"; + if (null != e.containerType && e.hasOwnProperty("containerType")) switch (e.containerType) + { + default: + return "containerType: enum value expected"; + case 0: + case 1: + case 2: + } + return null != e.width && e.hasOwnProperty("width") && !a.isInteger(e.width) ? "width: integer expected" : null != e.height && e.hasOwnProperty("height") && !a.isInteger(e.height) ? "height: integer expected" : null != e.duration && e.hasOwnProperty("duration") && !a.isInteger(e.duration) ? "duration: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ShortTouchBigCard) return e; + var t = new l.webcast.data.ShortTouchBigCard; + switch (null != e.bigCardUrl && (t.bigCardUrl = String(e.bigCardUrl)), e.containerType) + { + case "UnknownContainerType": + case 0: + t.containerType = 0; + break; + case "Lynx": + case 1: + t.containerType = 1; + break; + case "WebView": + case 2: + t.containerType = 2 + } + return null != e.width && (t.width = 0 | e.width), null != e.height && (t.height = 0 | e.height), null != e.duration && (t.duration = 0 | e.duration), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.bigCardUrl = "", n.containerType = t.enums === String ? "UnknownContainerType" : 0, n.width = 0, n.height = 0, n.duration = 0), null != e.bigCardUrl && e.hasOwnProperty("bigCardUrl") && (n.bigCardUrl = e.bigCardUrl), null != e.containerType && e.hasOwnProperty("containerType") && (n.containerType = t.enums === String ? l.webcast.data.ContainerType[e.containerType] : e.containerType), null != e.width && e.hasOwnProperty("width") && (n.width = e.width), null != e.height && e.hasOwnProperty("height") && (n.height = e.height), null != e.duration && e.hasOwnProperty("duration") && (n.duration = e.duration), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ShortTouchArea = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.type = 0, e.prototype.priority = 0, e.prototype.minWebcastSdkVersion = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.shortTouchType = 0, e.prototype.shortTouchInfo = null, e.prototype.shortTouchBigCard = null, e.prototype.containerPayload = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.type && Object.hasOwnProperty.call(e, "type") && t.uint32(8).int32(e.type), null != e.priority && Object.hasOwnProperty.call(e, "priority") && t.uint32(16).uint32(e.priority), null != e.minWebcastSdkVersion && Object.hasOwnProperty.call(e, "minWebcastSdkVersion") && t.uint32(24).int64(e.minWebcastSdkVersion), null != e.shortTouchType && Object.hasOwnProperty.call(e, "shortTouchType") && t.uint32(32).int32(e.shortTouchType), null != e.shortTouchInfo && Object.hasOwnProperty.call(e, "shortTouchInfo") && l.webcast.data.ShortTouchInfo.encode(e.shortTouchInfo, t.uint32(42).fork()).ldelim(), null != e.shortTouchBigCard && Object.hasOwnProperty.call(e, "shortTouchBigCard") && l.webcast.data.ShortTouchBigCard.encode(e.shortTouchBigCard, t.uint32(50).fork()).ldelim(), null != e.containerPayload && Object.hasOwnProperty.call(e, "containerPayload") && t.uint32(58).string(e.containerPayload), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ShortTouchArea; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.type = e.int32(); + break; + case 2: + r.priority = e.uint32(); + break; + case 3: + r.minWebcastSdkVersion = e.int64(); + break; + case 4: + r.shortTouchType = e.int32(); + break; + case 5: + r.shortTouchInfo = l.webcast.data.ShortTouchInfo.decode(e, e.uint32()); + break; + case 6: + r.shortTouchBigCard = l.webcast.data.ShortTouchBigCard.decode(e, e.uint32()); + break; + case 7: + r.containerPayload = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.type && e.hasOwnProperty("type") && !a.isInteger(e.type)) return "type: integer expected"; + if (null != e.priority && e.hasOwnProperty("priority") && !a.isInteger(e.priority)) return "priority: integer expected"; + if (null != e.minWebcastSdkVersion && e.hasOwnProperty("minWebcastSdkVersion") && !(a.isInteger(e.minWebcastSdkVersion) || e.minWebcastSdkVersion && a.isInteger(e.minWebcastSdkVersion.low) && a.isInteger(e.minWebcastSdkVersion.high))) return "minWebcastSdkVersion: integer|Long expected"; + if (null != e.shortTouchType && e.hasOwnProperty("shortTouchType")) switch (e.shortTouchType) + { + default: + return "shortTouchType: enum value expected"; + case 0: + case 1: + case 2: + } + var t; + if (null != e.shortTouchInfo && e.hasOwnProperty("shortTouchInfo") && (t = l.webcast.data.ShortTouchInfo.verify(e.shortTouchInfo))) return "shortTouchInfo." + t; + if (null != e.shortTouchBigCard && e.hasOwnProperty("shortTouchBigCard") && (t = l.webcast.data.ShortTouchBigCard.verify(e.shortTouchBigCard))) return "shortTouchBigCard." + t; + return null != e.containerPayload && e.hasOwnProperty("containerPayload") && !a.isString(e.containerPayload) ? "containerPayload: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ShortTouchArea) return e; + var t = new l.webcast.data.ShortTouchArea; + switch (null != e.type && (t.type = 0 | e.type), null != e.priority && (t.priority = e.priority >>> 0), null != e.minWebcastSdkVersion && (a.Long ? (t.minWebcastSdkVersion = a.Long.fromValue(e.minWebcastSdkVersion)).unsigned = !1 : "string" == typeof e.minWebcastSdkVersion ? t.minWebcastSdkVersion = parseInt(e.minWebcastSdkVersion, 10) : "number" == typeof e.minWebcastSdkVersion ? t.minWebcastSdkVersion = e.minWebcastSdkVersion : "object" == typeof e.minWebcastSdkVersion && (t.minWebcastSdkVersion = new a.LongBits(e.minWebcastSdkVersion.low >>> 0, e.minWebcastSdkVersion.high >>> 0).toNumber())), e.shortTouchType) + { + case "UnknownShortTouchType": + case 0: + t.shortTouchType = 0; + break; + case "Client": + case 1: + t.shortTouchType = 1; + break; + case "FrontEnd": + case 2: + t.shortTouchType = 2 + } + if (null != e.shortTouchInfo) + { + if ("object" != typeof e.shortTouchInfo) throw TypeError(".webcast.data.ShortTouchArea.shortTouchInfo: object expected"); + t.shortTouchInfo = l.webcast.data.ShortTouchInfo.fromObject(e.shortTouchInfo) + } + if (null != e.shortTouchBigCard) + { + if ("object" != typeof e.shortTouchBigCard) throw TypeError(".webcast.data.ShortTouchArea.shortTouchBigCard: object expected"); + t.shortTouchBigCard = l.webcast.data.ShortTouchBigCard.fromObject(e.shortTouchBigCard) + } + return null != e.containerPayload && (t.containerPayload = String(e.containerPayload)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.type = 0, n.priority = 0, a.Long) + { + var r = new a.Long(0, 0, !1); + n.minWebcastSdkVersion = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.minWebcastSdkVersion = t.longs === String ? "0" : 0; + n.shortTouchType = t.enums === String ? "UnknownShortTouchType" : 0, n.shortTouchInfo = null, n.shortTouchBigCard = null, n.containerPayload = "" + } + return null != e.type && e.hasOwnProperty("type") && (n.type = e.type), null != e.priority && e.hasOwnProperty("priority") && (n.priority = e.priority), null != e.minWebcastSdkVersion && e.hasOwnProperty("minWebcastSdkVersion") && ("number" == typeof e.minWebcastSdkVersion ? n.minWebcastSdkVersion = t.longs === String ? String(e.minWebcastSdkVersion) : e.minWebcastSdkVersion : n.minWebcastSdkVersion = t.longs === String ? a.Long.prototype.toString.call(e.minWebcastSdkVersion) : t.longs === Number ? new a.LongBits(e.minWebcastSdkVersion.low >>> 0, e.minWebcastSdkVersion.high >>> 0).toNumber() : e.minWebcastSdkVersion), null != e.shortTouchType && e.hasOwnProperty("shortTouchType") && (n.shortTouchType = t.enums === String ? l.webcast.data.ShortTouchArea.ShortTouchType[e.shortTouchType] : e.shortTouchType), null != e.shortTouchInfo && e.hasOwnProperty("shortTouchInfo") && (n.shortTouchInfo = l.webcast.data.ShortTouchInfo.toObject(e.shortTouchInfo, t)), null != e.shortTouchBigCard && e.hasOwnProperty("shortTouchBigCard") && (n.shortTouchBigCard = l.webcast.data.ShortTouchBigCard.toObject(e.shortTouchBigCard, t)), null != e.containerPayload && e.hasOwnProperty("containerPayload") && (n.containerPayload = e.containerPayload), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.ShortTouchType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "UnknownShortTouchType"] = 0, t[e[1] = "Client"] = 1, t[e[2] = "FrontEnd"] = 2, t + }(), e + }(), e.ShortTouchImageLayers = function () + { + function e(e) + { + if (this.layers = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.layers = a.emptyArray, e.prototype.baseWidth = 0, e.prototype.baseHeight = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.layers && e.layers.length) + for (var n = 0; n < e.layers.length; ++n) l.webcast.data.ShortTouchImageLayers.Layer.encode(e.layers[n], t.uint32(10).fork()).ldelim(); + return null != e.baseWidth && Object.hasOwnProperty.call(e, "baseWidth") && t.uint32(16).int32(e.baseWidth), null != e.baseHeight && Object.hasOwnProperty.call(e, "baseHeight") && t.uint32(24).int32(e.baseHeight), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ShortTouchImageLayers; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.layers && r.layers.length || (r.layers = []), r.layers.push(l.webcast.data.ShortTouchImageLayers.Layer.decode(e, e.uint32())); + break; + case 2: + r.baseWidth = e.int32(); + break; + case 3: + r.baseHeight = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.layers && e.hasOwnProperty("layers")) + { + if (!Array.isArray(e.layers)) return "layers: array expected"; + for (var t = 0; t < e.layers.length; ++t) + { + var n = l.webcast.data.ShortTouchImageLayers.Layer.verify(e.layers[t]); + if (n) return "layers." + n + } + } + return null != e.baseWidth && e.hasOwnProperty("baseWidth") && !a.isInteger(e.baseWidth) ? "baseWidth: integer expected" : null != e.baseHeight && e.hasOwnProperty("baseHeight") && !a.isInteger(e.baseHeight) ? "baseHeight: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ShortTouchImageLayers) return e; + var t = new l.webcast.data.ShortTouchImageLayers; + if (e.layers) + { + if (!Array.isArray(e.layers)) throw TypeError(".webcast.data.ShortTouchImageLayers.layers: array expected"); + t.layers = []; + for (var n = 0; n < e.layers.length; ++n) + { + if ("object" != typeof e.layers[n]) throw TypeError(".webcast.data.ShortTouchImageLayers.layers: object expected"); + t.layers[n] = l.webcast.data.ShortTouchImageLayers.Layer.fromObject(e.layers[n]) + } + } + return null != e.baseWidth && (t.baseWidth = 0 | e.baseWidth), null != e.baseHeight && (t.baseHeight = 0 | e.baseHeight), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.layers = []), t.defaults && (n.baseWidth = 0, n.baseHeight = 0), e.layers && e.layers.length) + { + n.layers = []; + for (var r = 0; r < e.layers.length; ++r) n.layers[r] = l.webcast.data.ShortTouchImageLayers.Layer.toObject(e.layers[r], t) + } + return null != e.baseWidth && e.hasOwnProperty("baseWidth") && (n.baseWidth = e.baseWidth), null != e.baseHeight && e.hasOwnProperty("baseHeight") && (n.baseHeight = e.baseHeight), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Layer = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.url = "", e.prototype.x = 0, e.prototype.y = 0, e.prototype.width = 0, e.prototype.height = 0, e.prototype.radius = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.url && Object.hasOwnProperty.call(e, "url") && t.uint32(10).string(e.url), null != e.x && Object.hasOwnProperty.call(e, "x") && t.uint32(16).int32(e.x), null != e.y && Object.hasOwnProperty.call(e, "y") && t.uint32(24).int32(e.y), null != e.width && Object.hasOwnProperty.call(e, "width") && t.uint32(32).int32(e.width), null != e.height && Object.hasOwnProperty.call(e, "height") && t.uint32(40).int32(e.height), null != e.radius && Object.hasOwnProperty.call(e, "radius") && t.uint32(48).int32(e.radius), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ShortTouchImageLayers.Layer; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.url = e.string(); + break; + case 2: + r.x = e.int32(); + break; + case 3: + r.y = e.int32(); + break; + case 4: + r.width = e.int32(); + break; + case 5: + r.height = e.int32(); + break; + case 6: + r.radius = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.url && e.hasOwnProperty("url") && !a.isString(e.url) ? "url: string expected" : null != e.x && e.hasOwnProperty("x") && !a.isInteger(e.x) ? "x: integer expected" : null != e.y && e.hasOwnProperty("y") && !a.isInteger(e.y) ? "y: integer expected" : null != e.width && e.hasOwnProperty("width") && !a.isInteger(e.width) ? "width: integer expected" : null != e.height && e.hasOwnProperty("height") && !a.isInteger(e.height) ? "height: integer expected" : null != e.radius && e.hasOwnProperty("radius") && !a.isInteger(e.radius) ? "radius: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ShortTouchImageLayers.Layer) return e; + var t = new l.webcast.data.ShortTouchImageLayers.Layer; + return null != e.url && (t.url = String(e.url)), null != e.x && (t.x = 0 | e.x), null != e.y && (t.y = 0 | e.y), null != e.width && (t.width = 0 | e.width), null != e.height && (t.height = 0 | e.height), null != e.radius && (t.radius = 0 | e.radius), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.url = "", n.x = 0, n.y = 0, n.width = 0, n.height = 0, n.radius = 0), null != e.url && e.hasOwnProperty("url") && (n.url = e.url), null != e.x && e.hasOwnProperty("x") && (n.x = e.x), null != e.y && e.hasOwnProperty("y") && (n.y = e.y), null != e.width && e.hasOwnProperty("width") && (n.width = e.width), null != e.height && e.hasOwnProperty("height") && (n.height = e.height), null != e.radius && e.hasOwnProperty("radius") && (n.radius = e.radius), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.ShortTouchInfo = function () + { + function e(e) + { + if (this.subItemList = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.shortTouchUrl = "", e.prototype.shortTouchFallbackUrl = "", e.prototype.containerType = 0, e.prototype.width = 0, e.prototype.height = 0, e.prototype.imgUrl = "", e.prototype.jumpSchema = "", e.prototype.showAnimation = 0, e.prototype.animationType = 0, e.prototype.subItemList = a.emptyArray, e.prototype.imgLayers = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.shortTouchUrl && Object.hasOwnProperty.call(e, "shortTouchUrl") && t.uint32(10).string(e.shortTouchUrl), null != e.shortTouchFallbackUrl && Object.hasOwnProperty.call(e, "shortTouchFallbackUrl") && t.uint32(18).string(e.shortTouchFallbackUrl), null != e.containerType && Object.hasOwnProperty.call(e, "containerType") && t.uint32(24).int32(e.containerType), null != e.width && Object.hasOwnProperty.call(e, "width") && t.uint32(32).uint32(e.width), null != e.height && Object.hasOwnProperty.call(e, "height") && t.uint32(40).uint32(e.height), null != e.imgUrl && Object.hasOwnProperty.call(e, "imgUrl") && t.uint32(50).string(e.imgUrl), null != e.jumpSchema && Object.hasOwnProperty.call(e, "jumpSchema") && t.uint32(58).string(e.jumpSchema), null != e.showAnimation && Object.hasOwnProperty.call(e, "showAnimation") && t.uint32(64).int32(e.showAnimation), null != e.animationType && Object.hasOwnProperty.call(e, "animationType") && t.uint32(72).int32(e.animationType), null != e.subItemList && e.subItemList.length) + for (var n = 0; n < e.subItemList.length; ++n) t.uint32(82).string(e.subItemList[n]); + return null != e.imgLayers && Object.hasOwnProperty.call(e, "imgLayers") && l.webcast.data.ShortTouchImageLayers.encode(e.imgLayers, t.uint32(90).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ShortTouchInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.shortTouchUrl = e.string(); + break; + case 2: + r.shortTouchFallbackUrl = e.string(); + break; + case 3: + r.containerType = e.int32(); + break; + case 4: + r.width = e.uint32(); + break; + case 5: + r.height = e.uint32(); + break; + case 6: + r.imgUrl = e.string(); + break; + case 7: + r.jumpSchema = e.string(); + break; + case 8: + r.showAnimation = e.int32(); + break; + case 9: + r.animationType = e.int32(); + break; + case 10: + r.subItemList && r.subItemList.length || (r.subItemList = []), r.subItemList.push(e.string()); + break; + case 11: + r.imgLayers = l.webcast.data.ShortTouchImageLayers.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.shortTouchUrl && e.hasOwnProperty("shortTouchUrl") && !a.isString(e.shortTouchUrl)) return "shortTouchUrl: string expected"; + if (null != e.shortTouchFallbackUrl && e.hasOwnProperty("shortTouchFallbackUrl") && !a.isString(e.shortTouchFallbackUrl)) return "shortTouchFallbackUrl: string expected"; + if (null != e.containerType && e.hasOwnProperty("containerType")) switch (e.containerType) + { + default: + return "containerType: enum value expected"; + case 0: + case 1: + case 2: + } + if (null != e.width && e.hasOwnProperty("width") && !a.isInteger(e.width)) return "width: integer expected"; + if (null != e.height && e.hasOwnProperty("height") && !a.isInteger(e.height)) return "height: integer expected"; + if (null != e.imgUrl && e.hasOwnProperty("imgUrl") && !a.isString(e.imgUrl)) return "imgUrl: string expected"; + if (null != e.jumpSchema && e.hasOwnProperty("jumpSchema") && !a.isString(e.jumpSchema)) return "jumpSchema: string expected"; + if (null != e.showAnimation && e.hasOwnProperty("showAnimation")) switch (e.showAnimation) + { + default: + return "showAnimation: enum value expected"; + case 0: + case 1: + case 2: + } + if (null != e.animationType && e.hasOwnProperty("animationType")) switch (e.animationType) + { + default: + return "animationType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + } + if (null != e.subItemList && e.hasOwnProperty("subItemList")) + { + if (!Array.isArray(e.subItemList)) return "subItemList: array expected"; + for (var t = 0; t < e.subItemList.length; ++t) + if (!a.isString(e.subItemList[t])) return "subItemList: string[] expected" + } + if (null != e.imgLayers && e.hasOwnProperty("imgLayers")) + { + var n = l.webcast.data.ShortTouchImageLayers.verify(e.imgLayers); + if (n) return "imgLayers." + n + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ShortTouchInfo) return e; + var t = new l.webcast.data.ShortTouchInfo; + switch (null != e.shortTouchUrl && (t.shortTouchUrl = String(e.shortTouchUrl)), null != e.shortTouchFallbackUrl && (t.shortTouchFallbackUrl = String(e.shortTouchFallbackUrl)), e.containerType) + { + case "UnknownContainerType": + case 0: + t.containerType = 0; + break; + case "Lynx": + case 1: + t.containerType = 1; + break; + case "WebView": + case 2: + t.containerType = 2 + } + switch (null != e.width && (t.width = e.width >>> 0), null != e.height && (t.height = e.height >>> 0), null != e.imgUrl && (t.imgUrl = String(e.imgUrl)), null != e.jumpSchema && (t.jumpSchema = String(e.jumpSchema)), e.showAnimation) + { + case "UndefinedSwitch": + case 0: + t.showAnimation = 0; + break; + case "OpenSwitch": + case 1: + t.showAnimation = 1; + break; + case "CloseSwitch": + case 2: + t.showAnimation = 2 + } + switch (e.animationType) + { + case "UnknownAnimationType": + case 0: + t.animationType = 0; + break; + case "ShowEveryTime": + case 1: + t.animationType = 1; + break; + case "ShowNotClicked": + case 2: + t.animationType = 2; + break; + case "ShowAppLife": + case 3: + t.animationType = 3; + break; + case "ShowEveryDay": + case 4: + t.animationType = 4 + } + if (e.subItemList) + { + if (!Array.isArray(e.subItemList)) throw TypeError(".webcast.data.ShortTouchInfo.subItemList: array expected"); + t.subItemList = []; + for (var n = 0; n < e.subItemList.length; ++n) t.subItemList[n] = String(e.subItemList[n]) + } + if (null != e.imgLayers) + { + if ("object" != typeof e.imgLayers) throw TypeError(".webcast.data.ShortTouchInfo.imgLayers: object expected"); + t.imgLayers = l.webcast.data.ShortTouchImageLayers.fromObject(e.imgLayers) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.subItemList = []), t.defaults && (n.shortTouchUrl = "", n.shortTouchFallbackUrl = "", n.containerType = t.enums === String ? "UnknownContainerType" : 0, n.width = 0, n.height = 0, n.imgUrl = "", n.jumpSchema = "", n.showAnimation = t.enums === String ? "UndefinedSwitch" : 0, n.animationType = t.enums === String ? "UnknownAnimationType" : 0, n.imgLayers = null), null != e.shortTouchUrl && e.hasOwnProperty("shortTouchUrl") && (n.shortTouchUrl = e.shortTouchUrl), null != e.shortTouchFallbackUrl && e.hasOwnProperty("shortTouchFallbackUrl") && (n.shortTouchFallbackUrl = e.shortTouchFallbackUrl), null != e.containerType && e.hasOwnProperty("containerType") && (n.containerType = t.enums === String ? l.webcast.data.ShortTouchInfo.ContainerType[e.containerType] : e.containerType), null != e.width && e.hasOwnProperty("width") && (n.width = e.width), null != e.height && e.hasOwnProperty("height") && (n.height = e.height), null != e.imgUrl && e.hasOwnProperty("imgUrl") && (n.imgUrl = e.imgUrl), null != e.jumpSchema && e.hasOwnProperty("jumpSchema") && (n.jumpSchema = e.jumpSchema), null != e.showAnimation && e.hasOwnProperty("showAnimation") && (n.showAnimation = t.enums === String ? l.webcast.data.RoomSwitch[e.showAnimation] : e.showAnimation), null != e.animationType && e.hasOwnProperty("animationType") && (n.animationType = t.enums === String ? l.webcast.data.ShortTouchInfo.AnimationType[e.animationType] : e.animationType), e.subItemList && e.subItemList.length) + { + n.subItemList = []; + for (var r = 0; r < e.subItemList.length; ++r) n.subItemList[r] = e.subItemList[r] + } + return null != e.imgLayers && e.hasOwnProperty("imgLayers") && (n.imgLayers = l.webcast.data.ShortTouchImageLayers.toObject(e.imgLayers, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.ContainerType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "UnknownContainerType"] = 0, t[e[1] = "Lynx"] = 1, t[e[2] = "WebView"] = 2, t + }(), e.AnimationType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "UnknownAnimationType"] = 0, t[e[1] = "ShowEveryTime"] = 1, t[e[2] = "ShowNotClicked"] = 2, t[e[3] = "ShowAppLife"] = 3, t[e[4] = "ShowEveryDay"] = 4, t + }(), e + }(), e.QuizExtra = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.quizInfos = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.quizInfos && Object.hasOwnProperty.call(e, "quizInfos") && t.uint32(10).string(e.quizInfos), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.QuizExtra; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.quizInfos = e.string(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.quizInfos && e.hasOwnProperty("quizInfos") && !a.isString(e.quizInfos) ? "quizInfos: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.QuizExtra) return e; + var t = new l.webcast.data.QuizExtra; + return null != e.quizInfos && (t.quizInfos = String(e.quizInfos)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.quizInfos = ""), null != e.quizInfos && e.hasOwnProperty("quizInfos") && (n.quizInfos = e.quizInfos), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.AudioSpeakingImageList = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.maleSpeakingImage = null, e.prototype.femaleSpeakingImage = null, e.prototype.unknownSpeakingImage = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.maleSpeakingImage && Object.hasOwnProperty.call(e, "maleSpeakingImage") && l.webcast.data.AudioSpeakingImageList.SpeakingImage.encode(e.maleSpeakingImage, t.uint32(10).fork()).ldelim(), null != e.femaleSpeakingImage && Object.hasOwnProperty.call(e, "femaleSpeakingImage") && l.webcast.data.AudioSpeakingImageList.SpeakingImage.encode(e.femaleSpeakingImage, t.uint32(18).fork()).ldelim(), null != e.unknownSpeakingImage && Object.hasOwnProperty.call(e, "unknownSpeakingImage") && l.webcast.data.AudioSpeakingImageList.SpeakingImage.encode(e.unknownSpeakingImage, t.uint32(26).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.AudioSpeakingImageList; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.maleSpeakingImage = l.webcast.data.AudioSpeakingImageList.SpeakingImage.decode(e, e.uint32()); + break; + case 2: + r.femaleSpeakingImage = l.webcast.data.AudioSpeakingImageList.SpeakingImage.decode(e, e.uint32()); + break; + case 3: + r.unknownSpeakingImage = l.webcast.data.AudioSpeakingImageList.SpeakingImage.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.maleSpeakingImage && e.hasOwnProperty("maleSpeakingImage") && (t = l.webcast.data.AudioSpeakingImageList.SpeakingImage.verify(e.maleSpeakingImage))) return "maleSpeakingImage." + t; + if (null != e.femaleSpeakingImage && e.hasOwnProperty("femaleSpeakingImage") && (t = l.webcast.data.AudioSpeakingImageList.SpeakingImage.verify(e.femaleSpeakingImage))) return "femaleSpeakingImage." + t; + if (null != e.unknownSpeakingImage && e.hasOwnProperty("unknownSpeakingImage") && (t = l.webcast.data.AudioSpeakingImageList.SpeakingImage.verify(e.unknownSpeakingImage))) return "unknownSpeakingImage." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.AudioSpeakingImageList) return e; + var t = new l.webcast.data.AudioSpeakingImageList; + if (null != e.maleSpeakingImage) + { + if ("object" != typeof e.maleSpeakingImage) throw TypeError(".webcast.data.AudioSpeakingImageList.maleSpeakingImage: object expected"); + t.maleSpeakingImage = l.webcast.data.AudioSpeakingImageList.SpeakingImage.fromObject(e.maleSpeakingImage) + } + if (null != e.femaleSpeakingImage) + { + if ("object" != typeof e.femaleSpeakingImage) throw TypeError(".webcast.data.AudioSpeakingImageList.femaleSpeakingImage: object expected"); + t.femaleSpeakingImage = l.webcast.data.AudioSpeakingImageList.SpeakingImage.fromObject(e.femaleSpeakingImage) + } + if (null != e.unknownSpeakingImage) + { + if ("object" != typeof e.unknownSpeakingImage) throw TypeError(".webcast.data.AudioSpeakingImageList.unknownSpeakingImage: object expected"); + t.unknownSpeakingImage = l.webcast.data.AudioSpeakingImageList.SpeakingImage.fromObject(e.unknownSpeakingImage) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.maleSpeakingImage = null, n.femaleSpeakingImage = null, n.unknownSpeakingImage = null), null != e.maleSpeakingImage && e.hasOwnProperty("maleSpeakingImage") && (n.maleSpeakingImage = l.webcast.data.AudioSpeakingImageList.SpeakingImage.toObject(e.maleSpeakingImage, t)), null != e.femaleSpeakingImage && e.hasOwnProperty("femaleSpeakingImage") && (n.femaleSpeakingImage = l.webcast.data.AudioSpeakingImageList.SpeakingImage.toObject(e.femaleSpeakingImage, t)), null != e.unknownSpeakingImage && e.hasOwnProperty("unknownSpeakingImage") && (n.unknownSpeakingImage = l.webcast.data.AudioSpeakingImageList.SpeakingImage.toObject(e.unknownSpeakingImage, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.SpeakingImage = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.speakingLowImage = null, e.prototype.speakingDefaultImage = null, e.prototype.speakingHighImage = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.speakingLowImage && Object.hasOwnProperty.call(e, "speakingLowImage") && l.webcast.data.Image.encode(e.speakingLowImage, t.uint32(10).fork()).ldelim(), null != e.speakingDefaultImage && Object.hasOwnProperty.call(e, "speakingDefaultImage") && l.webcast.data.Image.encode(e.speakingDefaultImage, t.uint32(18).fork()).ldelim(), null != e.speakingHighImage && Object.hasOwnProperty.call(e, "speakingHighImage") && l.webcast.data.Image.encode(e.speakingHighImage, t.uint32(26).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.AudioSpeakingImageList.SpeakingImage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.speakingLowImage = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.speakingDefaultImage = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 3: + r.speakingHighImage = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.speakingLowImage && e.hasOwnProperty("speakingLowImage") && (t = l.webcast.data.Image.verify(e.speakingLowImage))) return "speakingLowImage." + t; + if (null != e.speakingDefaultImage && e.hasOwnProperty("speakingDefaultImage") && (t = l.webcast.data.Image.verify(e.speakingDefaultImage))) return "speakingDefaultImage." + t; + if (null != e.speakingHighImage && e.hasOwnProperty("speakingHighImage") && (t = l.webcast.data.Image.verify(e.speakingHighImage))) return "speakingHighImage." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.AudioSpeakingImageList.SpeakingImage) return e; + var t = new l.webcast.data.AudioSpeakingImageList.SpeakingImage; + if (null != e.speakingLowImage) + { + if ("object" != typeof e.speakingLowImage) throw TypeError(".webcast.data.AudioSpeakingImageList.SpeakingImage.speakingLowImage: object expected"); + t.speakingLowImage = l.webcast.data.Image.fromObject(e.speakingLowImage) + } + if (null != e.speakingDefaultImage) + { + if ("object" != typeof e.speakingDefaultImage) throw TypeError(".webcast.data.AudioSpeakingImageList.SpeakingImage.speakingDefaultImage: object expected"); + t.speakingDefaultImage = l.webcast.data.Image.fromObject(e.speakingDefaultImage) + } + if (null != e.speakingHighImage) + { + if ("object" != typeof e.speakingHighImage) throw TypeError(".webcast.data.AudioSpeakingImageList.SpeakingImage.speakingHighImage: object expected"); + t.speakingHighImage = l.webcast.data.Image.fromObject(e.speakingHighImage) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.speakingLowImage = null, n.speakingDefaultImage = null, n.speakingHighImage = null), null != e.speakingLowImage && e.hasOwnProperty("speakingLowImage") && (n.speakingLowImage = l.webcast.data.Image.toObject(e.speakingLowImage, t)), null != e.speakingDefaultImage && e.hasOwnProperty("speakingDefaultImage") && (n.speakingDefaultImage = l.webcast.data.Image.toObject(e.speakingDefaultImage, t)), null != e.speakingHighImage && e.hasOwnProperty("speakingHighImage") && (n.speakingHighImage = l.webcast.data.Image.toObject(e.speakingHighImage, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.AudioBGData = function () + { + function e(e) + { + if (this.iconMicNormals = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.imageUri = "", e.prototype.imgType = 0, e.prototype.image = null, e.prototype.imageThumbnail = null, e.prototype.imageAnimatedBG = null, e.prototype.imageNormalAvatar = null, e.prototype.imageStartupAvatar = null, e.prototype.imageChatJoinIcon = null, e.prototype.imageStaticBG = null, e.prototype.speakingImageList = null, e.prototype.statusColorValue = "", e.prototype.publicScreenColorValue = "", e.prototype.timeLimit = 0, e.prototype.bgType = 0, e.prototype.emptyStartColor = "", e.prototype.emptyEndColor = "", e.prototype.imageColdBG = null, e.prototype.imageMicBG = null, e.prototype.iconMicNormals = a.emptyArray, e.prototype.iconMicLock = null, e.prototype.colorMicText = "", e.prototype.colorMicLine = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(8).int64(e.id), null != e.imageUri && Object.hasOwnProperty.call(e, "imageUri") && t.uint32(18).string(e.imageUri), null != e.imgType && Object.hasOwnProperty.call(e, "imgType") && t.uint32(24).int32(e.imgType), null != e.image && Object.hasOwnProperty.call(e, "image") && l.webcast.data.Image.encode(e.image, t.uint32(34).fork()).ldelim(), null != e.imageThumbnail && Object.hasOwnProperty.call(e, "imageThumbnail") && l.webcast.data.Image.encode(e.imageThumbnail, t.uint32(42).fork()).ldelim(), null != e.imageAnimatedBG && Object.hasOwnProperty.call(e, "imageAnimatedBG") && l.webcast.data.Image.encode(e.imageAnimatedBG, t.uint32(50).fork()).ldelim(), null != e.imageNormalAvatar && Object.hasOwnProperty.call(e, "imageNormalAvatar") && l.webcast.data.Image.encode(e.imageNormalAvatar, t.uint32(58).fork()).ldelim(), null != e.imageStartupAvatar && Object.hasOwnProperty.call(e, "imageStartupAvatar") && l.webcast.data.Image.encode(e.imageStartupAvatar, t.uint32(66).fork()).ldelim(), null != e.imageChatJoinIcon && Object.hasOwnProperty.call(e, "imageChatJoinIcon") && l.webcast.data.Image.encode(e.imageChatJoinIcon, t.uint32(74).fork()).ldelim(), null != e.imageStaticBG && Object.hasOwnProperty.call(e, "imageStaticBG") && l.webcast.data.Image.encode(e.imageStaticBG, t.uint32(82).fork()).ldelim(), null != e.speakingImageList && Object.hasOwnProperty.call(e, "speakingImageList") && l.webcast.data.AudioSpeakingImageList.encode(e.speakingImageList, t.uint32(90).fork()).ldelim(), null != e.statusColorValue && Object.hasOwnProperty.call(e, "statusColorValue") && t.uint32(98).string(e.statusColorValue), null != e.publicScreenColorValue && Object.hasOwnProperty.call(e, "publicScreenColorValue") && t.uint32(106).string(e.publicScreenColorValue), null != e.timeLimit && Object.hasOwnProperty.call(e, "timeLimit") && t.uint32(112).int32(e.timeLimit), null != e.bgType && Object.hasOwnProperty.call(e, "bgType") && t.uint32(120).int32(e.bgType), null != e.emptyStartColor && Object.hasOwnProperty.call(e, "emptyStartColor") && t.uint32(130).string(e.emptyStartColor), null != e.emptyEndColor && Object.hasOwnProperty.call(e, "emptyEndColor") && t.uint32(138).string(e.emptyEndColor), null != e.imageColdBG && Object.hasOwnProperty.call(e, "imageColdBG") && l.webcast.data.Image.encode(e.imageColdBG, t.uint32(146).fork()).ldelim(), null != e.imageMicBG && Object.hasOwnProperty.call(e, "imageMicBG") && l.webcast.data.Image.encode(e.imageMicBG, t.uint32(154).fork()).ldelim(), null != e.iconMicNormals && e.iconMicNormals.length) + for (var n = 0; n < e.iconMicNormals.length; ++n) l.webcast.data.Image.encode(e.iconMicNormals[n], t.uint32(162).fork()).ldelim(); + return null != e.iconMicLock && Object.hasOwnProperty.call(e, "iconMicLock") && l.webcast.data.Image.encode(e.iconMicLock, t.uint32(170).fork()).ldelim(), null != e.colorMicText && Object.hasOwnProperty.call(e, "colorMicText") && t.uint32(178).string(e.colorMicText), null != e.colorMicLine && Object.hasOwnProperty.call(e, "colorMicLine") && t.uint32(186).string(e.colorMicLine), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.AudioBGData; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.id = e.int64(); + break; + case 2: + r.imageUri = e.string(); + break; + case 3: + r.imgType = e.int32(); + break; + case 4: + r.image = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 5: + r.imageThumbnail = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 6: + r.imageAnimatedBG = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 7: + r.imageNormalAvatar = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 8: + r.imageStartupAvatar = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 9: + r.imageChatJoinIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 10: + r.imageStaticBG = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 11: + r.speakingImageList = l.webcast.data.AudioSpeakingImageList.decode(e, e.uint32()); + break; + case 12: + r.statusColorValue = e.string(); + break; + case 13: + r.publicScreenColorValue = e.string(); + break; + case 14: + r.timeLimit = e.int32(); + break; + case 15: + r.bgType = e.int32(); + break; + case 16: + r.emptyStartColor = e.string(); + break; + case 17: + r.emptyEndColor = e.string(); + break; + case 18: + r.imageColdBG = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 19: + r.imageMicBG = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 20: + r.iconMicNormals && r.iconMicNormals.length || (r.iconMicNormals = []), r.iconMicNormals.push(l.webcast.data.Image.decode(e, e.uint32())); + break; + case 21: + r.iconMicLock = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 22: + r.colorMicText = e.string(); + break; + case 23: + r.colorMicLine = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high))) return "id: integer|Long expected"; + if (null != e.imageUri && e.hasOwnProperty("imageUri") && !a.isString(e.imageUri)) return "imageUri: string expected"; + if (null != e.imgType && e.hasOwnProperty("imgType") && !a.isInteger(e.imgType)) return "imgType: integer expected"; + if (null != e.image && e.hasOwnProperty("image") && (n = l.webcast.data.Image.verify(e.image))) return "image." + n; + if (null != e.imageThumbnail && e.hasOwnProperty("imageThumbnail") && (n = l.webcast.data.Image.verify(e.imageThumbnail))) return "imageThumbnail." + n; + if (null != e.imageAnimatedBG && e.hasOwnProperty("imageAnimatedBG") && (n = l.webcast.data.Image.verify(e.imageAnimatedBG))) return "imageAnimatedBG." + n; + if (null != e.imageNormalAvatar && e.hasOwnProperty("imageNormalAvatar") && (n = l.webcast.data.Image.verify(e.imageNormalAvatar))) return "imageNormalAvatar." + n; + if (null != e.imageStartupAvatar && e.hasOwnProperty("imageStartupAvatar") && (n = l.webcast.data.Image.verify(e.imageStartupAvatar))) return "imageStartupAvatar." + n; + if (null != e.imageChatJoinIcon && e.hasOwnProperty("imageChatJoinIcon") && (n = l.webcast.data.Image.verify(e.imageChatJoinIcon))) return "imageChatJoinIcon." + n; + if (null != e.imageStaticBG && e.hasOwnProperty("imageStaticBG") && (n = l.webcast.data.Image.verify(e.imageStaticBG))) return "imageStaticBG." + n; + if (null != e.speakingImageList && e.hasOwnProperty("speakingImageList") && (n = l.webcast.data.AudioSpeakingImageList.verify(e.speakingImageList))) return "speakingImageList." + n; + if (null != e.statusColorValue && e.hasOwnProperty("statusColorValue") && !a.isString(e.statusColorValue)) return "statusColorValue: string expected"; + if (null != e.publicScreenColorValue && e.hasOwnProperty("publicScreenColorValue") && !a.isString(e.publicScreenColorValue)) return "publicScreenColorValue: string expected"; + if (null != e.timeLimit && e.hasOwnProperty("timeLimit") && !a.isInteger(e.timeLimit)) return "timeLimit: integer expected"; + if (null != e.bgType && e.hasOwnProperty("bgType")) switch (e.bgType) + { + default: + return "bgType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + } + if (null != e.emptyStartColor && e.hasOwnProperty("emptyStartColor") && !a.isString(e.emptyStartColor)) return "emptyStartColor: string expected"; + if (null != e.emptyEndColor && e.hasOwnProperty("emptyEndColor") && !a.isString(e.emptyEndColor)) return "emptyEndColor: string expected"; + if (null != e.imageColdBG && e.hasOwnProperty("imageColdBG") && (n = l.webcast.data.Image.verify(e.imageColdBG))) return "imageColdBG." + n; + if (null != e.imageMicBG && e.hasOwnProperty("imageMicBG") && (n = l.webcast.data.Image.verify(e.imageMicBG))) return "imageMicBG." + n; + if (null != e.iconMicNormals && e.hasOwnProperty("iconMicNormals")) + { + if (!Array.isArray(e.iconMicNormals)) return "iconMicNormals: array expected"; + for (var t = 0; t < e.iconMicNormals.length; ++t) + { + var n; + if (n = l.webcast.data.Image.verify(e.iconMicNormals[t])) return "iconMicNormals." + n + } + } + if (null != e.iconMicLock && e.hasOwnProperty("iconMicLock") && (n = l.webcast.data.Image.verify(e.iconMicLock))) return "iconMicLock." + n; + return null != e.colorMicText && e.hasOwnProperty("colorMicText") && !a.isString(e.colorMicText) ? "colorMicText: string expected" : null != e.colorMicLine && e.hasOwnProperty("colorMicLine") && !a.isString(e.colorMicLine) ? "colorMicLine: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.AudioBGData) return e; + var t = new l.webcast.data.AudioBGData; + if (null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), null != e.imageUri && (t.imageUri = String(e.imageUri)), null != e.imgType && (t.imgType = 0 | e.imgType), null != e.image) + { + if ("object" != typeof e.image) throw TypeError(".webcast.data.AudioBGData.image: object expected"); + t.image = l.webcast.data.Image.fromObject(e.image) + } + if (null != e.imageThumbnail) + { + if ("object" != typeof e.imageThumbnail) throw TypeError(".webcast.data.AudioBGData.imageThumbnail: object expected"); + t.imageThumbnail = l.webcast.data.Image.fromObject(e.imageThumbnail) + } + if (null != e.imageAnimatedBG) + { + if ("object" != typeof e.imageAnimatedBG) throw TypeError(".webcast.data.AudioBGData.imageAnimatedBG: object expected"); + t.imageAnimatedBG = l.webcast.data.Image.fromObject(e.imageAnimatedBG) + } + if (null != e.imageNormalAvatar) + { + if ("object" != typeof e.imageNormalAvatar) throw TypeError(".webcast.data.AudioBGData.imageNormalAvatar: object expected"); + t.imageNormalAvatar = l.webcast.data.Image.fromObject(e.imageNormalAvatar) + } + if (null != e.imageStartupAvatar) + { + if ("object" != typeof e.imageStartupAvatar) throw TypeError(".webcast.data.AudioBGData.imageStartupAvatar: object expected"); + t.imageStartupAvatar = l.webcast.data.Image.fromObject(e.imageStartupAvatar) + } + if (null != e.imageChatJoinIcon) + { + if ("object" != typeof e.imageChatJoinIcon) throw TypeError(".webcast.data.AudioBGData.imageChatJoinIcon: object expected"); + t.imageChatJoinIcon = l.webcast.data.Image.fromObject(e.imageChatJoinIcon) + } + if (null != e.imageStaticBG) + { + if ("object" != typeof e.imageStaticBG) throw TypeError(".webcast.data.AudioBGData.imageStaticBG: object expected"); + t.imageStaticBG = l.webcast.data.Image.fromObject(e.imageStaticBG) + } + if (null != e.speakingImageList) + { + if ("object" != typeof e.speakingImageList) throw TypeError(".webcast.data.AudioBGData.speakingImageList: object expected"); + t.speakingImageList = l.webcast.data.AudioSpeakingImageList.fromObject(e.speakingImageList) + } + switch (null != e.statusColorValue && (t.statusColorValue = String(e.statusColorValue)), null != e.publicScreenColorValue && (t.publicScreenColorValue = String(e.publicScreenColorValue)), null != e.timeLimit && (t.timeLimit = 0 | e.timeLimit), e.bgType) + { + case "BGTypeUnknow": + case 0: + t.bgType = 0; + break; + case "BGKTV": + case 1: + t.bgType = 1; + break; + case "BGAudio": + case 2: + t.bgType = 2; + break; + case "BGVideo": + case 3: + t.bgType = 3; + break; + case "BGVideoKTV": + case 4: + t.bgType = 4 + } + if (null != e.emptyStartColor && (t.emptyStartColor = String(e.emptyStartColor)), null != e.emptyEndColor && (t.emptyEndColor = String(e.emptyEndColor)), null != e.imageColdBG) + { + if ("object" != typeof e.imageColdBG) throw TypeError(".webcast.data.AudioBGData.imageColdBG: object expected"); + t.imageColdBG = l.webcast.data.Image.fromObject(e.imageColdBG) + } + if (null != e.imageMicBG) + { + if ("object" != typeof e.imageMicBG) throw TypeError(".webcast.data.AudioBGData.imageMicBG: object expected"); + t.imageMicBG = l.webcast.data.Image.fromObject(e.imageMicBG) + } + if (e.iconMicNormals) + { + if (!Array.isArray(e.iconMicNormals)) throw TypeError(".webcast.data.AudioBGData.iconMicNormals: array expected"); + t.iconMicNormals = []; + for (var n = 0; n < e.iconMicNormals.length; ++n) + { + if ("object" != typeof e.iconMicNormals[n]) throw TypeError(".webcast.data.AudioBGData.iconMicNormals: object expected"); + t.iconMicNormals[n] = l.webcast.data.Image.fromObject(e.iconMicNormals[n]) + } + } + if (null != e.iconMicLock) + { + if ("object" != typeof e.iconMicLock) throw TypeError(".webcast.data.AudioBGData.iconMicLock: object expected"); + t.iconMicLock = l.webcast.data.Image.fromObject(e.iconMicLock) + } + return null != e.colorMicText && (t.colorMicText = String(e.colorMicText)), null != e.colorMicLine && (t.colorMicLine = String(e.colorMicLine)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.iconMicNormals = []), t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.id = t.longs === String ? "0" : 0; + n.imageUri = "", n.imgType = 0, n.image = null, n.imageThumbnail = null, n.imageAnimatedBG = null, n.imageNormalAvatar = null, n.imageStartupAvatar = null, n.imageChatJoinIcon = null, n.imageStaticBG = null, n.speakingImageList = null, n.statusColorValue = "", n.publicScreenColorValue = "", n.timeLimit = 0, n.bgType = t.enums === String ? "BGTypeUnknow" : 0, n.emptyStartColor = "", n.emptyEndColor = "", n.imageColdBG = null, n.imageMicBG = null, n.iconMicLock = null, n.colorMicText = "", n.colorMicLine = "" + } + if (null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? n.id = t.longs === String ? String(e.id) : e.id : n.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), null != e.imageUri && e.hasOwnProperty("imageUri") && (n.imageUri = e.imageUri), null != e.imgType && e.hasOwnProperty("imgType") && (n.imgType = e.imgType), null != e.image && e.hasOwnProperty("image") && (n.image = l.webcast.data.Image.toObject(e.image, t)), null != e.imageThumbnail && e.hasOwnProperty("imageThumbnail") && (n.imageThumbnail = l.webcast.data.Image.toObject(e.imageThumbnail, t)), null != e.imageAnimatedBG && e.hasOwnProperty("imageAnimatedBG") && (n.imageAnimatedBG = l.webcast.data.Image.toObject(e.imageAnimatedBG, t)), null != e.imageNormalAvatar && e.hasOwnProperty("imageNormalAvatar") && (n.imageNormalAvatar = l.webcast.data.Image.toObject(e.imageNormalAvatar, t)), null != e.imageStartupAvatar && e.hasOwnProperty("imageStartupAvatar") && (n.imageStartupAvatar = l.webcast.data.Image.toObject(e.imageStartupAvatar, t)), null != e.imageChatJoinIcon && e.hasOwnProperty("imageChatJoinIcon") && (n.imageChatJoinIcon = l.webcast.data.Image.toObject(e.imageChatJoinIcon, t)), null != e.imageStaticBG && e.hasOwnProperty("imageStaticBG") && (n.imageStaticBG = l.webcast.data.Image.toObject(e.imageStaticBG, t)), null != e.speakingImageList && e.hasOwnProperty("speakingImageList") && (n.speakingImageList = l.webcast.data.AudioSpeakingImageList.toObject(e.speakingImageList, t)), null != e.statusColorValue && e.hasOwnProperty("statusColorValue") && (n.statusColorValue = e.statusColorValue), null != e.publicScreenColorValue && e.hasOwnProperty("publicScreenColorValue") && (n.publicScreenColorValue = e.publicScreenColorValue), null != e.timeLimit && e.hasOwnProperty("timeLimit") && (n.timeLimit = e.timeLimit), null != e.bgType && e.hasOwnProperty("bgType") && (n.bgType = t.enums === String ? l.webcast.data.BGType[e.bgType] : e.bgType), null != e.emptyStartColor && e.hasOwnProperty("emptyStartColor") && (n.emptyStartColor = e.emptyStartColor), null != e.emptyEndColor && e.hasOwnProperty("emptyEndColor") && (n.emptyEndColor = e.emptyEndColor), null != e.imageColdBG && e.hasOwnProperty("imageColdBG") && (n.imageColdBG = l.webcast.data.Image.toObject(e.imageColdBG, t)), null != e.imageMicBG && e.hasOwnProperty("imageMicBG") && (n.imageMicBG = l.webcast.data.Image.toObject(e.imageMicBG, t)), e.iconMicNormals && e.iconMicNormals.length) + { + n.iconMicNormals = []; + for (var o = 0; o < e.iconMicNormals.length; ++o) n.iconMicNormals[o] = l.webcast.data.Image.toObject(e.iconMicNormals[o], t) + } + return null != e.iconMicLock && e.hasOwnProperty("iconMicLock") && (n.iconMicLock = l.webcast.data.Image.toObject(e.iconMicLock, t)), null != e.colorMicText && e.hasOwnProperty("colorMicText") && (n.colorMicText = e.colorMicText), null != e.colorMicLine && e.hasOwnProperty("colorMicLine") && (n.colorMicLine = e.colorMicLine), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ActivityRoomSkinInfo = function () + { + function e(e) + { + if (this.verticalScreen = {}, this.horizontalScreen = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.verticalScreen = a.emptyObject, e.prototype.horizontalScreen = a.emptyObject, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.verticalScreen && Object.hasOwnProperty.call(e, "verticalScreen")) + for (var n = Object.keys(e.verticalScreen), r = 0; r < n.length; ++r) t.uint32(10).fork().uint32(8).int32(n[r]), l.webcast.data.Image.encode(e.verticalScreen[n[r]], t.uint32(18).fork()).ldelim().ldelim(); + if (null != e.horizontalScreen && Object.hasOwnProperty.call(e, "horizontalScreen")) + for (n = Object.keys(e.horizontalScreen), r = 0; r < n.length; ++r) t.uint32(18).fork().uint32(8).int32(n[r]), l.webcast.data.Image.encode(e.horizontalScreen[n[r]], t.uint32(18).fork()).ldelim().ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.ActivityRoomSkinInfo; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.verticalScreen === a.emptyObject && (s.verticalScreen = {}); + var u = e.uint32() + e.pos; + for (n = 0, r = null; e.pos < u;) + { + switch ((p = e.uint32()) >>> 3) + { + case 1: + n = e.int32(); + break; + case 2: + r = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & p) + } + } + s.verticalScreen[n] = r; + break; + case 2: + s.horizontalScreen === a.emptyObject && (s.horizontalScreen = {}); + u = e.uint32() + e.pos; + for (n = 0, r = null; e.pos < u;) + { + var p; + switch ((p = e.uint32()) >>> 3) + { + case 1: + n = e.int32(); + break; + case 2: + r = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & p) + } + } + s.horizontalScreen[n] = r; + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.verticalScreen && e.hasOwnProperty("verticalScreen")) + { + if (!a.isObject(e.verticalScreen)) return "verticalScreen: object expected"; + for (var t = Object.keys(e.verticalScreen), n = 0; n < t.length; ++n) + { + if (!a.key32Re.test(t[n])) return "verticalScreen: integer key{k:int32} expected"; + if (r = l.webcast.data.Image.verify(e.verticalScreen[t[n]])) return "verticalScreen." + r + } + } + if (null != e.horizontalScreen && e.hasOwnProperty("horizontalScreen")) + { + if (!a.isObject(e.horizontalScreen)) return "horizontalScreen: object expected"; + for (t = Object.keys(e.horizontalScreen), n = 0; n < t.length; ++n) + { + if (!a.key32Re.test(t[n])) return "horizontalScreen: integer key{k:int32} expected"; + var r; + if (r = l.webcast.data.Image.verify(e.horizontalScreen[t[n]])) return "horizontalScreen." + r + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ActivityRoomSkinInfo) return e; + var t = new l.webcast.data.ActivityRoomSkinInfo; + if (e.verticalScreen) + { + if ("object" != typeof e.verticalScreen) throw TypeError(".webcast.data.ActivityRoomSkinInfo.verticalScreen: object expected"); + t.verticalScreen = {}; + for (var n = Object.keys(e.verticalScreen), r = 0; r < n.length; ++r) + { + if ("object" != typeof e.verticalScreen[n[r]]) throw TypeError(".webcast.data.ActivityRoomSkinInfo.verticalScreen: object expected"); + t.verticalScreen[n[r]] = l.webcast.data.Image.fromObject(e.verticalScreen[n[r]]) + } + } + if (e.horizontalScreen) + { + if ("object" != typeof e.horizontalScreen) throw TypeError(".webcast.data.ActivityRoomSkinInfo.horizontalScreen: object expected"); + t.horizontalScreen = {}; + for (n = Object.keys(e.horizontalScreen), r = 0; r < n.length; ++r) + { + if ("object" != typeof e.horizontalScreen[n[r]]) throw TypeError(".webcast.data.ActivityRoomSkinInfo.horizontalScreen: object expected"); + t.horizontalScreen[n[r]] = l.webcast.data.Image.fromObject(e.horizontalScreen[n[r]]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.verticalScreen = {}, r.horizontalScreen = {}), e.verticalScreen && (n = Object.keys(e.verticalScreen)).length) + { + r.verticalScreen = {}; + for (var o = 0; o < n.length; ++o) r.verticalScreen[n[o]] = l.webcast.data.Image.toObject(e.verticalScreen[n[o]], t) + } + if (e.horizontalScreen && (n = Object.keys(e.horizontalScreen)).length) + { + r.horizontalScreen = {}; + for (o = 0; o < n.length; ++o) r.horizontalScreen[n[o]] = l.webcast.data.Image.toObject(e.horizontalScreen[n[o]], t) + } + return r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.IconType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "Unknown"] = 0, t[e[1] = "Background"] = 1, t[e[2] = "ConvenientGift"] = 2, t[e[3] = "Gift"] = 3, t[e[4] = "LinkMic"] = 4, t[e[5] = "RoomCart"] = 5, t[e[6] = "Stamp"] = 6, t[e[7] = "Business"] = 7, t[e[8] = "More"] = 8, t[e[9] = "Close"] = 9, t[e[10] = "ChatBorder"] = 10, t[e[11] = "AvatarBorder"] = 11, t[e[12] = "BackupBorder"] = 12, t + }(), e + }(), e.RoomReplayInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.replayDuration = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.replayUrl = "", e.prototype.contentUniqId = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.replayDuration && Object.hasOwnProperty.call(e, "replayDuration") && t.uint32(8).int64(e.replayDuration), null != e.replayUrl && Object.hasOwnProperty.call(e, "replayUrl") && t.uint32(18).string(e.replayUrl), null != e.contentUniqId && Object.hasOwnProperty.call(e, "contentUniqId") && t.uint32(26).string(e.contentUniqId), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RoomReplayInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.replayDuration = e.int64(); + break; + case 2: + r.replayUrl = e.string(); + break; + case 3: + r.contentUniqId = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.replayDuration && e.hasOwnProperty("replayDuration") && !(a.isInteger(e.replayDuration) || e.replayDuration && a.isInteger(e.replayDuration.low) && a.isInteger(e.replayDuration.high)) ? "replayDuration: integer|Long expected" : null != e.replayUrl && e.hasOwnProperty("replayUrl") && !a.isString(e.replayUrl) ? "replayUrl: string expected" : null != e.contentUniqId && e.hasOwnProperty("contentUniqId") && !a.isString(e.contentUniqId) ? "contentUniqId: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RoomReplayInfo) return e; + var t = new l.webcast.data.RoomReplayInfo; + return null != e.replayDuration && (a.Long ? (t.replayDuration = a.Long.fromValue(e.replayDuration)).unsigned = !1 : "string" == typeof e.replayDuration ? t.replayDuration = parseInt(e.replayDuration, 10) : "number" == typeof e.replayDuration ? t.replayDuration = e.replayDuration : "object" == typeof e.replayDuration && (t.replayDuration = new a.LongBits(e.replayDuration.low >>> 0, e.replayDuration.high >>> 0).toNumber())), null != e.replayUrl && (t.replayUrl = String(e.replayUrl)), null != e.contentUniqId && (t.contentUniqId = String(e.contentUniqId)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.replayDuration = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.replayDuration = t.longs === String ? "0" : 0; + n.replayUrl = "", n.contentUniqId = "" + } + return null != e.replayDuration && e.hasOwnProperty("replayDuration") && ("number" == typeof e.replayDuration ? n.replayDuration = t.longs === String ? String(e.replayDuration) : e.replayDuration : n.replayDuration = t.longs === String ? a.Long.prototype.toString.call(e.replayDuration) : t.longs === Number ? new a.LongBits(e.replayDuration.low >>> 0, e.replayDuration.high >>> 0).toNumber() : e.replayDuration), null != e.replayUrl && e.hasOwnProperty("replayUrl") && (n.replayUrl = e.replayUrl), null != e.contentUniqId && e.hasOwnProperty("contentUniqId") && (n.contentUniqId = e.contentUniqId), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.CommentWallInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.content = "", e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.commentMsgId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.commenterId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.commenterNickname = "", e.prototype.eventTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.msgTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.endTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.countdownStyle = 0, e.prototype.operatorId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.operatorNickname = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.content && Object.hasOwnProperty.call(e, "content") && t.uint32(10).string(e.content), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(16).int64(e.id), null != e.commentMsgId && Object.hasOwnProperty.call(e, "commentMsgId") && t.uint32(24).int64(e.commentMsgId), null != e.commenterId && Object.hasOwnProperty.call(e, "commenterId") && t.uint32(32).int64(e.commenterId), null != e.commenterNickname && Object.hasOwnProperty.call(e, "commenterNickname") && t.uint32(42).string(e.commenterNickname), null != e.eventTime && Object.hasOwnProperty.call(e, "eventTime") && t.uint32(48).int64(e.eventTime), null != e.msgTime && Object.hasOwnProperty.call(e, "msgTime") && t.uint32(56).int64(e.msgTime), null != e.endTime && Object.hasOwnProperty.call(e, "endTime") && t.uint32(64).int64(e.endTime), null != e.countdownStyle && Object.hasOwnProperty.call(e, "countdownStyle") && t.uint32(72).int32(e.countdownStyle), null != e.operatorId && Object.hasOwnProperty.call(e, "operatorId") && t.uint32(80).int64(e.operatorId), null != e.operatorNickname && Object.hasOwnProperty.call(e, "operatorNickname") && t.uint32(90).string(e.operatorNickname), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.CommentWallInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.content = e.string(); + break; + case 2: + r.id = e.int64(); + break; + case 3: + r.commentMsgId = e.int64(); + break; + case 4: + r.commenterId = e.int64(); + break; + case 5: + r.commenterNickname = e.string(); + break; + case 6: + r.eventTime = e.int64(); + break; + case 7: + r.msgTime = e.int64(); + break; + case 8: + r.endTime = e.int64(); + break; + case 9: + r.countdownStyle = e.int32(); + break; + case 10: + r.operatorId = e.int64(); + break; + case 11: + r.operatorNickname = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.content && e.hasOwnProperty("content") && !a.isString(e.content) ? "content: string expected" : null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high)) ? "id: integer|Long expected" : null != e.commentMsgId && e.hasOwnProperty("commentMsgId") && !(a.isInteger(e.commentMsgId) || e.commentMsgId && a.isInteger(e.commentMsgId.low) && a.isInteger(e.commentMsgId.high)) ? "commentMsgId: integer|Long expected" : null != e.commenterId && e.hasOwnProperty("commenterId") && !(a.isInteger(e.commenterId) || e.commenterId && a.isInteger(e.commenterId.low) && a.isInteger(e.commenterId.high)) ? "commenterId: integer|Long expected" : null != e.commenterNickname && e.hasOwnProperty("commenterNickname") && !a.isString(e.commenterNickname) ? "commenterNickname: string expected" : null != e.eventTime && e.hasOwnProperty("eventTime") && !(a.isInteger(e.eventTime) || e.eventTime && a.isInteger(e.eventTime.low) && a.isInteger(e.eventTime.high)) ? "eventTime: integer|Long expected" : null != e.msgTime && e.hasOwnProperty("msgTime") && !(a.isInteger(e.msgTime) || e.msgTime && a.isInteger(e.msgTime.low) && a.isInteger(e.msgTime.high)) ? "msgTime: integer|Long expected" : null != e.endTime && e.hasOwnProperty("endTime") && !(a.isInteger(e.endTime) || e.endTime && a.isInteger(e.endTime.low) && a.isInteger(e.endTime.high)) ? "endTime: integer|Long expected" : null != e.countdownStyle && e.hasOwnProperty("countdownStyle") && !a.isInteger(e.countdownStyle) ? "countdownStyle: integer expected" : null != e.operatorId && e.hasOwnProperty("operatorId") && !(a.isInteger(e.operatorId) || e.operatorId && a.isInteger(e.operatorId.low) && a.isInteger(e.operatorId.high)) ? "operatorId: integer|Long expected" : null != e.operatorNickname && e.hasOwnProperty("operatorNickname") && !a.isString(e.operatorNickname) ? "operatorNickname: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.CommentWallInfo) return e; + var t = new l.webcast.data.CommentWallInfo; + return null != e.content && (t.content = String(e.content)), null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), null != e.commentMsgId && (a.Long ? (t.commentMsgId = a.Long.fromValue(e.commentMsgId)).unsigned = !1 : "string" == typeof e.commentMsgId ? t.commentMsgId = parseInt(e.commentMsgId, 10) : "number" == typeof e.commentMsgId ? t.commentMsgId = e.commentMsgId : "object" == typeof e.commentMsgId && (t.commentMsgId = new a.LongBits(e.commentMsgId.low >>> 0, e.commentMsgId.high >>> 0).toNumber())), null != e.commenterId && (a.Long ? (t.commenterId = a.Long.fromValue(e.commenterId)).unsigned = !1 : "string" == typeof e.commenterId ? t.commenterId = parseInt(e.commenterId, 10) : "number" == typeof e.commenterId ? t.commenterId = e.commenterId : "object" == typeof e.commenterId && (t.commenterId = new a.LongBits(e.commenterId.low >>> 0, e.commenterId.high >>> 0).toNumber())), null != e.commenterNickname && (t.commenterNickname = String(e.commenterNickname)), null != e.eventTime && (a.Long ? (t.eventTime = a.Long.fromValue(e.eventTime)).unsigned = !1 : "string" == typeof e.eventTime ? t.eventTime = parseInt(e.eventTime, 10) : "number" == typeof e.eventTime ? t.eventTime = e.eventTime : "object" == typeof e.eventTime && (t.eventTime = new a.LongBits(e.eventTime.low >>> 0, e.eventTime.high >>> 0).toNumber())), null != e.msgTime && (a.Long ? (t.msgTime = a.Long.fromValue(e.msgTime)).unsigned = !1 : "string" == typeof e.msgTime ? t.msgTime = parseInt(e.msgTime, 10) : "number" == typeof e.msgTime ? t.msgTime = e.msgTime : "object" == typeof e.msgTime && (t.msgTime = new a.LongBits(e.msgTime.low >>> 0, e.msgTime.high >>> 0).toNumber())), null != e.endTime && (a.Long ? (t.endTime = a.Long.fromValue(e.endTime)).unsigned = !1 : "string" == typeof e.endTime ? t.endTime = parseInt(e.endTime, 10) : "number" == typeof e.endTime ? t.endTime = e.endTime : "object" == typeof e.endTime && (t.endTime = new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber())), null != e.countdownStyle && (t.countdownStyle = 0 | e.countdownStyle), null != e.operatorId && (a.Long ? (t.operatorId = a.Long.fromValue(e.operatorId)).unsigned = !1 : "string" == typeof e.operatorId ? t.operatorId = parseInt(e.operatorId, 10) : "number" == typeof e.operatorId ? t.operatorId = e.operatorId : "object" == typeof e.operatorId && (t.operatorId = new a.LongBits(e.operatorId.low >>> 0, e.operatorId.high >>> 0).toNumber())), null != e.operatorNickname && (t.operatorNickname = String(e.operatorNickname)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.content = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.id = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.commentMsgId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.commentMsgId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.commenterId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.commenterId = t.longs === String ? "0" : 0; + if (n.commenterNickname = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.eventTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.eventTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.msgTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.msgTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.endTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.endTime = t.longs === String ? "0" : 0; + if (n.countdownStyle = 0, a.Long) + { + r = new a.Long(0, 0, !1); + n.operatorId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.operatorId = t.longs === String ? "0" : 0; + n.operatorNickname = "" + } + return null != e.content && e.hasOwnProperty("content") && (n.content = e.content), null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? n.id = t.longs === String ? String(e.id) : e.id : n.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), null != e.commentMsgId && e.hasOwnProperty("commentMsgId") && ("number" == typeof e.commentMsgId ? n.commentMsgId = t.longs === String ? String(e.commentMsgId) : e.commentMsgId : n.commentMsgId = t.longs === String ? a.Long.prototype.toString.call(e.commentMsgId) : t.longs === Number ? new a.LongBits(e.commentMsgId.low >>> 0, e.commentMsgId.high >>> 0).toNumber() : e.commentMsgId), null != e.commenterId && e.hasOwnProperty("commenterId") && ("number" == typeof e.commenterId ? n.commenterId = t.longs === String ? String(e.commenterId) : e.commenterId : n.commenterId = t.longs === String ? a.Long.prototype.toString.call(e.commenterId) : t.longs === Number ? new a.LongBits(e.commenterId.low >>> 0, e.commenterId.high >>> 0).toNumber() : e.commenterId), null != e.commenterNickname && e.hasOwnProperty("commenterNickname") && (n.commenterNickname = e.commenterNickname), null != e.eventTime && e.hasOwnProperty("eventTime") && ("number" == typeof e.eventTime ? n.eventTime = t.longs === String ? String(e.eventTime) : e.eventTime : n.eventTime = t.longs === String ? a.Long.prototype.toString.call(e.eventTime) : t.longs === Number ? new a.LongBits(e.eventTime.low >>> 0, e.eventTime.high >>> 0).toNumber() : e.eventTime), null != e.msgTime && e.hasOwnProperty("msgTime") && ("number" == typeof e.msgTime ? n.msgTime = t.longs === String ? String(e.msgTime) : e.msgTime : n.msgTime = t.longs === String ? a.Long.prototype.toString.call(e.msgTime) : t.longs === Number ? new a.LongBits(e.msgTime.low >>> 0, e.msgTime.high >>> 0).toNumber() : e.msgTime), null != e.endTime && e.hasOwnProperty("endTime") && ("number" == typeof e.endTime ? n.endTime = t.longs === String ? String(e.endTime) : e.endTime : n.endTime = t.longs === String ? a.Long.prototype.toString.call(e.endTime) : t.longs === Number ? new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber() : e.endTime), null != e.countdownStyle && e.hasOwnProperty("countdownStyle") && (n.countdownStyle = e.countdownStyle), null != e.operatorId && e.hasOwnProperty("operatorId") && ("number" == typeof e.operatorId ? n.operatorId = t.longs === String ? String(e.operatorId) : e.operatorId : n.operatorId = t.longs === String ? a.Long.prototype.toString.call(e.operatorId) : t.longs === Number ? new a.LongBits(e.operatorId.low >>> 0, e.operatorId.high >>> 0).toNumber() : e.operatorId), null != e.operatorNickname && e.hasOwnProperty("operatorNickname") && (n.operatorNickname = e.operatorNickname), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.CommentWallPosition = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.x = 0, e.prototype.y = 0, e.prototype.eventTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.x && Object.hasOwnProperty.call(e, "x") && t.uint32(9).double(e.x), null != e.y && Object.hasOwnProperty.call(e, "y") && t.uint32(17).double(e.y), null != e.eventTime && Object.hasOwnProperty.call(e, "eventTime") && t.uint32(24).int64(e.eventTime), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.CommentWallPosition; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.x = e.double(); + break; + case 2: + r.y = e.double(); + break; + case 3: + r.eventTime = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.x && e.hasOwnProperty("x") && "number" != typeof e.x ? "x: number expected" : null != e.y && e.hasOwnProperty("y") && "number" != typeof e.y ? "y: number expected" : null != e.eventTime && e.hasOwnProperty("eventTime") && !(a.isInteger(e.eventTime) || e.eventTime && a.isInteger(e.eventTime.low) && a.isInteger(e.eventTime.high)) ? "eventTime: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.CommentWallPosition) return e; + var t = new l.webcast.data.CommentWallPosition; + return null != e.x && (t.x = Number(e.x)), null != e.y && (t.y = Number(e.y)), null != e.eventTime && (a.Long ? (t.eventTime = a.Long.fromValue(e.eventTime)).unsigned = !1 : "string" == typeof e.eventTime ? t.eventTime = parseInt(e.eventTime, 10) : "number" == typeof e.eventTime ? t.eventTime = e.eventTime : "object" == typeof e.eventTime && (t.eventTime = new a.LongBits(e.eventTime.low >>> 0, e.eventTime.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + if (n.x = 0, n.y = 0, a.Long) + { + var r = new a.Long(0, 0, !1); + n.eventTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.eventTime = t.longs === String ? "0" : 0; + return null != e.x && e.hasOwnProperty("x") && (n.x = t.json && !isFinite(e.x) ? String(e.x) : e.x), null != e.y && e.hasOwnProperty("y") && (n.y = t.json && !isFinite(e.y) ? String(e.y) : e.y), null != e.eventTime && e.hasOwnProperty("eventTime") && ("number" == typeof e.eventTime ? n.eventTime = t.longs === String ? String(e.eventTime) : e.eventTime : n.eventTime = t.longs === String ? a.Long.prototype.toString.call(e.eventTime) : t.longs === Number ? new a.LongBits(e.eventTime.low >>> 0, e.eventTime.high >>> 0).toNumber() : e.eventTime), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.AnnouncementInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.scheduledTimeText = "", e.prototype.content = "", e.prototype.subscribed = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.scheduledTimeText && Object.hasOwnProperty.call(e, "scheduledTimeText") && t.uint32(10).string(e.scheduledTimeText), null != e.content && Object.hasOwnProperty.call(e, "content") && t.uint32(18).string(e.content), null != e.subscribed && Object.hasOwnProperty.call(e, "subscribed") && t.uint32(24).bool(e.subscribed), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.AnnouncementInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.scheduledTimeText = e.string(); + break; + case 2: + r.content = e.string(); + break; + case 3: + r.subscribed = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.scheduledTimeText && e.hasOwnProperty("scheduledTimeText") && !a.isString(e.scheduledTimeText) ? "scheduledTimeText: string expected" : null != e.content && e.hasOwnProperty("content") && !a.isString(e.content) ? "content: string expected" : null != e.subscribed && e.hasOwnProperty("subscribed") && "boolean" != typeof e.subscribed ? "subscribed: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.AnnouncementInfo) return e; + var t = new l.webcast.data.AnnouncementInfo; + return null != e.scheduledTimeText && (t.scheduledTimeText = String(e.scheduledTimeText)), null != e.content && (t.content = String(e.content)), null != e.subscribed && (t.subscribed = Boolean(e.subscribed)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.scheduledTimeText = "", n.content = "", n.subscribed = !1), null != e.scheduledTimeText && e.hasOwnProperty("scheduledTimeText") && (n.scheduledTimeText = e.scheduledTimeText), null != e.content && e.hasOwnProperty("content") && (n.content = e.content), null != e.subscribed && e.hasOwnProperty("subscribed") && (n.subscribed = e.subscribed), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.RoomIMInfo = function () + { + function e(e) + { + if (this.welcomeMessages = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.welcomeMessages = a.emptyArray, e.prototype.roomTag = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.welcomeMessages && e.welcomeMessages.length) + for (var n = 0; n < e.welcomeMessages.length; ++n) t.uint32(10).string(e.welcomeMessages[n]); + return null != e.roomTag && Object.hasOwnProperty.call(e, "roomTag") && t.uint32(18).string(e.roomTag), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.RoomIMInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.welcomeMessages && r.welcomeMessages.length || (r.welcomeMessages = []), r.welcomeMessages.push(e.string()); + break; + case 2: + r.roomTag = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.welcomeMessages && e.hasOwnProperty("welcomeMessages")) + { + if (!Array.isArray(e.welcomeMessages)) return "welcomeMessages: array expected"; + for (var t = 0; t < e.welcomeMessages.length; ++t) + if (!a.isString(e.welcomeMessages[t])) return "welcomeMessages: string[] expected" + } + return null != e.roomTag && e.hasOwnProperty("roomTag") && !a.isString(e.roomTag) ? "roomTag: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.RoomIMInfo) return e; + var t = new l.webcast.data.RoomIMInfo; + if (e.welcomeMessages) + { + if (!Array.isArray(e.welcomeMessages)) throw TypeError(".webcast.data.RoomIMInfo.welcomeMessages: array expected"); + t.welcomeMessages = []; + for (var n = 0; n < e.welcomeMessages.length; ++n) t.welcomeMessages[n] = String(e.welcomeMessages[n]) + } + return null != e.roomTag && (t.roomTag = String(e.roomTag)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.welcomeMessages = []), t.defaults && (n.roomTag = ""), e.welcomeMessages && e.welcomeMessages.length) + { + n.welcomeMessages = []; + for (var r = 0; r < e.welcomeMessages.length; ++r) n.welcomeMessages[r] = e.welcomeMessages[r] + } + return null != e.roomTag && e.hasOwnProperty("roomTag") && (n.roomTag = e.roomTag), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.InteractOpenExtra = function () + { + function e(e) + { + if (this.debugInfo = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.debugInfo = a.emptyObject, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.debugInfo && Object.hasOwnProperty.call(e, "debugInfo")) + for (var n = Object.keys(e.debugInfo), r = 0; r < n.length; ++r) t.uint32(10).fork().uint32(10).string(n[r]).uint32(18).string(e.debugInfo[n[r]]).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.InteractOpenExtra; e.pos < i;) + { + var c = e.uint32(); + if (c >>> 3 == 1) + { + s.debugInfo === a.emptyObject && (s.debugInfo = {}); + var u = e.uint32() + e.pos; + for (n = "", r = ""; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.debugInfo[n] = r + } + else e.skipType(7 & c) + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.debugInfo && e.hasOwnProperty("debugInfo")) + { + if (!a.isObject(e.debugInfo)) return "debugInfo: object expected"; + for (var t = Object.keys(e.debugInfo), n = 0; n < t.length; ++n) + if (!a.isString(e.debugInfo[t[n]])) return "debugInfo: string{k:string} expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.InteractOpenExtra) return e; + var t = new l.webcast.data.InteractOpenExtra; + if (e.debugInfo) + { + if ("object" != typeof e.debugInfo) throw TypeError(".webcast.data.InteractOpenExtra.debugInfo: object expected"); + t.debugInfo = {}; + for (var n = Object.keys(e.debugInfo), r = 0; r < n.length; ++r) t.debugInfo[n[r]] = String(e.debugInfo[n[r]]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.debugInfo = {}), e.debugInfo && (n = Object.keys(e.debugInfo)).length) + { + r.debugInfo = {}; + for (var o = 0; o < n.length; ++o) r.debugInfo[n[o]] = e.debugInfo[n[o]] + } + return r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.PropsBGData = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.imageUri = "", e.prototype.imgType = 0, e.prototype.image = null, e.prototype.imageThumbnail = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.imageUri && Object.hasOwnProperty.call(e, "imageUri") && t.uint32(10).string(e.imageUri), null != e.imgType && Object.hasOwnProperty.call(e, "imgType") && t.uint32(16).int32(e.imgType), null != e.image && Object.hasOwnProperty.call(e, "image") && l.webcast.data.Image.encode(e.image, t.uint32(26).fork()).ldelim(), null != e.imageThumbnail && Object.hasOwnProperty.call(e, "imageThumbnail") && l.webcast.data.Image.encode(e.imageThumbnail, t.uint32(34).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.PropsBGData; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.imageUri = e.string(); + break; + case 2: + r.imgType = e.int32(); + break; + case 3: + r.image = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 4: + r.imageThumbnail = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.imageUri && e.hasOwnProperty("imageUri") && !a.isString(e.imageUri)) return "imageUri: string expected"; + if (null != e.imgType && e.hasOwnProperty("imgType") && !a.isInteger(e.imgType)) return "imgType: integer expected"; + var t; + if (null != e.image && e.hasOwnProperty("image") && (t = l.webcast.data.Image.verify(e.image))) return "image." + t; + if (null != e.imageThumbnail && e.hasOwnProperty("imageThumbnail") && (t = l.webcast.data.Image.verify(e.imageThumbnail))) return "imageThumbnail." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.PropsBGData) return e; + var t = new l.webcast.data.PropsBGData; + if (null != e.imageUri && (t.imageUri = String(e.imageUri)), null != e.imgType && (t.imgType = 0 | e.imgType), null != e.image) + { + if ("object" != typeof e.image) throw TypeError(".webcast.data.PropsBGData.image: object expected"); + t.image = l.webcast.data.Image.fromObject(e.image) + } + if (null != e.imageThumbnail) + { + if ("object" != typeof e.imageThumbnail) throw TypeError(".webcast.data.PropsBGData.imageThumbnail: object expected"); + t.imageThumbnail = l.webcast.data.Image.fromObject(e.imageThumbnail) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.imageUri = "", n.imgType = 0, n.image = null, n.imageThumbnail = null), null != e.imageUri && e.hasOwnProperty("imageUri") && (n.imageUri = e.imageUri), null != e.imgType && e.hasOwnProperty("imgType") && (n.imgType = e.imgType), null != e.image && e.hasOwnProperty("image") && (n.image = l.webcast.data.Image.toObject(e.image, t)), null != e.imageThumbnail && e.hasOwnProperty("imageThumbnail") && (n.imageThumbnail = l.webcast.data.Image.toObject(e.imageThumbnail, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerDetail = function () + { + function e(e) + { + if (this.linkerPlayModes = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.linkerPlayModes = a.emptyArray, e.prototype.bigPartyLayoutConfigVersion = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.linkerPlayModes && e.linkerPlayModes.length) + { + t.uint32(10).fork(); + for (var n = 0; n < e.linkerPlayModes.length; ++n) t.int64(e.linkerPlayModes[n]); + t.ldelim() + } + return null != e.bigPartyLayoutConfigVersion && Object.hasOwnProperty.call(e, "bigPartyLayoutConfigVersion") && t.uint32(16).int32(e.bigPartyLayoutConfigVersion), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkerDetail; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + if (r.linkerPlayModes && r.linkerPlayModes.length || (r.linkerPlayModes = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.linkerPlayModes.push(e.int64()); + else r.linkerPlayModes.push(e.int64()); + break; + case 2: + r.bigPartyLayoutConfigVersion = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.linkerPlayModes && e.hasOwnProperty("linkerPlayModes")) + { + if (!Array.isArray(e.linkerPlayModes)) return "linkerPlayModes: array expected"; + for (var t = 0; t < e.linkerPlayModes.length; ++t) + if (!(a.isInteger(e.linkerPlayModes[t]) || e.linkerPlayModes[t] && a.isInteger(e.linkerPlayModes[t].low) && a.isInteger(e.linkerPlayModes[t].high))) return "linkerPlayModes: integer|Long[] expected" + } + return null != e.bigPartyLayoutConfigVersion && e.hasOwnProperty("bigPartyLayoutConfigVersion") && !a.isInteger(e.bigPartyLayoutConfigVersion) ? "bigPartyLayoutConfigVersion: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkerDetail) return e; + var t = new l.webcast.data.LinkerDetail; + if (e.linkerPlayModes) + { + if (!Array.isArray(e.linkerPlayModes)) throw TypeError(".webcast.data.LinkerDetail.linkerPlayModes: array expected"); + t.linkerPlayModes = []; + for (var n = 0; n < e.linkerPlayModes.length; ++n) a.Long ? (t.linkerPlayModes[n] = a.Long.fromValue(e.linkerPlayModes[n])).unsigned = !1 : "string" == typeof e.linkerPlayModes[n] ? t.linkerPlayModes[n] = parseInt(e.linkerPlayModes[n], 10) : "number" == typeof e.linkerPlayModes[n] ? t.linkerPlayModes[n] = e.linkerPlayModes[n] : "object" == typeof e.linkerPlayModes[n] && (t.linkerPlayModes[n] = new a.LongBits(e.linkerPlayModes[n].low >>> 0, e.linkerPlayModes[n].high >>> 0).toNumber()) + } + return null != e.bigPartyLayoutConfigVersion && (t.bigPartyLayoutConfigVersion = 0 | e.bigPartyLayoutConfigVersion), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.linkerPlayModes = []), t.defaults && (n.bigPartyLayoutConfigVersion = 0), e.linkerPlayModes && e.linkerPlayModes.length) + { + n.linkerPlayModes = []; + for (var r = 0; r < e.linkerPlayModes.length; ++r) "number" == typeof e.linkerPlayModes[r] ? n.linkerPlayModes[r] = t.longs === String ? String(e.linkerPlayModes[r]) : e.linkerPlayModes[r] : n.linkerPlayModes[r] = t.longs === String ? a.Long.prototype.toString.call(e.linkerPlayModes[r]) : t.longs === Number ? new a.LongBits(e.linkerPlayModes[r].low >>> 0, e.linkerPlayModes[r].high >>> 0).toNumber() : e.linkerPlayModes[r] + } + return null != e.bigPartyLayoutConfigVersion && e.hasOwnProperty("bigPartyLayoutConfigVersion") && (n.bigPartyLayoutConfigVersion = e.bigPartyLayoutConfigVersion), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.PreviewExposeData = function () + { + function e(e) + { + if (this.metas = [], this.chatMsgs = [], this.forceInsertion = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.style = 0, e.prototype.previewGuide = null, e.prototype.metas = a.emptyArray, e.prototype.chatMsgs = a.emptyArray, e.prototype.forceInsertion = a.emptyArray, e.prototype.scrollAfterMs = 0, e.prototype.needRealtime = !1, e.prototype.messageScrollAfterMs = 0, e.prototype.messageScrollIntervalMs = 0, e.prototype.previewIntro = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.style && Object.hasOwnProperty.call(e, "style") && t.uint32(8).int32(e.style), null != e.previewGuide && Object.hasOwnProperty.call(e, "previewGuide") && l.webcast.data.PreviewExposeData.PreviewGuide.encode(e.previewGuide, t.uint32(18).fork()).ldelim(), null != e.metas && e.metas.length) + for (var n = 0; n < e.metas.length; ++n) l.webcast.data.PreviewExposeData.Meta.encode(e.metas[n], t.uint32(26).fork()).ldelim(); + if (null != e.chatMsgs && e.chatMsgs.length) + for (n = 0; n < e.chatMsgs.length; ++n) l.webcast.data.PreviewExposeData.ChatMessage.encode(e.chatMsgs[n], t.uint32(34).fork()).ldelim(); + if (null != e.forceInsertion && e.forceInsertion.length) + for (n = 0; n < e.forceInsertion.length; ++n) l.webcast.data.PreviewExposeData.Meta.encode(e.forceInsertion[n], t.uint32(42).fork()).ldelim(); + return null != e.scrollAfterMs && Object.hasOwnProperty.call(e, "scrollAfterMs") && t.uint32(48).int32(e.scrollAfterMs), null != e.needRealtime && Object.hasOwnProperty.call(e, "needRealtime") && t.uint32(56).bool(e.needRealtime), null != e.messageScrollAfterMs && Object.hasOwnProperty.call(e, "messageScrollAfterMs") && t.uint32(64).int32(e.messageScrollAfterMs), null != e.messageScrollIntervalMs && Object.hasOwnProperty.call(e, "messageScrollIntervalMs") && t.uint32(72).int32(e.messageScrollIntervalMs), null != e.previewIntro && Object.hasOwnProperty.call(e, "previewIntro") && t.uint32(82).string(e.previewIntro), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.PreviewExposeData; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.style = e.int32(); + break; + case 2: + r.previewGuide = l.webcast.data.PreviewExposeData.PreviewGuide.decode(e, e.uint32()); + break; + case 3: + r.metas && r.metas.length || (r.metas = []), r.metas.push(l.webcast.data.PreviewExposeData.Meta.decode(e, e.uint32())); + break; + case 4: + r.chatMsgs && r.chatMsgs.length || (r.chatMsgs = []), r.chatMsgs.push(l.webcast.data.PreviewExposeData.ChatMessage.decode(e, e.uint32())); + break; + case 5: + r.forceInsertion && r.forceInsertion.length || (r.forceInsertion = []), r.forceInsertion.push(l.webcast.data.PreviewExposeData.Meta.decode(e, e.uint32())); + break; + case 6: + r.scrollAfterMs = e.int32(); + break; + case 7: + r.needRealtime = e.bool(); + break; + case 8: + r.messageScrollAfterMs = e.int32(); + break; + case 9: + r.messageScrollIntervalMs = e.int32(); + break; + case 10: + r.previewIntro = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.style && e.hasOwnProperty("style") && !a.isInteger(e.style)) return "style: integer expected"; + if (null != e.previewGuide && e.hasOwnProperty("previewGuide") && (n = l.webcast.data.PreviewExposeData.PreviewGuide.verify(e.previewGuide))) return "previewGuide." + n; + if (null != e.metas && e.hasOwnProperty("metas")) + { + if (!Array.isArray(e.metas)) return "metas: array expected"; + for (var t = 0; t < e.metas.length; ++t) + { + if (n = l.webcast.data.PreviewExposeData.Meta.verify(e.metas[t])) return "metas." + n + } + } + if (null != e.chatMsgs && e.hasOwnProperty("chatMsgs")) + { + if (!Array.isArray(e.chatMsgs)) return "chatMsgs: array expected"; + for (t = 0; t < e.chatMsgs.length; ++t) + { + if (n = l.webcast.data.PreviewExposeData.ChatMessage.verify(e.chatMsgs[t])) return "chatMsgs." + n + } + } + if (null != e.forceInsertion && e.hasOwnProperty("forceInsertion")) + { + if (!Array.isArray(e.forceInsertion)) return "forceInsertion: array expected"; + for (t = 0; t < e.forceInsertion.length; ++t) + { + var n; + if (n = l.webcast.data.PreviewExposeData.Meta.verify(e.forceInsertion[t])) return "forceInsertion." + n + } + } + return null != e.scrollAfterMs && e.hasOwnProperty("scrollAfterMs") && !a.isInteger(e.scrollAfterMs) ? "scrollAfterMs: integer expected" : null != e.needRealtime && e.hasOwnProperty("needRealtime") && "boolean" != typeof e.needRealtime ? "needRealtime: boolean expected" : null != e.messageScrollAfterMs && e.hasOwnProperty("messageScrollAfterMs") && !a.isInteger(e.messageScrollAfterMs) ? "messageScrollAfterMs: integer expected" : null != e.messageScrollIntervalMs && e.hasOwnProperty("messageScrollIntervalMs") && !a.isInteger(e.messageScrollIntervalMs) ? "messageScrollIntervalMs: integer expected" : null != e.previewIntro && e.hasOwnProperty("previewIntro") && !a.isString(e.previewIntro) ? "previewIntro: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.PreviewExposeData) return e; + var t = new l.webcast.data.PreviewExposeData; + if (null != e.style && (t.style = 0 | e.style), null != e.previewGuide) + { + if ("object" != typeof e.previewGuide) throw TypeError(".webcast.data.PreviewExposeData.previewGuide: object expected"); + t.previewGuide = l.webcast.data.PreviewExposeData.PreviewGuide.fromObject(e.previewGuide) + } + if (e.metas) + { + if (!Array.isArray(e.metas)) throw TypeError(".webcast.data.PreviewExposeData.metas: array expected"); + t.metas = []; + for (var n = 0; n < e.metas.length; ++n) + { + if ("object" != typeof e.metas[n]) throw TypeError(".webcast.data.PreviewExposeData.metas: object expected"); + t.metas[n] = l.webcast.data.PreviewExposeData.Meta.fromObject(e.metas[n]) + } + } + if (e.chatMsgs) + { + if (!Array.isArray(e.chatMsgs)) throw TypeError(".webcast.data.PreviewExposeData.chatMsgs: array expected"); + t.chatMsgs = []; + for (n = 0; n < e.chatMsgs.length; ++n) + { + if ("object" != typeof e.chatMsgs[n]) throw TypeError(".webcast.data.PreviewExposeData.chatMsgs: object expected"); + t.chatMsgs[n] = l.webcast.data.PreviewExposeData.ChatMessage.fromObject(e.chatMsgs[n]) + } + } + if (e.forceInsertion) + { + if (!Array.isArray(e.forceInsertion)) throw TypeError(".webcast.data.PreviewExposeData.forceInsertion: array expected"); + t.forceInsertion = []; + for (n = 0; n < e.forceInsertion.length; ++n) + { + if ("object" != typeof e.forceInsertion[n]) throw TypeError(".webcast.data.PreviewExposeData.forceInsertion: object expected"); + t.forceInsertion[n] = l.webcast.data.PreviewExposeData.Meta.fromObject(e.forceInsertion[n]) + } + } + return null != e.scrollAfterMs && (t.scrollAfterMs = 0 | e.scrollAfterMs), null != e.needRealtime && (t.needRealtime = Boolean(e.needRealtime)), null != e.messageScrollAfterMs && (t.messageScrollAfterMs = 0 | e.messageScrollAfterMs), null != e.messageScrollIntervalMs && (t.messageScrollIntervalMs = 0 | e.messageScrollIntervalMs), null != e.previewIntro && (t.previewIntro = String(e.previewIntro)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.metas = [], n.chatMsgs = [], n.forceInsertion = []), t.defaults && (n.style = 0, n.previewGuide = null, n.scrollAfterMs = 0, n.needRealtime = !1, n.messageScrollAfterMs = 0, n.messageScrollIntervalMs = 0, n.previewIntro = ""), null != e.style && e.hasOwnProperty("style") && (n.style = e.style), null != e.previewGuide && e.hasOwnProperty("previewGuide") && (n.previewGuide = l.webcast.data.PreviewExposeData.PreviewGuide.toObject(e.previewGuide, t)), e.metas && e.metas.length) + { + n.metas = []; + for (var r = 0; r < e.metas.length; ++r) n.metas[r] = l.webcast.data.PreviewExposeData.Meta.toObject(e.metas[r], t) + } + if (e.chatMsgs && e.chatMsgs.length) + { + n.chatMsgs = []; + for (r = 0; r < e.chatMsgs.length; ++r) n.chatMsgs[r] = l.webcast.data.PreviewExposeData.ChatMessage.toObject(e.chatMsgs[r], t) + } + if (e.forceInsertion && e.forceInsertion.length) + { + n.forceInsertion = []; + for (r = 0; r < e.forceInsertion.length; ++r) n.forceInsertion[r] = l.webcast.data.PreviewExposeData.Meta.toObject(e.forceInsertion[r], t) + } + return null != e.scrollAfterMs && e.hasOwnProperty("scrollAfterMs") && (n.scrollAfterMs = e.scrollAfterMs), null != e.needRealtime && e.hasOwnProperty("needRealtime") && (n.needRealtime = e.needRealtime), null != e.messageScrollAfterMs && e.hasOwnProperty("messageScrollAfterMs") && (n.messageScrollAfterMs = e.messageScrollAfterMs), null != e.messageScrollIntervalMs && e.hasOwnProperty("messageScrollIntervalMs") && (n.messageScrollIntervalMs = e.messageScrollIntervalMs), null != e.previewIntro && e.hasOwnProperty("previewIntro") && (n.previewIntro = e.previewIntro), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.PreviewGuide = function () + { + function e(e) + { + if (this.rollTips = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.icon = null, e.prototype.tip = "", e.prototype.type = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.rollTips = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.icon && Object.hasOwnProperty.call(e, "icon") && l.webcast.data.Image.encode(e.icon, t.uint32(10).fork()).ldelim(), null != e.tip && Object.hasOwnProperty.call(e, "tip") && t.uint32(18).string(e.tip), null != e.type && Object.hasOwnProperty.call(e, "type") && t.uint32(24).int64(e.type), null != e.rollTips && e.rollTips.length) + for (var n = 0; n < e.rollTips.length; ++n) t.uint32(34).string(e.rollTips[n]); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.PreviewExposeData.PreviewGuide; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.icon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.tip = e.string(); + break; + case 3: + r.type = e.int64(); + break; + case 4: + r.rollTips && r.rollTips.length || (r.rollTips = []), r.rollTips.push(e.string()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.icon && e.hasOwnProperty("icon")) + { + var t = l.webcast.data.Image.verify(e.icon); + if (t) return "icon." + t + } + if (null != e.tip && e.hasOwnProperty("tip") && !a.isString(e.tip)) return "tip: string expected"; + if (null != e.type && e.hasOwnProperty("type") && !(a.isInteger(e.type) || e.type && a.isInteger(e.type.low) && a.isInteger(e.type.high))) return "type: integer|Long expected"; + if (null != e.rollTips && e.hasOwnProperty("rollTips")) + { + if (!Array.isArray(e.rollTips)) return "rollTips: array expected"; + for (var n = 0; n < e.rollTips.length; ++n) + if (!a.isString(e.rollTips[n])) return "rollTips: string[] expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.PreviewExposeData.PreviewGuide) return e; + var t = new l.webcast.data.PreviewExposeData.PreviewGuide; + if (null != e.icon) + { + if ("object" != typeof e.icon) throw TypeError(".webcast.data.PreviewExposeData.PreviewGuide.icon: object expected"); + t.icon = l.webcast.data.Image.fromObject(e.icon) + } + if (null != e.tip && (t.tip = String(e.tip)), null != e.type && (a.Long ? (t.type = a.Long.fromValue(e.type)).unsigned = !1 : "string" == typeof e.type ? t.type = parseInt(e.type, 10) : "number" == typeof e.type ? t.type = e.type : "object" == typeof e.type && (t.type = new a.LongBits(e.type.low >>> 0, e.type.high >>> 0).toNumber())), e.rollTips) + { + if (!Array.isArray(e.rollTips)) throw TypeError(".webcast.data.PreviewExposeData.PreviewGuide.rollTips: array expected"); + t.rollTips = []; + for (var n = 0; n < e.rollTips.length; ++n) t.rollTips[n] = String(e.rollTips[n]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.rollTips = []), t.defaults) + if (n.icon = null, n.tip = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.type = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.type = t.longs === String ? "0" : 0; + if (null != e.icon && e.hasOwnProperty("icon") && (n.icon = l.webcast.data.Image.toObject(e.icon, t)), null != e.tip && e.hasOwnProperty("tip") && (n.tip = e.tip), null != e.type && e.hasOwnProperty("type") && ("number" == typeof e.type ? n.type = t.longs === String ? String(e.type) : e.type : n.type = t.longs === String ? a.Long.prototype.toString.call(e.type) : t.longs === Number ? new a.LongBits(e.type.low >>> 0, e.type.high >>> 0).toNumber() : e.type), e.rollTips && e.rollTips.length) + { + n.rollTips = []; + for (var o = 0; o < e.rollTips.length; ++o) n.rollTips[o] = e.rollTips[o] + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.Meta = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.type = 0, e.prototype.host = null, e.prototype.content = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.type && Object.hasOwnProperty.call(e, "type") && t.uint32(8).int32(e.type), null != e.host && Object.hasOwnProperty.call(e, "host") && l.webcast.data.PreviewExposeData.Meta.Host.encode(e.host, t.uint32(18).fork()).ldelim(), null != e.content && Object.hasOwnProperty.call(e, "content") && t.uint32(26).string(e.content), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.PreviewExposeData.Meta; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.type = e.int32(); + break; + case 2: + r.host = l.webcast.data.PreviewExposeData.Meta.Host.decode(e, e.uint32()); + break; + case 3: + r.content = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.type && e.hasOwnProperty("type")) switch (e.type) + { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 99: + } + if (null != e.host && e.hasOwnProperty("host")) + { + var t = l.webcast.data.PreviewExposeData.Meta.Host.verify(e.host); + if (t) return "host." + t + } + return null != e.content && e.hasOwnProperty("content") && !a.isString(e.content) ? "content: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.PreviewExposeData.Meta) return e; + var t = new l.webcast.data.PreviewExposeData.Meta; + switch (e.type) + { + case "Unknown": + case 0: + t.type = 0; + break; + case "Location": + case 1: + t.type = 1; + break; + case "PlatformLabel": + case 2: + t.type = 2; + break; + case "UserLabel": + case 3: + t.type = 3; + break; + case "Announcement": + case 4: + t.type = 4; + break; + case "Title": + case 5: + t.type = 5; + break; + case "ECommerce": + case 6: + t.type = 6; + break; + case "Relation": + case 7: + t.type = 7; + break; + case "Backup": + case 99: + t.type = 99 + } + if (null != e.host) + { + if ("object" != typeof e.host) throw TypeError(".webcast.data.PreviewExposeData.Meta.host: object expected"); + t.host = l.webcast.data.PreviewExposeData.Meta.Host.fromObject(e.host) + } + return null != e.content && (t.content = String(e.content)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.type = t.enums === String ? "Unknown" : 0, n.host = null, n.content = ""), null != e.type && e.hasOwnProperty("type") && (n.type = t.enums === String ? l.webcast.data.PreviewExposeData.Meta.Type[e.type] : e.type), null != e.host && e.hasOwnProperty("host") && (n.host = l.webcast.data.PreviewExposeData.Meta.Host.toObject(e.host, t)), null != e.content && e.hasOwnProperty("content") && (n.content = e.content), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Type = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "Unknown"] = 0, t[e[1] = "Location"] = 1, t[e[2] = "PlatformLabel"] = 2, t[e[3] = "UserLabel"] = 3, t[e[4] = "Announcement"] = 4, t[e[5] = "Title"] = 5, t[e[6] = "ECommerce"] = 6, t[e[7] = "Relation"] = 7, t[e[99] = "Backup"] = 99, t + }(), e.Host = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.icon = null, e.prototype.tip = "", e.prototype.color = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.icon && Object.hasOwnProperty.call(e, "icon") && l.webcast.data.Image.encode(e.icon, t.uint32(10).fork()).ldelim(), null != e.tip && Object.hasOwnProperty.call(e, "tip") && t.uint32(18).string(e.tip), null != e.color && Object.hasOwnProperty.call(e, "color") && t.uint32(26).string(e.color), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.PreviewExposeData.Meta.Host; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.icon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.tip = e.string(); + break; + case 3: + r.color = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.icon && e.hasOwnProperty("icon")) + { + var t = l.webcast.data.Image.verify(e.icon); + if (t) return "icon." + t + } + return null != e.tip && e.hasOwnProperty("tip") && !a.isString(e.tip) ? "tip: string expected" : null != e.color && e.hasOwnProperty("color") && !a.isString(e.color) ? "color: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.PreviewExposeData.Meta.Host) return e; + var t = new l.webcast.data.PreviewExposeData.Meta.Host; + if (null != e.icon) + { + if ("object" != typeof e.icon) throw TypeError(".webcast.data.PreviewExposeData.Meta.Host.icon: object expected"); + t.icon = l.webcast.data.Image.fromObject(e.icon) + } + return null != e.tip && (t.tip = String(e.tip)), null != e.color && (t.color = String(e.color)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.icon = null, n.tip = "", n.color = ""), null != e.icon && e.hasOwnProperty("icon") && (n.icon = l.webcast.data.Image.toObject(e.icon, t)), null != e.tip && e.hasOwnProperty("tip") && (n.tip = e.tip), null != e.color && e.hasOwnProperty("color") && (n.color = e.color), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.ChatMessage = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.nickName = "", e.prototype.nickNameColor = "", e.prototype.content = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.nickName && Object.hasOwnProperty.call(e, "nickName") && t.uint32(10).string(e.nickName), null != e.nickNameColor && Object.hasOwnProperty.call(e, "nickNameColor") && t.uint32(18).string(e.nickNameColor), null != e.content && Object.hasOwnProperty.call(e, "content") && t.uint32(26).string(e.content), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.PreviewExposeData.ChatMessage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.nickName = e.string(); + break; + case 2: + r.nickNameColor = e.string(); + break; + case 3: + r.content = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.nickName && e.hasOwnProperty("nickName") && !a.isString(e.nickName) ? "nickName: string expected" : null != e.nickNameColor && e.hasOwnProperty("nickNameColor") && !a.isString(e.nickNameColor) ? "nickNameColor: string expected" : null != e.content && e.hasOwnProperty("content") && !a.isString(e.content) ? "content: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.PreviewExposeData.ChatMessage) return e; + var t = new l.webcast.data.PreviewExposeData.ChatMessage; + return null != e.nickName && (t.nickName = String(e.nickName)), null != e.nickNameColor && (t.nickNameColor = String(e.nickNameColor)), null != e.content && (t.content = String(e.content)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.nickName = "", n.nickNameColor = "", n.content = ""), null != e.nickName && e.hasOwnProperty("nickName") && (n.nickName = e.nickName), null != e.nickNameColor && e.hasOwnProperty("nickNameColor") && (n.nickNameColor = e.nickNameColor), null != e.content && e.hasOwnProperty("content") && (n.content = e.content), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.PaidLiveData = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.paidType = 0, e.prototype.viewRight = 0, e.prototype.duration = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.ticketSession = null, e.prototype.orderData = null, e.prototype.delivery = 0, e.prototype.needDeliveryNotice = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.paidType && Object.hasOwnProperty.call(e, "paidType") && t.uint32(8).int32(e.paidType), null != e.viewRight && Object.hasOwnProperty.call(e, "viewRight") && t.uint32(16).int32(e.viewRight), null != e.duration && Object.hasOwnProperty.call(e, "duration") && t.uint32(24).int64(e.duration), null != e.ticketSession && Object.hasOwnProperty.call(e, "ticketSession") && l.webcast.data.TicketData.encode(e.ticketSession, t.uint32(34).fork()).ldelim(), null != e.orderData && Object.hasOwnProperty.call(e, "orderData") && l.webcast.data.OrderData.encode(e.orderData, t.uint32(42).fork()).ldelim(), null != e.delivery && Object.hasOwnProperty.call(e, "delivery") && t.uint32(48).int32(e.delivery), null != e.needDeliveryNotice && Object.hasOwnProperty.call(e, "needDeliveryNotice") && t.uint32(56).bool(e.needDeliveryNotice), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.PaidLiveData; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.paidType = e.int32(); + break; + case 2: + r.viewRight = e.int32(); + break; + case 3: + r.duration = e.int64(); + break; + case 4: + r.ticketSession = l.webcast.data.TicketData.decode(e, e.uint32()); + break; + case 5: + r.orderData = l.webcast.data.OrderData.decode(e, e.uint32()); + break; + case 6: + r.delivery = e.int32(); + break; + case 7: + r.needDeliveryNotice = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.paidType && e.hasOwnProperty("paidType") && !a.isInteger(e.paidType)) return "paidType: integer expected"; + if (null != e.viewRight && e.hasOwnProperty("viewRight") && !a.isInteger(e.viewRight)) return "viewRight: integer expected"; + if (null != e.duration && e.hasOwnProperty("duration") && !(a.isInteger(e.duration) || e.duration && a.isInteger(e.duration.low) && a.isInteger(e.duration.high))) return "duration: integer|Long expected"; + var t; + if (null != e.ticketSession && e.hasOwnProperty("ticketSession") && (t = l.webcast.data.TicketData.verify(e.ticketSession))) return "ticketSession." + t; + if (null != e.orderData && e.hasOwnProperty("orderData") && (t = l.webcast.data.OrderData.verify(e.orderData))) return "orderData." + t; + return null != e.delivery && e.hasOwnProperty("delivery") && !a.isInteger(e.delivery) ? "delivery: integer expected" : null != e.needDeliveryNotice && e.hasOwnProperty("needDeliveryNotice") && "boolean" != typeof e.needDeliveryNotice ? "needDeliveryNotice: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.PaidLiveData) return e; + var t = new l.webcast.data.PaidLiveData; + if (null != e.paidType && (t.paidType = 0 | e.paidType), null != e.viewRight && (t.viewRight = 0 | e.viewRight), null != e.duration && (a.Long ? (t.duration = a.Long.fromValue(e.duration)).unsigned = !1 : "string" == typeof e.duration ? t.duration = parseInt(e.duration, 10) : "number" == typeof e.duration ? t.duration = e.duration : "object" == typeof e.duration && (t.duration = new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber())), null != e.ticketSession) + { + if ("object" != typeof e.ticketSession) throw TypeError(".webcast.data.PaidLiveData.ticketSession: object expected"); + t.ticketSession = l.webcast.data.TicketData.fromObject(e.ticketSession) + } + if (null != e.orderData) + { + if ("object" != typeof e.orderData) throw TypeError(".webcast.data.PaidLiveData.orderData: object expected"); + t.orderData = l.webcast.data.OrderData.fromObject(e.orderData) + } + return null != e.delivery && (t.delivery = 0 | e.delivery), null != e.needDeliveryNotice && (t.needDeliveryNotice = Boolean(e.needDeliveryNotice)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.paidType = 0, n.viewRight = 0, a.Long) + { + var r = new a.Long(0, 0, !1); + n.duration = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.duration = t.longs === String ? "0" : 0; + n.ticketSession = null, n.orderData = null, n.delivery = 0, n.needDeliveryNotice = !1 + } + return null != e.paidType && e.hasOwnProperty("paidType") && (n.paidType = e.paidType), null != e.viewRight && e.hasOwnProperty("viewRight") && (n.viewRight = e.viewRight), null != e.duration && e.hasOwnProperty("duration") && ("number" == typeof e.duration ? n.duration = t.longs === String ? String(e.duration) : e.duration : n.duration = t.longs === String ? a.Long.prototype.toString.call(e.duration) : t.longs === Number ? new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber() : e.duration), null != e.ticketSession && e.hasOwnProperty("ticketSession") && (n.ticketSession = l.webcast.data.TicketData.toObject(e.ticketSession, t)), null != e.orderData && e.hasOwnProperty("orderData") && (n.orderData = l.webcast.data.OrderData.toObject(e.orderData, t)), null != e.delivery && e.hasOwnProperty("delivery") && (n.delivery = e.delivery), null != e.needDeliveryNotice && e.hasOwnProperty("needDeliveryNotice") && (n.needDeliveryNotice = e.needDeliveryNotice), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.TicketData = function () + { + function e(e) + { + if (this.tags = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.ticketSessionId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.title = "", e.prototype.subTitle = "", e.prototype.price = "", e.prototype.rawReleaseTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.tags = a.emptyArray, e.prototype.ticketExplanationCardJumpUrl = "", e.prototype.ticketPanelJumpUrl = "", e.prototype.ticketSessionIdStr = "", e.prototype.sellStatus = 0, e.prototype.coverUri = "", e.prototype.coverUriVertical = "", e.prototype.Introduction = "", e.prototype.rawShowStartTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.rawShowEndTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.rawSaleStartTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.rawSaleEndTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.rawRefundDeadline = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.rawEarlyBirdStartTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.rawEarlyBirdEndTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.rawFullPriceStartTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.rawFullPriceEndTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.rawActivityStartTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.rawActivityEndTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.earlyBirdPrice = "", e.prototype.activityPrice = "", e.prototype.status = 0, e.prototype.showStartTime = "", e.prototype.showEndTime = "", e.prototype.saleStartTime = "", e.prototype.saleEndTime = "", e.prototype.earlyBirdStartTime = "", e.prototype.earlyBirdEndTime = "", e.prototype.fullPriceStartTime = "", e.prototype.fullPriceEndTime = "", e.prototype.activityStartTime = "", e.prototype.activityEndTime = "", e.prototype.refundDeadline = "", e.prototype.activityTitle = "", e.prototype.activityJumpUrl = "", e.prototype.releaseTime = "", e.prototype.ticketExplanationCardStatus = 0, e.prototype.lastDuration = 0, e.prototype.paidConversionJumpUrl = "", e.prototype.ticketPanelSixJumpUrl = "", e.prototype.ticketPanelNineJumpUrl = "", e.prototype.cover = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.ticketSessionId && Object.hasOwnProperty.call(e, "ticketSessionId") && t.uint32(8).int64(e.ticketSessionId), null != e.title && Object.hasOwnProperty.call(e, "title") && t.uint32(18).string(e.title), null != e.subTitle && Object.hasOwnProperty.call(e, "subTitle") && t.uint32(26).string(e.subTitle), null != e.price && Object.hasOwnProperty.call(e, "price") && t.uint32(34).string(e.price), null != e.rawReleaseTime && Object.hasOwnProperty.call(e, "rawReleaseTime") && t.uint32(40).int64(e.rawReleaseTime), null != e.tags && e.tags.length) + for (var n = 0; n < e.tags.length; ++n) t.uint32(50).string(e.tags[n]); + return null != e.ticketExplanationCardJumpUrl && Object.hasOwnProperty.call(e, "ticketExplanationCardJumpUrl") && t.uint32(58).string(e.ticketExplanationCardJumpUrl), null != e.ticketPanelJumpUrl && Object.hasOwnProperty.call(e, "ticketPanelJumpUrl") && t.uint32(66).string(e.ticketPanelJumpUrl), null != e.ticketSessionIdStr && Object.hasOwnProperty.call(e, "ticketSessionIdStr") && t.uint32(74).string(e.ticketSessionIdStr), null != e.sellStatus && Object.hasOwnProperty.call(e, "sellStatus") && t.uint32(80).int32(e.sellStatus), null != e.coverUri && Object.hasOwnProperty.call(e, "coverUri") && t.uint32(90).string(e.coverUri), null != e.coverUriVertical && Object.hasOwnProperty.call(e, "coverUriVertical") && t.uint32(98).string(e.coverUriVertical), null != e.Introduction && Object.hasOwnProperty.call(e, "Introduction") && t.uint32(106).string(e.Introduction), null != e.rawShowStartTime && Object.hasOwnProperty.call(e, "rawShowStartTime") && t.uint32(112).int64(e.rawShowStartTime), null != e.rawShowEndTime && Object.hasOwnProperty.call(e, "rawShowEndTime") && t.uint32(120).int64(e.rawShowEndTime), null != e.rawSaleStartTime && Object.hasOwnProperty.call(e, "rawSaleStartTime") && t.uint32(128).int64(e.rawSaleStartTime), null != e.rawSaleEndTime && Object.hasOwnProperty.call(e, "rawSaleEndTime") && t.uint32(136).int64(e.rawSaleEndTime), null != e.rawRefundDeadline && Object.hasOwnProperty.call(e, "rawRefundDeadline") && t.uint32(144).int64(e.rawRefundDeadline), null != e.rawEarlyBirdStartTime && Object.hasOwnProperty.call(e, "rawEarlyBirdStartTime") && t.uint32(152).int64(e.rawEarlyBirdStartTime), null != e.rawEarlyBirdEndTime && Object.hasOwnProperty.call(e, "rawEarlyBirdEndTime") && t.uint32(160).int64(e.rawEarlyBirdEndTime), null != e.rawFullPriceStartTime && Object.hasOwnProperty.call(e, "rawFullPriceStartTime") && t.uint32(168).int64(e.rawFullPriceStartTime), null != e.rawFullPriceEndTime && Object.hasOwnProperty.call(e, "rawFullPriceEndTime") && t.uint32(176).int64(e.rawFullPriceEndTime), null != e.rawActivityStartTime && Object.hasOwnProperty.call(e, "rawActivityStartTime") && t.uint32(184).int64(e.rawActivityStartTime), null != e.rawActivityEndTime && Object.hasOwnProperty.call(e, "rawActivityEndTime") && t.uint32(192).int64(e.rawActivityEndTime), null != e.earlyBirdPrice && Object.hasOwnProperty.call(e, "earlyBirdPrice") && t.uint32(202).string(e.earlyBirdPrice), null != e.activityPrice && Object.hasOwnProperty.call(e, "activityPrice") && t.uint32(210).string(e.activityPrice), null != e.status && Object.hasOwnProperty.call(e, "status") && t.uint32(216).int32(e.status), null != e.showStartTime && Object.hasOwnProperty.call(e, "showStartTime") && t.uint32(226).string(e.showStartTime), null != e.showEndTime && Object.hasOwnProperty.call(e, "showEndTime") && t.uint32(234).string(e.showEndTime), null != e.saleStartTime && Object.hasOwnProperty.call(e, "saleStartTime") && t.uint32(242).string(e.saleStartTime), null != e.saleEndTime && Object.hasOwnProperty.call(e, "saleEndTime") && t.uint32(250).string(e.saleEndTime), null != e.earlyBirdStartTime && Object.hasOwnProperty.call(e, "earlyBirdStartTime") && t.uint32(258).string(e.earlyBirdStartTime), null != e.earlyBirdEndTime && Object.hasOwnProperty.call(e, "earlyBirdEndTime") && t.uint32(266).string(e.earlyBirdEndTime), null != e.fullPriceStartTime && Object.hasOwnProperty.call(e, "fullPriceStartTime") && t.uint32(274).string(e.fullPriceStartTime), null != e.fullPriceEndTime && Object.hasOwnProperty.call(e, "fullPriceEndTime") && t.uint32(282).string(e.fullPriceEndTime), null != e.activityStartTime && Object.hasOwnProperty.call(e, "activityStartTime") && t.uint32(290).string(e.activityStartTime), null != e.activityEndTime && Object.hasOwnProperty.call(e, "activityEndTime") && t.uint32(298).string(e.activityEndTime), null != e.refundDeadline && Object.hasOwnProperty.call(e, "refundDeadline") && t.uint32(306).string(e.refundDeadline), null != e.activityTitle && Object.hasOwnProperty.call(e, "activityTitle") && t.uint32(314).string(e.activityTitle), null != e.activityJumpUrl && Object.hasOwnProperty.call(e, "activityJumpUrl") && t.uint32(322).string(e.activityJumpUrl), null != e.releaseTime && Object.hasOwnProperty.call(e, "releaseTime") && t.uint32(330).string(e.releaseTime), null != e.ticketExplanationCardStatus && Object.hasOwnProperty.call(e, "ticketExplanationCardStatus") && t.uint32(336).int32(e.ticketExplanationCardStatus), null != e.lastDuration && Object.hasOwnProperty.call(e, "lastDuration") && t.uint32(344).int32(e.lastDuration), null != e.paidConversionJumpUrl && Object.hasOwnProperty.call(e, "paidConversionJumpUrl") && t.uint32(354).string(e.paidConversionJumpUrl), null != e.ticketPanelSixJumpUrl && Object.hasOwnProperty.call(e, "ticketPanelSixJumpUrl") && t.uint32(362).string(e.ticketPanelSixJumpUrl), null != e.ticketPanelNineJumpUrl && Object.hasOwnProperty.call(e, "ticketPanelNineJumpUrl") && t.uint32(370).string(e.ticketPanelNineJumpUrl), null != e.cover && Object.hasOwnProperty.call(e, "cover") && l.webcast.data.Image.encode(e.cover, t.uint32(378).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.TicketData; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.ticketSessionId = e.int64(); + break; + case 2: + r.title = e.string(); + break; + case 3: + r.subTitle = e.string(); + break; + case 4: + r.price = e.string(); + break; + case 5: + r.rawReleaseTime = e.int64(); + break; + case 6: + r.tags && r.tags.length || (r.tags = []), r.tags.push(e.string()); + break; + case 7: + r.ticketExplanationCardJumpUrl = e.string(); + break; + case 8: + r.ticketPanelJumpUrl = e.string(); + break; + case 9: + r.ticketSessionIdStr = e.string(); + break; + case 10: + r.sellStatus = e.int32(); + break; + case 11: + r.coverUri = e.string(); + break; + case 12: + r.coverUriVertical = e.string(); + break; + case 13: + r.Introduction = e.string(); + break; + case 14: + r.rawShowStartTime = e.int64(); + break; + case 15: + r.rawShowEndTime = e.int64(); + break; + case 16: + r.rawSaleStartTime = e.int64(); + break; + case 17: + r.rawSaleEndTime = e.int64(); + break; + case 18: + r.rawRefundDeadline = e.int64(); + break; + case 19: + r.rawEarlyBirdStartTime = e.int64(); + break; + case 20: + r.rawEarlyBirdEndTime = e.int64(); + break; + case 21: + r.rawFullPriceStartTime = e.int64(); + break; + case 22: + r.rawFullPriceEndTime = e.int64(); + break; + case 23: + r.rawActivityStartTime = e.int64(); + break; + case 24: + r.rawActivityEndTime = e.int64(); + break; + case 25: + r.earlyBirdPrice = e.string(); + break; + case 26: + r.activityPrice = e.string(); + break; + case 27: + r.status = e.int32(); + break; + case 28: + r.showStartTime = e.string(); + break; + case 29: + r.showEndTime = e.string(); + break; + case 30: + r.saleStartTime = e.string(); + break; + case 31: + r.saleEndTime = e.string(); + break; + case 32: + r.earlyBirdStartTime = e.string(); + break; + case 33: + r.earlyBirdEndTime = e.string(); + break; + case 34: + r.fullPriceStartTime = e.string(); + break; + case 35: + r.fullPriceEndTime = e.string(); + break; + case 36: + r.activityStartTime = e.string(); + break; + case 37: + r.activityEndTime = e.string(); + break; + case 38: + r.refundDeadline = e.string(); + break; + case 39: + r.activityTitle = e.string(); + break; + case 40: + r.activityJumpUrl = e.string(); + break; + case 41: + r.releaseTime = e.string(); + break; + case 42: + r.ticketExplanationCardStatus = e.int32(); + break; + case 43: + r.lastDuration = e.int32(); + break; + case 44: + r.paidConversionJumpUrl = e.string(); + break; + case 45: + r.ticketPanelSixJumpUrl = e.string(); + break; + case 46: + r.ticketPanelNineJumpUrl = e.string(); + break; + case 47: + r.cover = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.ticketSessionId && e.hasOwnProperty("ticketSessionId") && !(a.isInteger(e.ticketSessionId) || e.ticketSessionId && a.isInteger(e.ticketSessionId.low) && a.isInteger(e.ticketSessionId.high))) return "ticketSessionId: integer|Long expected"; + if (null != e.title && e.hasOwnProperty("title") && !a.isString(e.title)) return "title: string expected"; + if (null != e.subTitle && e.hasOwnProperty("subTitle") && !a.isString(e.subTitle)) return "subTitle: string expected"; + if (null != e.price && e.hasOwnProperty("price") && !a.isString(e.price)) return "price: string expected"; + if (null != e.rawReleaseTime && e.hasOwnProperty("rawReleaseTime") && !(a.isInteger(e.rawReleaseTime) || e.rawReleaseTime && a.isInteger(e.rawReleaseTime.low) && a.isInteger(e.rawReleaseTime.high))) return "rawReleaseTime: integer|Long expected"; + if (null != e.tags && e.hasOwnProperty("tags")) + { + if (!Array.isArray(e.tags)) return "tags: array expected"; + for (var t = 0; t < e.tags.length; ++t) + if (!a.isString(e.tags[t])) return "tags: string[] expected" + } + if (null != e.ticketExplanationCardJumpUrl && e.hasOwnProperty("ticketExplanationCardJumpUrl") && !a.isString(e.ticketExplanationCardJumpUrl)) return "ticketExplanationCardJumpUrl: string expected"; + if (null != e.ticketPanelJumpUrl && e.hasOwnProperty("ticketPanelJumpUrl") && !a.isString(e.ticketPanelJumpUrl)) return "ticketPanelJumpUrl: string expected"; + if (null != e.ticketSessionIdStr && e.hasOwnProperty("ticketSessionIdStr") && !a.isString(e.ticketSessionIdStr)) return "ticketSessionIdStr: string expected"; + if (null != e.sellStatus && e.hasOwnProperty("sellStatus") && !a.isInteger(e.sellStatus)) return "sellStatus: integer expected"; + if (null != e.coverUri && e.hasOwnProperty("coverUri") && !a.isString(e.coverUri)) return "coverUri: string expected"; + if (null != e.coverUriVertical && e.hasOwnProperty("coverUriVertical") && !a.isString(e.coverUriVertical)) return "coverUriVertical: string expected"; + if (null != e.Introduction && e.hasOwnProperty("Introduction") && !a.isString(e.Introduction)) return "Introduction: string expected"; + if (null != e.rawShowStartTime && e.hasOwnProperty("rawShowStartTime") && !(a.isInteger(e.rawShowStartTime) || e.rawShowStartTime && a.isInteger(e.rawShowStartTime.low) && a.isInteger(e.rawShowStartTime.high))) return "rawShowStartTime: integer|Long expected"; + if (null != e.rawShowEndTime && e.hasOwnProperty("rawShowEndTime") && !(a.isInteger(e.rawShowEndTime) || e.rawShowEndTime && a.isInteger(e.rawShowEndTime.low) && a.isInteger(e.rawShowEndTime.high))) return "rawShowEndTime: integer|Long expected"; + if (null != e.rawSaleStartTime && e.hasOwnProperty("rawSaleStartTime") && !(a.isInteger(e.rawSaleStartTime) || e.rawSaleStartTime && a.isInteger(e.rawSaleStartTime.low) && a.isInteger(e.rawSaleStartTime.high))) return "rawSaleStartTime: integer|Long expected"; + if (null != e.rawSaleEndTime && e.hasOwnProperty("rawSaleEndTime") && !(a.isInteger(e.rawSaleEndTime) || e.rawSaleEndTime && a.isInteger(e.rawSaleEndTime.low) && a.isInteger(e.rawSaleEndTime.high))) return "rawSaleEndTime: integer|Long expected"; + if (null != e.rawRefundDeadline && e.hasOwnProperty("rawRefundDeadline") && !(a.isInteger(e.rawRefundDeadline) || e.rawRefundDeadline && a.isInteger(e.rawRefundDeadline.low) && a.isInteger(e.rawRefundDeadline.high))) return "rawRefundDeadline: integer|Long expected"; + if (null != e.rawEarlyBirdStartTime && e.hasOwnProperty("rawEarlyBirdStartTime") && !(a.isInteger(e.rawEarlyBirdStartTime) || e.rawEarlyBirdStartTime && a.isInteger(e.rawEarlyBirdStartTime.low) && a.isInteger(e.rawEarlyBirdStartTime.high))) return "rawEarlyBirdStartTime: integer|Long expected"; + if (null != e.rawEarlyBirdEndTime && e.hasOwnProperty("rawEarlyBirdEndTime") && !(a.isInteger(e.rawEarlyBirdEndTime) || e.rawEarlyBirdEndTime && a.isInteger(e.rawEarlyBirdEndTime.low) && a.isInteger(e.rawEarlyBirdEndTime.high))) return "rawEarlyBirdEndTime: integer|Long expected"; + if (null != e.rawFullPriceStartTime && e.hasOwnProperty("rawFullPriceStartTime") && !(a.isInteger(e.rawFullPriceStartTime) || e.rawFullPriceStartTime && a.isInteger(e.rawFullPriceStartTime.low) && a.isInteger(e.rawFullPriceStartTime.high))) return "rawFullPriceStartTime: integer|Long expected"; + if (null != e.rawFullPriceEndTime && e.hasOwnProperty("rawFullPriceEndTime") && !(a.isInteger(e.rawFullPriceEndTime) || e.rawFullPriceEndTime && a.isInteger(e.rawFullPriceEndTime.low) && a.isInteger(e.rawFullPriceEndTime.high))) return "rawFullPriceEndTime: integer|Long expected"; + if (null != e.rawActivityStartTime && e.hasOwnProperty("rawActivityStartTime") && !(a.isInteger(e.rawActivityStartTime) || e.rawActivityStartTime && a.isInteger(e.rawActivityStartTime.low) && a.isInteger(e.rawActivityStartTime.high))) return "rawActivityStartTime: integer|Long expected"; + if (null != e.rawActivityEndTime && e.hasOwnProperty("rawActivityEndTime") && !(a.isInteger(e.rawActivityEndTime) || e.rawActivityEndTime && a.isInteger(e.rawActivityEndTime.low) && a.isInteger(e.rawActivityEndTime.high))) return "rawActivityEndTime: integer|Long expected"; + if (null != e.earlyBirdPrice && e.hasOwnProperty("earlyBirdPrice") && !a.isString(e.earlyBirdPrice)) return "earlyBirdPrice: string expected"; + if (null != e.activityPrice && e.hasOwnProperty("activityPrice") && !a.isString(e.activityPrice)) return "activityPrice: string expected"; + if (null != e.status && e.hasOwnProperty("status") && !a.isInteger(e.status)) return "status: integer expected"; + if (null != e.showStartTime && e.hasOwnProperty("showStartTime") && !a.isString(e.showStartTime)) return "showStartTime: string expected"; + if (null != e.showEndTime && e.hasOwnProperty("showEndTime") && !a.isString(e.showEndTime)) return "showEndTime: string expected"; + if (null != e.saleStartTime && e.hasOwnProperty("saleStartTime") && !a.isString(e.saleStartTime)) return "saleStartTime: string expected"; + if (null != e.saleEndTime && e.hasOwnProperty("saleEndTime") && !a.isString(e.saleEndTime)) return "saleEndTime: string expected"; + if (null != e.earlyBirdStartTime && e.hasOwnProperty("earlyBirdStartTime") && !a.isString(e.earlyBirdStartTime)) return "earlyBirdStartTime: string expected"; + if (null != e.earlyBirdEndTime && e.hasOwnProperty("earlyBirdEndTime") && !a.isString(e.earlyBirdEndTime)) return "earlyBirdEndTime: string expected"; + if (null != e.fullPriceStartTime && e.hasOwnProperty("fullPriceStartTime") && !a.isString(e.fullPriceStartTime)) return "fullPriceStartTime: string expected"; + if (null != e.fullPriceEndTime && e.hasOwnProperty("fullPriceEndTime") && !a.isString(e.fullPriceEndTime)) return "fullPriceEndTime: string expected"; + if (null != e.activityStartTime && e.hasOwnProperty("activityStartTime") && !a.isString(e.activityStartTime)) return "activityStartTime: string expected"; + if (null != e.activityEndTime && e.hasOwnProperty("activityEndTime") && !a.isString(e.activityEndTime)) return "activityEndTime: string expected"; + if (null != e.refundDeadline && e.hasOwnProperty("refundDeadline") && !a.isString(e.refundDeadline)) return "refundDeadline: string expected"; + if (null != e.activityTitle && e.hasOwnProperty("activityTitle") && !a.isString(e.activityTitle)) return "activityTitle: string expected"; + if (null != e.activityJumpUrl && e.hasOwnProperty("activityJumpUrl") && !a.isString(e.activityJumpUrl)) return "activityJumpUrl: string expected"; + if (null != e.releaseTime && e.hasOwnProperty("releaseTime") && !a.isString(e.releaseTime)) return "releaseTime: string expected"; + if (null != e.ticketExplanationCardStatus && e.hasOwnProperty("ticketExplanationCardStatus") && !a.isInteger(e.ticketExplanationCardStatus)) return "ticketExplanationCardStatus: integer expected"; + if (null != e.lastDuration && e.hasOwnProperty("lastDuration") && !a.isInteger(e.lastDuration)) return "lastDuration: integer expected"; + if (null != e.paidConversionJumpUrl && e.hasOwnProperty("paidConversionJumpUrl") && !a.isString(e.paidConversionJumpUrl)) return "paidConversionJumpUrl: string expected"; + if (null != e.ticketPanelSixJumpUrl && e.hasOwnProperty("ticketPanelSixJumpUrl") && !a.isString(e.ticketPanelSixJumpUrl)) return "ticketPanelSixJumpUrl: string expected"; + if (null != e.ticketPanelNineJumpUrl && e.hasOwnProperty("ticketPanelNineJumpUrl") && !a.isString(e.ticketPanelNineJumpUrl)) return "ticketPanelNineJumpUrl: string expected"; + if (null != e.cover && e.hasOwnProperty("cover")) + { + var n = l.webcast.data.Image.verify(e.cover); + if (n) return "cover." + n + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.TicketData) return e; + var t = new l.webcast.data.TicketData; + if (null != e.ticketSessionId && (a.Long ? (t.ticketSessionId = a.Long.fromValue(e.ticketSessionId)).unsigned = !1 : "string" == typeof e.ticketSessionId ? t.ticketSessionId = parseInt(e.ticketSessionId, 10) : "number" == typeof e.ticketSessionId ? t.ticketSessionId = e.ticketSessionId : "object" == typeof e.ticketSessionId && (t.ticketSessionId = new a.LongBits(e.ticketSessionId.low >>> 0, e.ticketSessionId.high >>> 0).toNumber())), null != e.title && (t.title = String(e.title)), null != e.subTitle && (t.subTitle = String(e.subTitle)), null != e.price && (t.price = String(e.price)), null != e.rawReleaseTime && (a.Long ? (t.rawReleaseTime = a.Long.fromValue(e.rawReleaseTime)).unsigned = !1 : "string" == typeof e.rawReleaseTime ? t.rawReleaseTime = parseInt(e.rawReleaseTime, 10) : "number" == typeof e.rawReleaseTime ? t.rawReleaseTime = e.rawReleaseTime : "object" == typeof e.rawReleaseTime && (t.rawReleaseTime = new a.LongBits(e.rawReleaseTime.low >>> 0, e.rawReleaseTime.high >>> 0).toNumber())), e.tags) + { + if (!Array.isArray(e.tags)) throw TypeError(".webcast.data.TicketData.tags: array expected"); + t.tags = []; + for (var n = 0; n < e.tags.length; ++n) t.tags[n] = String(e.tags[n]) + } + if (null != e.ticketExplanationCardJumpUrl && (t.ticketExplanationCardJumpUrl = String(e.ticketExplanationCardJumpUrl)), null != e.ticketPanelJumpUrl && (t.ticketPanelJumpUrl = String(e.ticketPanelJumpUrl)), null != e.ticketSessionIdStr && (t.ticketSessionIdStr = String(e.ticketSessionIdStr)), null != e.sellStatus && (t.sellStatus = 0 | e.sellStatus), null != e.coverUri && (t.coverUri = String(e.coverUri)), null != e.coverUriVertical && (t.coverUriVertical = String(e.coverUriVertical)), null != e.Introduction && (t.Introduction = String(e.Introduction)), null != e.rawShowStartTime && (a.Long ? (t.rawShowStartTime = a.Long.fromValue(e.rawShowStartTime)).unsigned = !1 : "string" == typeof e.rawShowStartTime ? t.rawShowStartTime = parseInt(e.rawShowStartTime, 10) : "number" == typeof e.rawShowStartTime ? t.rawShowStartTime = e.rawShowStartTime : "object" == typeof e.rawShowStartTime && (t.rawShowStartTime = new a.LongBits(e.rawShowStartTime.low >>> 0, e.rawShowStartTime.high >>> 0).toNumber())), null != e.rawShowEndTime && (a.Long ? (t.rawShowEndTime = a.Long.fromValue(e.rawShowEndTime)).unsigned = !1 : "string" == typeof e.rawShowEndTime ? t.rawShowEndTime = parseInt(e.rawShowEndTime, 10) : "number" == typeof e.rawShowEndTime ? t.rawShowEndTime = e.rawShowEndTime : "object" == typeof e.rawShowEndTime && (t.rawShowEndTime = new a.LongBits(e.rawShowEndTime.low >>> 0, e.rawShowEndTime.high >>> 0).toNumber())), null != e.rawSaleStartTime && (a.Long ? (t.rawSaleStartTime = a.Long.fromValue(e.rawSaleStartTime)).unsigned = !1 : "string" == typeof e.rawSaleStartTime ? t.rawSaleStartTime = parseInt(e.rawSaleStartTime, 10) : "number" == typeof e.rawSaleStartTime ? t.rawSaleStartTime = e.rawSaleStartTime : "object" == typeof e.rawSaleStartTime && (t.rawSaleStartTime = new a.LongBits(e.rawSaleStartTime.low >>> 0, e.rawSaleStartTime.high >>> 0).toNumber())), null != e.rawSaleEndTime && (a.Long ? (t.rawSaleEndTime = a.Long.fromValue(e.rawSaleEndTime)).unsigned = !1 : "string" == typeof e.rawSaleEndTime ? t.rawSaleEndTime = parseInt(e.rawSaleEndTime, 10) : "number" == typeof e.rawSaleEndTime ? t.rawSaleEndTime = e.rawSaleEndTime : "object" == typeof e.rawSaleEndTime && (t.rawSaleEndTime = new a.LongBits(e.rawSaleEndTime.low >>> 0, e.rawSaleEndTime.high >>> 0).toNumber())), null != e.rawRefundDeadline && (a.Long ? (t.rawRefundDeadline = a.Long.fromValue(e.rawRefundDeadline)).unsigned = !1 : "string" == typeof e.rawRefundDeadline ? t.rawRefundDeadline = parseInt(e.rawRefundDeadline, 10) : "number" == typeof e.rawRefundDeadline ? t.rawRefundDeadline = e.rawRefundDeadline : "object" == typeof e.rawRefundDeadline && (t.rawRefundDeadline = new a.LongBits(e.rawRefundDeadline.low >>> 0, e.rawRefundDeadline.high >>> 0).toNumber())), null != e.rawEarlyBirdStartTime && (a.Long ? (t.rawEarlyBirdStartTime = a.Long.fromValue(e.rawEarlyBirdStartTime)).unsigned = !1 : "string" == typeof e.rawEarlyBirdStartTime ? t.rawEarlyBirdStartTime = parseInt(e.rawEarlyBirdStartTime, 10) : "number" == typeof e.rawEarlyBirdStartTime ? t.rawEarlyBirdStartTime = e.rawEarlyBirdStartTime : "object" == typeof e.rawEarlyBirdStartTime && (t.rawEarlyBirdStartTime = new a.LongBits(e.rawEarlyBirdStartTime.low >>> 0, e.rawEarlyBirdStartTime.high >>> 0).toNumber())), null != e.rawEarlyBirdEndTime && (a.Long ? (t.rawEarlyBirdEndTime = a.Long.fromValue(e.rawEarlyBirdEndTime)).unsigned = !1 : "string" == typeof e.rawEarlyBirdEndTime ? t.rawEarlyBirdEndTime = parseInt(e.rawEarlyBirdEndTime, 10) : "number" == typeof e.rawEarlyBirdEndTime ? t.rawEarlyBirdEndTime = e.rawEarlyBirdEndTime : "object" == typeof e.rawEarlyBirdEndTime && (t.rawEarlyBirdEndTime = new a.LongBits(e.rawEarlyBirdEndTime.low >>> 0, e.rawEarlyBirdEndTime.high >>> 0).toNumber())), null != e.rawFullPriceStartTime && (a.Long ? (t.rawFullPriceStartTime = a.Long.fromValue(e.rawFullPriceStartTime)).unsigned = !1 : "string" == typeof e.rawFullPriceStartTime ? t.rawFullPriceStartTime = parseInt(e.rawFullPriceStartTime, 10) : "number" == typeof e.rawFullPriceStartTime ? t.rawFullPriceStartTime = e.rawFullPriceStartTime : "object" == typeof e.rawFullPriceStartTime && (t.rawFullPriceStartTime = new a.LongBits(e.rawFullPriceStartTime.low >>> 0, e.rawFullPriceStartTime.high >>> 0).toNumber())), null != e.rawFullPriceEndTime && (a.Long ? (t.rawFullPriceEndTime = a.Long.fromValue(e.rawFullPriceEndTime)).unsigned = !1 : "string" == typeof e.rawFullPriceEndTime ? t.rawFullPriceEndTime = parseInt(e.rawFullPriceEndTime, 10) : "number" == typeof e.rawFullPriceEndTime ? t.rawFullPriceEndTime = e.rawFullPriceEndTime : "object" == typeof e.rawFullPriceEndTime && (t.rawFullPriceEndTime = new a.LongBits(e.rawFullPriceEndTime.low >>> 0, e.rawFullPriceEndTime.high >>> 0).toNumber())), null != e.rawActivityStartTime && (a.Long ? (t.rawActivityStartTime = a.Long.fromValue(e.rawActivityStartTime)).unsigned = !1 : "string" == typeof e.rawActivityStartTime ? t.rawActivityStartTime = parseInt(e.rawActivityStartTime, 10) : "number" == typeof e.rawActivityStartTime ? t.rawActivityStartTime = e.rawActivityStartTime : "object" == typeof e.rawActivityStartTime && (t.rawActivityStartTime = new a.LongBits(e.rawActivityStartTime.low >>> 0, e.rawActivityStartTime.high >>> 0).toNumber())), null != e.rawActivityEndTime && (a.Long ? (t.rawActivityEndTime = a.Long.fromValue(e.rawActivityEndTime)).unsigned = !1 : "string" == typeof e.rawActivityEndTime ? t.rawActivityEndTime = parseInt(e.rawActivityEndTime, 10) : "number" == typeof e.rawActivityEndTime ? t.rawActivityEndTime = e.rawActivityEndTime : "object" == typeof e.rawActivityEndTime && (t.rawActivityEndTime = new a.LongBits(e.rawActivityEndTime.low >>> 0, e.rawActivityEndTime.high >>> 0).toNumber())), null != e.earlyBirdPrice && (t.earlyBirdPrice = String(e.earlyBirdPrice)), null != e.activityPrice && (t.activityPrice = String(e.activityPrice)), null != e.status && (t.status = 0 | e.status), null != e.showStartTime && (t.showStartTime = String(e.showStartTime)), null != e.showEndTime && (t.showEndTime = String(e.showEndTime)), null != e.saleStartTime && (t.saleStartTime = String(e.saleStartTime)), null != e.saleEndTime && (t.saleEndTime = String(e.saleEndTime)), null != e.earlyBirdStartTime && (t.earlyBirdStartTime = String(e.earlyBirdStartTime)), null != e.earlyBirdEndTime && (t.earlyBirdEndTime = String(e.earlyBirdEndTime)), null != e.fullPriceStartTime && (t.fullPriceStartTime = String(e.fullPriceStartTime)), null != e.fullPriceEndTime && (t.fullPriceEndTime = String(e.fullPriceEndTime)), null != e.activityStartTime && (t.activityStartTime = String(e.activityStartTime)), null != e.activityEndTime && (t.activityEndTime = String(e.activityEndTime)), null != e.refundDeadline && (t.refundDeadline = String(e.refundDeadline)), null != e.activityTitle && (t.activityTitle = String(e.activityTitle)), null != e.activityJumpUrl && (t.activityJumpUrl = String(e.activityJumpUrl)), null != e.releaseTime && (t.releaseTime = String(e.releaseTime)), null != e.ticketExplanationCardStatus && (t.ticketExplanationCardStatus = 0 | e.ticketExplanationCardStatus), null != e.lastDuration && (t.lastDuration = 0 | e.lastDuration), null != e.paidConversionJumpUrl && (t.paidConversionJumpUrl = String(e.paidConversionJumpUrl)), null != e.ticketPanelSixJumpUrl && (t.ticketPanelSixJumpUrl = String(e.ticketPanelSixJumpUrl)), null != e.ticketPanelNineJumpUrl && (t.ticketPanelNineJumpUrl = String(e.ticketPanelNineJumpUrl)), null != e.cover) + { + if ("object" != typeof e.cover) throw TypeError(".webcast.data.TicketData.cover: object expected"); + t.cover = l.webcast.data.Image.fromObject(e.cover) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.tags = []), t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.ticketSessionId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.ticketSessionId = t.longs === String ? "0" : 0; + if (n.title = "", n.subTitle = "", n.price = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.rawReleaseTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.rawReleaseTime = t.longs === String ? "0" : 0; + if (n.ticketExplanationCardJumpUrl = "", n.ticketPanelJumpUrl = "", n.ticketSessionIdStr = "", n.sellStatus = 0, n.coverUri = "", n.coverUriVertical = "", n.Introduction = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.rawShowStartTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.rawShowStartTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.rawShowEndTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.rawShowEndTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.rawSaleStartTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.rawSaleStartTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.rawSaleEndTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.rawSaleEndTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.rawRefundDeadline = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.rawRefundDeadline = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.rawEarlyBirdStartTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.rawEarlyBirdStartTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.rawEarlyBirdEndTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.rawEarlyBirdEndTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.rawFullPriceStartTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.rawFullPriceStartTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.rawFullPriceEndTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.rawFullPriceEndTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.rawActivityStartTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.rawActivityStartTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.rawActivityEndTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.rawActivityEndTime = t.longs === String ? "0" : 0; + n.earlyBirdPrice = "", n.activityPrice = "", n.status = 0, n.showStartTime = "", n.showEndTime = "", n.saleStartTime = "", n.saleEndTime = "", n.earlyBirdStartTime = "", n.earlyBirdEndTime = "", n.fullPriceStartTime = "", n.fullPriceEndTime = "", n.activityStartTime = "", n.activityEndTime = "", n.refundDeadline = "", n.activityTitle = "", n.activityJumpUrl = "", n.releaseTime = "", n.ticketExplanationCardStatus = 0, n.lastDuration = 0, n.paidConversionJumpUrl = "", n.ticketPanelSixJumpUrl = "", n.ticketPanelNineJumpUrl = "", n.cover = null + } + if (null != e.ticketSessionId && e.hasOwnProperty("ticketSessionId") && ("number" == typeof e.ticketSessionId ? n.ticketSessionId = t.longs === String ? String(e.ticketSessionId) : e.ticketSessionId : n.ticketSessionId = t.longs === String ? a.Long.prototype.toString.call(e.ticketSessionId) : t.longs === Number ? new a.LongBits(e.ticketSessionId.low >>> 0, e.ticketSessionId.high >>> 0).toNumber() : e.ticketSessionId), null != e.title && e.hasOwnProperty("title") && (n.title = e.title), null != e.subTitle && e.hasOwnProperty("subTitle") && (n.subTitle = e.subTitle), null != e.price && e.hasOwnProperty("price") && (n.price = e.price), null != e.rawReleaseTime && e.hasOwnProperty("rawReleaseTime") && ("number" == typeof e.rawReleaseTime ? n.rawReleaseTime = t.longs === String ? String(e.rawReleaseTime) : e.rawReleaseTime : n.rawReleaseTime = t.longs === String ? a.Long.prototype.toString.call(e.rawReleaseTime) : t.longs === Number ? new a.LongBits(e.rawReleaseTime.low >>> 0, e.rawReleaseTime.high >>> 0).toNumber() : e.rawReleaseTime), e.tags && e.tags.length) + { + n.tags = []; + for (var o = 0; o < e.tags.length; ++o) n.tags[o] = e.tags[o] + } + return null != e.ticketExplanationCardJumpUrl && e.hasOwnProperty("ticketExplanationCardJumpUrl") && (n.ticketExplanationCardJumpUrl = e.ticketExplanationCardJumpUrl), null != e.ticketPanelJumpUrl && e.hasOwnProperty("ticketPanelJumpUrl") && (n.ticketPanelJumpUrl = e.ticketPanelJumpUrl), null != e.ticketSessionIdStr && e.hasOwnProperty("ticketSessionIdStr") && (n.ticketSessionIdStr = e.ticketSessionIdStr), null != e.sellStatus && e.hasOwnProperty("sellStatus") && (n.sellStatus = e.sellStatus), null != e.coverUri && e.hasOwnProperty("coverUri") && (n.coverUri = e.coverUri), null != e.coverUriVertical && e.hasOwnProperty("coverUriVertical") && (n.coverUriVertical = e.coverUriVertical), null != e.Introduction && e.hasOwnProperty("Introduction") && (n.Introduction = e.Introduction), null != e.rawShowStartTime && e.hasOwnProperty("rawShowStartTime") && ("number" == typeof e.rawShowStartTime ? n.rawShowStartTime = t.longs === String ? String(e.rawShowStartTime) : e.rawShowStartTime : n.rawShowStartTime = t.longs === String ? a.Long.prototype.toString.call(e.rawShowStartTime) : t.longs === Number ? new a.LongBits(e.rawShowStartTime.low >>> 0, e.rawShowStartTime.high >>> 0).toNumber() : e.rawShowStartTime), null != e.rawShowEndTime && e.hasOwnProperty("rawShowEndTime") && ("number" == typeof e.rawShowEndTime ? n.rawShowEndTime = t.longs === String ? String(e.rawShowEndTime) : e.rawShowEndTime : n.rawShowEndTime = t.longs === String ? a.Long.prototype.toString.call(e.rawShowEndTime) : t.longs === Number ? new a.LongBits(e.rawShowEndTime.low >>> 0, e.rawShowEndTime.high >>> 0).toNumber() : e.rawShowEndTime), null != e.rawSaleStartTime && e.hasOwnProperty("rawSaleStartTime") && ("number" == typeof e.rawSaleStartTime ? n.rawSaleStartTime = t.longs === String ? String(e.rawSaleStartTime) : e.rawSaleStartTime : n.rawSaleStartTime = t.longs === String ? a.Long.prototype.toString.call(e.rawSaleStartTime) : t.longs === Number ? new a.LongBits(e.rawSaleStartTime.low >>> 0, e.rawSaleStartTime.high >>> 0).toNumber() : e.rawSaleStartTime), null != e.rawSaleEndTime && e.hasOwnProperty("rawSaleEndTime") && ("number" == typeof e.rawSaleEndTime ? n.rawSaleEndTime = t.longs === String ? String(e.rawSaleEndTime) : e.rawSaleEndTime : n.rawSaleEndTime = t.longs === String ? a.Long.prototype.toString.call(e.rawSaleEndTime) : t.longs === Number ? new a.LongBits(e.rawSaleEndTime.low >>> 0, e.rawSaleEndTime.high >>> 0).toNumber() : e.rawSaleEndTime), null != e.rawRefundDeadline && e.hasOwnProperty("rawRefundDeadline") && ("number" == typeof e.rawRefundDeadline ? n.rawRefundDeadline = t.longs === String ? String(e.rawRefundDeadline) : e.rawRefundDeadline : n.rawRefundDeadline = t.longs === String ? a.Long.prototype.toString.call(e.rawRefundDeadline) : t.longs === Number ? new a.LongBits(e.rawRefundDeadline.low >>> 0, e.rawRefundDeadline.high >>> 0).toNumber() : e.rawRefundDeadline), null != e.rawEarlyBirdStartTime && e.hasOwnProperty("rawEarlyBirdStartTime") && ("number" == typeof e.rawEarlyBirdStartTime ? n.rawEarlyBirdStartTime = t.longs === String ? String(e.rawEarlyBirdStartTime) : e.rawEarlyBirdStartTime : n.rawEarlyBirdStartTime = t.longs === String ? a.Long.prototype.toString.call(e.rawEarlyBirdStartTime) : t.longs === Number ? new a.LongBits(e.rawEarlyBirdStartTime.low >>> 0, e.rawEarlyBirdStartTime.high >>> 0).toNumber() : e.rawEarlyBirdStartTime), null != e.rawEarlyBirdEndTime && e.hasOwnProperty("rawEarlyBirdEndTime") && ("number" == typeof e.rawEarlyBirdEndTime ? n.rawEarlyBirdEndTime = t.longs === String ? String(e.rawEarlyBirdEndTime) : e.rawEarlyBirdEndTime : n.rawEarlyBirdEndTime = t.longs === String ? a.Long.prototype.toString.call(e.rawEarlyBirdEndTime) : t.longs === Number ? new a.LongBits(e.rawEarlyBirdEndTime.low >>> 0, e.rawEarlyBirdEndTime.high >>> 0).toNumber() : e.rawEarlyBirdEndTime), null != e.rawFullPriceStartTime && e.hasOwnProperty("rawFullPriceStartTime") && ("number" == typeof e.rawFullPriceStartTime ? n.rawFullPriceStartTime = t.longs === String ? String(e.rawFullPriceStartTime) : e.rawFullPriceStartTime : n.rawFullPriceStartTime = t.longs === String ? a.Long.prototype.toString.call(e.rawFullPriceStartTime) : t.longs === Number ? new a.LongBits(e.rawFullPriceStartTime.low >>> 0, e.rawFullPriceStartTime.high >>> 0).toNumber() : e.rawFullPriceStartTime), null != e.rawFullPriceEndTime && e.hasOwnProperty("rawFullPriceEndTime") && ("number" == typeof e.rawFullPriceEndTime ? n.rawFullPriceEndTime = t.longs === String ? String(e.rawFullPriceEndTime) : e.rawFullPriceEndTime : n.rawFullPriceEndTime = t.longs === String ? a.Long.prototype.toString.call(e.rawFullPriceEndTime) : t.longs === Number ? new a.LongBits(e.rawFullPriceEndTime.low >>> 0, e.rawFullPriceEndTime.high >>> 0).toNumber() : e.rawFullPriceEndTime), null != e.rawActivityStartTime && e.hasOwnProperty("rawActivityStartTime") && ("number" == typeof e.rawActivityStartTime ? n.rawActivityStartTime = t.longs === String ? String(e.rawActivityStartTime) : e.rawActivityStartTime : n.rawActivityStartTime = t.longs === String ? a.Long.prototype.toString.call(e.rawActivityStartTime) : t.longs === Number ? new a.LongBits(e.rawActivityStartTime.low >>> 0, e.rawActivityStartTime.high >>> 0).toNumber() : e.rawActivityStartTime), null != e.rawActivityEndTime && e.hasOwnProperty("rawActivityEndTime") && ("number" == typeof e.rawActivityEndTime ? n.rawActivityEndTime = t.longs === String ? String(e.rawActivityEndTime) : e.rawActivityEndTime : n.rawActivityEndTime = t.longs === String ? a.Long.prototype.toString.call(e.rawActivityEndTime) : t.longs === Number ? new a.LongBits(e.rawActivityEndTime.low >>> 0, e.rawActivityEndTime.high >>> 0).toNumber() : e.rawActivityEndTime), null != e.earlyBirdPrice && e.hasOwnProperty("earlyBirdPrice") && (n.earlyBirdPrice = e.earlyBirdPrice), null != e.activityPrice && e.hasOwnProperty("activityPrice") && (n.activityPrice = e.activityPrice), null != e.status && e.hasOwnProperty("status") && (n.status = e.status), null != e.showStartTime && e.hasOwnProperty("showStartTime") && (n.showStartTime = e.showStartTime), null != e.showEndTime && e.hasOwnProperty("showEndTime") && (n.showEndTime = e.showEndTime), null != e.saleStartTime && e.hasOwnProperty("saleStartTime") && (n.saleStartTime = e.saleStartTime), null != e.saleEndTime && e.hasOwnProperty("saleEndTime") && (n.saleEndTime = e.saleEndTime), null != e.earlyBirdStartTime && e.hasOwnProperty("earlyBirdStartTime") && (n.earlyBirdStartTime = e.earlyBirdStartTime), null != e.earlyBirdEndTime && e.hasOwnProperty("earlyBirdEndTime") && (n.earlyBirdEndTime = e.earlyBirdEndTime), null != e.fullPriceStartTime && e.hasOwnProperty("fullPriceStartTime") && (n.fullPriceStartTime = e.fullPriceStartTime), null != e.fullPriceEndTime && e.hasOwnProperty("fullPriceEndTime") && (n.fullPriceEndTime = e.fullPriceEndTime), null != e.activityStartTime && e.hasOwnProperty("activityStartTime") && (n.activityStartTime = e.activityStartTime), null != e.activityEndTime && e.hasOwnProperty("activityEndTime") && (n.activityEndTime = e.activityEndTime), null != e.refundDeadline && e.hasOwnProperty("refundDeadline") && (n.refundDeadline = e.refundDeadline), null != e.activityTitle && e.hasOwnProperty("activityTitle") && (n.activityTitle = e.activityTitle), null != e.activityJumpUrl && e.hasOwnProperty("activityJumpUrl") && (n.activityJumpUrl = e.activityJumpUrl), null != e.releaseTime && e.hasOwnProperty("releaseTime") && (n.releaseTime = e.releaseTime), null != e.ticketExplanationCardStatus && e.hasOwnProperty("ticketExplanationCardStatus") && (n.ticketExplanationCardStatus = e.ticketExplanationCardStatus), null != e.lastDuration && e.hasOwnProperty("lastDuration") && (n.lastDuration = e.lastDuration), null != e.paidConversionJumpUrl && e.hasOwnProperty("paidConversionJumpUrl") && (n.paidConversionJumpUrl = e.paidConversionJumpUrl), null != e.ticketPanelSixJumpUrl && e.hasOwnProperty("ticketPanelSixJumpUrl") && (n.ticketPanelSixJumpUrl = e.ticketPanelSixJumpUrl), null != e.ticketPanelNineJumpUrl && e.hasOwnProperty("ticketPanelNineJumpUrl") && (n.ticketPanelNineJumpUrl = e.ticketPanelNineJumpUrl), null != e.cover && e.hasOwnProperty("cover") && (n.cover = l.webcast.data.Image.toObject(e.cover, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.OrderData = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.orderId = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.orderId && Object.hasOwnProperty.call(e, "orderId") && t.uint32(10).string(e.orderId), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.OrderData; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.orderId = e.string(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.orderId && e.hasOwnProperty("orderId") && !a.isString(e.orderId) ? "orderId: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.OrderData) return e; + var t = new l.webcast.data.OrderData; + return null != e.orderId && (t.orderId = String(e.orderId)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.orderId = ""), null != e.orderId && e.hasOwnProperty("orderId") && (n.orderId = e.orderId), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.Appearance = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.headBubble = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.headBubble && Object.hasOwnProperty.call(e, "headBubble") && l.webcast.data.Appearance.Bubble.encode(e.headBubble, t.uint32(10).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.Appearance; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.headBubble = l.webcast.data.Appearance.Bubble.decode(e, e.uint32()); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.headBubble && e.hasOwnProperty("headBubble")) + { + var t = l.webcast.data.Appearance.Bubble.verify(e.headBubble); + if (t) return "headBubble." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.Appearance) return e; + var t = new l.webcast.data.Appearance; + if (null != e.headBubble) + { + if ("object" != typeof e.headBubble) throw TypeError(".webcast.data.Appearance.headBubble: object expected"); + t.headBubble = l.webcast.data.Appearance.Bubble.fromObject(e.headBubble) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.headBubble = null), null != e.headBubble && e.hasOwnProperty("headBubble") && (n.headBubble = l.webcast.data.Appearance.Bubble.toObject(e.headBubble, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Bubble = function () + { + function e(e) + { + if (this.rollTips = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.type = 0, e.prototype.rollTips = a.emptyArray, e.prototype.icon = null, e.prototype.rollAfterMs = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.type && Object.hasOwnProperty.call(e, "type") && t.uint32(8).int32(e.type), null != e.rollTips && e.rollTips.length) + for (var n = 0; n < e.rollTips.length; ++n) t.uint32(18).string(e.rollTips[n]); + return null != e.icon && Object.hasOwnProperty.call(e, "icon") && l.webcast.data.Image.encode(e.icon, t.uint32(26).fork()).ldelim(), null != e.rollAfterMs && Object.hasOwnProperty.call(e, "rollAfterMs") && t.uint32(32).int32(e.rollAfterMs), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.Appearance.Bubble; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.type = e.int32(); + break; + case 2: + r.rollTips && r.rollTips.length || (r.rollTips = []), r.rollTips.push(e.string()); + break; + case 3: + r.icon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 4: + r.rollAfterMs = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.type && e.hasOwnProperty("type")) switch (e.type) + { + default: + return "type: enum value expected"; + case 0: + case 1: + } + if (null != e.rollTips && e.hasOwnProperty("rollTips")) + { + if (!Array.isArray(e.rollTips)) return "rollTips: array expected"; + for (var t = 0; t < e.rollTips.length; ++t) + if (!a.isString(e.rollTips[t])) return "rollTips: string[] expected" + } + if (null != e.icon && e.hasOwnProperty("icon")) + { + var n = l.webcast.data.Image.verify(e.icon); + if (n) return "icon." + n + } + return null != e.rollAfterMs && e.hasOwnProperty("rollAfterMs") && !a.isInteger(e.rollAfterMs) ? "rollAfterMs: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.Appearance.Bubble) return e; + var t = new l.webcast.data.Appearance.Bubble; + switch (e.type) + { + case "UNKNOWN": + case 0: + t.type = 0; + break; + case "TREASURE_BOX": + case 1: + t.type = 1 + } + if (e.rollTips) + { + if (!Array.isArray(e.rollTips)) throw TypeError(".webcast.data.Appearance.Bubble.rollTips: array expected"); + t.rollTips = []; + for (var n = 0; n < e.rollTips.length; ++n) t.rollTips[n] = String(e.rollTips[n]) + } + if (null != e.icon) + { + if ("object" != typeof e.icon) throw TypeError(".webcast.data.Appearance.Bubble.icon: object expected"); + t.icon = l.webcast.data.Image.fromObject(e.icon) + } + return null != e.rollAfterMs && (t.rollAfterMs = 0 | e.rollAfterMs), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.rollTips = []), t.defaults && (n.type = t.enums === String ? "UNKNOWN" : 0, n.icon = null, n.rollAfterMs = 0), null != e.type && e.hasOwnProperty("type") && (n.type = t.enums === String ? l.webcast.data.Appearance.Bubble.Type[e.type] : e.type), e.rollTips && e.rollTips.length) + { + n.rollTips = []; + for (var r = 0; r < e.rollTips.length; ++r) n.rollTips[r] = e.rollTips[r] + } + return null != e.icon && e.hasOwnProperty("icon") && (n.icon = l.webcast.data.Image.toObject(e.icon, t)), null != e.rollAfterMs && e.hasOwnProperty("rollAfterMs") && (n.rollAfterMs = e.rollAfterMs), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Type = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "UNKNOWN"] = 0, t[e[1] = "TREASURE_BOX"] = 1, t + }(), e + }(), e + }(), e.OfficialRoomInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.isShowMoreAnchor = !1, e.prototype.isUseServerSubtitle = !1, e.prototype.serverSubtitle = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.isShowMoreAnchor && Object.hasOwnProperty.call(e, "isShowMoreAnchor") && t.uint32(8).bool(e.isShowMoreAnchor), null != e.isUseServerSubtitle && Object.hasOwnProperty.call(e, "isUseServerSubtitle") && t.uint32(16).bool(e.isUseServerSubtitle), null != e.serverSubtitle && Object.hasOwnProperty.call(e, "serverSubtitle") && t.uint32(26).string(e.serverSubtitle), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.OfficialRoomInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.isShowMoreAnchor = e.bool(); + break; + case 2: + r.isUseServerSubtitle = e.bool(); + break; + case 3: + r.serverSubtitle = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.isShowMoreAnchor && e.hasOwnProperty("isShowMoreAnchor") && "boolean" != typeof e.isShowMoreAnchor ? "isShowMoreAnchor: boolean expected" : null != e.isUseServerSubtitle && e.hasOwnProperty("isUseServerSubtitle") && "boolean" != typeof e.isUseServerSubtitle ? "isUseServerSubtitle: boolean expected" : null != e.serverSubtitle && e.hasOwnProperty("serverSubtitle") && !a.isString(e.serverSubtitle) ? "serverSubtitle: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.OfficialRoomInfo) return e; + var t = new l.webcast.data.OfficialRoomInfo; + return null != e.isShowMoreAnchor && (t.isShowMoreAnchor = Boolean(e.isShowMoreAnchor)), null != e.isUseServerSubtitle && (t.isUseServerSubtitle = Boolean(e.isUseServerSubtitle)), null != e.serverSubtitle && (t.serverSubtitle = String(e.serverSubtitle)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.isShowMoreAnchor = !1, n.isUseServerSubtitle = !1, n.serverSubtitle = ""), null != e.isShowMoreAnchor && e.hasOwnProperty("isShowMoreAnchor") && (n.isShowMoreAnchor = e.isShowMoreAnchor), null != e.isUseServerSubtitle && e.hasOwnProperty("isUseServerSubtitle") && (n.isUseServerSubtitle = e.isUseServerSubtitle), null != e.serverSubtitle && e.hasOwnProperty("serverSubtitle") && (n.serverSubtitle = e.serverSubtitle), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.SwitchExtraBase = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.schemaForCheck = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.schemaForCheck && Object.hasOwnProperty.call(e, "schemaForCheck") && t.uint32(10).string(e.schemaForCheck), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.SwitchExtraBase; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.schemaForCheck = e.string(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.schemaForCheck && e.hasOwnProperty("schemaForCheck") && !a.isString(e.schemaForCheck) ? "schemaForCheck: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.SwitchExtraBase) return e; + var t = new l.webcast.data.SwitchExtraBase; + return null != e.schemaForCheck && (t.schemaForCheck = String(e.schemaForCheck)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.schemaForCheck = ""), null != e.schemaForCheck && e.hasOwnProperty("schemaForCheck") && (n.schemaForCheck = e.schemaForCheck), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.SwitchExtraForOpen = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.schemaForOpen = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.schemaForOpen && Object.hasOwnProperty.call(e, "schemaForOpen") && t.uint32(10).string(e.schemaForOpen), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.SwitchExtraForOpen; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.schemaForOpen = e.string(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.schemaForOpen && e.hasOwnProperty("schemaForOpen") && !a.isString(e.schemaForOpen) ? "schemaForOpen: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.SwitchExtraForOpen) return e; + var t = new l.webcast.data.SwitchExtraForOpen; + return null != e.schemaForOpen && (t.schemaForOpen = String(e.schemaForOpen)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.schemaForOpen = ""), null != e.schemaForOpen && e.hasOwnProperty("schemaForOpen") && (n.schemaForOpen = e.schemaForOpen), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.GameInvite = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.kind = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.createTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.nowTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.expireTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.status = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.roomId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.idStr = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(8).int64(e.id), null != e.kind && Object.hasOwnProperty.call(e, "kind") && t.uint32(16).int64(e.kind), null != e.createTime && Object.hasOwnProperty.call(e, "createTime") && t.uint32(24).int64(e.createTime), null != e.nowTime && Object.hasOwnProperty.call(e, "nowTime") && t.uint32(32).int64(e.nowTime), null != e.expireTime && Object.hasOwnProperty.call(e, "expireTime") && t.uint32(40).int64(e.expireTime), null != e.status && Object.hasOwnProperty.call(e, "status") && t.uint32(48).int64(e.status), null != e.roomId && Object.hasOwnProperty.call(e, "roomId") && t.uint32(56).int64(e.roomId), null != e.idStr && Object.hasOwnProperty.call(e, "idStr") && t.uint32(66).string(e.idStr), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.GameInvite; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.id = e.int64(); + break; + case 2: + r.kind = e.int64(); + break; + case 3: + r.createTime = e.int64(); + break; + case 4: + r.nowTime = e.int64(); + break; + case 5: + r.expireTime = e.int64(); + break; + case 6: + r.status = e.int64(); + break; + case 7: + r.roomId = e.int64(); + break; + case 8: + r.idStr = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high)) ? "id: integer|Long expected" : null != e.kind && e.hasOwnProperty("kind") && !(a.isInteger(e.kind) || e.kind && a.isInteger(e.kind.low) && a.isInteger(e.kind.high)) ? "kind: integer|Long expected" : null != e.createTime && e.hasOwnProperty("createTime") && !(a.isInteger(e.createTime) || e.createTime && a.isInteger(e.createTime.low) && a.isInteger(e.createTime.high)) ? "createTime: integer|Long expected" : null != e.nowTime && e.hasOwnProperty("nowTime") && !(a.isInteger(e.nowTime) || e.nowTime && a.isInteger(e.nowTime.low) && a.isInteger(e.nowTime.high)) ? "nowTime: integer|Long expected" : null != e.expireTime && e.hasOwnProperty("expireTime") && !(a.isInteger(e.expireTime) || e.expireTime && a.isInteger(e.expireTime.low) && a.isInteger(e.expireTime.high)) ? "expireTime: integer|Long expected" : null != e.status && e.hasOwnProperty("status") && !(a.isInteger(e.status) || e.status && a.isInteger(e.status.low) && a.isInteger(e.status.high)) ? "status: integer|Long expected" : null != e.roomId && e.hasOwnProperty("roomId") && !(a.isInteger(e.roomId) || e.roomId && a.isInteger(e.roomId.low) && a.isInteger(e.roomId.high)) ? "roomId: integer|Long expected" : null != e.idStr && e.hasOwnProperty("idStr") && !a.isString(e.idStr) ? "idStr: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GameInvite) return e; + var t = new l.webcast.data.GameInvite; + return null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), null != e.kind && (a.Long ? (t.kind = a.Long.fromValue(e.kind)).unsigned = !1 : "string" == typeof e.kind ? t.kind = parseInt(e.kind, 10) : "number" == typeof e.kind ? t.kind = e.kind : "object" == typeof e.kind && (t.kind = new a.LongBits(e.kind.low >>> 0, e.kind.high >>> 0).toNumber())), null != e.createTime && (a.Long ? (t.createTime = a.Long.fromValue(e.createTime)).unsigned = !1 : "string" == typeof e.createTime ? t.createTime = parseInt(e.createTime, 10) : "number" == typeof e.createTime ? t.createTime = e.createTime : "object" == typeof e.createTime && (t.createTime = new a.LongBits(e.createTime.low >>> 0, e.createTime.high >>> 0).toNumber())), null != e.nowTime && (a.Long ? (t.nowTime = a.Long.fromValue(e.nowTime)).unsigned = !1 : "string" == typeof e.nowTime ? t.nowTime = parseInt(e.nowTime, 10) : "number" == typeof e.nowTime ? t.nowTime = e.nowTime : "object" == typeof e.nowTime && (t.nowTime = new a.LongBits(e.nowTime.low >>> 0, e.nowTime.high >>> 0).toNumber())), null != e.expireTime && (a.Long ? (t.expireTime = a.Long.fromValue(e.expireTime)).unsigned = !1 : "string" == typeof e.expireTime ? t.expireTime = parseInt(e.expireTime, 10) : "number" == typeof e.expireTime ? t.expireTime = e.expireTime : "object" == typeof e.expireTime && (t.expireTime = new a.LongBits(e.expireTime.low >>> 0, e.expireTime.high >>> 0).toNumber())), null != e.status && (a.Long ? (t.status = a.Long.fromValue(e.status)).unsigned = !1 : "string" == typeof e.status ? t.status = parseInt(e.status, 10) : "number" == typeof e.status ? t.status = e.status : "object" == typeof e.status && (t.status = new a.LongBits(e.status.low >>> 0, e.status.high >>> 0).toNumber())), null != e.roomId && (a.Long ? (t.roomId = a.Long.fromValue(e.roomId)).unsigned = !1 : "string" == typeof e.roomId ? t.roomId = parseInt(e.roomId, 10) : "number" == typeof e.roomId ? t.roomId = e.roomId : "object" == typeof e.roomId && (t.roomId = new a.LongBits(e.roomId.low >>> 0, e.roomId.high >>> 0).toNumber())), null != e.idStr && (t.idStr = String(e.idStr)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.id = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.kind = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.kind = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.createTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.createTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.nowTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.nowTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.expireTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.expireTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.status = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.status = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.roomId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.roomId = t.longs === String ? "0" : 0; + n.idStr = "" + } + return null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? n.id = t.longs === String ? String(e.id) : e.id : n.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), null != e.kind && e.hasOwnProperty("kind") && ("number" == typeof e.kind ? n.kind = t.longs === String ? String(e.kind) : e.kind : n.kind = t.longs === String ? a.Long.prototype.toString.call(e.kind) : t.longs === Number ? new a.LongBits(e.kind.low >>> 0, e.kind.high >>> 0).toNumber() : e.kind), null != e.createTime && e.hasOwnProperty("createTime") && ("number" == typeof e.createTime ? n.createTime = t.longs === String ? String(e.createTime) : e.createTime : n.createTime = t.longs === String ? a.Long.prototype.toString.call(e.createTime) : t.longs === Number ? new a.LongBits(e.createTime.low >>> 0, e.createTime.high >>> 0).toNumber() : e.createTime), null != e.nowTime && e.hasOwnProperty("nowTime") && ("number" == typeof e.nowTime ? n.nowTime = t.longs === String ? String(e.nowTime) : e.nowTime : n.nowTime = t.longs === String ? a.Long.prototype.toString.call(e.nowTime) : t.longs === Number ? new a.LongBits(e.nowTime.low >>> 0, e.nowTime.high >>> 0).toNumber() : e.nowTime), null != e.expireTime && e.hasOwnProperty("expireTime") && ("number" == typeof e.expireTime ? n.expireTime = t.longs === String ? String(e.expireTime) : e.expireTime : n.expireTime = t.longs === String ? a.Long.prototype.toString.call(e.expireTime) : t.longs === Number ? new a.LongBits(e.expireTime.low >>> 0, e.expireTime.high >>> 0).toNumber() : e.expireTime), null != e.status && e.hasOwnProperty("status") && ("number" == typeof e.status ? n.status = t.longs === String ? String(e.status) : e.status : n.status = t.longs === String ? a.Long.prototype.toString.call(e.status) : t.longs === Number ? new a.LongBits(e.status.low >>> 0, e.status.high >>> 0).toNumber() : e.status), null != e.roomId && e.hasOwnProperty("roomId") && ("number" == typeof e.roomId ? n.roomId = t.longs === String ? String(e.roomId) : e.roomId : n.roomId = t.longs === String ? a.Long.prototype.toString.call(e.roomId) : t.longs === Number ? new a.LongBits(e.roomId.low >>> 0, e.roomId.high >>> 0).toNumber() : e.roomId), null != e.idStr && e.hasOwnProperty("idStr") && (n.idStr = e.idStr), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.InvitationSwitch = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.gameKind = 0, e.prototype.gameId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.playKind = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.status = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.message = "", e.prototype.extraBase = null, e.prototype.extraForOpen = null, e.prototype.idStr = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(8).int64(e.id), null != e.gameKind && Object.hasOwnProperty.call(e, "gameKind") && t.uint32(16).int32(e.gameKind), null != e.gameId && Object.hasOwnProperty.call(e, "gameId") && t.uint32(24).int64(e.gameId), null != e.playKind && Object.hasOwnProperty.call(e, "playKind") && t.uint32(32).int64(e.playKind), null != e.status && Object.hasOwnProperty.call(e, "status") && t.uint32(40).int64(e.status), null != e.message && Object.hasOwnProperty.call(e, "message") && t.uint32(50).string(e.message), null != e.extraBase && Object.hasOwnProperty.call(e, "extraBase") && l.webcast.data.SwitchExtraBase.encode(e.extraBase, t.uint32(58).fork()).ldelim(), null != e.extraForOpen && Object.hasOwnProperty.call(e, "extraForOpen") && l.webcast.data.SwitchExtraForOpen.encode(e.extraForOpen, t.uint32(66).fork()).ldelim(), null != e.idStr && Object.hasOwnProperty.call(e, "idStr") && t.uint32(74).string(e.idStr), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.InvitationSwitch; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.id = e.int64(); + break; + case 2: + r.gameKind = e.int32(); + break; + case 3: + r.gameId = e.int64(); + break; + case 4: + r.playKind = e.int64(); + break; + case 5: + r.status = e.int64(); + break; + case 6: + r.message = e.string(); + break; + case 7: + r.extraBase = l.webcast.data.SwitchExtraBase.decode(e, e.uint32()); + break; + case 8: + r.extraForOpen = l.webcast.data.SwitchExtraForOpen.decode(e, e.uint32()); + break; + case 9: + r.idStr = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high))) return "id: integer|Long expected"; + if (null != e.gameKind && e.hasOwnProperty("gameKind")) switch (e.gameKind) + { + default: + return "gameKind: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + } + if (null != e.gameId && e.hasOwnProperty("gameId") && !(a.isInteger(e.gameId) || e.gameId && a.isInteger(e.gameId.low) && a.isInteger(e.gameId.high))) return "gameId: integer|Long expected"; + if (null != e.playKind && e.hasOwnProperty("playKind") && !(a.isInteger(e.playKind) || e.playKind && a.isInteger(e.playKind.low) && a.isInteger(e.playKind.high))) return "playKind: integer|Long expected"; + if (null != e.status && e.hasOwnProperty("status") && !(a.isInteger(e.status) || e.status && a.isInteger(e.status.low) && a.isInteger(e.status.high))) return "status: integer|Long expected"; + if (null != e.message && e.hasOwnProperty("message") && !a.isString(e.message)) return "message: string expected"; + var t; + if (null != e.extraBase && e.hasOwnProperty("extraBase") && (t = l.webcast.data.SwitchExtraBase.verify(e.extraBase))) return "extraBase." + t; + if (null != e.extraForOpen && e.hasOwnProperty("extraForOpen") && (t = l.webcast.data.SwitchExtraForOpen.verify(e.extraForOpen))) return "extraForOpen." + t; + return null != e.idStr && e.hasOwnProperty("idStr") && !a.isString(e.idStr) ? "idStr: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.InvitationSwitch) return e; + var t = new l.webcast.data.InvitationSwitch; + switch (null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), e.gameKind) + { + case "GameKindUnknown": + case 0: + t.gameKind = 0; + break; + case "Effect": + case 1: + t.gameKind = 1; + break; + case "Wmini": + case 2: + t.gameKind = 2; + break; + case "Wgamex": + case 3: + t.gameKind = 3; + break; + case "Cloud": + case 4: + t.gameKind = 4 + } + if (null != e.gameId && (a.Long ? (t.gameId = a.Long.fromValue(e.gameId)).unsigned = !1 : "string" == typeof e.gameId ? t.gameId = parseInt(e.gameId, 10) : "number" == typeof e.gameId ? t.gameId = e.gameId : "object" == typeof e.gameId && (t.gameId = new a.LongBits(e.gameId.low >>> 0, e.gameId.high >>> 0).toNumber())), null != e.playKind && (a.Long ? (t.playKind = a.Long.fromValue(e.playKind)).unsigned = !1 : "string" == typeof e.playKind ? t.playKind = parseInt(e.playKind, 10) : "number" == typeof e.playKind ? t.playKind = e.playKind : "object" == typeof e.playKind && (t.playKind = new a.LongBits(e.playKind.low >>> 0, e.playKind.high >>> 0).toNumber())), null != e.status && (a.Long ? (t.status = a.Long.fromValue(e.status)).unsigned = !1 : "string" == typeof e.status ? t.status = parseInt(e.status, 10) : "number" == typeof e.status ? t.status = e.status : "object" == typeof e.status && (t.status = new a.LongBits(e.status.low >>> 0, e.status.high >>> 0).toNumber())), null != e.message && (t.message = String(e.message)), null != e.extraBase) + { + if ("object" != typeof e.extraBase) throw TypeError(".webcast.data.InvitationSwitch.extraBase: object expected"); + t.extraBase = l.webcast.data.SwitchExtraBase.fromObject(e.extraBase) + } + if (null != e.extraForOpen) + { + if ("object" != typeof e.extraForOpen) throw TypeError(".webcast.data.InvitationSwitch.extraForOpen: object expected"); + t.extraForOpen = l.webcast.data.SwitchExtraForOpen.fromObject(e.extraForOpen) + } + return null != e.idStr && (t.idStr = String(e.idStr)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.id = t.longs === String ? "0" : 0; + if (n.gameKind = t.enums === String ? "GameKindUnknown" : 0, a.Long) + { + r = new a.Long(0, 0, !1); + n.gameId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.gameId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.playKind = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.playKind = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.status = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.status = t.longs === String ? "0" : 0; + n.message = "", n.extraBase = null, n.extraForOpen = null, n.idStr = "" + } + return null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? n.id = t.longs === String ? String(e.id) : e.id : n.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), null != e.gameKind && e.hasOwnProperty("gameKind") && (n.gameKind = t.enums === String ? l.webcast.data.GameKind[e.gameKind] : e.gameKind), null != e.gameId && e.hasOwnProperty("gameId") && ("number" == typeof e.gameId ? n.gameId = t.longs === String ? String(e.gameId) : e.gameId : n.gameId = t.longs === String ? a.Long.prototype.toString.call(e.gameId) : t.longs === Number ? new a.LongBits(e.gameId.low >>> 0, e.gameId.high >>> 0).toNumber() : e.gameId), null != e.playKind && e.hasOwnProperty("playKind") && ("number" == typeof e.playKind ? n.playKind = t.longs === String ? String(e.playKind) : e.playKind : n.playKind = t.longs === String ? a.Long.prototype.toString.call(e.playKind) : t.longs === Number ? new a.LongBits(e.playKind.low >>> 0, e.playKind.high >>> 0).toNumber() : e.playKind), null != e.status && e.hasOwnProperty("status") && ("number" == typeof e.status ? n.status = t.longs === String ? String(e.status) : e.status : n.status = t.longs === String ? a.Long.prototype.toString.call(e.status) : t.longs === Number ? new a.LongBits(e.status.low >>> 0, e.status.high >>> 0).toNumber() : e.status), null != e.message && e.hasOwnProperty("message") && (n.message = e.message), null != e.extraBase && e.hasOwnProperty("extraBase") && (n.extraBase = l.webcast.data.SwitchExtraBase.toObject(e.extraBase, t)), null != e.extraForOpen && e.hasOwnProperty("extraForOpen") && (n.extraForOpen = l.webcast.data.SwitchExtraForOpen.toObject(e.extraForOpen, t)), null != e.idStr && e.hasOwnProperty("idStr") && (n.idStr = e.idStr), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.GameKind = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "GameKindUnknown"] = 0, t[e[1] = "Effect"] = 1, t[e[2] = "Wmini"] = 2, t[e[3] = "Wgamex"] = 3, t[e[4] = "Cloud"] = 4, t + }(), e.GameInviteReply = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "Invalid"] = 0, t[e[1] = "Accept"] = 1, t[e[2] = "Reject"] = 2, t[e[3] = "Unsatisfied"] = 3, t[e[4] = "ResourceNotReady"] = 4, t + }(), e.VsEpisodeHighLight = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.location = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.description = "", e.prototype.image = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.location && Object.hasOwnProperty.call(e, "location") && t.uint32(8).int64(e.location), null != e.description && Object.hasOwnProperty.call(e, "description") && t.uint32(18).string(e.description), null != e.image && Object.hasOwnProperty.call(e, "image") && l.webcast.data.Image.encode(e.image, t.uint32(26).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.VsEpisodeHighLight; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.location = e.int64(); + break; + case 2: + r.description = e.string(); + break; + case 3: + r.image = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.location && e.hasOwnProperty("location") && !(a.isInteger(e.location) || e.location && a.isInteger(e.location.low) && a.isInteger(e.location.high))) return "location: integer|Long expected"; + if (null != e.description && e.hasOwnProperty("description") && !a.isString(e.description)) return "description: string expected"; + if (null != e.image && e.hasOwnProperty("image")) + { + var t = l.webcast.data.Image.verify(e.image); + if (t) return "image." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.VsEpisodeHighLight) return e; + var t = new l.webcast.data.VsEpisodeHighLight; + if (null != e.location && (a.Long ? (t.location = a.Long.fromValue(e.location)).unsigned = !1 : "string" == typeof e.location ? t.location = parseInt(e.location, 10) : "number" == typeof e.location ? t.location = e.location : "object" == typeof e.location && (t.location = new a.LongBits(e.location.low >>> 0, e.location.high >>> 0).toNumber())), null != e.description && (t.description = String(e.description)), null != e.image) + { + if ("object" != typeof e.image) throw TypeError(".webcast.data.VsEpisodeHighLight.image: object expected"); + t.image = l.webcast.data.Image.fromObject(e.image) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.location = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.location = t.longs === String ? "0" : 0; + n.description = "", n.image = null + } + return null != e.location && e.hasOwnProperty("location") && ("number" == typeof e.location ? n.location = t.longs === String ? String(e.location) : e.location : n.location = t.longs === String ? a.Long.prototype.toString.call(e.location) : t.longs === Number ? new a.LongBits(e.location.low >>> 0, e.location.high >>> 0).toNumber() : e.location), null != e.description && e.hasOwnProperty("description") && (n.description = e.description), null != e.image && e.hasOwnProperty("image") && (n.image = l.webcast.data.Image.toObject(e.image, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EpisodePremierePlay = function () + { + function e(e) + { + if (this.highlights = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.highlights = a.emptyArray, e.prototype.playType = 0, e.prototype.startTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.highlights && e.highlights.length) + for (var n = 0; n < e.highlights.length; ++n) l.webcast.data.VsEpisodeHighLight.encode(e.highlights[n], t.uint32(10).fork()).ldelim(); + return null != e.playType && Object.hasOwnProperty.call(e, "playType") && t.uint32(16).int32(e.playType), null != e.startTime && Object.hasOwnProperty.call(e, "startTime") && t.uint32(24).int64(e.startTime), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EpisodePremierePlay; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.highlights && r.highlights.length || (r.highlights = []), r.highlights.push(l.webcast.data.VsEpisodeHighLight.decode(e, e.uint32())); + break; + case 2: + r.playType = e.int32(); + break; + case 3: + r.startTime = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.highlights && e.hasOwnProperty("highlights")) + { + if (!Array.isArray(e.highlights)) return "highlights: array expected"; + for (var t = 0; t < e.highlights.length; ++t) + { + var n = l.webcast.data.VsEpisodeHighLight.verify(e.highlights[t]); + if (n) return "highlights." + n + } + } + if (null != e.playType && e.hasOwnProperty("playType")) switch (e.playType) + { + default: + return "playType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + } + return null != e.startTime && e.hasOwnProperty("startTime") && !(a.isInteger(e.startTime) || e.startTime && a.isInteger(e.startTime.low) && a.isInteger(e.startTime.high)) ? "startTime: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EpisodePremierePlay) return e; + var t = new l.webcast.data.EpisodePremierePlay; + if (e.highlights) + { + if (!Array.isArray(e.highlights)) throw TypeError(".webcast.data.EpisodePremierePlay.highlights: array expected"); + t.highlights = []; + for (var n = 0; n < e.highlights.length; ++n) + { + if ("object" != typeof e.highlights[n]) throw TypeError(".webcast.data.EpisodePremierePlay.highlights: object expected"); + t.highlights[n] = l.webcast.data.VsEpisodeHighLight.fromObject(e.highlights[n]) + } + } + switch (e.playType) + { + case "episodePlayUnknown": + case 0: + t.playType = 0; + break; + case "episodePlayReal": + case 1: + t.playType = 1; + break; + case "episodePlayStart": + case 2: + t.playType = 2; + break; + case "episodePlayHighlight0": + case 3: + t.playType = 3; + break; + case "episodePlayHighlightRandom": + case 4: + t.playType = 4 + } + return null != e.startTime && (a.Long ? (t.startTime = a.Long.fromValue(e.startTime)).unsigned = !1 : "string" == typeof e.startTime ? t.startTime = parseInt(e.startTime, 10) : "number" == typeof e.startTime ? t.startTime = e.startTime : "object" == typeof e.startTime && (t.startTime = new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.highlights = []), t.defaults) + if (n.playType = t.enums === String ? "episodePlayUnknown" : 0, a.Long) + { + var r = new a.Long(0, 0, !1); + n.startTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.startTime = t.longs === String ? "0" : 0; + if (e.highlights && e.highlights.length) + { + n.highlights = []; + for (var o = 0; o < e.highlights.length; ++o) n.highlights[o] = l.webcast.data.VsEpisodeHighLight.toObject(e.highlights[o], t) + } + return null != e.playType && e.hasOwnProperty("playType") && (n.playType = t.enums === String ? l.webcast.data.EpisodePremierePlayType[e.playType] : e.playType), null != e.startTime && e.hasOwnProperty("startTime") && ("number" == typeof e.startTime ? n.startTime = t.longs === String ? String(e.startTime) : e.startTime : n.startTime = t.longs === String ? a.Long.prototype.toString.call(e.startTime) : t.longs === Number ? new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber() : e.startTime), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EpisodePremierePlayType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "episodePlayUnknown"] = 0, t[e[1] = "episodePlayReal"] = 1, t[e[2] = "episodePlayStart"] = 2, t[e[3] = "episodePlayHighlight0"] = 3, t[e[4] = "episodePlayHighlightRandom"] = 4, t + }(), e.EpisodePreviewType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "episodePreviewUnknown"] = 0, t[e[1] = "episodePreviewOld"] = 1, t[e[2] = "episodePreviewNew"] = 2, t[e[3] = "episodePreviewGeneral"] = 3, t + }(), e.EpisodePreviewImage = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.previewUriUp = null, e.prototype.previewUriDown = null, e.prototype.previewType = 0, e.prototype.previewWordUp = "", e.prototype.previewWordDown = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.previewUriUp && Object.hasOwnProperty.call(e, "previewUriUp") && l.webcast.data.Image.encode(e.previewUriUp, t.uint32(10).fork()).ldelim(), null != e.previewUriDown && Object.hasOwnProperty.call(e, "previewUriDown") && l.webcast.data.Image.encode(e.previewUriDown, t.uint32(18).fork()).ldelim(), null != e.previewType && Object.hasOwnProperty.call(e, "previewType") && t.uint32(24).int32(e.previewType), null != e.previewWordUp && Object.hasOwnProperty.call(e, "previewWordUp") && t.uint32(34).string(e.previewWordUp), null != e.previewWordDown && Object.hasOwnProperty.call(e, "previewWordDown") && t.uint32(42).string(e.previewWordDown), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EpisodePreviewImage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.previewUriUp = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.previewUriDown = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 3: + r.previewType = e.int32(); + break; + case 4: + r.previewWordUp = e.string(); + break; + case 5: + r.previewWordDown = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.previewUriUp && e.hasOwnProperty("previewUriUp") && (t = l.webcast.data.Image.verify(e.previewUriUp))) return "previewUriUp." + t; + if (null != e.previewUriDown && e.hasOwnProperty("previewUriDown") && (t = l.webcast.data.Image.verify(e.previewUriDown))) return "previewUriDown." + t; + if (null != e.previewType && e.hasOwnProperty("previewType")) switch (e.previewType) + { + default: + return "previewType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + } + return null != e.previewWordUp && e.hasOwnProperty("previewWordUp") && !a.isString(e.previewWordUp) ? "previewWordUp: string expected" : null != e.previewWordDown && e.hasOwnProperty("previewWordDown") && !a.isString(e.previewWordDown) ? "previewWordDown: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EpisodePreviewImage) return e; + var t = new l.webcast.data.EpisodePreviewImage; + if (null != e.previewUriUp) + { + if ("object" != typeof e.previewUriUp) throw TypeError(".webcast.data.EpisodePreviewImage.previewUriUp: object expected"); + t.previewUriUp = l.webcast.data.Image.fromObject(e.previewUriUp) + } + if (null != e.previewUriDown) + { + if ("object" != typeof e.previewUriDown) throw TypeError(".webcast.data.EpisodePreviewImage.previewUriDown: object expected"); + t.previewUriDown = l.webcast.data.Image.fromObject(e.previewUriDown) + } + switch (e.previewType) + { + case "episodePreviewUnknown": + case 0: + t.previewType = 0; + break; + case "episodePreviewOld": + case 1: + t.previewType = 1; + break; + case "episodePreviewNew": + case 2: + t.previewType = 2; + break; + case "episodePreviewGeneral": + case 3: + t.previewType = 3 + } + return null != e.previewWordUp && (t.previewWordUp = String(e.previewWordUp)), null != e.previewWordDown && (t.previewWordDown = String(e.previewWordDown)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.previewUriUp = null, n.previewUriDown = null, n.previewType = t.enums === String ? "episodePreviewUnknown" : 0, n.previewWordUp = "", n.previewWordDown = ""), null != e.previewUriUp && e.hasOwnProperty("previewUriUp") && (n.previewUriUp = l.webcast.data.Image.toObject(e.previewUriUp, t)), null != e.previewUriDown && e.hasOwnProperty("previewUriDown") && (n.previewUriDown = l.webcast.data.Image.toObject(e.previewUriDown, t)), null != e.previewType && e.hasOwnProperty("previewType") && (n.previewType = t.enums === String ? l.webcast.data.EpisodePreviewType[e.previewType] : e.previewType), null != e.previewWordUp && e.hasOwnProperty("previewWordUp") && (n.previewWordUp = e.previewWordUp), null != e.previewWordDown && e.hasOwnProperty("previewWordDown") && (n.previewWordDown = e.previewWordDown), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.VSGiftPannel = function () + { + function e(e) + { + if (this.backgroundColors = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.backgroundColors = a.emptyArray, e.prototype.background = null, e.prototype.selected = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.backgroundColors && e.backgroundColors.length) + for (var n = 0; n < e.backgroundColors.length; ++n) t.uint32(10).string(e.backgroundColors[n]); + return null != e.background && Object.hasOwnProperty.call(e, "background") && l.webcast.data.Image.encode(e.background, t.uint32(18).fork()).ldelim(), null != e.selected && Object.hasOwnProperty.call(e, "selected") && l.webcast.data.Image.encode(e.selected, t.uint32(26).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.VSGiftPannel; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.backgroundColors && r.backgroundColors.length || (r.backgroundColors = []), r.backgroundColors.push(e.string()); + break; + case 2: + r.background = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 3: + r.selected = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.backgroundColors && e.hasOwnProperty("backgroundColors")) + { + if (!Array.isArray(e.backgroundColors)) return "backgroundColors: array expected"; + for (var t = 0; t < e.backgroundColors.length; ++t) + if (!a.isString(e.backgroundColors[t])) return "backgroundColors: string[] expected" + } + var n; + if (null != e.background && e.hasOwnProperty("background") && (n = l.webcast.data.Image.verify(e.background))) return "background." + n; + if (null != e.selected && e.hasOwnProperty("selected") && (n = l.webcast.data.Image.verify(e.selected))) return "selected." + n; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.VSGiftPannel) return e; + var t = new l.webcast.data.VSGiftPannel; + if (e.backgroundColors) + { + if (!Array.isArray(e.backgroundColors)) throw TypeError(".webcast.data.VSGiftPannel.backgroundColors: array expected"); + t.backgroundColors = []; + for (var n = 0; n < e.backgroundColors.length; ++n) t.backgroundColors[n] = String(e.backgroundColors[n]) + } + if (null != e.background) + { + if ("object" != typeof e.background) throw TypeError(".webcast.data.VSGiftPannel.background: object expected"); + t.background = l.webcast.data.Image.fromObject(e.background) + } + if (null != e.selected) + { + if ("object" != typeof e.selected) throw TypeError(".webcast.data.VSGiftPannel.selected: object expected"); + t.selected = l.webcast.data.Image.fromObject(e.selected) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.backgroundColors = []), t.defaults && (n.background = null, n.selected = null), e.backgroundColors && e.backgroundColors.length) + { + n.backgroundColors = []; + for (var r = 0; r < e.backgroundColors.length; ++r) n.backgroundColors[r] = e.backgroundColors[r] + } + return null != e.background && e.hasOwnProperty("background") && (n.background = l.webcast.data.Image.toObject(e.background, t)), null != e.selected && e.hasOwnProperty("selected") && (n.selected = l.webcast.data.Image.toObject(e.selected, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EpisodePreviewBottom = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.watchPeriodStr = "", e.prototype.latestPeriodStr = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.watchPeriodStr && Object.hasOwnProperty.call(e, "watchPeriodStr") && t.uint32(10).string(e.watchPeriodStr), null != e.latestPeriodStr && Object.hasOwnProperty.call(e, "latestPeriodStr") && t.uint32(18).string(e.latestPeriodStr), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EpisodePreviewBottom; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.watchPeriodStr = e.string(); + break; + case 2: + r.latestPeriodStr = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.watchPeriodStr && e.hasOwnProperty("watchPeriodStr") && !a.isString(e.watchPeriodStr) ? "watchPeriodStr: string expected" : null != e.latestPeriodStr && e.hasOwnProperty("latestPeriodStr") && !a.isString(e.latestPeriodStr) ? "latestPeriodStr: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EpisodePreviewBottom) return e; + var t = new l.webcast.data.EpisodePreviewBottom; + return null != e.watchPeriodStr && (t.watchPeriodStr = String(e.watchPeriodStr)), null != e.latestPeriodStr && (t.latestPeriodStr = String(e.latestPeriodStr)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.watchPeriodStr = "", n.latestPeriodStr = ""), null != e.watchPeriodStr && e.hasOwnProperty("watchPeriodStr") && (n.watchPeriodStr = e.watchPeriodStr), null != e.latestPeriodStr && e.hasOwnProperty("latestPeriodStr") && (n.latestPeriodStr = e.latestPeriodStr), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.VSPannelIcon = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.spLandscapeIcon = null, e.prototype.spVerticalIcon = null, e.prototype.landscapeVerticalSwitchIcon = null, e.prototype.lockScreenIcon = null, e.prototype.landscapeMoreIcon = null, e.prototype.verticalMoreIcon = null, e.prototype.landscapeCommentIcon = null, e.prototype.verticalCommentIcon = null, e.prototype.verticalLandscapeSwitchIcon = null, e.prototype.verticalLockScreenIcon = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.spLandscapeIcon && Object.hasOwnProperty.call(e, "spLandscapeIcon") && l.webcast.data.Image.encode(e.spLandscapeIcon, t.uint32(10).fork()).ldelim(), null != e.spVerticalIcon && Object.hasOwnProperty.call(e, "spVerticalIcon") && l.webcast.data.Image.encode(e.spVerticalIcon, t.uint32(18).fork()).ldelim(), null != e.landscapeVerticalSwitchIcon && Object.hasOwnProperty.call(e, "landscapeVerticalSwitchIcon") && l.webcast.data.Image.encode(e.landscapeVerticalSwitchIcon, t.uint32(26).fork()).ldelim(), null != e.lockScreenIcon && Object.hasOwnProperty.call(e, "lockScreenIcon") && l.webcast.data.Image.encode(e.lockScreenIcon, t.uint32(34).fork()).ldelim(), null != e.landscapeMoreIcon && Object.hasOwnProperty.call(e, "landscapeMoreIcon") && l.webcast.data.Image.encode(e.landscapeMoreIcon, t.uint32(74).fork()).ldelim(), null != e.verticalMoreIcon && Object.hasOwnProperty.call(e, "verticalMoreIcon") && l.webcast.data.Image.encode(e.verticalMoreIcon, t.uint32(82).fork()).ldelim(), null != e.landscapeCommentIcon && Object.hasOwnProperty.call(e, "landscapeCommentIcon") && l.webcast.data.Image.encode(e.landscapeCommentIcon, t.uint32(90).fork()).ldelim(), null != e.verticalCommentIcon && Object.hasOwnProperty.call(e, "verticalCommentIcon") && l.webcast.data.Image.encode(e.verticalCommentIcon, t.uint32(98).fork()).ldelim(), null != e.verticalLandscapeSwitchIcon && Object.hasOwnProperty.call(e, "verticalLandscapeSwitchIcon") && l.webcast.data.Image.encode(e.verticalLandscapeSwitchIcon, t.uint32(106).fork()).ldelim(), null != e.verticalLockScreenIcon && Object.hasOwnProperty.call(e, "verticalLockScreenIcon") && l.webcast.data.Image.encode(e.verticalLockScreenIcon, t.uint32(114).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.VSPannelIcon; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.spLandscapeIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.spVerticalIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 3: + r.landscapeVerticalSwitchIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 4: + r.lockScreenIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 9: + r.landscapeMoreIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 10: + r.verticalMoreIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 11: + r.landscapeCommentIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 12: + r.verticalCommentIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 13: + r.verticalLandscapeSwitchIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 14: + r.verticalLockScreenIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.spLandscapeIcon && e.hasOwnProperty("spLandscapeIcon") && (t = l.webcast.data.Image.verify(e.spLandscapeIcon))) return "spLandscapeIcon." + t; + if (null != e.spVerticalIcon && e.hasOwnProperty("spVerticalIcon") && (t = l.webcast.data.Image.verify(e.spVerticalIcon))) return "spVerticalIcon." + t; + if (null != e.landscapeVerticalSwitchIcon && e.hasOwnProperty("landscapeVerticalSwitchIcon") && (t = l.webcast.data.Image.verify(e.landscapeVerticalSwitchIcon))) return "landscapeVerticalSwitchIcon." + t; + if (null != e.lockScreenIcon && e.hasOwnProperty("lockScreenIcon") && (t = l.webcast.data.Image.verify(e.lockScreenIcon))) return "lockScreenIcon." + t; + if (null != e.landscapeMoreIcon && e.hasOwnProperty("landscapeMoreIcon") && (t = l.webcast.data.Image.verify(e.landscapeMoreIcon))) return "landscapeMoreIcon." + t; + if (null != e.verticalMoreIcon && e.hasOwnProperty("verticalMoreIcon") && (t = l.webcast.data.Image.verify(e.verticalMoreIcon))) return "verticalMoreIcon." + t; + if (null != e.landscapeCommentIcon && e.hasOwnProperty("landscapeCommentIcon") && (t = l.webcast.data.Image.verify(e.landscapeCommentIcon))) return "landscapeCommentIcon." + t; + if (null != e.verticalCommentIcon && e.hasOwnProperty("verticalCommentIcon") && (t = l.webcast.data.Image.verify(e.verticalCommentIcon))) return "verticalCommentIcon." + t; + if (null != e.verticalLandscapeSwitchIcon && e.hasOwnProperty("verticalLandscapeSwitchIcon") && (t = l.webcast.data.Image.verify(e.verticalLandscapeSwitchIcon))) return "verticalLandscapeSwitchIcon." + t; + if (null != e.verticalLockScreenIcon && e.hasOwnProperty("verticalLockScreenIcon") && (t = l.webcast.data.Image.verify(e.verticalLockScreenIcon))) return "verticalLockScreenIcon." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.VSPannelIcon) return e; + var t = new l.webcast.data.VSPannelIcon; + if (null != e.spLandscapeIcon) + { + if ("object" != typeof e.spLandscapeIcon) throw TypeError(".webcast.data.VSPannelIcon.spLandscapeIcon: object expected"); + t.spLandscapeIcon = l.webcast.data.Image.fromObject(e.spLandscapeIcon) + } + if (null != e.spVerticalIcon) + { + if ("object" != typeof e.spVerticalIcon) throw TypeError(".webcast.data.VSPannelIcon.spVerticalIcon: object expected"); + t.spVerticalIcon = l.webcast.data.Image.fromObject(e.spVerticalIcon) + } + if (null != e.landscapeVerticalSwitchIcon) + { + if ("object" != typeof e.landscapeVerticalSwitchIcon) throw TypeError(".webcast.data.VSPannelIcon.landscapeVerticalSwitchIcon: object expected"); + t.landscapeVerticalSwitchIcon = l.webcast.data.Image.fromObject(e.landscapeVerticalSwitchIcon) + } + if (null != e.lockScreenIcon) + { + if ("object" != typeof e.lockScreenIcon) throw TypeError(".webcast.data.VSPannelIcon.lockScreenIcon: object expected"); + t.lockScreenIcon = l.webcast.data.Image.fromObject(e.lockScreenIcon) + } + if (null != e.landscapeMoreIcon) + { + if ("object" != typeof e.landscapeMoreIcon) throw TypeError(".webcast.data.VSPannelIcon.landscapeMoreIcon: object expected"); + t.landscapeMoreIcon = l.webcast.data.Image.fromObject(e.landscapeMoreIcon) + } + if (null != e.verticalMoreIcon) + { + if ("object" != typeof e.verticalMoreIcon) throw TypeError(".webcast.data.VSPannelIcon.verticalMoreIcon: object expected"); + t.verticalMoreIcon = l.webcast.data.Image.fromObject(e.verticalMoreIcon) + } + if (null != e.landscapeCommentIcon) + { + if ("object" != typeof e.landscapeCommentIcon) throw TypeError(".webcast.data.VSPannelIcon.landscapeCommentIcon: object expected"); + t.landscapeCommentIcon = l.webcast.data.Image.fromObject(e.landscapeCommentIcon) + } + if (null != e.verticalCommentIcon) + { + if ("object" != typeof e.verticalCommentIcon) throw TypeError(".webcast.data.VSPannelIcon.verticalCommentIcon: object expected"); + t.verticalCommentIcon = l.webcast.data.Image.fromObject(e.verticalCommentIcon) + } + if (null != e.verticalLandscapeSwitchIcon) + { + if ("object" != typeof e.verticalLandscapeSwitchIcon) throw TypeError(".webcast.data.VSPannelIcon.verticalLandscapeSwitchIcon: object expected"); + t.verticalLandscapeSwitchIcon = l.webcast.data.Image.fromObject(e.verticalLandscapeSwitchIcon) + } + if (null != e.verticalLockScreenIcon) + { + if ("object" != typeof e.verticalLockScreenIcon) throw TypeError(".webcast.data.VSPannelIcon.verticalLockScreenIcon: object expected"); + t.verticalLockScreenIcon = l.webcast.data.Image.fromObject(e.verticalLockScreenIcon) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.spLandscapeIcon = null, n.spVerticalIcon = null, n.landscapeVerticalSwitchIcon = null, n.lockScreenIcon = null, n.landscapeMoreIcon = null, n.verticalMoreIcon = null, n.landscapeCommentIcon = null, n.verticalCommentIcon = null, n.verticalLandscapeSwitchIcon = null, n.verticalLockScreenIcon = null), null != e.spLandscapeIcon && e.hasOwnProperty("spLandscapeIcon") && (n.spLandscapeIcon = l.webcast.data.Image.toObject(e.spLandscapeIcon, t)), null != e.spVerticalIcon && e.hasOwnProperty("spVerticalIcon") && (n.spVerticalIcon = l.webcast.data.Image.toObject(e.spVerticalIcon, t)), null != e.landscapeVerticalSwitchIcon && e.hasOwnProperty("landscapeVerticalSwitchIcon") && (n.landscapeVerticalSwitchIcon = l.webcast.data.Image.toObject(e.landscapeVerticalSwitchIcon, t)), null != e.lockScreenIcon && e.hasOwnProperty("lockScreenIcon") && (n.lockScreenIcon = l.webcast.data.Image.toObject(e.lockScreenIcon, t)), null != e.landscapeMoreIcon && e.hasOwnProperty("landscapeMoreIcon") && (n.landscapeMoreIcon = l.webcast.data.Image.toObject(e.landscapeMoreIcon, t)), null != e.verticalMoreIcon && e.hasOwnProperty("verticalMoreIcon") && (n.verticalMoreIcon = l.webcast.data.Image.toObject(e.verticalMoreIcon, t)), null != e.landscapeCommentIcon && e.hasOwnProperty("landscapeCommentIcon") && (n.landscapeCommentIcon = l.webcast.data.Image.toObject(e.landscapeCommentIcon, t)), null != e.verticalCommentIcon && e.hasOwnProperty("verticalCommentIcon") && (n.verticalCommentIcon = l.webcast.data.Image.toObject(e.verticalCommentIcon, t)), null != e.verticalLandscapeSwitchIcon && e.hasOwnProperty("verticalLandscapeSwitchIcon") && (n.verticalLandscapeSwitchIcon = l.webcast.data.Image.toObject(e.verticalLandscapeSwitchIcon, t)), null != e.verticalLockScreenIcon && e.hasOwnProperty("verticalLockScreenIcon") && (n.verticalLockScreenIcon = l.webcast.data.Image.toObject(e.verticalLockScreenIcon, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.StageStruct = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.title = "", e.prototype.desc = "", e.prototype.iconUrlLock = "", e.prototype.iconUrlUnlock = "", e.prototype.type = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.subType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.unlockCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.giftExtra = null, e.prototype.shootExtra = null, e.prototype.posterExtra = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.title && Object.hasOwnProperty.call(e, "title") && t.uint32(10).string(e.title), null != e.desc && Object.hasOwnProperty.call(e, "desc") && t.uint32(18).string(e.desc), null != e.iconUrlLock && Object.hasOwnProperty.call(e, "iconUrlLock") && t.uint32(26).string(e.iconUrlLock), null != e.iconUrlUnlock && Object.hasOwnProperty.call(e, "iconUrlUnlock") && t.uint32(34).string(e.iconUrlUnlock), null != e.type && Object.hasOwnProperty.call(e, "type") && t.uint32(40).int64(e.type), null != e.subType && Object.hasOwnProperty.call(e, "subType") && t.uint32(48).int64(e.subType), null != e.unlockCount && Object.hasOwnProperty.call(e, "unlockCount") && t.uint32(56).int64(e.unlockCount), null != e.giftExtra && Object.hasOwnProperty.call(e, "giftExtra") && l.webcast.data.HiddenGiftExtra.encode(e.giftExtra, t.uint32(66).fork()).ldelim(), null != e.shootExtra && Object.hasOwnProperty.call(e, "shootExtra") && l.webcast.data.ShootExtra.encode(e.shootExtra, t.uint32(74).fork()).ldelim(), null != e.posterExtra && Object.hasOwnProperty.call(e, "posterExtra") && l.webcast.data.PosterExtra.encode(e.posterExtra, t.uint32(82).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.StageStruct; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.title = e.string(); + break; + case 2: + r.desc = e.string(); + break; + case 3: + r.iconUrlLock = e.string(); + break; + case 4: + r.iconUrlUnlock = e.string(); + break; + case 5: + r.type = e.int64(); + break; + case 6: + r.subType = e.int64(); + break; + case 7: + r.unlockCount = e.int64(); + break; + case 8: + r.giftExtra = l.webcast.data.HiddenGiftExtra.decode(e, e.uint32()); + break; + case 9: + r.shootExtra = l.webcast.data.ShootExtra.decode(e, e.uint32()); + break; + case 10: + r.posterExtra = l.webcast.data.PosterExtra.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.title && e.hasOwnProperty("title") && !a.isString(e.title)) return "title: string expected"; + if (null != e.desc && e.hasOwnProperty("desc") && !a.isString(e.desc)) return "desc: string expected"; + if (null != e.iconUrlLock && e.hasOwnProperty("iconUrlLock") && !a.isString(e.iconUrlLock)) return "iconUrlLock: string expected"; + if (null != e.iconUrlUnlock && e.hasOwnProperty("iconUrlUnlock") && !a.isString(e.iconUrlUnlock)) return "iconUrlUnlock: string expected"; + if (null != e.type && e.hasOwnProperty("type") && !(a.isInteger(e.type) || e.type && a.isInteger(e.type.low) && a.isInteger(e.type.high))) return "type: integer|Long expected"; + if (null != e.subType && e.hasOwnProperty("subType") && !(a.isInteger(e.subType) || e.subType && a.isInteger(e.subType.low) && a.isInteger(e.subType.high))) return "subType: integer|Long expected"; + if (null != e.unlockCount && e.hasOwnProperty("unlockCount") && !(a.isInteger(e.unlockCount) || e.unlockCount && a.isInteger(e.unlockCount.low) && a.isInteger(e.unlockCount.high))) return "unlockCount: integer|Long expected"; + var t; + if (null != e.giftExtra && e.hasOwnProperty("giftExtra") && (t = l.webcast.data.HiddenGiftExtra.verify(e.giftExtra))) return "giftExtra." + t; + if (null != e.shootExtra && e.hasOwnProperty("shootExtra") && (t = l.webcast.data.ShootExtra.verify(e.shootExtra))) return "shootExtra." + t; + if (null != e.posterExtra && e.hasOwnProperty("posterExtra") && (t = l.webcast.data.PosterExtra.verify(e.posterExtra))) return "posterExtra." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.StageStruct) return e; + var t = new l.webcast.data.StageStruct; + if (null != e.title && (t.title = String(e.title)), null != e.desc && (t.desc = String(e.desc)), null != e.iconUrlLock && (t.iconUrlLock = String(e.iconUrlLock)), null != e.iconUrlUnlock && (t.iconUrlUnlock = String(e.iconUrlUnlock)), null != e.type && (a.Long ? (t.type = a.Long.fromValue(e.type)).unsigned = !1 : "string" == typeof e.type ? t.type = parseInt(e.type, 10) : "number" == typeof e.type ? t.type = e.type : "object" == typeof e.type && (t.type = new a.LongBits(e.type.low >>> 0, e.type.high >>> 0).toNumber())), null != e.subType && (a.Long ? (t.subType = a.Long.fromValue(e.subType)).unsigned = !1 : "string" == typeof e.subType ? t.subType = parseInt(e.subType, 10) : "number" == typeof e.subType ? t.subType = e.subType : "object" == typeof e.subType && (t.subType = new a.LongBits(e.subType.low >>> 0, e.subType.high >>> 0).toNumber())), null != e.unlockCount && (a.Long ? (t.unlockCount = a.Long.fromValue(e.unlockCount)).unsigned = !1 : "string" == typeof e.unlockCount ? t.unlockCount = parseInt(e.unlockCount, 10) : "number" == typeof e.unlockCount ? t.unlockCount = e.unlockCount : "object" == typeof e.unlockCount && (t.unlockCount = new a.LongBits(e.unlockCount.low >>> 0, e.unlockCount.high >>> 0).toNumber())), null != e.giftExtra) + { + if ("object" != typeof e.giftExtra) throw TypeError(".webcast.data.StageStruct.giftExtra: object expected"); + t.giftExtra = l.webcast.data.HiddenGiftExtra.fromObject(e.giftExtra) + } + if (null != e.shootExtra) + { + if ("object" != typeof e.shootExtra) throw TypeError(".webcast.data.StageStruct.shootExtra: object expected"); + t.shootExtra = l.webcast.data.ShootExtra.fromObject(e.shootExtra) + } + if (null != e.posterExtra) + { + if ("object" != typeof e.posterExtra) throw TypeError(".webcast.data.StageStruct.posterExtra: object expected"); + t.posterExtra = l.webcast.data.PosterExtra.fromObject(e.posterExtra) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.title = "", n.desc = "", n.iconUrlLock = "", n.iconUrlUnlock = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.type = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.type = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.subType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.subType = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.unlockCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.unlockCount = t.longs === String ? "0" : 0; + n.giftExtra = null, n.shootExtra = null, n.posterExtra = null + } + return null != e.title && e.hasOwnProperty("title") && (n.title = e.title), null != e.desc && e.hasOwnProperty("desc") && (n.desc = e.desc), null != e.iconUrlLock && e.hasOwnProperty("iconUrlLock") && (n.iconUrlLock = e.iconUrlLock), null != e.iconUrlUnlock && e.hasOwnProperty("iconUrlUnlock") && (n.iconUrlUnlock = e.iconUrlUnlock), null != e.type && e.hasOwnProperty("type") && ("number" == typeof e.type ? n.type = t.longs === String ? String(e.type) : e.type : n.type = t.longs === String ? a.Long.prototype.toString.call(e.type) : t.longs === Number ? new a.LongBits(e.type.low >>> 0, e.type.high >>> 0).toNumber() : e.type), null != e.subType && e.hasOwnProperty("subType") && ("number" == typeof e.subType ? n.subType = t.longs === String ? String(e.subType) : e.subType : n.subType = t.longs === String ? a.Long.prototype.toString.call(e.subType) : t.longs === Number ? new a.LongBits(e.subType.low >>> 0, e.subType.high >>> 0).toNumber() : e.subType), null != e.unlockCount && e.hasOwnProperty("unlockCount") && ("number" == typeof e.unlockCount ? n.unlockCount = t.longs === String ? String(e.unlockCount) : e.unlockCount : n.unlockCount = t.longs === String ? a.Long.prototype.toString.call(e.unlockCount) : t.longs === Number ? new a.LongBits(e.unlockCount.low >>> 0, e.unlockCount.high >>> 0).toNumber() : e.unlockCount), null != e.giftExtra && e.hasOwnProperty("giftExtra") && (n.giftExtra = l.webcast.data.HiddenGiftExtra.toObject(e.giftExtra, t)), null != e.shootExtra && e.hasOwnProperty("shootExtra") && (n.shootExtra = l.webcast.data.ShootExtra.toObject(e.shootExtra, t)), null != e.posterExtra && e.hasOwnProperty("posterExtra") && (n.posterExtra = l.webcast.data.PosterExtra.toObject(e.posterExtra, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.HiddenGiftExtra = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.giftId = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.giftId && Object.hasOwnProperty.call(e, "giftId") && t.uint32(10).string(e.giftId), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.HiddenGiftExtra; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.giftId = e.string(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.giftId && e.hasOwnProperty("giftId") && !a.isString(e.giftId) ? "giftId: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.HiddenGiftExtra) return e; + var t = new l.webcast.data.HiddenGiftExtra; + return null != e.giftId && (t.giftId = String(e.giftId)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.giftId = ""), null != e.giftId && e.hasOwnProperty("giftId") && (n.giftId = e.giftId), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ShootExtra = function () + { + function e(e) + { + if (this.text = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.shootTimes = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.text = a.emptyArray, e.prototype.assetId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.shootTimes && Object.hasOwnProperty.call(e, "shootTimes") && t.uint32(8).int64(e.shootTimes), null != e.text && e.text.length) + for (var n = 0; n < e.text.length; ++n) t.uint32(18).string(e.text[n]); + return null != e.assetId && Object.hasOwnProperty.call(e, "assetId") && t.uint32(24).int64(e.assetId), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ShootExtra; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.shootTimes = e.int64(); + break; + case 2: + r.text && r.text.length || (r.text = []), r.text.push(e.string()); + break; + case 3: + r.assetId = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.shootTimes && e.hasOwnProperty("shootTimes") && !(a.isInteger(e.shootTimes) || e.shootTimes && a.isInteger(e.shootTimes.low) && a.isInteger(e.shootTimes.high))) return "shootTimes: integer|Long expected"; + if (null != e.text && e.hasOwnProperty("text")) + { + if (!Array.isArray(e.text)) return "text: array expected"; + for (var t = 0; t < e.text.length; ++t) + if (!a.isString(e.text[t])) return "text: string[] expected" + } + return null != e.assetId && e.hasOwnProperty("assetId") && !(a.isInteger(e.assetId) || e.assetId && a.isInteger(e.assetId.low) && a.isInteger(e.assetId.high)) ? "assetId: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ShootExtra) return e; + var t = new l.webcast.data.ShootExtra; + if (null != e.shootTimes && (a.Long ? (t.shootTimes = a.Long.fromValue(e.shootTimes)).unsigned = !1 : "string" == typeof e.shootTimes ? t.shootTimes = parseInt(e.shootTimes, 10) : "number" == typeof e.shootTimes ? t.shootTimes = e.shootTimes : "object" == typeof e.shootTimes && (t.shootTimes = new a.LongBits(e.shootTimes.low >>> 0, e.shootTimes.high >>> 0).toNumber())), e.text) + { + if (!Array.isArray(e.text)) throw TypeError(".webcast.data.ShootExtra.text: array expected"); + t.text = []; + for (var n = 0; n < e.text.length; ++n) t.text[n] = String(e.text[n]) + } + return null != e.assetId && (a.Long ? (t.assetId = a.Long.fromValue(e.assetId)).unsigned = !1 : "string" == typeof e.assetId ? t.assetId = parseInt(e.assetId, 10) : "number" == typeof e.assetId ? t.assetId = e.assetId : "object" == typeof e.assetId && (t.assetId = new a.LongBits(e.assetId.low >>> 0, e.assetId.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.text = []), t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.shootTimes = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.shootTimes = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.assetId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.assetId = t.longs === String ? "0" : 0 + } + if (null != e.shootTimes && e.hasOwnProperty("shootTimes") && ("number" == typeof e.shootTimes ? n.shootTimes = t.longs === String ? String(e.shootTimes) : e.shootTimes : n.shootTimes = t.longs === String ? a.Long.prototype.toString.call(e.shootTimes) : t.longs === Number ? new a.LongBits(e.shootTimes.low >>> 0, e.shootTimes.high >>> 0).toNumber() : e.shootTimes), e.text && e.text.length) + { + n.text = []; + for (var o = 0; o < e.text.length; ++o) n.text[o] = e.text[o] + } + return null != e.assetId && e.hasOwnProperty("assetId") && ("number" == typeof e.assetId ? n.assetId = t.longs === String ? String(e.assetId) : e.assetId : n.assetId = t.longs === String ? a.Long.prototype.toString.call(e.assetId) : t.longs === Number ? new a.LongBits(e.assetId.low >>> 0, e.assetId.high >>> 0).toNumber() : e.assetId), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.PosterExtra = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.posterId = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.posterId && Object.hasOwnProperty.call(e, "posterId") && t.uint32(10).string(e.posterId), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.PosterExtra; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.posterId = e.string(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.posterId && e.hasOwnProperty("posterId") && !a.isString(e.posterId) ? "posterId: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.PosterExtra) return e; + var t = new l.webcast.data.PosterExtra; + return null != e.posterId && (t.posterId = String(e.posterId)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.posterId = ""), null != e.posterId && e.hasOwnProperty("posterId") && (n.posterId = e.posterId), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EasterEggData = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.hasEasterEgg = !1, e.prototype.stage = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.totalStage = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.effectsNum = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.startCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.endCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.count = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.panelUrl = "", e.prototype.entranceIcon = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.hasEasterEgg && Object.hasOwnProperty.call(e, "hasEasterEgg") && t.uint32(8).bool(e.hasEasterEgg), null != e.stage && Object.hasOwnProperty.call(e, "stage") && t.uint32(16).int64(e.stage), null != e.totalStage && Object.hasOwnProperty.call(e, "totalStage") && t.uint32(24).int64(e.totalStage), null != e.effectsNum && Object.hasOwnProperty.call(e, "effectsNum") && t.uint32(32).int64(e.effectsNum), null != e.startCount && Object.hasOwnProperty.call(e, "startCount") && t.uint32(40).int64(e.startCount), null != e.endCount && Object.hasOwnProperty.call(e, "endCount") && t.uint32(48).int64(e.endCount), null != e.count && Object.hasOwnProperty.call(e, "count") && t.uint32(56).int64(e.count), null != e.panelUrl && Object.hasOwnProperty.call(e, "panelUrl") && t.uint32(66).string(e.panelUrl), null != e.entranceIcon && Object.hasOwnProperty.call(e, "entranceIcon") && l.webcast.data.Image.encode(e.entranceIcon, t.uint32(74).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EasterEggData; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.hasEasterEgg = e.bool(); + break; + case 2: + r.stage = e.int64(); + break; + case 3: + r.totalStage = e.int64(); + break; + case 4: + r.effectsNum = e.int64(); + break; + case 5: + r.startCount = e.int64(); + break; + case 6: + r.endCount = e.int64(); + break; + case 7: + r.count = e.int64(); + break; + case 8: + r.panelUrl = e.string(); + break; + case 9: + r.entranceIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.hasEasterEgg && e.hasOwnProperty("hasEasterEgg") && "boolean" != typeof e.hasEasterEgg) return "hasEasterEgg: boolean expected"; + if (null != e.stage && e.hasOwnProperty("stage") && !(a.isInteger(e.stage) || e.stage && a.isInteger(e.stage.low) && a.isInteger(e.stage.high))) return "stage: integer|Long expected"; + if (null != e.totalStage && e.hasOwnProperty("totalStage") && !(a.isInteger(e.totalStage) || e.totalStage && a.isInteger(e.totalStage.low) && a.isInteger(e.totalStage.high))) return "totalStage: integer|Long expected"; + if (null != e.effectsNum && e.hasOwnProperty("effectsNum") && !(a.isInteger(e.effectsNum) || e.effectsNum && a.isInteger(e.effectsNum.low) && a.isInteger(e.effectsNum.high))) return "effectsNum: integer|Long expected"; + if (null != e.startCount && e.hasOwnProperty("startCount") && !(a.isInteger(e.startCount) || e.startCount && a.isInteger(e.startCount.low) && a.isInteger(e.startCount.high))) return "startCount: integer|Long expected"; + if (null != e.endCount && e.hasOwnProperty("endCount") && !(a.isInteger(e.endCount) || e.endCount && a.isInteger(e.endCount.low) && a.isInteger(e.endCount.high))) return "endCount: integer|Long expected"; + if (null != e.count && e.hasOwnProperty("count") && !(a.isInteger(e.count) || e.count && a.isInteger(e.count.low) && a.isInteger(e.count.high))) return "count: integer|Long expected"; + if (null != e.panelUrl && e.hasOwnProperty("panelUrl") && !a.isString(e.panelUrl)) return "panelUrl: string expected"; + if (null != e.entranceIcon && e.hasOwnProperty("entranceIcon")) + { + var t = l.webcast.data.Image.verify(e.entranceIcon); + if (t) return "entranceIcon." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EasterEggData) return e; + var t = new l.webcast.data.EasterEggData; + if (null != e.hasEasterEgg && (t.hasEasterEgg = Boolean(e.hasEasterEgg)), null != e.stage && (a.Long ? (t.stage = a.Long.fromValue(e.stage)).unsigned = !1 : "string" == typeof e.stage ? t.stage = parseInt(e.stage, 10) : "number" == typeof e.stage ? t.stage = e.stage : "object" == typeof e.stage && (t.stage = new a.LongBits(e.stage.low >>> 0, e.stage.high >>> 0).toNumber())), null != e.totalStage && (a.Long ? (t.totalStage = a.Long.fromValue(e.totalStage)).unsigned = !1 : "string" == typeof e.totalStage ? t.totalStage = parseInt(e.totalStage, 10) : "number" == typeof e.totalStage ? t.totalStage = e.totalStage : "object" == typeof e.totalStage && (t.totalStage = new a.LongBits(e.totalStage.low >>> 0, e.totalStage.high >>> 0).toNumber())), null != e.effectsNum && (a.Long ? (t.effectsNum = a.Long.fromValue(e.effectsNum)).unsigned = !1 : "string" == typeof e.effectsNum ? t.effectsNum = parseInt(e.effectsNum, 10) : "number" == typeof e.effectsNum ? t.effectsNum = e.effectsNum : "object" == typeof e.effectsNum && (t.effectsNum = new a.LongBits(e.effectsNum.low >>> 0, e.effectsNum.high >>> 0).toNumber())), null != e.startCount && (a.Long ? (t.startCount = a.Long.fromValue(e.startCount)).unsigned = !1 : "string" == typeof e.startCount ? t.startCount = parseInt(e.startCount, 10) : "number" == typeof e.startCount ? t.startCount = e.startCount : "object" == typeof e.startCount && (t.startCount = new a.LongBits(e.startCount.low >>> 0, e.startCount.high >>> 0).toNumber())), null != e.endCount && (a.Long ? (t.endCount = a.Long.fromValue(e.endCount)).unsigned = !1 : "string" == typeof e.endCount ? t.endCount = parseInt(e.endCount, 10) : "number" == typeof e.endCount ? t.endCount = e.endCount : "object" == typeof e.endCount && (t.endCount = new a.LongBits(e.endCount.low >>> 0, e.endCount.high >>> 0).toNumber())), null != e.count && (a.Long ? (t.count = a.Long.fromValue(e.count)).unsigned = !1 : "string" == typeof e.count ? t.count = parseInt(e.count, 10) : "number" == typeof e.count ? t.count = e.count : "object" == typeof e.count && (t.count = new a.LongBits(e.count.low >>> 0, e.count.high >>> 0).toNumber())), null != e.panelUrl && (t.panelUrl = String(e.panelUrl)), null != e.entranceIcon) + { + if ("object" != typeof e.entranceIcon) throw TypeError(".webcast.data.EasterEggData.entranceIcon: object expected"); + t.entranceIcon = l.webcast.data.Image.fromObject(e.entranceIcon) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.hasEasterEgg = !1, a.Long) + { + var r = new a.Long(0, 0, !1); + n.stage = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.stage = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.totalStage = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.totalStage = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.effectsNum = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.effectsNum = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.startCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.startCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.endCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.endCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.count = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.count = t.longs === String ? "0" : 0; + n.panelUrl = "", n.entranceIcon = null + } + return null != e.hasEasterEgg && e.hasOwnProperty("hasEasterEgg") && (n.hasEasterEgg = e.hasEasterEgg), null != e.stage && e.hasOwnProperty("stage") && ("number" == typeof e.stage ? n.stage = t.longs === String ? String(e.stage) : e.stage : n.stage = t.longs === String ? a.Long.prototype.toString.call(e.stage) : t.longs === Number ? new a.LongBits(e.stage.low >>> 0, e.stage.high >>> 0).toNumber() : e.stage), null != e.totalStage && e.hasOwnProperty("totalStage") && ("number" == typeof e.totalStage ? n.totalStage = t.longs === String ? String(e.totalStage) : e.totalStage : n.totalStage = t.longs === String ? a.Long.prototype.toString.call(e.totalStage) : t.longs === Number ? new a.LongBits(e.totalStage.low >>> 0, e.totalStage.high >>> 0).toNumber() : e.totalStage), null != e.effectsNum && e.hasOwnProperty("effectsNum") && ("number" == typeof e.effectsNum ? n.effectsNum = t.longs === String ? String(e.effectsNum) : e.effectsNum : n.effectsNum = t.longs === String ? a.Long.prototype.toString.call(e.effectsNum) : t.longs === Number ? new a.LongBits(e.effectsNum.low >>> 0, e.effectsNum.high >>> 0).toNumber() : e.effectsNum), null != e.startCount && e.hasOwnProperty("startCount") && ("number" == typeof e.startCount ? n.startCount = t.longs === String ? String(e.startCount) : e.startCount : n.startCount = t.longs === String ? a.Long.prototype.toString.call(e.startCount) : t.longs === Number ? new a.LongBits(e.startCount.low >>> 0, e.startCount.high >>> 0).toNumber() : e.startCount), null != e.endCount && e.hasOwnProperty("endCount") && ("number" == typeof e.endCount ? n.endCount = t.longs === String ? String(e.endCount) : e.endCount : n.endCount = t.longs === String ? a.Long.prototype.toString.call(e.endCount) : t.longs === Number ? new a.LongBits(e.endCount.low >>> 0, e.endCount.high >>> 0).toNumber() : e.endCount), null != e.count && e.hasOwnProperty("count") && ("number" == typeof e.count ? n.count = t.longs === String ? String(e.count) : e.count : n.count = t.longs === String ? a.Long.prototype.toString.call(e.count) : t.longs === Number ? new a.LongBits(e.count.low >>> 0, e.count.high >>> 0).toNumber() : e.count), null != e.panelUrl && e.hasOwnProperty("panelUrl") && (n.panelUrl = e.panelUrl), null != e.entranceIcon && e.hasOwnProperty("entranceIcon") && (n.entranceIcon = l.webcast.data.Image.toObject(e.entranceIcon, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.CircleInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.name = "", e.prototype.coverImg = null, e.prototype.description = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(8).int64(e.id), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(18).string(e.name), null != e.coverImg && Object.hasOwnProperty.call(e, "coverImg") && l.webcast.data.Image.encode(e.coverImg, t.uint32(26).fork()).ldelim(), null != e.description && Object.hasOwnProperty.call(e, "description") && t.uint32(34).string(e.description), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.CircleInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.id = e.int64(); + break; + case 2: + r.name = e.string(); + break; + case 3: + r.coverImg = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 4: + r.description = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high))) return "id: integer|Long expected"; + if (null != e.name && e.hasOwnProperty("name") && !a.isString(e.name)) return "name: string expected"; + if (null != e.coverImg && e.hasOwnProperty("coverImg")) + { + var t = l.webcast.data.Image.verify(e.coverImg); + if (t) return "coverImg." + t + } + return null != e.description && e.hasOwnProperty("description") && !a.isString(e.description) ? "description: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.CircleInfo) return e; + var t = new l.webcast.data.CircleInfo; + if (null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), null != e.name && (t.name = String(e.name)), null != e.coverImg) + { + if ("object" != typeof e.coverImg) throw TypeError(".webcast.data.CircleInfo.coverImg: object expected"); + t.coverImg = l.webcast.data.Image.fromObject(e.coverImg) + } + return null != e.description && (t.description = String(e.description)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.id = t.longs === String ? "0" : 0; + n.name = "", n.coverImg = null, n.description = "" + } + return null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? n.id = t.longs === String ? String(e.id) : e.id : n.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), null != e.name && e.hasOwnProperty("name") && (n.name = e.name), null != e.coverImg && e.hasOwnProperty("coverImg") && (n.coverImg = l.webcast.data.Image.toObject(e.coverImg, t)), null != e.description && e.hasOwnProperty("description") && (n.description = e.description), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EcomLiveCard = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.product = null, e.prototype.icon = null, e.prototype.campaign = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.product && Object.hasOwnProperty.call(e, "product") && l.webcast.data.EcomProduct.encode(e.product, t.uint32(10).fork()).ldelim(), null != e.icon && Object.hasOwnProperty.call(e, "icon") && l.webcast.data.EcomIcon.encode(e.icon, t.uint32(18).fork()).ldelim(), null != e.campaign && Object.hasOwnProperty.call(e, "campaign") && l.webcast.data.EcomCampaign.encode(e.campaign, t.uint32(26).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EcomLiveCard; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.product = l.webcast.data.EcomProduct.decode(e, e.uint32()); + break; + case 2: + r.icon = l.webcast.data.EcomIcon.decode(e, e.uint32()); + break; + case 3: + r.campaign = l.webcast.data.EcomCampaign.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.product && e.hasOwnProperty("product") && (t = l.webcast.data.EcomProduct.verify(e.product))) return "product." + t; + if (null != e.icon && e.hasOwnProperty("icon") && (t = l.webcast.data.EcomIcon.verify(e.icon))) return "icon." + t; + if (null != e.campaign && e.hasOwnProperty("campaign") && (t = l.webcast.data.EcomCampaign.verify(e.campaign))) return "campaign." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EcomLiveCard) return e; + var t = new l.webcast.data.EcomLiveCard; + if (null != e.product) + { + if ("object" != typeof e.product) throw TypeError(".webcast.data.EcomLiveCard.product: object expected"); + t.product = l.webcast.data.EcomProduct.fromObject(e.product) + } + if (null != e.icon) + { + if ("object" != typeof e.icon) throw TypeError(".webcast.data.EcomLiveCard.icon: object expected"); + t.icon = l.webcast.data.EcomIcon.fromObject(e.icon) + } + if (null != e.campaign) + { + if ("object" != typeof e.campaign) throw TypeError(".webcast.data.EcomLiveCard.campaign: object expected"); + t.campaign = l.webcast.data.EcomCampaign.fromObject(e.campaign) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.product = null, n.icon = null, n.campaign = null), null != e.product && e.hasOwnProperty("product") && (n.product = l.webcast.data.EcomProduct.toObject(e.product, t)), null != e.icon && e.hasOwnProperty("icon") && (n.icon = l.webcast.data.EcomIcon.toObject(e.icon, t)), null != e.campaign && e.hasOwnProperty("campaign") && (n.campaign = l.webcast.data.EcomCampaign.toObject(e.campaign, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EcomProduct = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.promotionId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.productId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.title = "", e.prototype.coverImage = "", e.prototype.price = null, e.prototype.regularPrice = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.depositPrice = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.promotionId && Object.hasOwnProperty.call(e, "promotionId") && t.uint32(8).int64(e.promotionId), null != e.productId && Object.hasOwnProperty.call(e, "productId") && t.uint32(16).int64(e.productId), null != e.title && Object.hasOwnProperty.call(e, "title") && t.uint32(26).string(e.title), null != e.coverImage && Object.hasOwnProperty.call(e, "coverImage") && t.uint32(34).string(e.coverImage), null != e.price && Object.hasOwnProperty.call(e, "price") && l.webcast.data.EcomPrice.encode(e.price, t.uint32(42).fork()).ldelim(), null != e.regularPrice && Object.hasOwnProperty.call(e, "regularPrice") && t.uint32(48).int64(e.regularPrice), null != e.depositPrice && Object.hasOwnProperty.call(e, "depositPrice") && t.uint32(56).int64(e.depositPrice), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EcomProduct; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.promotionId = e.int64(); + break; + case 2: + r.productId = e.int64(); + break; + case 3: + r.title = e.string(); + break; + case 4: + r.coverImage = e.string(); + break; + case 5: + r.price = l.webcast.data.EcomPrice.decode(e, e.uint32()); + break; + case 6: + r.regularPrice = e.int64(); + break; + case 7: + r.depositPrice = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.promotionId && e.hasOwnProperty("promotionId") && !(a.isInteger(e.promotionId) || e.promotionId && a.isInteger(e.promotionId.low) && a.isInteger(e.promotionId.high))) return "promotionId: integer|Long expected"; + if (null != e.productId && e.hasOwnProperty("productId") && !(a.isInteger(e.productId) || e.productId && a.isInteger(e.productId.low) && a.isInteger(e.productId.high))) return "productId: integer|Long expected"; + if (null != e.title && e.hasOwnProperty("title") && !a.isString(e.title)) return "title: string expected"; + if (null != e.coverImage && e.hasOwnProperty("coverImage") && !a.isString(e.coverImage)) return "coverImage: string expected"; + if (null != e.price && e.hasOwnProperty("price")) + { + var t = l.webcast.data.EcomPrice.verify(e.price); + if (t) return "price." + t + } + return null != e.regularPrice && e.hasOwnProperty("regularPrice") && !(a.isInteger(e.regularPrice) || e.regularPrice && a.isInteger(e.regularPrice.low) && a.isInteger(e.regularPrice.high)) ? "regularPrice: integer|Long expected" : null != e.depositPrice && e.hasOwnProperty("depositPrice") && !(a.isInteger(e.depositPrice) || e.depositPrice && a.isInteger(e.depositPrice.low) && a.isInteger(e.depositPrice.high)) ? "depositPrice: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EcomProduct) return e; + var t = new l.webcast.data.EcomProduct; + if (null != e.promotionId && (a.Long ? (t.promotionId = a.Long.fromValue(e.promotionId)).unsigned = !1 : "string" == typeof e.promotionId ? t.promotionId = parseInt(e.promotionId, 10) : "number" == typeof e.promotionId ? t.promotionId = e.promotionId : "object" == typeof e.promotionId && (t.promotionId = new a.LongBits(e.promotionId.low >>> 0, e.promotionId.high >>> 0).toNumber())), null != e.productId && (a.Long ? (t.productId = a.Long.fromValue(e.productId)).unsigned = !1 : "string" == typeof e.productId ? t.productId = parseInt(e.productId, 10) : "number" == typeof e.productId ? t.productId = e.productId : "object" == typeof e.productId && (t.productId = new a.LongBits(e.productId.low >>> 0, e.productId.high >>> 0).toNumber())), null != e.title && (t.title = String(e.title)), null != e.coverImage && (t.coverImage = String(e.coverImage)), null != e.price) + { + if ("object" != typeof e.price) throw TypeError(".webcast.data.EcomProduct.price: object expected"); + t.price = l.webcast.data.EcomPrice.fromObject(e.price) + } + return null != e.regularPrice && (a.Long ? (t.regularPrice = a.Long.fromValue(e.regularPrice)).unsigned = !1 : "string" == typeof e.regularPrice ? t.regularPrice = parseInt(e.regularPrice, 10) : "number" == typeof e.regularPrice ? t.regularPrice = e.regularPrice : "object" == typeof e.regularPrice && (t.regularPrice = new a.LongBits(e.regularPrice.low >>> 0, e.regularPrice.high >>> 0).toNumber())), null != e.depositPrice && (a.Long ? (t.depositPrice = a.Long.fromValue(e.depositPrice)).unsigned = !1 : "string" == typeof e.depositPrice ? t.depositPrice = parseInt(e.depositPrice, 10) : "number" == typeof e.depositPrice ? t.depositPrice = e.depositPrice : "object" == typeof e.depositPrice && (t.depositPrice = new a.LongBits(e.depositPrice.low >>> 0, e.depositPrice.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.promotionId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.promotionId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.productId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.productId = t.longs === String ? "0" : 0; + if (n.title = "", n.coverImage = "", n.price = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.regularPrice = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.regularPrice = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.depositPrice = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.depositPrice = t.longs === String ? "0" : 0 + } + return null != e.promotionId && e.hasOwnProperty("promotionId") && ("number" == typeof e.promotionId ? n.promotionId = t.longs === String ? String(e.promotionId) : e.promotionId : n.promotionId = t.longs === String ? a.Long.prototype.toString.call(e.promotionId) : t.longs === Number ? new a.LongBits(e.promotionId.low >>> 0, e.promotionId.high >>> 0).toNumber() : e.promotionId), null != e.productId && e.hasOwnProperty("productId") && ("number" == typeof e.productId ? n.productId = t.longs === String ? String(e.productId) : e.productId : n.productId = t.longs === String ? a.Long.prototype.toString.call(e.productId) : t.longs === Number ? new a.LongBits(e.productId.low >>> 0, e.productId.high >>> 0).toNumber() : e.productId), null != e.title && e.hasOwnProperty("title") && (n.title = e.title), null != e.coverImage && e.hasOwnProperty("coverImage") && (n.coverImage = e.coverImage), null != e.price && e.hasOwnProperty("price") && (n.price = l.webcast.data.EcomPrice.toObject(e.price, t)), null != e.regularPrice && e.hasOwnProperty("regularPrice") && ("number" == typeof e.regularPrice ? n.regularPrice = t.longs === String ? String(e.regularPrice) : e.regularPrice : n.regularPrice = t.longs === String ? a.Long.prototype.toString.call(e.regularPrice) : t.longs === Number ? new a.LongBits(e.regularPrice.low >>> 0, e.regularPrice.high >>> 0).toNumber() : e.regularPrice), null != e.depositPrice && e.hasOwnProperty("depositPrice") && ("number" == typeof e.depositPrice ? n.depositPrice = t.longs === String ? String(e.depositPrice) : e.depositPrice : n.depositPrice = t.longs === String ? a.Long.prototype.toString.call(e.depositPrice) : t.longs === Number ? new a.LongBits(e.depositPrice.low >>> 0, e.depositPrice.high >>> 0).toNumber() : e.depositPrice), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EcomPrice = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.prefix = "", e.prototype.suffix = "", e.prototype.byCent = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.prefix && Object.hasOwnProperty.call(e, "prefix") && t.uint32(10).string(e.prefix), null != e.suffix && Object.hasOwnProperty.call(e, "suffix") && t.uint32(18).string(e.suffix), null != e.byCent && Object.hasOwnProperty.call(e, "byCent") && t.uint32(24).int64(e.byCent), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EcomPrice; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.prefix = e.string(); + break; + case 2: + r.suffix = e.string(); + break; + case 3: + r.byCent = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.prefix && e.hasOwnProperty("prefix") && !a.isString(e.prefix) ? "prefix: string expected" : null != e.suffix && e.hasOwnProperty("suffix") && !a.isString(e.suffix) ? "suffix: string expected" : null != e.byCent && e.hasOwnProperty("byCent") && !(a.isInteger(e.byCent) || e.byCent && a.isInteger(e.byCent.low) && a.isInteger(e.byCent.high)) ? "byCent: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EcomPrice) return e; + var t = new l.webcast.data.EcomPrice; + return null != e.prefix && (t.prefix = String(e.prefix)), null != e.suffix && (t.suffix = String(e.suffix)), null != e.byCent && (a.Long ? (t.byCent = a.Long.fromValue(e.byCent)).unsigned = !1 : "string" == typeof e.byCent ? t.byCent = parseInt(e.byCent, 10) : "number" == typeof e.byCent ? t.byCent = e.byCent : "object" == typeof e.byCent && (t.byCent = new a.LongBits(e.byCent.low >>> 0, e.byCent.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + if (n.prefix = "", n.suffix = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.byCent = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.byCent = t.longs === String ? "0" : 0; + return null != e.prefix && e.hasOwnProperty("prefix") && (n.prefix = e.prefix), null != e.suffix && e.hasOwnProperty("suffix") && (n.suffix = e.suffix), null != e.byCent && e.hasOwnProperty("byCent") && ("number" == typeof e.byCent ? n.byCent = t.longs === String ? String(e.byCent) : e.byCent : n.byCent = t.longs === String ? a.Long.prototype.toString.call(e.byCent) : t.longs === Number ? new a.LongBits(e.byCent.low >>> 0, e.byCent.high >>> 0).toNumber() : e.byCent), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EcomIcon = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.url = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.url && Object.hasOwnProperty.call(e, "url") && t.uint32(10).string(e.url), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EcomIcon; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.url = e.string(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.url && e.hasOwnProperty("url") && !a.isString(e.url) ? "url: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EcomIcon) return e; + var t = new l.webcast.data.EcomIcon; + return null != e.url && (t.url = String(e.url)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.url = ""), null != e.url && e.hasOwnProperty("url") && (n.url = e.url), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EcomCampaign = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.remainingSeconds = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.auction = null, e.prototype.type = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.remainingSeconds && Object.hasOwnProperty.call(e, "remainingSeconds") && t.uint32(8).int64(e.remainingSeconds), null != e.auction && Object.hasOwnProperty.call(e, "auction") && l.webcast.data.EcomAuction.encode(e.auction, t.uint32(18).fork()).ldelim(), null != e.type && Object.hasOwnProperty.call(e, "type") && t.uint32(24).int64(e.type), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EcomCampaign; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.remainingSeconds = e.int64(); + break; + case 2: + r.auction = l.webcast.data.EcomAuction.decode(e, e.uint32()); + break; + case 3: + r.type = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.remainingSeconds && e.hasOwnProperty("remainingSeconds") && !(a.isInteger(e.remainingSeconds) || e.remainingSeconds && a.isInteger(e.remainingSeconds.low) && a.isInteger(e.remainingSeconds.high))) return "remainingSeconds: integer|Long expected"; + if (null != e.auction && e.hasOwnProperty("auction")) + { + var t = l.webcast.data.EcomAuction.verify(e.auction); + if (t) return "auction." + t + } + return null != e.type && e.hasOwnProperty("type") && !(a.isInteger(e.type) || e.type && a.isInteger(e.type.low) && a.isInteger(e.type.high)) ? "type: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EcomCampaign) return e; + var t = new l.webcast.data.EcomCampaign; + if (null != e.remainingSeconds && (a.Long ? (t.remainingSeconds = a.Long.fromValue(e.remainingSeconds)).unsigned = !1 : "string" == typeof e.remainingSeconds ? t.remainingSeconds = parseInt(e.remainingSeconds, 10) : "number" == typeof e.remainingSeconds ? t.remainingSeconds = e.remainingSeconds : "object" == typeof e.remainingSeconds && (t.remainingSeconds = new a.LongBits(e.remainingSeconds.low >>> 0, e.remainingSeconds.high >>> 0).toNumber())), null != e.auction) + { + if ("object" != typeof e.auction) throw TypeError(".webcast.data.EcomCampaign.auction: object expected"); + t.auction = l.webcast.data.EcomAuction.fromObject(e.auction) + } + return null != e.type && (a.Long ? (t.type = a.Long.fromValue(e.type)).unsigned = !1 : "string" == typeof e.type ? t.type = parseInt(e.type, 10) : "number" == typeof e.type ? t.type = e.type : "object" == typeof e.type && (t.type = new a.LongBits(e.type.low >>> 0, e.type.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.remainingSeconds = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.remainingSeconds = t.longs === String ? "0" : 0; + if (n.auction = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.type = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.type = t.longs === String ? "0" : 0 + } + return null != e.remainingSeconds && e.hasOwnProperty("remainingSeconds") && ("number" == typeof e.remainingSeconds ? n.remainingSeconds = t.longs === String ? String(e.remainingSeconds) : e.remainingSeconds : n.remainingSeconds = t.longs === String ? a.Long.prototype.toString.call(e.remainingSeconds) : t.longs === Number ? new a.LongBits(e.remainingSeconds.low >>> 0, e.remainingSeconds.high >>> 0).toNumber() : e.remainingSeconds), null != e.auction && e.hasOwnProperty("auction") && (n.auction = l.webcast.data.EcomAuction.toObject(e.auction, t)), null != e.type && e.hasOwnProperty("type") && ("number" == typeof e.type ? n.type = t.longs === String ? String(e.type) : e.type : n.type = t.longs === String ? a.Long.prototype.toString.call(e.type) : t.longs === Number ? new a.LongBits(e.type.low >>> 0, e.type.high >>> 0).toNumber() : e.type), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EcomAuction = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.price = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.priceLabel = "", e.prototype.buttonLabel = "", e.prototype.user = null, e.prototype.status = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.price && Object.hasOwnProperty.call(e, "price") && t.uint32(8).int64(e.price), null != e.priceLabel && Object.hasOwnProperty.call(e, "priceLabel") && t.uint32(18).string(e.priceLabel), null != e.buttonLabel && Object.hasOwnProperty.call(e, "buttonLabel") && t.uint32(26).string(e.buttonLabel), null != e.user && Object.hasOwnProperty.call(e, "user") && l.webcast.data.EcomBidder.encode(e.user, t.uint32(34).fork()).ldelim(), null != e.status && Object.hasOwnProperty.call(e, "status") && t.uint32(40).int64(e.status), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EcomAuction; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.price = e.int64(); + break; + case 2: + r.priceLabel = e.string(); + break; + case 3: + r.buttonLabel = e.string(); + break; + case 4: + r.user = l.webcast.data.EcomBidder.decode(e, e.uint32()); + break; + case 5: + r.status = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.price && e.hasOwnProperty("price") && !(a.isInteger(e.price) || e.price && a.isInteger(e.price.low) && a.isInteger(e.price.high))) return "price: integer|Long expected"; + if (null != e.priceLabel && e.hasOwnProperty("priceLabel") && !a.isString(e.priceLabel)) return "priceLabel: string expected"; + if (null != e.buttonLabel && e.hasOwnProperty("buttonLabel") && !a.isString(e.buttonLabel)) return "buttonLabel: string expected"; + if (null != e.user && e.hasOwnProperty("user")) + { + var t = l.webcast.data.EcomBidder.verify(e.user); + if (t) return "user." + t + } + return null != e.status && e.hasOwnProperty("status") && !(a.isInteger(e.status) || e.status && a.isInteger(e.status.low) && a.isInteger(e.status.high)) ? "status: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EcomAuction) return e; + var t = new l.webcast.data.EcomAuction; + if (null != e.price && (a.Long ? (t.price = a.Long.fromValue(e.price)).unsigned = !1 : "string" == typeof e.price ? t.price = parseInt(e.price, 10) : "number" == typeof e.price ? t.price = e.price : "object" == typeof e.price && (t.price = new a.LongBits(e.price.low >>> 0, e.price.high >>> 0).toNumber())), null != e.priceLabel && (t.priceLabel = String(e.priceLabel)), null != e.buttonLabel && (t.buttonLabel = String(e.buttonLabel)), null != e.user) + { + if ("object" != typeof e.user) throw TypeError(".webcast.data.EcomAuction.user: object expected"); + t.user = l.webcast.data.EcomBidder.fromObject(e.user) + } + return null != e.status && (a.Long ? (t.status = a.Long.fromValue(e.status)).unsigned = !1 : "string" == typeof e.status ? t.status = parseInt(e.status, 10) : "number" == typeof e.status ? t.status = e.status : "object" == typeof e.status && (t.status = new a.LongBits(e.status.low >>> 0, e.status.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.price = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.price = t.longs === String ? "0" : 0; + if (n.priceLabel = "", n.buttonLabel = "", n.user = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.status = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.status = t.longs === String ? "0" : 0 + } + return null != e.price && e.hasOwnProperty("price") && ("number" == typeof e.price ? n.price = t.longs === String ? String(e.price) : e.price : n.price = t.longs === String ? a.Long.prototype.toString.call(e.price) : t.longs === Number ? new a.LongBits(e.price.low >>> 0, e.price.high >>> 0).toNumber() : e.price), null != e.priceLabel && e.hasOwnProperty("priceLabel") && (n.priceLabel = e.priceLabel), null != e.buttonLabel && e.hasOwnProperty("buttonLabel") && (n.buttonLabel = e.buttonLabel), null != e.user && e.hasOwnProperty("user") && (n.user = l.webcast.data.EcomBidder.toObject(e.user, t)), null != e.status && e.hasOwnProperty("status") && ("number" == typeof e.status ? n.status = t.longs === String ? String(e.status) : e.status : n.status = t.longs === String ? a.Long.prototype.toString.call(e.status) : t.longs === Number ? new a.LongBits(e.status.low >>> 0, e.status.high >>> 0).toNumber() : e.status), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EcomBidder = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.name = "", e.prototype.avatar = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(10).string(e.name), null != e.avatar && Object.hasOwnProperty.call(e, "avatar") && l.webcast.data.EcomAvatar.encode(e.avatar, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EcomBidder; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.name = e.string(); + break; + case 2: + r.avatar = l.webcast.data.EcomAvatar.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.name && e.hasOwnProperty("name") && !a.isString(e.name)) return "name: string expected"; + if (null != e.avatar && e.hasOwnProperty("avatar")) + { + var t = l.webcast.data.EcomAvatar.verify(e.avatar); + if (t) return "avatar." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EcomBidder) return e; + var t = new l.webcast.data.EcomBidder; + if (null != e.name && (t.name = String(e.name)), null != e.avatar) + { + if ("object" != typeof e.avatar) throw TypeError(".webcast.data.EcomBidder.avatar: object expected"); + t.avatar = l.webcast.data.EcomAvatar.fromObject(e.avatar) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.name = "", n.avatar = null), null != e.name && e.hasOwnProperty("name") && (n.name = e.name), null != e.avatar && e.hasOwnProperty("avatar") && (n.avatar = l.webcast.data.EcomAvatar.toObject(e.avatar, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EcomAvatar = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.url = "", e.prototype.width = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.height = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.url && Object.hasOwnProperty.call(e, "url") && t.uint32(10).string(e.url), null != e.width && Object.hasOwnProperty.call(e, "width") && t.uint32(16).int64(e.width), null != e.height && Object.hasOwnProperty.call(e, "height") && t.uint32(24).int64(e.height), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EcomAvatar; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.url = e.string(); + break; + case 2: + r.width = e.int64(); + break; + case 3: + r.height = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.url && e.hasOwnProperty("url") && !a.isString(e.url) ? "url: string expected" : null != e.width && e.hasOwnProperty("width") && !(a.isInteger(e.width) || e.width && a.isInteger(e.width.low) && a.isInteger(e.width.high)) ? "width: integer|Long expected" : null != e.height && e.hasOwnProperty("height") && !(a.isInteger(e.height) || e.height && a.isInteger(e.height.low) && a.isInteger(e.height.high)) ? "height: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EcomAvatar) return e; + var t = new l.webcast.data.EcomAvatar; + return null != e.url && (t.url = String(e.url)), null != e.width && (a.Long ? (t.width = a.Long.fromValue(e.width)).unsigned = !1 : "string" == typeof e.width ? t.width = parseInt(e.width, 10) : "number" == typeof e.width ? t.width = e.width : "object" == typeof e.width && (t.width = new a.LongBits(e.width.low >>> 0, e.width.high >>> 0).toNumber())), null != e.height && (a.Long ? (t.height = a.Long.fromValue(e.height)).unsigned = !1 : "string" == typeof e.height ? t.height = parseInt(e.height, 10) : "number" == typeof e.height ? t.height = e.height : "object" == typeof e.height && (t.height = new a.LongBits(e.height.low >>> 0, e.height.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.url = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.width = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.width = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.height = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.height = t.longs === String ? "0" : 0 + } + return null != e.url && e.hasOwnProperty("url") && (n.url = e.url), null != e.width && e.hasOwnProperty("width") && ("number" == typeof e.width ? n.width = t.longs === String ? String(e.width) : e.width : n.width = t.longs === String ? a.Long.prototype.toString.call(e.width) : t.longs === Number ? new a.LongBits(e.width.low >>> 0, e.width.high >>> 0).toNumber() : e.width), null != e.height && e.hasOwnProperty("height") && ("number" == typeof e.height ? n.height = t.longs === String ? String(e.height) : e.height : n.height = t.longs === String ? a.Long.prototype.toString.call(e.height) : t.longs === Number ? new a.LongBits(e.height.low >>> 0, e.height.high >>> 0).toNumber() : e.height), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.GiftIMPriorityType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "SYSTEM"] = 0, t[e[1] = "SELF_SENT"] = 1, t[e[2] = "VALUABLE_GIFT"] = 2, t[e[3] = "COMMON_GIFT"] = 3, t + }(), e.GiftIMPriority = function () + { + function e(e) + { + if (this.queueSizes = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.queueSizes = a.emptyArray, e.prototype.selfQueuePriority = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.priority = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.queueSizes && e.queueSizes.length) + { + t.uint32(10).fork(); + for (var n = 0; n < e.queueSizes.length; ++n) t.int64(e.queueSizes[n]); + t.ldelim() + } + return null != e.selfQueuePriority && Object.hasOwnProperty.call(e, "selfQueuePriority") && t.uint32(16).int64(e.selfQueuePriority), null != e.priority && Object.hasOwnProperty.call(e, "priority") && t.uint32(24).int64(e.priority), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.GiftIMPriority; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + if (r.queueSizes && r.queueSizes.length || (r.queueSizes = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.queueSizes.push(e.int64()); + else r.queueSizes.push(e.int64()); + break; + case 2: + r.selfQueuePriority = e.int64(); + break; + case 3: + r.priority = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.queueSizes && e.hasOwnProperty("queueSizes")) + { + if (!Array.isArray(e.queueSizes)) return "queueSizes: array expected"; + for (var t = 0; t < e.queueSizes.length; ++t) + if (!(a.isInteger(e.queueSizes[t]) || e.queueSizes[t] && a.isInteger(e.queueSizes[t].low) && a.isInteger(e.queueSizes[t].high))) return "queueSizes: integer|Long[] expected" + } + return null != e.selfQueuePriority && e.hasOwnProperty("selfQueuePriority") && !(a.isInteger(e.selfQueuePriority) || e.selfQueuePriority && a.isInteger(e.selfQueuePriority.low) && a.isInteger(e.selfQueuePriority.high)) ? "selfQueuePriority: integer|Long expected" : null != e.priority && e.hasOwnProperty("priority") && !(a.isInteger(e.priority) || e.priority && a.isInteger(e.priority.low) && a.isInteger(e.priority.high)) ? "priority: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GiftIMPriority) return e; + var t = new l.webcast.data.GiftIMPriority; + if (e.queueSizes) + { + if (!Array.isArray(e.queueSizes)) throw TypeError(".webcast.data.GiftIMPriority.queueSizes: array expected"); + t.queueSizes = []; + for (var n = 0; n < e.queueSizes.length; ++n) a.Long ? (t.queueSizes[n] = a.Long.fromValue(e.queueSizes[n])).unsigned = !1 : "string" == typeof e.queueSizes[n] ? t.queueSizes[n] = parseInt(e.queueSizes[n], 10) : "number" == typeof e.queueSizes[n] ? t.queueSizes[n] = e.queueSizes[n] : "object" == typeof e.queueSizes[n] && (t.queueSizes[n] = new a.LongBits(e.queueSizes[n].low >>> 0, e.queueSizes[n].high >>> 0).toNumber()) + } + return null != e.selfQueuePriority && (a.Long ? (t.selfQueuePriority = a.Long.fromValue(e.selfQueuePriority)).unsigned = !1 : "string" == typeof e.selfQueuePriority ? t.selfQueuePriority = parseInt(e.selfQueuePriority, 10) : "number" == typeof e.selfQueuePriority ? t.selfQueuePriority = e.selfQueuePriority : "object" == typeof e.selfQueuePriority && (t.selfQueuePriority = new a.LongBits(e.selfQueuePriority.low >>> 0, e.selfQueuePriority.high >>> 0).toNumber())), null != e.priority && (a.Long ? (t.priority = a.Long.fromValue(e.priority)).unsigned = !1 : "string" == typeof e.priority ? t.priority = parseInt(e.priority, 10) : "number" == typeof e.priority ? t.priority = e.priority : "object" == typeof e.priority && (t.priority = new a.LongBits(e.priority.low >>> 0, e.priority.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.queueSizes = []), t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.selfQueuePriority = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.selfQueuePriority = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.priority = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.priority = t.longs === String ? "0" : 0 + } + if (e.queueSizes && e.queueSizes.length) + { + n.queueSizes = []; + for (var o = 0; o < e.queueSizes.length; ++o) "number" == typeof e.queueSizes[o] ? n.queueSizes[o] = t.longs === String ? String(e.queueSizes[o]) : e.queueSizes[o] : n.queueSizes[o] = t.longs === String ? a.Long.prototype.toString.call(e.queueSizes[o]) : t.longs === Number ? new a.LongBits(e.queueSizes[o].low >>> 0, e.queueSizes[o].high >>> 0).toNumber() : e.queueSizes[o] + } + return null != e.selfQueuePriority && e.hasOwnProperty("selfQueuePriority") && ("number" == typeof e.selfQueuePriority ? n.selfQueuePriority = t.longs === String ? String(e.selfQueuePriority) : e.selfQueuePriority : n.selfQueuePriority = t.longs === String ? a.Long.prototype.toString.call(e.selfQueuePriority) : t.longs === Number ? new a.LongBits(e.selfQueuePriority.low >>> 0, e.selfQueuePriority.high >>> 0).toNumber() : e.selfQueuePriority), null != e.priority && e.hasOwnProperty("priority") && ("number" == typeof e.priority ? n.priority = t.longs === String ? String(e.priority) : e.priority : n.priority = t.longs === String ? a.Long.prototype.toString.call(e.priority) : t.longs === Number ? new a.LongBits(e.priority.low >>> 0, e.priority.high >>> 0).toNumber() : e.priority), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.BuffLevel = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "None"] = 0, t[e[1] = "GoldBuff"] = 1, t[e[2] = "PlatinumBuff"] = 2, t + }(), e.AfterSendAction = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "ActionDefault"] = 0, t[e[1] = "ActionCloseCombo"] = 1, t + }(), e.ReqExtraType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "NotReq"] = 0, t[e[1] = "ReqOnOpenPanel"] = 1, t[e[2] = "ReqOnClickGift"] = 2, t[e[4] = "ReqOnOpenBanner"] = 4, t + }(), e.GiftLockStatus = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "Unlocked"] = 0, t[e[1] = "LockedGray"] = 1, t[e[2] = "LockedNormal"] = 2, t + }(), e.GiftPreviewInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.lockStatus = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.clientBlockUseSchemeUrl = !1, e.prototype.blockSchemeUrl = "", e.prototype.clientCheckLeftDiamond = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.lockStatus && Object.hasOwnProperty.call(e, "lockStatus") && t.uint32(8).int64(e.lockStatus), null != e.clientBlockUseSchemeUrl && Object.hasOwnProperty.call(e, "clientBlockUseSchemeUrl") && t.uint32(16).bool(e.clientBlockUseSchemeUrl), null != e.blockSchemeUrl && Object.hasOwnProperty.call(e, "blockSchemeUrl") && t.uint32(26).string(e.blockSchemeUrl), null != e.clientCheckLeftDiamond && Object.hasOwnProperty.call(e, "clientCheckLeftDiamond") && t.uint32(32).bool(e.clientCheckLeftDiamond), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.GiftPreviewInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.lockStatus = e.int64(); + break; + case 2: + r.clientBlockUseSchemeUrl = e.bool(); + break; + case 3: + r.blockSchemeUrl = e.string(); + break; + case 4: + r.clientCheckLeftDiamond = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.lockStatus && e.hasOwnProperty("lockStatus") && !(a.isInteger(e.lockStatus) || e.lockStatus && a.isInteger(e.lockStatus.low) && a.isInteger(e.lockStatus.high)) ? "lockStatus: integer|Long expected" : null != e.clientBlockUseSchemeUrl && e.hasOwnProperty("clientBlockUseSchemeUrl") && "boolean" != typeof e.clientBlockUseSchemeUrl ? "clientBlockUseSchemeUrl: boolean expected" : null != e.blockSchemeUrl && e.hasOwnProperty("blockSchemeUrl") && !a.isString(e.blockSchemeUrl) ? "blockSchemeUrl: string expected" : null != e.clientCheckLeftDiamond && e.hasOwnProperty("clientCheckLeftDiamond") && "boolean" != typeof e.clientCheckLeftDiamond ? "clientCheckLeftDiamond: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GiftPreviewInfo) return e; + var t = new l.webcast.data.GiftPreviewInfo; + return null != e.lockStatus && (a.Long ? (t.lockStatus = a.Long.fromValue(e.lockStatus)).unsigned = !1 : "string" == typeof e.lockStatus ? t.lockStatus = parseInt(e.lockStatus, 10) : "number" == typeof e.lockStatus ? t.lockStatus = e.lockStatus : "object" == typeof e.lockStatus && (t.lockStatus = new a.LongBits(e.lockStatus.low >>> 0, e.lockStatus.high >>> 0).toNumber())), null != e.clientBlockUseSchemeUrl && (t.clientBlockUseSchemeUrl = Boolean(e.clientBlockUseSchemeUrl)), null != e.blockSchemeUrl && (t.blockSchemeUrl = String(e.blockSchemeUrl)), null != e.clientCheckLeftDiamond && (t.clientCheckLeftDiamond = Boolean(e.clientCheckLeftDiamond)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.lockStatus = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.lockStatus = t.longs === String ? "0" : 0; + n.clientBlockUseSchemeUrl = !1, n.blockSchemeUrl = "", n.clientCheckLeftDiamond = !1 + } + return null != e.lockStatus && e.hasOwnProperty("lockStatus") && ("number" == typeof e.lockStatus ? n.lockStatus = t.longs === String ? String(e.lockStatus) : e.lockStatus : n.lockStatus = t.longs === String ? a.Long.prototype.toString.call(e.lockStatus) : t.longs === Number ? new a.LongBits(e.lockStatus.low >>> 0, e.lockStatus.high >>> 0).toNumber() : e.lockStatus), null != e.clientBlockUseSchemeUrl && e.hasOwnProperty("clientBlockUseSchemeUrl") && (n.clientBlockUseSchemeUrl = e.clientBlockUseSchemeUrl), null != e.blockSchemeUrl && e.hasOwnProperty("blockSchemeUrl") && (n.blockSchemeUrl = e.blockSchemeUrl), null != e.clientCheckLeftDiamond && e.hasOwnProperty("clientCheckLeftDiamond") && (n.clientCheckLeftDiamond = e.clientCheckLeftDiamond), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.GiftBuffInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.text = "", e.prototype.textColor = "", e.prototype.bgImg = null, e.prototype.sweepLightImg = null, e.prototype.buffGiftDescribeImg = null, e.prototype.buffGiftId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.buffLevel = 0, e.prototype.buffCanSend = !1, e.prototype.buffDiamondCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.text && Object.hasOwnProperty.call(e, "text") && t.uint32(10).string(e.text), null != e.textColor && Object.hasOwnProperty.call(e, "textColor") && t.uint32(18).string(e.textColor), null != e.bgImg && Object.hasOwnProperty.call(e, "bgImg") && l.webcast.data.Image.encode(e.bgImg, t.uint32(26).fork()).ldelim(), null != e.sweepLightImg && Object.hasOwnProperty.call(e, "sweepLightImg") && l.webcast.data.Image.encode(e.sweepLightImg, t.uint32(34).fork()).ldelim(), null != e.buffGiftDescribeImg && Object.hasOwnProperty.call(e, "buffGiftDescribeImg") && l.webcast.data.Image.encode(e.buffGiftDescribeImg, t.uint32(42).fork()).ldelim(), null != e.buffGiftId && Object.hasOwnProperty.call(e, "buffGiftId") && t.uint32(48).int64(e.buffGiftId), null != e.buffLevel && Object.hasOwnProperty.call(e, "buffLevel") && t.uint32(56).int32(e.buffLevel), null != e.buffCanSend && Object.hasOwnProperty.call(e, "buffCanSend") && t.uint32(64).bool(e.buffCanSend), null != e.buffDiamondCount && Object.hasOwnProperty.call(e, "buffDiamondCount") && t.uint32(72).int64(e.buffDiamondCount), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.GiftBuffInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.text = e.string(); + break; + case 2: + r.textColor = e.string(); + break; + case 3: + r.bgImg = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 4: + r.sweepLightImg = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 5: + r.buffGiftDescribeImg = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 6: + r.buffGiftId = e.int64(); + break; + case 7: + r.buffLevel = e.int32(); + break; + case 8: + r.buffCanSend = e.bool(); + break; + case 9: + r.buffDiamondCount = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.text && e.hasOwnProperty("text") && !a.isString(e.text)) return "text: string expected"; + if (null != e.textColor && e.hasOwnProperty("textColor") && !a.isString(e.textColor)) return "textColor: string expected"; + var t; + if (null != e.bgImg && e.hasOwnProperty("bgImg") && (t = l.webcast.data.Image.verify(e.bgImg))) return "bgImg." + t; + if (null != e.sweepLightImg && e.hasOwnProperty("sweepLightImg") && (t = l.webcast.data.Image.verify(e.sweepLightImg))) return "sweepLightImg." + t; + if (null != e.buffGiftDescribeImg && e.hasOwnProperty("buffGiftDescribeImg") && (t = l.webcast.data.Image.verify(e.buffGiftDescribeImg))) return "buffGiftDescribeImg." + t; + return null != e.buffGiftId && e.hasOwnProperty("buffGiftId") && !(a.isInteger(e.buffGiftId) || e.buffGiftId && a.isInteger(e.buffGiftId.low) && a.isInteger(e.buffGiftId.high)) ? "buffGiftId: integer|Long expected" : null != e.buffLevel && e.hasOwnProperty("buffLevel") && !a.isInteger(e.buffLevel) ? "buffLevel: integer expected" : null != e.buffCanSend && e.hasOwnProperty("buffCanSend") && "boolean" != typeof e.buffCanSend ? "buffCanSend: boolean expected" : null != e.buffDiamondCount && e.hasOwnProperty("buffDiamondCount") && !(a.isInteger(e.buffDiamondCount) || e.buffDiamondCount && a.isInteger(e.buffDiamondCount.low) && a.isInteger(e.buffDiamondCount.high)) ? "buffDiamondCount: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GiftBuffInfo) return e; + var t = new l.webcast.data.GiftBuffInfo; + if (null != e.text && (t.text = String(e.text)), null != e.textColor && (t.textColor = String(e.textColor)), null != e.bgImg) + { + if ("object" != typeof e.bgImg) throw TypeError(".webcast.data.GiftBuffInfo.bgImg: object expected"); + t.bgImg = l.webcast.data.Image.fromObject(e.bgImg) + } + if (null != e.sweepLightImg) + { + if ("object" != typeof e.sweepLightImg) throw TypeError(".webcast.data.GiftBuffInfo.sweepLightImg: object expected"); + t.sweepLightImg = l.webcast.data.Image.fromObject(e.sweepLightImg) + } + if (null != e.buffGiftDescribeImg) + { + if ("object" != typeof e.buffGiftDescribeImg) throw TypeError(".webcast.data.GiftBuffInfo.buffGiftDescribeImg: object expected"); + t.buffGiftDescribeImg = l.webcast.data.Image.fromObject(e.buffGiftDescribeImg) + } + return null != e.buffGiftId && (a.Long ? (t.buffGiftId = a.Long.fromValue(e.buffGiftId)).unsigned = !1 : "string" == typeof e.buffGiftId ? t.buffGiftId = parseInt(e.buffGiftId, 10) : "number" == typeof e.buffGiftId ? t.buffGiftId = e.buffGiftId : "object" == typeof e.buffGiftId && (t.buffGiftId = new a.LongBits(e.buffGiftId.low >>> 0, e.buffGiftId.high >>> 0).toNumber())), null != e.buffLevel && (t.buffLevel = 0 | e.buffLevel), null != e.buffCanSend && (t.buffCanSend = Boolean(e.buffCanSend)), null != e.buffDiamondCount && (a.Long ? (t.buffDiamondCount = a.Long.fromValue(e.buffDiamondCount)).unsigned = !1 : "string" == typeof e.buffDiamondCount ? t.buffDiamondCount = parseInt(e.buffDiamondCount, 10) : "number" == typeof e.buffDiamondCount ? t.buffDiamondCount = e.buffDiamondCount : "object" == typeof e.buffDiamondCount && (t.buffDiamondCount = new a.LongBits(e.buffDiamondCount.low >>> 0, e.buffDiamondCount.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.text = "", n.textColor = "", n.bgImg = null, n.sweepLightImg = null, n.buffGiftDescribeImg = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.buffGiftId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.buffGiftId = t.longs === String ? "0" : 0; + if (n.buffLevel = 0, n.buffCanSend = !1, a.Long) + { + r = new a.Long(0, 0, !1); + n.buffDiamondCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.buffDiamondCount = t.longs === String ? "0" : 0 + } + return null != e.text && e.hasOwnProperty("text") && (n.text = e.text), null != e.textColor && e.hasOwnProperty("textColor") && (n.textColor = e.textColor), null != e.bgImg && e.hasOwnProperty("bgImg") && (n.bgImg = l.webcast.data.Image.toObject(e.bgImg, t)), null != e.sweepLightImg && e.hasOwnProperty("sweepLightImg") && (n.sweepLightImg = l.webcast.data.Image.toObject(e.sweepLightImg, t)), null != e.buffGiftDescribeImg && e.hasOwnProperty("buffGiftDescribeImg") && (n.buffGiftDescribeImg = l.webcast.data.Image.toObject(e.buffGiftDescribeImg, t)), null != e.buffGiftId && e.hasOwnProperty("buffGiftId") && ("number" == typeof e.buffGiftId ? n.buffGiftId = t.longs === String ? String(e.buffGiftId) : e.buffGiftId : n.buffGiftId = t.longs === String ? a.Long.prototype.toString.call(e.buffGiftId) : t.longs === Number ? new a.LongBits(e.buffGiftId.low >>> 0, e.buffGiftId.high >>> 0).toNumber() : e.buffGiftId), null != e.buffLevel && e.hasOwnProperty("buffLevel") && (n.buffLevel = e.buffLevel), null != e.buffCanSend && e.hasOwnProperty("buffCanSend") && (n.buffCanSend = e.buffCanSend), null != e.buffDiamondCount && e.hasOwnProperty("buffDiamondCount") && ("number" == typeof e.buffDiamondCount ? n.buffDiamondCount = t.longs === String ? String(e.buffDiamondCount) : e.buffDiamondCount : n.buffDiamondCount = t.longs === String ? a.Long.prototype.toString.call(e.buffDiamondCount) : t.longs === Number ? new a.LongBits(e.buffDiamondCount.low >>> 0, e.buffDiamondCount.high >>> 0).toNumber() : e.buffDiamondCount), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.GiftTip = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.displayText = null, e.prototype.backgroundColor = "", e.prototype.prefixImage = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.displayText && Object.hasOwnProperty.call(e, "displayText") && l.webcast.data.Text.encode(e.displayText, t.uint32(10).fork()).ldelim(), null != e.backgroundColor && Object.hasOwnProperty.call(e, "backgroundColor") && t.uint32(18).string(e.backgroundColor), null != e.prefixImage && Object.hasOwnProperty.call(e, "prefixImage") && l.webcast.data.Image.encode(e.prefixImage, t.uint32(26).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.GiftTip; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.displayText = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 2: + r.backgroundColor = e.string(); + break; + case 3: + r.prefixImage = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.displayText && e.hasOwnProperty("displayText") && (t = l.webcast.data.Text.verify(e.displayText))) return "displayText." + t; + if (null != e.backgroundColor && e.hasOwnProperty("backgroundColor") && !a.isString(e.backgroundColor)) return "backgroundColor: string expected"; + if (null != e.prefixImage && e.hasOwnProperty("prefixImage") && (t = l.webcast.data.Image.verify(e.prefixImage))) return "prefixImage." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GiftTip) return e; + var t = new l.webcast.data.GiftTip; + if (null != e.displayText) + { + if ("object" != typeof e.displayText) throw TypeError(".webcast.data.GiftTip.displayText: object expected"); + t.displayText = l.webcast.data.Text.fromObject(e.displayText) + } + if (null != e.backgroundColor && (t.backgroundColor = String(e.backgroundColor)), null != e.prefixImage) + { + if ("object" != typeof e.prefixImage) throw TypeError(".webcast.data.GiftTip.prefixImage: object expected"); + t.prefixImage = l.webcast.data.Image.fromObject(e.prefixImage) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.displayText = null, n.backgroundColor = "", n.prefixImage = null), null != e.displayText && e.hasOwnProperty("displayText") && (n.displayText = l.webcast.data.Text.toObject(e.displayText, t)), null != e.backgroundColor && e.hasOwnProperty("backgroundColor") && (n.backgroundColor = e.backgroundColor), null != e.prefixImage && e.hasOwnProperty("prefixImage") && (n.prefixImage = l.webcast.data.Image.toObject(e.prefixImage, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.SubscribeGiftPackInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.relatedGiftId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.offlineTimeSecond = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.leftScores = 0, e.prototype.entranceSchemeUrl = "", e.prototype.entranceSchemeUrlQueryParams = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.relatedGiftId && Object.hasOwnProperty.call(e, "relatedGiftId") && t.uint32(8).int64(e.relatedGiftId), null != e.offlineTimeSecond && Object.hasOwnProperty.call(e, "offlineTimeSecond") && t.uint32(16).int64(e.offlineTimeSecond), null != e.leftScores && Object.hasOwnProperty.call(e, "leftScores") && t.uint32(32).int32(e.leftScores), null != e.entranceSchemeUrl && Object.hasOwnProperty.call(e, "entranceSchemeUrl") && t.uint32(42).string(e.entranceSchemeUrl), null != e.entranceSchemeUrlQueryParams && Object.hasOwnProperty.call(e, "entranceSchemeUrlQueryParams") && t.uint32(50).string(e.entranceSchemeUrlQueryParams), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.SubscribeGiftPackInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.relatedGiftId = e.int64(); + break; + case 2: + r.offlineTimeSecond = e.int64(); + break; + case 4: + r.leftScores = e.int32(); + break; + case 5: + r.entranceSchemeUrl = e.string(); + break; + case 6: + r.entranceSchemeUrlQueryParams = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.relatedGiftId && e.hasOwnProperty("relatedGiftId") && !(a.isInteger(e.relatedGiftId) || e.relatedGiftId && a.isInteger(e.relatedGiftId.low) && a.isInteger(e.relatedGiftId.high)) ? "relatedGiftId: integer|Long expected" : null != e.offlineTimeSecond && e.hasOwnProperty("offlineTimeSecond") && !(a.isInteger(e.offlineTimeSecond) || e.offlineTimeSecond && a.isInteger(e.offlineTimeSecond.low) && a.isInteger(e.offlineTimeSecond.high)) ? "offlineTimeSecond: integer|Long expected" : null != e.leftScores && e.hasOwnProperty("leftScores") && !a.isInteger(e.leftScores) ? "leftScores: integer expected" : null != e.entranceSchemeUrl && e.hasOwnProperty("entranceSchemeUrl") && !a.isString(e.entranceSchemeUrl) ? "entranceSchemeUrl: string expected" : null != e.entranceSchemeUrlQueryParams && e.hasOwnProperty("entranceSchemeUrlQueryParams") && !a.isString(e.entranceSchemeUrlQueryParams) ? "entranceSchemeUrlQueryParams: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.SubscribeGiftPackInfo) return e; + var t = new l.webcast.data.SubscribeGiftPackInfo; + return null != e.relatedGiftId && (a.Long ? (t.relatedGiftId = a.Long.fromValue(e.relatedGiftId)).unsigned = !1 : "string" == typeof e.relatedGiftId ? t.relatedGiftId = parseInt(e.relatedGiftId, 10) : "number" == typeof e.relatedGiftId ? t.relatedGiftId = e.relatedGiftId : "object" == typeof e.relatedGiftId && (t.relatedGiftId = new a.LongBits(e.relatedGiftId.low >>> 0, e.relatedGiftId.high >>> 0).toNumber())), null != e.offlineTimeSecond && (a.Long ? (t.offlineTimeSecond = a.Long.fromValue(e.offlineTimeSecond)).unsigned = !1 : "string" == typeof e.offlineTimeSecond ? t.offlineTimeSecond = parseInt(e.offlineTimeSecond, 10) : "number" == typeof e.offlineTimeSecond ? t.offlineTimeSecond = e.offlineTimeSecond : "object" == typeof e.offlineTimeSecond && (t.offlineTimeSecond = new a.LongBits(e.offlineTimeSecond.low >>> 0, e.offlineTimeSecond.high >>> 0).toNumber())), null != e.leftScores && (t.leftScores = 0 | e.leftScores), null != e.entranceSchemeUrl && (t.entranceSchemeUrl = String(e.entranceSchemeUrl)), null != e.entranceSchemeUrlQueryParams && (t.entranceSchemeUrlQueryParams = String(e.entranceSchemeUrlQueryParams)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.relatedGiftId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.relatedGiftId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.offlineTimeSecond = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.offlineTimeSecond = t.longs === String ? "0" : 0; + n.leftScores = 0, n.entranceSchemeUrl = "", n.entranceSchemeUrlQueryParams = "" + } + return null != e.relatedGiftId && e.hasOwnProperty("relatedGiftId") && ("number" == typeof e.relatedGiftId ? n.relatedGiftId = t.longs === String ? String(e.relatedGiftId) : e.relatedGiftId : n.relatedGiftId = t.longs === String ? a.Long.prototype.toString.call(e.relatedGiftId) : t.longs === Number ? new a.LongBits(e.relatedGiftId.low >>> 0, e.relatedGiftId.high >>> 0).toNumber() : e.relatedGiftId), null != e.offlineTimeSecond && e.hasOwnProperty("offlineTimeSecond") && ("number" == typeof e.offlineTimeSecond ? n.offlineTimeSecond = t.longs === String ? String(e.offlineTimeSecond) : e.offlineTimeSecond : n.offlineTimeSecond = t.longs === String ? a.Long.prototype.toString.call(e.offlineTimeSecond) : t.longs === Number ? new a.LongBits(e.offlineTimeSecond.low >>> 0, e.offlineTimeSecond.high >>> 0).toNumber() : e.offlineTimeSecond), null != e.leftScores && e.hasOwnProperty("leftScores") && (n.leftScores = e.leftScores), null != e.entranceSchemeUrl && e.hasOwnProperty("entranceSchemeUrl") && (n.entranceSchemeUrl = e.entranceSchemeUrl), null != e.entranceSchemeUrlQueryParams && e.hasOwnProperty("entranceSchemeUrlQueryParams") && (n.entranceSchemeUrlQueryParams = e.entranceSchemeUrlQueryParams), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.GiftStruct = function () + { + function e(e) + { + if (this.specialEffects = {}, this.subs = [], this.triggerWords = [], this.giftBuffInfos = [], this.assetIds = [], this.groupInfo = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.image = null, e.prototype.describe = "", e.prototype.notify = !1, e.prototype.duration = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.fansclubInfo = null, e.prototype.forLinkmic = !1, e.prototype.doodle = !1, e.prototype.forFansclub = !1, e.prototype.combo = !1, e.prototype.type = 0, e.prototype.diamondCount = 0, e.prototype.isDisplayedOnPanel = !1, e.prototype.primaryEffectId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.giftLabelIcon = null, e.prototype.name = "", e.prototype.region = "", e.prototype.manual = "", e.prototype.forCustom = !1, e.prototype.specialEffects = a.emptyObject, e.prototype.icon = null, e.prototype.actionType = 0, e.prototype.watermelonSeeds = 0, e.prototype.goldEffect = "", e.prototype.subs = a.emptyArray, e.prototype.goldenBeans = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.honorLevel = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.itemType = 0, e.prototype.schemeUrl = "", e.prototype.giftOperation = null, e.prototype.eventName = "", e.prototype.nobleLevel = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.guideUrl = "", e.prototype.punishMedicine = !1, e.prototype.forPortal = !1, e.prototype.businessText = "", e.prototype.cnyGift = !1, e.prototype.appId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.vipLevel = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.isGray = !1, e.prototype.graySchemeUrl = "", e.prototype.giftScene = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.giftBanner = null, e.prototype.triggerWords = a.emptyArray, e.prototype.giftBuffInfos = a.emptyArray, e.prototype.forFirstRecharge = !1, e.prototype.dynamicImgForSelected = null, e.prototype.afterSendAction = 0, e.prototype.giftOfflineTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.topBarText = "", e.prototype.topRightAvatar = null, e.prototype.bannerSchemeUrl = "", e.prototype.isLocked = !1, e.prototype.reqExtraType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.assetIds = a.emptyArray, e.prototype.giftPreviewInfo = null, e.prototype.giftTip = null, e.prototype.needSweepLightCount = 0, e.prototype.groupInfo = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.image && Object.hasOwnProperty.call(e, "image") && l.webcast.data.Image.encode(e.image, t.uint32(10).fork()).ldelim(), null != e.describe && Object.hasOwnProperty.call(e, "describe") && t.uint32(18).string(e.describe), null != e.notify && Object.hasOwnProperty.call(e, "notify") && t.uint32(24).bool(e.notify), null != e.duration && Object.hasOwnProperty.call(e, "duration") && t.uint32(32).int64(e.duration), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(40).int64(e.id), null != e.fansclubInfo && Object.hasOwnProperty.call(e, "fansclubInfo") && l.webcast.data.GiftStruct.GiftStructFansClubInfo.encode(e.fansclubInfo, t.uint32(50).fork()).ldelim(), null != e.forLinkmic && Object.hasOwnProperty.call(e, "forLinkmic") && t.uint32(56).bool(e.forLinkmic), null != e.doodle && Object.hasOwnProperty.call(e, "doodle") && t.uint32(64).bool(e.doodle), null != e.forFansclub && Object.hasOwnProperty.call(e, "forFansclub") && t.uint32(72).bool(e.forFansclub), null != e.combo && Object.hasOwnProperty.call(e, "combo") && t.uint32(80).bool(e.combo), null != e.type && Object.hasOwnProperty.call(e, "type") && t.uint32(88).int32(e.type), null != e.diamondCount && Object.hasOwnProperty.call(e, "diamondCount") && t.uint32(96).int32(e.diamondCount), null != e.isDisplayedOnPanel && Object.hasOwnProperty.call(e, "isDisplayedOnPanel") && t.uint32(104).bool(e.isDisplayedOnPanel), null != e.primaryEffectId && Object.hasOwnProperty.call(e, "primaryEffectId") && t.uint32(112).int64(e.primaryEffectId), null != e.giftLabelIcon && Object.hasOwnProperty.call(e, "giftLabelIcon") && l.webcast.data.Image.encode(e.giftLabelIcon, t.uint32(122).fork()).ldelim(), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(130).string(e.name), null != e.region && Object.hasOwnProperty.call(e, "region") && t.uint32(138).string(e.region), null != e.manual && Object.hasOwnProperty.call(e, "manual") && t.uint32(146).string(e.manual), null != e.forCustom && Object.hasOwnProperty.call(e, "forCustom") && t.uint32(152).bool(e.forCustom), null != e.specialEffects && Object.hasOwnProperty.call(e, "specialEffects")) + for (var n = Object.keys(e.specialEffects), r = 0; r < n.length; ++r) t.uint32(162).fork().uint32(10).string(n[r]).uint32(16).int64(e.specialEffects[n[r]]).ldelim(); + if (null != e.icon && Object.hasOwnProperty.call(e, "icon") && l.webcast.data.Image.encode(e.icon, t.uint32(170).fork()).ldelim(), null != e.actionType && Object.hasOwnProperty.call(e, "actionType") && t.uint32(176).int32(e.actionType), null != e.watermelonSeeds && Object.hasOwnProperty.call(e, "watermelonSeeds") && t.uint32(184).int32(e.watermelonSeeds), null != e.goldEffect && Object.hasOwnProperty.call(e, "goldEffect") && t.uint32(194).string(e.goldEffect), null != e.subs && e.subs.length) + for (r = 0; r < e.subs.length; ++r) l.webcast.data.LuckyMoneyGiftMeta.encode(e.subs[r], t.uint32(202).fork()).ldelim(); + if (null != e.goldenBeans && Object.hasOwnProperty.call(e, "goldenBeans") && t.uint32(208).int64(e.goldenBeans), null != e.honorLevel && Object.hasOwnProperty.call(e, "honorLevel") && t.uint32(216).int64(e.honorLevel), null != e.itemType && Object.hasOwnProperty.call(e, "itemType") && t.uint32(224).int32(e.itemType), null != e.schemeUrl && Object.hasOwnProperty.call(e, "schemeUrl") && t.uint32(234).string(e.schemeUrl), null != e.giftOperation && Object.hasOwnProperty.call(e, "giftOperation") && l.webcast.data.GiftPanelOperation.encode(e.giftOperation, t.uint32(242).fork()).ldelim(), null != e.eventName && Object.hasOwnProperty.call(e, "eventName") && t.uint32(250).string(e.eventName), null != e.nobleLevel && Object.hasOwnProperty.call(e, "nobleLevel") && t.uint32(256).int64(e.nobleLevel), null != e.guideUrl && Object.hasOwnProperty.call(e, "guideUrl") && t.uint32(266).string(e.guideUrl), null != e.punishMedicine && Object.hasOwnProperty.call(e, "punishMedicine") && t.uint32(272).bool(e.punishMedicine), null != e.forPortal && Object.hasOwnProperty.call(e, "forPortal") && t.uint32(280).bool(e.forPortal), null != e.businessText && Object.hasOwnProperty.call(e, "businessText") && t.uint32(290).string(e.businessText), null != e.cnyGift && Object.hasOwnProperty.call(e, "cnyGift") && t.uint32(296).bool(e.cnyGift), null != e.appId && Object.hasOwnProperty.call(e, "appId") && t.uint32(304).int64(e.appId), null != e.vipLevel && Object.hasOwnProperty.call(e, "vipLevel") && t.uint32(312).int64(e.vipLevel), null != e.isGray && Object.hasOwnProperty.call(e, "isGray") && t.uint32(320).bool(e.isGray), null != e.graySchemeUrl && Object.hasOwnProperty.call(e, "graySchemeUrl") && t.uint32(330).string(e.graySchemeUrl), null != e.giftScene && Object.hasOwnProperty.call(e, "giftScene") && t.uint32(336).int64(e.giftScene), null != e.giftBanner && Object.hasOwnProperty.call(e, "giftBanner") && l.webcast.data.GiftBanner.encode(e.giftBanner, t.uint32(346).fork()).ldelim(), null != e.triggerWords && e.triggerWords.length) + for (r = 0; r < e.triggerWords.length; ++r) t.uint32(354).string(e.triggerWords[r]); + if (null != e.giftBuffInfos && e.giftBuffInfos.length) + for (r = 0; r < e.giftBuffInfos.length; ++r) l.webcast.data.GiftBuffInfo.encode(e.giftBuffInfos[r], t.uint32(362).fork()).ldelim(); + if (null != e.forFirstRecharge && Object.hasOwnProperty.call(e, "forFirstRecharge") && t.uint32(368).bool(e.forFirstRecharge), null != e.dynamicImgForSelected && Object.hasOwnProperty.call(e, "dynamicImgForSelected") && l.webcast.data.Image.encode(e.dynamicImgForSelected, t.uint32(378).fork()).ldelim(), null != e.afterSendAction && Object.hasOwnProperty.call(e, "afterSendAction") && t.uint32(384).int32(e.afterSendAction), null != e.giftOfflineTime && Object.hasOwnProperty.call(e, "giftOfflineTime") && t.uint32(392).int64(e.giftOfflineTime), null != e.topBarText && Object.hasOwnProperty.call(e, "topBarText") && t.uint32(402).string(e.topBarText), null != e.topRightAvatar && Object.hasOwnProperty.call(e, "topRightAvatar") && l.webcast.data.Image.encode(e.topRightAvatar, t.uint32(410).fork()).ldelim(), null != e.bannerSchemeUrl && Object.hasOwnProperty.call(e, "bannerSchemeUrl") && t.uint32(418).string(e.bannerSchemeUrl), null != e.isLocked && Object.hasOwnProperty.call(e, "isLocked") && t.uint32(424).bool(e.isLocked), null != e.reqExtraType && Object.hasOwnProperty.call(e, "reqExtraType") && t.uint32(432).int64(e.reqExtraType), null != e.assetIds && e.assetIds.length) + { + t.uint32(442).fork(); + for (r = 0; r < e.assetIds.length; ++r) t.int64(e.assetIds[r]); + t.ldelim() + } + if (null != e.giftPreviewInfo && Object.hasOwnProperty.call(e, "giftPreviewInfo") && l.webcast.data.GiftPreviewInfo.encode(e.giftPreviewInfo, t.uint32(450).fork()).ldelim(), null != e.giftTip && Object.hasOwnProperty.call(e, "giftTip") && l.webcast.data.GiftTip.encode(e.giftTip, t.uint32(458).fork()).ldelim(), null != e.needSweepLightCount && Object.hasOwnProperty.call(e, "needSweepLightCount") && t.uint32(464).int32(e.needSweepLightCount), null != e.groupInfo && e.groupInfo.length) + for (r = 0; r < e.groupInfo.length; ++r) l.webcast.data.GiftGroupInfo.encode(e.groupInfo[r], t.uint32(474).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.GiftStruct; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.image = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + s.describe = e.string(); + break; + case 3: + s.notify = e.bool(); + break; + case 4: + s.duration = e.int64(); + break; + case 5: + s.id = e.int64(); + break; + case 6: + s.fansclubInfo = l.webcast.data.GiftStruct.GiftStructFansClubInfo.decode(e, e.uint32()); + break; + case 7: + s.forLinkmic = e.bool(); + break; + case 8: + s.doodle = e.bool(); + break; + case 9: + s.forFansclub = e.bool(); + break; + case 10: + s.combo = e.bool(); + break; + case 11: + s.type = e.int32(); + break; + case 12: + s.diamondCount = e.int32(); + break; + case 13: + s.isDisplayedOnPanel = e.bool(); + break; + case 14: + s.primaryEffectId = e.int64(); + break; + case 15: + s.giftLabelIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 16: + s.name = e.string(); + break; + case 17: + s.region = e.string(); + break; + case 18: + s.manual = e.string(); + break; + case 19: + s.forCustom = e.bool(); + break; + case 20: + s.specialEffects === a.emptyObject && (s.specialEffects = {}); + var u = e.uint32() + e.pos; + for (n = "", r = 0; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.int64(); + break; + default: + e.skipType(7 & p) + } + } + s.specialEffects[n] = r; + break; + case 21: + s.icon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 22: + s.actionType = e.int32(); + break; + case 23: + s.watermelonSeeds = e.int32(); + break; + case 24: + s.goldEffect = e.string(); + break; + case 25: + s.subs && s.subs.length || (s.subs = []), s.subs.push(l.webcast.data.LuckyMoneyGiftMeta.decode(e, e.uint32())); + break; + case 26: + s.goldenBeans = e.int64(); + break; + case 27: + s.honorLevel = e.int64(); + break; + case 28: + s.itemType = e.int32(); + break; + case 29: + s.schemeUrl = e.string(); + break; + case 30: + s.giftOperation = l.webcast.data.GiftPanelOperation.decode(e, e.uint32()); + break; + case 31: + s.eventName = e.string(); + break; + case 32: + s.nobleLevel = e.int64(); + break; + case 33: + s.guideUrl = e.string(); + break; + case 34: + s.punishMedicine = e.bool(); + break; + case 35: + s.forPortal = e.bool(); + break; + case 36: + s.businessText = e.string(); + break; + case 37: + s.cnyGift = e.bool(); + break; + case 38: + s.appId = e.int64(); + break; + case 39: + s.vipLevel = e.int64(); + break; + case 40: + s.isGray = e.bool(); + break; + case 41: + s.graySchemeUrl = e.string(); + break; + case 42: + s.giftScene = e.int64(); + break; + case 43: + s.giftBanner = l.webcast.data.GiftBanner.decode(e, e.uint32()); + break; + case 44: + s.triggerWords && s.triggerWords.length || (s.triggerWords = []), s.triggerWords.push(e.string()); + break; + case 45: + s.giftBuffInfos && s.giftBuffInfos.length || (s.giftBuffInfos = []), s.giftBuffInfos.push(l.webcast.data.GiftBuffInfo.decode(e, e.uint32())); + break; + case 46: + s.forFirstRecharge = e.bool(); + break; + case 47: + s.dynamicImgForSelected = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 48: + s.afterSendAction = e.int32(); + break; + case 49: + s.giftOfflineTime = e.int64(); + break; + case 50: + s.topBarText = e.string(); + break; + case 51: + s.topRightAvatar = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 52: + s.bannerSchemeUrl = e.string(); + break; + case 53: + s.isLocked = e.bool(); + break; + case 54: + s.reqExtraType = e.int64(); + break; + case 55: + if (s.assetIds && s.assetIds.length || (s.assetIds = []), 2 == (7 & c)) + for (u = e.uint32() + e.pos; e.pos < u;) s.assetIds.push(e.int64()); + else s.assetIds.push(e.int64()); + break; + case 56: + s.giftPreviewInfo = l.webcast.data.GiftPreviewInfo.decode(e, e.uint32()); + break; + case 57: + s.giftTip = l.webcast.data.GiftTip.decode(e, e.uint32()); + break; + case 58: + s.needSweepLightCount = e.int32(); + break; + case 59: + s.groupInfo && s.groupInfo.length || (s.groupInfo = []), s.groupInfo.push(l.webcast.data.GiftGroupInfo.decode(e, e.uint32())); + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.image && e.hasOwnProperty("image") && (r = l.webcast.data.Image.verify(e.image))) return "image." + r; + if (null != e.describe && e.hasOwnProperty("describe") && !a.isString(e.describe)) return "describe: string expected"; + if (null != e.notify && e.hasOwnProperty("notify") && "boolean" != typeof e.notify) return "notify: boolean expected"; + if (null != e.duration && e.hasOwnProperty("duration") && !(a.isInteger(e.duration) || e.duration && a.isInteger(e.duration.low) && a.isInteger(e.duration.high))) return "duration: integer|Long expected"; + if (null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high))) return "id: integer|Long expected"; + if (null != e.fansclubInfo && e.hasOwnProperty("fansclubInfo") && (r = l.webcast.data.GiftStruct.GiftStructFansClubInfo.verify(e.fansclubInfo))) return "fansclubInfo." + r; + if (null != e.forLinkmic && e.hasOwnProperty("forLinkmic") && "boolean" != typeof e.forLinkmic) return "forLinkmic: boolean expected"; + if (null != e.doodle && e.hasOwnProperty("doodle") && "boolean" != typeof e.doodle) return "doodle: boolean expected"; + if (null != e.forFansclub && e.hasOwnProperty("forFansclub") && "boolean" != typeof e.forFansclub) return "forFansclub: boolean expected"; + if (null != e.combo && e.hasOwnProperty("combo") && "boolean" != typeof e.combo) return "combo: boolean expected"; + if (null != e.type && e.hasOwnProperty("type") && !a.isInteger(e.type)) return "type: integer expected"; + if (null != e.diamondCount && e.hasOwnProperty("diamondCount") && !a.isInteger(e.diamondCount)) return "diamondCount: integer expected"; + if (null != e.isDisplayedOnPanel && e.hasOwnProperty("isDisplayedOnPanel") && "boolean" != typeof e.isDisplayedOnPanel) return "isDisplayedOnPanel: boolean expected"; + if (null != e.primaryEffectId && e.hasOwnProperty("primaryEffectId") && !(a.isInteger(e.primaryEffectId) || e.primaryEffectId && a.isInteger(e.primaryEffectId.low) && a.isInteger(e.primaryEffectId.high))) return "primaryEffectId: integer|Long expected"; + if (null != e.giftLabelIcon && e.hasOwnProperty("giftLabelIcon") && (r = l.webcast.data.Image.verify(e.giftLabelIcon))) return "giftLabelIcon." + r; + if (null != e.name && e.hasOwnProperty("name") && !a.isString(e.name)) return "name: string expected"; + if (null != e.region && e.hasOwnProperty("region") && !a.isString(e.region)) return "region: string expected"; + if (null != e.manual && e.hasOwnProperty("manual") && !a.isString(e.manual)) return "manual: string expected"; + if (null != e.forCustom && e.hasOwnProperty("forCustom") && "boolean" != typeof e.forCustom) return "forCustom: boolean expected"; + if (null != e.specialEffects && e.hasOwnProperty("specialEffects")) + { + if (!a.isObject(e.specialEffects)) return "specialEffects: object expected"; + for (var t = Object.keys(e.specialEffects), n = 0; n < t.length; ++n) + if (!(a.isInteger(e.specialEffects[t[n]]) || e.specialEffects[t[n]] && a.isInteger(e.specialEffects[t[n]].low) && a.isInteger(e.specialEffects[t[n]].high))) return "specialEffects: integer|Long{k:string} expected" + } + if (null != e.icon && e.hasOwnProperty("icon") && (r = l.webcast.data.Image.verify(e.icon))) return "icon." + r; + if (null != e.actionType && e.hasOwnProperty("actionType") && !a.isInteger(e.actionType)) return "actionType: integer expected"; + if (null != e.watermelonSeeds && e.hasOwnProperty("watermelonSeeds") && !a.isInteger(e.watermelonSeeds)) return "watermelonSeeds: integer expected"; + if (null != e.goldEffect && e.hasOwnProperty("goldEffect") && !a.isString(e.goldEffect)) return "goldEffect: string expected"; + if (null != e.subs && e.hasOwnProperty("subs")) + { + if (!Array.isArray(e.subs)) return "subs: array expected"; + for (n = 0; n < e.subs.length; ++n) + { + if (r = l.webcast.data.LuckyMoneyGiftMeta.verify(e.subs[n])) return "subs." + r + } + } + if (null != e.goldenBeans && e.hasOwnProperty("goldenBeans") && !(a.isInteger(e.goldenBeans) || e.goldenBeans && a.isInteger(e.goldenBeans.low) && a.isInteger(e.goldenBeans.high))) return "goldenBeans: integer|Long expected"; + if (null != e.honorLevel && e.hasOwnProperty("honorLevel") && !(a.isInteger(e.honorLevel) || e.honorLevel && a.isInteger(e.honorLevel.low) && a.isInteger(e.honorLevel.high))) return "honorLevel: integer|Long expected"; + if (null != e.itemType && e.hasOwnProperty("itemType") && !a.isInteger(e.itemType)) return "itemType: integer expected"; + if (null != e.schemeUrl && e.hasOwnProperty("schemeUrl") && !a.isString(e.schemeUrl)) return "schemeUrl: string expected"; + if (null != e.giftOperation && e.hasOwnProperty("giftOperation") && (r = l.webcast.data.GiftPanelOperation.verify(e.giftOperation))) return "giftOperation." + r; + if (null != e.eventName && e.hasOwnProperty("eventName") && !a.isString(e.eventName)) return "eventName: string expected"; + if (null != e.nobleLevel && e.hasOwnProperty("nobleLevel") && !(a.isInteger(e.nobleLevel) || e.nobleLevel && a.isInteger(e.nobleLevel.low) && a.isInteger(e.nobleLevel.high))) return "nobleLevel: integer|Long expected"; + if (null != e.guideUrl && e.hasOwnProperty("guideUrl") && !a.isString(e.guideUrl)) return "guideUrl: string expected"; + if (null != e.punishMedicine && e.hasOwnProperty("punishMedicine") && "boolean" != typeof e.punishMedicine) return "punishMedicine: boolean expected"; + if (null != e.forPortal && e.hasOwnProperty("forPortal") && "boolean" != typeof e.forPortal) return "forPortal: boolean expected"; + if (null != e.businessText && e.hasOwnProperty("businessText") && !a.isString(e.businessText)) return "businessText: string expected"; + if (null != e.cnyGift && e.hasOwnProperty("cnyGift") && "boolean" != typeof e.cnyGift) return "cnyGift: boolean expected"; + if (null != e.appId && e.hasOwnProperty("appId") && !(a.isInteger(e.appId) || e.appId && a.isInteger(e.appId.low) && a.isInteger(e.appId.high))) return "appId: integer|Long expected"; + if (null != e.vipLevel && e.hasOwnProperty("vipLevel") && !(a.isInteger(e.vipLevel) || e.vipLevel && a.isInteger(e.vipLevel.low) && a.isInteger(e.vipLevel.high))) return "vipLevel: integer|Long expected"; + if (null != e.isGray && e.hasOwnProperty("isGray") && "boolean" != typeof e.isGray) return "isGray: boolean expected"; + if (null != e.graySchemeUrl && e.hasOwnProperty("graySchemeUrl") && !a.isString(e.graySchemeUrl)) return "graySchemeUrl: string expected"; + if (null != e.giftScene && e.hasOwnProperty("giftScene") && !(a.isInteger(e.giftScene) || e.giftScene && a.isInteger(e.giftScene.low) && a.isInteger(e.giftScene.high))) return "giftScene: integer|Long expected"; + if (null != e.giftBanner && e.hasOwnProperty("giftBanner") && (r = l.webcast.data.GiftBanner.verify(e.giftBanner))) return "giftBanner." + r; + if (null != e.triggerWords && e.hasOwnProperty("triggerWords")) + { + if (!Array.isArray(e.triggerWords)) return "triggerWords: array expected"; + for (n = 0; n < e.triggerWords.length; ++n) + if (!a.isString(e.triggerWords[n])) return "triggerWords: string[] expected" + } + if (null != e.giftBuffInfos && e.hasOwnProperty("giftBuffInfos")) + { + if (!Array.isArray(e.giftBuffInfos)) return "giftBuffInfos: array expected"; + for (n = 0; n < e.giftBuffInfos.length; ++n) + { + if (r = l.webcast.data.GiftBuffInfo.verify(e.giftBuffInfos[n])) return "giftBuffInfos." + r + } + } + if (null != e.forFirstRecharge && e.hasOwnProperty("forFirstRecharge") && "boolean" != typeof e.forFirstRecharge) return "forFirstRecharge: boolean expected"; + if (null != e.dynamicImgForSelected && e.hasOwnProperty("dynamicImgForSelected") && (r = l.webcast.data.Image.verify(e.dynamicImgForSelected))) return "dynamicImgForSelected." + r; + if (null != e.afterSendAction && e.hasOwnProperty("afterSendAction")) switch (e.afterSendAction) + { + default: + return "afterSendAction: enum value expected"; + case 0: + case 1: + } + if (null != e.giftOfflineTime && e.hasOwnProperty("giftOfflineTime") && !(a.isInteger(e.giftOfflineTime) || e.giftOfflineTime && a.isInteger(e.giftOfflineTime.low) && a.isInteger(e.giftOfflineTime.high))) return "giftOfflineTime: integer|Long expected"; + if (null != e.topBarText && e.hasOwnProperty("topBarText") && !a.isString(e.topBarText)) return "topBarText: string expected"; + if (null != e.topRightAvatar && e.hasOwnProperty("topRightAvatar") && (r = l.webcast.data.Image.verify(e.topRightAvatar))) return "topRightAvatar." + r; + if (null != e.bannerSchemeUrl && e.hasOwnProperty("bannerSchemeUrl") && !a.isString(e.bannerSchemeUrl)) return "bannerSchemeUrl: string expected"; + if (null != e.isLocked && e.hasOwnProperty("isLocked") && "boolean" != typeof e.isLocked) return "isLocked: boolean expected"; + if (null != e.reqExtraType && e.hasOwnProperty("reqExtraType") && !(a.isInteger(e.reqExtraType) || e.reqExtraType && a.isInteger(e.reqExtraType.low) && a.isInteger(e.reqExtraType.high))) return "reqExtraType: integer|Long expected"; + if (null != e.assetIds && e.hasOwnProperty("assetIds")) + { + if (!Array.isArray(e.assetIds)) return "assetIds: array expected"; + for (n = 0; n < e.assetIds.length; ++n) + if (!(a.isInteger(e.assetIds[n]) || e.assetIds[n] && a.isInteger(e.assetIds[n].low) && a.isInteger(e.assetIds[n].high))) return "assetIds: integer|Long[] expected" + } + if (null != e.giftPreviewInfo && e.hasOwnProperty("giftPreviewInfo") && (r = l.webcast.data.GiftPreviewInfo.verify(e.giftPreviewInfo))) return "giftPreviewInfo." + r; + if (null != e.giftTip && e.hasOwnProperty("giftTip") && (r = l.webcast.data.GiftTip.verify(e.giftTip))) return "giftTip." + r; + if (null != e.needSweepLightCount && e.hasOwnProperty("needSweepLightCount") && !a.isInteger(e.needSweepLightCount)) return "needSweepLightCount: integer expected"; + if (null != e.groupInfo && e.hasOwnProperty("groupInfo")) + { + if (!Array.isArray(e.groupInfo)) return "groupInfo: array expected"; + for (n = 0; n < e.groupInfo.length; ++n) + { + var r; + if (r = l.webcast.data.GiftGroupInfo.verify(e.groupInfo[n])) return "groupInfo." + r + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GiftStruct) return e; + var t = new l.webcast.data.GiftStruct; + if (null != e.image) + { + if ("object" != typeof e.image) throw TypeError(".webcast.data.GiftStruct.image: object expected"); + t.image = l.webcast.data.Image.fromObject(e.image) + } + if (null != e.describe && (t.describe = String(e.describe)), null != e.notify && (t.notify = Boolean(e.notify)), null != e.duration && (a.Long ? (t.duration = a.Long.fromValue(e.duration)).unsigned = !1 : "string" == typeof e.duration ? t.duration = parseInt(e.duration, 10) : "number" == typeof e.duration ? t.duration = e.duration : "object" == typeof e.duration && (t.duration = new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber())), null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), null != e.fansclubInfo) + { + if ("object" != typeof e.fansclubInfo) throw TypeError(".webcast.data.GiftStruct.fansclubInfo: object expected"); + t.fansclubInfo = l.webcast.data.GiftStruct.GiftStructFansClubInfo.fromObject(e.fansclubInfo) + } + if (null != e.forLinkmic && (t.forLinkmic = Boolean(e.forLinkmic)), null != e.doodle && (t.doodle = Boolean(e.doodle)), null != e.forFansclub && (t.forFansclub = Boolean(e.forFansclub)), null != e.combo && (t.combo = Boolean(e.combo)), null != e.type && (t.type = 0 | e.type), null != e.diamondCount && (t.diamondCount = 0 | e.diamondCount), null != e.isDisplayedOnPanel && (t.isDisplayedOnPanel = Boolean(e.isDisplayedOnPanel)), null != e.primaryEffectId && (a.Long ? (t.primaryEffectId = a.Long.fromValue(e.primaryEffectId)).unsigned = !1 : "string" == typeof e.primaryEffectId ? t.primaryEffectId = parseInt(e.primaryEffectId, 10) : "number" == typeof e.primaryEffectId ? t.primaryEffectId = e.primaryEffectId : "object" == typeof e.primaryEffectId && (t.primaryEffectId = new a.LongBits(e.primaryEffectId.low >>> 0, e.primaryEffectId.high >>> 0).toNumber())), null != e.giftLabelIcon) + { + if ("object" != typeof e.giftLabelIcon) throw TypeError(".webcast.data.GiftStruct.giftLabelIcon: object expected"); + t.giftLabelIcon = l.webcast.data.Image.fromObject(e.giftLabelIcon) + } + if (null != e.name && (t.name = String(e.name)), null != e.region && (t.region = String(e.region)), null != e.manual && (t.manual = String(e.manual)), null != e.forCustom && (t.forCustom = Boolean(e.forCustom)), e.specialEffects) + { + if ("object" != typeof e.specialEffects) throw TypeError(".webcast.data.GiftStruct.specialEffects: object expected"); + t.specialEffects = {}; + for (var n = Object.keys(e.specialEffects), r = 0; r < n.length; ++r) a.Long ? (t.specialEffects[n[r]] = a.Long.fromValue(e.specialEffects[n[r]])).unsigned = !1 : "string" == typeof e.specialEffects[n[r]] ? t.specialEffects[n[r]] = parseInt(e.specialEffects[n[r]], 10) : "number" == typeof e.specialEffects[n[r]] ? t.specialEffects[n[r]] = e.specialEffects[n[r]] : "object" == typeof e.specialEffects[n[r]] && (t.specialEffects[n[r]] = new a.LongBits(e.specialEffects[n[r]].low >>> 0, e.specialEffects[n[r]].high >>> 0).toNumber()) + } + if (null != e.icon) + { + if ("object" != typeof e.icon) throw TypeError(".webcast.data.GiftStruct.icon: object expected"); + t.icon = l.webcast.data.Image.fromObject(e.icon) + } + if (null != e.actionType && (t.actionType = 0 | e.actionType), null != e.watermelonSeeds && (t.watermelonSeeds = 0 | e.watermelonSeeds), null != e.goldEffect && (t.goldEffect = String(e.goldEffect)), e.subs) + { + if (!Array.isArray(e.subs)) throw TypeError(".webcast.data.GiftStruct.subs: array expected"); + t.subs = []; + for (r = 0; r < e.subs.length; ++r) + { + if ("object" != typeof e.subs[r]) throw TypeError(".webcast.data.GiftStruct.subs: object expected"); + t.subs[r] = l.webcast.data.LuckyMoneyGiftMeta.fromObject(e.subs[r]) + } + } + if (null != e.goldenBeans && (a.Long ? (t.goldenBeans = a.Long.fromValue(e.goldenBeans)).unsigned = !1 : "string" == typeof e.goldenBeans ? t.goldenBeans = parseInt(e.goldenBeans, 10) : "number" == typeof e.goldenBeans ? t.goldenBeans = e.goldenBeans : "object" == typeof e.goldenBeans && (t.goldenBeans = new a.LongBits(e.goldenBeans.low >>> 0, e.goldenBeans.high >>> 0).toNumber())), null != e.honorLevel && (a.Long ? (t.honorLevel = a.Long.fromValue(e.honorLevel)).unsigned = !1 : "string" == typeof e.honorLevel ? t.honorLevel = parseInt(e.honorLevel, 10) : "number" == typeof e.honorLevel ? t.honorLevel = e.honorLevel : "object" == typeof e.honorLevel && (t.honorLevel = new a.LongBits(e.honorLevel.low >>> 0, e.honorLevel.high >>> 0).toNumber())), null != e.itemType && (t.itemType = 0 | e.itemType), null != e.schemeUrl && (t.schemeUrl = String(e.schemeUrl)), null != e.giftOperation) + { + if ("object" != typeof e.giftOperation) throw TypeError(".webcast.data.GiftStruct.giftOperation: object expected"); + t.giftOperation = l.webcast.data.GiftPanelOperation.fromObject(e.giftOperation) + } + if (null != e.eventName && (t.eventName = String(e.eventName)), null != e.nobleLevel && (a.Long ? (t.nobleLevel = a.Long.fromValue(e.nobleLevel)).unsigned = !1 : "string" == typeof e.nobleLevel ? t.nobleLevel = parseInt(e.nobleLevel, 10) : "number" == typeof e.nobleLevel ? t.nobleLevel = e.nobleLevel : "object" == typeof e.nobleLevel && (t.nobleLevel = new a.LongBits(e.nobleLevel.low >>> 0, e.nobleLevel.high >>> 0).toNumber())), null != e.guideUrl && (t.guideUrl = String(e.guideUrl)), null != e.punishMedicine && (t.punishMedicine = Boolean(e.punishMedicine)), null != e.forPortal && (t.forPortal = Boolean(e.forPortal)), null != e.businessText && (t.businessText = String(e.businessText)), null != e.cnyGift && (t.cnyGift = Boolean(e.cnyGift)), null != e.appId && (a.Long ? (t.appId = a.Long.fromValue(e.appId)).unsigned = !1 : "string" == typeof e.appId ? t.appId = parseInt(e.appId, 10) : "number" == typeof e.appId ? t.appId = e.appId : "object" == typeof e.appId && (t.appId = new a.LongBits(e.appId.low >>> 0, e.appId.high >>> 0).toNumber())), null != e.vipLevel && (a.Long ? (t.vipLevel = a.Long.fromValue(e.vipLevel)).unsigned = !1 : "string" == typeof e.vipLevel ? t.vipLevel = parseInt(e.vipLevel, 10) : "number" == typeof e.vipLevel ? t.vipLevel = e.vipLevel : "object" == typeof e.vipLevel && (t.vipLevel = new a.LongBits(e.vipLevel.low >>> 0, e.vipLevel.high >>> 0).toNumber())), null != e.isGray && (t.isGray = Boolean(e.isGray)), null != e.graySchemeUrl && (t.graySchemeUrl = String(e.graySchemeUrl)), null != e.giftScene && (a.Long ? (t.giftScene = a.Long.fromValue(e.giftScene)).unsigned = !1 : "string" == typeof e.giftScene ? t.giftScene = parseInt(e.giftScene, 10) : "number" == typeof e.giftScene ? t.giftScene = e.giftScene : "object" == typeof e.giftScene && (t.giftScene = new a.LongBits(e.giftScene.low >>> 0, e.giftScene.high >>> 0).toNumber())), null != e.giftBanner) + { + if ("object" != typeof e.giftBanner) throw TypeError(".webcast.data.GiftStruct.giftBanner: object expected"); + t.giftBanner = l.webcast.data.GiftBanner.fromObject(e.giftBanner) + } + if (e.triggerWords) + { + if (!Array.isArray(e.triggerWords)) throw TypeError(".webcast.data.GiftStruct.triggerWords: array expected"); + t.triggerWords = []; + for (r = 0; r < e.triggerWords.length; ++r) t.triggerWords[r] = String(e.triggerWords[r]) + } + if (e.giftBuffInfos) + { + if (!Array.isArray(e.giftBuffInfos)) throw TypeError(".webcast.data.GiftStruct.giftBuffInfos: array expected"); + t.giftBuffInfos = []; + for (r = 0; r < e.giftBuffInfos.length; ++r) + { + if ("object" != typeof e.giftBuffInfos[r]) throw TypeError(".webcast.data.GiftStruct.giftBuffInfos: object expected"); + t.giftBuffInfos[r] = l.webcast.data.GiftBuffInfo.fromObject(e.giftBuffInfos[r]) + } + } + if (null != e.forFirstRecharge && (t.forFirstRecharge = Boolean(e.forFirstRecharge)), null != e.dynamicImgForSelected) + { + if ("object" != typeof e.dynamicImgForSelected) throw TypeError(".webcast.data.GiftStruct.dynamicImgForSelected: object expected"); + t.dynamicImgForSelected = l.webcast.data.Image.fromObject(e.dynamicImgForSelected) + } + switch (e.afterSendAction) + { + case "ActionDefault": + case 0: + t.afterSendAction = 0; + break; + case "ActionCloseCombo": + case 1: + t.afterSendAction = 1 + } + if (null != e.giftOfflineTime && (a.Long ? (t.giftOfflineTime = a.Long.fromValue(e.giftOfflineTime)).unsigned = !1 : "string" == typeof e.giftOfflineTime ? t.giftOfflineTime = parseInt(e.giftOfflineTime, 10) : "number" == typeof e.giftOfflineTime ? t.giftOfflineTime = e.giftOfflineTime : "object" == typeof e.giftOfflineTime && (t.giftOfflineTime = new a.LongBits(e.giftOfflineTime.low >>> 0, e.giftOfflineTime.high >>> 0).toNumber())), null != e.topBarText && (t.topBarText = String(e.topBarText)), null != e.topRightAvatar) + { + if ("object" != typeof e.topRightAvatar) throw TypeError(".webcast.data.GiftStruct.topRightAvatar: object expected"); + t.topRightAvatar = l.webcast.data.Image.fromObject(e.topRightAvatar) + } + if (null != e.bannerSchemeUrl && (t.bannerSchemeUrl = String(e.bannerSchemeUrl)), null != e.isLocked && (t.isLocked = Boolean(e.isLocked)), null != e.reqExtraType && (a.Long ? (t.reqExtraType = a.Long.fromValue(e.reqExtraType)).unsigned = !1 : "string" == typeof e.reqExtraType ? t.reqExtraType = parseInt(e.reqExtraType, 10) : "number" == typeof e.reqExtraType ? t.reqExtraType = e.reqExtraType : "object" == typeof e.reqExtraType && (t.reqExtraType = new a.LongBits(e.reqExtraType.low >>> 0, e.reqExtraType.high >>> 0).toNumber())), e.assetIds) + { + if (!Array.isArray(e.assetIds)) throw TypeError(".webcast.data.GiftStruct.assetIds: array expected"); + t.assetIds = []; + for (r = 0; r < e.assetIds.length; ++r) a.Long ? (t.assetIds[r] = a.Long.fromValue(e.assetIds[r])).unsigned = !1 : "string" == typeof e.assetIds[r] ? t.assetIds[r] = parseInt(e.assetIds[r], 10) : "number" == typeof e.assetIds[r] ? t.assetIds[r] = e.assetIds[r] : "object" == typeof e.assetIds[r] && (t.assetIds[r] = new a.LongBits(e.assetIds[r].low >>> 0, e.assetIds[r].high >>> 0).toNumber()) + } + if (null != e.giftPreviewInfo) + { + if ("object" != typeof e.giftPreviewInfo) throw TypeError(".webcast.data.GiftStruct.giftPreviewInfo: object expected"); + t.giftPreviewInfo = l.webcast.data.GiftPreviewInfo.fromObject(e.giftPreviewInfo) + } + if (null != e.giftTip) + { + if ("object" != typeof e.giftTip) throw TypeError(".webcast.data.GiftStruct.giftTip: object expected"); + t.giftTip = l.webcast.data.GiftTip.fromObject(e.giftTip) + } + if (null != e.needSweepLightCount && (t.needSweepLightCount = 0 | e.needSweepLightCount), e.groupInfo) + { + if (!Array.isArray(e.groupInfo)) throw TypeError(".webcast.data.GiftStruct.groupInfo: array expected"); + t.groupInfo = []; + for (r = 0; r < e.groupInfo.length; ++r) + { + if ("object" != typeof e.groupInfo[r]) throw TypeError(".webcast.data.GiftStruct.groupInfo: object expected"); + t.groupInfo[r] = l.webcast.data.GiftGroupInfo.fromObject(e.groupInfo[r]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.arrays || t.defaults) && (r.subs = [], r.triggerWords = [], r.giftBuffInfos = [], r.assetIds = [], r.groupInfo = []), (t.objects || t.defaults) && (r.specialEffects = {}), t.defaults) + { + if (r.image = null, r.describe = "", r.notify = !1, a.Long) + { + var o = new a.Long(0, 0, !1); + r.duration = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.duration = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.id = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.id = t.longs === String ? "0" : 0; + if (r.fansclubInfo = null, r.forLinkmic = !1, r.doodle = !1, r.forFansclub = !1, r.combo = !1, r.type = 0, r.diamondCount = 0, r.isDisplayedOnPanel = !1, a.Long) + { + o = new a.Long(0, 0, !1); + r.primaryEffectId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.primaryEffectId = t.longs === String ? "0" : 0; + if (r.giftLabelIcon = null, r.name = "", r.region = "", r.manual = "", r.forCustom = !1, r.icon = null, r.actionType = 0, r.watermelonSeeds = 0, r.goldEffect = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.goldenBeans = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.goldenBeans = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.honorLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.honorLevel = t.longs === String ? "0" : 0; + if (r.itemType = 0, r.schemeUrl = "", r.giftOperation = null, r.eventName = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.nobleLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.nobleLevel = t.longs === String ? "0" : 0; + if (r.guideUrl = "", r.punishMedicine = !1, r.forPortal = !1, r.businessText = "", r.cnyGift = !1, a.Long) + { + o = new a.Long(0, 0, !1); + r.appId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.appId = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.vipLevel = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.vipLevel = t.longs === String ? "0" : 0; + if (r.isGray = !1, r.graySchemeUrl = "", a.Long) + { + o = new a.Long(0, 0, !1); + r.giftScene = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.giftScene = t.longs === String ? "0" : 0; + if (r.giftBanner = null, r.forFirstRecharge = !1, r.dynamicImgForSelected = null, r.afterSendAction = t.enums === String ? "ActionDefault" : 0, a.Long) + { + o = new a.Long(0, 0, !1); + r.giftOfflineTime = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.giftOfflineTime = t.longs === String ? "0" : 0; + if (r.topBarText = "", r.topRightAvatar = null, r.bannerSchemeUrl = "", r.isLocked = !1, a.Long) + { + o = new a.Long(0, 0, !1); + r.reqExtraType = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.reqExtraType = t.longs === String ? "0" : 0; + r.giftPreviewInfo = null, r.giftTip = null, r.needSweepLightCount = 0 + } + if (null != e.image && e.hasOwnProperty("image") && (r.image = l.webcast.data.Image.toObject(e.image, t)), null != e.describe && e.hasOwnProperty("describe") && (r.describe = e.describe), null != e.notify && e.hasOwnProperty("notify") && (r.notify = e.notify), null != e.duration && e.hasOwnProperty("duration") && ("number" == typeof e.duration ? r.duration = t.longs === String ? String(e.duration) : e.duration : r.duration = t.longs === String ? a.Long.prototype.toString.call(e.duration) : t.longs === Number ? new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber() : e.duration), null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? r.id = t.longs === String ? String(e.id) : e.id : r.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), null != e.fansclubInfo && e.hasOwnProperty("fansclubInfo") && (r.fansclubInfo = l.webcast.data.GiftStruct.GiftStructFansClubInfo.toObject(e.fansclubInfo, t)), null != e.forLinkmic && e.hasOwnProperty("forLinkmic") && (r.forLinkmic = e.forLinkmic), null != e.doodle && e.hasOwnProperty("doodle") && (r.doodle = e.doodle), null != e.forFansclub && e.hasOwnProperty("forFansclub") && (r.forFansclub = e.forFansclub), null != e.combo && e.hasOwnProperty("combo") && (r.combo = e.combo), null != e.type && e.hasOwnProperty("type") && (r.type = e.type), null != e.diamondCount && e.hasOwnProperty("diamondCount") && (r.diamondCount = e.diamondCount), null != e.isDisplayedOnPanel && e.hasOwnProperty("isDisplayedOnPanel") && (r.isDisplayedOnPanel = e.isDisplayedOnPanel), null != e.primaryEffectId && e.hasOwnProperty("primaryEffectId") && ("number" == typeof e.primaryEffectId ? r.primaryEffectId = t.longs === String ? String(e.primaryEffectId) : e.primaryEffectId : r.primaryEffectId = t.longs === String ? a.Long.prototype.toString.call(e.primaryEffectId) : t.longs === Number ? new a.LongBits(e.primaryEffectId.low >>> 0, e.primaryEffectId.high >>> 0).toNumber() : e.primaryEffectId), null != e.giftLabelIcon && e.hasOwnProperty("giftLabelIcon") && (r.giftLabelIcon = l.webcast.data.Image.toObject(e.giftLabelIcon, t)), null != e.name && e.hasOwnProperty("name") && (r.name = e.name), null != e.region && e.hasOwnProperty("region") && (r.region = e.region), null != e.manual && e.hasOwnProperty("manual") && (r.manual = e.manual), null != e.forCustom && e.hasOwnProperty("forCustom") && (r.forCustom = e.forCustom), e.specialEffects && (n = Object.keys(e.specialEffects)).length) + { + r.specialEffects = {}; + for (var i = 0; i < n.length; ++i) "number" == typeof e.specialEffects[n[i]] ? r.specialEffects[n[i]] = t.longs === String ? String(e.specialEffects[n[i]]) : e.specialEffects[n[i]] : r.specialEffects[n[i]] = t.longs === String ? a.Long.prototype.toString.call(e.specialEffects[n[i]]) : t.longs === Number ? new a.LongBits(e.specialEffects[n[i]].low >>> 0, e.specialEffects[n[i]].high >>> 0).toNumber() : e.specialEffects[n[i]] + } + if (null != e.icon && e.hasOwnProperty("icon") && (r.icon = l.webcast.data.Image.toObject(e.icon, t)), null != e.actionType && e.hasOwnProperty("actionType") && (r.actionType = e.actionType), null != e.watermelonSeeds && e.hasOwnProperty("watermelonSeeds") && (r.watermelonSeeds = e.watermelonSeeds), null != e.goldEffect && e.hasOwnProperty("goldEffect") && (r.goldEffect = e.goldEffect), e.subs && e.subs.length) + { + r.subs = []; + for (i = 0; i < e.subs.length; ++i) r.subs[i] = l.webcast.data.LuckyMoneyGiftMeta.toObject(e.subs[i], t) + } + if (null != e.goldenBeans && e.hasOwnProperty("goldenBeans") && ("number" == typeof e.goldenBeans ? r.goldenBeans = t.longs === String ? String(e.goldenBeans) : e.goldenBeans : r.goldenBeans = t.longs === String ? a.Long.prototype.toString.call(e.goldenBeans) : t.longs === Number ? new a.LongBits(e.goldenBeans.low >>> 0, e.goldenBeans.high >>> 0).toNumber() : e.goldenBeans), null != e.honorLevel && e.hasOwnProperty("honorLevel") && ("number" == typeof e.honorLevel ? r.honorLevel = t.longs === String ? String(e.honorLevel) : e.honorLevel : r.honorLevel = t.longs === String ? a.Long.prototype.toString.call(e.honorLevel) : t.longs === Number ? new a.LongBits(e.honorLevel.low >>> 0, e.honorLevel.high >>> 0).toNumber() : e.honorLevel), null != e.itemType && e.hasOwnProperty("itemType") && (r.itemType = e.itemType), null != e.schemeUrl && e.hasOwnProperty("schemeUrl") && (r.schemeUrl = e.schemeUrl), null != e.giftOperation && e.hasOwnProperty("giftOperation") && (r.giftOperation = l.webcast.data.GiftPanelOperation.toObject(e.giftOperation, t)), null != e.eventName && e.hasOwnProperty("eventName") && (r.eventName = e.eventName), null != e.nobleLevel && e.hasOwnProperty("nobleLevel") && ("number" == typeof e.nobleLevel ? r.nobleLevel = t.longs === String ? String(e.nobleLevel) : e.nobleLevel : r.nobleLevel = t.longs === String ? a.Long.prototype.toString.call(e.nobleLevel) : t.longs === Number ? new a.LongBits(e.nobleLevel.low >>> 0, e.nobleLevel.high >>> 0).toNumber() : e.nobleLevel), null != e.guideUrl && e.hasOwnProperty("guideUrl") && (r.guideUrl = e.guideUrl), null != e.punishMedicine && e.hasOwnProperty("punishMedicine") && (r.punishMedicine = e.punishMedicine), null != e.forPortal && e.hasOwnProperty("forPortal") && (r.forPortal = e.forPortal), null != e.businessText && e.hasOwnProperty("businessText") && (r.businessText = e.businessText), null != e.cnyGift && e.hasOwnProperty("cnyGift") && (r.cnyGift = e.cnyGift), null != e.appId && e.hasOwnProperty("appId") && ("number" == typeof e.appId ? r.appId = t.longs === String ? String(e.appId) : e.appId : r.appId = t.longs === String ? a.Long.prototype.toString.call(e.appId) : t.longs === Number ? new a.LongBits(e.appId.low >>> 0, e.appId.high >>> 0).toNumber() : e.appId), null != e.vipLevel && e.hasOwnProperty("vipLevel") && ("number" == typeof e.vipLevel ? r.vipLevel = t.longs === String ? String(e.vipLevel) : e.vipLevel : r.vipLevel = t.longs === String ? a.Long.prototype.toString.call(e.vipLevel) : t.longs === Number ? new a.LongBits(e.vipLevel.low >>> 0, e.vipLevel.high >>> 0).toNumber() : e.vipLevel), null != e.isGray && e.hasOwnProperty("isGray") && (r.isGray = e.isGray), null != e.graySchemeUrl && e.hasOwnProperty("graySchemeUrl") && (r.graySchemeUrl = e.graySchemeUrl), null != e.giftScene && e.hasOwnProperty("giftScene") && ("number" == typeof e.giftScene ? r.giftScene = t.longs === String ? String(e.giftScene) : e.giftScene : r.giftScene = t.longs === String ? a.Long.prototype.toString.call(e.giftScene) : t.longs === Number ? new a.LongBits(e.giftScene.low >>> 0, e.giftScene.high >>> 0).toNumber() : e.giftScene), null != e.giftBanner && e.hasOwnProperty("giftBanner") && (r.giftBanner = l.webcast.data.GiftBanner.toObject(e.giftBanner, t)), e.triggerWords && e.triggerWords.length) + { + r.triggerWords = []; + for (i = 0; i < e.triggerWords.length; ++i) r.triggerWords[i] = e.triggerWords[i] + } + if (e.giftBuffInfos && e.giftBuffInfos.length) + { + r.giftBuffInfos = []; + for (i = 0; i < e.giftBuffInfos.length; ++i) r.giftBuffInfos[i] = l.webcast.data.GiftBuffInfo.toObject(e.giftBuffInfos[i], t) + } + if (null != e.forFirstRecharge && e.hasOwnProperty("forFirstRecharge") && (r.forFirstRecharge = e.forFirstRecharge), null != e.dynamicImgForSelected && e.hasOwnProperty("dynamicImgForSelected") && (r.dynamicImgForSelected = l.webcast.data.Image.toObject(e.dynamicImgForSelected, t)), null != e.afterSendAction && e.hasOwnProperty("afterSendAction") && (r.afterSendAction = t.enums === String ? l.webcast.data.AfterSendAction[e.afterSendAction] : e.afterSendAction), null != e.giftOfflineTime && e.hasOwnProperty("giftOfflineTime") && ("number" == typeof e.giftOfflineTime ? r.giftOfflineTime = t.longs === String ? String(e.giftOfflineTime) : e.giftOfflineTime : r.giftOfflineTime = t.longs === String ? a.Long.prototype.toString.call(e.giftOfflineTime) : t.longs === Number ? new a.LongBits(e.giftOfflineTime.low >>> 0, e.giftOfflineTime.high >>> 0).toNumber() : e.giftOfflineTime), null != e.topBarText && e.hasOwnProperty("topBarText") && (r.topBarText = e.topBarText), null != e.topRightAvatar && e.hasOwnProperty("topRightAvatar") && (r.topRightAvatar = l.webcast.data.Image.toObject(e.topRightAvatar, t)), null != e.bannerSchemeUrl && e.hasOwnProperty("bannerSchemeUrl") && (r.bannerSchemeUrl = e.bannerSchemeUrl), null != e.isLocked && e.hasOwnProperty("isLocked") && (r.isLocked = e.isLocked), null != e.reqExtraType && e.hasOwnProperty("reqExtraType") && ("number" == typeof e.reqExtraType ? r.reqExtraType = t.longs === String ? String(e.reqExtraType) : e.reqExtraType : r.reqExtraType = t.longs === String ? a.Long.prototype.toString.call(e.reqExtraType) : t.longs === Number ? new a.LongBits(e.reqExtraType.low >>> 0, e.reqExtraType.high >>> 0).toNumber() : e.reqExtraType), e.assetIds && e.assetIds.length) + { + r.assetIds = []; + for (i = 0; i < e.assetIds.length; ++i) "number" == typeof e.assetIds[i] ? r.assetIds[i] = t.longs === String ? String(e.assetIds[i]) : e.assetIds[i] : r.assetIds[i] = t.longs === String ? a.Long.prototype.toString.call(e.assetIds[i]) : t.longs === Number ? new a.LongBits(e.assetIds[i].low >>> 0, e.assetIds[i].high >>> 0).toNumber() : e.assetIds[i] + } + if (null != e.giftPreviewInfo && e.hasOwnProperty("giftPreviewInfo") && (r.giftPreviewInfo = l.webcast.data.GiftPreviewInfo.toObject(e.giftPreviewInfo, t)), null != e.giftTip && e.hasOwnProperty("giftTip") && (r.giftTip = l.webcast.data.GiftTip.toObject(e.giftTip, t)), null != e.needSweepLightCount && e.hasOwnProperty("needSweepLightCount") && (r.needSweepLightCount = e.needSweepLightCount), e.groupInfo && e.groupInfo.length) + { + r.groupInfo = []; + for (i = 0; i < e.groupInfo.length; ++i) r.groupInfo[i] = l.webcast.data.GiftGroupInfo.toObject(e.groupInfo[i], t) + } + return r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.GiftStructFansClubInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.minLevel = 0, e.prototype.insertPos = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.minLevel && Object.hasOwnProperty.call(e, "minLevel") && t.uint32(8).int32(e.minLevel), null != e.insertPos && Object.hasOwnProperty.call(e, "insertPos") && t.uint32(16).int32(e.insertPos), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.GiftStruct.GiftStructFansClubInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.minLevel = e.int32(); + break; + case 2: + r.insertPos = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.minLevel && e.hasOwnProperty("minLevel") && !a.isInteger(e.minLevel) ? "minLevel: integer expected" : null != e.insertPos && e.hasOwnProperty("insertPos") && !a.isInteger(e.insertPos) ? "insertPos: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GiftStruct.GiftStructFansClubInfo) return e; + var t = new l.webcast.data.GiftStruct.GiftStructFansClubInfo; + return null != e.minLevel && (t.minLevel = 0 | e.minLevel), null != e.insertPos && (t.insertPos = 0 | e.insertPos), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.minLevel = 0, n.insertPos = 0), null != e.minLevel && e.hasOwnProperty("minLevel") && (n.minLevel = e.minLevel), null != e.insertPos && e.hasOwnProperty("insertPos") && (n.insertPos = e.insertPos), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.GiftGroupInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.groupCount = 0, e.prototype.groupText = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.groupCount && Object.hasOwnProperty.call(e, "groupCount") && t.uint32(8).int32(e.groupCount), null != e.groupText && Object.hasOwnProperty.call(e, "groupText") && t.uint32(18).string(e.groupText), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.GiftGroupInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.groupCount = e.int32(); + break; + case 2: + r.groupText = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.groupCount && e.hasOwnProperty("groupCount") && !a.isInteger(e.groupCount) ? "groupCount: integer expected" : null != e.groupText && e.hasOwnProperty("groupText") && !a.isString(e.groupText) ? "groupText: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GiftGroupInfo) return e; + var t = new l.webcast.data.GiftGroupInfo; + return null != e.groupCount && (t.groupCount = 0 | e.groupCount), null != e.groupText && (t.groupText = String(e.groupText)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.groupCount = 0, n.groupText = ""), null != e.groupCount && e.hasOwnProperty("groupCount") && (n.groupCount = e.groupCount), null != e.groupText && e.hasOwnProperty("groupText") && (n.groupText = e.groupText), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.GiftPanelOperation = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.leftImage = null, e.prototype.rightImage = null, e.prototype.title = "", e.prototype.titleColor = "", e.prototype.titleSize = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.schemeUrl = "", e.prototype.eventName = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.leftImage && Object.hasOwnProperty.call(e, "leftImage") && l.webcast.data.Image.encode(e.leftImage, t.uint32(10).fork()).ldelim(), null != e.rightImage && Object.hasOwnProperty.call(e, "rightImage") && l.webcast.data.Image.encode(e.rightImage, t.uint32(18).fork()).ldelim(), null != e.title && Object.hasOwnProperty.call(e, "title") && t.uint32(26).string(e.title), null != e.titleColor && Object.hasOwnProperty.call(e, "titleColor") && t.uint32(34).string(e.titleColor), null != e.titleSize && Object.hasOwnProperty.call(e, "titleSize") && t.uint32(40).int64(e.titleSize), null != e.schemeUrl && Object.hasOwnProperty.call(e, "schemeUrl") && t.uint32(50).string(e.schemeUrl), null != e.eventName && Object.hasOwnProperty.call(e, "eventName") && t.uint32(58).string(e.eventName), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.GiftPanelOperation; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.leftImage = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.rightImage = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 3: + r.title = e.string(); + break; + case 4: + r.titleColor = e.string(); + break; + case 5: + r.titleSize = e.int64(); + break; + case 6: + r.schemeUrl = e.string(); + break; + case 7: + r.eventName = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.leftImage && e.hasOwnProperty("leftImage") && (t = l.webcast.data.Image.verify(e.leftImage))) return "leftImage." + t; + if (null != e.rightImage && e.hasOwnProperty("rightImage") && (t = l.webcast.data.Image.verify(e.rightImage))) return "rightImage." + t; + return null != e.title && e.hasOwnProperty("title") && !a.isString(e.title) ? "title: string expected" : null != e.titleColor && e.hasOwnProperty("titleColor") && !a.isString(e.titleColor) ? "titleColor: string expected" : null != e.titleSize && e.hasOwnProperty("titleSize") && !(a.isInteger(e.titleSize) || e.titleSize && a.isInteger(e.titleSize.low) && a.isInteger(e.titleSize.high)) ? "titleSize: integer|Long expected" : null != e.schemeUrl && e.hasOwnProperty("schemeUrl") && !a.isString(e.schemeUrl) ? "schemeUrl: string expected" : null != e.eventName && e.hasOwnProperty("eventName") && !a.isString(e.eventName) ? "eventName: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GiftPanelOperation) return e; + var t = new l.webcast.data.GiftPanelOperation; + if (null != e.leftImage) + { + if ("object" != typeof e.leftImage) throw TypeError(".webcast.data.GiftPanelOperation.leftImage: object expected"); + t.leftImage = l.webcast.data.Image.fromObject(e.leftImage) + } + if (null != e.rightImage) + { + if ("object" != typeof e.rightImage) throw TypeError(".webcast.data.GiftPanelOperation.rightImage: object expected"); + t.rightImage = l.webcast.data.Image.fromObject(e.rightImage) + } + return null != e.title && (t.title = String(e.title)), null != e.titleColor && (t.titleColor = String(e.titleColor)), null != e.titleSize && (a.Long ? (t.titleSize = a.Long.fromValue(e.titleSize)).unsigned = !1 : "string" == typeof e.titleSize ? t.titleSize = parseInt(e.titleSize, 10) : "number" == typeof e.titleSize ? t.titleSize = e.titleSize : "object" == typeof e.titleSize && (t.titleSize = new a.LongBits(e.titleSize.low >>> 0, e.titleSize.high >>> 0).toNumber())), null != e.schemeUrl && (t.schemeUrl = String(e.schemeUrl)), null != e.eventName && (t.eventName = String(e.eventName)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.leftImage = null, n.rightImage = null, n.title = "", n.titleColor = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.titleSize = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.titleSize = t.longs === String ? "0" : 0; + n.schemeUrl = "", n.eventName = "" + } + return null != e.leftImage && e.hasOwnProperty("leftImage") && (n.leftImage = l.webcast.data.Image.toObject(e.leftImage, t)), null != e.rightImage && e.hasOwnProperty("rightImage") && (n.rightImage = l.webcast.data.Image.toObject(e.rightImage, t)), null != e.title && e.hasOwnProperty("title") && (n.title = e.title), null != e.titleColor && e.hasOwnProperty("titleColor") && (n.titleColor = e.titleColor), null != e.titleSize && e.hasOwnProperty("titleSize") && ("number" == typeof e.titleSize ? n.titleSize = t.longs === String ? String(e.titleSize) : e.titleSize : n.titleSize = t.longs === String ? a.Long.prototype.toString.call(e.titleSize) : t.longs === Number ? new a.LongBits(e.titleSize.low >>> 0, e.titleSize.high >>> 0).toNumber() : e.titleSize), null != e.schemeUrl && e.hasOwnProperty("schemeUrl") && (n.schemeUrl = e.schemeUrl), null != e.eventName && e.hasOwnProperty("eventName") && (n.eventName = e.eventName), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.FreeGift = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.count = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.content = "", e.prototype.groupId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.repeatCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.fanTickets = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.waterwmlon = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(8).int64(e.id), null != e.count && Object.hasOwnProperty.call(e, "count") && t.uint32(16).int64(e.count), null != e.content && Object.hasOwnProperty.call(e, "content") && t.uint32(26).string(e.content), null != e.groupId && Object.hasOwnProperty.call(e, "groupId") && t.uint32(32).int64(e.groupId), null != e.repeatCount && Object.hasOwnProperty.call(e, "repeatCount") && t.uint32(40).int64(e.repeatCount), null != e.fanTickets && Object.hasOwnProperty.call(e, "fanTickets") && t.uint32(48).int64(e.fanTickets), null != e.waterwmlon && Object.hasOwnProperty.call(e, "waterwmlon") && t.uint32(56).int64(e.waterwmlon), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.FreeGift; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.id = e.int64(); + break; + case 2: + r.count = e.int64(); + break; + case 3: + r.content = e.string(); + break; + case 4: + r.groupId = e.int64(); + break; + case 5: + r.repeatCount = e.int64(); + break; + case 6: + r.fanTickets = e.int64(); + break; + case 7: + r.waterwmlon = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high)) ? "id: integer|Long expected" : null != e.count && e.hasOwnProperty("count") && !(a.isInteger(e.count) || e.count && a.isInteger(e.count.low) && a.isInteger(e.count.high)) ? "count: integer|Long expected" : null != e.content && e.hasOwnProperty("content") && !a.isString(e.content) ? "content: string expected" : null != e.groupId && e.hasOwnProperty("groupId") && !(a.isInteger(e.groupId) || e.groupId && a.isInteger(e.groupId.low) && a.isInteger(e.groupId.high)) ? "groupId: integer|Long expected" : null != e.repeatCount && e.hasOwnProperty("repeatCount") && !(a.isInteger(e.repeatCount) || e.repeatCount && a.isInteger(e.repeatCount.low) && a.isInteger(e.repeatCount.high)) ? "repeatCount: integer|Long expected" : null != e.fanTickets && e.hasOwnProperty("fanTickets") && !(a.isInteger(e.fanTickets) || e.fanTickets && a.isInteger(e.fanTickets.low) && a.isInteger(e.fanTickets.high)) ? "fanTickets: integer|Long expected" : null != e.waterwmlon && e.hasOwnProperty("waterwmlon") && !(a.isInteger(e.waterwmlon) || e.waterwmlon && a.isInteger(e.waterwmlon.low) && a.isInteger(e.waterwmlon.high)) ? "waterwmlon: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.FreeGift) return e; + var t = new l.webcast.data.FreeGift; + return null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), null != e.count && (a.Long ? (t.count = a.Long.fromValue(e.count)).unsigned = !1 : "string" == typeof e.count ? t.count = parseInt(e.count, 10) : "number" == typeof e.count ? t.count = e.count : "object" == typeof e.count && (t.count = new a.LongBits(e.count.low >>> 0, e.count.high >>> 0).toNumber())), null != e.content && (t.content = String(e.content)), null != e.groupId && (a.Long ? (t.groupId = a.Long.fromValue(e.groupId)).unsigned = !1 : "string" == typeof e.groupId ? t.groupId = parseInt(e.groupId, 10) : "number" == typeof e.groupId ? t.groupId = e.groupId : "object" == typeof e.groupId && (t.groupId = new a.LongBits(e.groupId.low >>> 0, e.groupId.high >>> 0).toNumber())), null != e.repeatCount && (a.Long ? (t.repeatCount = a.Long.fromValue(e.repeatCount)).unsigned = !1 : "string" == typeof e.repeatCount ? t.repeatCount = parseInt(e.repeatCount, 10) : "number" == typeof e.repeatCount ? t.repeatCount = e.repeatCount : "object" == typeof e.repeatCount && (t.repeatCount = new a.LongBits(e.repeatCount.low >>> 0, e.repeatCount.high >>> 0).toNumber())), null != e.fanTickets && (a.Long ? (t.fanTickets = a.Long.fromValue(e.fanTickets)).unsigned = !1 : "string" == typeof e.fanTickets ? t.fanTickets = parseInt(e.fanTickets, 10) : "number" == typeof e.fanTickets ? t.fanTickets = e.fanTickets : "object" == typeof e.fanTickets && (t.fanTickets = new a.LongBits(e.fanTickets.low >>> 0, e.fanTickets.high >>> 0).toNumber())), null != e.waterwmlon && (a.Long ? (t.waterwmlon = a.Long.fromValue(e.waterwmlon)).unsigned = !1 : "string" == typeof e.waterwmlon ? t.waterwmlon = parseInt(e.waterwmlon, 10) : "number" == typeof e.waterwmlon ? t.waterwmlon = e.waterwmlon : "object" == typeof e.waterwmlon && (t.waterwmlon = new a.LongBits(e.waterwmlon.low >>> 0, e.waterwmlon.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.id = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.count = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.count = t.longs === String ? "0" : 0; + if (n.content = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.groupId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.groupId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.repeatCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.repeatCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.fanTickets = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fanTickets = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.waterwmlon = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.waterwmlon = t.longs === String ? "0" : 0 + } + return null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? n.id = t.longs === String ? String(e.id) : e.id : n.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), null != e.count && e.hasOwnProperty("count") && ("number" == typeof e.count ? n.count = t.longs === String ? String(e.count) : e.count : n.count = t.longs === String ? a.Long.prototype.toString.call(e.count) : t.longs === Number ? new a.LongBits(e.count.low >>> 0, e.count.high >>> 0).toNumber() : e.count), null != e.content && e.hasOwnProperty("content") && (n.content = e.content), null != e.groupId && e.hasOwnProperty("groupId") && ("number" == typeof e.groupId ? n.groupId = t.longs === String ? String(e.groupId) : e.groupId : n.groupId = t.longs === String ? a.Long.prototype.toString.call(e.groupId) : t.longs === Number ? new a.LongBits(e.groupId.low >>> 0, e.groupId.high >>> 0).toNumber() : e.groupId), null != e.repeatCount && e.hasOwnProperty("repeatCount") && ("number" == typeof e.repeatCount ? n.repeatCount = t.longs === String ? String(e.repeatCount) : e.repeatCount : n.repeatCount = t.longs === String ? a.Long.prototype.toString.call(e.repeatCount) : t.longs === Number ? new a.LongBits(e.repeatCount.low >>> 0, e.repeatCount.high >>> 0).toNumber() : e.repeatCount), null != e.fanTickets && e.hasOwnProperty("fanTickets") && ("number" == typeof e.fanTickets ? n.fanTickets = t.longs === String ? String(e.fanTickets) : e.fanTickets : n.fanTickets = t.longs === String ? a.Long.prototype.toString.call(e.fanTickets) : t.longs === Number ? new a.LongBits(e.fanTickets.low >>> 0, e.fanTickets.high >>> 0).toNumber() : e.fanTickets), null != e.waterwmlon && e.hasOwnProperty("waterwmlon") && ("number" == typeof e.waterwmlon ? n.waterwmlon = t.longs === String ? String(e.waterwmlon) : e.waterwmlon : n.waterwmlon = t.longs === String ? a.Long.prototype.toString.call(e.waterwmlon) : t.longs === Number ? new a.LongBits(e.waterwmlon.low >>> 0, e.waterwmlon.high >>> 0).toNumber() : e.waterwmlon), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LuckyMoneyGiftMeta = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.image = null, e.prototype.describe = "", e.prototype.id = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.diamondCount = 0, e.prototype.icon = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.image && Object.hasOwnProperty.call(e, "image") && l.webcast.data.Image.encode(e.image, t.uint32(10).fork()).ldelim(), null != e.describe && Object.hasOwnProperty.call(e, "describe") && t.uint32(18).string(e.describe), null != e.id && Object.hasOwnProperty.call(e, "id") && t.uint32(24).int64(e.id), null != e.diamondCount && Object.hasOwnProperty.call(e, "diamondCount") && t.uint32(32).int32(e.diamondCount), null != e.icon && Object.hasOwnProperty.call(e, "icon") && l.webcast.data.Image.encode(e.icon, t.uint32(42).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LuckyMoneyGiftMeta; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.image = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.describe = e.string(); + break; + case 3: + r.id = e.int64(); + break; + case 4: + r.diamondCount = e.int32(); + break; + case 5: + r.icon = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.image && e.hasOwnProperty("image") && (t = l.webcast.data.Image.verify(e.image))) return "image." + t; + if (null != e.describe && e.hasOwnProperty("describe") && !a.isString(e.describe)) return "describe: string expected"; + if (null != e.id && e.hasOwnProperty("id") && !(a.isInteger(e.id) || e.id && a.isInteger(e.id.low) && a.isInteger(e.id.high))) return "id: integer|Long expected"; + if (null != e.diamondCount && e.hasOwnProperty("diamondCount") && !a.isInteger(e.diamondCount)) return "diamondCount: integer expected"; + if (null != e.icon && e.hasOwnProperty("icon") && (t = l.webcast.data.Image.verify(e.icon))) return "icon." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LuckyMoneyGiftMeta) return e; + var t = new l.webcast.data.LuckyMoneyGiftMeta; + if (null != e.image) + { + if ("object" != typeof e.image) throw TypeError(".webcast.data.LuckyMoneyGiftMeta.image: object expected"); + t.image = l.webcast.data.Image.fromObject(e.image) + } + if (null != e.describe && (t.describe = String(e.describe)), null != e.id && (a.Long ? (t.id = a.Long.fromValue(e.id)).unsigned = !1 : "string" == typeof e.id ? t.id = parseInt(e.id, 10) : "number" == typeof e.id ? t.id = e.id : "object" == typeof e.id && (t.id = new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber())), null != e.diamondCount && (t.diamondCount = 0 | e.diamondCount), null != e.icon) + { + if ("object" != typeof e.icon) throw TypeError(".webcast.data.LuckyMoneyGiftMeta.icon: object expected"); + t.icon = l.webcast.data.Image.fromObject(e.icon) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.image = null, n.describe = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.id = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.id = t.longs === String ? "0" : 0; + n.diamondCount = 0, n.icon = null + } + return null != e.image && e.hasOwnProperty("image") && (n.image = l.webcast.data.Image.toObject(e.image, t)), null != e.describe && e.hasOwnProperty("describe") && (n.describe = e.describe), null != e.id && e.hasOwnProperty("id") && ("number" == typeof e.id ? n.id = t.longs === String ? String(e.id) : e.id : n.id = t.longs === String ? a.Long.prototype.toString.call(e.id) : t.longs === Number ? new a.LongBits(e.id.low >>> 0, e.id.high >>> 0).toNumber() : e.id), null != e.diamondCount && e.hasOwnProperty("diamondCount") && (n.diamondCount = e.diamondCount), null != e.icon && e.hasOwnProperty("icon") && (n.icon = l.webcast.data.Image.toObject(e.icon, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.FreeCellData = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.timeNowMs = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.timeStartMs = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.timeFreezeEndMs = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.timeDoubleEndMs = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.timeEndMs = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.freeCellLength = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.isFreeze = !1, e.prototype.isDouble = !1, e.prototype.contributeMostUser = null, e.prototype.contributeMostCoins = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.distanceFromPreviousOne = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.indexInDayRanklist = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.giftId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.timeNowMs && Object.hasOwnProperty.call(e, "timeNowMs") && t.uint32(8).int64(e.timeNowMs), null != e.timeStartMs && Object.hasOwnProperty.call(e, "timeStartMs") && t.uint32(16).int64(e.timeStartMs), null != e.timeFreezeEndMs && Object.hasOwnProperty.call(e, "timeFreezeEndMs") && t.uint32(24).int64(e.timeFreezeEndMs), null != e.timeDoubleEndMs && Object.hasOwnProperty.call(e, "timeDoubleEndMs") && t.uint32(32).int64(e.timeDoubleEndMs), null != e.timeEndMs && Object.hasOwnProperty.call(e, "timeEndMs") && t.uint32(40).int64(e.timeEndMs), null != e.freeCellLength && Object.hasOwnProperty.call(e, "freeCellLength") && t.uint32(48).int64(e.freeCellLength), null != e.isFreeze && Object.hasOwnProperty.call(e, "isFreeze") && t.uint32(56).bool(e.isFreeze), null != e.isDouble && Object.hasOwnProperty.call(e, "isDouble") && t.uint32(64).bool(e.isDouble), null != e.contributeMostUser && Object.hasOwnProperty.call(e, "contributeMostUser") && l.webcast.data.User.encode(e.contributeMostUser, t.uint32(74).fork()).ldelim(), null != e.contributeMostCoins && Object.hasOwnProperty.call(e, "contributeMostCoins") && t.uint32(80).int64(e.contributeMostCoins), null != e.distanceFromPreviousOne && Object.hasOwnProperty.call(e, "distanceFromPreviousOne") && t.uint32(88).int64(e.distanceFromPreviousOne), null != e.indexInDayRanklist && Object.hasOwnProperty.call(e, "indexInDayRanklist") && t.uint32(96).int64(e.indexInDayRanklist), null != e.giftId && Object.hasOwnProperty.call(e, "giftId") && t.uint32(104).int64(e.giftId), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.FreeCellData; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.timeNowMs = e.int64(); + break; + case 2: + r.timeStartMs = e.int64(); + break; + case 3: + r.timeFreezeEndMs = e.int64(); + break; + case 4: + r.timeDoubleEndMs = e.int64(); + break; + case 5: + r.timeEndMs = e.int64(); + break; + case 6: + r.freeCellLength = e.int64(); + break; + case 7: + r.isFreeze = e.bool(); + break; + case 8: + r.isDouble = e.bool(); + break; + case 9: + r.contributeMostUser = l.webcast.data.User.decode(e, e.uint32()); + break; + case 10: + r.contributeMostCoins = e.int64(); + break; + case 11: + r.distanceFromPreviousOne = e.int64(); + break; + case 12: + r.indexInDayRanklist = e.int64(); + break; + case 13: + r.giftId = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.timeNowMs && e.hasOwnProperty("timeNowMs") && !(a.isInteger(e.timeNowMs) || e.timeNowMs && a.isInteger(e.timeNowMs.low) && a.isInteger(e.timeNowMs.high))) return "timeNowMs: integer|Long expected"; + if (null != e.timeStartMs && e.hasOwnProperty("timeStartMs") && !(a.isInteger(e.timeStartMs) || e.timeStartMs && a.isInteger(e.timeStartMs.low) && a.isInteger(e.timeStartMs.high))) return "timeStartMs: integer|Long expected"; + if (null != e.timeFreezeEndMs && e.hasOwnProperty("timeFreezeEndMs") && !(a.isInteger(e.timeFreezeEndMs) || e.timeFreezeEndMs && a.isInteger(e.timeFreezeEndMs.low) && a.isInteger(e.timeFreezeEndMs.high))) return "timeFreezeEndMs: integer|Long expected"; + if (null != e.timeDoubleEndMs && e.hasOwnProperty("timeDoubleEndMs") && !(a.isInteger(e.timeDoubleEndMs) || e.timeDoubleEndMs && a.isInteger(e.timeDoubleEndMs.low) && a.isInteger(e.timeDoubleEndMs.high))) return "timeDoubleEndMs: integer|Long expected"; + if (null != e.timeEndMs && e.hasOwnProperty("timeEndMs") && !(a.isInteger(e.timeEndMs) || e.timeEndMs && a.isInteger(e.timeEndMs.low) && a.isInteger(e.timeEndMs.high))) return "timeEndMs: integer|Long expected"; + if (null != e.freeCellLength && e.hasOwnProperty("freeCellLength") && !(a.isInteger(e.freeCellLength) || e.freeCellLength && a.isInteger(e.freeCellLength.low) && a.isInteger(e.freeCellLength.high))) return "freeCellLength: integer|Long expected"; + if (null != e.isFreeze && e.hasOwnProperty("isFreeze") && "boolean" != typeof e.isFreeze) return "isFreeze: boolean expected"; + if (null != e.isDouble && e.hasOwnProperty("isDouble") && "boolean" != typeof e.isDouble) return "isDouble: boolean expected"; + if (null != e.contributeMostUser && e.hasOwnProperty("contributeMostUser")) + { + var t = l.webcast.data.User.verify(e.contributeMostUser); + if (t) return "contributeMostUser." + t + } + return null != e.contributeMostCoins && e.hasOwnProperty("contributeMostCoins") && !(a.isInteger(e.contributeMostCoins) || e.contributeMostCoins && a.isInteger(e.contributeMostCoins.low) && a.isInteger(e.contributeMostCoins.high)) ? "contributeMostCoins: integer|Long expected" : null != e.distanceFromPreviousOne && e.hasOwnProperty("distanceFromPreviousOne") && !(a.isInteger(e.distanceFromPreviousOne) || e.distanceFromPreviousOne && a.isInteger(e.distanceFromPreviousOne.low) && a.isInteger(e.distanceFromPreviousOne.high)) ? "distanceFromPreviousOne: integer|Long expected" : null != e.indexInDayRanklist && e.hasOwnProperty("indexInDayRanklist") && !(a.isInteger(e.indexInDayRanklist) || e.indexInDayRanklist && a.isInteger(e.indexInDayRanklist.low) && a.isInteger(e.indexInDayRanklist.high)) ? "indexInDayRanklist: integer|Long expected" : null != e.giftId && e.hasOwnProperty("giftId") && !(a.isInteger(e.giftId) || e.giftId && a.isInteger(e.giftId.low) && a.isInteger(e.giftId.high)) ? "giftId: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.FreeCellData) return e; + var t = new l.webcast.data.FreeCellData; + if (null != e.timeNowMs && (a.Long ? (t.timeNowMs = a.Long.fromValue(e.timeNowMs)).unsigned = !1 : "string" == typeof e.timeNowMs ? t.timeNowMs = parseInt(e.timeNowMs, 10) : "number" == typeof e.timeNowMs ? t.timeNowMs = e.timeNowMs : "object" == typeof e.timeNowMs && (t.timeNowMs = new a.LongBits(e.timeNowMs.low >>> 0, e.timeNowMs.high >>> 0).toNumber())), null != e.timeStartMs && (a.Long ? (t.timeStartMs = a.Long.fromValue(e.timeStartMs)).unsigned = !1 : "string" == typeof e.timeStartMs ? t.timeStartMs = parseInt(e.timeStartMs, 10) : "number" == typeof e.timeStartMs ? t.timeStartMs = e.timeStartMs : "object" == typeof e.timeStartMs && (t.timeStartMs = new a.LongBits(e.timeStartMs.low >>> 0, e.timeStartMs.high >>> 0).toNumber())), null != e.timeFreezeEndMs && (a.Long ? (t.timeFreezeEndMs = a.Long.fromValue(e.timeFreezeEndMs)).unsigned = !1 : "string" == typeof e.timeFreezeEndMs ? t.timeFreezeEndMs = parseInt(e.timeFreezeEndMs, 10) : "number" == typeof e.timeFreezeEndMs ? t.timeFreezeEndMs = e.timeFreezeEndMs : "object" == typeof e.timeFreezeEndMs && (t.timeFreezeEndMs = new a.LongBits(e.timeFreezeEndMs.low >>> 0, e.timeFreezeEndMs.high >>> 0).toNumber())), null != e.timeDoubleEndMs && (a.Long ? (t.timeDoubleEndMs = a.Long.fromValue(e.timeDoubleEndMs)).unsigned = !1 : "string" == typeof e.timeDoubleEndMs ? t.timeDoubleEndMs = parseInt(e.timeDoubleEndMs, 10) : "number" == typeof e.timeDoubleEndMs ? t.timeDoubleEndMs = e.timeDoubleEndMs : "object" == typeof e.timeDoubleEndMs && (t.timeDoubleEndMs = new a.LongBits(e.timeDoubleEndMs.low >>> 0, e.timeDoubleEndMs.high >>> 0).toNumber())), null != e.timeEndMs && (a.Long ? (t.timeEndMs = a.Long.fromValue(e.timeEndMs)).unsigned = !1 : "string" == typeof e.timeEndMs ? t.timeEndMs = parseInt(e.timeEndMs, 10) : "number" == typeof e.timeEndMs ? t.timeEndMs = e.timeEndMs : "object" == typeof e.timeEndMs && (t.timeEndMs = new a.LongBits(e.timeEndMs.low >>> 0, e.timeEndMs.high >>> 0).toNumber())), null != e.freeCellLength && (a.Long ? (t.freeCellLength = a.Long.fromValue(e.freeCellLength)).unsigned = !1 : "string" == typeof e.freeCellLength ? t.freeCellLength = parseInt(e.freeCellLength, 10) : "number" == typeof e.freeCellLength ? t.freeCellLength = e.freeCellLength : "object" == typeof e.freeCellLength && (t.freeCellLength = new a.LongBits(e.freeCellLength.low >>> 0, e.freeCellLength.high >>> 0).toNumber())), null != e.isFreeze && (t.isFreeze = Boolean(e.isFreeze)), null != e.isDouble && (t.isDouble = Boolean(e.isDouble)), null != e.contributeMostUser) + { + if ("object" != typeof e.contributeMostUser) throw TypeError(".webcast.data.FreeCellData.contributeMostUser: object expected"); + t.contributeMostUser = l.webcast.data.User.fromObject(e.contributeMostUser) + } + return null != e.contributeMostCoins && (a.Long ? (t.contributeMostCoins = a.Long.fromValue(e.contributeMostCoins)).unsigned = !1 : "string" == typeof e.contributeMostCoins ? t.contributeMostCoins = parseInt(e.contributeMostCoins, 10) : "number" == typeof e.contributeMostCoins ? t.contributeMostCoins = e.contributeMostCoins : "object" == typeof e.contributeMostCoins && (t.contributeMostCoins = new a.LongBits(e.contributeMostCoins.low >>> 0, e.contributeMostCoins.high >>> 0).toNumber())), null != e.distanceFromPreviousOne && (a.Long ? (t.distanceFromPreviousOne = a.Long.fromValue(e.distanceFromPreviousOne)).unsigned = !1 : "string" == typeof e.distanceFromPreviousOne ? t.distanceFromPreviousOne = parseInt(e.distanceFromPreviousOne, 10) : "number" == typeof e.distanceFromPreviousOne ? t.distanceFromPreviousOne = e.distanceFromPreviousOne : "object" == typeof e.distanceFromPreviousOne && (t.distanceFromPreviousOne = new a.LongBits(e.distanceFromPreviousOne.low >>> 0, e.distanceFromPreviousOne.high >>> 0).toNumber())), null != e.indexInDayRanklist && (a.Long ? (t.indexInDayRanklist = a.Long.fromValue(e.indexInDayRanklist)).unsigned = !1 : "string" == typeof e.indexInDayRanklist ? t.indexInDayRanklist = parseInt(e.indexInDayRanklist, 10) : "number" == typeof e.indexInDayRanklist ? t.indexInDayRanklist = e.indexInDayRanklist : "object" == typeof e.indexInDayRanklist && (t.indexInDayRanklist = new a.LongBits(e.indexInDayRanklist.low >>> 0, e.indexInDayRanklist.high >>> 0).toNumber())), null != e.giftId && (a.Long ? (t.giftId = a.Long.fromValue(e.giftId)).unsigned = !1 : "string" == typeof e.giftId ? t.giftId = parseInt(e.giftId, 10) : "number" == typeof e.giftId ? t.giftId = e.giftId : "object" == typeof e.giftId && (t.giftId = new a.LongBits(e.giftId.low >>> 0, e.giftId.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.timeNowMs = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.timeNowMs = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.timeStartMs = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.timeStartMs = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.timeFreezeEndMs = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.timeFreezeEndMs = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.timeDoubleEndMs = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.timeDoubleEndMs = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.timeEndMs = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.timeEndMs = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.freeCellLength = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.freeCellLength = t.longs === String ? "0" : 0; + if (n.isFreeze = !1, n.isDouble = !1, n.contributeMostUser = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.contributeMostCoins = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.contributeMostCoins = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.distanceFromPreviousOne = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.distanceFromPreviousOne = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.indexInDayRanklist = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.indexInDayRanklist = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.giftId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.giftId = t.longs === String ? "0" : 0 + } + return null != e.timeNowMs && e.hasOwnProperty("timeNowMs") && ("number" == typeof e.timeNowMs ? n.timeNowMs = t.longs === String ? String(e.timeNowMs) : e.timeNowMs : n.timeNowMs = t.longs === String ? a.Long.prototype.toString.call(e.timeNowMs) : t.longs === Number ? new a.LongBits(e.timeNowMs.low >>> 0, e.timeNowMs.high >>> 0).toNumber() : e.timeNowMs), null != e.timeStartMs && e.hasOwnProperty("timeStartMs") && ("number" == typeof e.timeStartMs ? n.timeStartMs = t.longs === String ? String(e.timeStartMs) : e.timeStartMs : n.timeStartMs = t.longs === String ? a.Long.prototype.toString.call(e.timeStartMs) : t.longs === Number ? new a.LongBits(e.timeStartMs.low >>> 0, e.timeStartMs.high >>> 0).toNumber() : e.timeStartMs), null != e.timeFreezeEndMs && e.hasOwnProperty("timeFreezeEndMs") && ("number" == typeof e.timeFreezeEndMs ? n.timeFreezeEndMs = t.longs === String ? String(e.timeFreezeEndMs) : e.timeFreezeEndMs : n.timeFreezeEndMs = t.longs === String ? a.Long.prototype.toString.call(e.timeFreezeEndMs) : t.longs === Number ? new a.LongBits(e.timeFreezeEndMs.low >>> 0, e.timeFreezeEndMs.high >>> 0).toNumber() : e.timeFreezeEndMs), null != e.timeDoubleEndMs && e.hasOwnProperty("timeDoubleEndMs") && ("number" == typeof e.timeDoubleEndMs ? n.timeDoubleEndMs = t.longs === String ? String(e.timeDoubleEndMs) : e.timeDoubleEndMs : n.timeDoubleEndMs = t.longs === String ? a.Long.prototype.toString.call(e.timeDoubleEndMs) : t.longs === Number ? new a.LongBits(e.timeDoubleEndMs.low >>> 0, e.timeDoubleEndMs.high >>> 0).toNumber() : e.timeDoubleEndMs), null != e.timeEndMs && e.hasOwnProperty("timeEndMs") && ("number" == typeof e.timeEndMs ? n.timeEndMs = t.longs === String ? String(e.timeEndMs) : e.timeEndMs : n.timeEndMs = t.longs === String ? a.Long.prototype.toString.call(e.timeEndMs) : t.longs === Number ? new a.LongBits(e.timeEndMs.low >>> 0, e.timeEndMs.high >>> 0).toNumber() : e.timeEndMs), null != e.freeCellLength && e.hasOwnProperty("freeCellLength") && ("number" == typeof e.freeCellLength ? n.freeCellLength = t.longs === String ? String(e.freeCellLength) : e.freeCellLength : n.freeCellLength = t.longs === String ? a.Long.prototype.toString.call(e.freeCellLength) : t.longs === Number ? new a.LongBits(e.freeCellLength.low >>> 0, e.freeCellLength.high >>> 0).toNumber() : e.freeCellLength), null != e.isFreeze && e.hasOwnProperty("isFreeze") && (n.isFreeze = e.isFreeze), null != e.isDouble && e.hasOwnProperty("isDouble") && (n.isDouble = e.isDouble), null != e.contributeMostUser && e.hasOwnProperty("contributeMostUser") && (n.contributeMostUser = l.webcast.data.User.toObject(e.contributeMostUser, t)), null != e.contributeMostCoins && e.hasOwnProperty("contributeMostCoins") && ("number" == typeof e.contributeMostCoins ? n.contributeMostCoins = t.longs === String ? String(e.contributeMostCoins) : e.contributeMostCoins : n.contributeMostCoins = t.longs === String ? a.Long.prototype.toString.call(e.contributeMostCoins) : t.longs === Number ? new a.LongBits(e.contributeMostCoins.low >>> 0, e.contributeMostCoins.high >>> 0).toNumber() : e.contributeMostCoins), null != e.distanceFromPreviousOne && e.hasOwnProperty("distanceFromPreviousOne") && ("number" == typeof e.distanceFromPreviousOne ? n.distanceFromPreviousOne = t.longs === String ? String(e.distanceFromPreviousOne) : e.distanceFromPreviousOne : n.distanceFromPreviousOne = t.longs === String ? a.Long.prototype.toString.call(e.distanceFromPreviousOne) : t.longs === Number ? new a.LongBits(e.distanceFromPreviousOne.low >>> 0, e.distanceFromPreviousOne.high >>> 0).toNumber() : e.distanceFromPreviousOne), null != e.indexInDayRanklist && e.hasOwnProperty("indexInDayRanklist") && ("number" == typeof e.indexInDayRanklist ? n.indexInDayRanklist = t.longs === String ? String(e.indexInDayRanklist) : e.indexInDayRanklist : n.indexInDayRanklist = t.longs === String ? a.Long.prototype.toString.call(e.indexInDayRanklist) : t.longs === Number ? new a.LongBits(e.indexInDayRanklist.low >>> 0, e.indexInDayRanklist.high >>> 0).toNumber() : e.indexInDayRanklist), null != e.giftId && e.hasOwnProperty("giftId") && ("number" == typeof e.giftId ? n.giftId = t.longs === String ? String(e.giftId) : e.giftId : n.giftId = t.longs === String ? a.Long.prototype.toString.call(e.giftId) : t.longs === Number ? new a.LongBits(e.giftId.low >>> 0, e.giftId.high >>> 0).toNumber() : e.giftId), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.GameGiftData = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.data = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.data && Object.hasOwnProperty.call(e, "data") && l.webcast.data.GameGiftData.MonkeyData.encode(e.data, t.uint32(10).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.GameGiftData; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.data = l.webcast.data.GameGiftData.MonkeyData.decode(e, e.uint32()); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.data && e.hasOwnProperty("data")) + { + var t = l.webcast.data.GameGiftData.MonkeyData.verify(e.data); + if (t) return "data." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GameGiftData) return e; + var t = new l.webcast.data.GameGiftData; + if (null != e.data) + { + if ("object" != typeof e.data) throw TypeError(".webcast.data.GameGiftData.data: object expected"); + t.data = l.webcast.data.GameGiftData.MonkeyData.fromObject(e.data) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.data = null), null != e.data && e.hasOwnProperty("data") && (n.data = l.webcast.data.GameGiftData.MonkeyData.toObject(e.data, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.MonkeyData = function () + { + function e(e) + { + if (this.rangeMap = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.multiplier = 0, e.prototype.addend = 0, e.prototype.seed = 0, e.prototype.token = "", e.prototype.rangeMap = a.emptyArray, e.prototype.anchorRankBestUserName = "", e.prototype.anchorRankBestScore = 0, e.prototype.bestScoreSelf = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.multiplier && Object.hasOwnProperty.call(e, "multiplier") && t.uint32(8).uint32(e.multiplier), null != e.addend && Object.hasOwnProperty.call(e, "addend") && t.uint32(16).uint32(e.addend), null != e.seed && Object.hasOwnProperty.call(e, "seed") && t.uint32(24).uint32(e.seed), null != e.token && Object.hasOwnProperty.call(e, "token") && t.uint32(34).string(e.token), null != e.rangeMap && e.rangeMap.length) + for (var n = 0; n < e.rangeMap.length; ++n) l.webcast.data.GameGiftData.MonkeyData.Range.encode(e.rangeMap[n], t.uint32(42).fork()).ldelim(); + return null != e.anchorRankBestUserName && Object.hasOwnProperty.call(e, "anchorRankBestUserName") && t.uint32(50).string(e.anchorRankBestUserName), null != e.anchorRankBestScore && Object.hasOwnProperty.call(e, "anchorRankBestScore") && t.uint32(56).int32(e.anchorRankBestScore), null != e.bestScoreSelf && Object.hasOwnProperty.call(e, "bestScoreSelf") && t.uint32(64).int32(e.bestScoreSelf), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.GameGiftData.MonkeyData; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.multiplier = e.uint32(); + break; + case 2: + r.addend = e.uint32(); + break; + case 3: + r.seed = e.uint32(); + break; + case 4: + r.token = e.string(); + break; + case 5: + r.rangeMap && r.rangeMap.length || (r.rangeMap = []), r.rangeMap.push(l.webcast.data.GameGiftData.MonkeyData.Range.decode(e, e.uint32())); + break; + case 6: + r.anchorRankBestUserName = e.string(); + break; + case 7: + r.anchorRankBestScore = e.int32(); + break; + case 8: + r.bestScoreSelf = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.multiplier && e.hasOwnProperty("multiplier") && !a.isInteger(e.multiplier)) return "multiplier: integer expected"; + if (null != e.addend && e.hasOwnProperty("addend") && !a.isInteger(e.addend)) return "addend: integer expected"; + if (null != e.seed && e.hasOwnProperty("seed") && !a.isInteger(e.seed)) return "seed: integer expected"; + if (null != e.token && e.hasOwnProperty("token") && !a.isString(e.token)) return "token: string expected"; + if (null != e.rangeMap && e.hasOwnProperty("rangeMap")) + { + if (!Array.isArray(e.rangeMap)) return "rangeMap: array expected"; + for (var t = 0; t < e.rangeMap.length; ++t) + { + var n = l.webcast.data.GameGiftData.MonkeyData.Range.verify(e.rangeMap[t]); + if (n) return "rangeMap." + n + } + } + return null != e.anchorRankBestUserName && e.hasOwnProperty("anchorRankBestUserName") && !a.isString(e.anchorRankBestUserName) ? "anchorRankBestUserName: string expected" : null != e.anchorRankBestScore && e.hasOwnProperty("anchorRankBestScore") && !a.isInteger(e.anchorRankBestScore) ? "anchorRankBestScore: integer expected" : null != e.bestScoreSelf && e.hasOwnProperty("bestScoreSelf") && !a.isInteger(e.bestScoreSelf) ? "bestScoreSelf: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GameGiftData.MonkeyData) return e; + var t = new l.webcast.data.GameGiftData.MonkeyData; + if (null != e.multiplier && (t.multiplier = e.multiplier >>> 0), null != e.addend && (t.addend = e.addend >>> 0), null != e.seed && (t.seed = e.seed >>> 0), null != e.token && (t.token = String(e.token)), e.rangeMap) + { + if (!Array.isArray(e.rangeMap)) throw TypeError(".webcast.data.GameGiftData.MonkeyData.rangeMap: array expected"); + t.rangeMap = []; + for (var n = 0; n < e.rangeMap.length; ++n) + { + if ("object" != typeof e.rangeMap[n]) throw TypeError(".webcast.data.GameGiftData.MonkeyData.rangeMap: object expected"); + t.rangeMap[n] = l.webcast.data.GameGiftData.MonkeyData.Range.fromObject(e.rangeMap[n]) + } + } + return null != e.anchorRankBestUserName && (t.anchorRankBestUserName = String(e.anchorRankBestUserName)), null != e.anchorRankBestScore && (t.anchorRankBestScore = 0 | e.anchorRankBestScore), null != e.bestScoreSelf && (t.bestScoreSelf = 0 | e.bestScoreSelf), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.rangeMap = []), t.defaults && (n.multiplier = 0, n.addend = 0, n.seed = 0, n.token = "", n.anchorRankBestUserName = "", n.anchorRankBestScore = 0, n.bestScoreSelf = 0), null != e.multiplier && e.hasOwnProperty("multiplier") && (n.multiplier = e.multiplier), null != e.addend && e.hasOwnProperty("addend") && (n.addend = e.addend), null != e.seed && e.hasOwnProperty("seed") && (n.seed = e.seed), null != e.token && e.hasOwnProperty("token") && (n.token = e.token), e.rangeMap && e.rangeMap.length) + { + n.rangeMap = []; + for (var r = 0; r < e.rangeMap.length; ++r) n.rangeMap[r] = l.webcast.data.GameGiftData.MonkeyData.Range.toObject(e.rangeMap[r], t) + } + return null != e.anchorRankBestUserName && e.hasOwnProperty("anchorRankBestUserName") && (n.anchorRankBestUserName = e.anchorRankBestUserName), null != e.anchorRankBestScore && e.hasOwnProperty("anchorRankBestScore") && (n.anchorRankBestScore = e.anchorRankBestScore), null != e.bestScoreSelf && e.hasOwnProperty("bestScoreSelf") && (n.bestScoreSelf = e.bestScoreSelf), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Range = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.min = 0, e.prototype.max = 0, e.prototype.result = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.min && Object.hasOwnProperty.call(e, "min") && t.uint32(8).int32(e.min), null != e.max && Object.hasOwnProperty.call(e, "max") && t.uint32(16).int32(e.max), null != e.result && Object.hasOwnProperty.call(e, "result") && t.uint32(24).int32(e.result), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.GameGiftData.MonkeyData.Range; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.min = e.int32(); + break; + case 2: + r.max = e.int32(); + break; + case 3: + r.result = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.min && e.hasOwnProperty("min") && !a.isInteger(e.min) ? "min: integer expected" : null != e.max && e.hasOwnProperty("max") && !a.isInteger(e.max) ? "max: integer expected" : null != e.result && e.hasOwnProperty("result") && !a.isInteger(e.result) ? "result: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GameGiftData.MonkeyData.Range) return e; + var t = new l.webcast.data.GameGiftData.MonkeyData.Range; + return null != e.min && (t.min = 0 | e.min), null != e.max && (t.max = 0 | e.max), null != e.result && (t.result = 0 | e.result), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.min = 0, n.max = 0, n.result = 0), null != e.min && e.hasOwnProperty("min") && (n.min = e.min), null != e.max && e.hasOwnProperty("max") && (n.max = e.max), null != e.result && e.hasOwnProperty("result") && (n.result = e.result), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e + }(), e.MonkeyDataRedis = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.time = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.liveId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.roomId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.anchorId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.userId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.giftId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.seed = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.score = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.token = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.time && Object.hasOwnProperty.call(e, "time") && t.uint32(8).int64(e.time), null != e.liveId && Object.hasOwnProperty.call(e, "liveId") && t.uint32(16).int64(e.liveId), null != e.roomId && Object.hasOwnProperty.call(e, "roomId") && t.uint32(24).int64(e.roomId), null != e.anchorId && Object.hasOwnProperty.call(e, "anchorId") && t.uint32(32).int64(e.anchorId), null != e.userId && Object.hasOwnProperty.call(e, "userId") && t.uint32(40).int64(e.userId), null != e.giftId && Object.hasOwnProperty.call(e, "giftId") && t.uint32(48).int64(e.giftId), null != e.seed && Object.hasOwnProperty.call(e, "seed") && t.uint32(56).int64(e.seed), null != e.score && Object.hasOwnProperty.call(e, "score") && t.uint32(64).int64(e.score), null != e.token && Object.hasOwnProperty.call(e, "token") && t.uint32(74).string(e.token), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.MonkeyDataRedis; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.time = e.int64(); + break; + case 2: + r.liveId = e.int64(); + break; + case 3: + r.roomId = e.int64(); + break; + case 4: + r.anchorId = e.int64(); + break; + case 5: + r.userId = e.int64(); + break; + case 6: + r.giftId = e.int64(); + break; + case 7: + r.seed = e.int64(); + break; + case 8: + r.score = e.int64(); + break; + case 9: + r.token = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.time && e.hasOwnProperty("time") && !(a.isInteger(e.time) || e.time && a.isInteger(e.time.low) && a.isInteger(e.time.high)) ? "time: integer|Long expected" : null != e.liveId && e.hasOwnProperty("liveId") && !(a.isInteger(e.liveId) || e.liveId && a.isInteger(e.liveId.low) && a.isInteger(e.liveId.high)) ? "liveId: integer|Long expected" : null != e.roomId && e.hasOwnProperty("roomId") && !(a.isInteger(e.roomId) || e.roomId && a.isInteger(e.roomId.low) && a.isInteger(e.roomId.high)) ? "roomId: integer|Long expected" : null != e.anchorId && e.hasOwnProperty("anchorId") && !(a.isInteger(e.anchorId) || e.anchorId && a.isInteger(e.anchorId.low) && a.isInteger(e.anchorId.high)) ? "anchorId: integer|Long expected" : null != e.userId && e.hasOwnProperty("userId") && !(a.isInteger(e.userId) || e.userId && a.isInteger(e.userId.low) && a.isInteger(e.userId.high)) ? "userId: integer|Long expected" : null != e.giftId && e.hasOwnProperty("giftId") && !(a.isInteger(e.giftId) || e.giftId && a.isInteger(e.giftId.low) && a.isInteger(e.giftId.high)) ? "giftId: integer|Long expected" : null != e.seed && e.hasOwnProperty("seed") && !(a.isInteger(e.seed) || e.seed && a.isInteger(e.seed.low) && a.isInteger(e.seed.high)) ? "seed: integer|Long expected" : null != e.score && e.hasOwnProperty("score") && !(a.isInteger(e.score) || e.score && a.isInteger(e.score.low) && a.isInteger(e.score.high)) ? "score: integer|Long expected" : null != e.token && e.hasOwnProperty("token") && !a.isString(e.token) ? "token: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.MonkeyDataRedis) return e; + var t = new l.webcast.data.MonkeyDataRedis; + return null != e.time && (a.Long ? (t.time = a.Long.fromValue(e.time)).unsigned = !1 : "string" == typeof e.time ? t.time = parseInt(e.time, 10) : "number" == typeof e.time ? t.time = e.time : "object" == typeof e.time && (t.time = new a.LongBits(e.time.low >>> 0, e.time.high >>> 0).toNumber())), null != e.liveId && (a.Long ? (t.liveId = a.Long.fromValue(e.liveId)).unsigned = !1 : "string" == typeof e.liveId ? t.liveId = parseInt(e.liveId, 10) : "number" == typeof e.liveId ? t.liveId = e.liveId : "object" == typeof e.liveId && (t.liveId = new a.LongBits(e.liveId.low >>> 0, e.liveId.high >>> 0).toNumber())), null != e.roomId && (a.Long ? (t.roomId = a.Long.fromValue(e.roomId)).unsigned = !1 : "string" == typeof e.roomId ? t.roomId = parseInt(e.roomId, 10) : "number" == typeof e.roomId ? t.roomId = e.roomId : "object" == typeof e.roomId && (t.roomId = new a.LongBits(e.roomId.low >>> 0, e.roomId.high >>> 0).toNumber())), null != e.anchorId && (a.Long ? (t.anchorId = a.Long.fromValue(e.anchorId)).unsigned = !1 : "string" == typeof e.anchorId ? t.anchorId = parseInt(e.anchorId, 10) : "number" == typeof e.anchorId ? t.anchorId = e.anchorId : "object" == typeof e.anchorId && (t.anchorId = new a.LongBits(e.anchorId.low >>> 0, e.anchorId.high >>> 0).toNumber())), null != e.userId && (a.Long ? (t.userId = a.Long.fromValue(e.userId)).unsigned = !1 : "string" == typeof e.userId ? t.userId = parseInt(e.userId, 10) : "number" == typeof e.userId ? t.userId = e.userId : "object" == typeof e.userId && (t.userId = new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber())), null != e.giftId && (a.Long ? (t.giftId = a.Long.fromValue(e.giftId)).unsigned = !1 : "string" == typeof e.giftId ? t.giftId = parseInt(e.giftId, 10) : "number" == typeof e.giftId ? t.giftId = e.giftId : "object" == typeof e.giftId && (t.giftId = new a.LongBits(e.giftId.low >>> 0, e.giftId.high >>> 0).toNumber())), null != e.seed && (a.Long ? (t.seed = a.Long.fromValue(e.seed)).unsigned = !1 : "string" == typeof e.seed ? t.seed = parseInt(e.seed, 10) : "number" == typeof e.seed ? t.seed = e.seed : "object" == typeof e.seed && (t.seed = new a.LongBits(e.seed.low >>> 0, e.seed.high >>> 0).toNumber())), null != e.score && (a.Long ? (t.score = a.Long.fromValue(e.score)).unsigned = !1 : "string" == typeof e.score ? t.score = parseInt(e.score, 10) : "number" == typeof e.score ? t.score = e.score : "object" == typeof e.score && (t.score = new a.LongBits(e.score.low >>> 0, e.score.high >>> 0).toNumber())), null != e.token && (t.token = String(e.token)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.time = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.time = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.liveId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.liveId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.roomId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.roomId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.anchorId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.anchorId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.userId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.userId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.giftId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.giftId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.seed = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.seed = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.score = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.score = t.longs === String ? "0" : 0; + n.token = "" + } + return null != e.time && e.hasOwnProperty("time") && ("number" == typeof e.time ? n.time = t.longs === String ? String(e.time) : e.time : n.time = t.longs === String ? a.Long.prototype.toString.call(e.time) : t.longs === Number ? new a.LongBits(e.time.low >>> 0, e.time.high >>> 0).toNumber() : e.time), null != e.liveId && e.hasOwnProperty("liveId") && ("number" == typeof e.liveId ? n.liveId = t.longs === String ? String(e.liveId) : e.liveId : n.liveId = t.longs === String ? a.Long.prototype.toString.call(e.liveId) : t.longs === Number ? new a.LongBits(e.liveId.low >>> 0, e.liveId.high >>> 0).toNumber() : e.liveId), null != e.roomId && e.hasOwnProperty("roomId") && ("number" == typeof e.roomId ? n.roomId = t.longs === String ? String(e.roomId) : e.roomId : n.roomId = t.longs === String ? a.Long.prototype.toString.call(e.roomId) : t.longs === Number ? new a.LongBits(e.roomId.low >>> 0, e.roomId.high >>> 0).toNumber() : e.roomId), null != e.anchorId && e.hasOwnProperty("anchorId") && ("number" == typeof e.anchorId ? n.anchorId = t.longs === String ? String(e.anchorId) : e.anchorId : n.anchorId = t.longs === String ? a.Long.prototype.toString.call(e.anchorId) : t.longs === Number ? new a.LongBits(e.anchorId.low >>> 0, e.anchorId.high >>> 0).toNumber() : e.anchorId), null != e.userId && e.hasOwnProperty("userId") && ("number" == typeof e.userId ? n.userId = t.longs === String ? String(e.userId) : e.userId : n.userId = t.longs === String ? a.Long.prototype.toString.call(e.userId) : t.longs === Number ? new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber() : e.userId), null != e.giftId && e.hasOwnProperty("giftId") && ("number" == typeof e.giftId ? n.giftId = t.longs === String ? String(e.giftId) : e.giftId : n.giftId = t.longs === String ? a.Long.prototype.toString.call(e.giftId) : t.longs === Number ? new a.LongBits(e.giftId.low >>> 0, e.giftId.high >>> 0).toNumber() : e.giftId), null != e.seed && e.hasOwnProperty("seed") && ("number" == typeof e.seed ? n.seed = t.longs === String ? String(e.seed) : e.seed : n.seed = t.longs === String ? a.Long.prototype.toString.call(e.seed) : t.longs === Number ? new a.LongBits(e.seed.low >>> 0, e.seed.high >>> 0).toNumber() : e.seed), null != e.score && e.hasOwnProperty("score") && ("number" == typeof e.score ? n.score = t.longs === String ? String(e.score) : e.score : n.score = t.longs === String ? a.Long.prototype.toString.call(e.score) : t.longs === Number ? new a.LongBits(e.score.low >>> 0, e.score.high >>> 0).toNumber() : e.score), null != e.token && e.hasOwnProperty("token") && (n.token = e.token), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.MonkeyGiftRankData = function () + { + function e(e) + { + if (this.rankList = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.type = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.historyBest = null, e.prototype.keepRecordDays = 0, e.prototype.rankList = a.emptyArray, e.prototype.selfRank = null, e.prototype.hasMore = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.type && Object.hasOwnProperty.call(e, "type") && t.uint32(8).int64(e.type), null != e.historyBest && Object.hasOwnProperty.call(e, "historyBest") && l.webcast.data.MonkeyGiftRankData.Rank.encode(e.historyBest, t.uint32(18).fork()).ldelim(), null != e.keepRecordDays && Object.hasOwnProperty.call(e, "keepRecordDays") && t.uint32(24).int32(e.keepRecordDays), null != e.rankList && e.rankList.length) + for (var n = 0; n < e.rankList.length; ++n) l.webcast.data.MonkeyGiftRankData.Rank.encode(e.rankList[n], t.uint32(34).fork()).ldelim(); + return null != e.selfRank && Object.hasOwnProperty.call(e, "selfRank") && l.webcast.data.MonkeyGiftRankData.Rank.encode(e.selfRank, t.uint32(42).fork()).ldelim(), null != e.hasMore && Object.hasOwnProperty.call(e, "hasMore") && t.uint32(48).bool(e.hasMore), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.MonkeyGiftRankData; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.type = e.int64(); + break; + case 2: + r.historyBest = l.webcast.data.MonkeyGiftRankData.Rank.decode(e, e.uint32()); + break; + case 3: + r.keepRecordDays = e.int32(); + break; + case 4: + r.rankList && r.rankList.length || (r.rankList = []), r.rankList.push(l.webcast.data.MonkeyGiftRankData.Rank.decode(e, e.uint32())); + break; + case 5: + r.selfRank = l.webcast.data.MonkeyGiftRankData.Rank.decode(e, e.uint32()); + break; + case 6: + r.hasMore = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.type && e.hasOwnProperty("type") && !(a.isInteger(e.type) || e.type && a.isInteger(e.type.low) && a.isInteger(e.type.high))) return "type: integer|Long expected"; + if (null != e.historyBest && e.hasOwnProperty("historyBest") && (n = l.webcast.data.MonkeyGiftRankData.Rank.verify(e.historyBest))) return "historyBest." + n; + if (null != e.keepRecordDays && e.hasOwnProperty("keepRecordDays") && !a.isInteger(e.keepRecordDays)) return "keepRecordDays: integer expected"; + if (null != e.rankList && e.hasOwnProperty("rankList")) + { + if (!Array.isArray(e.rankList)) return "rankList: array expected"; + for (var t = 0; t < e.rankList.length; ++t) + { + var n; + if (n = l.webcast.data.MonkeyGiftRankData.Rank.verify(e.rankList[t])) return "rankList." + n + } + } + if (null != e.selfRank && e.hasOwnProperty("selfRank") && (n = l.webcast.data.MonkeyGiftRankData.Rank.verify(e.selfRank))) return "selfRank." + n; + return null != e.hasMore && e.hasOwnProperty("hasMore") && "boolean" != typeof e.hasMore ? "hasMore: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.MonkeyGiftRankData) return e; + var t = new l.webcast.data.MonkeyGiftRankData; + if (null != e.type && (a.Long ? (t.type = a.Long.fromValue(e.type)).unsigned = !1 : "string" == typeof e.type ? t.type = parseInt(e.type, 10) : "number" == typeof e.type ? t.type = e.type : "object" == typeof e.type && (t.type = new a.LongBits(e.type.low >>> 0, e.type.high >>> 0).toNumber())), null != e.historyBest) + { + if ("object" != typeof e.historyBest) throw TypeError(".webcast.data.MonkeyGiftRankData.historyBest: object expected"); + t.historyBest = l.webcast.data.MonkeyGiftRankData.Rank.fromObject(e.historyBest) + } + if (null != e.keepRecordDays && (t.keepRecordDays = 0 | e.keepRecordDays), e.rankList) + { + if (!Array.isArray(e.rankList)) throw TypeError(".webcast.data.MonkeyGiftRankData.rankList: array expected"); + t.rankList = []; + for (var n = 0; n < e.rankList.length; ++n) + { + if ("object" != typeof e.rankList[n]) throw TypeError(".webcast.data.MonkeyGiftRankData.rankList: object expected"); + t.rankList[n] = l.webcast.data.MonkeyGiftRankData.Rank.fromObject(e.rankList[n]) + } + } + if (null != e.selfRank) + { + if ("object" != typeof e.selfRank) throw TypeError(".webcast.data.MonkeyGiftRankData.selfRank: object expected"); + t.selfRank = l.webcast.data.MonkeyGiftRankData.Rank.fromObject(e.selfRank) + } + return null != e.hasMore && (t.hasMore = Boolean(e.hasMore)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.rankList = []), t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.type = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.type = t.longs === String ? "0" : 0; + n.historyBest = null, n.keepRecordDays = 0, n.selfRank = null, n.hasMore = !1 + } + if (null != e.type && e.hasOwnProperty("type") && ("number" == typeof e.type ? n.type = t.longs === String ? String(e.type) : e.type : n.type = t.longs === String ? a.Long.prototype.toString.call(e.type) : t.longs === Number ? new a.LongBits(e.type.low >>> 0, e.type.high >>> 0).toNumber() : e.type), null != e.historyBest && e.hasOwnProperty("historyBest") && (n.historyBest = l.webcast.data.MonkeyGiftRankData.Rank.toObject(e.historyBest, t)), null != e.keepRecordDays && e.hasOwnProperty("keepRecordDays") && (n.keepRecordDays = e.keepRecordDays), e.rankList && e.rankList.length) + { + n.rankList = []; + for (var o = 0; o < e.rankList.length; ++o) n.rankList[o] = l.webcast.data.MonkeyGiftRankData.Rank.toObject(e.rankList[o], t) + } + return null != e.selfRank && e.hasOwnProperty("selfRank") && (n.selfRank = l.webcast.data.MonkeyGiftRankData.Rank.toObject(e.selfRank, t)), null != e.hasMore && e.hasOwnProperty("hasMore") && (n.hasMore = e.hasMore), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Rank = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.user = null, e.prototype.onList = !1, e.prototype.rank = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.score = 0, e.prototype.delta = 0, e.prototype.medal = 0, e.prototype.anchorId = "", e.prototype.anchorName = "", e.prototype.anchorRoomId = "", e.prototype.secAnchorId = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.user && Object.hasOwnProperty.call(e, "user") && l.webcast.data.User.encode(e.user, t.uint32(10).fork()).ldelim(), null != e.onList && Object.hasOwnProperty.call(e, "onList") && t.uint32(16).bool(e.onList), null != e.rank && Object.hasOwnProperty.call(e, "rank") && t.uint32(24).int64(e.rank), null != e.score && Object.hasOwnProperty.call(e, "score") && t.uint32(32).int32(e.score), null != e.delta && Object.hasOwnProperty.call(e, "delta") && t.uint32(40).int32(e.delta), null != e.medal && Object.hasOwnProperty.call(e, "medal") && t.uint32(48).int32(e.medal), null != e.anchorId && Object.hasOwnProperty.call(e, "anchorId") && t.uint32(58).string(e.anchorId), null != e.anchorName && Object.hasOwnProperty.call(e, "anchorName") && t.uint32(66).string(e.anchorName), null != e.anchorRoomId && Object.hasOwnProperty.call(e, "anchorRoomId") && t.uint32(74).string(e.anchorRoomId), null != e.secAnchorId && Object.hasOwnProperty.call(e, "secAnchorId") && t.uint32(82).string(e.secAnchorId), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.MonkeyGiftRankData.Rank; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.user = l.webcast.data.User.decode(e, e.uint32()); + break; + case 2: + r.onList = e.bool(); + break; + case 3: + r.rank = e.int64(); + break; + case 4: + r.score = e.int32(); + break; + case 5: + r.delta = e.int32(); + break; + case 6: + r.medal = e.int32(); + break; + case 7: + r.anchorId = e.string(); + break; + case 8: + r.anchorName = e.string(); + break; + case 9: + r.anchorRoomId = e.string(); + break; + case 10: + r.secAnchorId = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.user && e.hasOwnProperty("user")) + { + var t = l.webcast.data.User.verify(e.user); + if (t) return "user." + t + } + return null != e.onList && e.hasOwnProperty("onList") && "boolean" != typeof e.onList ? "onList: boolean expected" : null != e.rank && e.hasOwnProperty("rank") && !(a.isInteger(e.rank) || e.rank && a.isInteger(e.rank.low) && a.isInteger(e.rank.high)) ? "rank: integer|Long expected" : null != e.score && e.hasOwnProperty("score") && !a.isInteger(e.score) ? "score: integer expected" : null != e.delta && e.hasOwnProperty("delta") && !a.isInteger(e.delta) ? "delta: integer expected" : null != e.medal && e.hasOwnProperty("medal") && !a.isInteger(e.medal) ? "medal: integer expected" : null != e.anchorId && e.hasOwnProperty("anchorId") && !a.isString(e.anchorId) ? "anchorId: string expected" : null != e.anchorName && e.hasOwnProperty("anchorName") && !a.isString(e.anchorName) ? "anchorName: string expected" : null != e.anchorRoomId && e.hasOwnProperty("anchorRoomId") && !a.isString(e.anchorRoomId) ? "anchorRoomId: string expected" : null != e.secAnchorId && e.hasOwnProperty("secAnchorId") && !a.isString(e.secAnchorId) ? "secAnchorId: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.MonkeyGiftRankData.Rank) return e; + var t = new l.webcast.data.MonkeyGiftRankData.Rank; + if (null != e.user) + { + if ("object" != typeof e.user) throw TypeError(".webcast.data.MonkeyGiftRankData.Rank.user: object expected"); + t.user = l.webcast.data.User.fromObject(e.user) + } + return null != e.onList && (t.onList = Boolean(e.onList)), null != e.rank && (a.Long ? (t.rank = a.Long.fromValue(e.rank)).unsigned = !1 : "string" == typeof e.rank ? t.rank = parseInt(e.rank, 10) : "number" == typeof e.rank ? t.rank = e.rank : "object" == typeof e.rank && (t.rank = new a.LongBits(e.rank.low >>> 0, e.rank.high >>> 0).toNumber())), null != e.score && (t.score = 0 | e.score), null != e.delta && (t.delta = 0 | e.delta), null != e.medal && (t.medal = 0 | e.medal), null != e.anchorId && (t.anchorId = String(e.anchorId)), null != e.anchorName && (t.anchorName = String(e.anchorName)), null != e.anchorRoomId && (t.anchorRoomId = String(e.anchorRoomId)), null != e.secAnchorId && (t.secAnchorId = String(e.secAnchorId)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.user = null, n.onList = !1, a.Long) + { + var r = new a.Long(0, 0, !1); + n.rank = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.rank = t.longs === String ? "0" : 0; + n.score = 0, n.delta = 0, n.medal = 0, n.anchorId = "", n.anchorName = "", n.anchorRoomId = "", n.secAnchorId = "" + } + return null != e.user && e.hasOwnProperty("user") && (n.user = l.webcast.data.User.toObject(e.user, t)), null != e.onList && e.hasOwnProperty("onList") && (n.onList = e.onList), null != e.rank && e.hasOwnProperty("rank") && ("number" == typeof e.rank ? n.rank = t.longs === String ? String(e.rank) : e.rank : n.rank = t.longs === String ? a.Long.prototype.toString.call(e.rank) : t.longs === Number ? new a.LongBits(e.rank.low >>> 0, e.rank.high >>> 0).toNumber() : e.rank), null != e.score && e.hasOwnProperty("score") && (n.score = e.score), null != e.delta && e.hasOwnProperty("delta") && (n.delta = e.delta), null != e.medal && e.hasOwnProperty("medal") && (n.medal = e.medal), null != e.anchorId && e.hasOwnProperty("anchorId") && (n.anchorId = e.anchorId), null != e.anchorName && e.hasOwnProperty("anchorName") && (n.anchorName = e.anchorName), null != e.anchorRoomId && e.hasOwnProperty("anchorRoomId") && (n.anchorRoomId = e.anchorRoomId), null != e.secAnchorId && e.hasOwnProperty("secAnchorId") && (n.secAnchorId = e.secAnchorId), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.DoodleTemplate = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.templateId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.image = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.templateId && Object.hasOwnProperty.call(e, "templateId") && t.uint32(8).int64(e.templateId), null != e.image && Object.hasOwnProperty.call(e, "image") && l.webcast.data.Image.encode(e.image, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.DoodleTemplate; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.templateId = e.int64(); + break; + case 2: + r.image = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.templateId && e.hasOwnProperty("templateId") && !(a.isInteger(e.templateId) || e.templateId && a.isInteger(e.templateId.low) && a.isInteger(e.templateId.high))) return "templateId: integer|Long expected"; + if (null != e.image && e.hasOwnProperty("image")) + { + var t = l.webcast.data.Image.verify(e.image); + if (t) return "image." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.DoodleTemplate) return e; + var t = new l.webcast.data.DoodleTemplate; + if (null != e.templateId && (a.Long ? (t.templateId = a.Long.fromValue(e.templateId)).unsigned = !1 : "string" == typeof e.templateId ? t.templateId = parseInt(e.templateId, 10) : "number" == typeof e.templateId ? t.templateId = e.templateId : "object" == typeof e.templateId && (t.templateId = new a.LongBits(e.templateId.low >>> 0, e.templateId.high >>> 0).toNumber())), null != e.image) + { + if ("object" != typeof e.image) throw TypeError(".webcast.data.DoodleTemplate.image: object expected"); + t.image = l.webcast.data.Image.fromObject(e.image) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.templateId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.templateId = t.longs === String ? "0" : 0; + n.image = null + } + return null != e.templateId && e.hasOwnProperty("templateId") && ("number" == typeof e.templateId ? n.templateId = t.longs === String ? String(e.templateId) : e.templateId : n.templateId = t.longs === String ? a.Long.prototype.toString.call(e.templateId) : t.longs === Number ? new a.LongBits(e.templateId.low >>> 0, e.templateId.high >>> 0).toNumber() : e.templateId), null != e.image && e.hasOwnProperty("image") && (n.image = l.webcast.data.Image.toObject(e.image, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.GiftBanner = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.displayText = null, e.prototype.displayTextBgColor = "", e.prototype.boxImg = null, e.prototype.bgImg = null, e.prototype.schemeUrl = "", e.prototype.animate = !1, e.prototype.boxId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.availableBoxCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.displayText && Object.hasOwnProperty.call(e, "displayText") && l.webcast.data.Text.encode(e.displayText, t.uint32(10).fork()).ldelim(), null != e.displayTextBgColor && Object.hasOwnProperty.call(e, "displayTextBgColor") && t.uint32(18).string(e.displayTextBgColor), null != e.boxImg && Object.hasOwnProperty.call(e, "boxImg") && l.webcast.data.Image.encode(e.boxImg, t.uint32(26).fork()).ldelim(), null != e.bgImg && Object.hasOwnProperty.call(e, "bgImg") && l.webcast.data.Image.encode(e.bgImg, t.uint32(34).fork()).ldelim(), null != e.schemeUrl && Object.hasOwnProperty.call(e, "schemeUrl") && t.uint32(42).string(e.schemeUrl), null != e.animate && Object.hasOwnProperty.call(e, "animate") && t.uint32(48).bool(e.animate), null != e.boxId && Object.hasOwnProperty.call(e, "boxId") && t.uint32(56).int64(e.boxId), null != e.availableBoxCount && Object.hasOwnProperty.call(e, "availableBoxCount") && t.uint32(64).int64(e.availableBoxCount), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.GiftBanner; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.displayText = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 2: + r.displayTextBgColor = e.string(); + break; + case 3: + r.boxImg = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 4: + r.bgImg = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 5: + r.schemeUrl = e.string(); + break; + case 6: + r.animate = e.bool(); + break; + case 7: + r.boxId = e.int64(); + break; + case 8: + r.availableBoxCount = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.displayText && e.hasOwnProperty("displayText") && (t = l.webcast.data.Text.verify(e.displayText))) return "displayText." + t; + if (null != e.displayTextBgColor && e.hasOwnProperty("displayTextBgColor") && !a.isString(e.displayTextBgColor)) return "displayTextBgColor: string expected"; + if (null != e.boxImg && e.hasOwnProperty("boxImg") && (t = l.webcast.data.Image.verify(e.boxImg))) return "boxImg." + t; + if (null != e.bgImg && e.hasOwnProperty("bgImg") && (t = l.webcast.data.Image.verify(e.bgImg))) return "bgImg." + t; + return null != e.schemeUrl && e.hasOwnProperty("schemeUrl") && !a.isString(e.schemeUrl) ? "schemeUrl: string expected" : null != e.animate && e.hasOwnProperty("animate") && "boolean" != typeof e.animate ? "animate: boolean expected" : null != e.boxId && e.hasOwnProperty("boxId") && !(a.isInteger(e.boxId) || e.boxId && a.isInteger(e.boxId.low) && a.isInteger(e.boxId.high)) ? "boxId: integer|Long expected" : null != e.availableBoxCount && e.hasOwnProperty("availableBoxCount") && !(a.isInteger(e.availableBoxCount) || e.availableBoxCount && a.isInteger(e.availableBoxCount.low) && a.isInteger(e.availableBoxCount.high)) ? "availableBoxCount: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GiftBanner) return e; + var t = new l.webcast.data.GiftBanner; + if (null != e.displayText) + { + if ("object" != typeof e.displayText) throw TypeError(".webcast.data.GiftBanner.displayText: object expected"); + t.displayText = l.webcast.data.Text.fromObject(e.displayText) + } + if (null != e.displayTextBgColor && (t.displayTextBgColor = String(e.displayTextBgColor)), null != e.boxImg) + { + if ("object" != typeof e.boxImg) throw TypeError(".webcast.data.GiftBanner.boxImg: object expected"); + t.boxImg = l.webcast.data.Image.fromObject(e.boxImg) + } + if (null != e.bgImg) + { + if ("object" != typeof e.bgImg) throw TypeError(".webcast.data.GiftBanner.bgImg: object expected"); + t.bgImg = l.webcast.data.Image.fromObject(e.bgImg) + } + return null != e.schemeUrl && (t.schemeUrl = String(e.schemeUrl)), null != e.animate && (t.animate = Boolean(e.animate)), null != e.boxId && (a.Long ? (t.boxId = a.Long.fromValue(e.boxId)).unsigned = !1 : "string" == typeof e.boxId ? t.boxId = parseInt(e.boxId, 10) : "number" == typeof e.boxId ? t.boxId = e.boxId : "object" == typeof e.boxId && (t.boxId = new a.LongBits(e.boxId.low >>> 0, e.boxId.high >>> 0).toNumber())), null != e.availableBoxCount && (a.Long ? (t.availableBoxCount = a.Long.fromValue(e.availableBoxCount)).unsigned = !1 : "string" == typeof e.availableBoxCount ? t.availableBoxCount = parseInt(e.availableBoxCount, 10) : "number" == typeof e.availableBoxCount ? t.availableBoxCount = e.availableBoxCount : "object" == typeof e.availableBoxCount && (t.availableBoxCount = new a.LongBits(e.availableBoxCount.low >>> 0, e.availableBoxCount.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.displayText = null, n.displayTextBgColor = "", n.boxImg = null, n.bgImg = null, n.schemeUrl = "", n.animate = !1, a.Long) + { + var r = new a.Long(0, 0, !1); + n.boxId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.boxId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.availableBoxCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.availableBoxCount = t.longs === String ? "0" : 0 + } + return null != e.displayText && e.hasOwnProperty("displayText") && (n.displayText = l.webcast.data.Text.toObject(e.displayText, t)), null != e.displayTextBgColor && e.hasOwnProperty("displayTextBgColor") && (n.displayTextBgColor = e.displayTextBgColor), null != e.boxImg && e.hasOwnProperty("boxImg") && (n.boxImg = l.webcast.data.Image.toObject(e.boxImg, t)), null != e.bgImg && e.hasOwnProperty("bgImg") && (n.bgImg = l.webcast.data.Image.toObject(e.bgImg, t)), null != e.schemeUrl && e.hasOwnProperty("schemeUrl") && (n.schemeUrl = e.schemeUrl), null != e.animate && e.hasOwnProperty("animate") && (n.animate = e.animate), null != e.boxId && e.hasOwnProperty("boxId") && ("number" == typeof e.boxId ? n.boxId = t.longs === String ? String(e.boxId) : e.boxId : n.boxId = t.longs === String ? a.Long.prototype.toString.call(e.boxId) : t.longs === Number ? new a.LongBits(e.boxId.low >>> 0, e.boxId.high >>> 0).toNumber() : e.boxId), null != e.availableBoxCount && e.hasOwnProperty("availableBoxCount") && ("number" == typeof e.availableBoxCount ? n.availableBoxCount = t.longs === String ? String(e.availableBoxCount) : e.availableBoxCount : n.availableBoxCount = t.longs === String ? a.Long.prototype.toString.call(e.availableBoxCount) : t.longs === Number ? new a.LongBits(e.availableBoxCount.low >>> 0, e.availableBoxCount.high >>> 0).toNumber() : e.availableBoxCount), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EffectMixImageInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.imageKey = "", e.prototype.mixImage = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.imageKey && Object.hasOwnProperty.call(e, "imageKey") && t.uint32(10).string(e.imageKey), null != e.mixImage && Object.hasOwnProperty.call(e, "mixImage") && l.webcast.data.Image.encode(e.mixImage, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EffectMixImageInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.imageKey = e.string(); + break; + case 2: + r.mixImage = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.imageKey && e.hasOwnProperty("imageKey") && !a.isString(e.imageKey)) return "imageKey: string expected"; + if (null != e.mixImage && e.hasOwnProperty("mixImage")) + { + var t = l.webcast.data.Image.verify(e.mixImage); + if (t) return "mixImage." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EffectMixImageInfo) return e; + var t = new l.webcast.data.EffectMixImageInfo; + if (null != e.imageKey && (t.imageKey = String(e.imageKey)), null != e.mixImage) + { + if ("object" != typeof e.mixImage) throw TypeError(".webcast.data.EffectMixImageInfo.mixImage: object expected"); + t.mixImage = l.webcast.data.Image.fromObject(e.mixImage) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.imageKey = "", n.mixImage = null), null != e.imageKey && e.hasOwnProperty("imageKey") && (n.imageKey = e.imageKey), null != e.mixImage && e.hasOwnProperty("mixImage") && (n.mixImage = l.webcast.data.Image.toObject(e.mixImage, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.AssetEffectMixInfo = function () + { + function e(e) + { + if (this.effectMixImageInfos = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.effectMixImageInfos = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.effectMixImageInfos && e.effectMixImageInfos.length) + for (var n = 0; n < e.effectMixImageInfos.length; ++n) l.webcast.data.EffectMixImageInfo.encode(e.effectMixImageInfos[n], t.uint32(10).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.AssetEffectMixInfo; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.effectMixImageInfos && r.effectMixImageInfos.length || (r.effectMixImageInfos = []), r.effectMixImageInfos.push(l.webcast.data.EffectMixImageInfo.decode(e, e.uint32())); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.effectMixImageInfos && e.hasOwnProperty("effectMixImageInfos")) + { + if (!Array.isArray(e.effectMixImageInfos)) return "effectMixImageInfos: array expected"; + for (var t = 0; t < e.effectMixImageInfos.length; ++t) + { + var n = l.webcast.data.EffectMixImageInfo.verify(e.effectMixImageInfos[t]); + if (n) return "effectMixImageInfos." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.AssetEffectMixInfo) return e; + var t = new l.webcast.data.AssetEffectMixInfo; + if (e.effectMixImageInfos) + { + if (!Array.isArray(e.effectMixImageInfos)) throw TypeError(".webcast.data.AssetEffectMixInfo.effectMixImageInfos: array expected"); + t.effectMixImageInfos = []; + for (var n = 0; n < e.effectMixImageInfos.length; ++n) + { + if ("object" != typeof e.effectMixImageInfos[n]) throw TypeError(".webcast.data.AssetEffectMixInfo.effectMixImageInfos: object expected"); + t.effectMixImageInfos[n] = l.webcast.data.EffectMixImageInfo.fromObject(e.effectMixImageInfos[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.effectMixImageInfos = []), e.effectMixImageInfos && e.effectMixImageInfos.length) + { + n.effectMixImageInfos = []; + for (var r = 0; r < e.effectMixImageInfos.length; ++r) n.effectMixImageInfos[r] = l.webcast.data.EffectMixImageInfo.toObject(e.effectMixImageInfos[r], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.GiftTrayInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.trayDisplayText = null, e.prototype.trayBaseImg = null, e.prototype.trayHeadImg = null, e.prototype.trayRightImg = null, e.prototype.trayLevel = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.trayDynamicImg = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.trayDisplayText && Object.hasOwnProperty.call(e, "trayDisplayText") && l.webcast.data.Text.encode(e.trayDisplayText, t.uint32(10).fork()).ldelim(), null != e.trayBaseImg && Object.hasOwnProperty.call(e, "trayBaseImg") && l.webcast.data.Image.encode(e.trayBaseImg, t.uint32(18).fork()).ldelim(), null != e.trayHeadImg && Object.hasOwnProperty.call(e, "trayHeadImg") && l.webcast.data.Image.encode(e.trayHeadImg, t.uint32(26).fork()).ldelim(), null != e.trayRightImg && Object.hasOwnProperty.call(e, "trayRightImg") && l.webcast.data.Image.encode(e.trayRightImg, t.uint32(34).fork()).ldelim(), null != e.trayLevel && Object.hasOwnProperty.call(e, "trayLevel") && t.uint32(40).int64(e.trayLevel), null != e.trayDynamicImg && Object.hasOwnProperty.call(e, "trayDynamicImg") && l.webcast.data.Image.encode(e.trayDynamicImg, t.uint32(50).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.GiftTrayInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.trayDisplayText = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 2: + r.trayBaseImg = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 3: + r.trayHeadImg = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 4: + r.trayRightImg = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 5: + r.trayLevel = e.int64(); + break; + case 6: + r.trayDynamicImg = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.trayDisplayText && e.hasOwnProperty("trayDisplayText") && (t = l.webcast.data.Text.verify(e.trayDisplayText))) return "trayDisplayText." + t; + if (null != e.trayBaseImg && e.hasOwnProperty("trayBaseImg") && (t = l.webcast.data.Image.verify(e.trayBaseImg))) return "trayBaseImg." + t; + if (null != e.trayHeadImg && e.hasOwnProperty("trayHeadImg") && (t = l.webcast.data.Image.verify(e.trayHeadImg))) return "trayHeadImg." + t; + if (null != e.trayRightImg && e.hasOwnProperty("trayRightImg") && (t = l.webcast.data.Image.verify(e.trayRightImg))) return "trayRightImg." + t; + if (null != e.trayLevel && e.hasOwnProperty("trayLevel") && !(a.isInteger(e.trayLevel) || e.trayLevel && a.isInteger(e.trayLevel.low) && a.isInteger(e.trayLevel.high))) return "trayLevel: integer|Long expected"; + if (null != e.trayDynamicImg && e.hasOwnProperty("trayDynamicImg") && (t = l.webcast.data.Image.verify(e.trayDynamicImg))) return "trayDynamicImg." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GiftTrayInfo) return e; + var t = new l.webcast.data.GiftTrayInfo; + if (null != e.trayDisplayText) + { + if ("object" != typeof e.trayDisplayText) throw TypeError(".webcast.data.GiftTrayInfo.trayDisplayText: object expected"); + t.trayDisplayText = l.webcast.data.Text.fromObject(e.trayDisplayText) + } + if (null != e.trayBaseImg) + { + if ("object" != typeof e.trayBaseImg) throw TypeError(".webcast.data.GiftTrayInfo.trayBaseImg: object expected"); + t.trayBaseImg = l.webcast.data.Image.fromObject(e.trayBaseImg) + } + if (null != e.trayHeadImg) + { + if ("object" != typeof e.trayHeadImg) throw TypeError(".webcast.data.GiftTrayInfo.trayHeadImg: object expected"); + t.trayHeadImg = l.webcast.data.Image.fromObject(e.trayHeadImg) + } + if (null != e.trayRightImg) + { + if ("object" != typeof e.trayRightImg) throw TypeError(".webcast.data.GiftTrayInfo.trayRightImg: object expected"); + t.trayRightImg = l.webcast.data.Image.fromObject(e.trayRightImg) + } + if (null != e.trayLevel && (a.Long ? (t.trayLevel = a.Long.fromValue(e.trayLevel)).unsigned = !1 : "string" == typeof e.trayLevel ? t.trayLevel = parseInt(e.trayLevel, 10) : "number" == typeof e.trayLevel ? t.trayLevel = e.trayLevel : "object" == typeof e.trayLevel && (t.trayLevel = new a.LongBits(e.trayLevel.low >>> 0, e.trayLevel.high >>> 0).toNumber())), null != e.trayDynamicImg) + { + if ("object" != typeof e.trayDynamicImg) throw TypeError(".webcast.data.GiftTrayInfo.trayDynamicImg: object expected"); + t.trayDynamicImg = l.webcast.data.Image.fromObject(e.trayDynamicImg) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.trayDisplayText = null, n.trayBaseImg = null, n.trayHeadImg = null, n.trayRightImg = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.trayLevel = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.trayLevel = t.longs === String ? "0" : 0; + n.trayDynamicImg = null + } + return null != e.trayDisplayText && e.hasOwnProperty("trayDisplayText") && (n.trayDisplayText = l.webcast.data.Text.toObject(e.trayDisplayText, t)), null != e.trayBaseImg && e.hasOwnProperty("trayBaseImg") && (n.trayBaseImg = l.webcast.data.Image.toObject(e.trayBaseImg, t)), null != e.trayHeadImg && e.hasOwnProperty("trayHeadImg") && (n.trayHeadImg = l.webcast.data.Image.toObject(e.trayHeadImg, t)), null != e.trayRightImg && e.hasOwnProperty("trayRightImg") && (n.trayRightImg = l.webcast.data.Image.toObject(e.trayRightImg, t)), null != e.trayLevel && e.hasOwnProperty("trayLevel") && ("number" == typeof e.trayLevel ? n.trayLevel = t.longs === String ? String(e.trayLevel) : e.trayLevel : n.trayLevel = t.longs === String ? a.Long.prototype.toString.call(e.trayLevel) : t.longs === Number ? new a.LongBits(e.trayLevel.low >>> 0, e.trayLevel.high >>> 0).toNumber() : e.trayLevel), null != e.trayDynamicImg && e.hasOwnProperty("trayDynamicImg") && (n.trayDynamicImg = l.webcast.data.Image.toObject(e.trayDynamicImg, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.GiftExtra = function () + { + function e(e) + { + if (this.giftBuffInfos = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.giftId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.subscribeGiftPackInfo = null, e.prototype.bannerGiftInfo = "", e.prototype.giftBuffInfos = a.emptyArray, e.prototype.giftPanelTopDescSchemeUrl = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.giftId && Object.hasOwnProperty.call(e, "giftId") && t.uint32(8).int64(e.giftId), null != e.subscribeGiftPackInfo && Object.hasOwnProperty.call(e, "subscribeGiftPackInfo") && l.webcast.data.SubscribeGiftPackInfo.encode(e.subscribeGiftPackInfo, t.uint32(18).fork()).ldelim(), null != e.bannerGiftInfo && Object.hasOwnProperty.call(e, "bannerGiftInfo") && t.uint32(26).string(e.bannerGiftInfo), null != e.giftBuffInfos && e.giftBuffInfos.length) + for (var n = 0; n < e.giftBuffInfos.length; ++n) l.webcast.data.GiftBuffInfo.encode(e.giftBuffInfos[n], t.uint32(34).fork()).ldelim(); + return null != e.giftPanelTopDescSchemeUrl && Object.hasOwnProperty.call(e, "giftPanelTopDescSchemeUrl") && t.uint32(42).string(e.giftPanelTopDescSchemeUrl), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.GiftExtra; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.giftId = e.int64(); + break; + case 2: + r.subscribeGiftPackInfo = l.webcast.data.SubscribeGiftPackInfo.decode(e, e.uint32()); + break; + case 3: + r.bannerGiftInfo = e.string(); + break; + case 4: + r.giftBuffInfos && r.giftBuffInfos.length || (r.giftBuffInfos = []), r.giftBuffInfos.push(l.webcast.data.GiftBuffInfo.decode(e, e.uint32())); + break; + case 5: + r.giftPanelTopDescSchemeUrl = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.giftId && e.hasOwnProperty("giftId") && !(a.isInteger(e.giftId) || e.giftId && a.isInteger(e.giftId.low) && a.isInteger(e.giftId.high))) return "giftId: integer|Long expected"; + if (null != e.subscribeGiftPackInfo && e.hasOwnProperty("subscribeGiftPackInfo") && (n = l.webcast.data.SubscribeGiftPackInfo.verify(e.subscribeGiftPackInfo))) return "subscribeGiftPackInfo." + n; + if (null != e.bannerGiftInfo && e.hasOwnProperty("bannerGiftInfo") && !a.isString(e.bannerGiftInfo)) return "bannerGiftInfo: string expected"; + if (null != e.giftBuffInfos && e.hasOwnProperty("giftBuffInfos")) + { + if (!Array.isArray(e.giftBuffInfos)) return "giftBuffInfos: array expected"; + for (var t = 0; t < e.giftBuffInfos.length; ++t) + { + var n; + if (n = l.webcast.data.GiftBuffInfo.verify(e.giftBuffInfos[t])) return "giftBuffInfos." + n + } + } + return null != e.giftPanelTopDescSchemeUrl && e.hasOwnProperty("giftPanelTopDescSchemeUrl") && !a.isString(e.giftPanelTopDescSchemeUrl) ? "giftPanelTopDescSchemeUrl: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.GiftExtra) return e; + var t = new l.webcast.data.GiftExtra; + if (null != e.giftId && (a.Long ? (t.giftId = a.Long.fromValue(e.giftId)).unsigned = !1 : "string" == typeof e.giftId ? t.giftId = parseInt(e.giftId, 10) : "number" == typeof e.giftId ? t.giftId = e.giftId : "object" == typeof e.giftId && (t.giftId = new a.LongBits(e.giftId.low >>> 0, e.giftId.high >>> 0).toNumber())), null != e.subscribeGiftPackInfo) + { + if ("object" != typeof e.subscribeGiftPackInfo) throw TypeError(".webcast.data.GiftExtra.subscribeGiftPackInfo: object expected"); + t.subscribeGiftPackInfo = l.webcast.data.SubscribeGiftPackInfo.fromObject(e.subscribeGiftPackInfo) + } + if (null != e.bannerGiftInfo && (t.bannerGiftInfo = String(e.bannerGiftInfo)), e.giftBuffInfos) + { + if (!Array.isArray(e.giftBuffInfos)) throw TypeError(".webcast.data.GiftExtra.giftBuffInfos: array expected"); + t.giftBuffInfos = []; + for (var n = 0; n < e.giftBuffInfos.length; ++n) + { + if ("object" != typeof e.giftBuffInfos[n]) throw TypeError(".webcast.data.GiftExtra.giftBuffInfos: object expected"); + t.giftBuffInfos[n] = l.webcast.data.GiftBuffInfo.fromObject(e.giftBuffInfos[n]) + } + } + return null != e.giftPanelTopDescSchemeUrl && (t.giftPanelTopDescSchemeUrl = String(e.giftPanelTopDescSchemeUrl)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.giftBuffInfos = []), t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.giftId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.giftId = t.longs === String ? "0" : 0; + n.subscribeGiftPackInfo = null, n.bannerGiftInfo = "", n.giftPanelTopDescSchemeUrl = "" + } + if (null != e.giftId && e.hasOwnProperty("giftId") && ("number" == typeof e.giftId ? n.giftId = t.longs === String ? String(e.giftId) : e.giftId : n.giftId = t.longs === String ? a.Long.prototype.toString.call(e.giftId) : t.longs === Number ? new a.LongBits(e.giftId.low >>> 0, e.giftId.high >>> 0).toNumber() : e.giftId), null != e.subscribeGiftPackInfo && e.hasOwnProperty("subscribeGiftPackInfo") && (n.subscribeGiftPackInfo = l.webcast.data.SubscribeGiftPackInfo.toObject(e.subscribeGiftPackInfo, t)), null != e.bannerGiftInfo && e.hasOwnProperty("bannerGiftInfo") && (n.bannerGiftInfo = e.bannerGiftInfo), e.giftBuffInfos && e.giftBuffInfos.length) + { + n.giftBuffInfos = []; + for (var o = 0; o < e.giftBuffInfos.length; ++o) n.giftBuffInfos[o] = l.webcast.data.GiftBuffInfo.toObject(e.giftBuffInfos[o], t) + } + return null != e.giftPanelTopDescSchemeUrl && e.hasOwnProperty("giftPanelTopDescSchemeUrl") && (n.giftPanelTopDescSchemeUrl = e.giftPanelTopDescSchemeUrl), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "TYPE_UNKNOWN"] = 0, t[e[1] = "TYPE_VIDEO"] = 1, t[e[2] = "TYPE_AUDIO"] = 2, t[e[3] = "TYPE_VIRTUAL"] = 3, t[e[4] = "TYPE_CHORUS"] = 4, t + }(), e.LinkListStatus = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "STATUS_UNKOWN"] = 0, t[e[1] = "STATUS_WAITING"] = 1, t[e[2] = "STATUS_LINKED"] = 2, t[e[3] = "STATUS_FINISHED"] = 3, t[e[4] = "STATUS_WAITING_OR_LINKED"] = 4, t + }(), e.LinkSilenceStatus = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "STATUS_UNSILENCE"] = 0, t[e[1] = "STATUS_SILENCE_BY_SELF"] = 1, t[e[2] = "STATUS_SILENCE_BY_OWNER"] = 2, t[e[3] = "STATUS_SILENCE_PASSIVE"] = 3, t + }(), e.LinkRoleType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "TYPE_ROLE_TYPE_UNKOWN"] = 0, t[e[1] = "TYPE_LEADER"] = 1, t[e[2] = "TYPE_PLAYER"] = 2, t[e[3] = "TYPE_INVITEE"] = 3, t[e[4] = "TYPE_APPLIER"] = 4, t + }(), e.ListUserType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "LIST_USER_TYPE_UNKNOWN"] = 0, t[e[1] = "LIST_USER_TYPE_ROOM_AUDIENCE"] = 1, t[e[2] = "LIST_USER_TYPE_FRIEND"] = 2, t[e[4] = "LIST_USER_TYPE_INTERESTED"] = 4, t + }(), e.MultiPKUserRole = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "PK_USER_ROLE_UNKNOWN"] = 0, t[e[1] = "PK_USER_ROLE_GENERAL_PLAYER"] = 1, t[e[2] = "PK_USER_ROLE_LEADER_PLAYER"] = 2, t[e[3] = "PK_USER_ROLE_GENERAL_AUDIENCE"] = 3, t[e[4] = "PK_USER_ROLE_LEADER_AUDIENCE"] = 4, t + }(), e.ListUser = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.user = null, e.prototype.linkmicId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.linkmicIdStr = "", e.prototype.linkStatus = 0, e.prototype.linkType = 0, e.prototype.userPosition = 0, e.prototype.silenceStatus = 0, e.prototype.modifyTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.linkerId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.roleType = 0, e.prototype.content = null, e.prototype.mcStatus = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.isBackground = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.extra = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.user && Object.hasOwnProperty.call(e, "user") && l.webcast.data.User.encode(e.user, t.uint32(10).fork()).ldelim(), null != e.linkmicId && Object.hasOwnProperty.call(e, "linkmicId") && t.uint32(16).int64(e.linkmicId), null != e.linkmicIdStr && Object.hasOwnProperty.call(e, "linkmicIdStr") && t.uint32(26).string(e.linkmicIdStr), null != e.linkStatus && Object.hasOwnProperty.call(e, "linkStatus") && t.uint32(32).int32(e.linkStatus), null != e.linkType && Object.hasOwnProperty.call(e, "linkType") && t.uint32(40).int32(e.linkType), null != e.userPosition && Object.hasOwnProperty.call(e, "userPosition") && t.uint32(48).int32(e.userPosition), null != e.silenceStatus && Object.hasOwnProperty.call(e, "silenceStatus") && t.uint32(56).int32(e.silenceStatus), null != e.modifyTime && Object.hasOwnProperty.call(e, "modifyTime") && t.uint32(64).int64(e.modifyTime), null != e.linkerId && Object.hasOwnProperty.call(e, "linkerId") && t.uint32(72).int64(e.linkerId), null != e.roleType && Object.hasOwnProperty.call(e, "roleType") && t.uint32(80).int32(e.roleType), null != e.content && Object.hasOwnProperty.call(e, "content") && l.webcast.data.ListUser.Content.encode(e.content, t.uint32(90).fork()).ldelim(), null != e.mcStatus && Object.hasOwnProperty.call(e, "mcStatus") && t.uint32(96).int64(e.mcStatus), null != e.isBackground && Object.hasOwnProperty.call(e, "isBackground") && t.uint32(104).int64(e.isBackground), null != e.extra && Object.hasOwnProperty.call(e, "extra") && t.uint32(1602).string(e.extra), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ListUser; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.user = l.webcast.data.User.decode(e, e.uint32()); + break; + case 2: + r.linkmicId = e.int64(); + break; + case 3: + r.linkmicIdStr = e.string(); + break; + case 4: + r.linkStatus = e.int32(); + break; + case 5: + r.linkType = e.int32(); + break; + case 6: + r.userPosition = e.int32(); + break; + case 7: + r.silenceStatus = e.int32(); + break; + case 8: + r.modifyTime = e.int64(); + break; + case 9: + r.linkerId = e.int64(); + break; + case 10: + r.roleType = e.int32(); + break; + case 11: + r.content = l.webcast.data.ListUser.Content.decode(e, e.uint32()); + break; + case 12: + r.mcStatus = e.int64(); + break; + case 13: + r.isBackground = e.int64(); + break; + case 200: + r.extra = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.user && e.hasOwnProperty("user") && (t = l.webcast.data.User.verify(e.user))) return "user." + t; + if (null != e.linkmicId && e.hasOwnProperty("linkmicId") && !(a.isInteger(e.linkmicId) || e.linkmicId && a.isInteger(e.linkmicId.low) && a.isInteger(e.linkmicId.high))) return "linkmicId: integer|Long expected"; + if (null != e.linkmicIdStr && e.hasOwnProperty("linkmicIdStr") && !a.isString(e.linkmicIdStr)) return "linkmicIdStr: string expected"; + if (null != e.linkStatus && e.hasOwnProperty("linkStatus")) switch (e.linkStatus) + { + default: + return "linkStatus: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + } + if (null != e.linkType && e.hasOwnProperty("linkType")) switch (e.linkType) + { + default: + return "linkType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + } + if (null != e.userPosition && e.hasOwnProperty("userPosition") && !a.isInteger(e.userPosition)) return "userPosition: integer expected"; + if (null != e.silenceStatus && e.hasOwnProperty("silenceStatus")) switch (e.silenceStatus) + { + default: + return "silenceStatus: enum value expected"; + case 0: + case 1: + case 2: + case 3: + } + if (null != e.modifyTime && e.hasOwnProperty("modifyTime") && !(a.isInteger(e.modifyTime) || e.modifyTime && a.isInteger(e.modifyTime.low) && a.isInteger(e.modifyTime.high))) return "modifyTime: integer|Long expected"; + if (null != e.linkerId && e.hasOwnProperty("linkerId") && !(a.isInteger(e.linkerId) || e.linkerId && a.isInteger(e.linkerId.low) && a.isInteger(e.linkerId.high))) return "linkerId: integer|Long expected"; + if (null != e.roleType && e.hasOwnProperty("roleType")) switch (e.roleType) + { + default: + return "roleType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + } + if (null != e.content && e.hasOwnProperty("content") && (t = l.webcast.data.ListUser.Content.verify(e.content))) return "content." + t; + return null != e.mcStatus && e.hasOwnProperty("mcStatus") && !(a.isInteger(e.mcStatus) || e.mcStatus && a.isInteger(e.mcStatus.low) && a.isInteger(e.mcStatus.high)) ? "mcStatus: integer|Long expected" : null != e.isBackground && e.hasOwnProperty("isBackground") && !(a.isInteger(e.isBackground) || e.isBackground && a.isInteger(e.isBackground.low) && a.isInteger(e.isBackground.high)) ? "isBackground: integer|Long expected" : null != e.extra && e.hasOwnProperty("extra") && !a.isString(e.extra) ? "extra: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ListUser) return e; + var t = new l.webcast.data.ListUser; + if (null != e.user) + { + if ("object" != typeof e.user) throw TypeError(".webcast.data.ListUser.user: object expected"); + t.user = l.webcast.data.User.fromObject(e.user) + } + switch (null != e.linkmicId && (a.Long ? (t.linkmicId = a.Long.fromValue(e.linkmicId)).unsigned = !1 : "string" == typeof e.linkmicId ? t.linkmicId = parseInt(e.linkmicId, 10) : "number" == typeof e.linkmicId ? t.linkmicId = e.linkmicId : "object" == typeof e.linkmicId && (t.linkmicId = new a.LongBits(e.linkmicId.low >>> 0, e.linkmicId.high >>> 0).toNumber())), null != e.linkmicIdStr && (t.linkmicIdStr = String(e.linkmicIdStr)), e.linkStatus) + { + case "STATUS_UNKOWN": + case 0: + t.linkStatus = 0; + break; + case "STATUS_WAITING": + case 1: + t.linkStatus = 1; + break; + case "STATUS_LINKED": + case 2: + t.linkStatus = 2; + break; + case "STATUS_FINISHED": + case 3: + t.linkStatus = 3; + break; + case "STATUS_WAITING_OR_LINKED": + case 4: + t.linkStatus = 4 + } + switch (e.linkType) + { + case "TYPE_UNKNOWN": + case 0: + t.linkType = 0; + break; + case "TYPE_VIDEO": + case 1: + t.linkType = 1; + break; + case "TYPE_AUDIO": + case 2: + t.linkType = 2; + break; + case "TYPE_VIRTUAL": + case 3: + t.linkType = 3; + break; + case "TYPE_CHORUS": + case 4: + t.linkType = 4 + } + switch (null != e.userPosition && (t.userPosition = 0 | e.userPosition), e.silenceStatus) + { + case "STATUS_UNSILENCE": + case 0: + t.silenceStatus = 0; + break; + case "STATUS_SILENCE_BY_SELF": + case 1: + t.silenceStatus = 1; + break; + case "STATUS_SILENCE_BY_OWNER": + case 2: + t.silenceStatus = 2; + break; + case "STATUS_SILENCE_PASSIVE": + case 3: + t.silenceStatus = 3 + } + switch (null != e.modifyTime && (a.Long ? (t.modifyTime = a.Long.fromValue(e.modifyTime)).unsigned = !1 : "string" == typeof e.modifyTime ? t.modifyTime = parseInt(e.modifyTime, 10) : "number" == typeof e.modifyTime ? t.modifyTime = e.modifyTime : "object" == typeof e.modifyTime && (t.modifyTime = new a.LongBits(e.modifyTime.low >>> 0, e.modifyTime.high >>> 0).toNumber())), null != e.linkerId && (a.Long ? (t.linkerId = a.Long.fromValue(e.linkerId)).unsigned = !1 : "string" == typeof e.linkerId ? t.linkerId = parseInt(e.linkerId, 10) : "number" == typeof e.linkerId ? t.linkerId = e.linkerId : "object" == typeof e.linkerId && (t.linkerId = new a.LongBits(e.linkerId.low >>> 0, e.linkerId.high >>> 0).toNumber())), e.roleType) + { + case "TYPE_ROLE_TYPE_UNKOWN": + case 0: + t.roleType = 0; + break; + case "TYPE_LEADER": + case 1: + t.roleType = 1; + break; + case "TYPE_PLAYER": + case 2: + t.roleType = 2; + break; + case "TYPE_INVITEE": + case 3: + t.roleType = 3; + break; + case "TYPE_APPLIER": + case 4: + t.roleType = 4 + } + if (null != e.content) + { + if ("object" != typeof e.content) throw TypeError(".webcast.data.ListUser.content: object expected"); + t.content = l.webcast.data.ListUser.Content.fromObject(e.content) + } + return null != e.mcStatus && (a.Long ? (t.mcStatus = a.Long.fromValue(e.mcStatus)).unsigned = !1 : "string" == typeof e.mcStatus ? t.mcStatus = parseInt(e.mcStatus, 10) : "number" == typeof e.mcStatus ? t.mcStatus = e.mcStatus : "object" == typeof e.mcStatus && (t.mcStatus = new a.LongBits(e.mcStatus.low >>> 0, e.mcStatus.high >>> 0).toNumber())), null != e.isBackground && (a.Long ? (t.isBackground = a.Long.fromValue(e.isBackground)).unsigned = !1 : "string" == typeof e.isBackground ? t.isBackground = parseInt(e.isBackground, 10) : "number" == typeof e.isBackground ? t.isBackground = e.isBackground : "object" == typeof e.isBackground && (t.isBackground = new a.LongBits(e.isBackground.low >>> 0, e.isBackground.high >>> 0).toNumber())), null != e.extra && (t.extra = String(e.extra)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.user = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.linkmicId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.linkmicId = t.longs === String ? "0" : 0; + if (n.linkmicIdStr = "", n.linkStatus = t.enums === String ? "STATUS_UNKOWN" : 0, n.linkType = t.enums === String ? "TYPE_UNKNOWN" : 0, n.userPosition = 0, n.silenceStatus = t.enums === String ? "STATUS_UNSILENCE" : 0, a.Long) + { + r = new a.Long(0, 0, !1); + n.modifyTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.modifyTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.linkerId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.linkerId = t.longs === String ? "0" : 0; + if (n.roleType = t.enums === String ? "TYPE_ROLE_TYPE_UNKOWN" : 0, n.content = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.mcStatus = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.mcStatus = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.isBackground = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.isBackground = t.longs === String ? "0" : 0; + n.extra = "" + } + return null != e.user && e.hasOwnProperty("user") && (n.user = l.webcast.data.User.toObject(e.user, t)), null != e.linkmicId && e.hasOwnProperty("linkmicId") && ("number" == typeof e.linkmicId ? n.linkmicId = t.longs === String ? String(e.linkmicId) : e.linkmicId : n.linkmicId = t.longs === String ? a.Long.prototype.toString.call(e.linkmicId) : t.longs === Number ? new a.LongBits(e.linkmicId.low >>> 0, e.linkmicId.high >>> 0).toNumber() : e.linkmicId), null != e.linkmicIdStr && e.hasOwnProperty("linkmicIdStr") && (n.linkmicIdStr = e.linkmicIdStr), null != e.linkStatus && e.hasOwnProperty("linkStatus") && (n.linkStatus = t.enums === String ? l.webcast.data.LinkListStatus[e.linkStatus] : e.linkStatus), null != e.linkType && e.hasOwnProperty("linkType") && (n.linkType = t.enums === String ? l.webcast.data.LinkType[e.linkType] : e.linkType), null != e.userPosition && e.hasOwnProperty("userPosition") && (n.userPosition = e.userPosition), null != e.silenceStatus && e.hasOwnProperty("silenceStatus") && (n.silenceStatus = t.enums === String ? l.webcast.data.LinkSilenceStatus[e.silenceStatus] : e.silenceStatus), null != e.modifyTime && e.hasOwnProperty("modifyTime") && ("number" == typeof e.modifyTime ? n.modifyTime = t.longs === String ? String(e.modifyTime) : e.modifyTime : n.modifyTime = t.longs === String ? a.Long.prototype.toString.call(e.modifyTime) : t.longs === Number ? new a.LongBits(e.modifyTime.low >>> 0, e.modifyTime.high >>> 0).toNumber() : e.modifyTime), null != e.linkerId && e.hasOwnProperty("linkerId") && ("number" == typeof e.linkerId ? n.linkerId = t.longs === String ? String(e.linkerId) : e.linkerId : n.linkerId = t.longs === String ? a.Long.prototype.toString.call(e.linkerId) : t.longs === Number ? new a.LongBits(e.linkerId.low >>> 0, e.linkerId.high >>> 0).toNumber() : e.linkerId), null != e.roleType && e.hasOwnProperty("roleType") && (n.roleType = t.enums === String ? l.webcast.data.LinkRoleType[e.roleType] : e.roleType), null != e.content && e.hasOwnProperty("content") && (n.content = l.webcast.data.ListUser.Content.toObject(e.content, t)), null != e.mcStatus && e.hasOwnProperty("mcStatus") && ("number" == typeof e.mcStatus ? n.mcStatus = t.longs === String ? String(e.mcStatus) : e.mcStatus : n.mcStatus = t.longs === String ? a.Long.prototype.toString.call(e.mcStatus) : t.longs === Number ? new a.LongBits(e.mcStatus.low >>> 0, e.mcStatus.high >>> 0).toNumber() : e.mcStatus), null != e.isBackground && e.hasOwnProperty("isBackground") && ("number" == typeof e.isBackground ? n.isBackground = t.longs === String ? String(e.isBackground) : e.isBackground : n.isBackground = t.longs === String ? a.Long.prototype.toString.call(e.isBackground) : t.longs === Number ? new a.LongBits(e.isBackground.low >>> 0, e.isBackground.high >>> 0).toNumber() : e.isBackground), null != e.extra && e.hasOwnProperty("extra") && (n.extra = e.extra), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Content = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.pkContent = null, e.prototype.linkmicContent = null, e.prototype.linkmicAudienceContent = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.pkContent && Object.hasOwnProperty.call(e, "pkContent") && l.webcast.data.ListUserPKContent.encode(e.pkContent, t.uint32(10).fork()).ldelim(), null != e.linkmicContent && Object.hasOwnProperty.call(e, "linkmicContent") && l.webcast.data.ListUserLinkmicContent.encode(e.linkmicContent, t.uint32(18).fork()).ldelim(), null != e.linkmicAudienceContent && Object.hasOwnProperty.call(e, "linkmicAudienceContent") && l.webcast.data.ListUserLinkmicAudienceContent.encode(e.linkmicAudienceContent, t.uint32(26).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ListUser.Content; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.pkContent = l.webcast.data.ListUserPKContent.decode(e, e.uint32()); + break; + case 2: + r.linkmicContent = l.webcast.data.ListUserLinkmicContent.decode(e, e.uint32()); + break; + case 3: + r.linkmicAudienceContent = l.webcast.data.ListUserLinkmicAudienceContent.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.pkContent && e.hasOwnProperty("pkContent") && (t = l.webcast.data.ListUserPKContent.verify(e.pkContent))) return "pkContent." + t; + if (null != e.linkmicContent && e.hasOwnProperty("linkmicContent") && (t = l.webcast.data.ListUserLinkmicContent.verify(e.linkmicContent))) return "linkmicContent." + t; + if (null != e.linkmicAudienceContent && e.hasOwnProperty("linkmicAudienceContent") && (t = l.webcast.data.ListUserLinkmicAudienceContent.verify(e.linkmicAudienceContent))) return "linkmicAudienceContent." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ListUser.Content) return e; + var t = new l.webcast.data.ListUser.Content; + if (null != e.pkContent) + { + if ("object" != typeof e.pkContent) throw TypeError(".webcast.data.ListUser.Content.pkContent: object expected"); + t.pkContent = l.webcast.data.ListUserPKContent.fromObject(e.pkContent) + } + if (null != e.linkmicContent) + { + if ("object" != typeof e.linkmicContent) throw TypeError(".webcast.data.ListUser.Content.linkmicContent: object expected"); + t.linkmicContent = l.webcast.data.ListUserLinkmicContent.fromObject(e.linkmicContent) + } + if (null != e.linkmicAudienceContent) + { + if ("object" != typeof e.linkmicAudienceContent) throw TypeError(".webcast.data.ListUser.Content.linkmicAudienceContent: object expected"); + t.linkmicAudienceContent = l.webcast.data.ListUserLinkmicAudienceContent.fromObject(e.linkmicAudienceContent) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.pkContent = null, n.linkmicContent = null, n.linkmicAudienceContent = null), null != e.pkContent && e.hasOwnProperty("pkContent") && (n.pkContent = l.webcast.data.ListUserPKContent.toObject(e.pkContent, t)), null != e.linkmicContent && e.hasOwnProperty("linkmicContent") && (n.linkmicContent = l.webcast.data.ListUserLinkmicContent.toObject(e.linkmicContent, t)), null != e.linkmicAudienceContent && e.hasOwnProperty("linkmicAudienceContent") && (n.linkmicAudienceContent = l.webcast.data.ListUserLinkmicAudienceContent.toObject(e.linkmicAudienceContent, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.ListUserExtra = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.fanTicket = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.hostPermission = !1, e.prototype.appId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.clientVersion = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.devicePlatform = "", e.prototype.joinChannelTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.expectedLeaveTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.currentTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.fanTicket && Object.hasOwnProperty.call(e, "fanTicket") && t.uint32(8).int64(e.fanTicket), null != e.hostPermission && Object.hasOwnProperty.call(e, "hostPermission") && t.uint32(16).bool(e.hostPermission), null != e.appId && Object.hasOwnProperty.call(e, "appId") && t.uint32(24).int64(e.appId), null != e.clientVersion && Object.hasOwnProperty.call(e, "clientVersion") && t.uint32(32).int64(e.clientVersion), null != e.devicePlatform && Object.hasOwnProperty.call(e, "devicePlatform") && t.uint32(42).string(e.devicePlatform), null != e.joinChannelTime && Object.hasOwnProperty.call(e, "joinChannelTime") && t.uint32(48).int64(e.joinChannelTime), null != e.expectedLeaveTime && Object.hasOwnProperty.call(e, "expectedLeaveTime") && t.uint32(56).int64(e.expectedLeaveTime), null != e.currentTime && Object.hasOwnProperty.call(e, "currentTime") && t.uint32(64).int64(e.currentTime), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ListUserExtra; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.fanTicket = e.int64(); + break; + case 2: + r.hostPermission = e.bool(); + break; + case 3: + r.appId = e.int64(); + break; + case 4: + r.clientVersion = e.int64(); + break; + case 5: + r.devicePlatform = e.string(); + break; + case 6: + r.joinChannelTime = e.int64(); + break; + case 7: + r.expectedLeaveTime = e.int64(); + break; + case 8: + r.currentTime = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.fanTicket && e.hasOwnProperty("fanTicket") && !(a.isInteger(e.fanTicket) || e.fanTicket && a.isInteger(e.fanTicket.low) && a.isInteger(e.fanTicket.high)) ? "fanTicket: integer|Long expected" : null != e.hostPermission && e.hasOwnProperty("hostPermission") && "boolean" != typeof e.hostPermission ? "hostPermission: boolean expected" : null != e.appId && e.hasOwnProperty("appId") && !(a.isInteger(e.appId) || e.appId && a.isInteger(e.appId.low) && a.isInteger(e.appId.high)) ? "appId: integer|Long expected" : null != e.clientVersion && e.hasOwnProperty("clientVersion") && !(a.isInteger(e.clientVersion) || e.clientVersion && a.isInteger(e.clientVersion.low) && a.isInteger(e.clientVersion.high)) ? "clientVersion: integer|Long expected" : null != e.devicePlatform && e.hasOwnProperty("devicePlatform") && !a.isString(e.devicePlatform) ? "devicePlatform: string expected" : null != e.joinChannelTime && e.hasOwnProperty("joinChannelTime") && !(a.isInteger(e.joinChannelTime) || e.joinChannelTime && a.isInteger(e.joinChannelTime.low) && a.isInteger(e.joinChannelTime.high)) ? "joinChannelTime: integer|Long expected" : null != e.expectedLeaveTime && e.hasOwnProperty("expectedLeaveTime") && !(a.isInteger(e.expectedLeaveTime) || e.expectedLeaveTime && a.isInteger(e.expectedLeaveTime.low) && a.isInteger(e.expectedLeaveTime.high)) ? "expectedLeaveTime: integer|Long expected" : null != e.currentTime && e.hasOwnProperty("currentTime") && !(a.isInteger(e.currentTime) || e.currentTime && a.isInteger(e.currentTime.low) && a.isInteger(e.currentTime.high)) ? "currentTime: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ListUserExtra) return e; + var t = new l.webcast.data.ListUserExtra; + return null != e.fanTicket && (a.Long ? (t.fanTicket = a.Long.fromValue(e.fanTicket)).unsigned = !1 : "string" == typeof e.fanTicket ? t.fanTicket = parseInt(e.fanTicket, 10) : "number" == typeof e.fanTicket ? t.fanTicket = e.fanTicket : "object" == typeof e.fanTicket && (t.fanTicket = new a.LongBits(e.fanTicket.low >>> 0, e.fanTicket.high >>> 0).toNumber())), null != e.hostPermission && (t.hostPermission = Boolean(e.hostPermission)), null != e.appId && (a.Long ? (t.appId = a.Long.fromValue(e.appId)).unsigned = !1 : "string" == typeof e.appId ? t.appId = parseInt(e.appId, 10) : "number" == typeof e.appId ? t.appId = e.appId : "object" == typeof e.appId && (t.appId = new a.LongBits(e.appId.low >>> 0, e.appId.high >>> 0).toNumber())), null != e.clientVersion && (a.Long ? (t.clientVersion = a.Long.fromValue(e.clientVersion)).unsigned = !1 : "string" == typeof e.clientVersion ? t.clientVersion = parseInt(e.clientVersion, 10) : "number" == typeof e.clientVersion ? t.clientVersion = e.clientVersion : "object" == typeof e.clientVersion && (t.clientVersion = new a.LongBits(e.clientVersion.low >>> 0, e.clientVersion.high >>> 0).toNumber())), null != e.devicePlatform && (t.devicePlatform = String(e.devicePlatform)), null != e.joinChannelTime && (a.Long ? (t.joinChannelTime = a.Long.fromValue(e.joinChannelTime)).unsigned = !1 : "string" == typeof e.joinChannelTime ? t.joinChannelTime = parseInt(e.joinChannelTime, 10) : "number" == typeof e.joinChannelTime ? t.joinChannelTime = e.joinChannelTime : "object" == typeof e.joinChannelTime && (t.joinChannelTime = new a.LongBits(e.joinChannelTime.low >>> 0, e.joinChannelTime.high >>> 0).toNumber())), null != e.expectedLeaveTime && (a.Long ? (t.expectedLeaveTime = a.Long.fromValue(e.expectedLeaveTime)).unsigned = !1 : "string" == typeof e.expectedLeaveTime ? t.expectedLeaveTime = parseInt(e.expectedLeaveTime, 10) : "number" == typeof e.expectedLeaveTime ? t.expectedLeaveTime = e.expectedLeaveTime : "object" == typeof e.expectedLeaveTime && (t.expectedLeaveTime = new a.LongBits(e.expectedLeaveTime.low >>> 0, e.expectedLeaveTime.high >>> 0).toNumber())), null != e.currentTime && (a.Long ? (t.currentTime = a.Long.fromValue(e.currentTime)).unsigned = !1 : "string" == typeof e.currentTime ? t.currentTime = parseInt(e.currentTime, 10) : "number" == typeof e.currentTime ? t.currentTime = e.currentTime : "object" == typeof e.currentTime && (t.currentTime = new a.LongBits(e.currentTime.low >>> 0, e.currentTime.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.fanTicket = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fanTicket = t.longs === String ? "0" : 0; + if (n.hostPermission = !1, a.Long) + { + r = new a.Long(0, 0, !1); + n.appId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.appId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.clientVersion = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.clientVersion = t.longs === String ? "0" : 0; + if (n.devicePlatform = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.joinChannelTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.joinChannelTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.expectedLeaveTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.expectedLeaveTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.currentTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.currentTime = t.longs === String ? "0" : 0 + } + return null != e.fanTicket && e.hasOwnProperty("fanTicket") && ("number" == typeof e.fanTicket ? n.fanTicket = t.longs === String ? String(e.fanTicket) : e.fanTicket : n.fanTicket = t.longs === String ? a.Long.prototype.toString.call(e.fanTicket) : t.longs === Number ? new a.LongBits(e.fanTicket.low >>> 0, e.fanTicket.high >>> 0).toNumber() : e.fanTicket), null != e.hostPermission && e.hasOwnProperty("hostPermission") && (n.hostPermission = e.hostPermission), null != e.appId && e.hasOwnProperty("appId") && ("number" == typeof e.appId ? n.appId = t.longs === String ? String(e.appId) : e.appId : n.appId = t.longs === String ? a.Long.prototype.toString.call(e.appId) : t.longs === Number ? new a.LongBits(e.appId.low >>> 0, e.appId.high >>> 0).toNumber() : e.appId), null != e.clientVersion && e.hasOwnProperty("clientVersion") && ("number" == typeof e.clientVersion ? n.clientVersion = t.longs === String ? String(e.clientVersion) : e.clientVersion : n.clientVersion = t.longs === String ? a.Long.prototype.toString.call(e.clientVersion) : t.longs === Number ? new a.LongBits(e.clientVersion.low >>> 0, e.clientVersion.high >>> 0).toNumber() : e.clientVersion), null != e.devicePlatform && e.hasOwnProperty("devicePlatform") && (n.devicePlatform = e.devicePlatform), null != e.joinChannelTime && e.hasOwnProperty("joinChannelTime") && ("number" == typeof e.joinChannelTime ? n.joinChannelTime = t.longs === String ? String(e.joinChannelTime) : e.joinChannelTime : n.joinChannelTime = t.longs === String ? a.Long.prototype.toString.call(e.joinChannelTime) : t.longs === Number ? new a.LongBits(e.joinChannelTime.low >>> 0, e.joinChannelTime.high >>> 0).toNumber() : e.joinChannelTime), null != e.expectedLeaveTime && e.hasOwnProperty("expectedLeaveTime") && ("number" == typeof e.expectedLeaveTime ? n.expectedLeaveTime = t.longs === String ? String(e.expectedLeaveTime) : e.expectedLeaveTime : n.expectedLeaveTime = t.longs === String ? a.Long.prototype.toString.call(e.expectedLeaveTime) : t.longs === Number ? new a.LongBits(e.expectedLeaveTime.low >>> 0, e.expectedLeaveTime.high >>> 0).toNumber() : e.expectedLeaveTime), null != e.currentTime && e.hasOwnProperty("currentTime") && ("number" == typeof e.currentTime ? n.currentTime = t.longs === String ? String(e.currentTime) : e.currentTime : n.currentTime = t.longs === String ? a.Long.prototype.toString.call(e.currentTime) : t.longs === Number ? new a.LongBits(e.currentTime.low >>> 0, e.currentTime.high >>> 0).toNumber() : e.currentTime), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.BanUser = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.userId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.reason = "", e.prototype.url = "", e.prototype.anchorExplain = "", e.prototype.audienceExplain = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.userId && Object.hasOwnProperty.call(e, "userId") && t.uint32(8).int64(e.userId), null != e.reason && Object.hasOwnProperty.call(e, "reason") && t.uint32(18).string(e.reason), null != e.url && Object.hasOwnProperty.call(e, "url") && t.uint32(26).string(e.url), null != e.anchorExplain && Object.hasOwnProperty.call(e, "anchorExplain") && t.uint32(34).string(e.anchorExplain), null != e.audienceExplain && Object.hasOwnProperty.call(e, "audienceExplain") && t.uint32(42).string(e.audienceExplain), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.BanUser; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.userId = e.int64(); + break; + case 2: + r.reason = e.string(); + break; + case 3: + r.url = e.string(); + break; + case 4: + r.anchorExplain = e.string(); + break; + case 5: + r.audienceExplain = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.userId && e.hasOwnProperty("userId") && !(a.isInteger(e.userId) || e.userId && a.isInteger(e.userId.low) && a.isInteger(e.userId.high)) ? "userId: integer|Long expected" : null != e.reason && e.hasOwnProperty("reason") && !a.isString(e.reason) ? "reason: string expected" : null != e.url && e.hasOwnProperty("url") && !a.isString(e.url) ? "url: string expected" : null != e.anchorExplain && e.hasOwnProperty("anchorExplain") && !a.isString(e.anchorExplain) ? "anchorExplain: string expected" : null != e.audienceExplain && e.hasOwnProperty("audienceExplain") && !a.isString(e.audienceExplain) ? "audienceExplain: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.BanUser) return e; + var t = new l.webcast.data.BanUser; + return null != e.userId && (a.Long ? (t.userId = a.Long.fromValue(e.userId)).unsigned = !1 : "string" == typeof e.userId ? t.userId = parseInt(e.userId, 10) : "number" == typeof e.userId ? t.userId = e.userId : "object" == typeof e.userId && (t.userId = new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber())), null != e.reason && (t.reason = String(e.reason)), null != e.url && (t.url = String(e.url)), null != e.anchorExplain && (t.anchorExplain = String(e.anchorExplain)), null != e.audienceExplain && (t.audienceExplain = String(e.audienceExplain)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.userId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.userId = t.longs === String ? "0" : 0; + n.reason = "", n.url = "", n.anchorExplain = "", n.audienceExplain = "" + } + return null != e.userId && e.hasOwnProperty("userId") && ("number" == typeof e.userId ? n.userId = t.longs === String ? String(e.userId) : e.userId : n.userId = t.longs === String ? a.Long.prototype.toString.call(e.userId) : t.longs === Number ? new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber() : e.userId), null != e.reason && e.hasOwnProperty("reason") && (n.reason = e.reason), null != e.url && e.hasOwnProperty("url") && (n.url = e.url), null != e.anchorExplain && e.hasOwnProperty("anchorExplain") && (n.anchorExplain = e.anchorExplain), null != e.audienceExplain && e.hasOwnProperty("audienceExplain") && (n.audienceExplain = e.audienceExplain), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ListUserPKContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ListUserPKContent; e.pos < n;) + { + var i = e.uint32(); + e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null + }, e.fromObject = function (e) + { + return e instanceof l.webcast.data.ListUserPKContent ? e : new l.webcast.data.ListUserPKContent + }, e.toObject = function () + { + return {} + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ListUserLinkmicContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.resourceId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.showIdentity = !1, e.prototype.pkUserRole = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.resourceId && Object.hasOwnProperty.call(e, "resourceId") && t.uint32(8).int64(e.resourceId), null != e.showIdentity && Object.hasOwnProperty.call(e, "showIdentity") && t.uint32(16).bool(e.showIdentity), null != e.pkUserRole && Object.hasOwnProperty.call(e, "pkUserRole") && t.uint32(24).int32(e.pkUserRole), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ListUserLinkmicContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.resourceId = e.int64(); + break; + case 2: + r.showIdentity = e.bool(); + break; + case 3: + r.pkUserRole = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.resourceId && e.hasOwnProperty("resourceId") && !(a.isInteger(e.resourceId) || e.resourceId && a.isInteger(e.resourceId.low) && a.isInteger(e.resourceId.high))) return "resourceId: integer|Long expected"; + if (null != e.showIdentity && e.hasOwnProperty("showIdentity") && "boolean" != typeof e.showIdentity) return "showIdentity: boolean expected"; + if (null != e.pkUserRole && e.hasOwnProperty("pkUserRole")) switch (e.pkUserRole) + { + default: + return "pkUserRole: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ListUserLinkmicContent) return e; + var t = new l.webcast.data.ListUserLinkmicContent; + switch (null != e.resourceId && (a.Long ? (t.resourceId = a.Long.fromValue(e.resourceId)).unsigned = !1 : "string" == typeof e.resourceId ? t.resourceId = parseInt(e.resourceId, 10) : "number" == typeof e.resourceId ? t.resourceId = e.resourceId : "object" == typeof e.resourceId && (t.resourceId = new a.LongBits(e.resourceId.low >>> 0, e.resourceId.high >>> 0).toNumber())), null != e.showIdentity && (t.showIdentity = Boolean(e.showIdentity)), e.pkUserRole) + { + case "PK_USER_ROLE_UNKNOWN": + case 0: + t.pkUserRole = 0; + break; + case "PK_USER_ROLE_GENERAL_PLAYER": + case 1: + t.pkUserRole = 1; + break; + case "PK_USER_ROLE_LEADER_PLAYER": + case 2: + t.pkUserRole = 2; + break; + case "PK_USER_ROLE_GENERAL_AUDIENCE": + case 3: + t.pkUserRole = 3; + break; + case "PK_USER_ROLE_LEADER_AUDIENCE": + case 4: + t.pkUserRole = 4 + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.resourceId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.resourceId = t.longs === String ? "0" : 0; + n.showIdentity = !1, n.pkUserRole = t.enums === String ? "PK_USER_ROLE_UNKNOWN" : 0 + } + return null != e.resourceId && e.hasOwnProperty("resourceId") && ("number" == typeof e.resourceId ? n.resourceId = t.longs === String ? String(e.resourceId) : e.resourceId : n.resourceId = t.longs === String ? a.Long.prototype.toString.call(e.resourceId) : t.longs === Number ? new a.LongBits(e.resourceId.low >>> 0, e.resourceId.high >>> 0).toNumber() : e.resourceId), null != e.showIdentity && e.hasOwnProperty("showIdentity") && (n.showIdentity = e.showIdentity), null != e.pkUserRole && e.hasOwnProperty("pkUserRole") && (n.pkUserRole = t.enums === String ? l.webcast.data.MultiPKUserRole[e.pkUserRole] : e.pkUserRole), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ListUserLinkmicAudienceContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.fanTicket = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.hostPermission = !1, e.prototype.appId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.clientVersion = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.devicePlatform = "", e.prototype.joinChannelTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.expectedLeaveTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.inWaitingList = !1, e.prototype.extra = "", e.prototype.currentTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.fanTicket && Object.hasOwnProperty.call(e, "fanTicket") && t.uint32(8).int64(e.fanTicket), null != e.hostPermission && Object.hasOwnProperty.call(e, "hostPermission") && t.uint32(16).bool(e.hostPermission), null != e.appId && Object.hasOwnProperty.call(e, "appId") && t.uint32(24).int64(e.appId), null != e.clientVersion && Object.hasOwnProperty.call(e, "clientVersion") && t.uint32(32).int64(e.clientVersion), null != e.devicePlatform && Object.hasOwnProperty.call(e, "devicePlatform") && t.uint32(42).string(e.devicePlatform), null != e.joinChannelTime && Object.hasOwnProperty.call(e, "joinChannelTime") && t.uint32(48).int64(e.joinChannelTime), null != e.expectedLeaveTime && Object.hasOwnProperty.call(e, "expectedLeaveTime") && t.uint32(56).int64(e.expectedLeaveTime), null != e.inWaitingList && Object.hasOwnProperty.call(e, "inWaitingList") && t.uint32(64).bool(e.inWaitingList), null != e.extra && Object.hasOwnProperty.call(e, "extra") && t.uint32(74).string(e.extra), null != e.currentTime && Object.hasOwnProperty.call(e, "currentTime") && t.uint32(80).int64(e.currentTime), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ListUserLinkmicAudienceContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.fanTicket = e.int64(); + break; + case 2: + r.hostPermission = e.bool(); + break; + case 3: + r.appId = e.int64(); + break; + case 4: + r.clientVersion = e.int64(); + break; + case 5: + r.devicePlatform = e.string(); + break; + case 6: + r.joinChannelTime = e.int64(); + break; + case 7: + r.expectedLeaveTime = e.int64(); + break; + case 8: + r.inWaitingList = e.bool(); + break; + case 9: + r.extra = e.string(); + break; + case 10: + r.currentTime = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.fanTicket && e.hasOwnProperty("fanTicket") && !(a.isInteger(e.fanTicket) || e.fanTicket && a.isInteger(e.fanTicket.low) && a.isInteger(e.fanTicket.high)) ? "fanTicket: integer|Long expected" : null != e.hostPermission && e.hasOwnProperty("hostPermission") && "boolean" != typeof e.hostPermission ? "hostPermission: boolean expected" : null != e.appId && e.hasOwnProperty("appId") && !(a.isInteger(e.appId) || e.appId && a.isInteger(e.appId.low) && a.isInteger(e.appId.high)) ? "appId: integer|Long expected" : null != e.clientVersion && e.hasOwnProperty("clientVersion") && !(a.isInteger(e.clientVersion) || e.clientVersion && a.isInteger(e.clientVersion.low) && a.isInteger(e.clientVersion.high)) ? "clientVersion: integer|Long expected" : null != e.devicePlatform && e.hasOwnProperty("devicePlatform") && !a.isString(e.devicePlatform) ? "devicePlatform: string expected" : null != e.joinChannelTime && e.hasOwnProperty("joinChannelTime") && !(a.isInteger(e.joinChannelTime) || e.joinChannelTime && a.isInteger(e.joinChannelTime.low) && a.isInteger(e.joinChannelTime.high)) ? "joinChannelTime: integer|Long expected" : null != e.expectedLeaveTime && e.hasOwnProperty("expectedLeaveTime") && !(a.isInteger(e.expectedLeaveTime) || e.expectedLeaveTime && a.isInteger(e.expectedLeaveTime.low) && a.isInteger(e.expectedLeaveTime.high)) ? "expectedLeaveTime: integer|Long expected" : null != e.inWaitingList && e.hasOwnProperty("inWaitingList") && "boolean" != typeof e.inWaitingList ? "inWaitingList: boolean expected" : null != e.extra && e.hasOwnProperty("extra") && !a.isString(e.extra) ? "extra: string expected" : null != e.currentTime && e.hasOwnProperty("currentTime") && !(a.isInteger(e.currentTime) || e.currentTime && a.isInteger(e.currentTime.low) && a.isInteger(e.currentTime.high)) ? "currentTime: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ListUserLinkmicAudienceContent) return e; + var t = new l.webcast.data.ListUserLinkmicAudienceContent; + return null != e.fanTicket && (a.Long ? (t.fanTicket = a.Long.fromValue(e.fanTicket)).unsigned = !1 : "string" == typeof e.fanTicket ? t.fanTicket = parseInt(e.fanTicket, 10) : "number" == typeof e.fanTicket ? t.fanTicket = e.fanTicket : "object" == typeof e.fanTicket && (t.fanTicket = new a.LongBits(e.fanTicket.low >>> 0, e.fanTicket.high >>> 0).toNumber())), null != e.hostPermission && (t.hostPermission = Boolean(e.hostPermission)), null != e.appId && (a.Long ? (t.appId = a.Long.fromValue(e.appId)).unsigned = !1 : "string" == typeof e.appId ? t.appId = parseInt(e.appId, 10) : "number" == typeof e.appId ? t.appId = e.appId : "object" == typeof e.appId && (t.appId = new a.LongBits(e.appId.low >>> 0, e.appId.high >>> 0).toNumber())), null != e.clientVersion && (a.Long ? (t.clientVersion = a.Long.fromValue(e.clientVersion)).unsigned = !1 : "string" == typeof e.clientVersion ? t.clientVersion = parseInt(e.clientVersion, 10) : "number" == typeof e.clientVersion ? t.clientVersion = e.clientVersion : "object" == typeof e.clientVersion && (t.clientVersion = new a.LongBits(e.clientVersion.low >>> 0, e.clientVersion.high >>> 0).toNumber())), null != e.devicePlatform && (t.devicePlatform = String(e.devicePlatform)), null != e.joinChannelTime && (a.Long ? (t.joinChannelTime = a.Long.fromValue(e.joinChannelTime)).unsigned = !1 : "string" == typeof e.joinChannelTime ? t.joinChannelTime = parseInt(e.joinChannelTime, 10) : "number" == typeof e.joinChannelTime ? t.joinChannelTime = e.joinChannelTime : "object" == typeof e.joinChannelTime && (t.joinChannelTime = new a.LongBits(e.joinChannelTime.low >>> 0, e.joinChannelTime.high >>> 0).toNumber())), null != e.expectedLeaveTime && (a.Long ? (t.expectedLeaveTime = a.Long.fromValue(e.expectedLeaveTime)).unsigned = !1 : "string" == typeof e.expectedLeaveTime ? t.expectedLeaveTime = parseInt(e.expectedLeaveTime, 10) : "number" == typeof e.expectedLeaveTime ? t.expectedLeaveTime = e.expectedLeaveTime : "object" == typeof e.expectedLeaveTime && (t.expectedLeaveTime = new a.LongBits(e.expectedLeaveTime.low >>> 0, e.expectedLeaveTime.high >>> 0).toNumber())), null != e.inWaitingList && (t.inWaitingList = Boolean(e.inWaitingList)), null != e.extra && (t.extra = String(e.extra)), null != e.currentTime && (a.Long ? (t.currentTime = a.Long.fromValue(e.currentTime)).unsigned = !1 : "string" == typeof e.currentTime ? t.currentTime = parseInt(e.currentTime, 10) : "number" == typeof e.currentTime ? t.currentTime = e.currentTime : "object" == typeof e.currentTime && (t.currentTime = new a.LongBits(e.currentTime.low >>> 0, e.currentTime.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.fanTicket = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fanTicket = t.longs === String ? "0" : 0; + if (n.hostPermission = !1, a.Long) + { + r = new a.Long(0, 0, !1); + n.appId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.appId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.clientVersion = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.clientVersion = t.longs === String ? "0" : 0; + if (n.devicePlatform = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.joinChannelTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.joinChannelTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.expectedLeaveTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.expectedLeaveTime = t.longs === String ? "0" : 0; + if (n.inWaitingList = !1, n.extra = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.currentTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.currentTime = t.longs === String ? "0" : 0 + } + return null != e.fanTicket && e.hasOwnProperty("fanTicket") && ("number" == typeof e.fanTicket ? n.fanTicket = t.longs === String ? String(e.fanTicket) : e.fanTicket : n.fanTicket = t.longs === String ? a.Long.prototype.toString.call(e.fanTicket) : t.longs === Number ? new a.LongBits(e.fanTicket.low >>> 0, e.fanTicket.high >>> 0).toNumber() : e.fanTicket), null != e.hostPermission && e.hasOwnProperty("hostPermission") && (n.hostPermission = e.hostPermission), null != e.appId && e.hasOwnProperty("appId") && ("number" == typeof e.appId ? n.appId = t.longs === String ? String(e.appId) : e.appId : n.appId = t.longs === String ? a.Long.prototype.toString.call(e.appId) : t.longs === Number ? new a.LongBits(e.appId.low >>> 0, e.appId.high >>> 0).toNumber() : e.appId), null != e.clientVersion && e.hasOwnProperty("clientVersion") && ("number" == typeof e.clientVersion ? n.clientVersion = t.longs === String ? String(e.clientVersion) : e.clientVersion : n.clientVersion = t.longs === String ? a.Long.prototype.toString.call(e.clientVersion) : t.longs === Number ? new a.LongBits(e.clientVersion.low >>> 0, e.clientVersion.high >>> 0).toNumber() : e.clientVersion), null != e.devicePlatform && e.hasOwnProperty("devicePlatform") && (n.devicePlatform = e.devicePlatform), null != e.joinChannelTime && e.hasOwnProperty("joinChannelTime") && ("number" == typeof e.joinChannelTime ? n.joinChannelTime = t.longs === String ? String(e.joinChannelTime) : e.joinChannelTime : n.joinChannelTime = t.longs === String ? a.Long.prototype.toString.call(e.joinChannelTime) : t.longs === Number ? new a.LongBits(e.joinChannelTime.low >>> 0, e.joinChannelTime.high >>> 0).toNumber() : e.joinChannelTime), null != e.expectedLeaveTime && e.hasOwnProperty("expectedLeaveTime") && ("number" == typeof e.expectedLeaveTime ? n.expectedLeaveTime = t.longs === String ? String(e.expectedLeaveTime) : e.expectedLeaveTime : n.expectedLeaveTime = t.longs === String ? a.Long.prototype.toString.call(e.expectedLeaveTime) : t.longs === Number ? new a.LongBits(e.expectedLeaveTime.low >>> 0, e.expectedLeaveTime.high >>> 0).toNumber() : e.expectedLeaveTime), null != e.inWaitingList && e.hasOwnProperty("inWaitingList") && (n.inWaitingList = e.inWaitingList), null != e.extra && e.hasOwnProperty("extra") && (n.extra = e.extra), null != e.currentTime && e.hasOwnProperty("currentTime") && ("number" == typeof e.currentTime ? n.currentTime = t.longs === String ? String(e.currentTime) : e.currentTime : n.currentTime = t.longs === String ? a.Long.prototype.toString.call(e.currentTime) : t.longs === Number ? new a.LongBits(e.currentTime.low >>> 0, e.currentTime.high >>> 0).toNumber() : e.currentTime), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.WaitingListUserInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.applicationHasExpired = !1, e.prototype.isMutualFollowing = !1, e.prototype.applicationReason = "", e.prototype.last_7DaysGiftCountText = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.applicationHasExpired && Object.hasOwnProperty.call(e, "applicationHasExpired") && t.uint32(8).bool(e.applicationHasExpired), null != e.isMutualFollowing && Object.hasOwnProperty.call(e, "isMutualFollowing") && t.uint32(16).bool(e.isMutualFollowing), null != e.applicationReason && Object.hasOwnProperty.call(e, "applicationReason") && t.uint32(26).string(e.applicationReason), null != e.last_7DaysGiftCountText && Object.hasOwnProperty.call(e, "last_7DaysGiftCountText") && t.uint32(34).string(e.last_7DaysGiftCountText), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.WaitingListUserInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.applicationHasExpired = e.bool(); + break; + case 2: + r.isMutualFollowing = e.bool(); + break; + case 3: + r.applicationReason = e.string(); + break; + case 4: + r.last_7DaysGiftCountText = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.applicationHasExpired && e.hasOwnProperty("applicationHasExpired") && "boolean" != typeof e.applicationHasExpired ? "applicationHasExpired: boolean expected" : null != e.isMutualFollowing && e.hasOwnProperty("isMutualFollowing") && "boolean" != typeof e.isMutualFollowing ? "isMutualFollowing: boolean expected" : null != e.applicationReason && e.hasOwnProperty("applicationReason") && !a.isString(e.applicationReason) ? "applicationReason: string expected" : null != e.last_7DaysGiftCountText && e.hasOwnProperty("last_7DaysGiftCountText") && !a.isString(e.last_7DaysGiftCountText) ? "last_7DaysGiftCountText: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.WaitingListUserInfo) return e; + var t = new l.webcast.data.WaitingListUserInfo; + return null != e.applicationHasExpired && (t.applicationHasExpired = Boolean(e.applicationHasExpired)), null != e.isMutualFollowing && (t.isMutualFollowing = Boolean(e.isMutualFollowing)), null != e.applicationReason && (t.applicationReason = String(e.applicationReason)), null != e.last_7DaysGiftCountText && (t.last_7DaysGiftCountText = String(e.last_7DaysGiftCountText)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.applicationHasExpired = !1, n.isMutualFollowing = !1, n.applicationReason = "", n.last_7DaysGiftCountText = ""), null != e.applicationHasExpired && e.hasOwnProperty("applicationHasExpired") && (n.applicationHasExpired = e.applicationHasExpired), null != e.isMutualFollowing && e.hasOwnProperty("isMutualFollowing") && (n.isMutualFollowing = e.isMutualFollowing), null != e.applicationReason && e.hasOwnProperty("applicationReason") && (n.applicationReason = e.applicationReason), null != e.last_7DaysGiftCountText && e.hasOwnProperty("last_7DaysGiftCountText") && (n.last_7DaysGiftCountText = e.last_7DaysGiftCountText), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkedListUserInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.joinChannelTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.expectedLeaveTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.currentTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.joinChannelTime && Object.hasOwnProperty.call(e, "joinChannelTime") && t.uint32(8).int64(e.joinChannelTime), null != e.expectedLeaveTime && Object.hasOwnProperty.call(e, "expectedLeaveTime") && t.uint32(16).int64(e.expectedLeaveTime), null != e.currentTime && Object.hasOwnProperty.call(e, "currentTime") && t.uint32(24).int64(e.currentTime), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkedListUserInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.joinChannelTime = e.int64(); + break; + case 2: + r.expectedLeaveTime = e.int64(); + break; + case 3: + r.currentTime = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.joinChannelTime && e.hasOwnProperty("joinChannelTime") && !(a.isInteger(e.joinChannelTime) || e.joinChannelTime && a.isInteger(e.joinChannelTime.low) && a.isInteger(e.joinChannelTime.high)) ? "joinChannelTime: integer|Long expected" : null != e.expectedLeaveTime && e.hasOwnProperty("expectedLeaveTime") && !(a.isInteger(e.expectedLeaveTime) || e.expectedLeaveTime && a.isInteger(e.expectedLeaveTime.low) && a.isInteger(e.expectedLeaveTime.high)) ? "expectedLeaveTime: integer|Long expected" : null != e.currentTime && e.hasOwnProperty("currentTime") && !(a.isInteger(e.currentTime) || e.currentTime && a.isInteger(e.currentTime.low) && a.isInteger(e.currentTime.high)) ? "currentTime: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkedListUserInfo) return e; + var t = new l.webcast.data.LinkedListUserInfo; + return null != e.joinChannelTime && (a.Long ? (t.joinChannelTime = a.Long.fromValue(e.joinChannelTime)).unsigned = !1 : "string" == typeof e.joinChannelTime ? t.joinChannelTime = parseInt(e.joinChannelTime, 10) : "number" == typeof e.joinChannelTime ? t.joinChannelTime = e.joinChannelTime : "object" == typeof e.joinChannelTime && (t.joinChannelTime = new a.LongBits(e.joinChannelTime.low >>> 0, e.joinChannelTime.high >>> 0).toNumber())), null != e.expectedLeaveTime && (a.Long ? (t.expectedLeaveTime = a.Long.fromValue(e.expectedLeaveTime)).unsigned = !1 : "string" == typeof e.expectedLeaveTime ? t.expectedLeaveTime = parseInt(e.expectedLeaveTime, 10) : "number" == typeof e.expectedLeaveTime ? t.expectedLeaveTime = e.expectedLeaveTime : "object" == typeof e.expectedLeaveTime && (t.expectedLeaveTime = new a.LongBits(e.expectedLeaveTime.low >>> 0, e.expectedLeaveTime.high >>> 0).toNumber())), null != e.currentTime && (a.Long ? (t.currentTime = a.Long.fromValue(e.currentTime)).unsigned = !1 : "string" == typeof e.currentTime ? t.currentTime = parseInt(e.currentTime, 10) : "number" == typeof e.currentTime ? t.currentTime = e.currentTime : "object" == typeof e.currentTime && (t.currentTime = new a.LongBits(e.currentTime.low >>> 0, e.currentTime.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.joinChannelTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.joinChannelTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.expectedLeaveTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.expectedLeaveTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.currentTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.currentTime = t.longs === String ? "0" : 0 + } + return null != e.joinChannelTime && e.hasOwnProperty("joinChannelTime") && ("number" == typeof e.joinChannelTime ? n.joinChannelTime = t.longs === String ? String(e.joinChannelTime) : e.joinChannelTime : n.joinChannelTime = t.longs === String ? a.Long.prototype.toString.call(e.joinChannelTime) : t.longs === Number ? new a.LongBits(e.joinChannelTime.low >>> 0, e.joinChannelTime.high >>> 0).toNumber() : e.joinChannelTime), null != e.expectedLeaveTime && e.hasOwnProperty("expectedLeaveTime") && ("number" == typeof e.expectedLeaveTime ? n.expectedLeaveTime = t.longs === String ? String(e.expectedLeaveTime) : e.expectedLeaveTime : n.expectedLeaveTime = t.longs === String ? a.Long.prototype.toString.call(e.expectedLeaveTime) : t.longs === Number ? new a.LongBits(e.expectedLeaveTime.low >>> 0, e.expectedLeaveTime.high >>> 0).toNumber() : e.expectedLeaveTime), null != e.currentTime && e.hasOwnProperty("currentTime") && ("number" == typeof e.currentTime ? n.currentTime = t.longs === String ? String(e.currentTime) : e.currentTime : n.currentTime = t.longs === String ? a.Long.prototype.toString.call(e.currentTime) : t.longs === Number ? new a.LongBits(e.currentTime.low >>> 0, e.currentTime.high >>> 0).toNumber() : e.currentTime), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.InviteListUserInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.last_7DaysGiftCountText = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.last_7DaysGiftCountText && Object.hasOwnProperty.call(e, "last_7DaysGiftCountText") && t.uint32(10).string(e.last_7DaysGiftCountText), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.InviteListUserInfo; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.last_7DaysGiftCountText = e.string(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.last_7DaysGiftCountText && e.hasOwnProperty("last_7DaysGiftCountText") && !a.isString(e.last_7DaysGiftCountText) ? "last_7DaysGiftCountText: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.InviteListUserInfo) return e; + var t = new l.webcast.data.InviteListUserInfo; + return null != e.last_7DaysGiftCountText && (t.last_7DaysGiftCountText = String(e.last_7DaysGiftCountText)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.last_7DaysGiftCountText = ""), null != e.last_7DaysGiftCountText && e.hasOwnProperty("last_7DaysGiftCountText") && (n.last_7DaysGiftCountText = e.last_7DaysGiftCountText), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.InterestedType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "INTERESTED_TYPE_UNKNOWN"] = 0, t[e[1] = "INTERESTED_TYPE_MUTUAL"] = 1, t[e[2] = "INTERESTED_TYPE_RECENT_LINKED"] = 2, t[e[3] = "INTERESTED_TYPE_FOLLOWER"] = 3, t[e[4] = "INTERESTED_TYPE_MESSAGED"] = 4, t[e[5] = "INTERESTED_TYPE_EMOJI"] = 5, t[e[6] = "INTERESTED_TYPE_WATCH_LIVE"] = 6, t + }(), e.ListTagType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "LIST_TAG_FANS_CLUB"] = 0, t[e[1] = "LIST_TAG_HONOR_LEVEL"] = 1, t[e[2] = "LIST_TAG_FRIEND"] = 2, t[e[3] = "LIST_TAG_FANS"] = 3, t + }(), e.ListTagFansClubContent = function () + { + function e(e) + { + if (this.icons = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.icons = a.emptyObject, e.prototype.clubName = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.icons && Object.hasOwnProperty.call(e, "icons")) + for (var n = Object.keys(e.icons), r = 0; r < n.length; ++r) t.uint32(10).fork().uint32(8).int32(n[r]), l.webcast.data.Image.encode(e.icons[n[r]], t.uint32(18).fork()).ldelim().ldelim(); + return null != e.clubName && Object.hasOwnProperty.call(e, "clubName") && t.uint32(18).string(e.clubName), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.ListTagFansClubContent; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.icons === a.emptyObject && (s.icons = {}); + var u = e.uint32() + e.pos; + for (n = 0, r = null; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.int32(); + break; + case 2: + r = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & p) + } + } + s.icons[n] = r; + break; + case 2: + s.clubName = e.string(); + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.icons && e.hasOwnProperty("icons")) + { + if (!a.isObject(e.icons)) return "icons: object expected"; + for (var t = Object.keys(e.icons), n = 0; n < t.length; ++n) + { + if (!a.key32Re.test(t[n])) return "icons: integer key{k:int32} expected"; + var r = l.webcast.data.Image.verify(e.icons[t[n]]); + if (r) return "icons." + r + } + } + return null != e.clubName && e.hasOwnProperty("clubName") && !a.isString(e.clubName) ? "clubName: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ListTagFansClubContent) return e; + var t = new l.webcast.data.ListTagFansClubContent; + if (e.icons) + { + if ("object" != typeof e.icons) throw TypeError(".webcast.data.ListTagFansClubContent.icons: object expected"); + t.icons = {}; + for (var n = Object.keys(e.icons), r = 0; r < n.length; ++r) + { + if ("object" != typeof e.icons[n[r]]) throw TypeError(".webcast.data.ListTagFansClubContent.icons: object expected"); + t.icons[n[r]] = l.webcast.data.Image.fromObject(e.icons[n[r]]) + } + } + return null != e.clubName && (t.clubName = String(e.clubName)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.icons = {}), t.defaults && (r.clubName = ""), e.icons && (n = Object.keys(e.icons)).length) + { + r.icons = {}; + for (var o = 0; o < n.length; ++o) r.icons[n[o]] = l.webcast.data.Image.toObject(e.icons[n[o]], t) + } + return null != e.clubName && e.hasOwnProperty("clubName") && (r.clubName = e.clubName), r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ListTagHonorLevelContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.newImIconWithLevel = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.newImIconWithLevel && Object.hasOwnProperty.call(e, "newImIconWithLevel") && l.webcast.data.Image.encode(e.newImIconWithLevel, t.uint32(10).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ListTagHonorLevelContent; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.newImIconWithLevel = l.webcast.data.Image.decode(e, e.uint32()); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.newImIconWithLevel && e.hasOwnProperty("newImIconWithLevel")) + { + var t = l.webcast.data.Image.verify(e.newImIconWithLevel); + if (t) return "newImIconWithLevel." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ListTagHonorLevelContent) return e; + var t = new l.webcast.data.ListTagHonorLevelContent; + if (null != e.newImIconWithLevel) + { + if ("object" != typeof e.newImIconWithLevel) throw TypeError(".webcast.data.ListTagHonorLevelContent.newImIconWithLevel: object expected"); + t.newImIconWithLevel = l.webcast.data.Image.fromObject(e.newImIconWithLevel) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.newImIconWithLevel = null), null != e.newImIconWithLevel && e.hasOwnProperty("newImIconWithLevel") && (n.newImIconWithLevel = l.webcast.data.Image.toObject(e.newImIconWithLevel, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ListTagFriendContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.friendTag = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.friendTag && Object.hasOwnProperty.call(e, "friendTag") && l.webcast.data.Image.encode(e.friendTag, t.uint32(10).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ListTagFriendContent; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.friendTag = l.webcast.data.Image.decode(e, e.uint32()); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.friendTag && e.hasOwnProperty("friendTag")) + { + var t = l.webcast.data.Image.verify(e.friendTag); + if (t) return "friendTag." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ListTagFriendContent) return e; + var t = new l.webcast.data.ListTagFriendContent; + if (null != e.friendTag) + { + if ("object" != typeof e.friendTag) throw TypeError(".webcast.data.ListTagFriendContent.friendTag: object expected"); + t.friendTag = l.webcast.data.Image.fromObject(e.friendTag) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.friendTag = null), null != e.friendTag && e.hasOwnProperty("friendTag") && (n.friendTag = l.webcast.data.Image.toObject(e.friendTag, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ListTagFansContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.fansTag = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.fansTag && Object.hasOwnProperty.call(e, "fansTag") && l.webcast.data.Image.encode(e.fansTag, t.uint32(10).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ListTagFansContent; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.fansTag = l.webcast.data.Image.decode(e, e.uint32()); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.fansTag && e.hasOwnProperty("fansTag")) + { + var t = l.webcast.data.Image.verify(e.fansTag); + if (t) return "fansTag." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ListTagFansContent) return e; + var t = new l.webcast.data.ListTagFansContent; + if (null != e.fansTag) + { + if ("object" != typeof e.fansTag) throw TypeError(".webcast.data.ListTagFansContent.fansTag: object expected"); + t.fansTag = l.webcast.data.Image.fromObject(e.fansTag) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.fansTag = null), null != e.fansTag && e.hasOwnProperty("fansTag") && (n.fansTag = l.webcast.data.Image.toObject(e.fansTag, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ListTag = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + let t; + return e.prototype.listTagType = 0, e.prototype.fansClubTag = null, e.prototype.honorLevelTag = null, e.prototype.friendTag = null, e.prototype.fansTag = null, Object.defineProperty(e.prototype, "tag", + { + get: a.oneOfGetter(t = ["fansClubTag", "honorLevelTag", "friendTag", "fansTag"]), + set: a.oneOfSetter(t) + }), e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.listTagType && Object.hasOwnProperty.call(e, "listTagType") && t.uint32(8).int32(e.listTagType), null != e.fansClubTag && Object.hasOwnProperty.call(e, "fansClubTag") && l.webcast.data.ListTagFansClubContent.encode(e.fansClubTag, t.uint32(18).fork()).ldelim(), null != e.honorLevelTag && Object.hasOwnProperty.call(e, "honorLevelTag") && l.webcast.data.ListTagHonorLevelContent.encode(e.honorLevelTag, t.uint32(26).fork()).ldelim(), null != e.friendTag && Object.hasOwnProperty.call(e, "friendTag") && l.webcast.data.ListTagFriendContent.encode(e.friendTag, t.uint32(34).fork()).ldelim(), null != e.fansTag && Object.hasOwnProperty.call(e, "fansTag") && l.webcast.data.ListTagFansContent.encode(e.fansTag, t.uint32(42).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ListTag; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.listTagType = e.int32(); + break; + case 2: + r.fansClubTag = l.webcast.data.ListTagFansClubContent.decode(e, e.uint32()); + break; + case 3: + r.honorLevelTag = l.webcast.data.ListTagHonorLevelContent.decode(e, e.uint32()); + break; + case 4: + r.friendTag = l.webcast.data.ListTagFriendContent.decode(e, e.uint32()); + break; + case 5: + r.fansTag = l.webcast.data.ListTagFansContent.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t = {}; + if (null != e.listTagType && e.hasOwnProperty("listTagType")) switch (e.listTagType) + { + default: + return "listTagType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + } + if (null != e.fansClubTag && e.hasOwnProperty("fansClubTag") && (t.tag = 1, n = l.webcast.data.ListTagFansClubContent.verify(e.fansClubTag))) return "fansClubTag." + n; + if (null != e.honorLevelTag && e.hasOwnProperty("honorLevelTag")) + { + if (1 === t.tag) return "tag: multiple values"; + if (t.tag = 1, n = l.webcast.data.ListTagHonorLevelContent.verify(e.honorLevelTag)) return "honorLevelTag." + n + } + if (null != e.friendTag && e.hasOwnProperty("friendTag")) + { + if (1 === t.tag) return "tag: multiple values"; + if (t.tag = 1, n = l.webcast.data.ListTagFriendContent.verify(e.friendTag)) return "friendTag." + n + } + if (null != e.fansTag && e.hasOwnProperty("fansTag")) + { + if (1 === t.tag) return "tag: multiple values"; + var n; + if (t.tag = 1, n = l.webcast.data.ListTagFansContent.verify(e.fansTag)) return "fansTag." + n + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ListTag) return e; + var t = new l.webcast.data.ListTag; + switch (e.listTagType) + { + case "LIST_TAG_FANS_CLUB": + case 0: + t.listTagType = 0; + break; + case "LIST_TAG_HONOR_LEVEL": + case 1: + t.listTagType = 1; + break; + case "LIST_TAG_FRIEND": + case 2: + t.listTagType = 2; + break; + case "LIST_TAG_FANS": + case 3: + t.listTagType = 3 + } + if (null != e.fansClubTag) + { + if ("object" != typeof e.fansClubTag) throw TypeError(".webcast.data.ListTag.fansClubTag: object expected"); + t.fansClubTag = l.webcast.data.ListTagFansClubContent.fromObject(e.fansClubTag) + } + if (null != e.honorLevelTag) + { + if ("object" != typeof e.honorLevelTag) throw TypeError(".webcast.data.ListTag.honorLevelTag: object expected"); + t.honorLevelTag = l.webcast.data.ListTagHonorLevelContent.fromObject(e.honorLevelTag) + } + if (null != e.friendTag) + { + if ("object" != typeof e.friendTag) throw TypeError(".webcast.data.ListTag.friendTag: object expected"); + t.friendTag = l.webcast.data.ListTagFriendContent.fromObject(e.friendTag) + } + if (null != e.fansTag) + { + if ("object" != typeof e.fansTag) throw TypeError(".webcast.data.ListTag.fansTag: object expected"); + t.fansTag = l.webcast.data.ListTagFansContent.fromObject(e.fansTag) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.listTagType = t.enums === String ? "LIST_TAG_FANS_CLUB" : 0), null != e.listTagType && e.hasOwnProperty("listTagType") && (n.listTagType = t.enums === String ? l.webcast.data.ListTagType[e.listTagType] : e.listTagType), null != e.fansClubTag && e.hasOwnProperty("fansClubTag") && (n.fansClubTag = l.webcast.data.ListTagFansClubContent.toObject(e.fansClubTag, t), t.oneofs && (n.tag = "fansClubTag")), null != e.honorLevelTag && e.hasOwnProperty("honorLevelTag") && (n.honorLevelTag = l.webcast.data.ListTagHonorLevelContent.toObject(e.honorLevelTag, t), t.oneofs && (n.tag = "honorLevelTag")), null != e.friendTag && e.hasOwnProperty("friendTag") && (n.friendTag = l.webcast.data.ListTagFriendContent.toObject(e.friendTag, t), t.oneofs && (n.tag = "friendTag")), null != e.fansTag && e.hasOwnProperty("fansTag") && (n.fansTag = l.webcast.data.ListTagFansContent.toObject(e.fansTag, t), t.oneofs && (n.tag = "fansTag")), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.InviteeType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "INVITEE_TYPE_NONE"] = 0, t[e[1] = "INVITEE_TYPE_ROOM_AUDIENCE"] = 1, t[e[2] = "INVITEE_TYPE_MUTUAL"] = 2, t[e[3] = "INVITEE_TYPE_FANS"] = 3, t + }(), e.SwitchSceneData = function () + { + function e(e) + { + if (this.linkedUsers = [], this.playModes = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.rtcExtInfo = "", e.prototype.liveCoreExtInfo = "", e.prototype.linkedUsers = a.emptyArray, e.prototype.scene = 0, e.prototype.playModes = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.rtcExtInfo && Object.hasOwnProperty.call(e, "rtcExtInfo") && t.uint32(10).string(e.rtcExtInfo), null != e.liveCoreExtInfo && Object.hasOwnProperty.call(e, "liveCoreExtInfo") && t.uint32(18).string(e.liveCoreExtInfo), null != e.linkedUsers && e.linkedUsers.length) + for (var n = 0; n < e.linkedUsers.length; ++n) l.webcast.data.ListUser.encode(e.linkedUsers[n], t.uint32(26).fork()).ldelim(); + if (null != e.scene && Object.hasOwnProperty.call(e, "scene") && t.uint32(32).int32(e.scene), null != e.playModes && e.playModes.length) + { + t.uint32(42).fork(); + for (n = 0; n < e.playModes.length; ++n) t.int32(e.playModes[n]); + t.ldelim() + } + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.SwitchSceneData; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.rtcExtInfo = e.string(); + break; + case 2: + r.liveCoreExtInfo = e.string(); + break; + case 3: + r.linkedUsers && r.linkedUsers.length || (r.linkedUsers = []), r.linkedUsers.push(l.webcast.data.ListUser.decode(e, e.uint32())); + break; + case 4: + r.scene = e.int32(); + break; + case 5: + if (r.playModes && r.playModes.length || (r.playModes = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.playModes.push(e.int32()); + else r.playModes.push(e.int32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.rtcExtInfo && e.hasOwnProperty("rtcExtInfo") && !a.isString(e.rtcExtInfo)) return "rtcExtInfo: string expected"; + if (null != e.liveCoreExtInfo && e.hasOwnProperty("liveCoreExtInfo") && !a.isString(e.liveCoreExtInfo)) return "liveCoreExtInfo: string expected"; + if (null != e.linkedUsers && e.hasOwnProperty("linkedUsers")) + { + if (!Array.isArray(e.linkedUsers)) return "linkedUsers: array expected"; + for (var t = 0; t < e.linkedUsers.length; ++t) + { + var n = l.webcast.data.ListUser.verify(e.linkedUsers[t]); + if (n) return "linkedUsers." + n + } + } + if (null != e.scene && e.hasOwnProperty("scene")) switch (e.scene) + { + default: + return "scene: enum value expected"; + case 0: + case 1: + case 4: + case 5: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 100: + } + if (null != e.playModes && e.hasOwnProperty("playModes")) + { + if (!Array.isArray(e.playModes)) return "playModes: array expected"; + for (t = 0; t < e.playModes.length; ++t) switch (e.playModes[t]) + { + default: + return "playModes: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 24: + case 25: + case 26: + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.SwitchSceneData) return e; + var t = new l.webcast.data.SwitchSceneData; + if (null != e.rtcExtInfo && (t.rtcExtInfo = String(e.rtcExtInfo)), null != e.liveCoreExtInfo && (t.liveCoreExtInfo = String(e.liveCoreExtInfo)), e.linkedUsers) + { + if (!Array.isArray(e.linkedUsers)) throw TypeError(".webcast.data.SwitchSceneData.linkedUsers: array expected"); + t.linkedUsers = []; + for (var n = 0; n < e.linkedUsers.length; ++n) + { + if ("object" != typeof e.linkedUsers[n]) throw TypeError(".webcast.data.SwitchSceneData.linkedUsers: object expected"); + t.linkedUsers[n] = l.webcast.data.ListUser.fromObject(e.linkedUsers[n]) + } + } + switch (e.scene) + { + case "Scene_Unknown": + case 0: + t.scene = 0; + break; + case "Scene_PK": + case 1: + t.scene = 1; + break; + case "Scene_AudienceLinkmic": + case 4: + t.scene = 4; + break; + case "Scene_AudioChatRoom": + case 5: + t.scene = 5; + break; + case "Scene_AnchorMultiLinkmic": + case 7: + t.scene = 7; + break; + case "Scene_VideoChatRoom": + case 8: + t.scene = 8; + break; + case "Scene_KTV": + case 9: + t.scene = 9; + break; + case "Scene_ShareVideo": + case 10: + t.scene = 10; + break; + case "Scene_ShareKTV": + case 11: + t.scene = 11; + break; + case "Scene_VideoEqualRoom": + case 12: + t.scene = 12; + break; + case "Scene_VideoKTV": + case 13: + t.scene = 13; + break; + case "Scene_Default": + case 100: + t.scene = 100 + } + if (e.playModes) + { + if (!Array.isArray(e.playModes)) throw TypeError(".webcast.data.SwitchSceneData.playModes: array expected"); + t.playModes = []; + for (n = 0; n < e.playModes.length; ++n) switch (e.playModes[n]) + { + default: + case "LinkmicPlayMode_Unknown": + case 0: + t.playModes[n] = 0; + break; + case "LinkmicPlayMode_VideoFriend": + case 1: + t.playModes[n] = 1; + break; + case "LinkmicPlayMode_VideoChatFloatWindowLayout": + case 2: + t.playModes[n] = 2; + break; + case "linkmicPlayMode_MultiPK": + case 3: + t.playModes[n] = 3; + break; + case "LinkmicPlayMode_DynamicLayout": + case 4: + t.playModes[n] = 4; + break; + case "LinkmicPlayMode_GuestBattle": + case 5: + t.playModes[n] = 5; + break; + case "LinkmicPlayMode_AudioChat_1_PLUS_8": + case 24: + t.playModes[n] = 24; + break; + case "LinkmicPlayMode_AudioChat_3x3_ONE_ENMPTY": + case 25: + t.playModes[n] = 25; + break; + case "LinkmicPlayMode_AudioChat_3x3_N_EMPTY": + case 26: + t.playModes[n] = 26 + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.linkedUsers = [], n.playModes = []), t.defaults && (n.rtcExtInfo = "", n.liveCoreExtInfo = "", n.scene = t.enums === String ? "Scene_Unknown" : 0), null != e.rtcExtInfo && e.hasOwnProperty("rtcExtInfo") && (n.rtcExtInfo = e.rtcExtInfo), null != e.liveCoreExtInfo && e.hasOwnProperty("liveCoreExtInfo") && (n.liveCoreExtInfo = e.liveCoreExtInfo), e.linkedUsers && e.linkedUsers.length) + { + n.linkedUsers = []; + for (var r = 0; r < e.linkedUsers.length; ++r) n.linkedUsers[r] = l.webcast.data.ListUser.toObject(e.linkedUsers[r], t) + } + if (null != e.scene && e.hasOwnProperty("scene") && (n.scene = t.enums === String ? l.webcast.data.Scene[e.scene] : e.scene), e.playModes && e.playModes.length) + { + n.playModes = []; + for (r = 0; r < e.playModes.length; ++r) n.playModes[r] = t.enums === String ? l.webcast.data.LinkmicPlayMode[e.playModes[r]] : e.playModes[r] + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.MultiLiveCoreInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + let t; + return e.prototype.scene = 0, e.prototype.videoEqualRoomLiveCoreInfo = null, e.prototype.ktvLiveCoreInfo = null, Object.defineProperty(e.prototype, "liveCoreInfo", + { + get: a.oneOfGetter(t = ["videoEqualRoomLiveCoreInfo", "ktvLiveCoreInfo"]), + set: a.oneOfSetter(t) + }), e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.scene && Object.hasOwnProperty.call(e, "scene") && t.uint32(8).int32(e.scene), null != e.videoEqualRoomLiveCoreInfo && Object.hasOwnProperty.call(e, "videoEqualRoomLiveCoreInfo") && l.webcast.data.VideoEqualRoomLiveCoreInfo.encode(e.videoEqualRoomLiveCoreInfo, t.uint32(18).fork()).ldelim(), null != e.ktvLiveCoreInfo && Object.hasOwnProperty.call(e, "ktvLiveCoreInfo") && l.webcast.data.KTVLiveCoreInfo.encode(e.ktvLiveCoreInfo, t.uint32(26).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.MultiLiveCoreInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.scene = e.int32(); + break; + case 2: + r.videoEqualRoomLiveCoreInfo = l.webcast.data.VideoEqualRoomLiveCoreInfo.decode(e, e.uint32()); + break; + case 3: + r.ktvLiveCoreInfo = l.webcast.data.KTVLiveCoreInfo.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t = {}; + if (null != e.scene && e.hasOwnProperty("scene")) switch (e.scene) + { + default: + return "scene: enum value expected"; + case 0: + case 1: + case 4: + case 5: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 100: + } + if (null != e.videoEqualRoomLiveCoreInfo && e.hasOwnProperty("videoEqualRoomLiveCoreInfo") && (t.liveCoreInfo = 1, n = l.webcast.data.VideoEqualRoomLiveCoreInfo.verify(e.videoEqualRoomLiveCoreInfo))) return "videoEqualRoomLiveCoreInfo." + n; + if (null != e.ktvLiveCoreInfo && e.hasOwnProperty("ktvLiveCoreInfo")) + { + if (1 === t.liveCoreInfo) return "liveCoreInfo: multiple values"; + var n; + if (t.liveCoreInfo = 1, n = l.webcast.data.KTVLiveCoreInfo.verify(e.ktvLiveCoreInfo)) return "ktvLiveCoreInfo." + n + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.MultiLiveCoreInfo) return e; + var t = new l.webcast.data.MultiLiveCoreInfo; + switch (e.scene) + { + case "Scene_Unknown": + case 0: + t.scene = 0; + break; + case "Scene_PK": + case 1: + t.scene = 1; + break; + case "Scene_AudienceLinkmic": + case 4: + t.scene = 4; + break; + case "Scene_AudioChatRoom": + case 5: + t.scene = 5; + break; + case "Scene_AnchorMultiLinkmic": + case 7: + t.scene = 7; + break; + case "Scene_VideoChatRoom": + case 8: + t.scene = 8; + break; + case "Scene_KTV": + case 9: + t.scene = 9; + break; + case "Scene_ShareVideo": + case 10: + t.scene = 10; + break; + case "Scene_ShareKTV": + case 11: + t.scene = 11; + break; + case "Scene_VideoEqualRoom": + case 12: + t.scene = 12; + break; + case "Scene_VideoKTV": + case 13: + t.scene = 13; + break; + case "Scene_Default": + case 100: + t.scene = 100 + } + if (null != e.videoEqualRoomLiveCoreInfo) + { + if ("object" != typeof e.videoEqualRoomLiveCoreInfo) throw TypeError(".webcast.data.MultiLiveCoreInfo.videoEqualRoomLiveCoreInfo: object expected"); + t.videoEqualRoomLiveCoreInfo = l.webcast.data.VideoEqualRoomLiveCoreInfo.fromObject(e.videoEqualRoomLiveCoreInfo) + } + if (null != e.ktvLiveCoreInfo) + { + if ("object" != typeof e.ktvLiveCoreInfo) throw TypeError(".webcast.data.MultiLiveCoreInfo.ktvLiveCoreInfo: object expected"); + t.ktvLiveCoreInfo = l.webcast.data.KTVLiveCoreInfo.fromObject(e.ktvLiveCoreInfo) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.scene = t.enums === String ? "Scene_Unknown" : 0), null != e.scene && e.hasOwnProperty("scene") && (n.scene = t.enums === String ? l.webcast.data.Scene[e.scene] : e.scene), null != e.videoEqualRoomLiveCoreInfo && e.hasOwnProperty("videoEqualRoomLiveCoreInfo") && (n.videoEqualRoomLiveCoreInfo = l.webcast.data.VideoEqualRoomLiveCoreInfo.toObject(e.videoEqualRoomLiveCoreInfo, t), t.oneofs && (n.liveCoreInfo = "videoEqualRoomLiveCoreInfo")), null != e.ktvLiveCoreInfo && e.hasOwnProperty("ktvLiveCoreInfo") && (n.ktvLiveCoreInfo = l.webcast.data.KTVLiveCoreInfo.toObject(e.ktvLiveCoreInfo, t), t.oneofs && (n.liveCoreInfo = "ktvLiveCoreInfo")), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.VideoEqualRoomLiveCoreInfo = function () + { + function e(e) + { + if (this.liveCoreInfoMap = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.liveCoreInfoMap = a.emptyObject, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.liveCoreInfoMap && Object.hasOwnProperty.call(e, "liveCoreInfoMap")) + for (var n = Object.keys(e.liveCoreInfoMap), r = 0; r < n.length; ++r) t.uint32(10).fork().uint32(8).int64(n[r]).uint32(18).string(e.liveCoreInfoMap[n[r]]).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.VideoEqualRoomLiveCoreInfo; e.pos < i;) + { + var c = e.uint32(); + if (c >>> 3 == 1) + { + s.liveCoreInfoMap === a.emptyObject && (s.liveCoreInfoMap = {}); + var u = e.uint32() + e.pos; + for (n = 0, r = ""; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.int64(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.liveCoreInfoMap["object" == typeof n ? a.longToHash(n) : n] = r + } + else e.skipType(7 & c) + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.liveCoreInfoMap && e.hasOwnProperty("liveCoreInfoMap")) + { + if (!a.isObject(e.liveCoreInfoMap)) return "liveCoreInfoMap: object expected"; + for (var t = Object.keys(e.liveCoreInfoMap), n = 0; n < t.length; ++n) + { + if (!a.key64Re.test(t[n])) return "liveCoreInfoMap: integer|Long key{k:int64} expected"; + if (!a.isString(e.liveCoreInfoMap[t[n]])) return "liveCoreInfoMap: string{k:int64} expected" + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.VideoEqualRoomLiveCoreInfo) return e; + var t = new l.webcast.data.VideoEqualRoomLiveCoreInfo; + if (e.liveCoreInfoMap) + { + if ("object" != typeof e.liveCoreInfoMap) throw TypeError(".webcast.data.VideoEqualRoomLiveCoreInfo.liveCoreInfoMap: object expected"); + t.liveCoreInfoMap = {}; + for (var n = Object.keys(e.liveCoreInfoMap), r = 0; r < n.length; ++r) t.liveCoreInfoMap[n[r]] = String(e.liveCoreInfoMap[n[r]]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.liveCoreInfoMap = {}), e.liveCoreInfoMap && (n = Object.keys(e.liveCoreInfoMap)).length) + { + r.liveCoreInfoMap = {}; + for (var o = 0; o < n.length; ++o) r.liveCoreInfoMap[n[o]] = e.liveCoreInfoMap[n[o]] + } + return r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.KTVLiveCoreInfo = function () + { + function e(e) + { + if (this.liveCoreInfoMap = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.liveCoreInfoMap = a.emptyObject, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.liveCoreInfoMap && Object.hasOwnProperty.call(e, "liveCoreInfoMap")) + for (var n = Object.keys(e.liveCoreInfoMap), r = 0; r < n.length; ++r) t.uint32(10).fork().uint32(8).int64(n[r]).uint32(18).string(e.liveCoreInfoMap[n[r]]).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.KTVLiveCoreInfo; e.pos < i;) + { + var c = e.uint32(); + if (c >>> 3 == 1) + { + s.liveCoreInfoMap === a.emptyObject && (s.liveCoreInfoMap = {}); + var u = e.uint32() + e.pos; + for (n = 0, r = ""; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.int64(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.liveCoreInfoMap["object" == typeof n ? a.longToHash(n) : n] = r + } + else e.skipType(7 & c) + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.liveCoreInfoMap && e.hasOwnProperty("liveCoreInfoMap")) + { + if (!a.isObject(e.liveCoreInfoMap)) return "liveCoreInfoMap: object expected"; + for (var t = Object.keys(e.liveCoreInfoMap), n = 0; n < t.length; ++n) + { + if (!a.key64Re.test(t[n])) return "liveCoreInfoMap: integer|Long key{k:int64} expected"; + if (!a.isString(e.liveCoreInfoMap[t[n]])) return "liveCoreInfoMap: string{k:int64} expected" + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.KTVLiveCoreInfo) return e; + var t = new l.webcast.data.KTVLiveCoreInfo; + if (e.liveCoreInfoMap) + { + if ("object" != typeof e.liveCoreInfoMap) throw TypeError(".webcast.data.KTVLiveCoreInfo.liveCoreInfoMap: object expected"); + t.liveCoreInfoMap = {}; + for (var n = Object.keys(e.liveCoreInfoMap), r = 0; r < n.length; ++r) t.liveCoreInfoMap[n[r]] = String(e.liveCoreInfoMap[n[r]]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.liveCoreInfoMap = {}), e.liveCoreInfoMap && (n = Object.keys(e.liveCoreInfoMap)).length) + { + r.liveCoreInfoMap = {}; + for (var o = 0; o < n.length; ++o) r.liveCoreInfoMap[n[o]] = e.liveCoreInfoMap[n[o]] + } + return r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.MultiRtcInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + let t; + return e.prototype.scene = 0, e.prototype.videoEqualRoomRtcInfo = null, Object.defineProperty(e.prototype, "rtcInfo", + { + get: a.oneOfGetter(t = ["videoEqualRoomRtcInfo"]), + set: a.oneOfSetter(t) + }), e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.scene && Object.hasOwnProperty.call(e, "scene") && t.uint32(8).int32(e.scene), null != e.videoEqualRoomRtcInfo && Object.hasOwnProperty.call(e, "videoEqualRoomRtcInfo") && l.webcast.data.VideoEqualRoomRtcInfo.encode(e.videoEqualRoomRtcInfo, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.MultiRtcInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.scene = e.int32(); + break; + case 2: + r.videoEqualRoomRtcInfo = l.webcast.data.VideoEqualRoomRtcInfo.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.scene && e.hasOwnProperty("scene")) switch (e.scene) + { + default: + return "scene: enum value expected"; + case 0: + case 1: + case 4: + case 5: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 100: + } + if (null != e.videoEqualRoomRtcInfo && e.hasOwnProperty("videoEqualRoomRtcInfo")) + { + var t = l.webcast.data.VideoEqualRoomRtcInfo.verify(e.videoEqualRoomRtcInfo); + if (t) return "videoEqualRoomRtcInfo." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.MultiRtcInfo) return e; + var t = new l.webcast.data.MultiRtcInfo; + switch (e.scene) + { + case "Scene_Unknown": + case 0: + t.scene = 0; + break; + case "Scene_PK": + case 1: + t.scene = 1; + break; + case "Scene_AudienceLinkmic": + case 4: + t.scene = 4; + break; + case "Scene_AudioChatRoom": + case 5: + t.scene = 5; + break; + case "Scene_AnchorMultiLinkmic": + case 7: + t.scene = 7; + break; + case "Scene_VideoChatRoom": + case 8: + t.scene = 8; + break; + case "Scene_KTV": + case 9: + t.scene = 9; + break; + case "Scene_ShareVideo": + case 10: + t.scene = 10; + break; + case "Scene_ShareKTV": + case 11: + t.scene = 11; + break; + case "Scene_VideoEqualRoom": + case 12: + t.scene = 12; + break; + case "Scene_VideoKTV": + case 13: + t.scene = 13; + break; + case "Scene_Default": + case 100: + t.scene = 100 + } + if (null != e.videoEqualRoomRtcInfo) + { + if ("object" != typeof e.videoEqualRoomRtcInfo) throw TypeError(".webcast.data.MultiRtcInfo.videoEqualRoomRtcInfo: object expected"); + t.videoEqualRoomRtcInfo = l.webcast.data.VideoEqualRoomRtcInfo.fromObject(e.videoEqualRoomRtcInfo) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.scene = t.enums === String ? "Scene_Unknown" : 0), null != e.scene && e.hasOwnProperty("scene") && (n.scene = t.enums === String ? l.webcast.data.Scene[e.scene] : e.scene), null != e.videoEqualRoomRtcInfo && e.hasOwnProperty("videoEqualRoomRtcInfo") && (n.videoEqualRoomRtcInfo = l.webcast.data.VideoEqualRoomRtcInfo.toObject(e.videoEqualRoomRtcInfo, t), t.oneofs && (n.rtcInfo = "videoEqualRoomRtcInfo")), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.VideoEqualRoomRtcInfo = function () + { + function e(e) + { + if (this.rtcInfoMap = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.rtcInfoMap = a.emptyObject, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.rtcInfoMap && Object.hasOwnProperty.call(e, "rtcInfoMap")) + for (var n = Object.keys(e.rtcInfoMap), r = 0; r < n.length; ++r) t.uint32(10).fork().uint32(8).int64(n[r]).uint32(18).string(e.rtcInfoMap[n[r]]).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.data.VideoEqualRoomRtcInfo; e.pos < i;) + { + var c = e.uint32(); + if (c >>> 3 == 1) + { + s.rtcInfoMap === a.emptyObject && (s.rtcInfoMap = {}); + var u = e.uint32() + e.pos; + for (n = 0, r = ""; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.int64(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.rtcInfoMap["object" == typeof n ? a.longToHash(n) : n] = r + } + else e.skipType(7 & c) + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.rtcInfoMap && e.hasOwnProperty("rtcInfoMap")) + { + if (!a.isObject(e.rtcInfoMap)) return "rtcInfoMap: object expected"; + for (var t = Object.keys(e.rtcInfoMap), n = 0; n < t.length; ++n) + { + if (!a.key64Re.test(t[n])) return "rtcInfoMap: integer|Long key{k:int64} expected"; + if (!a.isString(e.rtcInfoMap[t[n]])) return "rtcInfoMap: string{k:int64} expected" + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.VideoEqualRoomRtcInfo) return e; + var t = new l.webcast.data.VideoEqualRoomRtcInfo; + if (e.rtcInfoMap) + { + if ("object" != typeof e.rtcInfoMap) throw TypeError(".webcast.data.VideoEqualRoomRtcInfo.rtcInfoMap: object expected"); + t.rtcInfoMap = {}; + for (var n = Object.keys(e.rtcInfoMap), r = 0; r < n.length; ++r) t.rtcInfoMap[n[r]] = String(e.rtcInfoMap[n[r]]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.rtcInfoMap = {}), e.rtcInfoMap && (n = Object.keys(e.rtcInfoMap)).length) + { + r.rtcInfoMap = {}; + for (var o = 0; o < n.length; ++o) r.rtcInfoMap[n[o]] = e.rtcInfoMap[n[o]] + } + return r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ChangePlayModeData = function () + { + function e(e) + { + if (this.linkedUsers = [], this.playModes = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.linkedUsers = a.emptyArray, e.prototype.rtcExtInfo = "", e.prototype.liveCoreExtInfo = "", e.prototype.multiRtcInfo = null, e.prototype.multiLiveCoreInfo = null, e.prototype.playModes = a.emptyArray, e.prototype.version = a.Long ? a.Long.fromBits(0, 0, !0) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.linkedUsers && e.linkedUsers.length) + for (var n = 0; n < e.linkedUsers.length; ++n) l.webcast.data.ListUser.encode(e.linkedUsers[n], t.uint32(10).fork()).ldelim(); + if (null != e.rtcExtInfo && Object.hasOwnProperty.call(e, "rtcExtInfo") && t.uint32(18).string(e.rtcExtInfo), null != e.liveCoreExtInfo && Object.hasOwnProperty.call(e, "liveCoreExtInfo") && t.uint32(26).string(e.liveCoreExtInfo), null != e.multiRtcInfo && Object.hasOwnProperty.call(e, "multiRtcInfo") && l.webcast.data.MultiRtcInfo.encode(e.multiRtcInfo, t.uint32(34).fork()).ldelim(), null != e.multiLiveCoreInfo && Object.hasOwnProperty.call(e, "multiLiveCoreInfo") && l.webcast.data.MultiLiveCoreInfo.encode(e.multiLiveCoreInfo, t.uint32(42).fork()).ldelim(), null != e.playModes && e.playModes.length) + { + t.uint32(50).fork(); + for (n = 0; n < e.playModes.length; ++n) t.int32(e.playModes[n]); + t.ldelim() + } + return null != e.version && Object.hasOwnProperty.call(e, "version") && t.uint32(56).uint64(e.version), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.ChangePlayModeData; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.linkedUsers && r.linkedUsers.length || (r.linkedUsers = []), r.linkedUsers.push(l.webcast.data.ListUser.decode(e, e.uint32())); + break; + case 2: + r.rtcExtInfo = e.string(); + break; + case 3: + r.liveCoreExtInfo = e.string(); + break; + case 4: + r.multiRtcInfo = l.webcast.data.MultiRtcInfo.decode(e, e.uint32()); + break; + case 5: + r.multiLiveCoreInfo = l.webcast.data.MultiLiveCoreInfo.decode(e, e.uint32()); + break; + case 6: + if (r.playModes && r.playModes.length || (r.playModes = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.playModes.push(e.int32()); + else r.playModes.push(e.int32()); + break; + case 7: + r.version = e.uint64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.linkedUsers && e.hasOwnProperty("linkedUsers")) + { + if (!Array.isArray(e.linkedUsers)) return "linkedUsers: array expected"; + for (var t = 0; t < e.linkedUsers.length; ++t) + { + if (n = l.webcast.data.ListUser.verify(e.linkedUsers[t])) return "linkedUsers." + n + } + } + if (null != e.rtcExtInfo && e.hasOwnProperty("rtcExtInfo") && !a.isString(e.rtcExtInfo)) return "rtcExtInfo: string expected"; + if (null != e.liveCoreExtInfo && e.hasOwnProperty("liveCoreExtInfo") && !a.isString(e.liveCoreExtInfo)) return "liveCoreExtInfo: string expected"; + var n; + if (null != e.multiRtcInfo && e.hasOwnProperty("multiRtcInfo") && (n = l.webcast.data.MultiRtcInfo.verify(e.multiRtcInfo))) return "multiRtcInfo." + n; + if (null != e.multiLiveCoreInfo && e.hasOwnProperty("multiLiveCoreInfo") && (n = l.webcast.data.MultiLiveCoreInfo.verify(e.multiLiveCoreInfo))) return "multiLiveCoreInfo." + n; + if (null != e.playModes && e.hasOwnProperty("playModes")) + { + if (!Array.isArray(e.playModes)) return "playModes: array expected"; + for (t = 0; t < e.playModes.length; ++t) switch (e.playModes[t]) + { + default: + return "playModes: enum value[] expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 24: + case 25: + case 26: + } + } + return null != e.version && e.hasOwnProperty("version") && !(a.isInteger(e.version) || e.version && a.isInteger(e.version.low) && a.isInteger(e.version.high)) ? "version: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.ChangePlayModeData) return e; + var t = new l.webcast.data.ChangePlayModeData; + if (e.linkedUsers) + { + if (!Array.isArray(e.linkedUsers)) throw TypeError(".webcast.data.ChangePlayModeData.linkedUsers: array expected"); + t.linkedUsers = []; + for (var n = 0; n < e.linkedUsers.length; ++n) + { + if ("object" != typeof e.linkedUsers[n]) throw TypeError(".webcast.data.ChangePlayModeData.linkedUsers: object expected"); + t.linkedUsers[n] = l.webcast.data.ListUser.fromObject(e.linkedUsers[n]) + } + } + if (null != e.rtcExtInfo && (t.rtcExtInfo = String(e.rtcExtInfo)), null != e.liveCoreExtInfo && (t.liveCoreExtInfo = String(e.liveCoreExtInfo)), null != e.multiRtcInfo) + { + if ("object" != typeof e.multiRtcInfo) throw TypeError(".webcast.data.ChangePlayModeData.multiRtcInfo: object expected"); + t.multiRtcInfo = l.webcast.data.MultiRtcInfo.fromObject(e.multiRtcInfo) + } + if (null != e.multiLiveCoreInfo) + { + if ("object" != typeof e.multiLiveCoreInfo) throw TypeError(".webcast.data.ChangePlayModeData.multiLiveCoreInfo: object expected"); + t.multiLiveCoreInfo = l.webcast.data.MultiLiveCoreInfo.fromObject(e.multiLiveCoreInfo) + } + if (e.playModes) + { + if (!Array.isArray(e.playModes)) throw TypeError(".webcast.data.ChangePlayModeData.playModes: array expected"); + t.playModes = []; + for (n = 0; n < e.playModes.length; ++n) switch (e.playModes[n]) + { + default: + case "LinkmicPlayMode_Unknown": + case 0: + t.playModes[n] = 0; + break; + case "LinkmicPlayMode_VideoFriend": + case 1: + t.playModes[n] = 1; + break; + case "LinkmicPlayMode_VideoChatFloatWindowLayout": + case 2: + t.playModes[n] = 2; + break; + case "linkmicPlayMode_MultiPK": + case 3: + t.playModes[n] = 3; + break; + case "LinkmicPlayMode_DynamicLayout": + case 4: + t.playModes[n] = 4; + break; + case "LinkmicPlayMode_GuestBattle": + case 5: + t.playModes[n] = 5; + break; + case "LinkmicPlayMode_AudioChat_1_PLUS_8": + case 24: + t.playModes[n] = 24; + break; + case "LinkmicPlayMode_AudioChat_3x3_ONE_ENMPTY": + case 25: + t.playModes[n] = 25; + break; + case "LinkmicPlayMode_AudioChat_3x3_N_EMPTY": + case 26: + t.playModes[n] = 26 + } + } + return null != e.version && (a.Long ? (t.version = a.Long.fromValue(e.version)).unsigned = !0 : "string" == typeof e.version ? t.version = parseInt(e.version, 10) : "number" == typeof e.version ? t.version = e.version : "object" == typeof e.version && (t.version = new a.LongBits(e.version.low >>> 0, e.version.high >>> 0).toNumber(!0))), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.linkedUsers = [], n.playModes = []), t.defaults) + if (n.rtcExtInfo = "", n.liveCoreExtInfo = "", n.multiRtcInfo = null, n.multiLiveCoreInfo = null, a.Long) + { + var r = new a.Long(0, 0, !0); + n.version = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.version = t.longs === String ? "0" : 0; + if (e.linkedUsers && e.linkedUsers.length) + { + n.linkedUsers = []; + for (var o = 0; o < e.linkedUsers.length; ++o) n.linkedUsers[o] = l.webcast.data.ListUser.toObject(e.linkedUsers[o], t) + } + if (null != e.rtcExtInfo && e.hasOwnProperty("rtcExtInfo") && (n.rtcExtInfo = e.rtcExtInfo), null != e.liveCoreExtInfo && e.hasOwnProperty("liveCoreExtInfo") && (n.liveCoreExtInfo = e.liveCoreExtInfo), null != e.multiRtcInfo && e.hasOwnProperty("multiRtcInfo") && (n.multiRtcInfo = l.webcast.data.MultiRtcInfo.toObject(e.multiRtcInfo, t)), null != e.multiLiveCoreInfo && e.hasOwnProperty("multiLiveCoreInfo") && (n.multiLiveCoreInfo = l.webcast.data.MultiLiveCoreInfo.toObject(e.multiLiveCoreInfo, t)), e.playModes && e.playModes.length) + { + n.playModes = []; + for (o = 0; o < e.playModes.length; ++o) n.playModes[o] = t.enums === String ? l.webcast.data.LinkmicPlayMode[e.playModes[o]] : e.playModes[o] + } + return null != e.version && e.hasOwnProperty("version") && ("number" == typeof e.version ? n.version = t.longs === String ? String(e.version) : e.version : n.version = t.longs === String ? a.Long.prototype.toString.call(e.version) : t.longs === Number ? new a.LongBits(e.version.low >>> 0, e.version.high >>> 0).toNumber(!0) : e.version), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkmicLayout = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "LAYOUT_UNKNOWN"] = 0, t[e[1] = "BIG"] = 1, t[e[8] = "SMALL"] = 8, t[e[16] = "BIG_PARTY"] = 16, t[e[32] = "SHARE_VIDEO"] = 32, t[e[64] = "KTV"] = 64, t + }(), e.LinkmicAudienceType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "AUDIENCE_TYPE_UNKNOWN"] = 0, t[e[1] = "VIDEO"] = 1, t[e[2] = "AUDIO"] = 2, t[e[3] = "AVATAR"] = 3, t + }(), e.LinkmicAudienceStatus = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "AUDIENCE_STATUS_UNKOWN"] = 0, t[e[1] = "WAITING"] = 1, t[e[2] = "LINKED"] = 2, t[e[3] = "FINISHED"] = 3, t[e[4] = "WAITING_AND_LINKED"] = 4, t + }(), e.LinkmicRoleType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "ROLE_TYPE_UNKOWN"] = 0, t[e[1] = "LEADER"] = 1, t[e[2] = "PLAYER"] = 2, t[e[3] = "INVITEE"] = 3, t + }(), e.LinkmicSilenceStatus = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "UNSILENCE"] = 0, t[e[1] = "SILENCE_BY_SELF"] = 1, t[e[2] = "SILENCE_BY_OWNER"] = 2, t[e[3] = "SILENCE_PASSIVE"] = 3, t + }(), e.LinkmicReplyType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "RT_UNKNOWN"] = 0, t[e[1] = "RT_AGREE"] = 1, t[e[2] = "RT_REJECT"] = 2, t + }(), e.UpdateLinkTypeReplyType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "UpdateLinkTypeReplyType_UNKNOWN"] = 0, t[e[1] = "UpdateLinkTypeReplyType_AGREE"] = 1, t[e[2] = "UpdateLinkTypeReplyType_REJECT"] = 2, t + }(), e.EmojiType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "UNKNOWN_EMOJI_TYPE"] = 0, t[e[1] = "OWN_EMOJI"] = 1, t[e[2] = "INTERACT_EMOJI"] = 2, t + }(), e.ActionControlType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "UNKOWN_CONTROL"] = 0, t[e[1] = "LINK_COMMENT"] = 1, t + }(), e.EmojiCategory = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "EmojiCategory_UNSET"] = 0, t[e[1] = "EmojiCategory_EMOJI"] = 1, t[e[2] = "EmojiCategory_AVATAR"] = 2, t + }(), e.EmojiPermission = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.hasPermission = !1, e.prototype.toastWithoutPermission = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.hasPermission && Object.hasOwnProperty.call(e, "hasPermission") && t.uint32(8).bool(e.hasPermission), null != e.toastWithoutPermission && Object.hasOwnProperty.call(e, "toastWithoutPermission") && t.uint32(18).string(e.toastWithoutPermission), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EmojiPermission; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.hasPermission = e.bool(); + break; + case 2: + r.toastWithoutPermission = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.hasPermission && e.hasOwnProperty("hasPermission") && "boolean" != typeof e.hasPermission ? "hasPermission: boolean expected" : null != e.toastWithoutPermission && e.hasOwnProperty("toastWithoutPermission") && !a.isString(e.toastWithoutPermission) ? "toastWithoutPermission: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EmojiPermission) return e; + var t = new l.webcast.data.EmojiPermission; + return null != e.hasPermission && (t.hasPermission = Boolean(e.hasPermission)), null != e.toastWithoutPermission && (t.toastWithoutPermission = String(e.toastWithoutPermission)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.hasPermission = !1, n.toastWithoutPermission = ""), null != e.hasPermission && e.hasOwnProperty("hasPermission") && (n.hasPermission = e.hasPermission), null != e.toastWithoutPermission && e.hasOwnProperty("toastWithoutPermission") && (n.toastWithoutPermission = e.toastWithoutPermission), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.SendInteractEmojiConfig = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.interactEmoji = null, e.prototype.durationMs = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.interactEmoji && Object.hasOwnProperty.call(e, "interactEmoji") && l.webcast.data.Image.encode(e.interactEmoji, t.uint32(10).fork()).ldelim(), null != e.durationMs && Object.hasOwnProperty.call(e, "durationMs") && t.uint32(16).int64(e.durationMs), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.SendInteractEmojiConfig; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.interactEmoji = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.durationMs = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.interactEmoji && e.hasOwnProperty("interactEmoji")) + { + var t = l.webcast.data.Image.verify(e.interactEmoji); + if (t) return "interactEmoji." + t + } + return null != e.durationMs && e.hasOwnProperty("durationMs") && !(a.isInteger(e.durationMs) || e.durationMs && a.isInteger(e.durationMs.low) && a.isInteger(e.durationMs.high)) ? "durationMs: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.SendInteractEmojiConfig) return e; + var t = new l.webcast.data.SendInteractEmojiConfig; + if (null != e.interactEmoji) + { + if ("object" != typeof e.interactEmoji) throw TypeError(".webcast.data.SendInteractEmojiConfig.interactEmoji: object expected"); + t.interactEmoji = l.webcast.data.Image.fromObject(e.interactEmoji) + } + return null != e.durationMs && (a.Long ? (t.durationMs = a.Long.fromValue(e.durationMs)).unsigned = !1 : "string" == typeof e.durationMs ? t.durationMs = parseInt(e.durationMs, 10) : "number" == typeof e.durationMs ? t.durationMs = e.durationMs : "object" == typeof e.durationMs && (t.durationMs = new a.LongBits(e.durationMs.low >>> 0, e.durationMs.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + if (n.interactEmoji = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.durationMs = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.durationMs = t.longs === String ? "0" : 0; + return null != e.interactEmoji && e.hasOwnProperty("interactEmoji") && (n.interactEmoji = l.webcast.data.Image.toObject(e.interactEmoji, t)), null != e.durationMs && e.hasOwnProperty("durationMs") && ("number" == typeof e.durationMs ? n.durationMs = t.longs === String ? String(e.durationMs) : e.durationMs : n.durationMs = t.longs === String ? a.Long.prototype.toString.call(e.durationMs) : t.longs === Number ? new a.LongBits(e.durationMs.low >>> 0, e.durationMs.high >>> 0).toNumber() : e.durationMs), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EmojiInteractResource = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.fromImage = null, e.prototype.passImage = null, e.prototype.toImage = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.fromImage && Object.hasOwnProperty.call(e, "fromImage") && l.webcast.data.SendInteractEmojiConfig.encode(e.fromImage, t.uint32(10).fork()).ldelim(), null != e.passImage && Object.hasOwnProperty.call(e, "passImage") && l.webcast.data.SendInteractEmojiConfig.encode(e.passImage, t.uint32(18).fork()).ldelim(), null != e.toImage && Object.hasOwnProperty.call(e, "toImage") && l.webcast.data.SendInteractEmojiConfig.encode(e.toImage, t.uint32(26).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EmojiInteractResource; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.fromImage = l.webcast.data.SendInteractEmojiConfig.decode(e, e.uint32()); + break; + case 2: + r.passImage = l.webcast.data.SendInteractEmojiConfig.decode(e, e.uint32()); + break; + case 3: + r.toImage = l.webcast.data.SendInteractEmojiConfig.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.fromImage && e.hasOwnProperty("fromImage") && (t = l.webcast.data.SendInteractEmojiConfig.verify(e.fromImage))) return "fromImage." + t; + if (null != e.passImage && e.hasOwnProperty("passImage") && (t = l.webcast.data.SendInteractEmojiConfig.verify(e.passImage))) return "passImage." + t; + if (null != e.toImage && e.hasOwnProperty("toImage") && (t = l.webcast.data.SendInteractEmojiConfig.verify(e.toImage))) return "toImage." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EmojiInteractResource) return e; + var t = new l.webcast.data.EmojiInteractResource; + if (null != e.fromImage) + { + if ("object" != typeof e.fromImage) throw TypeError(".webcast.data.EmojiInteractResource.fromImage: object expected"); + t.fromImage = l.webcast.data.SendInteractEmojiConfig.fromObject(e.fromImage) + } + if (null != e.passImage) + { + if ("object" != typeof e.passImage) throw TypeError(".webcast.data.EmojiInteractResource.passImage: object expected"); + t.passImage = l.webcast.data.SendInteractEmojiConfig.fromObject(e.passImage) + } + if (null != e.toImage) + { + if ("object" != typeof e.toImage) throw TypeError(".webcast.data.EmojiInteractResource.toImage: object expected"); + t.toImage = l.webcast.data.SendInteractEmojiConfig.fromObject(e.toImage) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.fromImage = null, n.passImage = null, n.toImage = null), null != e.fromImage && e.hasOwnProperty("fromImage") && (n.fromImage = l.webcast.data.SendInteractEmojiConfig.toObject(e.fromImage, t)), null != e.passImage && e.hasOwnProperty("passImage") && (n.passImage = l.webcast.data.SendInteractEmojiConfig.toObject(e.passImage, t)), null != e.toImage && e.hasOwnProperty("toImage") && (n.toImage = l.webcast.data.SendInteractEmojiConfig.toObject(e.toImage, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EmojiAvatarResource = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.actionId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.actionId && Object.hasOwnProperty.call(e, "actionId") && t.uint32(8).int64(e.actionId), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.EmojiAvatarResource; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.actionId = e.int64(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.actionId && e.hasOwnProperty("actionId") && !(a.isInteger(e.actionId) || e.actionId && a.isInteger(e.actionId.low) && a.isInteger(e.actionId.high)) ? "actionId: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.EmojiAvatarResource) return e; + var t = new l.webcast.data.EmojiAvatarResource; + return null != e.actionId && (a.Long ? (t.actionId = a.Long.fromValue(e.actionId)).unsigned = !1 : "string" == typeof e.actionId ? t.actionId = parseInt(e.actionId, 10) : "number" == typeof e.actionId ? t.actionId = e.actionId : "object" == typeof e.actionId && (t.actionId = new a.LongBits(e.actionId.low >>> 0, e.actionId.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.actionId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.actionId = t.longs === String ? "0" : 0; + return null != e.actionId && e.hasOwnProperty("actionId") && ("number" == typeof e.actionId ? n.actionId = t.longs === String ? String(e.actionId) : e.actionId : n.actionId = t.longs === String ? a.Long.prototype.toString.call(e.actionId) : t.longs === Number ? new a.LongBits(e.actionId.low >>> 0, e.actionId.high >>> 0).toNumber() : e.actionId), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkmicAudienceEmoji = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.emojiId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.isRandom = !1, e.prototype.emojiImage = null, e.prototype.emojiDynamicImage = null, e.prototype.emojiName = "", e.prototype.animationDurationMs = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.emojiResultDurationMs = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.type = 0, e.prototype.permission = null, e.prototype.emojiSound = "", e.prototype.interactResource = null, e.prototype.categoryType = 0, e.prototype.avatarResource = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.emojiId && Object.hasOwnProperty.call(e, "emojiId") && t.uint32(8).int64(e.emojiId), null != e.isRandom && Object.hasOwnProperty.call(e, "isRandom") && t.uint32(16).bool(e.isRandom), null != e.emojiImage && Object.hasOwnProperty.call(e, "emojiImage") && l.webcast.data.Image.encode(e.emojiImage, t.uint32(26).fork()).ldelim(), null != e.emojiDynamicImage && Object.hasOwnProperty.call(e, "emojiDynamicImage") && l.webcast.data.Image.encode(e.emojiDynamicImage, t.uint32(34).fork()).ldelim(), null != e.emojiName && Object.hasOwnProperty.call(e, "emojiName") && t.uint32(42).string(e.emojiName), null != e.animationDurationMs && Object.hasOwnProperty.call(e, "animationDurationMs") && t.uint32(48).int64(e.animationDurationMs), null != e.emojiResultDurationMs && Object.hasOwnProperty.call(e, "emojiResultDurationMs") && t.uint32(56).int64(e.emojiResultDurationMs), null != e.type && Object.hasOwnProperty.call(e, "type") && t.uint32(64).int32(e.type), null != e.permission && Object.hasOwnProperty.call(e, "permission") && l.webcast.data.EmojiPermission.encode(e.permission, t.uint32(74).fork()).ldelim(), null != e.emojiSound && Object.hasOwnProperty.call(e, "emojiSound") && t.uint32(82).string(e.emojiSound), null != e.interactResource && Object.hasOwnProperty.call(e, "interactResource") && l.webcast.data.EmojiInteractResource.encode(e.interactResource, t.uint32(90).fork()).ldelim(), null != e.categoryType && Object.hasOwnProperty.call(e, "categoryType") && t.uint32(96).int32(e.categoryType), null != e.avatarResource && Object.hasOwnProperty.call(e, "avatarResource") && l.webcast.data.EmojiAvatarResource.encode(e.avatarResource, t.uint32(106).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkmicAudienceEmoji; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.emojiId = e.int64(); + break; + case 2: + r.isRandom = e.bool(); + break; + case 3: + r.emojiImage = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 4: + r.emojiDynamicImage = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 5: + r.emojiName = e.string(); + break; + case 6: + r.animationDurationMs = e.int64(); + break; + case 7: + r.emojiResultDurationMs = e.int64(); + break; + case 8: + r.type = e.int32(); + break; + case 9: + r.permission = l.webcast.data.EmojiPermission.decode(e, e.uint32()); + break; + case 10: + r.emojiSound = e.string(); + break; + case 11: + r.interactResource = l.webcast.data.EmojiInteractResource.decode(e, e.uint32()); + break; + case 12: + r.categoryType = e.int32(); + break; + case 13: + r.avatarResource = l.webcast.data.EmojiAvatarResource.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.emojiId && e.hasOwnProperty("emojiId") && !(a.isInteger(e.emojiId) || e.emojiId && a.isInteger(e.emojiId.low) && a.isInteger(e.emojiId.high))) return "emojiId: integer|Long expected"; + if (null != e.isRandom && e.hasOwnProperty("isRandom") && "boolean" != typeof e.isRandom) return "isRandom: boolean expected"; + var t; + if (null != e.emojiImage && e.hasOwnProperty("emojiImage") && (t = l.webcast.data.Image.verify(e.emojiImage))) return "emojiImage." + t; + if (null != e.emojiDynamicImage && e.hasOwnProperty("emojiDynamicImage") && (t = l.webcast.data.Image.verify(e.emojiDynamicImage))) return "emojiDynamicImage." + t; + if (null != e.emojiName && e.hasOwnProperty("emojiName") && !a.isString(e.emojiName)) return "emojiName: string expected"; + if (null != e.animationDurationMs && e.hasOwnProperty("animationDurationMs") && !(a.isInteger(e.animationDurationMs) || e.animationDurationMs && a.isInteger(e.animationDurationMs.low) && a.isInteger(e.animationDurationMs.high))) return "animationDurationMs: integer|Long expected"; + if (null != e.emojiResultDurationMs && e.hasOwnProperty("emojiResultDurationMs") && !(a.isInteger(e.emojiResultDurationMs) || e.emojiResultDurationMs && a.isInteger(e.emojiResultDurationMs.low) && a.isInteger(e.emojiResultDurationMs.high))) return "emojiResultDurationMs: integer|Long expected"; + if (null != e.type && e.hasOwnProperty("type")) switch (e.type) + { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + } + if (null != e.permission && e.hasOwnProperty("permission") && (t = l.webcast.data.EmojiPermission.verify(e.permission))) return "permission." + t; + if (null != e.emojiSound && e.hasOwnProperty("emojiSound") && !a.isString(e.emojiSound)) return "emojiSound: string expected"; + if (null != e.interactResource && e.hasOwnProperty("interactResource") && (t = l.webcast.data.EmojiInteractResource.verify(e.interactResource))) return "interactResource." + t; + if (null != e.categoryType && e.hasOwnProperty("categoryType")) switch (e.categoryType) + { + default: + return "categoryType: enum value expected"; + case 0: + case 1: + case 2: + } + if (null != e.avatarResource && e.hasOwnProperty("avatarResource") && (t = l.webcast.data.EmojiAvatarResource.verify(e.avatarResource))) return "avatarResource." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkmicAudienceEmoji) return e; + var t = new l.webcast.data.LinkmicAudienceEmoji; + if (null != e.emojiId && (a.Long ? (t.emojiId = a.Long.fromValue(e.emojiId)).unsigned = !1 : "string" == typeof e.emojiId ? t.emojiId = parseInt(e.emojiId, 10) : "number" == typeof e.emojiId ? t.emojiId = e.emojiId : "object" == typeof e.emojiId && (t.emojiId = new a.LongBits(e.emojiId.low >>> 0, e.emojiId.high >>> 0).toNumber())), null != e.isRandom && (t.isRandom = Boolean(e.isRandom)), null != e.emojiImage) + { + if ("object" != typeof e.emojiImage) throw TypeError(".webcast.data.LinkmicAudienceEmoji.emojiImage: object expected"); + t.emojiImage = l.webcast.data.Image.fromObject(e.emojiImage) + } + if (null != e.emojiDynamicImage) + { + if ("object" != typeof e.emojiDynamicImage) throw TypeError(".webcast.data.LinkmicAudienceEmoji.emojiDynamicImage: object expected"); + t.emojiDynamicImage = l.webcast.data.Image.fromObject(e.emojiDynamicImage) + } + switch (null != e.emojiName && (t.emojiName = String(e.emojiName)), null != e.animationDurationMs && (a.Long ? (t.animationDurationMs = a.Long.fromValue(e.animationDurationMs)).unsigned = !1 : "string" == typeof e.animationDurationMs ? t.animationDurationMs = parseInt(e.animationDurationMs, 10) : "number" == typeof e.animationDurationMs ? t.animationDurationMs = e.animationDurationMs : "object" == typeof e.animationDurationMs && (t.animationDurationMs = new a.LongBits(e.animationDurationMs.low >>> 0, e.animationDurationMs.high >>> 0).toNumber())), null != e.emojiResultDurationMs && (a.Long ? (t.emojiResultDurationMs = a.Long.fromValue(e.emojiResultDurationMs)).unsigned = !1 : "string" == typeof e.emojiResultDurationMs ? t.emojiResultDurationMs = parseInt(e.emojiResultDurationMs, 10) : "number" == typeof e.emojiResultDurationMs ? t.emojiResultDurationMs = e.emojiResultDurationMs : "object" == typeof e.emojiResultDurationMs && (t.emojiResultDurationMs = new a.LongBits(e.emojiResultDurationMs.low >>> 0, e.emojiResultDurationMs.high >>> 0).toNumber())), e.type) + { + case "UNKNOWN_EMOJI_TYPE": + case 0: + t.type = 0; + break; + case "OWN_EMOJI": + case 1: + t.type = 1; + break; + case "INTERACT_EMOJI": + case 2: + t.type = 2 + } + if (null != e.permission) + { + if ("object" != typeof e.permission) throw TypeError(".webcast.data.LinkmicAudienceEmoji.permission: object expected"); + t.permission = l.webcast.data.EmojiPermission.fromObject(e.permission) + } + if (null != e.emojiSound && (t.emojiSound = String(e.emojiSound)), null != e.interactResource) + { + if ("object" != typeof e.interactResource) throw TypeError(".webcast.data.LinkmicAudienceEmoji.interactResource: object expected"); + t.interactResource = l.webcast.data.EmojiInteractResource.fromObject(e.interactResource) + } + switch (e.categoryType) + { + case "EmojiCategory_UNSET": + case 0: + t.categoryType = 0; + break; + case "EmojiCategory_EMOJI": + case 1: + t.categoryType = 1; + break; + case "EmojiCategory_AVATAR": + case 2: + t.categoryType = 2 + } + if (null != e.avatarResource) + { + if ("object" != typeof e.avatarResource) throw TypeError(".webcast.data.LinkmicAudienceEmoji.avatarResource: object expected"); + t.avatarResource = l.webcast.data.EmojiAvatarResource.fromObject(e.avatarResource) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.emojiId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.emojiId = t.longs === String ? "0" : 0; + if (n.isRandom = !1, n.emojiImage = null, n.emojiDynamicImage = null, n.emojiName = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.animationDurationMs = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.animationDurationMs = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.emojiResultDurationMs = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.emojiResultDurationMs = t.longs === String ? "0" : 0; + n.type = t.enums === String ? "UNKNOWN_EMOJI_TYPE" : 0, n.permission = null, n.emojiSound = "", n.interactResource = null, n.categoryType = t.enums === String ? "EmojiCategory_UNSET" : 0, n.avatarResource = null + } + return null != e.emojiId && e.hasOwnProperty("emojiId") && ("number" == typeof e.emojiId ? n.emojiId = t.longs === String ? String(e.emojiId) : e.emojiId : n.emojiId = t.longs === String ? a.Long.prototype.toString.call(e.emojiId) : t.longs === Number ? new a.LongBits(e.emojiId.low >>> 0, e.emojiId.high >>> 0).toNumber() : e.emojiId), null != e.isRandom && e.hasOwnProperty("isRandom") && (n.isRandom = e.isRandom), null != e.emojiImage && e.hasOwnProperty("emojiImage") && (n.emojiImage = l.webcast.data.Image.toObject(e.emojiImage, t)), null != e.emojiDynamicImage && e.hasOwnProperty("emojiDynamicImage") && (n.emojiDynamicImage = l.webcast.data.Image.toObject(e.emojiDynamicImage, t)), null != e.emojiName && e.hasOwnProperty("emojiName") && (n.emojiName = e.emojiName), null != e.animationDurationMs && e.hasOwnProperty("animationDurationMs") && ("number" == typeof e.animationDurationMs ? n.animationDurationMs = t.longs === String ? String(e.animationDurationMs) : e.animationDurationMs : n.animationDurationMs = t.longs === String ? a.Long.prototype.toString.call(e.animationDurationMs) : t.longs === Number ? new a.LongBits(e.animationDurationMs.low >>> 0, e.animationDurationMs.high >>> 0).toNumber() : e.animationDurationMs), null != e.emojiResultDurationMs && e.hasOwnProperty("emojiResultDurationMs") && ("number" == typeof e.emojiResultDurationMs ? n.emojiResultDurationMs = t.longs === String ? String(e.emojiResultDurationMs) : e.emojiResultDurationMs : n.emojiResultDurationMs = t.longs === String ? a.Long.prototype.toString.call(e.emojiResultDurationMs) : t.longs === Number ? new a.LongBits(e.emojiResultDurationMs.low >>> 0, e.emojiResultDurationMs.high >>> 0).toNumber() : e.emojiResultDurationMs), null != e.type && e.hasOwnProperty("type") && (n.type = t.enums === String ? l.webcast.data.EmojiType[e.type] : e.type), null != e.permission && e.hasOwnProperty("permission") && (n.permission = l.webcast.data.EmojiPermission.toObject(e.permission, t)), null != e.emojiSound && e.hasOwnProperty("emojiSound") && (n.emojiSound = e.emojiSound), null != e.interactResource && e.hasOwnProperty("interactResource") && (n.interactResource = l.webcast.data.EmojiInteractResource.toObject(e.interactResource, t)), null != e.categoryType && e.hasOwnProperty("categoryType") && (n.categoryType = t.enums === String ? l.webcast.data.EmojiCategory[e.categoryType] : e.categoryType), null != e.avatarResource && e.hasOwnProperty("avatarResource") && (n.avatarResource = l.webcast.data.EmojiAvatarResource.toObject(e.avatarResource, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.UserRelationType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "RELATION_UNKNOWN"] = 0, t[e[1] = "RELATION_FRIENDs"] = 1, t[e[2] = "RELATION_FANSCLUB"] = 2, t[e[3] = "RELATION_FANS"] = 3, t + }(), e.LinkmicAudienceEnterMessageExtra = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.enterUser = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.enterUser && Object.hasOwnProperty.call(e, "enterUser") && l.webcast.data.LinkmicAudienceEnterMessageExtra.UserInfo.encode(e.enterUser, t.uint32(10).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkmicAudienceEnterMessageExtra; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.enterUser = l.webcast.data.LinkmicAudienceEnterMessageExtra.UserInfo.decode(e, e.uint32()); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.enterUser && e.hasOwnProperty("enterUser")) + { + var t = l.webcast.data.LinkmicAudienceEnterMessageExtra.UserInfo.verify(e.enterUser); + if (t) return "enterUser." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkmicAudienceEnterMessageExtra) return e; + var t = new l.webcast.data.LinkmicAudienceEnterMessageExtra; + if (null != e.enterUser) + { + if ("object" != typeof e.enterUser) throw TypeError(".webcast.data.LinkmicAudienceEnterMessageExtra.enterUser: object expected"); + t.enterUser = l.webcast.data.LinkmicAudienceEnterMessageExtra.UserInfo.fromObject(e.enterUser) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.enterUser = null), null != e.enterUser && e.hasOwnProperty("enterUser") && (n.enterUser = l.webcast.data.LinkmicAudienceEnterMessageExtra.UserInfo.toObject(e.enterUser, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.UserInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.userId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.fanTicket = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.userId && Object.hasOwnProperty.call(e, "userId") && t.uint32(8).int64(e.userId), null != e.fanTicket && Object.hasOwnProperty.call(e, "fanTicket") && t.uint32(16).int64(e.fanTicket), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkmicAudienceEnterMessageExtra.UserInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.userId = e.int64(); + break; + case 2: + r.fanTicket = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.userId && e.hasOwnProperty("userId") && !(a.isInteger(e.userId) || e.userId && a.isInteger(e.userId.low) && a.isInteger(e.userId.high)) ? "userId: integer|Long expected" : null != e.fanTicket && e.hasOwnProperty("fanTicket") && !(a.isInteger(e.fanTicket) || e.fanTicket && a.isInteger(e.fanTicket.low) && a.isInteger(e.fanTicket.high)) ? "fanTicket: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkmicAudienceEnterMessageExtra.UserInfo) return e; + var t = new l.webcast.data.LinkmicAudienceEnterMessageExtra.UserInfo; + return null != e.userId && (a.Long ? (t.userId = a.Long.fromValue(e.userId)).unsigned = !1 : "string" == typeof e.userId ? t.userId = parseInt(e.userId, 10) : "number" == typeof e.userId ? t.userId = e.userId : "object" == typeof e.userId && (t.userId = new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber())), null != e.fanTicket && (a.Long ? (t.fanTicket = a.Long.fromValue(e.fanTicket)).unsigned = !1 : "string" == typeof e.fanTicket ? t.fanTicket = parseInt(e.fanTicket, 10) : "number" == typeof e.fanTicket ? t.fanTicket = e.fanTicket : "object" == typeof e.fanTicket && (t.fanTicket = new a.LongBits(e.fanTicket.low >>> 0, e.fanTicket.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.userId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.userId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.fanTicket = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fanTicket = t.longs === String ? "0" : 0 + } + return null != e.userId && e.hasOwnProperty("userId") && ("number" == typeof e.userId ? n.userId = t.longs === String ? String(e.userId) : e.userId : n.userId = t.longs === String ? a.Long.prototype.toString.call(e.userId) : t.longs === Number ? new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber() : e.userId), null != e.fanTicket && e.hasOwnProperty("fanTicket") && ("number" == typeof e.fanTicket ? n.fanTicket = t.longs === String ? String(e.fanTicket) : e.fanTicket : n.fanTicket = t.longs === String ? a.Long.prototype.toString.call(e.fanTicket) : t.longs === Number ? new a.LongBits(e.fanTicket.low >>> 0, e.fanTicket.high >>> 0).toNumber() : e.fanTicket), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.SilenceType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "SILENCE_TYPE_NORMAL"] = 0, t[e[1] = "SILENCE_TYPE_PASSIVE"] = 1, t + }(), e.SingerAction = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "SingerAction_UNKNOWN"] = 0, t[e[1] = "SingerAction_START"] = 1, t[e[2] = "SingerAction_FINISH"] = 2, t + }(), e.ApplyType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "NORMAL"] = 0, t[e[1] = "SONG"] = 1, t[e[2] = "FASTMATCH"] = 2, t[e[4] = "CITY"] = 4, t[e[8] = "STRONG_REACH"] = 8, t[e[16] = "KTV_ACTIVITY"] = 16, t + }(), e.LinkmicAudienceSettingKey = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "UNKOWN"] = 0, t[e[1] = "ENABLE_DELEGATED_TO_FRIENDS"] = 1, t[e[2] = "ENABLE_DELEGATED_TO_FRIENDS_ACQUAINTANCE"] = 2, t[e[3] = "ENABLE_FASTMATCH_SHAKE"] = 3, t[e[4] = "ENABLE_FASTMATCH_ROOM_SHAKE"] = 4, t + }(), e.LinkmicSettingStatus = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "SETTING_UNSET"] = 0, t[e[1] = "SETTING_OPEN"] = 1, t[e[2] = "SETTING_OFF"] = 2, t[e[50] = "SETTING_DELEGATED_TO_EVERYONE"] = 50, t + }(), e.KtvSingMode = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "SING_UNKNOWN"] = 0, t[e[1] = "SING_VIDEO"] = 1, t[e[2] = "SING_AUDIO"] = 2, t[e[3] = "SING_AVATAR"] = 3, t + }(), e.AvatarAuditRes = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "AUDIT_UNKNOWN"] = 0, t[e[1] = "AUDIT_PASS"] = 1, t[e[2] = "AUDIT_REJECT"] = 2, t + }(), e.LinkmicAudienceSettingValue = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.status = 0, e.prototype.extra = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.status && Object.hasOwnProperty.call(e, "status") && t.uint32(8).int32(e.status), null != e.extra && Object.hasOwnProperty.call(e, "extra") && t.uint32(18).string(e.extra), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkmicAudienceSettingValue; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.status = e.int32(); + break; + case 2: + r.extra = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.status && e.hasOwnProperty("status")) switch (e.status) + { + default: + return "status: enum value expected"; + case 0: + case 1: + case 2: + case 50: + } + return null != e.extra && e.hasOwnProperty("extra") && !a.isString(e.extra) ? "extra: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkmicAudienceSettingValue) return e; + var t = new l.webcast.data.LinkmicAudienceSettingValue; + switch (e.status) + { + case "SETTING_UNSET": + case 0: + t.status = 0; + break; + case "SETTING_OPEN": + case 1: + t.status = 1; + break; + case "SETTING_OFF": + case 2: + t.status = 2; + break; + case "SETTING_DELEGATED_TO_EVERYONE": + case 50: + t.status = 50 + } + return null != e.extra && (t.extra = String(e.extra)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.status = t.enums === String ? "SETTING_UNSET" : 0, n.extra = ""), null != e.status && e.hasOwnProperty("status") && (n.status = t.enums === String ? l.webcast.data.LinkmicSettingStatus[e.status] : e.status), null != e.extra && e.hasOwnProperty("extra") && (n.extra = e.extra), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkmicAudienceSetting = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.key = 0, e.prototype.value = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.key && Object.hasOwnProperty.call(e, "key") && t.uint32(8).int32(e.key), null != e.value && Object.hasOwnProperty.call(e, "value") && l.webcast.data.LinkmicAudienceSettingValue.encode(e.value, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkmicAudienceSetting; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.key = e.int32(); + break; + case 2: + r.value = l.webcast.data.LinkmicAudienceSettingValue.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.key && e.hasOwnProperty("key")) switch (e.key) + { + default: + return "key: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + } + if (null != e.value && e.hasOwnProperty("value")) + { + var t = l.webcast.data.LinkmicAudienceSettingValue.verify(e.value); + if (t) return "value." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkmicAudienceSetting) return e; + var t = new l.webcast.data.LinkmicAudienceSetting; + switch (e.key) + { + case "UNKOWN": + case 0: + t.key = 0; + break; + case "ENABLE_DELEGATED_TO_FRIENDS": + case 1: + t.key = 1; + break; + case "ENABLE_DELEGATED_TO_FRIENDS_ACQUAINTANCE": + case 2: + t.key = 2; + break; + case "ENABLE_FASTMATCH_SHAKE": + case 3: + t.key = 3; + break; + case "ENABLE_FASTMATCH_ROOM_SHAKE": + case 4: + t.key = 4 + } + if (null != e.value) + { + if ("object" != typeof e.value) throw TypeError(".webcast.data.LinkmicAudienceSetting.value: object expected"); + t.value = l.webcast.data.LinkmicAudienceSettingValue.fromObject(e.value) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.key = t.enums === String ? "UNKOWN" : 0, n.value = null), null != e.key && e.hasOwnProperty("key") && (n.key = t.enums === String ? l.webcast.data.LinkmicAudienceSettingKey[e.key] : e.key), null != e.value && e.hasOwnProperty("value") && (n.value = l.webcast.data.LinkmicAudienceSettingValue.toObject(e.value, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.InitSource = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "INIT_SOURCE_UNKNOWN"] = 0, t[e[1] = "PROACRIVE"] = 1, t[e[2] = "DEFAULT_PASSIVE"] = 2, t + }(), e.AnchorLinkmicInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.rtcExtInfo = "", e.prototype.linkmicIdStr = "", e.prototype.useBackupStream = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.rtcExtInfo && Object.hasOwnProperty.call(e, "rtcExtInfo") && t.uint32(10).string(e.rtcExtInfo), null != e.linkmicIdStr && Object.hasOwnProperty.call(e, "linkmicIdStr") && t.uint32(18).string(e.linkmicIdStr), null != e.useBackupStream && Object.hasOwnProperty.call(e, "useBackupStream") && t.uint32(24).bool(e.useBackupStream), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.AnchorLinkmicInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.rtcExtInfo = e.string(); + break; + case 2: + r.linkmicIdStr = e.string(); + break; + case 3: + r.useBackupStream = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.rtcExtInfo && e.hasOwnProperty("rtcExtInfo") && !a.isString(e.rtcExtInfo) ? "rtcExtInfo: string expected" : null != e.linkmicIdStr && e.hasOwnProperty("linkmicIdStr") && !a.isString(e.linkmicIdStr) ? "linkmicIdStr: string expected" : null != e.useBackupStream && e.hasOwnProperty("useBackupStream") && "boolean" != typeof e.useBackupStream ? "useBackupStream: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.AnchorLinkmicInfo) return e; + var t = new l.webcast.data.AnchorLinkmicInfo; + return null != e.rtcExtInfo && (t.rtcExtInfo = String(e.rtcExtInfo)), null != e.linkmicIdStr && (t.linkmicIdStr = String(e.linkmicIdStr)), null != e.useBackupStream && (t.useBackupStream = Boolean(e.useBackupStream)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.rtcExtInfo = "", n.linkmicIdStr = "", n.useBackupStream = !1), null != e.rtcExtInfo && e.hasOwnProperty("rtcExtInfo") && (n.rtcExtInfo = e.rtcExtInfo), null != e.linkmicIdStr && e.hasOwnProperty("linkmicIdStr") && (n.linkmicIdStr = e.linkmicIdStr), null != e.useBackupStream && e.hasOwnProperty("useBackupStream") && (n.useBackupStream = e.useBackupStream), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkmicPositionStatus = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "LinkmicPositionStatus_Normal"] = 0, t[e[1] = "LinkmicPositionStatus_Locked"] = 1, t + }(), e.LinkmicPositionItem = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.position = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.status = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.position && Object.hasOwnProperty.call(e, "position") && t.uint32(8).int64(e.position), null != e.status && Object.hasOwnProperty.call(e, "status") && t.uint32(16).int32(e.status), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkmicPositionItem; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.position = e.int64(); + break; + case 2: + r.status = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.position && e.hasOwnProperty("position") && !(a.isInteger(e.position) || e.position && a.isInteger(e.position.low) && a.isInteger(e.position.high))) return "position: integer|Long expected"; + if (null != e.status && e.hasOwnProperty("status")) switch (e.status) + { + default: + return "status: enum value expected"; + case 0: + case 1: + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkmicPositionItem) return e; + var t = new l.webcast.data.LinkmicPositionItem; + switch (null != e.position && (a.Long ? (t.position = a.Long.fromValue(e.position)).unsigned = !1 : "string" == typeof e.position ? t.position = parseInt(e.position, 10) : "number" == typeof e.position ? t.position = e.position : "object" == typeof e.position && (t.position = new a.LongBits(e.position.low >>> 0, e.position.high >>> 0).toNumber())), e.status) + { + case "LinkmicPositionStatus_Normal": + case 0: + t.status = 0; + break; + case "LinkmicPositionStatus_Locked": + case 1: + t.status = 1 + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.position = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.position = t.longs === String ? "0" : 0; + n.status = t.enums === String ? "LinkmicPositionStatus_Normal" : 0 + } + return null != e.position && e.hasOwnProperty("position") && ("number" == typeof e.position ? n.position = t.longs === String ? String(e.position) : e.position : n.position = t.longs === String ? a.Long.prototype.toString.call(e.position) : t.longs === Number ? new a.LongBits(e.position.low >>> 0, e.position.high >>> 0).toNumber() : e.position), null != e.status && e.hasOwnProperty("status") && (n.status = t.enums === String ? l.webcast.data.LinkmicPositionStatus[e.status] : e.status), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkmicAudiencePairUserInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.user = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.user && Object.hasOwnProperty.call(e, "user") && l.webcast.data.User.encode(e.user, t.uint32(10).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkmicAudiencePairUserInfo; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.user = l.webcast.data.User.decode(e, e.uint32()); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.user && e.hasOwnProperty("user")) + { + var t = l.webcast.data.User.verify(e.user); + if (t) return "user." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkmicAudiencePairUserInfo) return e; + var t = new l.webcast.data.LinkmicAudiencePairUserInfo; + if (null != e.user) + { + if ("object" != typeof e.user) throw TypeError(".webcast.data.LinkmicAudiencePairUserInfo.user: object expected"); + t.user = l.webcast.data.User.fromObject(e.user) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.user = null), null != e.user && e.hasOwnProperty("user") && (n.user = l.webcast.data.User.toObject(e.user, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkmicAudiencePairUser = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.guest = null, e.prototype.investor = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.guest && Object.hasOwnProperty.call(e, "guest") && l.webcast.data.LinkmicAudiencePairUserInfo.encode(e.guest, t.uint32(10).fork()).ldelim(), null != e.investor && Object.hasOwnProperty.call(e, "investor") && l.webcast.data.LinkmicAudiencePairUserInfo.encode(e.investor, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkmicAudiencePairUser; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.guest = l.webcast.data.LinkmicAudiencePairUserInfo.decode(e, e.uint32()); + break; + case 2: + r.investor = l.webcast.data.LinkmicAudiencePairUserInfo.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.guest && e.hasOwnProperty("guest") && (t = l.webcast.data.LinkmicAudiencePairUserInfo.verify(e.guest))) return "guest." + t; + if (null != e.investor && e.hasOwnProperty("investor") && (t = l.webcast.data.LinkmicAudiencePairUserInfo.verify(e.investor))) return "investor." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkmicAudiencePairUser) return e; + var t = new l.webcast.data.LinkmicAudiencePairUser; + if (null != e.guest) + { + if ("object" != typeof e.guest) throw TypeError(".webcast.data.LinkmicAudiencePairUser.guest: object expected"); + t.guest = l.webcast.data.LinkmicAudiencePairUserInfo.fromObject(e.guest) + } + if (null != e.investor) + { + if ("object" != typeof e.investor) throw TypeError(".webcast.data.LinkmicAudiencePairUser.investor: object expected"); + t.investor = l.webcast.data.LinkmicAudiencePairUserInfo.fromObject(e.investor) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.guest = null, n.investor = null), null != e.guest && e.hasOwnProperty("guest") && (n.guest = l.webcast.data.LinkmicAudiencePairUserInfo.toObject(e.guest, t)), null != e.investor && e.hasOwnProperty("investor") && (n.investor = l.webcast.data.LinkmicAudiencePairUserInfo.toObject(e.investor, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkmicSocialShareVideoReport = function () + { + function e(e) + { + if (this.linkedUserInfos = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.roomId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.anchorId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.eventKey = "", e.prototype.linkedUserInfos = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.roomId && Object.hasOwnProperty.call(e, "roomId") && t.uint32(8).int64(e.roomId), null != e.anchorId && Object.hasOwnProperty.call(e, "anchorId") && t.uint32(16).int64(e.anchorId), null != e.eventKey && Object.hasOwnProperty.call(e, "eventKey") && t.uint32(26).string(e.eventKey), null != e.linkedUserInfos && e.linkedUserInfos.length) + for (var n = 0; n < e.linkedUserInfos.length; ++n) l.webcast.data.LinkmicSocialShareVideoReport.UserInfo.encode(e.linkedUserInfos[n], t.uint32(34).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkmicSocialShareVideoReport; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.roomId = e.int64(); + break; + case 2: + r.anchorId = e.int64(); + break; + case 3: + r.eventKey = e.string(); + break; + case 4: + r.linkedUserInfos && r.linkedUserInfos.length || (r.linkedUserInfos = []), r.linkedUserInfos.push(l.webcast.data.LinkmicSocialShareVideoReport.UserInfo.decode(e, e.uint32())); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.roomId && e.hasOwnProperty("roomId") && !(a.isInteger(e.roomId) || e.roomId && a.isInteger(e.roomId.low) && a.isInteger(e.roomId.high))) return "roomId: integer|Long expected"; + if (null != e.anchorId && e.hasOwnProperty("anchorId") && !(a.isInteger(e.anchorId) || e.anchorId && a.isInteger(e.anchorId.low) && a.isInteger(e.anchorId.high))) return "anchorId: integer|Long expected"; + if (null != e.eventKey && e.hasOwnProperty("eventKey") && !a.isString(e.eventKey)) return "eventKey: string expected"; + if (null != e.linkedUserInfos && e.hasOwnProperty("linkedUserInfos")) + { + if (!Array.isArray(e.linkedUserInfos)) return "linkedUserInfos: array expected"; + for (var t = 0; t < e.linkedUserInfos.length; ++t) + { + var n = l.webcast.data.LinkmicSocialShareVideoReport.UserInfo.verify(e.linkedUserInfos[t]); + if (n) return "linkedUserInfos." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkmicSocialShareVideoReport) return e; + var t = new l.webcast.data.LinkmicSocialShareVideoReport; + if (null != e.roomId && (a.Long ? (t.roomId = a.Long.fromValue(e.roomId)).unsigned = !1 : "string" == typeof e.roomId ? t.roomId = parseInt(e.roomId, 10) : "number" == typeof e.roomId ? t.roomId = e.roomId : "object" == typeof e.roomId && (t.roomId = new a.LongBits(e.roomId.low >>> 0, e.roomId.high >>> 0).toNumber())), null != e.anchorId && (a.Long ? (t.anchorId = a.Long.fromValue(e.anchorId)).unsigned = !1 : "string" == typeof e.anchorId ? t.anchorId = parseInt(e.anchorId, 10) : "number" == typeof e.anchorId ? t.anchorId = e.anchorId : "object" == typeof e.anchorId && (t.anchorId = new a.LongBits(e.anchorId.low >>> 0, e.anchorId.high >>> 0).toNumber())), null != e.eventKey && (t.eventKey = String(e.eventKey)), e.linkedUserInfos) + { + if (!Array.isArray(e.linkedUserInfos)) throw TypeError(".webcast.data.LinkmicSocialShareVideoReport.linkedUserInfos: array expected"); + t.linkedUserInfos = []; + for (var n = 0; n < e.linkedUserInfos.length; ++n) + { + if ("object" != typeof e.linkedUserInfos[n]) throw TypeError(".webcast.data.LinkmicSocialShareVideoReport.linkedUserInfos: object expected"); + t.linkedUserInfos[n] = l.webcast.data.LinkmicSocialShareVideoReport.UserInfo.fromObject(e.linkedUserInfos[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.linkedUserInfos = []), t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.roomId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.roomId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.anchorId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.anchorId = t.longs === String ? "0" : 0; + n.eventKey = "" + } + if (null != e.roomId && e.hasOwnProperty("roomId") && ("number" == typeof e.roomId ? n.roomId = t.longs === String ? String(e.roomId) : e.roomId : n.roomId = t.longs === String ? a.Long.prototype.toString.call(e.roomId) : t.longs === Number ? new a.LongBits(e.roomId.low >>> 0, e.roomId.high >>> 0).toNumber() : e.roomId), null != e.anchorId && e.hasOwnProperty("anchorId") && ("number" == typeof e.anchorId ? n.anchorId = t.longs === String ? String(e.anchorId) : e.anchorId : n.anchorId = t.longs === String ? a.Long.prototype.toString.call(e.anchorId) : t.longs === Number ? new a.LongBits(e.anchorId.low >>> 0, e.anchorId.high >>> 0).toNumber() : e.anchorId), null != e.eventKey && e.hasOwnProperty("eventKey") && (n.eventKey = e.eventKey), e.linkedUserInfos && e.linkedUserInfos.length) + { + n.linkedUserInfos = []; + for (var o = 0; o < e.linkedUserInfos.length; ++o) n.linkedUserInfos[o] = l.webcast.data.LinkmicSocialShareVideoReport.UserInfo.toObject(e.linkedUserInfos[o], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.UserInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.userId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.nickName = "", e.prototype.avatarMedium = null, e.prototype.startTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.linkDuration = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.endTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.userId && Object.hasOwnProperty.call(e, "userId") && t.uint32(8).int64(e.userId), null != e.nickName && Object.hasOwnProperty.call(e, "nickName") && t.uint32(18).string(e.nickName), null != e.avatarMedium && Object.hasOwnProperty.call(e, "avatarMedium") && l.webcast.data.Image.encode(e.avatarMedium, t.uint32(26).fork()).ldelim(), null != e.startTime && Object.hasOwnProperty.call(e, "startTime") && t.uint32(32).int64(e.startTime), null != e.linkDuration && Object.hasOwnProperty.call(e, "linkDuration") && t.uint32(40).int64(e.linkDuration), null != e.endTime && Object.hasOwnProperty.call(e, "endTime") && t.uint32(48).int64(e.endTime), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkmicSocialShareVideoReport.UserInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.userId = e.int64(); + break; + case 2: + r.nickName = e.string(); + break; + case 3: + r.avatarMedium = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 4: + r.startTime = e.int64(); + break; + case 5: + r.linkDuration = e.int64(); + break; + case 6: + r.endTime = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.userId && e.hasOwnProperty("userId") && !(a.isInteger(e.userId) || e.userId && a.isInteger(e.userId.low) && a.isInteger(e.userId.high))) return "userId: integer|Long expected"; + if (null != e.nickName && e.hasOwnProperty("nickName") && !a.isString(e.nickName)) return "nickName: string expected"; + if (null != e.avatarMedium && e.hasOwnProperty("avatarMedium")) + { + var t = l.webcast.data.Image.verify(e.avatarMedium); + if (t) return "avatarMedium." + t + } + return null != e.startTime && e.hasOwnProperty("startTime") && !(a.isInteger(e.startTime) || e.startTime && a.isInteger(e.startTime.low) && a.isInteger(e.startTime.high)) ? "startTime: integer|Long expected" : null != e.linkDuration && e.hasOwnProperty("linkDuration") && !(a.isInteger(e.linkDuration) || e.linkDuration && a.isInteger(e.linkDuration.low) && a.isInteger(e.linkDuration.high)) ? "linkDuration: integer|Long expected" : null != e.endTime && e.hasOwnProperty("endTime") && !(a.isInteger(e.endTime) || e.endTime && a.isInteger(e.endTime.low) && a.isInteger(e.endTime.high)) ? "endTime: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkmicSocialShareVideoReport.UserInfo) return e; + var t = new l.webcast.data.LinkmicSocialShareVideoReport.UserInfo; + if (null != e.userId && (a.Long ? (t.userId = a.Long.fromValue(e.userId)).unsigned = !1 : "string" == typeof e.userId ? t.userId = parseInt(e.userId, 10) : "number" == typeof e.userId ? t.userId = e.userId : "object" == typeof e.userId && (t.userId = new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber())), null != e.nickName && (t.nickName = String(e.nickName)), null != e.avatarMedium) + { + if ("object" != typeof e.avatarMedium) throw TypeError(".webcast.data.LinkmicSocialShareVideoReport.UserInfo.avatarMedium: object expected"); + t.avatarMedium = l.webcast.data.Image.fromObject(e.avatarMedium) + } + return null != e.startTime && (a.Long ? (t.startTime = a.Long.fromValue(e.startTime)).unsigned = !1 : "string" == typeof e.startTime ? t.startTime = parseInt(e.startTime, 10) : "number" == typeof e.startTime ? t.startTime = e.startTime : "object" == typeof e.startTime && (t.startTime = new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber())), null != e.linkDuration && (a.Long ? (t.linkDuration = a.Long.fromValue(e.linkDuration)).unsigned = !1 : "string" == typeof e.linkDuration ? t.linkDuration = parseInt(e.linkDuration, 10) : "number" == typeof e.linkDuration ? t.linkDuration = e.linkDuration : "object" == typeof e.linkDuration && (t.linkDuration = new a.LongBits(e.linkDuration.low >>> 0, e.linkDuration.high >>> 0).toNumber())), null != e.endTime && (a.Long ? (t.endTime = a.Long.fromValue(e.endTime)).unsigned = !1 : "string" == typeof e.endTime ? t.endTime = parseInt(e.endTime, 10) : "number" == typeof e.endTime ? t.endTime = e.endTime : "object" == typeof e.endTime && (t.endTime = new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.userId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.userId = t.longs === String ? "0" : 0; + if (n.nickName = "", n.avatarMedium = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.startTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.startTime = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.linkDuration = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.linkDuration = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.endTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.endTime = t.longs === String ? "0" : 0 + } + return null != e.userId && e.hasOwnProperty("userId") && ("number" == typeof e.userId ? n.userId = t.longs === String ? String(e.userId) : e.userId : n.userId = t.longs === String ? a.Long.prototype.toString.call(e.userId) : t.longs === Number ? new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber() : e.userId), null != e.nickName && e.hasOwnProperty("nickName") && (n.nickName = e.nickName), null != e.avatarMedium && e.hasOwnProperty("avatarMedium") && (n.avatarMedium = l.webcast.data.Image.toObject(e.avatarMedium, t)), null != e.startTime && e.hasOwnProperty("startTime") && ("number" == typeof e.startTime ? n.startTime = t.longs === String ? String(e.startTime) : e.startTime : n.startTime = t.longs === String ? a.Long.prototype.toString.call(e.startTime) : t.longs === Number ? new a.LongBits(e.startTime.low >>> 0, e.startTime.high >>> 0).toNumber() : e.startTime), null != e.linkDuration && e.hasOwnProperty("linkDuration") && ("number" == typeof e.linkDuration ? n.linkDuration = t.longs === String ? String(e.linkDuration) : e.linkDuration : n.linkDuration = t.longs === String ? a.Long.prototype.toString.call(e.linkDuration) : t.longs === Number ? new a.LongBits(e.linkDuration.low >>> 0, e.linkDuration.high >>> 0).toNumber() : e.linkDuration), null != e.endTime && e.hasOwnProperty("endTime") && ("number" == typeof e.endTime ? n.endTime = t.longs === String ? String(e.endTime) : e.endTime : n.endTime = t.longs === String ? a.Long.prototype.toString.call(e.endTime) : t.longs === Number ? new a.LongBits(e.endTime.low >>> 0, e.endTime.high >>> 0).toNumber() : e.endTime), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.LinkPhase = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.phaseId = 0, e.prototype.phaseSecondsBegin = 0, e.prototype.phaseSecondsEnd = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.phaseId && Object.hasOwnProperty.call(e, "phaseId") && t.uint32(8).int32(e.phaseId), null != e.phaseSecondsBegin && Object.hasOwnProperty.call(e, "phaseSecondsBegin") && t.uint32(16).int32(e.phaseSecondsBegin), null != e.phaseSecondsEnd && Object.hasOwnProperty.call(e, "phaseSecondsEnd") && t.uint32(24).int32(e.phaseSecondsEnd), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkPhase; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.phaseId = e.int32(); + break; + case 2: + r.phaseSecondsBegin = e.int32(); + break; + case 3: + r.phaseSecondsEnd = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.phaseId && e.hasOwnProperty("phaseId") && !a.isInteger(e.phaseId) ? "phaseId: integer expected" : null != e.phaseSecondsBegin && e.hasOwnProperty("phaseSecondsBegin") && !a.isInteger(e.phaseSecondsBegin) ? "phaseSecondsBegin: integer expected" : null != e.phaseSecondsEnd && e.hasOwnProperty("phaseSecondsEnd") && !a.isInteger(e.phaseSecondsEnd) ? "phaseSecondsEnd: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkPhase) return e; + var t = new l.webcast.data.LinkPhase; + return null != e.phaseId && (t.phaseId = 0 | e.phaseId), null != e.phaseSecondsBegin && (t.phaseSecondsBegin = 0 | e.phaseSecondsBegin), null != e.phaseSecondsEnd && (t.phaseSecondsEnd = 0 | e.phaseSecondsEnd), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.phaseId = 0, n.phaseSecondsBegin = 0, n.phaseSecondsEnd = 0), null != e.phaseId && e.hasOwnProperty("phaseId") && (n.phaseId = e.phaseId), null != e.phaseSecondsBegin && e.hasOwnProperty("phaseSecondsBegin") && (n.phaseSecondsBegin = e.phaseSecondsBegin), null != e.phaseSecondsEnd && e.hasOwnProperty("phaseSecondsEnd") && (n.phaseSecondsEnd = e.phaseSecondsEnd), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkPhaseConfig = function () + { + function e(e) + { + if (this.phases = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.phases = a.emptyArray, e.prototype.easterEggCartoonSeconds = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.phases && e.phases.length) + for (var n = 0; n < e.phases.length; ++n) l.webcast.data.LinkPhase.encode(e.phases[n], t.uint32(10).fork()).ldelim(); + return null != e.easterEggCartoonSeconds && Object.hasOwnProperty.call(e, "easterEggCartoonSeconds") && t.uint32(16).int32(e.easterEggCartoonSeconds), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.data.LinkPhaseConfig; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.phases && r.phases.length || (r.phases = []), r.phases.push(l.webcast.data.LinkPhase.decode(e, e.uint32())); + break; + case 2: + r.easterEggCartoonSeconds = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.phases && e.hasOwnProperty("phases")) + { + if (!Array.isArray(e.phases)) return "phases: array expected"; + for (var t = 0; t < e.phases.length; ++t) + { + var n = l.webcast.data.LinkPhase.verify(e.phases[t]); + if (n) return "phases." + n + } + } + return null != e.easterEggCartoonSeconds && e.hasOwnProperty("easterEggCartoonSeconds") && !a.isInteger(e.easterEggCartoonSeconds) ? "easterEggCartoonSeconds: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.data.LinkPhaseConfig) return e; + var t = new l.webcast.data.LinkPhaseConfig; + if (e.phases) + { + if (!Array.isArray(e.phases)) throw TypeError(".webcast.data.LinkPhaseConfig.phases: array expected"); + t.phases = []; + for (var n = 0; n < e.phases.length; ++n) + { + if ("object" != typeof e.phases[n]) throw TypeError(".webcast.data.LinkPhaseConfig.phases: object expected"); + t.phases[n] = l.webcast.data.LinkPhase.fromObject(e.phases[n]) + } + } + return null != e.easterEggCartoonSeconds && (t.easterEggCartoonSeconds = 0 | e.easterEggCartoonSeconds), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.phases = []), t.defaults && (n.easterEggCartoonSeconds = 0), e.phases && e.phases.length) + { + n.phases = []; + for (var r = 0; r < e.phases.length; ++r) n.phases[r] = l.webcast.data.LinkPhase.toObject(e.phases[r], t) + } + return null != e.easterEggCartoonSeconds && e.hasOwnProperty("easterEggCartoonSeconds") && (n.easterEggCartoonSeconds = e.easterEggCartoonSeconds), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.im = function () + { + const e = {}; + return e.Common = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.method = "", e.prototype.msgId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.roomId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.createTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.monitor = 0, e.prototype.isShowMsg = !1, e.prototype.describe = "", e.prototype.displayText = null, e.prototype.foldType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.anchorFoldType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.priorityScore = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.logId = "", e.prototype.msgProcessFilterK = "", e.prototype.msgProcessFilterV = "", e.prototype.user = null, e.prototype.room = null, e.prototype.anchorFoldTypeV2 = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.processAtSeiTimeMs = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.method && Object.hasOwnProperty.call(e, "method") && t.uint32(10).string(e.method), null != e.msgId && Object.hasOwnProperty.call(e, "msgId") && t.uint32(16).int64(e.msgId), null != e.roomId && Object.hasOwnProperty.call(e, "roomId") && t.uint32(24).int64(e.roomId), null != e.createTime && Object.hasOwnProperty.call(e, "createTime") && t.uint32(32).int64(e.createTime), null != e.monitor && Object.hasOwnProperty.call(e, "monitor") && t.uint32(40).int32(e.monitor), null != e.isShowMsg && Object.hasOwnProperty.call(e, "isShowMsg") && t.uint32(48).bool(e.isShowMsg), null != e.describe && Object.hasOwnProperty.call(e, "describe") && t.uint32(58).string(e.describe), null != e.displayText && Object.hasOwnProperty.call(e, "displayText") && l.webcast.data.Text.encode(e.displayText, t.uint32(66).fork()).ldelim(), null != e.foldType && Object.hasOwnProperty.call(e, "foldType") && t.uint32(72).int64(e.foldType), null != e.anchorFoldType && Object.hasOwnProperty.call(e, "anchorFoldType") && t.uint32(80).int64(e.anchorFoldType), null != e.priorityScore && Object.hasOwnProperty.call(e, "priorityScore") && t.uint32(88).int64(e.priorityScore), null != e.logId && Object.hasOwnProperty.call(e, "logId") && t.uint32(98).string(e.logId), null != e.msgProcessFilterK && Object.hasOwnProperty.call(e, "msgProcessFilterK") && t.uint32(106).string(e.msgProcessFilterK), null != e.msgProcessFilterV && Object.hasOwnProperty.call(e, "msgProcessFilterV") && t.uint32(114).string(e.msgProcessFilterV), null != e.user && Object.hasOwnProperty.call(e, "user") && l.webcast.data.User.encode(e.user, t.uint32(122).fork()).ldelim(), null != e.room && Object.hasOwnProperty.call(e, "room") && l.webcast.data.Room.encode(e.room, t.uint32(130).fork()).ldelim(), null != e.anchorFoldTypeV2 && Object.hasOwnProperty.call(e, "anchorFoldTypeV2") && t.uint32(136).int64(e.anchorFoldTypeV2), null != e.processAtSeiTimeMs && Object.hasOwnProperty.call(e, "processAtSeiTimeMs") && t.uint32(144).int64(e.processAtSeiTimeMs), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.Common; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.method = e.string(); + break; + case 2: + r.msgId = e.int64(); + break; + case 3: + r.roomId = e.int64(); + break; + case 4: + r.createTime = e.int64(); + break; + case 5: + r.monitor = e.int32(); + break; + case 6: + r.isShowMsg = e.bool(); + break; + case 7: + r.describe = e.string(); + break; + case 8: + r.displayText = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 9: + r.foldType = e.int64(); + break; + case 10: + r.anchorFoldType = e.int64(); + break; + case 11: + r.priorityScore = e.int64(); + break; + case 12: + r.logId = e.string(); + break; + case 13: + r.msgProcessFilterK = e.string(); + break; + case 14: + r.msgProcessFilterV = e.string(); + break; + case 15: + r.user = l.webcast.data.User.decode(e, e.uint32()); + break; + case 16: + r.room = l.webcast.data.Room.decode(e, e.uint32()); + break; + case 17: + r.anchorFoldTypeV2 = e.int64(); + break; + case 18: + r.processAtSeiTimeMs = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.method && e.hasOwnProperty("method") && !a.isString(e.method)) return "method: string expected"; + if (null != e.msgId && e.hasOwnProperty("msgId") && !(a.isInteger(e.msgId) || e.msgId && a.isInteger(e.msgId.low) && a.isInteger(e.msgId.high))) return "msgId: integer|Long expected"; + if (null != e.roomId && e.hasOwnProperty("roomId") && !(a.isInteger(e.roomId) || e.roomId && a.isInteger(e.roomId.low) && a.isInteger(e.roomId.high))) return "roomId: integer|Long expected"; + if (null != e.createTime && e.hasOwnProperty("createTime") && !(a.isInteger(e.createTime) || e.createTime && a.isInteger(e.createTime.low) && a.isInteger(e.createTime.high))) return "createTime: integer|Long expected"; + if (null != e.monitor && e.hasOwnProperty("monitor") && !a.isInteger(e.monitor)) return "monitor: integer expected"; + if (null != e.isShowMsg && e.hasOwnProperty("isShowMsg") && "boolean" != typeof e.isShowMsg) return "isShowMsg: boolean expected"; + if (null != e.describe && e.hasOwnProperty("describe") && !a.isString(e.describe)) return "describe: string expected"; + var t; + if (null != e.displayText && e.hasOwnProperty("displayText") && (t = l.webcast.data.Text.verify(e.displayText))) return "displayText." + t; + if (null != e.foldType && e.hasOwnProperty("foldType") && !(a.isInteger(e.foldType) || e.foldType && a.isInteger(e.foldType.low) && a.isInteger(e.foldType.high))) return "foldType: integer|Long expected"; + if (null != e.anchorFoldType && e.hasOwnProperty("anchorFoldType") && !(a.isInteger(e.anchorFoldType) || e.anchorFoldType && a.isInteger(e.anchorFoldType.low) && a.isInteger(e.anchorFoldType.high))) return "anchorFoldType: integer|Long expected"; + if (null != e.priorityScore && e.hasOwnProperty("priorityScore") && !(a.isInteger(e.priorityScore) || e.priorityScore && a.isInteger(e.priorityScore.low) && a.isInteger(e.priorityScore.high))) return "priorityScore: integer|Long expected"; + if (null != e.logId && e.hasOwnProperty("logId") && !a.isString(e.logId)) return "logId: string expected"; + if (null != e.msgProcessFilterK && e.hasOwnProperty("msgProcessFilterK") && !a.isString(e.msgProcessFilterK)) return "msgProcessFilterK: string expected"; + if (null != e.msgProcessFilterV && e.hasOwnProperty("msgProcessFilterV") && !a.isString(e.msgProcessFilterV)) return "msgProcessFilterV: string expected"; + if (null != e.user && e.hasOwnProperty("user") && (t = l.webcast.data.User.verify(e.user))) return "user." + t; + if (null != e.room && e.hasOwnProperty("room") && (t = l.webcast.data.Room.verify(e.room))) return "room." + t; + return null != e.anchorFoldTypeV2 && e.hasOwnProperty("anchorFoldTypeV2") && !(a.isInteger(e.anchorFoldTypeV2) || e.anchorFoldTypeV2 && a.isInteger(e.anchorFoldTypeV2.low) && a.isInteger(e.anchorFoldTypeV2.high)) ? "anchorFoldTypeV2: integer|Long expected" : null != e.processAtSeiTimeMs && e.hasOwnProperty("processAtSeiTimeMs") && !(a.isInteger(e.processAtSeiTimeMs) || e.processAtSeiTimeMs && a.isInteger(e.processAtSeiTimeMs.low) && a.isInteger(e.processAtSeiTimeMs.high)) ? "processAtSeiTimeMs: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.Common) return e; + var t = new l.webcast.im.Common; + if (null != e.method && (t.method = String(e.method)), null != e.msgId && (a.Long ? (t.msgId = a.Long.fromValue(e.msgId)).unsigned = !1 : "string" == typeof e.msgId ? t.msgId = parseInt(e.msgId, 10) : "number" == typeof e.msgId ? t.msgId = e.msgId : "object" == typeof e.msgId && (t.msgId = new a.LongBits(e.msgId.low >>> 0, e.msgId.high >>> 0).toNumber())), null != e.roomId && (a.Long ? (t.roomId = a.Long.fromValue(e.roomId)).unsigned = !1 : "string" == typeof e.roomId ? t.roomId = parseInt(e.roomId, 10) : "number" == typeof e.roomId ? t.roomId = e.roomId : "object" == typeof e.roomId && (t.roomId = new a.LongBits(e.roomId.low >>> 0, e.roomId.high >>> 0).toNumber())), null != e.createTime && (a.Long ? (t.createTime = a.Long.fromValue(e.createTime)).unsigned = !1 : "string" == typeof e.createTime ? t.createTime = parseInt(e.createTime, 10) : "number" == typeof e.createTime ? t.createTime = e.createTime : "object" == typeof e.createTime && (t.createTime = new a.LongBits(e.createTime.low >>> 0, e.createTime.high >>> 0).toNumber())), null != e.monitor && (t.monitor = 0 | e.monitor), null != e.isShowMsg && (t.isShowMsg = Boolean(e.isShowMsg)), null != e.describe && (t.describe = String(e.describe)), null != e.displayText) + { + if ("object" != typeof e.displayText) throw TypeError(".webcast.im.Common.displayText: object expected"); + t.displayText = l.webcast.data.Text.fromObject(e.displayText) + } + if (null != e.foldType && (a.Long ? (t.foldType = a.Long.fromValue(e.foldType)).unsigned = !1 : "string" == typeof e.foldType ? t.foldType = parseInt(e.foldType, 10) : "number" == typeof e.foldType ? t.foldType = e.foldType : "object" == typeof e.foldType && (t.foldType = new a.LongBits(e.foldType.low >>> 0, e.foldType.high >>> 0).toNumber())), null != e.anchorFoldType && (a.Long ? (t.anchorFoldType = a.Long.fromValue(e.anchorFoldType)).unsigned = !1 : "string" == typeof e.anchorFoldType ? t.anchorFoldType = parseInt(e.anchorFoldType, 10) : "number" == typeof e.anchorFoldType ? t.anchorFoldType = e.anchorFoldType : "object" == typeof e.anchorFoldType && (t.anchorFoldType = new a.LongBits(e.anchorFoldType.low >>> 0, e.anchorFoldType.high >>> 0).toNumber())), null != e.priorityScore && (a.Long ? (t.priorityScore = a.Long.fromValue(e.priorityScore)).unsigned = !1 : "string" == typeof e.priorityScore ? t.priorityScore = parseInt(e.priorityScore, 10) : "number" == typeof e.priorityScore ? t.priorityScore = e.priorityScore : "object" == typeof e.priorityScore && (t.priorityScore = new a.LongBits(e.priorityScore.low >>> 0, e.priorityScore.high >>> 0).toNumber())), null != e.logId && (t.logId = String(e.logId)), null != e.msgProcessFilterK && (t.msgProcessFilterK = String(e.msgProcessFilterK)), null != e.msgProcessFilterV && (t.msgProcessFilterV = String(e.msgProcessFilterV)), null != e.user) + { + if ("object" != typeof e.user) throw TypeError(".webcast.im.Common.user: object expected"); + t.user = l.webcast.data.User.fromObject(e.user) + } + if (null != e.room) + { + if ("object" != typeof e.room) throw TypeError(".webcast.im.Common.room: object expected"); + t.room = l.webcast.data.Room.fromObject(e.room) + } + return null != e.anchorFoldTypeV2 && (a.Long ? (t.anchorFoldTypeV2 = a.Long.fromValue(e.anchorFoldTypeV2)).unsigned = !1 : "string" == typeof e.anchorFoldTypeV2 ? t.anchorFoldTypeV2 = parseInt(e.anchorFoldTypeV2, 10) : "number" == typeof e.anchorFoldTypeV2 ? t.anchorFoldTypeV2 = e.anchorFoldTypeV2 : "object" == typeof e.anchorFoldTypeV2 && (t.anchorFoldTypeV2 = new a.LongBits(e.anchorFoldTypeV2.low >>> 0, e.anchorFoldTypeV2.high >>> 0).toNumber())), null != e.processAtSeiTimeMs && (a.Long ? (t.processAtSeiTimeMs = a.Long.fromValue(e.processAtSeiTimeMs)).unsigned = !1 : "string" == typeof e.processAtSeiTimeMs ? t.processAtSeiTimeMs = parseInt(e.processAtSeiTimeMs, 10) : "number" == typeof e.processAtSeiTimeMs ? t.processAtSeiTimeMs = e.processAtSeiTimeMs : "object" == typeof e.processAtSeiTimeMs && (t.processAtSeiTimeMs = new a.LongBits(e.processAtSeiTimeMs.low >>> 0, e.processAtSeiTimeMs.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.method = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.msgId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.msgId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.roomId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.roomId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.createTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.createTime = t.longs === String ? "0" : 0; + if (n.monitor = 0, n.isShowMsg = !1, n.describe = "", n.displayText = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.foldType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.foldType = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.anchorFoldType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.anchorFoldType = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.priorityScore = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.priorityScore = t.longs === String ? "0" : 0; + if (n.logId = "", n.msgProcessFilterK = "", n.msgProcessFilterV = "", n.user = null, n.room = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.anchorFoldTypeV2 = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.anchorFoldTypeV2 = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.processAtSeiTimeMs = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.processAtSeiTimeMs = t.longs === String ? "0" : 0 + } + return null != e.method && e.hasOwnProperty("method") && (n.method = e.method), null != e.msgId && e.hasOwnProperty("msgId") && ("number" == typeof e.msgId ? n.msgId = t.longs === String ? String(e.msgId) : e.msgId : n.msgId = t.longs === String ? a.Long.prototype.toString.call(e.msgId) : t.longs === Number ? new a.LongBits(e.msgId.low >>> 0, e.msgId.high >>> 0).toNumber() : e.msgId), null != e.roomId && e.hasOwnProperty("roomId") && ("number" == typeof e.roomId ? n.roomId = t.longs === String ? String(e.roomId) : e.roomId : n.roomId = t.longs === String ? a.Long.prototype.toString.call(e.roomId) : t.longs === Number ? new a.LongBits(e.roomId.low >>> 0, e.roomId.high >>> 0).toNumber() : e.roomId), null != e.createTime && e.hasOwnProperty("createTime") && ("number" == typeof e.createTime ? n.createTime = t.longs === String ? String(e.createTime) : e.createTime : n.createTime = t.longs === String ? a.Long.prototype.toString.call(e.createTime) : t.longs === Number ? new a.LongBits(e.createTime.low >>> 0, e.createTime.high >>> 0).toNumber() : e.createTime), null != e.monitor && e.hasOwnProperty("monitor") && (n.monitor = e.monitor), null != e.isShowMsg && e.hasOwnProperty("isShowMsg") && (n.isShowMsg = e.isShowMsg), null != e.describe && e.hasOwnProperty("describe") && (n.describe = e.describe), null != e.displayText && e.hasOwnProperty("displayText") && (n.displayText = l.webcast.data.Text.toObject(e.displayText, t)), null != e.foldType && e.hasOwnProperty("foldType") && ("number" == typeof e.foldType ? n.foldType = t.longs === String ? String(e.foldType) : e.foldType : n.foldType = t.longs === String ? a.Long.prototype.toString.call(e.foldType) : t.longs === Number ? new a.LongBits(e.foldType.low >>> 0, e.foldType.high >>> 0).toNumber() : e.foldType), null != e.anchorFoldType && e.hasOwnProperty("anchorFoldType") && ("number" == typeof e.anchorFoldType ? n.anchorFoldType = t.longs === String ? String(e.anchorFoldType) : e.anchorFoldType : n.anchorFoldType = t.longs === String ? a.Long.prototype.toString.call(e.anchorFoldType) : t.longs === Number ? new a.LongBits(e.anchorFoldType.low >>> 0, e.anchorFoldType.high >>> 0).toNumber() : e.anchorFoldType), null != e.priorityScore && e.hasOwnProperty("priorityScore") && ("number" == typeof e.priorityScore ? n.priorityScore = t.longs === String ? String(e.priorityScore) : e.priorityScore : n.priorityScore = t.longs === String ? a.Long.prototype.toString.call(e.priorityScore) : t.longs === Number ? new a.LongBits(e.priorityScore.low >>> 0, e.priorityScore.high >>> 0).toNumber() : e.priorityScore), null != e.logId && e.hasOwnProperty("logId") && (n.logId = e.logId), null != e.msgProcessFilterK && e.hasOwnProperty("msgProcessFilterK") && (n.msgProcessFilterK = e.msgProcessFilterK), null != e.msgProcessFilterV && e.hasOwnProperty("msgProcessFilterV") && (n.msgProcessFilterV = e.msgProcessFilterV), null != e.user && e.hasOwnProperty("user") && (n.user = l.webcast.data.User.toObject(e.user, t)), null != e.room && e.hasOwnProperty("room") && (n.room = l.webcast.data.Room.toObject(e.room, t)), null != e.anchorFoldTypeV2 && e.hasOwnProperty("anchorFoldTypeV2") && ("number" == typeof e.anchorFoldTypeV2 ? n.anchorFoldTypeV2 = t.longs === String ? String(e.anchorFoldTypeV2) : e.anchorFoldTypeV2 : n.anchorFoldTypeV2 = t.longs === String ? a.Long.prototype.toString.call(e.anchorFoldTypeV2) : t.longs === Number ? new a.LongBits(e.anchorFoldTypeV2.low >>> 0, e.anchorFoldTypeV2.high >>> 0).toNumber() : e.anchorFoldTypeV2), null != e.processAtSeiTimeMs && e.hasOwnProperty("processAtSeiTimeMs") && ("number" == typeof e.processAtSeiTimeMs ? n.processAtSeiTimeMs = t.longs === String ? String(e.processAtSeiTimeMs) : e.processAtSeiTimeMs : n.processAtSeiTimeMs = t.longs === String ? a.Long.prototype.toString.call(e.processAtSeiTimeMs) : t.longs === Number ? new a.LongBits(e.processAtSeiTimeMs.low >>> 0, e.processAtSeiTimeMs.high >>> 0).toNumber() : e.processAtSeiTimeMs), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.PublicAreaCommon = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.userLabel = null, e.prototype.userConsumeInRoom = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.userSendGiftCntInRoom = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.userLabel && Object.hasOwnProperty.call(e, "userLabel") && l.webcast.data.Image.encode(e.userLabel, t.uint32(10).fork()).ldelim(), null != e.userConsumeInRoom && Object.hasOwnProperty.call(e, "userConsumeInRoom") && t.uint32(16).int64(e.userConsumeInRoom), null != e.userSendGiftCntInRoom && Object.hasOwnProperty.call(e, "userSendGiftCntInRoom") && t.uint32(24).int64(e.userSendGiftCntInRoom), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.PublicAreaCommon; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.userLabel = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.userConsumeInRoom = e.int64(); + break; + case 3: + r.userSendGiftCntInRoom = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.userLabel && e.hasOwnProperty("userLabel")) + { + var t = l.webcast.data.Image.verify(e.userLabel); + if (t) return "userLabel." + t + } + return null != e.userConsumeInRoom && e.hasOwnProperty("userConsumeInRoom") && !(a.isInteger(e.userConsumeInRoom) || e.userConsumeInRoom && a.isInteger(e.userConsumeInRoom.low) && a.isInteger(e.userConsumeInRoom.high)) ? "userConsumeInRoom: integer|Long expected" : null != e.userSendGiftCntInRoom && e.hasOwnProperty("userSendGiftCntInRoom") && !(a.isInteger(e.userSendGiftCntInRoom) || e.userSendGiftCntInRoom && a.isInteger(e.userSendGiftCntInRoom.low) && a.isInteger(e.userSendGiftCntInRoom.high)) ? "userSendGiftCntInRoom: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.PublicAreaCommon) return e; + var t = new l.webcast.im.PublicAreaCommon; + if (null != e.userLabel) + { + if ("object" != typeof e.userLabel) throw TypeError(".webcast.im.PublicAreaCommon.userLabel: object expected"); + t.userLabel = l.webcast.data.Image.fromObject(e.userLabel) + } + return null != e.userConsumeInRoom && (a.Long ? (t.userConsumeInRoom = a.Long.fromValue(e.userConsumeInRoom)).unsigned = !1 : "string" == typeof e.userConsumeInRoom ? t.userConsumeInRoom = parseInt(e.userConsumeInRoom, 10) : "number" == typeof e.userConsumeInRoom ? t.userConsumeInRoom = e.userConsumeInRoom : "object" == typeof e.userConsumeInRoom && (t.userConsumeInRoom = new a.LongBits(e.userConsumeInRoom.low >>> 0, e.userConsumeInRoom.high >>> 0).toNumber())), null != e.userSendGiftCntInRoom && (a.Long ? (t.userSendGiftCntInRoom = a.Long.fromValue(e.userSendGiftCntInRoom)).unsigned = !1 : "string" == typeof e.userSendGiftCntInRoom ? t.userSendGiftCntInRoom = parseInt(e.userSendGiftCntInRoom, 10) : "number" == typeof e.userSendGiftCntInRoom ? t.userSendGiftCntInRoom = e.userSendGiftCntInRoom : "object" == typeof e.userSendGiftCntInRoom && (t.userSendGiftCntInRoom = new a.LongBits(e.userSendGiftCntInRoom.low >>> 0, e.userSendGiftCntInRoom.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.userLabel = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.userConsumeInRoom = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.userConsumeInRoom = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.userSendGiftCntInRoom = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.userSendGiftCntInRoom = t.longs === String ? "0" : 0 + } + return null != e.userLabel && e.hasOwnProperty("userLabel") && (n.userLabel = l.webcast.data.Image.toObject(e.userLabel, t)), null != e.userConsumeInRoom && e.hasOwnProperty("userConsumeInRoom") && ("number" == typeof e.userConsumeInRoom ? n.userConsumeInRoom = t.longs === String ? String(e.userConsumeInRoom) : e.userConsumeInRoom : n.userConsumeInRoom = t.longs === String ? a.Long.prototype.toString.call(e.userConsumeInRoom) : t.longs === Number ? new a.LongBits(e.userConsumeInRoom.low >>> 0, e.userConsumeInRoom.high >>> 0).toNumber() : e.userConsumeInRoom), null != e.userSendGiftCntInRoom && e.hasOwnProperty("userSendGiftCntInRoom") && ("number" == typeof e.userSendGiftCntInRoom ? n.userSendGiftCntInRoom = t.longs === String ? String(e.userSendGiftCntInRoom) : e.userSendGiftCntInRoom : n.userSendGiftCntInRoom = t.longs === String ? a.Long.prototype.toString.call(e.userSendGiftCntInRoom) : t.longs === Number ? new a.LongBits(e.userSendGiftCntInRoom.low >>> 0, e.userSendGiftCntInRoom.high >>> 0).toNumber() : e.userSendGiftCntInRoom), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LandscapeAreaCommon = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.showHead = !1, e.prototype.showNickname = !1, e.prototype.showFontColor = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.showHead && Object.hasOwnProperty.call(e, "showHead") && t.uint32(8).bool(e.showHead), null != e.showNickname && Object.hasOwnProperty.call(e, "showNickname") && t.uint32(16).bool(e.showNickname), null != e.showFontColor && Object.hasOwnProperty.call(e, "showFontColor") && t.uint32(24).bool(e.showFontColor), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LandscapeAreaCommon; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.showHead = e.bool(); + break; + case 2: + r.showNickname = e.bool(); + break; + case 3: + r.showFontColor = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.showHead && e.hasOwnProperty("showHead") && "boolean" != typeof e.showHead ? "showHead: boolean expected" : null != e.showNickname && e.hasOwnProperty("showNickname") && "boolean" != typeof e.showNickname ? "showNickname: boolean expected" : null != e.showFontColor && e.hasOwnProperty("showFontColor") && "boolean" != typeof e.showFontColor ? "showFontColor: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LandscapeAreaCommon) return e; + var t = new l.webcast.im.LandscapeAreaCommon; + return null != e.showHead && (t.showHead = Boolean(e.showHead)), null != e.showNickname && (t.showNickname = Boolean(e.showNickname)), null != e.showFontColor && (t.showFontColor = Boolean(e.showFontColor)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.showHead = !1, n.showNickname = !1, n.showFontColor = !1), null != e.showHead && e.hasOwnProperty("showHead") && (n.showHead = e.showHead), null != e.showNickname && e.hasOwnProperty("showNickname") && (n.showNickname = e.showNickname), null != e.showFontColor && e.hasOwnProperty("showFontColor") && (n.showFontColor = e.showFontColor), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.FlexImageStruct = function () + { + function e(e) + { + if (this.urlList = [], this.flexSetting = [], this.textSetting = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.urlList = a.emptyArray, e.prototype.uri = "", e.prototype.flexSetting = a.emptyArray, e.prototype.textSetting = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.urlList && e.urlList.length) + for (var n = 0; n < e.urlList.length; ++n) t.uint32(10).string(e.urlList[n]); + if (null != e.uri && Object.hasOwnProperty.call(e, "uri") && t.uint32(18).string(e.uri), null != e.flexSetting && e.flexSetting.length) + { + t.uint32(26).fork(); + for (n = 0; n < e.flexSetting.length; ++n) t.int64(e.flexSetting[n]); + t.ldelim() + } + if (null != e.textSetting && e.textSetting.length) + { + t.uint32(34).fork(); + for (n = 0; n < e.textSetting.length; ++n) t.int64(e.textSetting[n]); + t.ldelim() + } + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.FlexImageStruct; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.urlList && r.urlList.length || (r.urlList = []), r.urlList.push(e.string()); + break; + case 2: + r.uri = e.string(); + break; + case 3: + if (r.flexSetting && r.flexSetting.length || (r.flexSetting = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.flexSetting.push(e.int64()); + else r.flexSetting.push(e.int64()); + break; + case 4: + if (r.textSetting && r.textSetting.length || (r.textSetting = []), 2 == (7 & i)) + for (a = e.uint32() + e.pos; e.pos < a;) r.textSetting.push(e.int64()); + else r.textSetting.push(e.int64()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.urlList && e.hasOwnProperty("urlList")) + { + if (!Array.isArray(e.urlList)) return "urlList: array expected"; + for (var t = 0; t < e.urlList.length; ++t) + if (!a.isString(e.urlList[t])) return "urlList: string[] expected" + } + if (null != e.uri && e.hasOwnProperty("uri") && !a.isString(e.uri)) return "uri: string expected"; + if (null != e.flexSetting && e.hasOwnProperty("flexSetting")) + { + if (!Array.isArray(e.flexSetting)) return "flexSetting: array expected"; + for (t = 0; t < e.flexSetting.length; ++t) + if (!(a.isInteger(e.flexSetting[t]) || e.flexSetting[t] && a.isInteger(e.flexSetting[t].low) && a.isInteger(e.flexSetting[t].high))) return "flexSetting: integer|Long[] expected" + } + if (null != e.textSetting && e.hasOwnProperty("textSetting")) + { + if (!Array.isArray(e.textSetting)) return "textSetting: array expected"; + for (t = 0; t < e.textSetting.length; ++t) + if (!(a.isInteger(e.textSetting[t]) || e.textSetting[t] && a.isInteger(e.textSetting[t].low) && a.isInteger(e.textSetting[t].high))) return "textSetting: integer|Long[] expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.FlexImageStruct) return e; + var t = new l.webcast.im.FlexImageStruct; + if (e.urlList) + { + if (!Array.isArray(e.urlList)) throw TypeError(".webcast.im.FlexImageStruct.urlList: array expected"); + t.urlList = []; + for (var n = 0; n < e.urlList.length; ++n) t.urlList[n] = String(e.urlList[n]) + } + if (null != e.uri && (t.uri = String(e.uri)), e.flexSetting) + { + if (!Array.isArray(e.flexSetting)) throw TypeError(".webcast.im.FlexImageStruct.flexSetting: array expected"); + t.flexSetting = []; + for (n = 0; n < e.flexSetting.length; ++n) a.Long ? (t.flexSetting[n] = a.Long.fromValue(e.flexSetting[n])).unsigned = !1 : "string" == typeof e.flexSetting[n] ? t.flexSetting[n] = parseInt(e.flexSetting[n], 10) : "number" == typeof e.flexSetting[n] ? t.flexSetting[n] = e.flexSetting[n] : "object" == typeof e.flexSetting[n] && (t.flexSetting[n] = new a.LongBits(e.flexSetting[n].low >>> 0, e.flexSetting[n].high >>> 0).toNumber()) + } + if (e.textSetting) + { + if (!Array.isArray(e.textSetting)) throw TypeError(".webcast.im.FlexImageStruct.textSetting: array expected"); + t.textSetting = []; + for (n = 0; n < e.textSetting.length; ++n) a.Long ? (t.textSetting[n] = a.Long.fromValue(e.textSetting[n])).unsigned = !1 : "string" == typeof e.textSetting[n] ? t.textSetting[n] = parseInt(e.textSetting[n], 10) : "number" == typeof e.textSetting[n] ? t.textSetting[n] = e.textSetting[n] : "object" == typeof e.textSetting[n] && (t.textSetting[n] = new a.LongBits(e.textSetting[n].low >>> 0, e.textSetting[n].high >>> 0).toNumber()) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.urlList = [], n.flexSetting = [], n.textSetting = []), t.defaults && (n.uri = ""), e.urlList && e.urlList.length) + { + n.urlList = []; + for (var r = 0; r < e.urlList.length; ++r) n.urlList[r] = e.urlList[r] + } + if (null != e.uri && e.hasOwnProperty("uri") && (n.uri = e.uri), e.flexSetting && e.flexSetting.length) + { + n.flexSetting = []; + for (r = 0; r < e.flexSetting.length; ++r) "number" == typeof e.flexSetting[r] ? n.flexSetting[r] = t.longs === String ? String(e.flexSetting[r]) : e.flexSetting[r] : n.flexSetting[r] = t.longs === String ? a.Long.prototype.toString.call(e.flexSetting[r]) : t.longs === Number ? new a.LongBits(e.flexSetting[r].low >>> 0, e.flexSetting[r].high >>> 0).toNumber() : e.flexSetting[r] + } + if (e.textSetting && e.textSetting.length) + { + n.textSetting = []; + for (r = 0; r < e.textSetting.length; ++r) "number" == typeof e.textSetting[r] ? n.textSetting[r] = t.longs === String ? String(e.textSetting[r]) : e.textSetting[r] : n.textSetting[r] = t.longs === String ? a.Long.prototype.toString.call(e.textSetting[r]) : t.longs === Number ? new a.LongBits(e.textSetting[r].low >>> 0, e.textSetting[r].high >>> 0).toNumber() : e.textSetting[r] + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.CommonBubbleConfig = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.content = "", e.prototype.duration = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.richText = null, e.prototype.schemeUrl = "", e.prototype.backgroundImage = null, e.prototype.arrowImage = null, e.prototype.messageType = 0, e.prototype.arrowPosition = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.content && Object.hasOwnProperty.call(e, "content") && t.uint32(10).string(e.content), null != e.duration && Object.hasOwnProperty.call(e, "duration") && t.uint32(16).int64(e.duration), null != e.richText && Object.hasOwnProperty.call(e, "richText") && l.webcast.data.Text.encode(e.richText, t.uint32(26).fork()).ldelim(), null != e.schemeUrl && Object.hasOwnProperty.call(e, "schemeUrl") && t.uint32(34).string(e.schemeUrl), null != e.backgroundImage && Object.hasOwnProperty.call(e, "backgroundImage") && l.webcast.im.FlexImageStruct.encode(e.backgroundImage, t.uint32(42).fork()).ldelim(), null != e.arrowImage && Object.hasOwnProperty.call(e, "arrowImage") && l.webcast.data.Image.encode(e.arrowImage, t.uint32(50).fork()).ldelim(), null != e.messageType && Object.hasOwnProperty.call(e, "messageType") && t.uint32(56).int32(e.messageType), null != e.arrowPosition && Object.hasOwnProperty.call(e, "arrowPosition") && t.uint32(64).int32(e.arrowPosition), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.CommonBubbleConfig; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.content = e.string(); + break; + case 2: + r.duration = e.int64(); + break; + case 3: + r.richText = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 4: + r.schemeUrl = e.string(); + break; + case 5: + r.backgroundImage = l.webcast.im.FlexImageStruct.decode(e, e.uint32()); + break; + case 6: + r.arrowImage = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 7: + r.messageType = e.int32(); + break; + case 8: + r.arrowPosition = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.content && e.hasOwnProperty("content") && !a.isString(e.content)) return "content: string expected"; + if (null != e.duration && e.hasOwnProperty("duration") && !(a.isInteger(e.duration) || e.duration && a.isInteger(e.duration.low) && a.isInteger(e.duration.high))) return "duration: integer|Long expected"; + var t; + if (null != e.richText && e.hasOwnProperty("richText") && (t = l.webcast.data.Text.verify(e.richText))) return "richText." + t; + if (null != e.schemeUrl && e.hasOwnProperty("schemeUrl") && !a.isString(e.schemeUrl)) return "schemeUrl: string expected"; + if (null != e.backgroundImage && e.hasOwnProperty("backgroundImage") && (t = l.webcast.im.FlexImageStruct.verify(e.backgroundImage))) return "backgroundImage." + t; + if (null != e.arrowImage && e.hasOwnProperty("arrowImage") && (t = l.webcast.data.Image.verify(e.arrowImage))) return "arrowImage." + t; + if (null != e.messageType && e.hasOwnProperty("messageType")) switch (e.messageType) + { + default: + return "messageType: enum value expected"; + case 0: + case 1: + } + if (null != e.arrowPosition && e.hasOwnProperty("arrowPosition")) switch (e.arrowPosition) + { + default: + return "arrowPosition: enum value expected"; + case 0: + case 1: + case 2: + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.CommonBubbleConfig) return e; + var t = new l.webcast.im.CommonBubbleConfig; + if (null != e.content && (t.content = String(e.content)), null != e.duration && (a.Long ? (t.duration = a.Long.fromValue(e.duration)).unsigned = !1 : "string" == typeof e.duration ? t.duration = parseInt(e.duration, 10) : "number" == typeof e.duration ? t.duration = e.duration : "object" == typeof e.duration && (t.duration = new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber())), null != e.richText) + { + if ("object" != typeof e.richText) throw TypeError(".webcast.im.CommonBubbleConfig.richText: object expected"); + t.richText = l.webcast.data.Text.fromObject(e.richText) + } + if (null != e.schemeUrl && (t.schemeUrl = String(e.schemeUrl)), null != e.backgroundImage) + { + if ("object" != typeof e.backgroundImage) throw TypeError(".webcast.im.CommonBubbleConfig.backgroundImage: object expected"); + t.backgroundImage = l.webcast.im.FlexImageStruct.fromObject(e.backgroundImage) + } + if (null != e.arrowImage) + { + if ("object" != typeof e.arrowImage) throw TypeError(".webcast.im.CommonBubbleConfig.arrowImage: object expected"); + t.arrowImage = l.webcast.data.Image.fromObject(e.arrowImage) + } + switch (e.messageType) + { + case "MessageTypeUnknown": + case 0: + t.messageType = 0; + break; + case "MessageTypeExhibition": + case 1: + t.messageType = 1 + } + switch (e.arrowPosition) + { + case "PositionUnknown": + case 0: + t.arrowPosition = 0; + break; + case "PositionAnchorAvatar": + case 1: + t.arrowPosition = 1; + break; + case "PositionRoomFanTicketCount": + case 2: + t.arrowPosition = 2 + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.content = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.duration = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.duration = t.longs === String ? "0" : 0; + n.richText = null, n.schemeUrl = "", n.backgroundImage = null, n.arrowImage = null, n.messageType = t.enums === String ? "MessageTypeUnknown" : 0, n.arrowPosition = t.enums === String ? "PositionUnknown" : 0 + } + return null != e.content && e.hasOwnProperty("content") && (n.content = e.content), null != e.duration && e.hasOwnProperty("duration") && ("number" == typeof e.duration ? n.duration = t.longs === String ? String(e.duration) : e.duration : n.duration = t.longs === String ? a.Long.prototype.toString.call(e.duration) : t.longs === Number ? new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber() : e.duration), null != e.richText && e.hasOwnProperty("richText") && (n.richText = l.webcast.data.Text.toObject(e.richText, t)), null != e.schemeUrl && e.hasOwnProperty("schemeUrl") && (n.schemeUrl = e.schemeUrl), null != e.backgroundImage && e.hasOwnProperty("backgroundImage") && (n.backgroundImage = l.webcast.im.FlexImageStruct.toObject(e.backgroundImage, t)), null != e.arrowImage && e.hasOwnProperty("arrowImage") && (n.arrowImage = l.webcast.data.Image.toObject(e.arrowImage, t)), null != e.messageType && e.hasOwnProperty("messageType") && (n.messageType = t.enums === String ? l.webcast.im.CommonBubbleConfig.MessageType[e.messageType] : e.messageType), null != e.arrowPosition && e.hasOwnProperty("arrowPosition") && (n.arrowPosition = t.enums === String ? l.webcast.im.BubbleArrowPosition[e.arrowPosition] : e.arrowPosition), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.MessageType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "MessageTypeUnknown"] = 0, t[e[1] = "MessageTypeExhibition"] = 1, t + }(), e + }(), e.BubbleArrowPosition = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "PositionUnknown"] = 0, t[e[1] = "PositionAnchorAvatar"] = 1, t[e[2] = "PositionRoomFanTicketCount"] = 2, t + }(), e.PayloadInIm = function () + { + function e(e) + { + if (this.Payloads = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.Payloads = a.emptyObject, e.prototype.CompressType = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.Payloads && Object.hasOwnProperty.call(e, "Payloads")) + for (var n = Object.keys(e.Payloads), r = 0; r < n.length; ++r) t.uint32(10).fork().uint32(10).string(n[r]).uint32(18).bytes(e.Payloads[n[r]]).ldelim(); + return null != e.CompressType && Object.hasOwnProperty.call(e, "CompressType") && t.uint32(16).int32(e.CompressType), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.im.PayloadInIm; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.Payloads === a.emptyObject && (s.Payloads = {}); + var u = e.uint32() + e.pos; + for (n = "", r = []; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.bytes(); + break; + default: + e.skipType(7 & p) + } + } + s.Payloads[n] = r; + break; + case 2: + s.CompressType = e.int32(); + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.Payloads && e.hasOwnProperty("Payloads")) + { + if (!a.isObject(e.Payloads)) return "Payloads: object expected"; + for (var t = Object.keys(e.Payloads), n = 0; n < t.length; ++n) + if (!(e.Payloads[t[n]] && "number" == typeof e.Payloads[t[n]].length || a.isString(e.Payloads[t[n]]))) return "Payloads: buffer{k:string} expected" + } + if (null != e.CompressType && e.hasOwnProperty("CompressType")) switch (e.CompressType) + { + default: + return "CompressType: enum value expected"; + case 0: + case 1: + case 2: + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.PayloadInIm) return e; + var t = new l.webcast.im.PayloadInIm; + if (e.Payloads) + { + if ("object" != typeof e.Payloads) throw TypeError(".webcast.im.PayloadInIm.Payloads: object expected"); + t.Payloads = {}; + for (var n = Object.keys(e.Payloads), r = 0; r < n.length; ++r) "string" == typeof e.Payloads[n[r]] ? a.base64.decode(e.Payloads[n[r]], t.Payloads[n[r]] = a.newBuffer(a.base64.length(e.Payloads[n[r]])), 0) : e.Payloads[n[r]].length && (t.Payloads[n[r]] = e.Payloads[n[r]]) + } + switch (e.CompressType) + { + case "NONE": + case 0: + t.CompressType = 0; + break; + case "ZLIB": + case 1: + t.CompressType = 1; + break; + case "ZSTD": + case 2: + t.CompressType = 2 + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.Payloads = {}), t.defaults && (r.CompressType = t.enums === String ? "NONE" : 0), e.Payloads && (n = Object.keys(e.Payloads)).length) + { + r.Payloads = {}; + for (var o = 0; o < n.length; ++o) r.Payloads[n[o]] = t.bytes === String ? a.base64.encode(e.Payloads[n[o]], 0, e.Payloads[n[o]].length) : t.bytes === Array ? Array.prototype.slice.call(e.Payloads[n[o]]) : e.Payloads[n[o]] + } + return null != e.CompressType && e.hasOwnProperty("CompressType") && (r.CompressType = t.enums === String ? l.webcast.im.PayloadInIm.CompressTypeEnum[e.CompressType] : e.CompressType), r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.CompressTypeEnum = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "NONE"] = 0, t[e[1] = "ZLIB"] = 1, t[e[2] = "ZSTD"] = 2, t + }(), e + }(), e.Response = function () + { + function e(e) + { + if (this.messages = [], this.routeParams = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.messages = a.emptyArray, e.prototype.cursor = "", e.prototype.fetchInterval = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.now = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.internalExt = "", e.prototype.fetchType = 0, e.prototype.routeParams = a.emptyObject, e.prototype.heartbeatDuration = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.needAck = !1, e.prototype.pushServer = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.messages && e.messages.length) + for (var n = 0; n < e.messages.length; ++n) l.webcast.im.Message.encode(e.messages[n], t.uint32(10).fork()).ldelim(); + if (null != e.cursor && Object.hasOwnProperty.call(e, "cursor") && t.uint32(18).string(e.cursor), null != e.fetchInterval && Object.hasOwnProperty.call(e, "fetchInterval") && t.uint32(24).int64(e.fetchInterval), null != e.now && Object.hasOwnProperty.call(e, "now") && t.uint32(32).int64(e.now), null != e.internalExt && Object.hasOwnProperty.call(e, "internalExt") && t.uint32(42).string(e.internalExt), null != e.fetchType && Object.hasOwnProperty.call(e, "fetchType") && t.uint32(48).int32(e.fetchType), null != e.routeParams && Object.hasOwnProperty.call(e, "routeParams")) + { + var r = Object.keys(e.routeParams); + for (n = 0; n < r.length; ++n) t.uint32(58).fork().uint32(10).string(r[n]).uint32(18).string(e.routeParams[r[n]]).ldelim() + } + return null != e.heartbeatDuration && Object.hasOwnProperty.call(e, "heartbeatDuration") && t.uint32(64).int64(e.heartbeatDuration), null != e.needAck && Object.hasOwnProperty.call(e, "needAck") && t.uint32(72).bool(e.needAck), null != e.pushServer && Object.hasOwnProperty.call(e, "pushServer") && t.uint32(82).string(e.pushServer), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.im.Response; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.messages && s.messages.length || (s.messages = []), s.messages.push(l.webcast.im.Message.decode(e, e.uint32())); + break; + case 2: + s.cursor = e.string(); + break; + case 3: + s.fetchInterval = e.int64(); + break; + case 4: + s.now = e.int64(); + break; + case 5: + s.internalExt = e.string(); + break; + case 6: + s.fetchType = e.int32(); + break; + case 7: + s.routeParams === a.emptyObject && (s.routeParams = {}); + var u = e.uint32() + e.pos; + for (n = "", r = ""; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.routeParams[n] = r; + break; + case 8: + s.heartbeatDuration = e.int64(); + break; + case 9: + s.needAck = e.bool(); + break; + case 10: + s.pushServer = e.string(); + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.messages && e.hasOwnProperty("messages")) + { + if (!Array.isArray(e.messages)) return "messages: array expected"; + for (var t = 0; t < e.messages.length; ++t) + { + var n = l.webcast.im.Message.verify(e.messages[t]); + if (n) return "messages." + n + } + } + if (null != e.cursor && e.hasOwnProperty("cursor") && !a.isString(e.cursor)) return "cursor: string expected"; + if (null != e.fetchInterval && e.hasOwnProperty("fetchInterval") && !(a.isInteger(e.fetchInterval) || e.fetchInterval && a.isInteger(e.fetchInterval.low) && a.isInteger(e.fetchInterval.high))) return "fetchInterval: integer|Long expected"; + if (null != e.now && e.hasOwnProperty("now") && !(a.isInteger(e.now) || e.now && a.isInteger(e.now.low) && a.isInteger(e.now.high))) return "now: integer|Long expected"; + if (null != e.internalExt && e.hasOwnProperty("internalExt") && !a.isString(e.internalExt)) return "internalExt: string expected"; + if (null != e.fetchType && e.hasOwnProperty("fetchType") && !a.isInteger(e.fetchType)) return "fetchType: integer expected"; + if (null != e.routeParams && e.hasOwnProperty("routeParams")) + { + if (!a.isObject(e.routeParams)) return "routeParams: object expected"; + var r = Object.keys(e.routeParams); + for (t = 0; t < r.length; ++t) + if (!a.isString(e.routeParams[r[t]])) return "routeParams: string{k:string} expected" + } + return null != e.heartbeatDuration && e.hasOwnProperty("heartbeatDuration") && !(a.isInteger(e.heartbeatDuration) || e.heartbeatDuration && a.isInteger(e.heartbeatDuration.low) && a.isInteger(e.heartbeatDuration.high)) ? "heartbeatDuration: integer|Long expected" : null != e.needAck && e.hasOwnProperty("needAck") && "boolean" != typeof e.needAck ? "needAck: boolean expected" : null != e.pushServer && e.hasOwnProperty("pushServer") && !a.isString(e.pushServer) ? "pushServer: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.Response) return e; + var t = new l.webcast.im.Response; + if (e.messages) + { + if (!Array.isArray(e.messages)) throw TypeError(".webcast.im.Response.messages: array expected"); + t.messages = []; + for (var n = 0; n < e.messages.length; ++n) + { + if ("object" != typeof e.messages[n]) throw TypeError(".webcast.im.Response.messages: object expected"); + t.messages[n] = l.webcast.im.Message.fromObject(e.messages[n]) + } + } + if (null != e.cursor && (t.cursor = String(e.cursor)), null != e.fetchInterval && (a.Long ? (t.fetchInterval = a.Long.fromValue(e.fetchInterval)).unsigned = !1 : "string" == typeof e.fetchInterval ? t.fetchInterval = parseInt(e.fetchInterval, 10) : "number" == typeof e.fetchInterval ? t.fetchInterval = e.fetchInterval : "object" == typeof e.fetchInterval && (t.fetchInterval = new a.LongBits(e.fetchInterval.low >>> 0, e.fetchInterval.high >>> 0).toNumber())), null != e.now && (a.Long ? (t.now = a.Long.fromValue(e.now)).unsigned = !1 : "string" == typeof e.now ? t.now = parseInt(e.now, 10) : "number" == typeof e.now ? t.now = e.now : "object" == typeof e.now && (t.now = new a.LongBits(e.now.low >>> 0, e.now.high >>> 0).toNumber())), null != e.internalExt && (t.internalExt = String(e.internalExt)), null != e.fetchType && (t.fetchType = 0 | e.fetchType), e.routeParams) + { + if ("object" != typeof e.routeParams) throw TypeError(".webcast.im.Response.routeParams: object expected"); + t.routeParams = {}; + var r = Object.keys(e.routeParams); + for (n = 0; n < r.length; ++n) t.routeParams[r[n]] = String(e.routeParams[r[n]]) + } + return null != e.heartbeatDuration && (a.Long ? (t.heartbeatDuration = a.Long.fromValue(e.heartbeatDuration)).unsigned = !1 : "string" == typeof e.heartbeatDuration ? t.heartbeatDuration = parseInt(e.heartbeatDuration, 10) : "number" == typeof e.heartbeatDuration ? t.heartbeatDuration = e.heartbeatDuration : "object" == typeof e.heartbeatDuration && (t.heartbeatDuration = new a.LongBits(e.heartbeatDuration.low >>> 0, e.heartbeatDuration.high >>> 0).toNumber())), null != e.needAck && (t.needAck = Boolean(e.needAck)), null != e.pushServer && (t.pushServer = String(e.pushServer)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.arrays || t.defaults) && (r.messages = []), (t.objects || t.defaults) && (r.routeParams = {}), t.defaults) + { + if (r.cursor = "", a.Long) + { + var o = new a.Long(0, 0, !1); + r.fetchInterval = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.fetchInterval = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.now = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.now = t.longs === String ? "0" : 0; + if (r.internalExt = "", r.fetchType = 0, a.Long) + { + o = new a.Long(0, 0, !1); + r.heartbeatDuration = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.heartbeatDuration = t.longs === String ? "0" : 0; + r.needAck = !1, r.pushServer = "" + } + if (e.messages && e.messages.length) + { + r.messages = []; + for (var i = 0; i < e.messages.length; ++i) r.messages[i] = l.webcast.im.Message.toObject(e.messages[i], t) + } + if (null != e.cursor && e.hasOwnProperty("cursor") && (r.cursor = e.cursor), null != e.fetchInterval && e.hasOwnProperty("fetchInterval") && ("number" == typeof e.fetchInterval ? r.fetchInterval = t.longs === String ? String(e.fetchInterval) : e.fetchInterval : r.fetchInterval = t.longs === String ? a.Long.prototype.toString.call(e.fetchInterval) : t.longs === Number ? new a.LongBits(e.fetchInterval.low >>> 0, e.fetchInterval.high >>> 0).toNumber() : e.fetchInterval), null != e.now && e.hasOwnProperty("now") && ("number" == typeof e.now ? r.now = t.longs === String ? String(e.now) : e.now : r.now = t.longs === String ? a.Long.prototype.toString.call(e.now) : t.longs === Number ? new a.LongBits(e.now.low >>> 0, e.now.high >>> 0).toNumber() : e.now), null != e.internalExt && e.hasOwnProperty("internalExt") && (r.internalExt = e.internalExt), null != e.fetchType && e.hasOwnProperty("fetchType") && (r.fetchType = e.fetchType), e.routeParams && (n = Object.keys(e.routeParams)).length) + { + r.routeParams = {}; + for (i = 0; i < n.length; ++i) r.routeParams[n[i]] = e.routeParams[n[i]] + } + return null != e.heartbeatDuration && e.hasOwnProperty("heartbeatDuration") && ("number" == typeof e.heartbeatDuration ? r.heartbeatDuration = t.longs === String ? String(e.heartbeatDuration) : e.heartbeatDuration : r.heartbeatDuration = t.longs === String ? a.Long.prototype.toString.call(e.heartbeatDuration) : t.longs === Number ? new a.LongBits(e.heartbeatDuration.low >>> 0, e.heartbeatDuration.high >>> 0).toNumber() : e.heartbeatDuration), null != e.needAck && e.hasOwnProperty("needAck") && (r.needAck = e.needAck), null != e.pushServer && e.hasOwnProperty("pushServer") && (r.pushServer = e.pushServer), r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.Message = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.method = "", e.prototype.payload = a.newBuffer([]), e.prototype.msgId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.msgType = 0, e.prototype.offset = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.method && Object.hasOwnProperty.call(e, "method") && t.uint32(10).string(e.method), null != e.payload && Object.hasOwnProperty.call(e, "payload") && t.uint32(18).bytes(e.payload), null != e.msgId && Object.hasOwnProperty.call(e, "msgId") && t.uint32(24).int64(e.msgId), null != e.msgType && Object.hasOwnProperty.call(e, "msgType") && t.uint32(32).int32(e.msgType), null != e.offset && Object.hasOwnProperty.call(e, "offset") && t.uint32(40).int64(e.offset), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.Message; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.method = e.string(); + break; + case 2: + r.payload = e.bytes(); + break; + case 3: + r.msgId = e.int64(); + break; + case 4: + r.msgType = e.int32(); + break; + case 5: + r.offset = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.method && e.hasOwnProperty("method") && !a.isString(e.method) ? "method: string expected" : null != e.payload && e.hasOwnProperty("payload") && !(e.payload && "number" == typeof e.payload.length || a.isString(e.payload)) ? "payload: buffer expected" : null != e.msgId && e.hasOwnProperty("msgId") && !(a.isInteger(e.msgId) || e.msgId && a.isInteger(e.msgId.low) && a.isInteger(e.msgId.high)) ? "msgId: integer|Long expected" : null != e.msgType && e.hasOwnProperty("msgType") && !a.isInteger(e.msgType) ? "msgType: integer expected" : null != e.offset && e.hasOwnProperty("offset") && !(a.isInteger(e.offset) || e.offset && a.isInteger(e.offset.low) && a.isInteger(e.offset.high)) ? "offset: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.Message) return e; + var t = new l.webcast.im.Message; + return null != e.method && (t.method = String(e.method)), null != e.payload && ("string" == typeof e.payload ? a.base64.decode(e.payload, t.payload = a.newBuffer(a.base64.length(e.payload)), 0) : e.payload.length && (t.payload = e.payload)), null != e.msgId && (a.Long ? (t.msgId = a.Long.fromValue(e.msgId)).unsigned = !1 : "string" == typeof e.msgId ? t.msgId = parseInt(e.msgId, 10) : "number" == typeof e.msgId ? t.msgId = e.msgId : "object" == typeof e.msgId && (t.msgId = new a.LongBits(e.msgId.low >>> 0, e.msgId.high >>> 0).toNumber())), null != e.msgType && (t.msgType = 0 | e.msgType), null != e.offset && (a.Long ? (t.offset = a.Long.fromValue(e.offset)).unsigned = !1 : "string" == typeof e.offset ? t.offset = parseInt(e.offset, 10) : "number" == typeof e.offset ? t.offset = e.offset : "object" == typeof e.offset && (t.offset = new a.LongBits(e.offset.low >>> 0, e.offset.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.method = "", t.bytes === String ? n.payload = "" : (n.payload = [], t.bytes !== Array && (n.payload = a.newBuffer(n.payload))), a.Long) + { + var r = new a.Long(0, 0, !1); + n.msgId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.msgId = t.longs === String ? "0" : 0; + if (n.msgType = 0, a.Long) + { + r = new a.Long(0, 0, !1); + n.offset = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.offset = t.longs === String ? "0" : 0 + } + return null != e.method && e.hasOwnProperty("method") && (n.method = e.method), null != e.payload && e.hasOwnProperty("payload") && (n.payload = t.bytes === String ? a.base64.encode(e.payload, 0, e.payload.length) : t.bytes === Array ? Array.prototype.slice.call(e.payload) : e.payload), null != e.msgId && e.hasOwnProperty("msgId") && ("number" == typeof e.msgId ? n.msgId = t.longs === String ? String(e.msgId) : e.msgId : n.msgId = t.longs === String ? a.Long.prototype.toString.call(e.msgId) : t.longs === Number ? new a.LongBits(e.msgId.low >>> 0, e.msgId.high >>> 0).toNumber() : e.msgId), null != e.msgType && e.hasOwnProperty("msgType") && (n.msgType = e.msgType), null != e.offset && e.hasOwnProperty("offset") && ("number" == typeof e.offset ? n.offset = t.longs === String ? String(e.offset) : e.offset : n.offset = t.longs === String ? a.Long.prototype.toString.call(e.offset) : t.longs === Number ? new a.LongBits(e.offset.low >>> 0, e.offset.high >>> 0).toNumber() : e.offset), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.UplinkPacket = function () + { + function e(e) + { + if (this.queryParams = {}, this.headers = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.uniqueID = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.serviceID = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.queryParams = a.emptyObject, e.prototype.headers = a.emptyObject, e.prototype.uri = "", e.prototype.payload = a.newBuffer([]), e.prototype.statusCode = 0, e.prototype.statusMessage = "", e.prototype.uplinkStrategy = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.uniqueID && Object.hasOwnProperty.call(e, "uniqueID") && t.uint32(8).int64(e.uniqueID), null != e.serviceID && Object.hasOwnProperty.call(e, "serviceID") && t.uint32(16).int64(e.serviceID), null != e.queryParams && Object.hasOwnProperty.call(e, "queryParams")) + for (var n = Object.keys(e.queryParams), r = 0; r < n.length; ++r) t.uint32(26).fork().uint32(10).string(n[r]).uint32(18).string(e.queryParams[n[r]]).ldelim(); + if (null != e.headers && Object.hasOwnProperty.call(e, "headers")) + for (n = Object.keys(e.headers), r = 0; r < n.length; ++r) t.uint32(34).fork().uint32(10).string(n[r]).uint32(18).string(e.headers[n[r]]).ldelim(); + return null != e.uri && Object.hasOwnProperty.call(e, "uri") && t.uint32(42).string(e.uri), null != e.payload && Object.hasOwnProperty.call(e, "payload") && t.uint32(50).bytes(e.payload), null != e.statusCode && Object.hasOwnProperty.call(e, "statusCode") && t.uint32(56).int32(e.statusCode), null != e.statusMessage && Object.hasOwnProperty.call(e, "statusMessage") && t.uint32(66).string(e.statusMessage), null != e.uplinkStrategy && Object.hasOwnProperty.call(e, "uplinkStrategy") && t.uint32(72).int32(e.uplinkStrategy), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.im.UplinkPacket; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.uniqueID = e.int64(); + break; + case 2: + s.serviceID = e.int64(); + break; + case 3: + s.queryParams === a.emptyObject && (s.queryParams = {}); + var u = e.uint32() + e.pos; + for (n = "", r = ""; e.pos < u;) + { + switch ((p = e.uint32()) >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.queryParams[n] = r; + break; + case 4: + s.headers === a.emptyObject && (s.headers = {}); + u = e.uint32() + e.pos; + for (n = "", r = ""; e.pos < u;) + { + var p; + switch ((p = e.uint32()) >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.headers[n] = r; + break; + case 5: + s.uri = e.string(); + break; + case 6: + s.payload = e.bytes(); + break; + case 7: + s.statusCode = e.int32(); + break; + case 8: + s.statusMessage = e.string(); + break; + case 9: + s.uplinkStrategy = e.int32(); + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.uniqueID && e.hasOwnProperty("uniqueID") && !(a.isInteger(e.uniqueID) || e.uniqueID && a.isInteger(e.uniqueID.low) && a.isInteger(e.uniqueID.high))) return "uniqueID: integer|Long expected"; + if (null != e.serviceID && e.hasOwnProperty("serviceID") && !(a.isInteger(e.serviceID) || e.serviceID && a.isInteger(e.serviceID.low) && a.isInteger(e.serviceID.high))) return "serviceID: integer|Long expected"; + if (null != e.queryParams && e.hasOwnProperty("queryParams")) + { + if (!a.isObject(e.queryParams)) return "queryParams: object expected"; + for (var t = Object.keys(e.queryParams), n = 0; n < t.length; ++n) + if (!a.isString(e.queryParams[t[n]])) return "queryParams: string{k:string} expected" + } + if (null != e.headers && e.hasOwnProperty("headers")) + { + if (!a.isObject(e.headers)) return "headers: object expected"; + for (t = Object.keys(e.headers), n = 0; n < t.length; ++n) + if (!a.isString(e.headers[t[n]])) return "headers: string{k:string} expected" + } + return null != e.uri && e.hasOwnProperty("uri") && !a.isString(e.uri) ? "uri: string expected" : null != e.payload && e.hasOwnProperty("payload") && !(e.payload && "number" == typeof e.payload.length || a.isString(e.payload)) ? "payload: buffer expected" : null != e.statusCode && e.hasOwnProperty("statusCode") && !a.isInteger(e.statusCode) ? "statusCode: integer expected" : null != e.statusMessage && e.hasOwnProperty("statusMessage") && !a.isString(e.statusMessage) ? "statusMessage: string expected" : null != e.uplinkStrategy && e.hasOwnProperty("uplinkStrategy") && !a.isInteger(e.uplinkStrategy) ? "uplinkStrategy: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.UplinkPacket) return e; + var t = new l.webcast.im.UplinkPacket; + if (null != e.uniqueID && (a.Long ? (t.uniqueID = a.Long.fromValue(e.uniqueID)).unsigned = !1 : "string" == typeof e.uniqueID ? t.uniqueID = parseInt(e.uniqueID, 10) : "number" == typeof e.uniqueID ? t.uniqueID = e.uniqueID : "object" == typeof e.uniqueID && (t.uniqueID = new a.LongBits(e.uniqueID.low >>> 0, e.uniqueID.high >>> 0).toNumber())), null != e.serviceID && (a.Long ? (t.serviceID = a.Long.fromValue(e.serviceID)).unsigned = !1 : "string" == typeof e.serviceID ? t.serviceID = parseInt(e.serviceID, 10) : "number" == typeof e.serviceID ? t.serviceID = e.serviceID : "object" == typeof e.serviceID && (t.serviceID = new a.LongBits(e.serviceID.low >>> 0, e.serviceID.high >>> 0).toNumber())), e.queryParams) + { + if ("object" != typeof e.queryParams) throw TypeError(".webcast.im.UplinkPacket.queryParams: object expected"); + t.queryParams = {}; + for (var n = Object.keys(e.queryParams), r = 0; r < n.length; ++r) t.queryParams[n[r]] = String(e.queryParams[n[r]]) + } + if (e.headers) + { + if ("object" != typeof e.headers) throw TypeError(".webcast.im.UplinkPacket.headers: object expected"); + t.headers = {}; + for (n = Object.keys(e.headers), r = 0; r < n.length; ++r) t.headers[n[r]] = String(e.headers[n[r]]) + } + return null != e.uri && (t.uri = String(e.uri)), null != e.payload && ("string" == typeof e.payload ? a.base64.decode(e.payload, t.payload = a.newBuffer(a.base64.length(e.payload)), 0) : e.payload.length && (t.payload = e.payload)), null != e.statusCode && (t.statusCode = 0 | e.statusCode), null != e.statusMessage && (t.statusMessage = String(e.statusMessage)), null != e.uplinkStrategy && (t.uplinkStrategy = 0 | e.uplinkStrategy), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.queryParams = {}, r.headers = {}), t.defaults) + { + if (a.Long) + { + var o = new a.Long(0, 0, !1); + r.uniqueID = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.uniqueID = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.serviceID = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.serviceID = t.longs === String ? "0" : 0; + r.uri = "", t.bytes === String ? r.payload = "" : (r.payload = [], t.bytes !== Array && (r.payload = a.newBuffer(r.payload))), r.statusCode = 0, r.statusMessage = "", r.uplinkStrategy = 0 + } + if (null != e.uniqueID && e.hasOwnProperty("uniqueID") && ("number" == typeof e.uniqueID ? r.uniqueID = t.longs === String ? String(e.uniqueID) : e.uniqueID : r.uniqueID = t.longs === String ? a.Long.prototype.toString.call(e.uniqueID) : t.longs === Number ? new a.LongBits(e.uniqueID.low >>> 0, e.uniqueID.high >>> 0).toNumber() : e.uniqueID), null != e.serviceID && e.hasOwnProperty("serviceID") && ("number" == typeof e.serviceID ? r.serviceID = t.longs === String ? String(e.serviceID) : e.serviceID : r.serviceID = t.longs === String ? a.Long.prototype.toString.call(e.serviceID) : t.longs === Number ? new a.LongBits(e.serviceID.low >>> 0, e.serviceID.high >>> 0).toNumber() : e.serviceID), e.queryParams && (n = Object.keys(e.queryParams)).length) + { + r.queryParams = {}; + for (var i = 0; i < n.length; ++i) r.queryParams[n[i]] = e.queryParams[n[i]] + } + if (e.headers && (n = Object.keys(e.headers)).length) + { + r.headers = {}; + for (i = 0; i < n.length; ++i) r.headers[n[i]] = e.headers[n[i]] + } + return null != e.uri && e.hasOwnProperty("uri") && (r.uri = e.uri), null != e.payload && e.hasOwnProperty("payload") && (r.payload = t.bytes === String ? a.base64.encode(e.payload, 0, e.payload.length) : t.bytes === Array ? Array.prototype.slice.call(e.payload) : e.payload), null != e.statusCode && e.hasOwnProperty("statusCode") && (r.statusCode = e.statusCode), null != e.statusMessage && e.hasOwnProperty("statusMessage") && (r.statusMessage = e.statusMessage), null != e.uplinkStrategy && e.hasOwnProperty("uplinkStrategy") && (r.uplinkStrategy = e.uplinkStrategy), r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ChatMessage = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.common = null, e.prototype.user = null, e.prototype.content = "", e.prototype.visibleToSender = !1, e.prototype.backgroundImage = null, e.prototype.fullScreenTextColor = "", e.prototype.backgroundImageV2 = null, e.prototype.publicAreaCommon = null, e.prototype.giftImage = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.common && Object.hasOwnProperty.call(e, "common") && l.webcast.im.Common.encode(e.common, t.uint32(10).fork()).ldelim(), null != e.user && Object.hasOwnProperty.call(e, "user") && l.webcast.data.User.encode(e.user, t.uint32(18).fork()).ldelim(), null != e.content && Object.hasOwnProperty.call(e, "content") && t.uint32(26).string(e.content), null != e.visibleToSender && Object.hasOwnProperty.call(e, "visibleToSender") && t.uint32(32).bool(e.visibleToSender), null != e.backgroundImage && Object.hasOwnProperty.call(e, "backgroundImage") && l.webcast.data.Image.encode(e.backgroundImage, t.uint32(42).fork()).ldelim(), null != e.fullScreenTextColor && Object.hasOwnProperty.call(e, "fullScreenTextColor") && t.uint32(50).string(e.fullScreenTextColor), null != e.backgroundImageV2 && Object.hasOwnProperty.call(e, "backgroundImageV2") && l.webcast.data.Image.encode(e.backgroundImageV2, t.uint32(58).fork()).ldelim(), null != e.publicAreaCommon && Object.hasOwnProperty.call(e, "publicAreaCommon") && l.webcast.im.PublicAreaCommon.encode(e.publicAreaCommon, t.uint32(74).fork()).ldelim(), null != e.giftImage && Object.hasOwnProperty.call(e, "giftImage") && l.webcast.data.Image.encode(e.giftImage, t.uint32(82).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.ChatMessage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.common = l.webcast.im.Common.decode(e, e.uint32()); + break; + case 2: + r.user = l.webcast.data.User.decode(e, e.uint32()); + break; + case 3: + r.content = e.string(); + break; + case 4: + r.visibleToSender = e.bool(); + break; + case 5: + r.backgroundImage = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 6: + r.fullScreenTextColor = e.string(); + break; + case 7: + r.backgroundImageV2 = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 9: + r.publicAreaCommon = l.webcast.im.PublicAreaCommon.decode(e, e.uint32()); + break; + case 10: + r.giftImage = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.common && e.hasOwnProperty("common") && (t = l.webcast.im.Common.verify(e.common))) return "common." + t; + if (null != e.user && e.hasOwnProperty("user") && (t = l.webcast.data.User.verify(e.user))) return "user." + t; + if (null != e.content && e.hasOwnProperty("content") && !a.isString(e.content)) return "content: string expected"; + if (null != e.visibleToSender && e.hasOwnProperty("visibleToSender") && "boolean" != typeof e.visibleToSender) return "visibleToSender: boolean expected"; + if (null != e.backgroundImage && e.hasOwnProperty("backgroundImage") && (t = l.webcast.data.Image.verify(e.backgroundImage))) return "backgroundImage." + t; + if (null != e.fullScreenTextColor && e.hasOwnProperty("fullScreenTextColor") && !a.isString(e.fullScreenTextColor)) return "fullScreenTextColor: string expected"; + if (null != e.backgroundImageV2 && e.hasOwnProperty("backgroundImageV2") && (t = l.webcast.data.Image.verify(e.backgroundImageV2))) return "backgroundImageV2." + t; + if (null != e.publicAreaCommon && e.hasOwnProperty("publicAreaCommon") && (t = l.webcast.im.PublicAreaCommon.verify(e.publicAreaCommon))) return "publicAreaCommon." + t; + if (null != e.giftImage && e.hasOwnProperty("giftImage") && (t = l.webcast.data.Image.verify(e.giftImage))) return "giftImage." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.ChatMessage) return e; + var t = new l.webcast.im.ChatMessage; + if (null != e.common) + { + if ("object" != typeof e.common) throw TypeError(".webcast.im.ChatMessage.common: object expected"); + t.common = l.webcast.im.Common.fromObject(e.common) + } + if (null != e.user) + { + if ("object" != typeof e.user) throw TypeError(".webcast.im.ChatMessage.user: object expected"); + t.user = l.webcast.data.User.fromObject(e.user) + } + if (null != e.content && (t.content = String(e.content)), null != e.visibleToSender && (t.visibleToSender = Boolean(e.visibleToSender)), null != e.backgroundImage) + { + if ("object" != typeof e.backgroundImage) throw TypeError(".webcast.im.ChatMessage.backgroundImage: object expected"); + t.backgroundImage = l.webcast.data.Image.fromObject(e.backgroundImage) + } + if (null != e.fullScreenTextColor && (t.fullScreenTextColor = String(e.fullScreenTextColor)), null != e.backgroundImageV2) + { + if ("object" != typeof e.backgroundImageV2) throw TypeError(".webcast.im.ChatMessage.backgroundImageV2: object expected"); + t.backgroundImageV2 = l.webcast.data.Image.fromObject(e.backgroundImageV2) + } + if (null != e.publicAreaCommon) + { + if ("object" != typeof e.publicAreaCommon) throw TypeError(".webcast.im.ChatMessage.publicAreaCommon: object expected"); + t.publicAreaCommon = l.webcast.im.PublicAreaCommon.fromObject(e.publicAreaCommon) + } + if (null != e.giftImage) + { + if ("object" != typeof e.giftImage) throw TypeError(".webcast.im.ChatMessage.giftImage: object expected"); + t.giftImage = l.webcast.data.Image.fromObject(e.giftImage) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.common = null, n.user = null, n.content = "", n.visibleToSender = !1, n.backgroundImage = null, n.fullScreenTextColor = "", n.backgroundImageV2 = null, n.publicAreaCommon = null, n.giftImage = null), null != e.common && e.hasOwnProperty("common") && (n.common = l.webcast.im.Common.toObject(e.common, t)), null != e.user && e.hasOwnProperty("user") && (n.user = l.webcast.data.User.toObject(e.user, t)), null != e.content && e.hasOwnProperty("content") && (n.content = e.content), null != e.visibleToSender && e.hasOwnProperty("visibleToSender") && (n.visibleToSender = e.visibleToSender), null != e.backgroundImage && e.hasOwnProperty("backgroundImage") && (n.backgroundImage = l.webcast.data.Image.toObject(e.backgroundImage, t)), null != e.fullScreenTextColor && e.hasOwnProperty("fullScreenTextColor") && (n.fullScreenTextColor = e.fullScreenTextColor), null != e.backgroundImageV2 && e.hasOwnProperty("backgroundImageV2") && (n.backgroundImageV2 = l.webcast.data.Image.toObject(e.backgroundImageV2, t)), null != e.publicAreaCommon && e.hasOwnProperty("publicAreaCommon") && (n.publicAreaCommon = l.webcast.im.PublicAreaCommon.toObject(e.publicAreaCommon, t)), null != e.giftImage && e.hasOwnProperty("giftImage") && (n.giftImage = l.webcast.data.Image.toObject(e.giftImage, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ControlMessage = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.common = null, e.prototype.action = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.tips = "", e.prototype.extra = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.common && Object.hasOwnProperty.call(e, "common") && l.webcast.im.Common.encode(e.common, t.uint32(10).fork()).ldelim(), null != e.action && Object.hasOwnProperty.call(e, "action") && t.uint32(16).int64(e.action), null != e.tips && Object.hasOwnProperty.call(e, "tips") && t.uint32(26).string(e.tips), null != e.extra && Object.hasOwnProperty.call(e, "extra") && l.webcast.im.ControlMessage.Extra.encode(e.extra, t.uint32(34).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.ControlMessage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.common = l.webcast.im.Common.decode(e, e.uint32()); + break; + case 2: + r.action = e.int64(); + break; + case 3: + r.tips = e.string(); + break; + case 4: + r.extra = l.webcast.im.ControlMessage.Extra.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.common && e.hasOwnProperty("common") && (t = l.webcast.im.Common.verify(e.common))) return "common." + t; + if (null != e.action && e.hasOwnProperty("action") && !(a.isInteger(e.action) || e.action && a.isInteger(e.action.low) && a.isInteger(e.action.high))) return "action: integer|Long expected"; + if (null != e.tips && e.hasOwnProperty("tips") && !a.isString(e.tips)) return "tips: string expected"; + if (null != e.extra && e.hasOwnProperty("extra") && (t = l.webcast.im.ControlMessage.Extra.verify(e.extra))) return "extra." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.ControlMessage) return e; + var t = new l.webcast.im.ControlMessage; + if (null != e.common) + { + if ("object" != typeof e.common) throw TypeError(".webcast.im.ControlMessage.common: object expected"); + t.common = l.webcast.im.Common.fromObject(e.common) + } + if (null != e.action && (a.Long ? (t.action = a.Long.fromValue(e.action)).unsigned = !1 : "string" == typeof e.action ? t.action = parseInt(e.action, 10) : "number" == typeof e.action ? t.action = e.action : "object" == typeof e.action && (t.action = new a.LongBits(e.action.low >>> 0, e.action.high >>> 0).toNumber())), null != e.tips && (t.tips = String(e.tips)), null != e.extra) + { + if ("object" != typeof e.extra) throw TypeError(".webcast.im.ControlMessage.extra: object expected"); + t.extra = l.webcast.im.ControlMessage.Extra.fromObject(e.extra) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.common = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.action = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.action = t.longs === String ? "0" : 0; + n.tips = "", n.extra = null + } + return null != e.common && e.hasOwnProperty("common") && (n.common = l.webcast.im.Common.toObject(e.common, t)), null != e.action && e.hasOwnProperty("action") && ("number" == typeof e.action ? n.action = t.longs === String ? String(e.action) : e.action : n.action = t.longs === String ? a.Long.prototype.toString.call(e.action) : t.longs === Number ? new a.LongBits(e.action.low >>> 0, e.action.high >>> 0).toNumber() : e.action), null != e.tips && e.hasOwnProperty("tips") && (n.tips = e.tips), null != e.extra && e.hasOwnProperty("extra") && (n.extra = l.webcast.im.ControlMessage.Extra.toObject(e.extra, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Extra = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.banInfoUrl = "", e.prototype.reasonNo = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.title = null, e.prototype.violationReason = null, e.prototype.content = null, e.prototype.gotItButton = null, e.prototype.banDetailButton = null, e.prototype.source = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.banInfoUrl && Object.hasOwnProperty.call(e, "banInfoUrl") && t.uint32(10).string(e.banInfoUrl), null != e.reasonNo && Object.hasOwnProperty.call(e, "reasonNo") && t.uint32(16).int64(e.reasonNo), null != e.title && Object.hasOwnProperty.call(e, "title") && l.webcast.data.Text.encode(e.title, t.uint32(26).fork()).ldelim(), null != e.violationReason && Object.hasOwnProperty.call(e, "violationReason") && l.webcast.data.Text.encode(e.violationReason, t.uint32(34).fork()).ldelim(), null != e.content && Object.hasOwnProperty.call(e, "content") && l.webcast.data.Text.encode(e.content, t.uint32(42).fork()).ldelim(), null != e.gotItButton && Object.hasOwnProperty.call(e, "gotItButton") && l.webcast.data.Text.encode(e.gotItButton, t.uint32(50).fork()).ldelim(), null != e.banDetailButton && Object.hasOwnProperty.call(e, "banDetailButton") && l.webcast.data.Text.encode(e.banDetailButton, t.uint32(58).fork()).ldelim(), null != e.source && Object.hasOwnProperty.call(e, "source") && t.uint32(66).string(e.source), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.ControlMessage.Extra; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.banInfoUrl = e.string(); + break; + case 2: + r.reasonNo = e.int64(); + break; + case 3: + r.title = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 4: + r.violationReason = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 5: + r.content = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 6: + r.gotItButton = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 7: + r.banDetailButton = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 8: + r.source = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.banInfoUrl && e.hasOwnProperty("banInfoUrl") && !a.isString(e.banInfoUrl)) return "banInfoUrl: string expected"; + if (null != e.reasonNo && e.hasOwnProperty("reasonNo") && !(a.isInteger(e.reasonNo) || e.reasonNo && a.isInteger(e.reasonNo.low) && a.isInteger(e.reasonNo.high))) return "reasonNo: integer|Long expected"; + var t; + if (null != e.title && e.hasOwnProperty("title") && (t = l.webcast.data.Text.verify(e.title))) return "title." + t; + if (null != e.violationReason && e.hasOwnProperty("violationReason") && (t = l.webcast.data.Text.verify(e.violationReason))) return "violationReason." + t; + if (null != e.content && e.hasOwnProperty("content") && (t = l.webcast.data.Text.verify(e.content))) return "content." + t; + if (null != e.gotItButton && e.hasOwnProperty("gotItButton") && (t = l.webcast.data.Text.verify(e.gotItButton))) return "gotItButton." + t; + if (null != e.banDetailButton && e.hasOwnProperty("banDetailButton") && (t = l.webcast.data.Text.verify(e.banDetailButton))) return "banDetailButton." + t; + return null != e.source && e.hasOwnProperty("source") && !a.isString(e.source) ? "source: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.ControlMessage.Extra) return e; + var t = new l.webcast.im.ControlMessage.Extra; + if (null != e.banInfoUrl && (t.banInfoUrl = String(e.banInfoUrl)), null != e.reasonNo && (a.Long ? (t.reasonNo = a.Long.fromValue(e.reasonNo)).unsigned = !1 : "string" == typeof e.reasonNo ? t.reasonNo = parseInt(e.reasonNo, 10) : "number" == typeof e.reasonNo ? t.reasonNo = e.reasonNo : "object" == typeof e.reasonNo && (t.reasonNo = new a.LongBits(e.reasonNo.low >>> 0, e.reasonNo.high >>> 0).toNumber())), null != e.title) + { + if ("object" != typeof e.title) throw TypeError(".webcast.im.ControlMessage.Extra.title: object expected"); + t.title = l.webcast.data.Text.fromObject(e.title) + } + if (null != e.violationReason) + { + if ("object" != typeof e.violationReason) throw TypeError(".webcast.im.ControlMessage.Extra.violationReason: object expected"); + t.violationReason = l.webcast.data.Text.fromObject(e.violationReason) + } + if (null != e.content) + { + if ("object" != typeof e.content) throw TypeError(".webcast.im.ControlMessage.Extra.content: object expected"); + t.content = l.webcast.data.Text.fromObject(e.content) + } + if (null != e.gotItButton) + { + if ("object" != typeof e.gotItButton) throw TypeError(".webcast.im.ControlMessage.Extra.gotItButton: object expected"); + t.gotItButton = l.webcast.data.Text.fromObject(e.gotItButton) + } + if (null != e.banDetailButton) + { + if ("object" != typeof e.banDetailButton) throw TypeError(".webcast.im.ControlMessage.Extra.banDetailButton: object expected"); + t.banDetailButton = l.webcast.data.Text.fromObject(e.banDetailButton) + } + return null != e.source && (t.source = String(e.source)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.banInfoUrl = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.reasonNo = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.reasonNo = t.longs === String ? "0" : 0; + n.title = null, n.violationReason = null, n.content = null, n.gotItButton = null, n.banDetailButton = null, n.source = "" + } + return null != e.banInfoUrl && e.hasOwnProperty("banInfoUrl") && (n.banInfoUrl = e.banInfoUrl), null != e.reasonNo && e.hasOwnProperty("reasonNo") && ("number" == typeof e.reasonNo ? n.reasonNo = t.longs === String ? String(e.reasonNo) : e.reasonNo : n.reasonNo = t.longs === String ? a.Long.prototype.toString.call(e.reasonNo) : t.longs === Number ? new a.LongBits(e.reasonNo.low >>> 0, e.reasonNo.high >>> 0).toNumber() : e.reasonNo), null != e.title && e.hasOwnProperty("title") && (n.title = l.webcast.data.Text.toObject(e.title, t)), null != e.violationReason && e.hasOwnProperty("violationReason") && (n.violationReason = l.webcast.data.Text.toObject(e.violationReason, t)), null != e.content && e.hasOwnProperty("content") && (n.content = l.webcast.data.Text.toObject(e.content, t)), null != e.gotItButton && e.hasOwnProperty("gotItButton") && (n.gotItButton = l.webcast.data.Text.toObject(e.gotItButton, t)), null != e.banDetailButton && e.hasOwnProperty("banDetailButton") && (n.banDetailButton = l.webcast.data.Text.toObject(e.banDetailButton, t)), null != e.source && e.hasOwnProperty("source") && (n.source = e.source), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.GiftDisplayEffect = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "Unused"] = 0, t[e[1] = "Chat"] = 1, t[e[2] = "Tray"] = 2, t[e[4] = "Effect"] = 4, t + }(), e.GiftMessage = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.common = null, e.prototype.giftId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.fanTicketCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.groupCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.repeatCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.comboCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.user = null, e.prototype.toUser = null, e.prototype.repeatEnd = 0, e.prototype.textEffect = null, e.prototype.groupId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.incomeTaskgifts = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.roomFanTicketCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.priority = null, e.prototype.gift = null, e.prototype.logId = "", e.prototype.sendType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.publicAreaCommon = null, e.prototype.trayDisplayText = null, e.prototype.bannedDisplayEffects = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.trayInfo = null, e.prototype.assetEffectMixInfo = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.common && Object.hasOwnProperty.call(e, "common") && l.webcast.im.Common.encode(e.common, t.uint32(10).fork()).ldelim(), null != e.giftId && Object.hasOwnProperty.call(e, "giftId") && t.uint32(16).int64(e.giftId), null != e.fanTicketCount && Object.hasOwnProperty.call(e, "fanTicketCount") && t.uint32(24).int64(e.fanTicketCount), null != e.groupCount && Object.hasOwnProperty.call(e, "groupCount") && t.uint32(32).int64(e.groupCount), null != e.repeatCount && Object.hasOwnProperty.call(e, "repeatCount") && t.uint32(40).int64(e.repeatCount), null != e.comboCount && Object.hasOwnProperty.call(e, "comboCount") && t.uint32(48).int64(e.comboCount), null != e.user && Object.hasOwnProperty.call(e, "user") && l.webcast.data.User.encode(e.user, t.uint32(58).fork()).ldelim(), null != e.toUser && Object.hasOwnProperty.call(e, "toUser") && l.webcast.data.User.encode(e.toUser, t.uint32(66).fork()).ldelim(), null != e.repeatEnd && Object.hasOwnProperty.call(e, "repeatEnd") && t.uint32(72).int32(e.repeatEnd), null != e.textEffect && Object.hasOwnProperty.call(e, "textEffect") && l.webcast.im.GiftMessage.TextEffect.encode(e.textEffect, t.uint32(82).fork()).ldelim(), null != e.groupId && Object.hasOwnProperty.call(e, "groupId") && t.uint32(88).int64(e.groupId), null != e.incomeTaskgifts && Object.hasOwnProperty.call(e, "incomeTaskgifts") && t.uint32(96).int64(e.incomeTaskgifts), null != e.roomFanTicketCount && Object.hasOwnProperty.call(e, "roomFanTicketCount") && t.uint32(104).int64(e.roomFanTicketCount), null != e.priority && Object.hasOwnProperty.call(e, "priority") && l.webcast.data.GiftIMPriority.encode(e.priority, t.uint32(114).fork()).ldelim(), null != e.gift && Object.hasOwnProperty.call(e, "gift") && l.webcast.data.GiftStruct.encode(e.gift, t.uint32(122).fork()).ldelim(), null != e.logId && Object.hasOwnProperty.call(e, "logId") && t.uint32(130).string(e.logId), null != e.sendType && Object.hasOwnProperty.call(e, "sendType") && t.uint32(136).int64(e.sendType), null != e.publicAreaCommon && Object.hasOwnProperty.call(e, "publicAreaCommon") && l.webcast.im.PublicAreaCommon.encode(e.publicAreaCommon, t.uint32(146).fork()).ldelim(), null != e.trayDisplayText && Object.hasOwnProperty.call(e, "trayDisplayText") && l.webcast.data.Text.encode(e.trayDisplayText, t.uint32(154).fork()).ldelim(), null != e.bannedDisplayEffects && Object.hasOwnProperty.call(e, "bannedDisplayEffects") && t.uint32(160).int64(e.bannedDisplayEffects), null != e.trayInfo && Object.hasOwnProperty.call(e, "trayInfo") && l.webcast.data.GiftTrayInfo.encode(e.trayInfo, t.uint32(170).fork()).ldelim(), null != e.assetEffectMixInfo && Object.hasOwnProperty.call(e, "assetEffectMixInfo") && l.webcast.data.AssetEffectMixInfo.encode(e.assetEffectMixInfo, t.uint32(194).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.GiftMessage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.common = l.webcast.im.Common.decode(e, e.uint32()); + break; + case 2: + r.giftId = e.int64(); + break; + case 3: + r.fanTicketCount = e.int64(); + break; + case 4: + r.groupCount = e.int64(); + break; + case 5: + r.repeatCount = e.int64(); + break; + case 6: + r.comboCount = e.int64(); + break; + case 7: + r.user = l.webcast.data.User.decode(e, e.uint32()); + break; + case 8: + r.toUser = l.webcast.data.User.decode(e, e.uint32()); + break; + case 9: + r.repeatEnd = e.int32(); + break; + case 10: + r.textEffect = l.webcast.im.GiftMessage.TextEffect.decode(e, e.uint32()); + break; + case 11: + r.groupId = e.int64(); + break; + case 12: + r.incomeTaskgifts = e.int64(); + break; + case 13: + r.roomFanTicketCount = e.int64(); + break; + case 14: + r.priority = l.webcast.data.GiftIMPriority.decode(e, e.uint32()); + break; + case 15: + r.gift = l.webcast.data.GiftStruct.decode(e, e.uint32()); + break; + case 16: + r.logId = e.string(); + break; + case 17: + r.sendType = e.int64(); + break; + case 18: + r.publicAreaCommon = l.webcast.im.PublicAreaCommon.decode(e, e.uint32()); + break; + case 19: + r.trayDisplayText = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 20: + r.bannedDisplayEffects = e.int64(); + break; + case 21: + r.trayInfo = l.webcast.data.GiftTrayInfo.decode(e, e.uint32()); + break; + case 24: + r.assetEffectMixInfo = l.webcast.data.AssetEffectMixInfo.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.common && e.hasOwnProperty("common") && (t = l.webcast.im.Common.verify(e.common))) return "common." + t; + if (null != e.giftId && e.hasOwnProperty("giftId") && !(a.isInteger(e.giftId) || e.giftId && a.isInteger(e.giftId.low) && a.isInteger(e.giftId.high))) return "giftId: integer|Long expected"; + if (null != e.fanTicketCount && e.hasOwnProperty("fanTicketCount") && !(a.isInteger(e.fanTicketCount) || e.fanTicketCount && a.isInteger(e.fanTicketCount.low) && a.isInteger(e.fanTicketCount.high))) return "fanTicketCount: integer|Long expected"; + if (null != e.groupCount && e.hasOwnProperty("groupCount") && !(a.isInteger(e.groupCount) || e.groupCount && a.isInteger(e.groupCount.low) && a.isInteger(e.groupCount.high))) return "groupCount: integer|Long expected"; + if (null != e.repeatCount && e.hasOwnProperty("repeatCount") && !(a.isInteger(e.repeatCount) || e.repeatCount && a.isInteger(e.repeatCount.low) && a.isInteger(e.repeatCount.high))) return "repeatCount: integer|Long expected"; + if (null != e.comboCount && e.hasOwnProperty("comboCount") && !(a.isInteger(e.comboCount) || e.comboCount && a.isInteger(e.comboCount.low) && a.isInteger(e.comboCount.high))) return "comboCount: integer|Long expected"; + if (null != e.user && e.hasOwnProperty("user") && (t = l.webcast.data.User.verify(e.user))) return "user." + t; + if (null != e.toUser && e.hasOwnProperty("toUser") && (t = l.webcast.data.User.verify(e.toUser))) return "toUser." + t; + if (null != e.repeatEnd && e.hasOwnProperty("repeatEnd") && !a.isInteger(e.repeatEnd)) return "repeatEnd: integer expected"; + if (null != e.textEffect && e.hasOwnProperty("textEffect") && (t = l.webcast.im.GiftMessage.TextEffect.verify(e.textEffect))) return "textEffect." + t; + if (null != e.groupId && e.hasOwnProperty("groupId") && !(a.isInteger(e.groupId) || e.groupId && a.isInteger(e.groupId.low) && a.isInteger(e.groupId.high))) return "groupId: integer|Long expected"; + if (null != e.incomeTaskgifts && e.hasOwnProperty("incomeTaskgifts") && !(a.isInteger(e.incomeTaskgifts) || e.incomeTaskgifts && a.isInteger(e.incomeTaskgifts.low) && a.isInteger(e.incomeTaskgifts.high))) return "incomeTaskgifts: integer|Long expected"; + if (null != e.roomFanTicketCount && e.hasOwnProperty("roomFanTicketCount") && !(a.isInteger(e.roomFanTicketCount) || e.roomFanTicketCount && a.isInteger(e.roomFanTicketCount.low) && a.isInteger(e.roomFanTicketCount.high))) return "roomFanTicketCount: integer|Long expected"; + if (null != e.priority && e.hasOwnProperty("priority") && (t = l.webcast.data.GiftIMPriority.verify(e.priority))) return "priority." + t; + if (null != e.gift && e.hasOwnProperty("gift") && (t = l.webcast.data.GiftStruct.verify(e.gift))) return "gift." + t; + if (null != e.logId && e.hasOwnProperty("logId") && !a.isString(e.logId)) return "logId: string expected"; + if (null != e.sendType && e.hasOwnProperty("sendType") && !(a.isInteger(e.sendType) || e.sendType && a.isInteger(e.sendType.low) && a.isInteger(e.sendType.high))) return "sendType: integer|Long expected"; + if (null != e.publicAreaCommon && e.hasOwnProperty("publicAreaCommon") && (t = l.webcast.im.PublicAreaCommon.verify(e.publicAreaCommon))) return "publicAreaCommon." + t; + if (null != e.trayDisplayText && e.hasOwnProperty("trayDisplayText") && (t = l.webcast.data.Text.verify(e.trayDisplayText))) return "trayDisplayText." + t; + if (null != e.bannedDisplayEffects && e.hasOwnProperty("bannedDisplayEffects") && !(a.isInteger(e.bannedDisplayEffects) || e.bannedDisplayEffects && a.isInteger(e.bannedDisplayEffects.low) && a.isInteger(e.bannedDisplayEffects.high))) return "bannedDisplayEffects: integer|Long expected"; + if (null != e.trayInfo && e.hasOwnProperty("trayInfo") && (t = l.webcast.data.GiftTrayInfo.verify(e.trayInfo))) return "trayInfo." + t; + if (null != e.assetEffectMixInfo && e.hasOwnProperty("assetEffectMixInfo") && (t = l.webcast.data.AssetEffectMixInfo.verify(e.assetEffectMixInfo))) return "assetEffectMixInfo." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.GiftMessage) return e; + var t = new l.webcast.im.GiftMessage; + if (null != e.common) + { + if ("object" != typeof e.common) throw TypeError(".webcast.im.GiftMessage.common: object expected"); + t.common = l.webcast.im.Common.fromObject(e.common) + } + if (null != e.giftId && (a.Long ? (t.giftId = a.Long.fromValue(e.giftId)).unsigned = !1 : "string" == typeof e.giftId ? t.giftId = parseInt(e.giftId, 10) : "number" == typeof e.giftId ? t.giftId = e.giftId : "object" == typeof e.giftId && (t.giftId = new a.LongBits(e.giftId.low >>> 0, e.giftId.high >>> 0).toNumber())), null != e.fanTicketCount && (a.Long ? (t.fanTicketCount = a.Long.fromValue(e.fanTicketCount)).unsigned = !1 : "string" == typeof e.fanTicketCount ? t.fanTicketCount = parseInt(e.fanTicketCount, 10) : "number" == typeof e.fanTicketCount ? t.fanTicketCount = e.fanTicketCount : "object" == typeof e.fanTicketCount && (t.fanTicketCount = new a.LongBits(e.fanTicketCount.low >>> 0, e.fanTicketCount.high >>> 0).toNumber())), null != e.groupCount && (a.Long ? (t.groupCount = a.Long.fromValue(e.groupCount)).unsigned = !1 : "string" == typeof e.groupCount ? t.groupCount = parseInt(e.groupCount, 10) : "number" == typeof e.groupCount ? t.groupCount = e.groupCount : "object" == typeof e.groupCount && (t.groupCount = new a.LongBits(e.groupCount.low >>> 0, e.groupCount.high >>> 0).toNumber())), null != e.repeatCount && (a.Long ? (t.repeatCount = a.Long.fromValue(e.repeatCount)).unsigned = !1 : "string" == typeof e.repeatCount ? t.repeatCount = parseInt(e.repeatCount, 10) : "number" == typeof e.repeatCount ? t.repeatCount = e.repeatCount : "object" == typeof e.repeatCount && (t.repeatCount = new a.LongBits(e.repeatCount.low >>> 0, e.repeatCount.high >>> 0).toNumber())), null != e.comboCount && (a.Long ? (t.comboCount = a.Long.fromValue(e.comboCount)).unsigned = !1 : "string" == typeof e.comboCount ? t.comboCount = parseInt(e.comboCount, 10) : "number" == typeof e.comboCount ? t.comboCount = e.comboCount : "object" == typeof e.comboCount && (t.comboCount = new a.LongBits(e.comboCount.low >>> 0, e.comboCount.high >>> 0).toNumber())), null != e.user) + { + if ("object" != typeof e.user) throw TypeError(".webcast.im.GiftMessage.user: object expected"); + t.user = l.webcast.data.User.fromObject(e.user) + } + if (null != e.toUser) + { + if ("object" != typeof e.toUser) throw TypeError(".webcast.im.GiftMessage.toUser: object expected"); + t.toUser = l.webcast.data.User.fromObject(e.toUser) + } + if (null != e.repeatEnd && (t.repeatEnd = 0 | e.repeatEnd), null != e.textEffect) + { + if ("object" != typeof e.textEffect) throw TypeError(".webcast.im.GiftMessage.textEffect: object expected"); + t.textEffect = l.webcast.im.GiftMessage.TextEffect.fromObject(e.textEffect) + } + if (null != e.groupId && (a.Long ? (t.groupId = a.Long.fromValue(e.groupId)).unsigned = !1 : "string" == typeof e.groupId ? t.groupId = parseInt(e.groupId, 10) : "number" == typeof e.groupId ? t.groupId = e.groupId : "object" == typeof e.groupId && (t.groupId = new a.LongBits(e.groupId.low >>> 0, e.groupId.high >>> 0).toNumber())), null != e.incomeTaskgifts && (a.Long ? (t.incomeTaskgifts = a.Long.fromValue(e.incomeTaskgifts)).unsigned = !1 : "string" == typeof e.incomeTaskgifts ? t.incomeTaskgifts = parseInt(e.incomeTaskgifts, 10) : "number" == typeof e.incomeTaskgifts ? t.incomeTaskgifts = e.incomeTaskgifts : "object" == typeof e.incomeTaskgifts && (t.incomeTaskgifts = new a.LongBits(e.incomeTaskgifts.low >>> 0, e.incomeTaskgifts.high >>> 0).toNumber())), null != e.roomFanTicketCount && (a.Long ? (t.roomFanTicketCount = a.Long.fromValue(e.roomFanTicketCount)).unsigned = !1 : "string" == typeof e.roomFanTicketCount ? t.roomFanTicketCount = parseInt(e.roomFanTicketCount, 10) : "number" == typeof e.roomFanTicketCount ? t.roomFanTicketCount = e.roomFanTicketCount : "object" == typeof e.roomFanTicketCount && (t.roomFanTicketCount = new a.LongBits(e.roomFanTicketCount.low >>> 0, e.roomFanTicketCount.high >>> 0).toNumber())), null != e.priority) + { + if ("object" != typeof e.priority) throw TypeError(".webcast.im.GiftMessage.priority: object expected"); + t.priority = l.webcast.data.GiftIMPriority.fromObject(e.priority) + } + if (null != e.gift) + { + if ("object" != typeof e.gift) throw TypeError(".webcast.im.GiftMessage.gift: object expected"); + t.gift = l.webcast.data.GiftStruct.fromObject(e.gift) + } + if (null != e.logId && (t.logId = String(e.logId)), null != e.sendType && (a.Long ? (t.sendType = a.Long.fromValue(e.sendType)).unsigned = !1 : "string" == typeof e.sendType ? t.sendType = parseInt(e.sendType, 10) : "number" == typeof e.sendType ? t.sendType = e.sendType : "object" == typeof e.sendType && (t.sendType = new a.LongBits(e.sendType.low >>> 0, e.sendType.high >>> 0).toNumber())), null != e.publicAreaCommon) + { + if ("object" != typeof e.publicAreaCommon) throw TypeError(".webcast.im.GiftMessage.publicAreaCommon: object expected"); + t.publicAreaCommon = l.webcast.im.PublicAreaCommon.fromObject(e.publicAreaCommon) + } + if (null != e.trayDisplayText) + { + if ("object" != typeof e.trayDisplayText) throw TypeError(".webcast.im.GiftMessage.trayDisplayText: object expected"); + t.trayDisplayText = l.webcast.data.Text.fromObject(e.trayDisplayText) + } + if (null != e.bannedDisplayEffects && (a.Long ? (t.bannedDisplayEffects = a.Long.fromValue(e.bannedDisplayEffects)).unsigned = !1 : "string" == typeof e.bannedDisplayEffects ? t.bannedDisplayEffects = parseInt(e.bannedDisplayEffects, 10) : "number" == typeof e.bannedDisplayEffects ? t.bannedDisplayEffects = e.bannedDisplayEffects : "object" == typeof e.bannedDisplayEffects && (t.bannedDisplayEffects = new a.LongBits(e.bannedDisplayEffects.low >>> 0, e.bannedDisplayEffects.high >>> 0).toNumber())), null != e.trayInfo) + { + if ("object" != typeof e.trayInfo) throw TypeError(".webcast.im.GiftMessage.trayInfo: object expected"); + t.trayInfo = l.webcast.data.GiftTrayInfo.fromObject(e.trayInfo) + } + if (null != e.assetEffectMixInfo) + { + if ("object" != typeof e.assetEffectMixInfo) throw TypeError(".webcast.im.GiftMessage.assetEffectMixInfo: object expected"); + t.assetEffectMixInfo = l.webcast.data.AssetEffectMixInfo.fromObject(e.assetEffectMixInfo) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.common = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.giftId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.giftId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.fanTicketCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fanTicketCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.groupCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.groupCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.repeatCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.repeatCount = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.comboCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.comboCount = t.longs === String ? "0" : 0; + if (n.user = null, n.toUser = null, n.repeatEnd = 0, n.textEffect = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.groupId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.groupId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.incomeTaskgifts = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.incomeTaskgifts = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.roomFanTicketCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.roomFanTicketCount = t.longs === String ? "0" : 0; + if (n.priority = null, n.gift = null, n.logId = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.sendType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.sendType = t.longs === String ? "0" : 0; + if (n.publicAreaCommon = null, n.trayDisplayText = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.bannedDisplayEffects = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.bannedDisplayEffects = t.longs === String ? "0" : 0; + n.trayInfo = null, n.assetEffectMixInfo = null + } + return null != e.common && e.hasOwnProperty("common") && (n.common = l.webcast.im.Common.toObject(e.common, t)), null != e.giftId && e.hasOwnProperty("giftId") && ("number" == typeof e.giftId ? n.giftId = t.longs === String ? String(e.giftId) : e.giftId : n.giftId = t.longs === String ? a.Long.prototype.toString.call(e.giftId) : t.longs === Number ? new a.LongBits(e.giftId.low >>> 0, e.giftId.high >>> 0).toNumber() : e.giftId), null != e.fanTicketCount && e.hasOwnProperty("fanTicketCount") && ("number" == typeof e.fanTicketCount ? n.fanTicketCount = t.longs === String ? String(e.fanTicketCount) : e.fanTicketCount : n.fanTicketCount = t.longs === String ? a.Long.prototype.toString.call(e.fanTicketCount) : t.longs === Number ? new a.LongBits(e.fanTicketCount.low >>> 0, e.fanTicketCount.high >>> 0).toNumber() : e.fanTicketCount), null != e.groupCount && e.hasOwnProperty("groupCount") && ("number" == typeof e.groupCount ? n.groupCount = t.longs === String ? String(e.groupCount) : e.groupCount : n.groupCount = t.longs === String ? a.Long.prototype.toString.call(e.groupCount) : t.longs === Number ? new a.LongBits(e.groupCount.low >>> 0, e.groupCount.high >>> 0).toNumber() : e.groupCount), null != e.repeatCount && e.hasOwnProperty("repeatCount") && ("number" == typeof e.repeatCount ? n.repeatCount = t.longs === String ? String(e.repeatCount) : e.repeatCount : n.repeatCount = t.longs === String ? a.Long.prototype.toString.call(e.repeatCount) : t.longs === Number ? new a.LongBits(e.repeatCount.low >>> 0, e.repeatCount.high >>> 0).toNumber() : e.repeatCount), null != e.comboCount && e.hasOwnProperty("comboCount") && ("number" == typeof e.comboCount ? n.comboCount = t.longs === String ? String(e.comboCount) : e.comboCount : n.comboCount = t.longs === String ? a.Long.prototype.toString.call(e.comboCount) : t.longs === Number ? new a.LongBits(e.comboCount.low >>> 0, e.comboCount.high >>> 0).toNumber() : e.comboCount), null != e.user && e.hasOwnProperty("user") && (n.user = l.webcast.data.User.toObject(e.user, t)), null != e.toUser && e.hasOwnProperty("toUser") && (n.toUser = l.webcast.data.User.toObject(e.toUser, t)), null != e.repeatEnd && e.hasOwnProperty("repeatEnd") && (n.repeatEnd = e.repeatEnd), null != e.textEffect && e.hasOwnProperty("textEffect") && (n.textEffect = l.webcast.im.GiftMessage.TextEffect.toObject(e.textEffect, t)), null != e.groupId && e.hasOwnProperty("groupId") && ("number" == typeof e.groupId ? n.groupId = t.longs === String ? String(e.groupId) : e.groupId : n.groupId = t.longs === String ? a.Long.prototype.toString.call(e.groupId) : t.longs === Number ? new a.LongBits(e.groupId.low >>> 0, e.groupId.high >>> 0).toNumber() : e.groupId), null != e.incomeTaskgifts && e.hasOwnProperty("incomeTaskgifts") && ("number" == typeof e.incomeTaskgifts ? n.incomeTaskgifts = t.longs === String ? String(e.incomeTaskgifts) : e.incomeTaskgifts : n.incomeTaskgifts = t.longs === String ? a.Long.prototype.toString.call(e.incomeTaskgifts) : t.longs === Number ? new a.LongBits(e.incomeTaskgifts.low >>> 0, e.incomeTaskgifts.high >>> 0).toNumber() : e.incomeTaskgifts), null != e.roomFanTicketCount && e.hasOwnProperty("roomFanTicketCount") && ("number" == typeof e.roomFanTicketCount ? n.roomFanTicketCount = t.longs === String ? String(e.roomFanTicketCount) : e.roomFanTicketCount : n.roomFanTicketCount = t.longs === String ? a.Long.prototype.toString.call(e.roomFanTicketCount) : t.longs === Number ? new a.LongBits(e.roomFanTicketCount.low >>> 0, e.roomFanTicketCount.high >>> 0).toNumber() : e.roomFanTicketCount), null != e.priority && e.hasOwnProperty("priority") && (n.priority = l.webcast.data.GiftIMPriority.toObject(e.priority, t)), null != e.gift && e.hasOwnProperty("gift") && (n.gift = l.webcast.data.GiftStruct.toObject(e.gift, t)), null != e.logId && e.hasOwnProperty("logId") && (n.logId = e.logId), null != e.sendType && e.hasOwnProperty("sendType") && ("number" == typeof e.sendType ? n.sendType = t.longs === String ? String(e.sendType) : e.sendType : n.sendType = t.longs === String ? a.Long.prototype.toString.call(e.sendType) : t.longs === Number ? new a.LongBits(e.sendType.low >>> 0, e.sendType.high >>> 0).toNumber() : e.sendType), null != e.publicAreaCommon && e.hasOwnProperty("publicAreaCommon") && (n.publicAreaCommon = l.webcast.im.PublicAreaCommon.toObject(e.publicAreaCommon, t)), null != e.trayDisplayText && e.hasOwnProperty("trayDisplayText") && (n.trayDisplayText = l.webcast.data.Text.toObject(e.trayDisplayText, t)), null != e.bannedDisplayEffects && e.hasOwnProperty("bannedDisplayEffects") && ("number" == typeof e.bannedDisplayEffects ? n.bannedDisplayEffects = t.longs === String ? String(e.bannedDisplayEffects) : e.bannedDisplayEffects : n.bannedDisplayEffects = t.longs === String ? a.Long.prototype.toString.call(e.bannedDisplayEffects) : t.longs === Number ? new a.LongBits(e.bannedDisplayEffects.low >>> 0, e.bannedDisplayEffects.high >>> 0).toNumber() : e.bannedDisplayEffects), null != e.trayInfo && e.hasOwnProperty("trayInfo") && (n.trayInfo = l.webcast.data.GiftTrayInfo.toObject(e.trayInfo, t)), null != e.assetEffectMixInfo && e.hasOwnProperty("assetEffectMixInfo") && (n.assetEffectMixInfo = l.webcast.data.AssetEffectMixInfo.toObject(e.assetEffectMixInfo, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.TextEffect = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.portrait = null, e.prototype.landscape = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.portrait && Object.hasOwnProperty.call(e, "portrait") && l.webcast.im.GiftMessage.TextEffect.Detail.encode(e.portrait, t.uint32(10).fork()).ldelim(), null != e.landscape && Object.hasOwnProperty.call(e, "landscape") && l.webcast.im.GiftMessage.TextEffect.Detail.encode(e.landscape, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.GiftMessage.TextEffect; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.portrait = l.webcast.im.GiftMessage.TextEffect.Detail.decode(e, e.uint32()); + break; + case 2: + r.landscape = l.webcast.im.GiftMessage.TextEffect.Detail.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.portrait && e.hasOwnProperty("portrait") && (t = l.webcast.im.GiftMessage.TextEffect.Detail.verify(e.portrait))) return "portrait." + t; + if (null != e.landscape && e.hasOwnProperty("landscape") && (t = l.webcast.im.GiftMessage.TextEffect.Detail.verify(e.landscape))) return "landscape." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.GiftMessage.TextEffect) return e; + var t = new l.webcast.im.GiftMessage.TextEffect; + if (null != e.portrait) + { + if ("object" != typeof e.portrait) throw TypeError(".webcast.im.GiftMessage.TextEffect.portrait: object expected"); + t.portrait = l.webcast.im.GiftMessage.TextEffect.Detail.fromObject(e.portrait) + } + if (null != e.landscape) + { + if ("object" != typeof e.landscape) throw TypeError(".webcast.im.GiftMessage.TextEffect.landscape: object expected"); + t.landscape = l.webcast.im.GiftMessage.TextEffect.Detail.fromObject(e.landscape) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.portrait = null, n.landscape = null), null != e.portrait && e.hasOwnProperty("portrait") && (n.portrait = l.webcast.im.GiftMessage.TextEffect.Detail.toObject(e.portrait, t)), null != e.landscape && e.hasOwnProperty("landscape") && (n.landscape = l.webcast.im.GiftMessage.TextEffect.Detail.toObject(e.landscape, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Detail = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.text = null, e.prototype.textFontSize = 0, e.prototype.background = null, e.prototype.start = 0, e.prototype.duration = 0, e.prototype.x = 0, e.prototype.y = 0, e.prototype.width = 0, e.prototype.height = 0, e.prototype.shadowDx = 0, e.prototype.shadowDy = 0, e.prototype.shadowRadius = 0, e.prototype.shadowColor = "", e.prototype.strokeColor = "", e.prototype.strokeWidth = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.text && Object.hasOwnProperty.call(e, "text") && l.webcast.data.Text.encode(e.text, t.uint32(10).fork()).ldelim(), null != e.textFontSize && Object.hasOwnProperty.call(e, "textFontSize") && t.uint32(16).int32(e.textFontSize), null != e.background && Object.hasOwnProperty.call(e, "background") && l.webcast.data.Image.encode(e.background, t.uint32(26).fork()).ldelim(), null != e.start && Object.hasOwnProperty.call(e, "start") && t.uint32(32).int32(e.start), null != e.duration && Object.hasOwnProperty.call(e, "duration") && t.uint32(40).int32(e.duration), null != e.x && Object.hasOwnProperty.call(e, "x") && t.uint32(48).int32(e.x), null != e.y && Object.hasOwnProperty.call(e, "y") && t.uint32(56).int32(e.y), null != e.width && Object.hasOwnProperty.call(e, "width") && t.uint32(64).int32(e.width), null != e.height && Object.hasOwnProperty.call(e, "height") && t.uint32(72).int32(e.height), null != e.shadowDx && Object.hasOwnProperty.call(e, "shadowDx") && t.uint32(80).int32(e.shadowDx), null != e.shadowDy && Object.hasOwnProperty.call(e, "shadowDy") && t.uint32(88).int32(e.shadowDy), null != e.shadowRadius && Object.hasOwnProperty.call(e, "shadowRadius") && t.uint32(96).int32(e.shadowRadius), null != e.shadowColor && Object.hasOwnProperty.call(e, "shadowColor") && t.uint32(106).string(e.shadowColor), null != e.strokeColor && Object.hasOwnProperty.call(e, "strokeColor") && t.uint32(114).string(e.strokeColor), null != e.strokeWidth && Object.hasOwnProperty.call(e, "strokeWidth") && t.uint32(120).int32(e.strokeWidth), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.GiftMessage.TextEffect.Detail; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.text = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 2: + r.textFontSize = e.int32(); + break; + case 3: + r.background = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 4: + r.start = e.int32(); + break; + case 5: + r.duration = e.int32(); + break; + case 6: + r.x = e.int32(); + break; + case 7: + r.y = e.int32(); + break; + case 8: + r.width = e.int32(); + break; + case 9: + r.height = e.int32(); + break; + case 10: + r.shadowDx = e.int32(); + break; + case 11: + r.shadowDy = e.int32(); + break; + case 12: + r.shadowRadius = e.int32(); + break; + case 13: + r.shadowColor = e.string(); + break; + case 14: + r.strokeColor = e.string(); + break; + case 15: + r.strokeWidth = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.text && e.hasOwnProperty("text") && (t = l.webcast.data.Text.verify(e.text))) return "text." + t; + if (null != e.textFontSize && e.hasOwnProperty("textFontSize") && !a.isInteger(e.textFontSize)) return "textFontSize: integer expected"; + if (null != e.background && e.hasOwnProperty("background") && (t = l.webcast.data.Image.verify(e.background))) return "background." + t; + return null != e.start && e.hasOwnProperty("start") && !a.isInteger(e.start) ? "start: integer expected" : null != e.duration && e.hasOwnProperty("duration") && !a.isInteger(e.duration) ? "duration: integer expected" : null != e.x && e.hasOwnProperty("x") && !a.isInteger(e.x) ? "x: integer expected" : null != e.y && e.hasOwnProperty("y") && !a.isInteger(e.y) ? "y: integer expected" : null != e.width && e.hasOwnProperty("width") && !a.isInteger(e.width) ? "width: integer expected" : null != e.height && e.hasOwnProperty("height") && !a.isInteger(e.height) ? "height: integer expected" : null != e.shadowDx && e.hasOwnProperty("shadowDx") && !a.isInteger(e.shadowDx) ? "shadowDx: integer expected" : null != e.shadowDy && e.hasOwnProperty("shadowDy") && !a.isInteger(e.shadowDy) ? "shadowDy: integer expected" : null != e.shadowRadius && e.hasOwnProperty("shadowRadius") && !a.isInteger(e.shadowRadius) ? "shadowRadius: integer expected" : null != e.shadowColor && e.hasOwnProperty("shadowColor") && !a.isString(e.shadowColor) ? "shadowColor: string expected" : null != e.strokeColor && e.hasOwnProperty("strokeColor") && !a.isString(e.strokeColor) ? "strokeColor: string expected" : null != e.strokeWidth && e.hasOwnProperty("strokeWidth") && !a.isInteger(e.strokeWidth) ? "strokeWidth: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.GiftMessage.TextEffect.Detail) return e; + var t = new l.webcast.im.GiftMessage.TextEffect.Detail; + if (null != e.text) + { + if ("object" != typeof e.text) throw TypeError(".webcast.im.GiftMessage.TextEffect.Detail.text: object expected"); + t.text = l.webcast.data.Text.fromObject(e.text) + } + if (null != e.textFontSize && (t.textFontSize = 0 | e.textFontSize), null != e.background) + { + if ("object" != typeof e.background) throw TypeError(".webcast.im.GiftMessage.TextEffect.Detail.background: object expected"); + t.background = l.webcast.data.Image.fromObject(e.background) + } + return null != e.start && (t.start = 0 | e.start), null != e.duration && (t.duration = 0 | e.duration), null != e.x && (t.x = 0 | e.x), null != e.y && (t.y = 0 | e.y), null != e.width && (t.width = 0 | e.width), null != e.height && (t.height = 0 | e.height), null != e.shadowDx && (t.shadowDx = 0 | e.shadowDx), null != e.shadowDy && (t.shadowDy = 0 | e.shadowDy), null != e.shadowRadius && (t.shadowRadius = 0 | e.shadowRadius), null != e.shadowColor && (t.shadowColor = String(e.shadowColor)), null != e.strokeColor && (t.strokeColor = String(e.strokeColor)), null != e.strokeWidth && (t.strokeWidth = 0 | e.strokeWidth), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.text = null, n.textFontSize = 0, n.background = null, n.start = 0, n.duration = 0, n.x = 0, n.y = 0, n.width = 0, n.height = 0, n.shadowDx = 0, n.shadowDy = 0, n.shadowRadius = 0, n.shadowColor = "", n.strokeColor = "", n.strokeWidth = 0), null != e.text && e.hasOwnProperty("text") && (n.text = l.webcast.data.Text.toObject(e.text, t)), null != e.textFontSize && e.hasOwnProperty("textFontSize") && (n.textFontSize = e.textFontSize), null != e.background && e.hasOwnProperty("background") && (n.background = l.webcast.data.Image.toObject(e.background, t)), null != e.start && e.hasOwnProperty("start") && (n.start = e.start), null != e.duration && e.hasOwnProperty("duration") && (n.duration = e.duration), null != e.x && e.hasOwnProperty("x") && (n.x = e.x), null != e.y && e.hasOwnProperty("y") && (n.y = e.y), null != e.width && e.hasOwnProperty("width") && (n.width = e.width), null != e.height && e.hasOwnProperty("height") && (n.height = e.height), null != e.shadowDx && e.hasOwnProperty("shadowDx") && (n.shadowDx = e.shadowDx), null != e.shadowDy && e.hasOwnProperty("shadowDy") && (n.shadowDy = e.shadowDy), null != e.shadowRadius && e.hasOwnProperty("shadowRadius") && (n.shadowRadius = e.shadowRadius), null != e.shadowColor && e.hasOwnProperty("shadowColor") && (n.shadowColor = e.shadowColor), null != e.strokeColor && e.hasOwnProperty("strokeColor") && (n.strokeColor = e.strokeColor), null != e.strokeWidth && e.hasOwnProperty("strokeWidth") && (n.strokeWidth = e.strokeWidth), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e + }(), e.BindingGiftMessage = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.msg = null, e.prototype.common = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.msg && Object.hasOwnProperty.call(e, "msg") && l.webcast.im.GiftMessage.encode(e.msg, t.uint32(10).fork()).ldelim(), null != e.common && Object.hasOwnProperty.call(e, "common") && l.webcast.im.Common.encode(e.common, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.BindingGiftMessage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.msg = l.webcast.im.GiftMessage.decode(e, e.uint32()); + break; + case 2: + r.common = l.webcast.im.Common.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.msg && e.hasOwnProperty("msg") && (t = l.webcast.im.GiftMessage.verify(e.msg))) return "msg." + t; + if (null != e.common && e.hasOwnProperty("common") && (t = l.webcast.im.Common.verify(e.common))) return "common." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.BindingGiftMessage) return e; + var t = new l.webcast.im.BindingGiftMessage; + if (null != e.msg) + { + if ("object" != typeof e.msg) throw TypeError(".webcast.im.BindingGiftMessage.msg: object expected"); + t.msg = l.webcast.im.GiftMessage.fromObject(e.msg) + } + if (null != e.common) + { + if ("object" != typeof e.common) throw TypeError(".webcast.im.BindingGiftMessage.common: object expected"); + t.common = l.webcast.im.Common.fromObject(e.common) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.msg = null, n.common = null), null != e.msg && e.hasOwnProperty("msg") && (n.msg = l.webcast.im.GiftMessage.toObject(e.msg, t)), null != e.common && e.hasOwnProperty("common") && (n.common = l.webcast.im.Common.toObject(e.common, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ImDeleteMessage = function () + { + function e(e) + { + if (this.deleteMsgIds = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.common = null, e.prototype.deleteMsgIds = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.common && Object.hasOwnProperty.call(e, "common") && l.webcast.im.Common.encode(e.common, t.uint32(10).fork()).ldelim(), null != e.deleteMsgIds && e.deleteMsgIds.length) + { + t.uint32(18).fork(); + for (var n = 0; n < e.deleteMsgIds.length; ++n) t.int64(e.deleteMsgIds[n]); + t.ldelim() + } + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.ImDeleteMessage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.common = l.webcast.im.Common.decode(e, e.uint32()); + break; + case 2: + if (r.deleteMsgIds && r.deleteMsgIds.length || (r.deleteMsgIds = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.deleteMsgIds.push(e.int64()); + else r.deleteMsgIds.push(e.int64()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.common && e.hasOwnProperty("common")) + { + var t = l.webcast.im.Common.verify(e.common); + if (t) return "common." + t + } + if (null != e.deleteMsgIds && e.hasOwnProperty("deleteMsgIds")) + { + if (!Array.isArray(e.deleteMsgIds)) return "deleteMsgIds: array expected"; + for (var n = 0; n < e.deleteMsgIds.length; ++n) + if (!(a.isInteger(e.deleteMsgIds[n]) || e.deleteMsgIds[n] && a.isInteger(e.deleteMsgIds[n].low) && a.isInteger(e.deleteMsgIds[n].high))) return "deleteMsgIds: integer|Long[] expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.ImDeleteMessage) return e; + var t = new l.webcast.im.ImDeleteMessage; + if (null != e.common) + { + if ("object" != typeof e.common) throw TypeError(".webcast.im.ImDeleteMessage.common: object expected"); + t.common = l.webcast.im.Common.fromObject(e.common) + } + if (e.deleteMsgIds) + { + if (!Array.isArray(e.deleteMsgIds)) throw TypeError(".webcast.im.ImDeleteMessage.deleteMsgIds: array expected"); + t.deleteMsgIds = []; + for (var n = 0; n < e.deleteMsgIds.length; ++n) a.Long ? (t.deleteMsgIds[n] = a.Long.fromValue(e.deleteMsgIds[n])).unsigned = !1 : "string" == typeof e.deleteMsgIds[n] ? t.deleteMsgIds[n] = parseInt(e.deleteMsgIds[n], 10) : "number" == typeof e.deleteMsgIds[n] ? t.deleteMsgIds[n] = e.deleteMsgIds[n] : "object" == typeof e.deleteMsgIds[n] && (t.deleteMsgIds[n] = new a.LongBits(e.deleteMsgIds[n].low >>> 0, e.deleteMsgIds[n].high >>> 0).toNumber()) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.deleteMsgIds = []), t.defaults && (n.common = null), null != e.common && e.hasOwnProperty("common") && (n.common = l.webcast.im.Common.toObject(e.common, t)), e.deleteMsgIds && e.deleteMsgIds.length) + { + n.deleteMsgIds = []; + for (var r = 0; r < e.deleteMsgIds.length; ++r) "number" == typeof e.deleteMsgIds[r] ? n.deleteMsgIds[r] = t.longs === String ? String(e.deleteMsgIds[r]) : e.deleteMsgIds[r] : n.deleteMsgIds[r] = t.longs === String ? a.Long.prototype.toString.call(e.deleteMsgIds[r]) : t.longs === Number ? new a.LongBits(e.deleteMsgIds[r].low >>> 0, e.deleteMsgIds[r].high >>> 0).toNumber() : e.deleteMsgIds[r] + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LikeMessage = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.common = null, e.prototype.count = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.total = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.color = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.user = null, e.prototype.icon = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.common && Object.hasOwnProperty.call(e, "common") && l.webcast.im.Common.encode(e.common, t.uint32(10).fork()).ldelim(), null != e.count && Object.hasOwnProperty.call(e, "count") && t.uint32(16).int64(e.count), null != e.total && Object.hasOwnProperty.call(e, "total") && t.uint32(24).int64(e.total), null != e.color && Object.hasOwnProperty.call(e, "color") && t.uint32(32).int64(e.color), null != e.user && Object.hasOwnProperty.call(e, "user") && l.webcast.data.User.encode(e.user, t.uint32(42).fork()).ldelim(), null != e.icon && Object.hasOwnProperty.call(e, "icon") && t.uint32(50).string(e.icon), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LikeMessage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.common = l.webcast.im.Common.decode(e, e.uint32()); + break; + case 2: + r.count = e.int64(); + break; + case 3: + r.total = e.int64(); + break; + case 4: + r.color = e.int64(); + break; + case 5: + r.user = l.webcast.data.User.decode(e, e.uint32()); + break; + case 6: + r.icon = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.common && e.hasOwnProperty("common") && (t = l.webcast.im.Common.verify(e.common))) return "common." + t; + if (null != e.count && e.hasOwnProperty("count") && !(a.isInteger(e.count) || e.count && a.isInteger(e.count.low) && a.isInteger(e.count.high))) return "count: integer|Long expected"; + if (null != e.total && e.hasOwnProperty("total") && !(a.isInteger(e.total) || e.total && a.isInteger(e.total.low) && a.isInteger(e.total.high))) return "total: integer|Long expected"; + if (null != e.color && e.hasOwnProperty("color") && !(a.isInteger(e.color) || e.color && a.isInteger(e.color.low) && a.isInteger(e.color.high))) return "color: integer|Long expected"; + if (null != e.user && e.hasOwnProperty("user") && (t = l.webcast.data.User.verify(e.user))) return "user." + t; + return null != e.icon && e.hasOwnProperty("icon") && !a.isString(e.icon) ? "icon: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LikeMessage) return e; + var t = new l.webcast.im.LikeMessage; + if (null != e.common) + { + if ("object" != typeof e.common) throw TypeError(".webcast.im.LikeMessage.common: object expected"); + t.common = l.webcast.im.Common.fromObject(e.common) + } + if (null != e.count && (a.Long ? (t.count = a.Long.fromValue(e.count)).unsigned = !1 : "string" == typeof e.count ? t.count = parseInt(e.count, 10) : "number" == typeof e.count ? t.count = e.count : "object" == typeof e.count && (t.count = new a.LongBits(e.count.low >>> 0, e.count.high >>> 0).toNumber())), null != e.total && (a.Long ? (t.total = a.Long.fromValue(e.total)).unsigned = !1 : "string" == typeof e.total ? t.total = parseInt(e.total, 10) : "number" == typeof e.total ? t.total = e.total : "object" == typeof e.total && (t.total = new a.LongBits(e.total.low >>> 0, e.total.high >>> 0).toNumber())), null != e.color && (a.Long ? (t.color = a.Long.fromValue(e.color)).unsigned = !1 : "string" == typeof e.color ? t.color = parseInt(e.color, 10) : "number" == typeof e.color ? t.color = e.color : "object" == typeof e.color && (t.color = new a.LongBits(e.color.low >>> 0, e.color.high >>> 0).toNumber())), null != e.user) + { + if ("object" != typeof e.user) throw TypeError(".webcast.im.LikeMessage.user: object expected"); + t.user = l.webcast.data.User.fromObject(e.user) + } + return null != e.icon && (t.icon = String(e.icon)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.common = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.count = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.count = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.total = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.total = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.color = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.color = t.longs === String ? "0" : 0; + n.user = null, n.icon = "" + } + return null != e.common && e.hasOwnProperty("common") && (n.common = l.webcast.im.Common.toObject(e.common, t)), null != e.count && e.hasOwnProperty("count") && ("number" == typeof e.count ? n.count = t.longs === String ? String(e.count) : e.count : n.count = t.longs === String ? a.Long.prototype.toString.call(e.count) : t.longs === Number ? new a.LongBits(e.count.low >>> 0, e.count.high >>> 0).toNumber() : e.count), null != e.total && e.hasOwnProperty("total") && ("number" == typeof e.total ? n.total = t.longs === String ? String(e.total) : e.total : n.total = t.longs === String ? a.Long.prototype.toString.call(e.total) : t.longs === Number ? new a.LongBits(e.total.low >>> 0, e.total.high >>> 0).toNumber() : e.total), null != e.color && e.hasOwnProperty("color") && ("number" == typeof e.color ? n.color = t.longs === String ? String(e.color) : e.color : n.color = t.longs === String ? a.Long.prototype.toString.call(e.color) : t.longs === Number ? new a.LongBits(e.color.low >>> 0, e.color.high >>> 0).toNumber() : e.color), null != e.user && e.hasOwnProperty("user") && (n.user = l.webcast.data.User.toObject(e.user, t)), null != e.icon && e.hasOwnProperty("icon") && (n.icon = e.icon), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerSceneType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "Scene_Unknown"] = 0, t[e[1] = "Scene_PK"] = 1, t[e[2] = "Scene_AnchorLinkmic"] = 2, t[e[3] = "Scene_VirutalPK"] = 3, t[e[4] = "Scene_AudienceLinkmic"] = 4, t[e[5] = "Scene_AudioChatRoom"] = 5, t[e[6] = "Scene_CloudGame"] = 6, t[e[7] = "Scene_AnchorMultiLinkmic"] = 7, t[e[8] = "Scene_VideoChatRoom"] = 8, t + }(), e.ChannelActionType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "ChannelAction_Unknown"] = 0, t[e[1] = "ChannelAction_Join"] = 1, t[e[2] = "ChannelAction_Leave"] = 2, t[e[3] = "ChannelAction_Silence"] = 3, t[e[4] = "ChannelAction_UnSilence"] = 4, t + }(), e.LinkMessageType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "TPYE_LINKER_UNKNOWN"] = 0, t[e[1] = "TYPE_LINKER_CREATE"] = 1, t[e[2] = "TYPE_LINKER_CLOSE"] = 2, t[e[3] = "TYPE_LINKER_INVITE"] = 3, t[e[4] = "TYPE_LINKER_APPLY"] = 4, t[e[5] = "TYPE_LINKER_REPLY"] = 5, t[e[6] = "TPYE_LINKER_ENTER"] = 6, t[e[7] = "TPYE_LINKER_LEAVE"] = 7, t[e[8] = "TYPE_LINKER_PERMIT"] = 8, t[e[9] = "TPYE_LINKER_CANCEL_INVITE"] = 9, t[e[10] = "TYPE_LINKER_WAITING_LIST_CHANGE"] = 10, t[e[11] = "TYPE_LINKER_LINKED_LIST_CHANGE"] = 11, t[e[12] = "TYPE_LINKER_UPDATE_USER"] = 12, t[e[13] = "TPYE_LINKER_KICK_OUT"] = 13, t[e[14] = "TPYE_LINKER_CANCEL_APPLY"] = 14, t[e[15] = "TYPE_LINKER_BAN"] = 15, t[e[16] = "TYPE_LINKER_DISPATCH_ITEM"] = 16, t[e[17] = "TYPE_LINKER_VIOLATION_REMINDER"] = 17, t[e[18] = "TYPE_LINKER_UPDATE_LINK_TYPE_APPLY"] = 18, t[e[19] = "TYPE_LINKER_UPDATE_LINK_TYPE_REPLY"] = 19, t[e[20] = "TYPE_LINKER_AVATAR_AUDIT"] = 20, t[e[22] = "TYPE_APPlY_EXPIRED"] = 22, t[e[23] = "TYPE_APPLY_STRONG_REMINDER"] = 23, t[e[24] = "TYPE_ANCHOR_STREAM_SWITCH"] = 24, t[e[25] = "TYPE_LINKER_CLICK_SCREEN"] = 25, t[e[26] = "TYPE_LINKER_LOCK_POSITION"] = 26, t[e[27] = "TYPE_LINKER_FOLLOW_STRONG_GUIDE"] = 27, t[e[28] = "TYPE_LINKER_SHARE_VIDEO_IM"] = 28, t[e[29] = "TYPE_GUEST_INVITE"] = 29, t[e[30] = "TYPE_GUEST_EXIT_CAST_SCREEN"] = 30, t[e[31] = "TYPE_LINKER_SWITCH_SCENE"] = 31, t[e[32] = "TYPE_LINK_PHASEINFO"] = 32, t[e[33] = "TYPE_LINKER_CHANGE_PLAY_MODE"] = 33, t[e[34] = "TYPE_LOW_BALANCE_FOR_PAID_LINKMIC"] = 34, t[e[35] = "TYPE_DEGRADE_ALERT"] = 35, t[e[101] = "TPYE_LINKER_SYS_KICK_OUT"] = 101, t + }(), e.FollowUserType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "UnknownUserType"] = 0, t[e[1] = "Anchor"] = 1, t[e[2] = "Guest"] = 2, t[e[3] = "Audience"] = 3, t + }(), e.LinkMessage = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + let t; + return e.prototype.common = null, e.prototype.messageType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.linkerId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.scene = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.inviteContent = null, e.prototype.replyContent = null, e.prototype.createContent = null, e.prototype.closeContent = null, e.prototype.enterContent = null, e.prototype.leaveContent = null, e.prototype.cancelContent = null, e.prototype.kickOutContent = null, e.prototype.linkedListChangeContent = null, e.prototype.updateUserContent = null, e.prototype.waitingListChangeContent = null, e.prototype.banContent = null, e.prototype.itemContent = null, e.prototype.violationReminderContent = null, e.prototype.updateLinkTypeApplyContent = null, e.prototype.updateLinkTypeReplyContent = null, e.prototype.avatarAuditContent = null, e.prototype.applyExpiredContent = null, e.prototype.applyStrongReminderContent = null, e.prototype.anchorStreamSwitchContent = null, e.prototype.clickScreenContent = null, e.prototype.lockPositionContent = null, e.prototype.followStrongGuideContent = null, e.prototype.shareVideoImContent = null, e.prototype.guestInviteContent = null, e.prototype.exitCastScreenContent = null, e.prototype.switchSceneContent = null, e.prototype.linkPhaseEnterNextContent = null, e.prototype.changePlayModeContent = null, e.prototype.lowBalanceForPaidLinkmicContent = null, e.prototype.degradeAlertContent = null, e.prototype.sysKickOutContent = null, e.prototype.fallbackScene = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.extra = "", Object.defineProperty(e.prototype, "content", + { + get: a.oneOfGetter(t = ["inviteContent", "replyContent", "createContent", "closeContent", "enterContent", "leaveContent", "cancelContent", "kickOutContent", "linkedListChangeContent", "updateUserContent", "waitingListChangeContent", "banContent", "itemContent", "violationReminderContent", "updateLinkTypeApplyContent", "updateLinkTypeReplyContent", "avatarAuditContent", "applyExpiredContent", "applyStrongReminderContent", "anchorStreamSwitchContent", "clickScreenContent", "lockPositionContent", "followStrongGuideContent", "shareVideoImContent", "guestInviteContent", "exitCastScreenContent", "switchSceneContent", "linkPhaseEnterNextContent", "changePlayModeContent", "lowBalanceForPaidLinkmicContent", "degradeAlertContent", "sysKickOutContent"]), + set: a.oneOfSetter(t) + }), e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.common && Object.hasOwnProperty.call(e, "common") && l.webcast.im.Common.encode(e.common, t.uint32(10).fork()).ldelim(), null != e.messageType && Object.hasOwnProperty.call(e, "messageType") && t.uint32(16).int64(e.messageType), null != e.linkerId && Object.hasOwnProperty.call(e, "linkerId") && t.uint32(24).int64(e.linkerId), null != e.scene && Object.hasOwnProperty.call(e, "scene") && t.uint32(32).int64(e.scene), null != e.inviteContent && Object.hasOwnProperty.call(e, "inviteContent") && l.webcast.im.LinkerInviteContent.encode(e.inviteContent, t.uint32(42).fork()).ldelim(), null != e.replyContent && Object.hasOwnProperty.call(e, "replyContent") && l.webcast.im.LinkerReplyContent.encode(e.replyContent, t.uint32(50).fork()).ldelim(), null != e.createContent && Object.hasOwnProperty.call(e, "createContent") && l.webcast.im.LinkerCreateContent.encode(e.createContent, t.uint32(58).fork()).ldelim(), null != e.closeContent && Object.hasOwnProperty.call(e, "closeContent") && l.webcast.im.LinkerCloseContent.encode(e.closeContent, t.uint32(66).fork()).ldelim(), null != e.enterContent && Object.hasOwnProperty.call(e, "enterContent") && l.webcast.im.LinkerEnterContent.encode(e.enterContent, t.uint32(74).fork()).ldelim(), null != e.leaveContent && Object.hasOwnProperty.call(e, "leaveContent") && l.webcast.im.LinkerLeaveContent.encode(e.leaveContent, t.uint32(82).fork()).ldelim(), null != e.cancelContent && Object.hasOwnProperty.call(e, "cancelContent") && l.webcast.im.LinkerCancelContent.encode(e.cancelContent, t.uint32(90).fork()).ldelim(), null != e.kickOutContent && Object.hasOwnProperty.call(e, "kickOutContent") && l.webcast.im.LinkerKickOutContent.encode(e.kickOutContent, t.uint32(98).fork()).ldelim(), null != e.linkedListChangeContent && Object.hasOwnProperty.call(e, "linkedListChangeContent") && l.webcast.im.LinkerLinkedListChangeContent.encode(e.linkedListChangeContent, t.uint32(106).fork()).ldelim(), null != e.updateUserContent && Object.hasOwnProperty.call(e, "updateUserContent") && l.webcast.im.LinkerUpdateUserContent.encode(e.updateUserContent, t.uint32(114).fork()).ldelim(), null != e.waitingListChangeContent && Object.hasOwnProperty.call(e, "waitingListChangeContent") && l.webcast.im.LinkerWaitingListChangeContent.encode(e.waitingListChangeContent, t.uint32(122).fork()).ldelim(), null != e.banContent && Object.hasOwnProperty.call(e, "banContent") && l.webcast.im.LinkerBanContent.encode(e.banContent, t.uint32(130).fork()).ldelim(), null != e.itemContent && Object.hasOwnProperty.call(e, "itemContent") && l.webcast.im.LinkerItemContent.encode(e.itemContent, t.uint32(138).fork()).ldelim(), null != e.violationReminderContent && Object.hasOwnProperty.call(e, "violationReminderContent") && l.webcast.im.LinkerViolationReminderContent.encode(e.violationReminderContent, t.uint32(146).fork()).ldelim(), null != e.updateLinkTypeApplyContent && Object.hasOwnProperty.call(e, "updateLinkTypeApplyContent") && l.webcast.im.LinkerUpdateLinkTypeApplyContent.encode(e.updateLinkTypeApplyContent, t.uint32(154).fork()).ldelim(), null != e.updateLinkTypeReplyContent && Object.hasOwnProperty.call(e, "updateLinkTypeReplyContent") && l.webcast.im.LinkerUpdateLinkTypeReplyContent.encode(e.updateLinkTypeReplyContent, t.uint32(162).fork()).ldelim(), null != e.avatarAuditContent && Object.hasOwnProperty.call(e, "avatarAuditContent") && l.webcast.im.LinkerAvatarAuditContent.encode(e.avatarAuditContent, t.uint32(170).fork()).ldelim(), null != e.applyExpiredContent && Object.hasOwnProperty.call(e, "applyExpiredContent") && l.webcast.im.LinkerApplyExpiredContent.encode(e.applyExpiredContent, t.uint32(178).fork()).ldelim(), null != e.applyStrongReminderContent && Object.hasOwnProperty.call(e, "applyStrongReminderContent") && l.webcast.im.LinkerApplyStrongReminderContent.encode(e.applyStrongReminderContent, t.uint32(186).fork()).ldelim(), null != e.anchorStreamSwitchContent && Object.hasOwnProperty.call(e, "anchorStreamSwitchContent") && l.webcast.im.LinkerAnchorStreamSwitchContent.encode(e.anchorStreamSwitchContent, t.uint32(194).fork()).ldelim(), null != e.clickScreenContent && Object.hasOwnProperty.call(e, "clickScreenContent") && l.webcast.im.LinkerClickScreenContent.encode(e.clickScreenContent, t.uint32(202).fork()).ldelim(), null != e.lockPositionContent && Object.hasOwnProperty.call(e, "lockPositionContent") && l.webcast.im.LinkerLockPositionContent.encode(e.lockPositionContent, t.uint32(210).fork()).ldelim(), null != e.followStrongGuideContent && Object.hasOwnProperty.call(e, "followStrongGuideContent") && l.webcast.im.LinkerFollowStrongGuideContent.encode(e.followStrongGuideContent, t.uint32(218).fork()).ldelim(), null != e.shareVideoImContent && Object.hasOwnProperty.call(e, "shareVideoImContent") && l.webcast.im.LinkerShareVideoImContent.encode(e.shareVideoImContent, t.uint32(226).fork()).ldelim(), null != e.guestInviteContent && Object.hasOwnProperty.call(e, "guestInviteContent") && l.webcast.im.LinkerGuestInviteContent.encode(e.guestInviteContent, t.uint32(234).fork()).ldelim(), null != e.exitCastScreenContent && Object.hasOwnProperty.call(e, "exitCastScreenContent") && l.webcast.im.LinkerGuestExitCastScreenContent.encode(e.exitCastScreenContent, t.uint32(242).fork()).ldelim(), null != e.switchSceneContent && Object.hasOwnProperty.call(e, "switchSceneContent") && l.webcast.im.LinkerSwitchSceneContent.encode(e.switchSceneContent, t.uint32(250).fork()).ldelim(), null != e.linkPhaseEnterNextContent && Object.hasOwnProperty.call(e, "linkPhaseEnterNextContent") && l.webcast.im.LinkPhaseEnterNextNotifyContent.encode(e.linkPhaseEnterNextContent, t.uint32(258).fork()).ldelim(), null != e.changePlayModeContent && Object.hasOwnProperty.call(e, "changePlayModeContent") && l.webcast.im.LinkerChangePlayModeContent.encode(e.changePlayModeContent, t.uint32(266).fork()).ldelim(), null != e.lowBalanceForPaidLinkmicContent && Object.hasOwnProperty.call(e, "lowBalanceForPaidLinkmicContent") && l.webcast.im.LinkerLowBalanceForPaidLinkmicContent.encode(e.lowBalanceForPaidLinkmicContent, t.uint32(274).fork()).ldelim(), null != e.degradeAlertContent && Object.hasOwnProperty.call(e, "degradeAlertContent") && l.webcast.im.LinkerDegradeAlertContent.encode(e.degradeAlertContent, t.uint32(282).fork()).ldelim(), null != e.sysKickOutContent && Object.hasOwnProperty.call(e, "sysKickOutContent") && l.webcast.im.LinkerSysKickOutContent.encode(e.sysKickOutContent, t.uint32(810).fork()).ldelim(), null != e.fallbackScene && Object.hasOwnProperty.call(e, "fallbackScene") && t.uint32(1592).int64(e.fallbackScene), null != e.extra && Object.hasOwnProperty.call(e, "extra") && t.uint32(1602).string(e.extra), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkMessage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.common = l.webcast.im.Common.decode(e, e.uint32()); + break; + case 2: + r.messageType = e.int64(); + break; + case 3: + r.linkerId = e.int64(); + break; + case 4: + r.scene = e.int64(); + break; + case 5: + r.inviteContent = l.webcast.im.LinkerInviteContent.decode(e, e.uint32()); + break; + case 6: + r.replyContent = l.webcast.im.LinkerReplyContent.decode(e, e.uint32()); + break; + case 7: + r.createContent = l.webcast.im.LinkerCreateContent.decode(e, e.uint32()); + break; + case 8: + r.closeContent = l.webcast.im.LinkerCloseContent.decode(e, e.uint32()); + break; + case 9: + r.enterContent = l.webcast.im.LinkerEnterContent.decode(e, e.uint32()); + break; + case 10: + r.leaveContent = l.webcast.im.LinkerLeaveContent.decode(e, e.uint32()); + break; + case 11: + r.cancelContent = l.webcast.im.LinkerCancelContent.decode(e, e.uint32()); + break; + case 12: + r.kickOutContent = l.webcast.im.LinkerKickOutContent.decode(e, e.uint32()); + break; + case 13: + r.linkedListChangeContent = l.webcast.im.LinkerLinkedListChangeContent.decode(e, e.uint32()); + break; + case 14: + r.updateUserContent = l.webcast.im.LinkerUpdateUserContent.decode(e, e.uint32()); + break; + case 15: + r.waitingListChangeContent = l.webcast.im.LinkerWaitingListChangeContent.decode(e, e.uint32()); + break; + case 16: + r.banContent = l.webcast.im.LinkerBanContent.decode(e, e.uint32()); + break; + case 17: + r.itemContent = l.webcast.im.LinkerItemContent.decode(e, e.uint32()); + break; + case 18: + r.violationReminderContent = l.webcast.im.LinkerViolationReminderContent.decode(e, e.uint32()); + break; + case 19: + r.updateLinkTypeApplyContent = l.webcast.im.LinkerUpdateLinkTypeApplyContent.decode(e, e.uint32()); + break; + case 20: + r.updateLinkTypeReplyContent = l.webcast.im.LinkerUpdateLinkTypeReplyContent.decode(e, e.uint32()); + break; + case 21: + r.avatarAuditContent = l.webcast.im.LinkerAvatarAuditContent.decode(e, e.uint32()); + break; + case 22: + r.applyExpiredContent = l.webcast.im.LinkerApplyExpiredContent.decode(e, e.uint32()); + break; + case 23: + r.applyStrongReminderContent = l.webcast.im.LinkerApplyStrongReminderContent.decode(e, e.uint32()); + break; + case 24: + r.anchorStreamSwitchContent = l.webcast.im.LinkerAnchorStreamSwitchContent.decode(e, e.uint32()); + break; + case 25: + r.clickScreenContent = l.webcast.im.LinkerClickScreenContent.decode(e, e.uint32()); + break; + case 26: + r.lockPositionContent = l.webcast.im.LinkerLockPositionContent.decode(e, e.uint32()); + break; + case 27: + r.followStrongGuideContent = l.webcast.im.LinkerFollowStrongGuideContent.decode(e, e.uint32()); + break; + case 28: + r.shareVideoImContent = l.webcast.im.LinkerShareVideoImContent.decode(e, e.uint32()); + break; + case 29: + r.guestInviteContent = l.webcast.im.LinkerGuestInviteContent.decode(e, e.uint32()); + break; + case 30: + r.exitCastScreenContent = l.webcast.im.LinkerGuestExitCastScreenContent.decode(e, e.uint32()); + break; + case 31: + r.switchSceneContent = l.webcast.im.LinkerSwitchSceneContent.decode(e, e.uint32()); + break; + case 32: + r.linkPhaseEnterNextContent = l.webcast.im.LinkPhaseEnterNextNotifyContent.decode(e, e.uint32()); + break; + case 33: + r.changePlayModeContent = l.webcast.im.LinkerChangePlayModeContent.decode(e, e.uint32()); + break; + case 34: + r.lowBalanceForPaidLinkmicContent = l.webcast.im.LinkerLowBalanceForPaidLinkmicContent.decode(e, e.uint32()); + break; + case 35: + r.degradeAlertContent = l.webcast.im.LinkerDegradeAlertContent.decode(e, e.uint32()); + break; + case 101: + r.sysKickOutContent = l.webcast.im.LinkerSysKickOutContent.decode(e, e.uint32()); + break; + case 199: + r.fallbackScene = e.int64(); + break; + case 200: + r.extra = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t = {}; + if (null != e.common && e.hasOwnProperty("common") && (n = l.webcast.im.Common.verify(e.common))) return "common." + n; + if (null != e.messageType && e.hasOwnProperty("messageType") && !(a.isInteger(e.messageType) || e.messageType && a.isInteger(e.messageType.low) && a.isInteger(e.messageType.high))) return "messageType: integer|Long expected"; + if (null != e.linkerId && e.hasOwnProperty("linkerId") && !(a.isInteger(e.linkerId) || e.linkerId && a.isInteger(e.linkerId.low) && a.isInteger(e.linkerId.high))) return "linkerId: integer|Long expected"; + if (null != e.scene && e.hasOwnProperty("scene") && !(a.isInteger(e.scene) || e.scene && a.isInteger(e.scene.low) && a.isInteger(e.scene.high))) return "scene: integer|Long expected"; + if (null != e.inviteContent && e.hasOwnProperty("inviteContent") && (t.content = 1, n = l.webcast.im.LinkerInviteContent.verify(e.inviteContent))) return "inviteContent." + n; + if (null != e.replyContent && e.hasOwnProperty("replyContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerReplyContent.verify(e.replyContent)) return "replyContent." + n + } + if (null != e.createContent && e.hasOwnProperty("createContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerCreateContent.verify(e.createContent)) return "createContent." + n + } + if (null != e.closeContent && e.hasOwnProperty("closeContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerCloseContent.verify(e.closeContent)) return "closeContent." + n + } + if (null != e.enterContent && e.hasOwnProperty("enterContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerEnterContent.verify(e.enterContent)) return "enterContent." + n + } + if (null != e.leaveContent && e.hasOwnProperty("leaveContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerLeaveContent.verify(e.leaveContent)) return "leaveContent." + n + } + if (null != e.cancelContent && e.hasOwnProperty("cancelContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerCancelContent.verify(e.cancelContent)) return "cancelContent." + n + } + if (null != e.kickOutContent && e.hasOwnProperty("kickOutContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerKickOutContent.verify(e.kickOutContent)) return "kickOutContent." + n + } + if (null != e.linkedListChangeContent && e.hasOwnProperty("linkedListChangeContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerLinkedListChangeContent.verify(e.linkedListChangeContent)) return "linkedListChangeContent." + n + } + if (null != e.updateUserContent && e.hasOwnProperty("updateUserContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerUpdateUserContent.verify(e.updateUserContent)) return "updateUserContent." + n + } + if (null != e.waitingListChangeContent && e.hasOwnProperty("waitingListChangeContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerWaitingListChangeContent.verify(e.waitingListChangeContent)) return "waitingListChangeContent." + n + } + if (null != e.banContent && e.hasOwnProperty("banContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerBanContent.verify(e.banContent)) return "banContent." + n + } + if (null != e.itemContent && e.hasOwnProperty("itemContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerItemContent.verify(e.itemContent)) return "itemContent." + n + } + if (null != e.violationReminderContent && e.hasOwnProperty("violationReminderContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerViolationReminderContent.verify(e.violationReminderContent)) return "violationReminderContent." + n + } + if (null != e.updateLinkTypeApplyContent && e.hasOwnProperty("updateLinkTypeApplyContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerUpdateLinkTypeApplyContent.verify(e.updateLinkTypeApplyContent)) return "updateLinkTypeApplyContent." + n + } + if (null != e.updateLinkTypeReplyContent && e.hasOwnProperty("updateLinkTypeReplyContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerUpdateLinkTypeReplyContent.verify(e.updateLinkTypeReplyContent)) return "updateLinkTypeReplyContent." + n + } + if (null != e.avatarAuditContent && e.hasOwnProperty("avatarAuditContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerAvatarAuditContent.verify(e.avatarAuditContent)) return "avatarAuditContent." + n + } + if (null != e.applyExpiredContent && e.hasOwnProperty("applyExpiredContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerApplyExpiredContent.verify(e.applyExpiredContent)) return "applyExpiredContent." + n + } + if (null != e.applyStrongReminderContent && e.hasOwnProperty("applyStrongReminderContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerApplyStrongReminderContent.verify(e.applyStrongReminderContent)) return "applyStrongReminderContent." + n + } + if (null != e.anchorStreamSwitchContent && e.hasOwnProperty("anchorStreamSwitchContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerAnchorStreamSwitchContent.verify(e.anchorStreamSwitchContent)) return "anchorStreamSwitchContent." + n + } + if (null != e.clickScreenContent && e.hasOwnProperty("clickScreenContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerClickScreenContent.verify(e.clickScreenContent)) return "clickScreenContent." + n + } + if (null != e.lockPositionContent && e.hasOwnProperty("lockPositionContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerLockPositionContent.verify(e.lockPositionContent)) return "lockPositionContent." + n + } + if (null != e.followStrongGuideContent && e.hasOwnProperty("followStrongGuideContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerFollowStrongGuideContent.verify(e.followStrongGuideContent)) return "followStrongGuideContent." + n + } + if (null != e.shareVideoImContent && e.hasOwnProperty("shareVideoImContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerShareVideoImContent.verify(e.shareVideoImContent)) return "shareVideoImContent." + n + } + if (null != e.guestInviteContent && e.hasOwnProperty("guestInviteContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerGuestInviteContent.verify(e.guestInviteContent)) return "guestInviteContent." + n + } + if (null != e.exitCastScreenContent && e.hasOwnProperty("exitCastScreenContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerGuestExitCastScreenContent.verify(e.exitCastScreenContent)) return "exitCastScreenContent." + n + } + if (null != e.switchSceneContent && e.hasOwnProperty("switchSceneContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerSwitchSceneContent.verify(e.switchSceneContent)) return "switchSceneContent." + n + } + if (null != e.linkPhaseEnterNextContent && e.hasOwnProperty("linkPhaseEnterNextContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkPhaseEnterNextNotifyContent.verify(e.linkPhaseEnterNextContent)) return "linkPhaseEnterNextContent." + n + } + if (null != e.changePlayModeContent && e.hasOwnProperty("changePlayModeContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerChangePlayModeContent.verify(e.changePlayModeContent)) return "changePlayModeContent." + n + } + if (null != e.lowBalanceForPaidLinkmicContent && e.hasOwnProperty("lowBalanceForPaidLinkmicContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerLowBalanceForPaidLinkmicContent.verify(e.lowBalanceForPaidLinkmicContent)) return "lowBalanceForPaidLinkmicContent." + n + } + if (null != e.degradeAlertContent && e.hasOwnProperty("degradeAlertContent")) + { + if (1 === t.content) return "content: multiple values"; + if (t.content = 1, n = l.webcast.im.LinkerDegradeAlertContent.verify(e.degradeAlertContent)) return "degradeAlertContent." + n + } + if (null != e.sysKickOutContent && e.hasOwnProperty("sysKickOutContent")) + { + if (1 === t.content) return "content: multiple values"; + var n; + if (t.content = 1, n = l.webcast.im.LinkerSysKickOutContent.verify(e.sysKickOutContent)) return "sysKickOutContent." + n + } + return null != e.fallbackScene && e.hasOwnProperty("fallbackScene") && !(a.isInteger(e.fallbackScene) || e.fallbackScene && a.isInteger(e.fallbackScene.low) && a.isInteger(e.fallbackScene.high)) ? "fallbackScene: integer|Long expected" : null != e.extra && e.hasOwnProperty("extra") && !a.isString(e.extra) ? "extra: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkMessage) return e; + var t = new l.webcast.im.LinkMessage; + if (null != e.common) + { + if ("object" != typeof e.common) throw TypeError(".webcast.im.LinkMessage.common: object expected"); + t.common = l.webcast.im.Common.fromObject(e.common) + } + if (null != e.messageType && (a.Long ? (t.messageType = a.Long.fromValue(e.messageType)).unsigned = !1 : "string" == typeof e.messageType ? t.messageType = parseInt(e.messageType, 10) : "number" == typeof e.messageType ? t.messageType = e.messageType : "object" == typeof e.messageType && (t.messageType = new a.LongBits(e.messageType.low >>> 0, e.messageType.high >>> 0).toNumber())), null != e.linkerId && (a.Long ? (t.linkerId = a.Long.fromValue(e.linkerId)).unsigned = !1 : "string" == typeof e.linkerId ? t.linkerId = parseInt(e.linkerId, 10) : "number" == typeof e.linkerId ? t.linkerId = e.linkerId : "object" == typeof e.linkerId && (t.linkerId = new a.LongBits(e.linkerId.low >>> 0, e.linkerId.high >>> 0).toNumber())), null != e.scene && (a.Long ? (t.scene = a.Long.fromValue(e.scene)).unsigned = !1 : "string" == typeof e.scene ? t.scene = parseInt(e.scene, 10) : "number" == typeof e.scene ? t.scene = e.scene : "object" == typeof e.scene && (t.scene = new a.LongBits(e.scene.low >>> 0, e.scene.high >>> 0).toNumber())), null != e.inviteContent) + { + if ("object" != typeof e.inviteContent) throw TypeError(".webcast.im.LinkMessage.inviteContent: object expected"); + t.inviteContent = l.webcast.im.LinkerInviteContent.fromObject(e.inviteContent) + } + if (null != e.replyContent) + { + if ("object" != typeof e.replyContent) throw TypeError(".webcast.im.LinkMessage.replyContent: object expected"); + t.replyContent = l.webcast.im.LinkerReplyContent.fromObject(e.replyContent) + } + if (null != e.createContent) + { + if ("object" != typeof e.createContent) throw TypeError(".webcast.im.LinkMessage.createContent: object expected"); + t.createContent = l.webcast.im.LinkerCreateContent.fromObject(e.createContent) + } + if (null != e.closeContent) + { + if ("object" != typeof e.closeContent) throw TypeError(".webcast.im.LinkMessage.closeContent: object expected"); + t.closeContent = l.webcast.im.LinkerCloseContent.fromObject(e.closeContent) + } + if (null != e.enterContent) + { + if ("object" != typeof e.enterContent) throw TypeError(".webcast.im.LinkMessage.enterContent: object expected"); + t.enterContent = l.webcast.im.LinkerEnterContent.fromObject(e.enterContent) + } + if (null != e.leaveContent) + { + if ("object" != typeof e.leaveContent) throw TypeError(".webcast.im.LinkMessage.leaveContent: object expected"); + t.leaveContent = l.webcast.im.LinkerLeaveContent.fromObject(e.leaveContent) + } + if (null != e.cancelContent) + { + if ("object" != typeof e.cancelContent) throw TypeError(".webcast.im.LinkMessage.cancelContent: object expected"); + t.cancelContent = l.webcast.im.LinkerCancelContent.fromObject(e.cancelContent) + } + if (null != e.kickOutContent) + { + if ("object" != typeof e.kickOutContent) throw TypeError(".webcast.im.LinkMessage.kickOutContent: object expected"); + t.kickOutContent = l.webcast.im.LinkerKickOutContent.fromObject(e.kickOutContent) + } + if (null != e.linkedListChangeContent) + { + if ("object" != typeof e.linkedListChangeContent) throw TypeError(".webcast.im.LinkMessage.linkedListChangeContent: object expected"); + t.linkedListChangeContent = l.webcast.im.LinkerLinkedListChangeContent.fromObject(e.linkedListChangeContent) + } + if (null != e.updateUserContent) + { + if ("object" != typeof e.updateUserContent) throw TypeError(".webcast.im.LinkMessage.updateUserContent: object expected"); + t.updateUserContent = l.webcast.im.LinkerUpdateUserContent.fromObject(e.updateUserContent) + } + if (null != e.waitingListChangeContent) + { + if ("object" != typeof e.waitingListChangeContent) throw TypeError(".webcast.im.LinkMessage.waitingListChangeContent: object expected"); + t.waitingListChangeContent = l.webcast.im.LinkerWaitingListChangeContent.fromObject(e.waitingListChangeContent) + } + if (null != e.banContent) + { + if ("object" != typeof e.banContent) throw TypeError(".webcast.im.LinkMessage.banContent: object expected"); + t.banContent = l.webcast.im.LinkerBanContent.fromObject(e.banContent) + } + if (null != e.itemContent) + { + if ("object" != typeof e.itemContent) throw TypeError(".webcast.im.LinkMessage.itemContent: object expected"); + t.itemContent = l.webcast.im.LinkerItemContent.fromObject(e.itemContent) + } + if (null != e.violationReminderContent) + { + if ("object" != typeof e.violationReminderContent) throw TypeError(".webcast.im.LinkMessage.violationReminderContent: object expected"); + t.violationReminderContent = l.webcast.im.LinkerViolationReminderContent.fromObject(e.violationReminderContent) + } + if (null != e.updateLinkTypeApplyContent) + { + if ("object" != typeof e.updateLinkTypeApplyContent) throw TypeError(".webcast.im.LinkMessage.updateLinkTypeApplyContent: object expected"); + t.updateLinkTypeApplyContent = l.webcast.im.LinkerUpdateLinkTypeApplyContent.fromObject(e.updateLinkTypeApplyContent) + } + if (null != e.updateLinkTypeReplyContent) + { + if ("object" != typeof e.updateLinkTypeReplyContent) throw TypeError(".webcast.im.LinkMessage.updateLinkTypeReplyContent: object expected"); + t.updateLinkTypeReplyContent = l.webcast.im.LinkerUpdateLinkTypeReplyContent.fromObject(e.updateLinkTypeReplyContent) + } + if (null != e.avatarAuditContent) + { + if ("object" != typeof e.avatarAuditContent) throw TypeError(".webcast.im.LinkMessage.avatarAuditContent: object expected"); + t.avatarAuditContent = l.webcast.im.LinkerAvatarAuditContent.fromObject(e.avatarAuditContent) + } + if (null != e.applyExpiredContent) + { + if ("object" != typeof e.applyExpiredContent) throw TypeError(".webcast.im.LinkMessage.applyExpiredContent: object expected"); + t.applyExpiredContent = l.webcast.im.LinkerApplyExpiredContent.fromObject(e.applyExpiredContent) + } + if (null != e.applyStrongReminderContent) + { + if ("object" != typeof e.applyStrongReminderContent) throw TypeError(".webcast.im.LinkMessage.applyStrongReminderContent: object expected"); + t.applyStrongReminderContent = l.webcast.im.LinkerApplyStrongReminderContent.fromObject(e.applyStrongReminderContent) + } + if (null != e.anchorStreamSwitchContent) + { + if ("object" != typeof e.anchorStreamSwitchContent) throw TypeError(".webcast.im.LinkMessage.anchorStreamSwitchContent: object expected"); + t.anchorStreamSwitchContent = l.webcast.im.LinkerAnchorStreamSwitchContent.fromObject(e.anchorStreamSwitchContent) + } + if (null != e.clickScreenContent) + { + if ("object" != typeof e.clickScreenContent) throw TypeError(".webcast.im.LinkMessage.clickScreenContent: object expected"); + t.clickScreenContent = l.webcast.im.LinkerClickScreenContent.fromObject(e.clickScreenContent) + } + if (null != e.lockPositionContent) + { + if ("object" != typeof e.lockPositionContent) throw TypeError(".webcast.im.LinkMessage.lockPositionContent: object expected"); + t.lockPositionContent = l.webcast.im.LinkerLockPositionContent.fromObject(e.lockPositionContent) + } + if (null != e.followStrongGuideContent) + { + if ("object" != typeof e.followStrongGuideContent) throw TypeError(".webcast.im.LinkMessage.followStrongGuideContent: object expected"); + t.followStrongGuideContent = l.webcast.im.LinkerFollowStrongGuideContent.fromObject(e.followStrongGuideContent) + } + if (null != e.shareVideoImContent) + { + if ("object" != typeof e.shareVideoImContent) throw TypeError(".webcast.im.LinkMessage.shareVideoImContent: object expected"); + t.shareVideoImContent = l.webcast.im.LinkerShareVideoImContent.fromObject(e.shareVideoImContent) + } + if (null != e.guestInviteContent) + { + if ("object" != typeof e.guestInviteContent) throw TypeError(".webcast.im.LinkMessage.guestInviteContent: object expected"); + t.guestInviteContent = l.webcast.im.LinkerGuestInviteContent.fromObject(e.guestInviteContent) + } + if (null != e.exitCastScreenContent) + { + if ("object" != typeof e.exitCastScreenContent) throw TypeError(".webcast.im.LinkMessage.exitCastScreenContent: object expected"); + t.exitCastScreenContent = l.webcast.im.LinkerGuestExitCastScreenContent.fromObject(e.exitCastScreenContent) + } + if (null != e.switchSceneContent) + { + if ("object" != typeof e.switchSceneContent) throw TypeError(".webcast.im.LinkMessage.switchSceneContent: object expected"); + t.switchSceneContent = l.webcast.im.LinkerSwitchSceneContent.fromObject(e.switchSceneContent) + } + if (null != e.linkPhaseEnterNextContent) + { + if ("object" != typeof e.linkPhaseEnterNextContent) throw TypeError(".webcast.im.LinkMessage.linkPhaseEnterNextContent: object expected"); + t.linkPhaseEnterNextContent = l.webcast.im.LinkPhaseEnterNextNotifyContent.fromObject(e.linkPhaseEnterNextContent) + } + if (null != e.changePlayModeContent) + { + if ("object" != typeof e.changePlayModeContent) throw TypeError(".webcast.im.LinkMessage.changePlayModeContent: object expected"); + t.changePlayModeContent = l.webcast.im.LinkerChangePlayModeContent.fromObject(e.changePlayModeContent) + } + if (null != e.lowBalanceForPaidLinkmicContent) + { + if ("object" != typeof e.lowBalanceForPaidLinkmicContent) throw TypeError(".webcast.im.LinkMessage.lowBalanceForPaidLinkmicContent: object expected"); + t.lowBalanceForPaidLinkmicContent = l.webcast.im.LinkerLowBalanceForPaidLinkmicContent.fromObject(e.lowBalanceForPaidLinkmicContent) + } + if (null != e.degradeAlertContent) + { + if ("object" != typeof e.degradeAlertContent) throw TypeError(".webcast.im.LinkMessage.degradeAlertContent: object expected"); + t.degradeAlertContent = l.webcast.im.LinkerDegradeAlertContent.fromObject(e.degradeAlertContent) + } + if (null != e.sysKickOutContent) + { + if ("object" != typeof e.sysKickOutContent) throw TypeError(".webcast.im.LinkMessage.sysKickOutContent: object expected"); + t.sysKickOutContent = l.webcast.im.LinkerSysKickOutContent.fromObject(e.sysKickOutContent) + } + return null != e.fallbackScene && (a.Long ? (t.fallbackScene = a.Long.fromValue(e.fallbackScene)).unsigned = !1 : "string" == typeof e.fallbackScene ? t.fallbackScene = parseInt(e.fallbackScene, 10) : "number" == typeof e.fallbackScene ? t.fallbackScene = e.fallbackScene : "object" == typeof e.fallbackScene && (t.fallbackScene = new a.LongBits(e.fallbackScene.low >>> 0, e.fallbackScene.high >>> 0).toNumber())), null != e.extra && (t.extra = String(e.extra)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.common = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.messageType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.messageType = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.linkerId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.linkerId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.scene = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.scene = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.fallbackScene = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fallbackScene = t.longs === String ? "0" : 0; + n.extra = "" + } + return null != e.common && e.hasOwnProperty("common") && (n.common = l.webcast.im.Common.toObject(e.common, t)), null != e.messageType && e.hasOwnProperty("messageType") && ("number" == typeof e.messageType ? n.messageType = t.longs === String ? String(e.messageType) : e.messageType : n.messageType = t.longs === String ? a.Long.prototype.toString.call(e.messageType) : t.longs === Number ? new a.LongBits(e.messageType.low >>> 0, e.messageType.high >>> 0).toNumber() : e.messageType), null != e.linkerId && e.hasOwnProperty("linkerId") && ("number" == typeof e.linkerId ? n.linkerId = t.longs === String ? String(e.linkerId) : e.linkerId : n.linkerId = t.longs === String ? a.Long.prototype.toString.call(e.linkerId) : t.longs === Number ? new a.LongBits(e.linkerId.low >>> 0, e.linkerId.high >>> 0).toNumber() : e.linkerId), null != e.scene && e.hasOwnProperty("scene") && ("number" == typeof e.scene ? n.scene = t.longs === String ? String(e.scene) : e.scene : n.scene = t.longs === String ? a.Long.prototype.toString.call(e.scene) : t.longs === Number ? new a.LongBits(e.scene.low >>> 0, e.scene.high >>> 0).toNumber() : e.scene), null != e.inviteContent && e.hasOwnProperty("inviteContent") && (n.inviteContent = l.webcast.im.LinkerInviteContent.toObject(e.inviteContent, t), t.oneofs && (n.content = "inviteContent")), null != e.replyContent && e.hasOwnProperty("replyContent") && (n.replyContent = l.webcast.im.LinkerReplyContent.toObject(e.replyContent, t), t.oneofs && (n.content = "replyContent")), null != e.createContent && e.hasOwnProperty("createContent") && (n.createContent = l.webcast.im.LinkerCreateContent.toObject(e.createContent, t), t.oneofs && (n.content = "createContent")), null != e.closeContent && e.hasOwnProperty("closeContent") && (n.closeContent = l.webcast.im.LinkerCloseContent.toObject(e.closeContent, t), t.oneofs && (n.content = "closeContent")), null != e.enterContent && e.hasOwnProperty("enterContent") && (n.enterContent = l.webcast.im.LinkerEnterContent.toObject(e.enterContent, t), t.oneofs && (n.content = "enterContent")), null != e.leaveContent && e.hasOwnProperty("leaveContent") && (n.leaveContent = l.webcast.im.LinkerLeaveContent.toObject(e.leaveContent, t), t.oneofs && (n.content = "leaveContent")), null != e.cancelContent && e.hasOwnProperty("cancelContent") && (n.cancelContent = l.webcast.im.LinkerCancelContent.toObject(e.cancelContent, t), t.oneofs && (n.content = "cancelContent")), null != e.kickOutContent && e.hasOwnProperty("kickOutContent") && (n.kickOutContent = l.webcast.im.LinkerKickOutContent.toObject(e.kickOutContent, t), t.oneofs && (n.content = "kickOutContent")), null != e.linkedListChangeContent && e.hasOwnProperty("linkedListChangeContent") && (n.linkedListChangeContent = l.webcast.im.LinkerLinkedListChangeContent.toObject(e.linkedListChangeContent, t), t.oneofs && (n.content = "linkedListChangeContent")), null != e.updateUserContent && e.hasOwnProperty("updateUserContent") && (n.updateUserContent = l.webcast.im.LinkerUpdateUserContent.toObject(e.updateUserContent, t), t.oneofs && (n.content = "updateUserContent")), null != e.waitingListChangeContent && e.hasOwnProperty("waitingListChangeContent") && (n.waitingListChangeContent = l.webcast.im.LinkerWaitingListChangeContent.toObject(e.waitingListChangeContent, t), t.oneofs && (n.content = "waitingListChangeContent")), null != e.banContent && e.hasOwnProperty("banContent") && (n.banContent = l.webcast.im.LinkerBanContent.toObject(e.banContent, t), t.oneofs && (n.content = "banContent")), null != e.itemContent && e.hasOwnProperty("itemContent") && (n.itemContent = l.webcast.im.LinkerItemContent.toObject(e.itemContent, t), t.oneofs && (n.content = "itemContent")), null != e.violationReminderContent && e.hasOwnProperty("violationReminderContent") && (n.violationReminderContent = l.webcast.im.LinkerViolationReminderContent.toObject(e.violationReminderContent, t), t.oneofs && (n.content = "violationReminderContent")), null != e.updateLinkTypeApplyContent && e.hasOwnProperty("updateLinkTypeApplyContent") && (n.updateLinkTypeApplyContent = l.webcast.im.LinkerUpdateLinkTypeApplyContent.toObject(e.updateLinkTypeApplyContent, t), t.oneofs && (n.content = "updateLinkTypeApplyContent")), null != e.updateLinkTypeReplyContent && e.hasOwnProperty("updateLinkTypeReplyContent") && (n.updateLinkTypeReplyContent = l.webcast.im.LinkerUpdateLinkTypeReplyContent.toObject(e.updateLinkTypeReplyContent, t), t.oneofs && (n.content = "updateLinkTypeReplyContent")), null != e.avatarAuditContent && e.hasOwnProperty("avatarAuditContent") && (n.avatarAuditContent = l.webcast.im.LinkerAvatarAuditContent.toObject(e.avatarAuditContent, t), t.oneofs && (n.content = "avatarAuditContent")), null != e.applyExpiredContent && e.hasOwnProperty("applyExpiredContent") && (n.applyExpiredContent = l.webcast.im.LinkerApplyExpiredContent.toObject(e.applyExpiredContent, t), t.oneofs && (n.content = "applyExpiredContent")), null != e.applyStrongReminderContent && e.hasOwnProperty("applyStrongReminderContent") && (n.applyStrongReminderContent = l.webcast.im.LinkerApplyStrongReminderContent.toObject(e.applyStrongReminderContent, t), t.oneofs && (n.content = "applyStrongReminderContent")), null != e.anchorStreamSwitchContent && e.hasOwnProperty("anchorStreamSwitchContent") && (n.anchorStreamSwitchContent = l.webcast.im.LinkerAnchorStreamSwitchContent.toObject(e.anchorStreamSwitchContent, t), t.oneofs && (n.content = "anchorStreamSwitchContent")), null != e.clickScreenContent && e.hasOwnProperty("clickScreenContent") && (n.clickScreenContent = l.webcast.im.LinkerClickScreenContent.toObject(e.clickScreenContent, t), t.oneofs && (n.content = "clickScreenContent")), null != e.lockPositionContent && e.hasOwnProperty("lockPositionContent") && (n.lockPositionContent = l.webcast.im.LinkerLockPositionContent.toObject(e.lockPositionContent, t), t.oneofs && (n.content = "lockPositionContent")), null != e.followStrongGuideContent && e.hasOwnProperty("followStrongGuideContent") && (n.followStrongGuideContent = l.webcast.im.LinkerFollowStrongGuideContent.toObject(e.followStrongGuideContent, t), t.oneofs && (n.content = "followStrongGuideContent")), null != e.shareVideoImContent && e.hasOwnProperty("shareVideoImContent") && (n.shareVideoImContent = l.webcast.im.LinkerShareVideoImContent.toObject(e.shareVideoImContent, t), t.oneofs && (n.content = "shareVideoImContent")), null != e.guestInviteContent && e.hasOwnProperty("guestInviteContent") && (n.guestInviteContent = l.webcast.im.LinkerGuestInviteContent.toObject(e.guestInviteContent, t), t.oneofs && (n.content = "guestInviteContent")), null != e.exitCastScreenContent && e.hasOwnProperty("exitCastScreenContent") && (n.exitCastScreenContent = l.webcast.im.LinkerGuestExitCastScreenContent.toObject(e.exitCastScreenContent, t), t.oneofs && (n.content = "exitCastScreenContent")), null != e.switchSceneContent && e.hasOwnProperty("switchSceneContent") && (n.switchSceneContent = l.webcast.im.LinkerSwitchSceneContent.toObject(e.switchSceneContent, t), t.oneofs && (n.content = "switchSceneContent")), null != e.linkPhaseEnterNextContent && e.hasOwnProperty("linkPhaseEnterNextContent") && (n.linkPhaseEnterNextContent = l.webcast.im.LinkPhaseEnterNextNotifyContent.toObject(e.linkPhaseEnterNextContent, t), t.oneofs && (n.content = "linkPhaseEnterNextContent")), null != e.changePlayModeContent && e.hasOwnProperty("changePlayModeContent") && (n.changePlayModeContent = l.webcast.im.LinkerChangePlayModeContent.toObject(e.changePlayModeContent, t), t.oneofs && (n.content = "changePlayModeContent")), null != e.lowBalanceForPaidLinkmicContent && e.hasOwnProperty("lowBalanceForPaidLinkmicContent") && (n.lowBalanceForPaidLinkmicContent = l.webcast.im.LinkerLowBalanceForPaidLinkmicContent.toObject(e.lowBalanceForPaidLinkmicContent, t), t.oneofs && (n.content = "lowBalanceForPaidLinkmicContent")), null != e.degradeAlertContent && e.hasOwnProperty("degradeAlertContent") && (n.degradeAlertContent = l.webcast.im.LinkerDegradeAlertContent.toObject(e.degradeAlertContent, t), t.oneofs && (n.content = "degradeAlertContent")), null != e.sysKickOutContent && e.hasOwnProperty("sysKickOutContent") && (n.sysKickOutContent = l.webcast.im.LinkerSysKickOutContent.toObject(e.sysKickOutContent, t), t.oneofs && (n.content = "sysKickOutContent")), null != e.fallbackScene && e.hasOwnProperty("fallbackScene") && ("number" == typeof e.fallbackScene ? n.fallbackScene = t.longs === String ? String(e.fallbackScene) : e.fallbackScene : n.fallbackScene = t.longs === String ? a.Long.prototype.toString.call(e.fallbackScene) : t.longs === Number ? new a.LongBits(e.fallbackScene.low >>> 0, e.fallbackScene.high >>> 0).toNumber() : e.fallbackScene), null != e.extra && e.hasOwnProperty("extra") && (n.extra = e.extra), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkmicInfo = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.accessKey = "", e.prototype.linkMicId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.joinable = !1, e.prototype.confluenceType = 0, e.prototype.rtcExtInfo = "", e.prototype.rtcAppId = "", e.prototype.rtcAppSign = "", e.prototype.linkmicIdStr = "", e.prototype.vendor = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.liveCoreExtInfo = "", e.prototype.multiRtcInfo = null, e.prototype.multiLiveCoreInfo = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.accessKey && Object.hasOwnProperty.call(e, "accessKey") && t.uint32(10).string(e.accessKey), null != e.linkMicId && Object.hasOwnProperty.call(e, "linkMicId") && t.uint32(16).int64(e.linkMicId), null != e.joinable && Object.hasOwnProperty.call(e, "joinable") && t.uint32(24).bool(e.joinable), null != e.confluenceType && Object.hasOwnProperty.call(e, "confluenceType") && t.uint32(32).int32(e.confluenceType), null != e.rtcExtInfo && Object.hasOwnProperty.call(e, "rtcExtInfo") && t.uint32(42).string(e.rtcExtInfo), null != e.rtcAppId && Object.hasOwnProperty.call(e, "rtcAppId") && t.uint32(50).string(e.rtcAppId), null != e.rtcAppSign && Object.hasOwnProperty.call(e, "rtcAppSign") && t.uint32(58).string(e.rtcAppSign), null != e.linkmicIdStr && Object.hasOwnProperty.call(e, "linkmicIdStr") && t.uint32(66).string(e.linkmicIdStr), null != e.vendor && Object.hasOwnProperty.call(e, "vendor") && t.uint32(72).int64(e.vendor), null != e.liveCoreExtInfo && Object.hasOwnProperty.call(e, "liveCoreExtInfo") && t.uint32(82).string(e.liveCoreExtInfo), null != e.multiRtcInfo && Object.hasOwnProperty.call(e, "multiRtcInfo") && l.webcast.data.MultiRtcInfo.encode(e.multiRtcInfo, t.uint32(90).fork()).ldelim(), null != e.multiLiveCoreInfo && Object.hasOwnProperty.call(e, "multiLiveCoreInfo") && l.webcast.data.MultiLiveCoreInfo.encode(e.multiLiveCoreInfo, t.uint32(98).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkmicInfo; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.accessKey = e.string(); + break; + case 2: + r.linkMicId = e.int64(); + break; + case 3: + r.joinable = e.bool(); + break; + case 4: + r.confluenceType = e.int32(); + break; + case 5: + r.rtcExtInfo = e.string(); + break; + case 6: + r.rtcAppId = e.string(); + break; + case 7: + r.rtcAppSign = e.string(); + break; + case 8: + r.linkmicIdStr = e.string(); + break; + case 9: + r.vendor = e.int64(); + break; + case 10: + r.liveCoreExtInfo = e.string(); + break; + case 11: + r.multiRtcInfo = l.webcast.data.MultiRtcInfo.decode(e, e.uint32()); + break; + case 12: + r.multiLiveCoreInfo = l.webcast.data.MultiLiveCoreInfo.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.accessKey && e.hasOwnProperty("accessKey") && !a.isString(e.accessKey)) return "accessKey: string expected"; + if (null != e.linkMicId && e.hasOwnProperty("linkMicId") && !(a.isInteger(e.linkMicId) || e.linkMicId && a.isInteger(e.linkMicId.low) && a.isInteger(e.linkMicId.high))) return "linkMicId: integer|Long expected"; + if (null != e.joinable && e.hasOwnProperty("joinable") && "boolean" != typeof e.joinable) return "joinable: boolean expected"; + if (null != e.confluenceType && e.hasOwnProperty("confluenceType") && !a.isInteger(e.confluenceType)) return "confluenceType: integer expected"; + if (null != e.rtcExtInfo && e.hasOwnProperty("rtcExtInfo") && !a.isString(e.rtcExtInfo)) return "rtcExtInfo: string expected"; + if (null != e.rtcAppId && e.hasOwnProperty("rtcAppId") && !a.isString(e.rtcAppId)) return "rtcAppId: string expected"; + if (null != e.rtcAppSign && e.hasOwnProperty("rtcAppSign") && !a.isString(e.rtcAppSign)) return "rtcAppSign: string expected"; + if (null != e.linkmicIdStr && e.hasOwnProperty("linkmicIdStr") && !a.isString(e.linkmicIdStr)) return "linkmicIdStr: string expected"; + if (null != e.vendor && e.hasOwnProperty("vendor") && !(a.isInteger(e.vendor) || e.vendor && a.isInteger(e.vendor.low) && a.isInteger(e.vendor.high))) return "vendor: integer|Long expected"; + if (null != e.liveCoreExtInfo && e.hasOwnProperty("liveCoreExtInfo") && !a.isString(e.liveCoreExtInfo)) return "liveCoreExtInfo: string expected"; + var t; + if (null != e.multiRtcInfo && e.hasOwnProperty("multiRtcInfo") && (t = l.webcast.data.MultiRtcInfo.verify(e.multiRtcInfo))) return "multiRtcInfo." + t; + if (null != e.multiLiveCoreInfo && e.hasOwnProperty("multiLiveCoreInfo") && (t = l.webcast.data.MultiLiveCoreInfo.verify(e.multiLiveCoreInfo))) return "multiLiveCoreInfo." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkmicInfo) return e; + var t = new l.webcast.im.LinkmicInfo; + if (null != e.accessKey && (t.accessKey = String(e.accessKey)), null != e.linkMicId && (a.Long ? (t.linkMicId = a.Long.fromValue(e.linkMicId)).unsigned = !1 : "string" == typeof e.linkMicId ? t.linkMicId = parseInt(e.linkMicId, 10) : "number" == typeof e.linkMicId ? t.linkMicId = e.linkMicId : "object" == typeof e.linkMicId && (t.linkMicId = new a.LongBits(e.linkMicId.low >>> 0, e.linkMicId.high >>> 0).toNumber())), null != e.joinable && (t.joinable = Boolean(e.joinable)), null != e.confluenceType && (t.confluenceType = 0 | e.confluenceType), null != e.rtcExtInfo && (t.rtcExtInfo = String(e.rtcExtInfo)), null != e.rtcAppId && (t.rtcAppId = String(e.rtcAppId)), null != e.rtcAppSign && (t.rtcAppSign = String(e.rtcAppSign)), null != e.linkmicIdStr && (t.linkmicIdStr = String(e.linkmicIdStr)), null != e.vendor && (a.Long ? (t.vendor = a.Long.fromValue(e.vendor)).unsigned = !1 : "string" == typeof e.vendor ? t.vendor = parseInt(e.vendor, 10) : "number" == typeof e.vendor ? t.vendor = e.vendor : "object" == typeof e.vendor && (t.vendor = new a.LongBits(e.vendor.low >>> 0, e.vendor.high >>> 0).toNumber())), null != e.liveCoreExtInfo && (t.liveCoreExtInfo = String(e.liveCoreExtInfo)), null != e.multiRtcInfo) + { + if ("object" != typeof e.multiRtcInfo) throw TypeError(".webcast.im.LinkmicInfo.multiRtcInfo: object expected"); + t.multiRtcInfo = l.webcast.data.MultiRtcInfo.fromObject(e.multiRtcInfo) + } + if (null != e.multiLiveCoreInfo) + { + if ("object" != typeof e.multiLiveCoreInfo) throw TypeError(".webcast.im.LinkmicInfo.multiLiveCoreInfo: object expected"); + t.multiLiveCoreInfo = l.webcast.data.MultiLiveCoreInfo.fromObject(e.multiLiveCoreInfo) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.accessKey = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.linkMicId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.linkMicId = t.longs === String ? "0" : 0; + if (n.joinable = !1, n.confluenceType = 0, n.rtcExtInfo = "", n.rtcAppId = "", n.rtcAppSign = "", n.linkmicIdStr = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.vendor = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.vendor = t.longs === String ? "0" : 0; + n.liveCoreExtInfo = "", n.multiRtcInfo = null, n.multiLiveCoreInfo = null + } + return null != e.accessKey && e.hasOwnProperty("accessKey") && (n.accessKey = e.accessKey), null != e.linkMicId && e.hasOwnProperty("linkMicId") && ("number" == typeof e.linkMicId ? n.linkMicId = t.longs === String ? String(e.linkMicId) : e.linkMicId : n.linkMicId = t.longs === String ? a.Long.prototype.toString.call(e.linkMicId) : t.longs === Number ? new a.LongBits(e.linkMicId.low >>> 0, e.linkMicId.high >>> 0).toNumber() : e.linkMicId), null != e.joinable && e.hasOwnProperty("joinable") && (n.joinable = e.joinable), null != e.confluenceType && e.hasOwnProperty("confluenceType") && (n.confluenceType = e.confluenceType), null != e.rtcExtInfo && e.hasOwnProperty("rtcExtInfo") && (n.rtcExtInfo = e.rtcExtInfo), null != e.rtcAppId && e.hasOwnProperty("rtcAppId") && (n.rtcAppId = e.rtcAppId), null != e.rtcAppSign && e.hasOwnProperty("rtcAppSign") && (n.rtcAppSign = e.rtcAppSign), null != e.linkmicIdStr && e.hasOwnProperty("linkmicIdStr") && (n.linkmicIdStr = e.linkmicIdStr), null != e.vendor && e.hasOwnProperty("vendor") && ("number" == typeof e.vendor ? n.vendor = t.longs === String ? String(e.vendor) : e.vendor : n.vendor = t.longs === String ? a.Long.prototype.toString.call(e.vendor) : t.longs === Number ? new a.LongBits(e.vendor.low >>> 0, e.vendor.high >>> 0).toNumber() : e.vendor), null != e.liveCoreExtInfo && e.hasOwnProperty("liveCoreExtInfo") && (n.liveCoreExtInfo = e.liveCoreExtInfo), null != e.multiRtcInfo && e.hasOwnProperty("multiRtcInfo") && (n.multiRtcInfo = l.webcast.data.MultiRtcInfo.toObject(e.multiRtcInfo, t)), null != e.multiLiveCoreInfo && e.hasOwnProperty("multiLiveCoreInfo") && (n.multiLiveCoreInfo = l.webcast.data.MultiLiveCoreInfo.toObject(e.multiLiveCoreInfo, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerSetting = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.maxMemberLimit = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.linkType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.scene = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.ownerUserId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.ownerRoomId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.vendor = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.maxMemberLimit && Object.hasOwnProperty.call(e, "maxMemberLimit") && t.uint32(8).int64(e.maxMemberLimit), null != e.linkType && Object.hasOwnProperty.call(e, "linkType") && t.uint32(16).int64(e.linkType), null != e.scene && Object.hasOwnProperty.call(e, "scene") && t.uint32(24).int64(e.scene), null != e.ownerUserId && Object.hasOwnProperty.call(e, "ownerUserId") && t.uint32(32).int64(e.ownerUserId), null != e.ownerRoomId && Object.hasOwnProperty.call(e, "ownerRoomId") && t.uint32(40).int64(e.ownerRoomId), null != e.vendor && Object.hasOwnProperty.call(e, "vendor") && t.uint32(48).int64(e.vendor), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerSetting; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.maxMemberLimit = e.int64(); + break; + case 2: + r.linkType = e.int64(); + break; + case 3: + r.scene = e.int64(); + break; + case 4: + r.ownerUserId = e.int64(); + break; + case 5: + r.ownerRoomId = e.int64(); + break; + case 6: + r.vendor = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.maxMemberLimit && e.hasOwnProperty("maxMemberLimit") && !(a.isInteger(e.maxMemberLimit) || e.maxMemberLimit && a.isInteger(e.maxMemberLimit.low) && a.isInteger(e.maxMemberLimit.high)) ? "maxMemberLimit: integer|Long expected" : null != e.linkType && e.hasOwnProperty("linkType") && !(a.isInteger(e.linkType) || e.linkType && a.isInteger(e.linkType.low) && a.isInteger(e.linkType.high)) ? "linkType: integer|Long expected" : null != e.scene && e.hasOwnProperty("scene") && !(a.isInteger(e.scene) || e.scene && a.isInteger(e.scene.low) && a.isInteger(e.scene.high)) ? "scene: integer|Long expected" : null != e.ownerUserId && e.hasOwnProperty("ownerUserId") && !(a.isInteger(e.ownerUserId) || e.ownerUserId && a.isInteger(e.ownerUserId.low) && a.isInteger(e.ownerUserId.high)) ? "ownerUserId: integer|Long expected" : null != e.ownerRoomId && e.hasOwnProperty("ownerRoomId") && !(a.isInteger(e.ownerRoomId) || e.ownerRoomId && a.isInteger(e.ownerRoomId.low) && a.isInteger(e.ownerRoomId.high)) ? "ownerRoomId: integer|Long expected" : null != e.vendor && e.hasOwnProperty("vendor") && !(a.isInteger(e.vendor) || e.vendor && a.isInteger(e.vendor.low) && a.isInteger(e.vendor.high)) ? "vendor: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerSetting) return e; + var t = new l.webcast.im.LinkerSetting; + return null != e.maxMemberLimit && (a.Long ? (t.maxMemberLimit = a.Long.fromValue(e.maxMemberLimit)).unsigned = !1 : "string" == typeof e.maxMemberLimit ? t.maxMemberLimit = parseInt(e.maxMemberLimit, 10) : "number" == typeof e.maxMemberLimit ? t.maxMemberLimit = e.maxMemberLimit : "object" == typeof e.maxMemberLimit && (t.maxMemberLimit = new a.LongBits(e.maxMemberLimit.low >>> 0, e.maxMemberLimit.high >>> 0).toNumber())), null != e.linkType && (a.Long ? (t.linkType = a.Long.fromValue(e.linkType)).unsigned = !1 : "string" == typeof e.linkType ? t.linkType = parseInt(e.linkType, 10) : "number" == typeof e.linkType ? t.linkType = e.linkType : "object" == typeof e.linkType && (t.linkType = new a.LongBits(e.linkType.low >>> 0, e.linkType.high >>> 0).toNumber())), null != e.scene && (a.Long ? (t.scene = a.Long.fromValue(e.scene)).unsigned = !1 : "string" == typeof e.scene ? t.scene = parseInt(e.scene, 10) : "number" == typeof e.scene ? t.scene = e.scene : "object" == typeof e.scene && (t.scene = new a.LongBits(e.scene.low >>> 0, e.scene.high >>> 0).toNumber())), null != e.ownerUserId && (a.Long ? (t.ownerUserId = a.Long.fromValue(e.ownerUserId)).unsigned = !1 : "string" == typeof e.ownerUserId ? t.ownerUserId = parseInt(e.ownerUserId, 10) : "number" == typeof e.ownerUserId ? t.ownerUserId = e.ownerUserId : "object" == typeof e.ownerUserId && (t.ownerUserId = new a.LongBits(e.ownerUserId.low >>> 0, e.ownerUserId.high >>> 0).toNumber())), null != e.ownerRoomId && (a.Long ? (t.ownerRoomId = a.Long.fromValue(e.ownerRoomId)).unsigned = !1 : "string" == typeof e.ownerRoomId ? t.ownerRoomId = parseInt(e.ownerRoomId, 10) : "number" == typeof e.ownerRoomId ? t.ownerRoomId = e.ownerRoomId : "object" == typeof e.ownerRoomId && (t.ownerRoomId = new a.LongBits(e.ownerRoomId.low >>> 0, e.ownerRoomId.high >>> 0).toNumber())), null != e.vendor && (a.Long ? (t.vendor = a.Long.fromValue(e.vendor)).unsigned = !1 : "string" == typeof e.vendor ? t.vendor = parseInt(e.vendor, 10) : "number" == typeof e.vendor ? t.vendor = e.vendor : "object" == typeof e.vendor && (t.vendor = new a.LongBits(e.vendor.low >>> 0, e.vendor.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.maxMemberLimit = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.maxMemberLimit = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.linkType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.linkType = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.scene = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.scene = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.ownerUserId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.ownerUserId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.ownerRoomId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.ownerRoomId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.vendor = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.vendor = t.longs === String ? "0" : 0 + } + return null != e.maxMemberLimit && e.hasOwnProperty("maxMemberLimit") && ("number" == typeof e.maxMemberLimit ? n.maxMemberLimit = t.longs === String ? String(e.maxMemberLimit) : e.maxMemberLimit : n.maxMemberLimit = t.longs === String ? a.Long.prototype.toString.call(e.maxMemberLimit) : t.longs === Number ? new a.LongBits(e.maxMemberLimit.low >>> 0, e.maxMemberLimit.high >>> 0).toNumber() : e.maxMemberLimit), null != e.linkType && e.hasOwnProperty("linkType") && ("number" == typeof e.linkType ? n.linkType = t.longs === String ? String(e.linkType) : e.linkType : n.linkType = t.longs === String ? a.Long.prototype.toString.call(e.linkType) : t.longs === Number ? new a.LongBits(e.linkType.low >>> 0, e.linkType.high >>> 0).toNumber() : e.linkType), null != e.scene && e.hasOwnProperty("scene") && ("number" == typeof e.scene ? n.scene = t.longs === String ? String(e.scene) : e.scene : n.scene = t.longs === String ? a.Long.prototype.toString.call(e.scene) : t.longs === Number ? new a.LongBits(e.scene.low >>> 0, e.scene.high >>> 0).toNumber() : e.scene), null != e.ownerUserId && e.hasOwnProperty("ownerUserId") && ("number" == typeof e.ownerUserId ? n.ownerUserId = t.longs === String ? String(e.ownerUserId) : e.ownerUserId : n.ownerUserId = t.longs === String ? a.Long.prototype.toString.call(e.ownerUserId) : t.longs === Number ? new a.LongBits(e.ownerUserId.low >>> 0, e.ownerUserId.high >>> 0).toNumber() : e.ownerUserId), null != e.ownerRoomId && e.hasOwnProperty("ownerRoomId") && ("number" == typeof e.ownerRoomId ? n.ownerRoomId = t.longs === String ? String(e.ownerRoomId) : e.ownerRoomId : n.ownerRoomId = t.longs === String ? a.Long.prototype.toString.call(e.ownerRoomId) : t.longs === Number ? new a.LongBits(e.ownerRoomId.low >>> 0, e.ownerRoomId.high >>> 0).toNumber() : e.ownerRoomId), null != e.vendor && e.hasOwnProperty("vendor") && ("number" == typeof e.vendor ? n.vendor = t.longs === String ? String(e.vendor) : e.vendor : n.vendor = t.longs === String ? a.Long.prototype.toString.call(e.vendor) : t.longs === Number ? new a.LongBits(e.vendor.low >>> 0, e.vendor.high >>> 0).toNumber() : e.vendor), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerInviteContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.fromUserId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.fromRoomId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.toRtcExtInfo = "", e.prototype.rtcJoinChannel = !1, e.prototype.vendor = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.secFromUserId = "", e.prototype.toLinkmicIdStr = "", e.prototype.rtcPushStream = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.fromUserId && Object.hasOwnProperty.call(e, "fromUserId") && t.uint32(8).int64(e.fromUserId), null != e.fromRoomId && Object.hasOwnProperty.call(e, "fromRoomId") && t.uint32(16).int64(e.fromRoomId), null != e.toRtcExtInfo && Object.hasOwnProperty.call(e, "toRtcExtInfo") && t.uint32(26).string(e.toRtcExtInfo), null != e.rtcJoinChannel && Object.hasOwnProperty.call(e, "rtcJoinChannel") && t.uint32(32).bool(e.rtcJoinChannel), null != e.vendor && Object.hasOwnProperty.call(e, "vendor") && t.uint32(40).int64(e.vendor), null != e.secFromUserId && Object.hasOwnProperty.call(e, "secFromUserId") && t.uint32(50).string(e.secFromUserId), null != e.toLinkmicIdStr && Object.hasOwnProperty.call(e, "toLinkmicIdStr") && t.uint32(58).string(e.toLinkmicIdStr), null != e.rtcPushStream && Object.hasOwnProperty.call(e, "rtcPushStream") && t.uint32(64).bool(e.rtcPushStream), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerInviteContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.fromUserId = e.int64(); + break; + case 2: + r.fromRoomId = e.int64(); + break; + case 3: + r.toRtcExtInfo = e.string(); + break; + case 4: + r.rtcJoinChannel = e.bool(); + break; + case 5: + r.vendor = e.int64(); + break; + case 6: + r.secFromUserId = e.string(); + break; + case 7: + r.toLinkmicIdStr = e.string(); + break; + case 8: + r.rtcPushStream = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.fromUserId && e.hasOwnProperty("fromUserId") && !(a.isInteger(e.fromUserId) || e.fromUserId && a.isInteger(e.fromUserId.low) && a.isInteger(e.fromUserId.high)) ? "fromUserId: integer|Long expected" : null != e.fromRoomId && e.hasOwnProperty("fromRoomId") && !(a.isInteger(e.fromRoomId) || e.fromRoomId && a.isInteger(e.fromRoomId.low) && a.isInteger(e.fromRoomId.high)) ? "fromRoomId: integer|Long expected" : null != e.toRtcExtInfo && e.hasOwnProperty("toRtcExtInfo") && !a.isString(e.toRtcExtInfo) ? "toRtcExtInfo: string expected" : null != e.rtcJoinChannel && e.hasOwnProperty("rtcJoinChannel") && "boolean" != typeof e.rtcJoinChannel ? "rtcJoinChannel: boolean expected" : null != e.vendor && e.hasOwnProperty("vendor") && !(a.isInteger(e.vendor) || e.vendor && a.isInteger(e.vendor.low) && a.isInteger(e.vendor.high)) ? "vendor: integer|Long expected" : null != e.secFromUserId && e.hasOwnProperty("secFromUserId") && !a.isString(e.secFromUserId) ? "secFromUserId: string expected" : null != e.toLinkmicIdStr && e.hasOwnProperty("toLinkmicIdStr") && !a.isString(e.toLinkmicIdStr) ? "toLinkmicIdStr: string expected" : null != e.rtcPushStream && e.hasOwnProperty("rtcPushStream") && "boolean" != typeof e.rtcPushStream ? "rtcPushStream: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerInviteContent) return e; + var t = new l.webcast.im.LinkerInviteContent; + return null != e.fromUserId && (a.Long ? (t.fromUserId = a.Long.fromValue(e.fromUserId)).unsigned = !1 : "string" == typeof e.fromUserId ? t.fromUserId = parseInt(e.fromUserId, 10) : "number" == typeof e.fromUserId ? t.fromUserId = e.fromUserId : "object" == typeof e.fromUserId && (t.fromUserId = new a.LongBits(e.fromUserId.low >>> 0, e.fromUserId.high >>> 0).toNumber())), null != e.fromRoomId && (a.Long ? (t.fromRoomId = a.Long.fromValue(e.fromRoomId)).unsigned = !1 : "string" == typeof e.fromRoomId ? t.fromRoomId = parseInt(e.fromRoomId, 10) : "number" == typeof e.fromRoomId ? t.fromRoomId = e.fromRoomId : "object" == typeof e.fromRoomId && (t.fromRoomId = new a.LongBits(e.fromRoomId.low >>> 0, e.fromRoomId.high >>> 0).toNumber())), null != e.toRtcExtInfo && (t.toRtcExtInfo = String(e.toRtcExtInfo)), null != e.rtcJoinChannel && (t.rtcJoinChannel = Boolean(e.rtcJoinChannel)), null != e.vendor && (a.Long ? (t.vendor = a.Long.fromValue(e.vendor)).unsigned = !1 : "string" == typeof e.vendor ? t.vendor = parseInt(e.vendor, 10) : "number" == typeof e.vendor ? t.vendor = e.vendor : "object" == typeof e.vendor && (t.vendor = new a.LongBits(e.vendor.low >>> 0, e.vendor.high >>> 0).toNumber())), null != e.secFromUserId && (t.secFromUserId = String(e.secFromUserId)), null != e.toLinkmicIdStr && (t.toLinkmicIdStr = String(e.toLinkmicIdStr)), null != e.rtcPushStream && (t.rtcPushStream = Boolean(e.rtcPushStream)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.fromUserId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fromUserId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.fromRoomId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fromRoomId = t.longs === String ? "0" : 0; + if (n.toRtcExtInfo = "", n.rtcJoinChannel = !1, a.Long) + { + r = new a.Long(0, 0, !1); + n.vendor = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.vendor = t.longs === String ? "0" : 0; + n.secFromUserId = "", n.toLinkmicIdStr = "", n.rtcPushStream = !1 + } + return null != e.fromUserId && e.hasOwnProperty("fromUserId") && ("number" == typeof e.fromUserId ? n.fromUserId = t.longs === String ? String(e.fromUserId) : e.fromUserId : n.fromUserId = t.longs === String ? a.Long.prototype.toString.call(e.fromUserId) : t.longs === Number ? new a.LongBits(e.fromUserId.low >>> 0, e.fromUserId.high >>> 0).toNumber() : e.fromUserId), null != e.fromRoomId && e.hasOwnProperty("fromRoomId") && ("number" == typeof e.fromRoomId ? n.fromRoomId = t.longs === String ? String(e.fromRoomId) : e.fromRoomId : n.fromRoomId = t.longs === String ? a.Long.prototype.toString.call(e.fromRoomId) : t.longs === Number ? new a.LongBits(e.fromRoomId.low >>> 0, e.fromRoomId.high >>> 0).toNumber() : e.fromRoomId), null != e.toRtcExtInfo && e.hasOwnProperty("toRtcExtInfo") && (n.toRtcExtInfo = e.toRtcExtInfo), null != e.rtcJoinChannel && e.hasOwnProperty("rtcJoinChannel") && (n.rtcJoinChannel = e.rtcJoinChannel), null != e.vendor && e.hasOwnProperty("vendor") && ("number" == typeof e.vendor ? n.vendor = t.longs === String ? String(e.vendor) : e.vendor : n.vendor = t.longs === String ? a.Long.prototype.toString.call(e.vendor) : t.longs === Number ? new a.LongBits(e.vendor.low >>> 0, e.vendor.high >>> 0).toNumber() : e.vendor), null != e.secFromUserId && e.hasOwnProperty("secFromUserId") && (n.secFromUserId = e.secFromUserId), null != e.toLinkmicIdStr && e.hasOwnProperty("toLinkmicIdStr") && (n.toLinkmicIdStr = e.toLinkmicIdStr), null != e.rtcPushStream && e.hasOwnProperty("rtcPushStream") && (n.rtcPushStream = e.rtcPushStream), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerReplyContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.fromUserId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.fromRoomId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.fromUserLinkmicInfo = null, e.prototype.toUserId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.toUserLinkmicInfo = null, e.prototype.linkType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.replyStatus = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.linkerSetting = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.fromUserId && Object.hasOwnProperty.call(e, "fromUserId") && t.uint32(8).int64(e.fromUserId), null != e.fromRoomId && Object.hasOwnProperty.call(e, "fromRoomId") && t.uint32(16).int64(e.fromRoomId), null != e.fromUserLinkmicInfo && Object.hasOwnProperty.call(e, "fromUserLinkmicInfo") && l.webcast.im.LinkmicInfo.encode(e.fromUserLinkmicInfo, t.uint32(26).fork()).ldelim(), null != e.toUserId && Object.hasOwnProperty.call(e, "toUserId") && t.uint32(32).int64(e.toUserId), null != e.toUserLinkmicInfo && Object.hasOwnProperty.call(e, "toUserLinkmicInfo") && l.webcast.im.LinkmicInfo.encode(e.toUserLinkmicInfo, t.uint32(42).fork()).ldelim(), null != e.linkType && Object.hasOwnProperty.call(e, "linkType") && t.uint32(48).int64(e.linkType), null != e.replyStatus && Object.hasOwnProperty.call(e, "replyStatus") && t.uint32(56).int64(e.replyStatus), null != e.linkerSetting && Object.hasOwnProperty.call(e, "linkerSetting") && l.webcast.im.LinkerSetting.encode(e.linkerSetting, t.uint32(66).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerReplyContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.fromUserId = e.int64(); + break; + case 2: + r.fromRoomId = e.int64(); + break; + case 3: + r.fromUserLinkmicInfo = l.webcast.im.LinkmicInfo.decode(e, e.uint32()); + break; + case 4: + r.toUserId = e.int64(); + break; + case 5: + r.toUserLinkmicInfo = l.webcast.im.LinkmicInfo.decode(e, e.uint32()); + break; + case 6: + r.linkType = e.int64(); + break; + case 7: + r.replyStatus = e.int64(); + break; + case 8: + r.linkerSetting = l.webcast.im.LinkerSetting.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.fromUserId && e.hasOwnProperty("fromUserId") && !(a.isInteger(e.fromUserId) || e.fromUserId && a.isInteger(e.fromUserId.low) && a.isInteger(e.fromUserId.high))) return "fromUserId: integer|Long expected"; + if (null != e.fromRoomId && e.hasOwnProperty("fromRoomId") && !(a.isInteger(e.fromRoomId) || e.fromRoomId && a.isInteger(e.fromRoomId.low) && a.isInteger(e.fromRoomId.high))) return "fromRoomId: integer|Long expected"; + var t; + if (null != e.fromUserLinkmicInfo && e.hasOwnProperty("fromUserLinkmicInfo") && (t = l.webcast.im.LinkmicInfo.verify(e.fromUserLinkmicInfo))) return "fromUserLinkmicInfo." + t; + if (null != e.toUserId && e.hasOwnProperty("toUserId") && !(a.isInteger(e.toUserId) || e.toUserId && a.isInteger(e.toUserId.low) && a.isInteger(e.toUserId.high))) return "toUserId: integer|Long expected"; + if (null != e.toUserLinkmicInfo && e.hasOwnProperty("toUserLinkmicInfo") && (t = l.webcast.im.LinkmicInfo.verify(e.toUserLinkmicInfo))) return "toUserLinkmicInfo." + t; + if (null != e.linkType && e.hasOwnProperty("linkType") && !(a.isInteger(e.linkType) || e.linkType && a.isInteger(e.linkType.low) && a.isInteger(e.linkType.high))) return "linkType: integer|Long expected"; + if (null != e.replyStatus && e.hasOwnProperty("replyStatus") && !(a.isInteger(e.replyStatus) || e.replyStatus && a.isInteger(e.replyStatus.low) && a.isInteger(e.replyStatus.high))) return "replyStatus: integer|Long expected"; + if (null != e.linkerSetting && e.hasOwnProperty("linkerSetting") && (t = l.webcast.im.LinkerSetting.verify(e.linkerSetting))) return "linkerSetting." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerReplyContent) return e; + var t = new l.webcast.im.LinkerReplyContent; + if (null != e.fromUserId && (a.Long ? (t.fromUserId = a.Long.fromValue(e.fromUserId)).unsigned = !1 : "string" == typeof e.fromUserId ? t.fromUserId = parseInt(e.fromUserId, 10) : "number" == typeof e.fromUserId ? t.fromUserId = e.fromUserId : "object" == typeof e.fromUserId && (t.fromUserId = new a.LongBits(e.fromUserId.low >>> 0, e.fromUserId.high >>> 0).toNumber())), null != e.fromRoomId && (a.Long ? (t.fromRoomId = a.Long.fromValue(e.fromRoomId)).unsigned = !1 : "string" == typeof e.fromRoomId ? t.fromRoomId = parseInt(e.fromRoomId, 10) : "number" == typeof e.fromRoomId ? t.fromRoomId = e.fromRoomId : "object" == typeof e.fromRoomId && (t.fromRoomId = new a.LongBits(e.fromRoomId.low >>> 0, e.fromRoomId.high >>> 0).toNumber())), null != e.fromUserLinkmicInfo) + { + if ("object" != typeof e.fromUserLinkmicInfo) throw TypeError(".webcast.im.LinkerReplyContent.fromUserLinkmicInfo: object expected"); + t.fromUserLinkmicInfo = l.webcast.im.LinkmicInfo.fromObject(e.fromUserLinkmicInfo) + } + if (null != e.toUserId && (a.Long ? (t.toUserId = a.Long.fromValue(e.toUserId)).unsigned = !1 : "string" == typeof e.toUserId ? t.toUserId = parseInt(e.toUserId, 10) : "number" == typeof e.toUserId ? t.toUserId = e.toUserId : "object" == typeof e.toUserId && (t.toUserId = new a.LongBits(e.toUserId.low >>> 0, e.toUserId.high >>> 0).toNumber())), null != e.toUserLinkmicInfo) + { + if ("object" != typeof e.toUserLinkmicInfo) throw TypeError(".webcast.im.LinkerReplyContent.toUserLinkmicInfo: object expected"); + t.toUserLinkmicInfo = l.webcast.im.LinkmicInfo.fromObject(e.toUserLinkmicInfo) + } + if (null != e.linkType && (a.Long ? (t.linkType = a.Long.fromValue(e.linkType)).unsigned = !1 : "string" == typeof e.linkType ? t.linkType = parseInt(e.linkType, 10) : "number" == typeof e.linkType ? t.linkType = e.linkType : "object" == typeof e.linkType && (t.linkType = new a.LongBits(e.linkType.low >>> 0, e.linkType.high >>> 0).toNumber())), null != e.replyStatus && (a.Long ? (t.replyStatus = a.Long.fromValue(e.replyStatus)).unsigned = !1 : "string" == typeof e.replyStatus ? t.replyStatus = parseInt(e.replyStatus, 10) : "number" == typeof e.replyStatus ? t.replyStatus = e.replyStatus : "object" == typeof e.replyStatus && (t.replyStatus = new a.LongBits(e.replyStatus.low >>> 0, e.replyStatus.high >>> 0).toNumber())), null != e.linkerSetting) + { + if ("object" != typeof e.linkerSetting) throw TypeError(".webcast.im.LinkerReplyContent.linkerSetting: object expected"); + t.linkerSetting = l.webcast.im.LinkerSetting.fromObject(e.linkerSetting) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.fromUserId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fromUserId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.fromRoomId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fromRoomId = t.longs === String ? "0" : 0; + if (n.fromUserLinkmicInfo = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.toUserId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.toUserId = t.longs === String ? "0" : 0; + if (n.toUserLinkmicInfo = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.linkType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.linkType = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.replyStatus = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.replyStatus = t.longs === String ? "0" : 0; + n.linkerSetting = null + } + return null != e.fromUserId && e.hasOwnProperty("fromUserId") && ("number" == typeof e.fromUserId ? n.fromUserId = t.longs === String ? String(e.fromUserId) : e.fromUserId : n.fromUserId = t.longs === String ? a.Long.prototype.toString.call(e.fromUserId) : t.longs === Number ? new a.LongBits(e.fromUserId.low >>> 0, e.fromUserId.high >>> 0).toNumber() : e.fromUserId), null != e.fromRoomId && e.hasOwnProperty("fromRoomId") && ("number" == typeof e.fromRoomId ? n.fromRoomId = t.longs === String ? String(e.fromRoomId) : e.fromRoomId : n.fromRoomId = t.longs === String ? a.Long.prototype.toString.call(e.fromRoomId) : t.longs === Number ? new a.LongBits(e.fromRoomId.low >>> 0, e.fromRoomId.high >>> 0).toNumber() : e.fromRoomId), null != e.fromUserLinkmicInfo && e.hasOwnProperty("fromUserLinkmicInfo") && (n.fromUserLinkmicInfo = l.webcast.im.LinkmicInfo.toObject(e.fromUserLinkmicInfo, t)), null != e.toUserId && e.hasOwnProperty("toUserId") && ("number" == typeof e.toUserId ? n.toUserId = t.longs === String ? String(e.toUserId) : e.toUserId : n.toUserId = t.longs === String ? a.Long.prototype.toString.call(e.toUserId) : t.longs === Number ? new a.LongBits(e.toUserId.low >>> 0, e.toUserId.high >>> 0).toNumber() : e.toUserId), null != e.toUserLinkmicInfo && e.hasOwnProperty("toUserLinkmicInfo") && (n.toUserLinkmicInfo = l.webcast.im.LinkmicInfo.toObject(e.toUserLinkmicInfo, t)), null != e.linkType && e.hasOwnProperty("linkType") && ("number" == typeof e.linkType ? n.linkType = t.longs === String ? String(e.linkType) : e.linkType : n.linkType = t.longs === String ? a.Long.prototype.toString.call(e.linkType) : t.longs === Number ? new a.LongBits(e.linkType.low >>> 0, e.linkType.high >>> 0).toNumber() : e.linkType), null != e.replyStatus && e.hasOwnProperty("replyStatus") && ("number" == typeof e.replyStatus ? n.replyStatus = t.longs === String ? String(e.replyStatus) : e.replyStatus : n.replyStatus = t.longs === String ? a.Long.prototype.toString.call(e.replyStatus) : t.longs === Number ? new a.LongBits(e.replyStatus.low >>> 0, e.replyStatus.high >>> 0).toNumber() : e.replyStatus), null != e.linkerSetting && e.hasOwnProperty("linkerSetting") && (n.linkerSetting = l.webcast.im.LinkerSetting.toObject(e.linkerSetting, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerCreateContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.ownerId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.ownerRoomId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.linkType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.ownerId && Object.hasOwnProperty.call(e, "ownerId") && t.uint32(8).int64(e.ownerId), null != e.ownerRoomId && Object.hasOwnProperty.call(e, "ownerRoomId") && t.uint32(16).int64(e.ownerRoomId), null != e.linkType && Object.hasOwnProperty.call(e, "linkType") && t.uint32(24).int64(e.linkType), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerCreateContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.ownerId = e.int64(); + break; + case 2: + r.ownerRoomId = e.int64(); + break; + case 3: + r.linkType = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.ownerId && e.hasOwnProperty("ownerId") && !(a.isInteger(e.ownerId) || e.ownerId && a.isInteger(e.ownerId.low) && a.isInteger(e.ownerId.high)) ? "ownerId: integer|Long expected" : null != e.ownerRoomId && e.hasOwnProperty("ownerRoomId") && !(a.isInteger(e.ownerRoomId) || e.ownerRoomId && a.isInteger(e.ownerRoomId.low) && a.isInteger(e.ownerRoomId.high)) ? "ownerRoomId: integer|Long expected" : null != e.linkType && e.hasOwnProperty("linkType") && !(a.isInteger(e.linkType) || e.linkType && a.isInteger(e.linkType.low) && a.isInteger(e.linkType.high)) ? "linkType: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerCreateContent) return e; + var t = new l.webcast.im.LinkerCreateContent; + return null != e.ownerId && (a.Long ? (t.ownerId = a.Long.fromValue(e.ownerId)).unsigned = !1 : "string" == typeof e.ownerId ? t.ownerId = parseInt(e.ownerId, 10) : "number" == typeof e.ownerId ? t.ownerId = e.ownerId : "object" == typeof e.ownerId && (t.ownerId = new a.LongBits(e.ownerId.low >>> 0, e.ownerId.high >>> 0).toNumber())), null != e.ownerRoomId && (a.Long ? (t.ownerRoomId = a.Long.fromValue(e.ownerRoomId)).unsigned = !1 : "string" == typeof e.ownerRoomId ? t.ownerRoomId = parseInt(e.ownerRoomId, 10) : "number" == typeof e.ownerRoomId ? t.ownerRoomId = e.ownerRoomId : "object" == typeof e.ownerRoomId && (t.ownerRoomId = new a.LongBits(e.ownerRoomId.low >>> 0, e.ownerRoomId.high >>> 0).toNumber())), null != e.linkType && (a.Long ? (t.linkType = a.Long.fromValue(e.linkType)).unsigned = !1 : "string" == typeof e.linkType ? t.linkType = parseInt(e.linkType, 10) : "number" == typeof e.linkType ? t.linkType = e.linkType : "object" == typeof e.linkType && (t.linkType = new a.LongBits(e.linkType.low >>> 0, e.linkType.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.ownerId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.ownerId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.ownerRoomId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.ownerRoomId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.linkType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.linkType = t.longs === String ? "0" : 0 + } + return null != e.ownerId && e.hasOwnProperty("ownerId") && ("number" == typeof e.ownerId ? n.ownerId = t.longs === String ? String(e.ownerId) : e.ownerId : n.ownerId = t.longs === String ? a.Long.prototype.toString.call(e.ownerId) : t.longs === Number ? new a.LongBits(e.ownerId.low >>> 0, e.ownerId.high >>> 0).toNumber() : e.ownerId), null != e.ownerRoomId && e.hasOwnProperty("ownerRoomId") && ("number" == typeof e.ownerRoomId ? n.ownerRoomId = t.longs === String ? String(e.ownerRoomId) : e.ownerRoomId : n.ownerRoomId = t.longs === String ? a.Long.prototype.toString.call(e.ownerRoomId) : t.longs === Number ? new a.LongBits(e.ownerRoomId.low >>> 0, e.ownerRoomId.high >>> 0).toNumber() : e.ownerRoomId), null != e.linkType && e.hasOwnProperty("linkType") && ("number" == typeof e.linkType ? n.linkType = t.longs === String ? String(e.linkType) : e.linkType : n.linkType = t.longs === String ? a.Long.prototype.toString.call(e.linkType) : t.longs === Number ? new a.LongBits(e.linkType.low >>> 0, e.linkType.high >>> 0).toNumber() : e.linkType), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.MatchEffect = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.showEffect = !1, e.prototype.effectResource = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.showEffect && Object.hasOwnProperty.call(e, "showEffect") && t.uint32(8).bool(e.showEffect), null != e.effectResource && Object.hasOwnProperty.call(e, "effectResource") && l.webcast.data.Image.encode(e.effectResource, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.MatchEffect; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.showEffect = e.bool(); + break; + case 2: + r.effectResource = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.showEffect && e.hasOwnProperty("showEffect") && "boolean" != typeof e.showEffect) return "showEffect: boolean expected"; + if (null != e.effectResource && e.hasOwnProperty("effectResource")) + { + var t = l.webcast.data.Image.verify(e.effectResource); + if (t) return "effectResource." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.MatchEffect) return e; + var t = new l.webcast.im.MatchEffect; + if (null != e.showEffect && (t.showEffect = Boolean(e.showEffect)), null != e.effectResource) + { + if ("object" != typeof e.effectResource) throw TypeError(".webcast.im.MatchEffect.effectResource: object expected"); + t.effectResource = l.webcast.data.Image.fromObject(e.effectResource) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.showEffect = !1, n.effectResource = null), null != e.showEffect && e.hasOwnProperty("showEffect") && (n.showEffect = e.showEffect), null != e.effectResource && e.hasOwnProperty("effectResource") && (n.effectResource = l.webcast.data.Image.toObject(e.effectResource, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.CityEffect = function () + { + function e(e) + { + if (this.showEffectUserIdList = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.effectResource = null, e.prototype.city = "", e.prototype.showEffectUserIdList = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.effectResource && Object.hasOwnProperty.call(e, "effectResource") && l.webcast.data.Image.encode(e.effectResource, t.uint32(10).fork()).ldelim(), null != e.city && Object.hasOwnProperty.call(e, "city") && t.uint32(18).string(e.city), null != e.showEffectUserIdList && e.showEffectUserIdList.length) + { + t.uint32(26).fork(); + for (var n = 0; n < e.showEffectUserIdList.length; ++n) t.int64(e.showEffectUserIdList[n]); + t.ldelim() + } + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.CityEffect; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.effectResource = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 2: + r.city = e.string(); + break; + case 3: + if (r.showEffectUserIdList && r.showEffectUserIdList.length || (r.showEffectUserIdList = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.showEffectUserIdList.push(e.int64()); + else r.showEffectUserIdList.push(e.int64()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.effectResource && e.hasOwnProperty("effectResource")) + { + var t = l.webcast.data.Image.verify(e.effectResource); + if (t) return "effectResource." + t + } + if (null != e.city && e.hasOwnProperty("city") && !a.isString(e.city)) return "city: string expected"; + if (null != e.showEffectUserIdList && e.hasOwnProperty("showEffectUserIdList")) + { + if (!Array.isArray(e.showEffectUserIdList)) return "showEffectUserIdList: array expected"; + for (var n = 0; n < e.showEffectUserIdList.length; ++n) + if (!(a.isInteger(e.showEffectUserIdList[n]) || e.showEffectUserIdList[n] && a.isInteger(e.showEffectUserIdList[n].low) && a.isInteger(e.showEffectUserIdList[n].high))) return "showEffectUserIdList: integer|Long[] expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.CityEffect) return e; + var t = new l.webcast.im.CityEffect; + if (null != e.effectResource) + { + if ("object" != typeof e.effectResource) throw TypeError(".webcast.im.CityEffect.effectResource: object expected"); + t.effectResource = l.webcast.data.Image.fromObject(e.effectResource) + } + if (null != e.city && (t.city = String(e.city)), e.showEffectUserIdList) + { + if (!Array.isArray(e.showEffectUserIdList)) throw TypeError(".webcast.im.CityEffect.showEffectUserIdList: array expected"); + t.showEffectUserIdList = []; + for (var n = 0; n < e.showEffectUserIdList.length; ++n) a.Long ? (t.showEffectUserIdList[n] = a.Long.fromValue(e.showEffectUserIdList[n])).unsigned = !1 : "string" == typeof e.showEffectUserIdList[n] ? t.showEffectUserIdList[n] = parseInt(e.showEffectUserIdList[n], 10) : "number" == typeof e.showEffectUserIdList[n] ? t.showEffectUserIdList[n] = e.showEffectUserIdList[n] : "object" == typeof e.showEffectUserIdList[n] && (t.showEffectUserIdList[n] = new a.LongBits(e.showEffectUserIdList[n].low >>> 0, e.showEffectUserIdList[n].high >>> 0).toNumber()) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.showEffectUserIdList = []), t.defaults && (n.effectResource = null, n.city = ""), null != e.effectResource && e.hasOwnProperty("effectResource") && (n.effectResource = l.webcast.data.Image.toObject(e.effectResource, t)), null != e.city && e.hasOwnProperty("city") && (n.city = e.city), e.showEffectUserIdList && e.showEffectUserIdList.length) + { + n.showEffectUserIdList = []; + for (var r = 0; r < e.showEffectUserIdList.length; ++r) "number" == typeof e.showEffectUserIdList[r] ? n.showEffectUserIdList[r] = t.longs === String ? String(e.showEffectUserIdList[r]) : e.showEffectUserIdList[r] : n.showEffectUserIdList[r] = t.longs === String ? a.Long.prototype.toString.call(e.showEffectUserIdList[r]) : t.longs === Number ? new a.LongBits(e.showEffectUserIdList[r].low >>> 0, e.showEffectUserIdList[r].high >>> 0).toNumber() : e.showEffectUserIdList[r] + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerEnterContent = function () + { + function e(e) + { + if (this.linkedUsers = [], this.preLinkUsers = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.linkedUsers = a.emptyArray, e.prototype.userId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.applyType = 0, e.prototype.preLinkUsers = a.emptyArray, e.prototype.matchEffect = null, e.prototype.cityEffect = null, e.prototype.version = a.Long ? a.Long.fromBits(0, 0, !0) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.linkedUsers && e.linkedUsers.length) + for (var n = 0; n < e.linkedUsers.length; ++n) l.webcast.data.ListUser.encode(e.linkedUsers[n], t.uint32(10).fork()).ldelim(); + if (null != e.userId && Object.hasOwnProperty.call(e, "userId") && t.uint32(16).int64(e.userId), null != e.applyType && Object.hasOwnProperty.call(e, "applyType") && t.uint32(24).int32(e.applyType), null != e.preLinkUsers && e.preLinkUsers.length) + for (n = 0; n < e.preLinkUsers.length; ++n) l.webcast.data.ListUser.encode(e.preLinkUsers[n], t.uint32(34).fork()).ldelim(); + return null != e.matchEffect && Object.hasOwnProperty.call(e, "matchEffect") && l.webcast.im.MatchEffect.encode(e.matchEffect, t.uint32(42).fork()).ldelim(), null != e.cityEffect && Object.hasOwnProperty.call(e, "cityEffect") && l.webcast.im.CityEffect.encode(e.cityEffect, t.uint32(50).fork()).ldelim(), null != e.version && Object.hasOwnProperty.call(e, "version") && t.uint32(56).uint64(e.version), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerEnterContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.linkedUsers && r.linkedUsers.length || (r.linkedUsers = []), r.linkedUsers.push(l.webcast.data.ListUser.decode(e, e.uint32())); + break; + case 2: + r.userId = e.int64(); + break; + case 3: + r.applyType = e.int32(); + break; + case 4: + r.preLinkUsers && r.preLinkUsers.length || (r.preLinkUsers = []), r.preLinkUsers.push(l.webcast.data.ListUser.decode(e, e.uint32())); + break; + case 5: + r.matchEffect = l.webcast.im.MatchEffect.decode(e, e.uint32()); + break; + case 6: + r.cityEffect = l.webcast.im.CityEffect.decode(e, e.uint32()); + break; + case 7: + r.version = e.uint64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.linkedUsers && e.hasOwnProperty("linkedUsers")) + { + if (!Array.isArray(e.linkedUsers)) return "linkedUsers: array expected"; + for (var t = 0; t < e.linkedUsers.length; ++t) + { + if (n = l.webcast.data.ListUser.verify(e.linkedUsers[t])) return "linkedUsers." + n + } + } + if (null != e.userId && e.hasOwnProperty("userId") && !(a.isInteger(e.userId) || e.userId && a.isInteger(e.userId.low) && a.isInteger(e.userId.high))) return "userId: integer|Long expected"; + if (null != e.applyType && e.hasOwnProperty("applyType")) switch (e.applyType) + { + default: + return "applyType: enum value expected"; + case 0: + case 1: + case 2: + case 4: + case 8: + case 16: + } + if (null != e.preLinkUsers && e.hasOwnProperty("preLinkUsers")) + { + if (!Array.isArray(e.preLinkUsers)) return "preLinkUsers: array expected"; + for (t = 0; t < e.preLinkUsers.length; ++t) + { + if (n = l.webcast.data.ListUser.verify(e.preLinkUsers[t])) return "preLinkUsers." + n + } + } + var n; + if (null != e.matchEffect && e.hasOwnProperty("matchEffect") && (n = l.webcast.im.MatchEffect.verify(e.matchEffect))) return "matchEffect." + n; + if (null != e.cityEffect && e.hasOwnProperty("cityEffect") && (n = l.webcast.im.CityEffect.verify(e.cityEffect))) return "cityEffect." + n; + return null != e.version && e.hasOwnProperty("version") && !(a.isInteger(e.version) || e.version && a.isInteger(e.version.low) && a.isInteger(e.version.high)) ? "version: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerEnterContent) return e; + var t = new l.webcast.im.LinkerEnterContent; + if (e.linkedUsers) + { + if (!Array.isArray(e.linkedUsers)) throw TypeError(".webcast.im.LinkerEnterContent.linkedUsers: array expected"); + t.linkedUsers = []; + for (var n = 0; n < e.linkedUsers.length; ++n) + { + if ("object" != typeof e.linkedUsers[n]) throw TypeError(".webcast.im.LinkerEnterContent.linkedUsers: object expected"); + t.linkedUsers[n] = l.webcast.data.ListUser.fromObject(e.linkedUsers[n]) + } + } + switch (null != e.userId && (a.Long ? (t.userId = a.Long.fromValue(e.userId)).unsigned = !1 : "string" == typeof e.userId ? t.userId = parseInt(e.userId, 10) : "number" == typeof e.userId ? t.userId = e.userId : "object" == typeof e.userId && (t.userId = new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber())), e.applyType) + { + case "NORMAL": + case 0: + t.applyType = 0; + break; + case "SONG": + case 1: + t.applyType = 1; + break; + case "FASTMATCH": + case 2: + t.applyType = 2; + break; + case "CITY": + case 4: + t.applyType = 4; + break; + case "STRONG_REACH": + case 8: + t.applyType = 8; + break; + case "KTV_ACTIVITY": + case 16: + t.applyType = 16 + } + if (e.preLinkUsers) + { + if (!Array.isArray(e.preLinkUsers)) throw TypeError(".webcast.im.LinkerEnterContent.preLinkUsers: array expected"); + t.preLinkUsers = []; + for (n = 0; n < e.preLinkUsers.length; ++n) + { + if ("object" != typeof e.preLinkUsers[n]) throw TypeError(".webcast.im.LinkerEnterContent.preLinkUsers: object expected"); + t.preLinkUsers[n] = l.webcast.data.ListUser.fromObject(e.preLinkUsers[n]) + } + } + if (null != e.matchEffect) + { + if ("object" != typeof e.matchEffect) throw TypeError(".webcast.im.LinkerEnterContent.matchEffect: object expected"); + t.matchEffect = l.webcast.im.MatchEffect.fromObject(e.matchEffect) + } + if (null != e.cityEffect) + { + if ("object" != typeof e.cityEffect) throw TypeError(".webcast.im.LinkerEnterContent.cityEffect: object expected"); + t.cityEffect = l.webcast.im.CityEffect.fromObject(e.cityEffect) + } + return null != e.version && (a.Long ? (t.version = a.Long.fromValue(e.version)).unsigned = !0 : "string" == typeof e.version ? t.version = parseInt(e.version, 10) : "number" == typeof e.version ? t.version = e.version : "object" == typeof e.version && (t.version = new a.LongBits(e.version.low >>> 0, e.version.high >>> 0).toNumber(!0))), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.linkedUsers = [], n.preLinkUsers = []), t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.userId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.userId = t.longs === String ? "0" : 0; + if (n.applyType = t.enums === String ? "NORMAL" : 0, n.matchEffect = null, n.cityEffect = null, a.Long) + { + r = new a.Long(0, 0, !0); + n.version = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.version = t.longs === String ? "0" : 0 + } + if (e.linkedUsers && e.linkedUsers.length) + { + n.linkedUsers = []; + for (var o = 0; o < e.linkedUsers.length; ++o) n.linkedUsers[o] = l.webcast.data.ListUser.toObject(e.linkedUsers[o], t) + } + if (null != e.userId && e.hasOwnProperty("userId") && ("number" == typeof e.userId ? n.userId = t.longs === String ? String(e.userId) : e.userId : n.userId = t.longs === String ? a.Long.prototype.toString.call(e.userId) : t.longs === Number ? new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber() : e.userId), null != e.applyType && e.hasOwnProperty("applyType") && (n.applyType = t.enums === String ? l.webcast.data.ApplyType[e.applyType] : e.applyType), e.preLinkUsers && e.preLinkUsers.length) + { + n.preLinkUsers = []; + for (o = 0; o < e.preLinkUsers.length; ++o) n.preLinkUsers[o] = l.webcast.data.ListUser.toObject(e.preLinkUsers[o], t) + } + return null != e.matchEffect && e.hasOwnProperty("matchEffect") && (n.matchEffect = l.webcast.im.MatchEffect.toObject(e.matchEffect, t)), null != e.cityEffect && e.hasOwnProperty("cityEffect") && (n.cityEffect = l.webcast.im.CityEffect.toObject(e.cityEffect, t)), null != e.version && e.hasOwnProperty("version") && ("number" == typeof e.version ? n.version = t.longs === String ? String(e.version) : e.version : n.version = t.longs === String ? a.Long.prototype.toString.call(e.version) : t.longs === Number ? new a.LongBits(e.version.low >>> 0, e.version.high >>> 0).toNumber(!0) : e.version), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerViolationReminderContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.title = "", e.prototype.content = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.title && Object.hasOwnProperty.call(e, "title") && t.uint32(10).string(e.title), null != e.content && Object.hasOwnProperty.call(e, "content") && t.uint32(18).string(e.content), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerViolationReminderContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.title = e.string(); + break; + case 2: + r.content = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.title && e.hasOwnProperty("title") && !a.isString(e.title) ? "title: string expected" : null != e.content && e.hasOwnProperty("content") && !a.isString(e.content) ? "content: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerViolationReminderContent) return e; + var t = new l.webcast.im.LinkerViolationReminderContent; + return null != e.title && (t.title = String(e.title)), null != e.content && (t.content = String(e.content)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.title = "", n.content = ""), null != e.title && e.hasOwnProperty("title") && (n.title = e.title), null != e.content && e.hasOwnProperty("content") && (n.content = e.content), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerCloseContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.source = 0, e.prototype.banAnchorInfo = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.source && Object.hasOwnProperty.call(e, "source") && t.uint32(8).int32(e.source), null != e.banAnchorInfo && Object.hasOwnProperty.call(e, "banAnchorInfo") && l.webcast.data.BanUser.encode(e.banAnchorInfo, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerCloseContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.source = e.int32(); + break; + case 2: + r.banAnchorInfo = l.webcast.data.BanUser.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.source && e.hasOwnProperty("source")) switch (e.source) + { + default: + return "source: enum value expected"; + case 0: + case 1: + } + if (null != e.banAnchorInfo && e.hasOwnProperty("banAnchorInfo")) + { + var t = l.webcast.data.BanUser.verify(e.banAnchorInfo); + if (t) return "banAnchorInfo." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerCloseContent) return e; + var t = new l.webcast.im.LinkerCloseContent; + switch (e.source) + { + case "Unknown": + case 0: + t.source = 0; + break; + case "Switch_Scene": + case 1: + t.source = 1 + } + if (null != e.banAnchorInfo) + { + if ("object" != typeof e.banAnchorInfo) throw TypeError(".webcast.im.LinkerCloseContent.banAnchorInfo: object expected"); + t.banAnchorInfo = l.webcast.data.BanUser.fromObject(e.banAnchorInfo) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.source = t.enums === String ? "Unknown" : 0, n.banAnchorInfo = null), null != e.source && e.hasOwnProperty("source") && (n.source = t.enums === String ? l.webcast.im.LinkerCloseContent.CloseSource[e.source] : e.source), null != e.banAnchorInfo && e.hasOwnProperty("banAnchorInfo") && (n.banAnchorInfo = l.webcast.data.BanUser.toObject(e.banAnchorInfo, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.CloseSource = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "Unknown"] = 0, t[e[1] = "Switch_Scene"] = 1, t + }(), e + }(), e.LinkerLeaveContent = function () + { + function e(e) + { + if (this.linkedUsers = [], this.preLinkUsers = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.userId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.linkedUsers = a.emptyArray, e.prototype.user = null, e.prototype.preLinkUsers = a.emptyArray, e.prototype.version = a.Long ? a.Long.fromBits(0, 0, !0) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.userId && Object.hasOwnProperty.call(e, "userId") && t.uint32(8).int64(e.userId), null != e.linkedUsers && e.linkedUsers.length) + for (var n = 0; n < e.linkedUsers.length; ++n) l.webcast.data.ListUser.encode(e.linkedUsers[n], t.uint32(18).fork()).ldelim(); + if (null != e.user && Object.hasOwnProperty.call(e, "user") && l.webcast.data.ListUser.encode(e.user, t.uint32(26).fork()).ldelim(), null != e.preLinkUsers && e.preLinkUsers.length) + for (n = 0; n < e.preLinkUsers.length; ++n) l.webcast.data.ListUser.encode(e.preLinkUsers[n], t.uint32(34).fork()).ldelim(); + return null != e.version && Object.hasOwnProperty.call(e, "version") && t.uint32(40).uint64(e.version), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerLeaveContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.userId = e.int64(); + break; + case 2: + r.linkedUsers && r.linkedUsers.length || (r.linkedUsers = []), r.linkedUsers.push(l.webcast.data.ListUser.decode(e, e.uint32())); + break; + case 3: + r.user = l.webcast.data.ListUser.decode(e, e.uint32()); + break; + case 4: + r.preLinkUsers && r.preLinkUsers.length || (r.preLinkUsers = []), r.preLinkUsers.push(l.webcast.data.ListUser.decode(e, e.uint32())); + break; + case 5: + r.version = e.uint64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.userId && e.hasOwnProperty("userId") && !(a.isInteger(e.userId) || e.userId && a.isInteger(e.userId.low) && a.isInteger(e.userId.high))) return "userId: integer|Long expected"; + if (null != e.linkedUsers && e.hasOwnProperty("linkedUsers")) + { + if (!Array.isArray(e.linkedUsers)) return "linkedUsers: array expected"; + for (var t = 0; t < e.linkedUsers.length; ++t) + { + if (n = l.webcast.data.ListUser.verify(e.linkedUsers[t])) return "linkedUsers." + n + } + } + if (null != e.user && e.hasOwnProperty("user") && (n = l.webcast.data.ListUser.verify(e.user))) return "user." + n; + if (null != e.preLinkUsers && e.hasOwnProperty("preLinkUsers")) + { + if (!Array.isArray(e.preLinkUsers)) return "preLinkUsers: array expected"; + for (t = 0; t < e.preLinkUsers.length; ++t) + { + var n; + if (n = l.webcast.data.ListUser.verify(e.preLinkUsers[t])) return "preLinkUsers." + n + } + } + return null != e.version && e.hasOwnProperty("version") && !(a.isInteger(e.version) || e.version && a.isInteger(e.version.low) && a.isInteger(e.version.high)) ? "version: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerLeaveContent) return e; + var t = new l.webcast.im.LinkerLeaveContent; + if (null != e.userId && (a.Long ? (t.userId = a.Long.fromValue(e.userId)).unsigned = !1 : "string" == typeof e.userId ? t.userId = parseInt(e.userId, 10) : "number" == typeof e.userId ? t.userId = e.userId : "object" == typeof e.userId && (t.userId = new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber())), e.linkedUsers) + { + if (!Array.isArray(e.linkedUsers)) throw TypeError(".webcast.im.LinkerLeaveContent.linkedUsers: array expected"); + t.linkedUsers = []; + for (var n = 0; n < e.linkedUsers.length; ++n) + { + if ("object" != typeof e.linkedUsers[n]) throw TypeError(".webcast.im.LinkerLeaveContent.linkedUsers: object expected"); + t.linkedUsers[n] = l.webcast.data.ListUser.fromObject(e.linkedUsers[n]) + } + } + if (null != e.user) + { + if ("object" != typeof e.user) throw TypeError(".webcast.im.LinkerLeaveContent.user: object expected"); + t.user = l.webcast.data.ListUser.fromObject(e.user) + } + if (e.preLinkUsers) + { + if (!Array.isArray(e.preLinkUsers)) throw TypeError(".webcast.im.LinkerLeaveContent.preLinkUsers: array expected"); + t.preLinkUsers = []; + for (n = 0; n < e.preLinkUsers.length; ++n) + { + if ("object" != typeof e.preLinkUsers[n]) throw TypeError(".webcast.im.LinkerLeaveContent.preLinkUsers: object expected"); + t.preLinkUsers[n] = l.webcast.data.ListUser.fromObject(e.preLinkUsers[n]) + } + } + return null != e.version && (a.Long ? (t.version = a.Long.fromValue(e.version)).unsigned = !0 : "string" == typeof e.version ? t.version = parseInt(e.version, 10) : "number" == typeof e.version ? t.version = e.version : "object" == typeof e.version && (t.version = new a.LongBits(e.version.low >>> 0, e.version.high >>> 0).toNumber(!0))), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.linkedUsers = [], n.preLinkUsers = []), t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.userId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.userId = t.longs === String ? "0" : 0; + if (n.user = null, a.Long) + { + r = new a.Long(0, 0, !0); + n.version = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.version = t.longs === String ? "0" : 0 + } + if (null != e.userId && e.hasOwnProperty("userId") && ("number" == typeof e.userId ? n.userId = t.longs === String ? String(e.userId) : e.userId : n.userId = t.longs === String ? a.Long.prototype.toString.call(e.userId) : t.longs === Number ? new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber() : e.userId), e.linkedUsers && e.linkedUsers.length) + { + n.linkedUsers = []; + for (var o = 0; o < e.linkedUsers.length; ++o) n.linkedUsers[o] = l.webcast.data.ListUser.toObject(e.linkedUsers[o], t) + } + if (null != e.user && e.hasOwnProperty("user") && (n.user = l.webcast.data.ListUser.toObject(e.user, t)), e.preLinkUsers && e.preLinkUsers.length) + { + n.preLinkUsers = []; + for (o = 0; o < e.preLinkUsers.length; ++o) n.preLinkUsers[o] = l.webcast.data.ListUser.toObject(e.preLinkUsers[o], t) + } + return null != e.version && e.hasOwnProperty("version") && ("number" == typeof e.version ? n.version = t.longs === String ? String(e.version) : e.version : n.version = t.longs === String ? a.Long.prototype.toString.call(e.version) : t.longs === Number ? new a.LongBits(e.version.low >>> 0, e.version.high >>> 0).toNumber(!0) : e.version), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerCancelContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.fromUserId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.toUserId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.cancelType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.fromUserId && Object.hasOwnProperty.call(e, "fromUserId") && t.uint32(8).int64(e.fromUserId), null != e.toUserId && Object.hasOwnProperty.call(e, "toUserId") && t.uint32(16).int64(e.toUserId), null != e.cancelType && Object.hasOwnProperty.call(e, "cancelType") && t.uint32(24).int64(e.cancelType), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerCancelContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.fromUserId = e.int64(); + break; + case 2: + r.toUserId = e.int64(); + break; + case 3: + r.cancelType = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.fromUserId && e.hasOwnProperty("fromUserId") && !(a.isInteger(e.fromUserId) || e.fromUserId && a.isInteger(e.fromUserId.low) && a.isInteger(e.fromUserId.high)) ? "fromUserId: integer|Long expected" : null != e.toUserId && e.hasOwnProperty("toUserId") && !(a.isInteger(e.toUserId) || e.toUserId && a.isInteger(e.toUserId.low) && a.isInteger(e.toUserId.high)) ? "toUserId: integer|Long expected" : null != e.cancelType && e.hasOwnProperty("cancelType") && !(a.isInteger(e.cancelType) || e.cancelType && a.isInteger(e.cancelType.low) && a.isInteger(e.cancelType.high)) ? "cancelType: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerCancelContent) return e; + var t = new l.webcast.im.LinkerCancelContent; + return null != e.fromUserId && (a.Long ? (t.fromUserId = a.Long.fromValue(e.fromUserId)).unsigned = !1 : "string" == typeof e.fromUserId ? t.fromUserId = parseInt(e.fromUserId, 10) : "number" == typeof e.fromUserId ? t.fromUserId = e.fromUserId : "object" == typeof e.fromUserId && (t.fromUserId = new a.LongBits(e.fromUserId.low >>> 0, e.fromUserId.high >>> 0).toNumber())), null != e.toUserId && (a.Long ? (t.toUserId = a.Long.fromValue(e.toUserId)).unsigned = !1 : "string" == typeof e.toUserId ? t.toUserId = parseInt(e.toUserId, 10) : "number" == typeof e.toUserId ? t.toUserId = e.toUserId : "object" == typeof e.toUserId && (t.toUserId = new a.LongBits(e.toUserId.low >>> 0, e.toUserId.high >>> 0).toNumber())), null != e.cancelType && (a.Long ? (t.cancelType = a.Long.fromValue(e.cancelType)).unsigned = !1 : "string" == typeof e.cancelType ? t.cancelType = parseInt(e.cancelType, 10) : "number" == typeof e.cancelType ? t.cancelType = e.cancelType : "object" == typeof e.cancelType && (t.cancelType = new a.LongBits(e.cancelType.low >>> 0, e.cancelType.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.fromUserId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fromUserId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.toUserId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.toUserId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.cancelType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.cancelType = t.longs === String ? "0" : 0 + } + return null != e.fromUserId && e.hasOwnProperty("fromUserId") && ("number" == typeof e.fromUserId ? n.fromUserId = t.longs === String ? String(e.fromUserId) : e.fromUserId : n.fromUserId = t.longs === String ? a.Long.prototype.toString.call(e.fromUserId) : t.longs === Number ? new a.LongBits(e.fromUserId.low >>> 0, e.fromUserId.high >>> 0).toNumber() : e.fromUserId), null != e.toUserId && e.hasOwnProperty("toUserId") && ("number" == typeof e.toUserId ? n.toUserId = t.longs === String ? String(e.toUserId) : e.toUserId : n.toUserId = t.longs === String ? a.Long.prototype.toString.call(e.toUserId) : t.longs === Number ? new a.LongBits(e.toUserId.low >>> 0, e.toUserId.high >>> 0).toNumber() : e.toUserId), null != e.cancelType && e.hasOwnProperty("cancelType") && ("number" == typeof e.cancelType ? n.cancelType = t.longs === String ? String(e.cancelType) : e.cancelType : n.cancelType = t.longs === String ? a.Long.prototype.toString.call(e.cancelType) : t.longs === Number ? new a.LongBits(e.cancelType.low >>> 0, e.cancelType.high >>> 0).toNumber() : e.cancelType), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerKickOutContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.fromUserId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.controlType = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.fromUserId && Object.hasOwnProperty.call(e, "fromUserId") && t.uint32(8).int64(e.fromUserId), null != e.controlType && Object.hasOwnProperty.call(e, "controlType") && t.uint32(16).int32(e.controlType), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerKickOutContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.fromUserId = e.int64(); + break; + case 2: + r.controlType = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.fromUserId && e.hasOwnProperty("fromUserId") && !(a.isInteger(e.fromUserId) || e.fromUserId && a.isInteger(e.fromUserId.low) && a.isInteger(e.fromUserId.high))) return "fromUserId: integer|Long expected"; + if (null != e.controlType && e.hasOwnProperty("controlType")) switch (e.controlType) + { + default: + return "controlType: enum value expected"; + case 0: + case 1: + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerKickOutContent) return e; + var t = new l.webcast.im.LinkerKickOutContent; + switch (null != e.fromUserId && (a.Long ? (t.fromUserId = a.Long.fromValue(e.fromUserId)).unsigned = !1 : "string" == typeof e.fromUserId ? t.fromUserId = parseInt(e.fromUserId, 10) : "number" == typeof e.fromUserId ? t.fromUserId = e.fromUserId : "object" == typeof e.fromUserId && (t.fromUserId = new a.LongBits(e.fromUserId.low >>> 0, e.fromUserId.high >>> 0).toNumber())), e.controlType) + { + case "UNKOWN_CONTROL": + case 0: + t.controlType = 0; + break; + case "LINK_COMMENT": + case 1: + t.controlType = 1 + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.fromUserId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fromUserId = t.longs === String ? "0" : 0; + n.controlType = t.enums === String ? "UNKOWN_CONTROL" : 0 + } + return null != e.fromUserId && e.hasOwnProperty("fromUserId") && ("number" == typeof e.fromUserId ? n.fromUserId = t.longs === String ? String(e.fromUserId) : e.fromUserId : n.fromUserId = t.longs === String ? a.Long.prototype.toString.call(e.fromUserId) : t.longs === Number ? new a.LongBits(e.fromUserId.low >>> 0, e.fromUserId.high >>> 0).toNumber() : e.fromUserId), null != e.controlType && e.hasOwnProperty("controlType") && (n.controlType = t.enums === String ? l.webcast.data.ActionControlType[e.controlType] : e.controlType), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerSysKickOutContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.userId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.linkmicIdStr = "", e.prototype.toastMsg = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.userId && Object.hasOwnProperty.call(e, "userId") && t.uint32(8).int64(e.userId), null != e.linkmicIdStr && Object.hasOwnProperty.call(e, "linkmicIdStr") && t.uint32(18).string(e.linkmicIdStr), null != e.toastMsg && Object.hasOwnProperty.call(e, "toastMsg") && t.uint32(26).string(e.toastMsg), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerSysKickOutContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.userId = e.int64(); + break; + case 2: + r.linkmicIdStr = e.string(); + break; + case 3: + r.toastMsg = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.userId && e.hasOwnProperty("userId") && !(a.isInteger(e.userId) || e.userId && a.isInteger(e.userId.low) && a.isInteger(e.userId.high)) ? "userId: integer|Long expected" : null != e.linkmicIdStr && e.hasOwnProperty("linkmicIdStr") && !a.isString(e.linkmicIdStr) ? "linkmicIdStr: string expected" : null != e.toastMsg && e.hasOwnProperty("toastMsg") && !a.isString(e.toastMsg) ? "toastMsg: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerSysKickOutContent) return e; + var t = new l.webcast.im.LinkerSysKickOutContent; + return null != e.userId && (a.Long ? (t.userId = a.Long.fromValue(e.userId)).unsigned = !1 : "string" == typeof e.userId ? t.userId = parseInt(e.userId, 10) : "number" == typeof e.userId ? t.userId = e.userId : "object" == typeof e.userId && (t.userId = new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber())), null != e.linkmicIdStr && (t.linkmicIdStr = String(e.linkmicIdStr)), null != e.toastMsg && (t.toastMsg = String(e.toastMsg)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.userId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.userId = t.longs === String ? "0" : 0; + n.linkmicIdStr = "", n.toastMsg = "" + } + return null != e.userId && e.hasOwnProperty("userId") && ("number" == typeof e.userId ? n.userId = t.longs === String ? String(e.userId) : e.userId : n.userId = t.longs === String ? a.Long.prototype.toString.call(e.userId) : t.longs === Number ? new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber() : e.userId), null != e.linkmicIdStr && e.hasOwnProperty("linkmicIdStr") && (n.linkmicIdStr = e.linkmicIdStr), null != e.toastMsg && e.hasOwnProperty("toastMsg") && (n.toastMsg = e.toastMsg), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerWaitingListChangeContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerWaitingListChangeContent; e.pos < n;) + { + var i = e.uint32(); + e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null + }, e.fromObject = function (e) + { + return e instanceof l.webcast.im.LinkerWaitingListChangeContent ? e : new l.webcast.im.LinkerWaitingListChangeContent + }, e.toObject = function () + { + return {} + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.MessagePushType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "PushType_Normal"] = 0, t[e[1] = "PushType_Time"] = 1, t + }(), e.LinkerLinkedListChangeContent = function () + { + function e(e) + { + if (this.linkedUsers = [], this.preLinkUsers = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.linkedUsers = a.emptyArray, e.prototype.preLinkUsers = a.emptyArray, e.prototype.version = a.Long ? a.Long.fromBits(0, 0, !0) : 0, e.prototype.pushType = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.linkedUsers && e.linkedUsers.length) + for (var n = 0; n < e.linkedUsers.length; ++n) l.webcast.data.ListUser.encode(e.linkedUsers[n], t.uint32(10).fork()).ldelim(); + if (null != e.preLinkUsers && e.preLinkUsers.length) + for (n = 0; n < e.preLinkUsers.length; ++n) l.webcast.data.ListUser.encode(e.preLinkUsers[n], t.uint32(18).fork()).ldelim(); + return null != e.version && Object.hasOwnProperty.call(e, "version") && t.uint32(24).uint64(e.version), null != e.pushType && Object.hasOwnProperty.call(e, "pushType") && t.uint32(32).int32(e.pushType), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerLinkedListChangeContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.linkedUsers && r.linkedUsers.length || (r.linkedUsers = []), r.linkedUsers.push(l.webcast.data.ListUser.decode(e, e.uint32())); + break; + case 2: + r.preLinkUsers && r.preLinkUsers.length || (r.preLinkUsers = []), r.preLinkUsers.push(l.webcast.data.ListUser.decode(e, e.uint32())); + break; + case 3: + r.version = e.uint64(); + break; + case 4: + r.pushType = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.linkedUsers && e.hasOwnProperty("linkedUsers")) + { + if (!Array.isArray(e.linkedUsers)) return "linkedUsers: array expected"; + for (var t = 0; t < e.linkedUsers.length; ++t) + { + if (n = l.webcast.data.ListUser.verify(e.linkedUsers[t])) return "linkedUsers." + n + } + } + if (null != e.preLinkUsers && e.hasOwnProperty("preLinkUsers")) + { + if (!Array.isArray(e.preLinkUsers)) return "preLinkUsers: array expected"; + for (t = 0; t < e.preLinkUsers.length; ++t) + { + var n; + if (n = l.webcast.data.ListUser.verify(e.preLinkUsers[t])) return "preLinkUsers." + n + } + } + if (null != e.version && e.hasOwnProperty("version") && !(a.isInteger(e.version) || e.version && a.isInteger(e.version.low) && a.isInteger(e.version.high))) return "version: integer|Long expected"; + if (null != e.pushType && e.hasOwnProperty("pushType")) switch (e.pushType) + { + default: + return "pushType: enum value expected"; + case 0: + case 1: + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerLinkedListChangeContent) return e; + var t = new l.webcast.im.LinkerLinkedListChangeContent; + if (e.linkedUsers) + { + if (!Array.isArray(e.linkedUsers)) throw TypeError(".webcast.im.LinkerLinkedListChangeContent.linkedUsers: array expected"); + t.linkedUsers = []; + for (var n = 0; n < e.linkedUsers.length; ++n) + { + if ("object" != typeof e.linkedUsers[n]) throw TypeError(".webcast.im.LinkerLinkedListChangeContent.linkedUsers: object expected"); + t.linkedUsers[n] = l.webcast.data.ListUser.fromObject(e.linkedUsers[n]) + } + } + if (e.preLinkUsers) + { + if (!Array.isArray(e.preLinkUsers)) throw TypeError(".webcast.im.LinkerLinkedListChangeContent.preLinkUsers: array expected"); + t.preLinkUsers = []; + for (n = 0; n < e.preLinkUsers.length; ++n) + { + if ("object" != typeof e.preLinkUsers[n]) throw TypeError(".webcast.im.LinkerLinkedListChangeContent.preLinkUsers: object expected"); + t.preLinkUsers[n] = l.webcast.data.ListUser.fromObject(e.preLinkUsers[n]) + } + } + switch (null != e.version && (a.Long ? (t.version = a.Long.fromValue(e.version)).unsigned = !0 : "string" == typeof e.version ? t.version = parseInt(e.version, 10) : "number" == typeof e.version ? t.version = e.version : "object" == typeof e.version && (t.version = new a.LongBits(e.version.low >>> 0, e.version.high >>> 0).toNumber(!0))), e.pushType) + { + case "PushType_Normal": + case 0: + t.pushType = 0; + break; + case "PushType_Time": + case 1: + t.pushType = 1 + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.linkedUsers = [], n.preLinkUsers = []), t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !0); + n.version = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.version = t.longs === String ? "0" : 0; + n.pushType = t.enums === String ? "PushType_Normal" : 0 + } + if (e.linkedUsers && e.linkedUsers.length) + { + n.linkedUsers = []; + for (var o = 0; o < e.linkedUsers.length; ++o) n.linkedUsers[o] = l.webcast.data.ListUser.toObject(e.linkedUsers[o], t) + } + if (e.preLinkUsers && e.preLinkUsers.length) + { + n.preLinkUsers = []; + for (o = 0; o < e.preLinkUsers.length; ++o) n.preLinkUsers[o] = l.webcast.data.ListUser.toObject(e.preLinkUsers[o], t) + } + return null != e.version && e.hasOwnProperty("version") && ("number" == typeof e.version ? n.version = t.longs === String ? String(e.version) : e.version : n.version = t.longs === String ? a.Long.prototype.toString.call(e.version) : t.longs === Number ? new a.LongBits(e.version.low >>> 0, e.version.high >>> 0).toNumber(!0) : e.version), null != e.pushType && e.hasOwnProperty("pushType") && (n.pushType = t.enums === String ? l.webcast.im.MessagePushType[e.pushType] : e.pushType), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerBanContent = function () + { + function e(e) + { + if (this.banUsers = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.banUsers = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.banUsers && e.banUsers.length) + for (var n = 0; n < e.banUsers.length; ++n) l.webcast.data.BanUser.encode(e.banUsers[n], t.uint32(10).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerBanContent; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.banUsers && r.banUsers.length || (r.banUsers = []), r.banUsers.push(l.webcast.data.BanUser.decode(e, e.uint32())); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.banUsers && e.hasOwnProperty("banUsers")) + { + if (!Array.isArray(e.banUsers)) return "banUsers: array expected"; + for (var t = 0; t < e.banUsers.length; ++t) + { + var n = l.webcast.data.BanUser.verify(e.banUsers[t]); + if (n) return "banUsers." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerBanContent) return e; + var t = new l.webcast.im.LinkerBanContent; + if (e.banUsers) + { + if (!Array.isArray(e.banUsers)) throw TypeError(".webcast.im.LinkerBanContent.banUsers: array expected"); + t.banUsers = []; + for (var n = 0; n < e.banUsers.length; ++n) + { + if ("object" != typeof e.banUsers[n]) throw TypeError(".webcast.im.LinkerBanContent.banUsers: object expected"); + t.banUsers[n] = l.webcast.data.BanUser.fromObject(e.banUsers[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.banUsers = []), e.banUsers && e.banUsers.length) + { + n.banUsers = []; + for (var r = 0; r < e.banUsers.length; ++r) n.banUsers[r] = l.webcast.data.BanUser.toObject(e.banUsers[r], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerUpdateUserContent = function () + { + function e(e) + { + if (this.updateInfo = {}, this.linkedUsers = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.fromUserId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.toUserId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.updateInfo = a.emptyObject, e.prototype.linkedUsers = a.emptyArray, e.prototype.extra = "", e.prototype.version = a.Long ? a.Long.fromBits(0, 0, !0) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.fromUserId && Object.hasOwnProperty.call(e, "fromUserId") && t.uint32(8).int64(e.fromUserId), null != e.toUserId && Object.hasOwnProperty.call(e, "toUserId") && t.uint32(16).int64(e.toUserId), null != e.updateInfo && Object.hasOwnProperty.call(e, "updateInfo")) + for (var n = Object.keys(e.updateInfo), r = 0; r < n.length; ++r) t.uint32(26).fork().uint32(10).string(n[r]).uint32(18).string(e.updateInfo[n[r]]).ldelim(); + if (null != e.linkedUsers && e.linkedUsers.length) + for (r = 0; r < e.linkedUsers.length; ++r) l.webcast.data.ListUser.encode(e.linkedUsers[r], t.uint32(34).fork()).ldelim(); + return null != e.extra && Object.hasOwnProperty.call(e, "extra") && t.uint32(42).string(e.extra), null != e.version && Object.hasOwnProperty.call(e, "version") && t.uint32(48).uint64(e.version), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.im.LinkerUpdateUserContent; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.fromUserId = e.int64(); + break; + case 2: + s.toUserId = e.int64(); + break; + case 3: + s.updateInfo === a.emptyObject && (s.updateInfo = {}); + var u = e.uint32() + e.pos; + for (n = "", r = ""; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.updateInfo[n] = r; + break; + case 4: + s.linkedUsers && s.linkedUsers.length || (s.linkedUsers = []), s.linkedUsers.push(l.webcast.data.ListUser.decode(e, e.uint32())); + break; + case 5: + s.extra = e.string(); + break; + case 6: + s.version = e.uint64(); + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.fromUserId && e.hasOwnProperty("fromUserId") && !(a.isInteger(e.fromUserId) || e.fromUserId && a.isInteger(e.fromUserId.low) && a.isInteger(e.fromUserId.high))) return "fromUserId: integer|Long expected"; + if (null != e.toUserId && e.hasOwnProperty("toUserId") && !(a.isInteger(e.toUserId) || e.toUserId && a.isInteger(e.toUserId.low) && a.isInteger(e.toUserId.high))) return "toUserId: integer|Long expected"; + if (null != e.updateInfo && e.hasOwnProperty("updateInfo")) + { + if (!a.isObject(e.updateInfo)) return "updateInfo: object expected"; + for (var t = Object.keys(e.updateInfo), n = 0; n < t.length; ++n) + if (!a.isString(e.updateInfo[t[n]])) return "updateInfo: string{k:string} expected" + } + if (null != e.linkedUsers && e.hasOwnProperty("linkedUsers")) + { + if (!Array.isArray(e.linkedUsers)) return "linkedUsers: array expected"; + for (n = 0; n < e.linkedUsers.length; ++n) + { + var r = l.webcast.data.ListUser.verify(e.linkedUsers[n]); + if (r) return "linkedUsers." + r + } + } + return null != e.extra && e.hasOwnProperty("extra") && !a.isString(e.extra) ? "extra: string expected" : null != e.version && e.hasOwnProperty("version") && !(a.isInteger(e.version) || e.version && a.isInteger(e.version.low) && a.isInteger(e.version.high)) ? "version: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerUpdateUserContent) return e; + var t = new l.webcast.im.LinkerUpdateUserContent; + if (null != e.fromUserId && (a.Long ? (t.fromUserId = a.Long.fromValue(e.fromUserId)).unsigned = !1 : "string" == typeof e.fromUserId ? t.fromUserId = parseInt(e.fromUserId, 10) : "number" == typeof e.fromUserId ? t.fromUserId = e.fromUserId : "object" == typeof e.fromUserId && (t.fromUserId = new a.LongBits(e.fromUserId.low >>> 0, e.fromUserId.high >>> 0).toNumber())), null != e.toUserId && (a.Long ? (t.toUserId = a.Long.fromValue(e.toUserId)).unsigned = !1 : "string" == typeof e.toUserId ? t.toUserId = parseInt(e.toUserId, 10) : "number" == typeof e.toUserId ? t.toUserId = e.toUserId : "object" == typeof e.toUserId && (t.toUserId = new a.LongBits(e.toUserId.low >>> 0, e.toUserId.high >>> 0).toNumber())), e.updateInfo) + { + if ("object" != typeof e.updateInfo) throw TypeError(".webcast.im.LinkerUpdateUserContent.updateInfo: object expected"); + t.updateInfo = {}; + for (var n = Object.keys(e.updateInfo), r = 0; r < n.length; ++r) t.updateInfo[n[r]] = String(e.updateInfo[n[r]]) + } + if (e.linkedUsers) + { + if (!Array.isArray(e.linkedUsers)) throw TypeError(".webcast.im.LinkerUpdateUserContent.linkedUsers: array expected"); + t.linkedUsers = []; + for (r = 0; r < e.linkedUsers.length; ++r) + { + if ("object" != typeof e.linkedUsers[r]) throw TypeError(".webcast.im.LinkerUpdateUserContent.linkedUsers: object expected"); + t.linkedUsers[r] = l.webcast.data.ListUser.fromObject(e.linkedUsers[r]) + } + } + return null != e.extra && (t.extra = String(e.extra)), null != e.version && (a.Long ? (t.version = a.Long.fromValue(e.version)).unsigned = !0 : "string" == typeof e.version ? t.version = parseInt(e.version, 10) : "number" == typeof e.version ? t.version = e.version : "object" == typeof e.version && (t.version = new a.LongBits(e.version.low >>> 0, e.version.high >>> 0).toNumber(!0))), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.arrays || t.defaults) && (r.linkedUsers = []), (t.objects || t.defaults) && (r.updateInfo = {}), t.defaults) + { + if (a.Long) + { + var o = new a.Long(0, 0, !1); + r.fromUserId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.fromUserId = t.longs === String ? "0" : 0; + if (a.Long) + { + o = new a.Long(0, 0, !1); + r.toUserId = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.toUserId = t.longs === String ? "0" : 0; + if (r.extra = "", a.Long) + { + o = new a.Long(0, 0, !0); + r.version = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.version = t.longs === String ? "0" : 0 + } + if (null != e.fromUserId && e.hasOwnProperty("fromUserId") && ("number" == typeof e.fromUserId ? r.fromUserId = t.longs === String ? String(e.fromUserId) : e.fromUserId : r.fromUserId = t.longs === String ? a.Long.prototype.toString.call(e.fromUserId) : t.longs === Number ? new a.LongBits(e.fromUserId.low >>> 0, e.fromUserId.high >>> 0).toNumber() : e.fromUserId), null != e.toUserId && e.hasOwnProperty("toUserId") && ("number" == typeof e.toUserId ? r.toUserId = t.longs === String ? String(e.toUserId) : e.toUserId : r.toUserId = t.longs === String ? a.Long.prototype.toString.call(e.toUserId) : t.longs === Number ? new a.LongBits(e.toUserId.low >>> 0, e.toUserId.high >>> 0).toNumber() : e.toUserId), e.updateInfo && (n = Object.keys(e.updateInfo)).length) + { + r.updateInfo = {}; + for (var i = 0; i < n.length; ++i) r.updateInfo[n[i]] = e.updateInfo[n[i]] + } + if (e.linkedUsers && e.linkedUsers.length) + { + r.linkedUsers = []; + for (i = 0; i < e.linkedUsers.length; ++i) r.linkedUsers[i] = l.webcast.data.ListUser.toObject(e.linkedUsers[i], t) + } + return null != e.extra && e.hasOwnProperty("extra") && (r.extra = e.extra), null != e.version && e.hasOwnProperty("version") && ("number" == typeof e.version ? r.version = t.longs === String ? String(e.version) : e.version : r.version = t.longs === String ? a.Long.prototype.toString.call(e.version) : t.longs === Number ? new a.LongBits(e.version.low >>> 0, e.version.high >>> 0).toNumber(!0) : e.version), r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ChannelNoticeContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.channelId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.action = 0, e.prototype.extraInfo = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.channelId && Object.hasOwnProperty.call(e, "channelId") && t.uint32(8).int64(e.channelId), null != e.action && Object.hasOwnProperty.call(e, "action") && t.uint32(16).int32(e.action), null != e.extraInfo && Object.hasOwnProperty.call(e, "extraInfo") && t.uint32(26).string(e.extraInfo), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.ChannelNoticeContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.channelId = e.int64(); + break; + case 2: + r.action = e.int32(); + break; + case 3: + r.extraInfo = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.channelId && e.hasOwnProperty("channelId") && !(a.isInteger(e.channelId) || e.channelId && a.isInteger(e.channelId.low) && a.isInteger(e.channelId.high))) return "channelId: integer|Long expected"; + if (null != e.action && e.hasOwnProperty("action")) switch (e.action) + { + default: + return "action: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + } + return null != e.extraInfo && e.hasOwnProperty("extraInfo") && !a.isString(e.extraInfo) ? "extraInfo: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.ChannelNoticeContent) return e; + var t = new l.webcast.im.ChannelNoticeContent; + switch (null != e.channelId && (a.Long ? (t.channelId = a.Long.fromValue(e.channelId)).unsigned = !1 : "string" == typeof e.channelId ? t.channelId = parseInt(e.channelId, 10) : "number" == typeof e.channelId ? t.channelId = e.channelId : "object" == typeof e.channelId && (t.channelId = new a.LongBits(e.channelId.low >>> 0, e.channelId.high >>> 0).toNumber())), e.action) + { + case "ChannelAction_Unknown": + case 0: + t.action = 0; + break; + case "ChannelAction_Join": + case 1: + t.action = 1; + break; + case "ChannelAction_Leave": + case 2: + t.action = 2; + break; + case "ChannelAction_Silence": + case 3: + t.action = 3; + break; + case "ChannelAction_UnSilence": + case 4: + t.action = 4 + } + return null != e.extraInfo && (t.extraInfo = String(e.extraInfo)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.channelId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.channelId = t.longs === String ? "0" : 0; + n.action = t.enums === String ? "ChannelAction_Unknown" : 0, n.extraInfo = "" + } + return null != e.channelId && e.hasOwnProperty("channelId") && ("number" == typeof e.channelId ? n.channelId = t.longs === String ? String(e.channelId) : e.channelId : n.channelId = t.longs === String ? a.Long.prototype.toString.call(e.channelId) : t.longs === Number ? new a.LongBits(e.channelId.low >>> 0, e.channelId.high >>> 0).toNumber() : e.channelId), null != e.action && e.hasOwnProperty("action") && (n.action = t.enums === String ? l.webcast.im.ChannelActionType[e.action] : e.action), null != e.extraInfo && e.hasOwnProperty("extraInfo") && (n.extraInfo = e.extraInfo), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerItemContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.itemId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.authorId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.authorName = "", e.prototype.avatarThumb = null, e.prototype.avatarMedium = null, e.prototype.avatarLarge = null, e.prototype.itemDescription = "", e.prototype.musicId = "", e.prototype.musicTitle = "", e.prototype.musicAuthor = "", e.prototype.musicUrl = "", e.prototype.commentCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.itemId && Object.hasOwnProperty.call(e, "itemId") && t.uint32(8).int64(e.itemId), null != e.authorId && Object.hasOwnProperty.call(e, "authorId") && t.uint32(16).int64(e.authorId), null != e.authorName && Object.hasOwnProperty.call(e, "authorName") && t.uint32(26).string(e.authorName), null != e.avatarThumb && Object.hasOwnProperty.call(e, "avatarThumb") && l.webcast.data.Image.encode(e.avatarThumb, t.uint32(34).fork()).ldelim(), null != e.avatarMedium && Object.hasOwnProperty.call(e, "avatarMedium") && l.webcast.data.Image.encode(e.avatarMedium, t.uint32(42).fork()).ldelim(), null != e.avatarLarge && Object.hasOwnProperty.call(e, "avatarLarge") && l.webcast.data.Image.encode(e.avatarLarge, t.uint32(50).fork()).ldelim(), null != e.itemDescription && Object.hasOwnProperty.call(e, "itemDescription") && t.uint32(58).string(e.itemDescription), null != e.musicId && Object.hasOwnProperty.call(e, "musicId") && t.uint32(66).string(e.musicId), null != e.musicTitle && Object.hasOwnProperty.call(e, "musicTitle") && t.uint32(74).string(e.musicTitle), null != e.musicAuthor && Object.hasOwnProperty.call(e, "musicAuthor") && t.uint32(82).string(e.musicAuthor), null != e.musicUrl && Object.hasOwnProperty.call(e, "musicUrl") && t.uint32(90).string(e.musicUrl), null != e.commentCount && Object.hasOwnProperty.call(e, "commentCount") && t.uint32(96).int64(e.commentCount), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerItemContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.itemId = e.int64(); + break; + case 2: + r.authorId = e.int64(); + break; + case 3: + r.authorName = e.string(); + break; + case 4: + r.avatarThumb = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 5: + r.avatarMedium = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 6: + r.avatarLarge = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 7: + r.itemDescription = e.string(); + break; + case 8: + r.musicId = e.string(); + break; + case 9: + r.musicTitle = e.string(); + break; + case 10: + r.musicAuthor = e.string(); + break; + case 11: + r.musicUrl = e.string(); + break; + case 12: + r.commentCount = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.itemId && e.hasOwnProperty("itemId") && !(a.isInteger(e.itemId) || e.itemId && a.isInteger(e.itemId.low) && a.isInteger(e.itemId.high))) return "itemId: integer|Long expected"; + if (null != e.authorId && e.hasOwnProperty("authorId") && !(a.isInteger(e.authorId) || e.authorId && a.isInteger(e.authorId.low) && a.isInteger(e.authorId.high))) return "authorId: integer|Long expected"; + if (null != e.authorName && e.hasOwnProperty("authorName") && !a.isString(e.authorName)) return "authorName: string expected"; + var t; + if (null != e.avatarThumb && e.hasOwnProperty("avatarThumb") && (t = l.webcast.data.Image.verify(e.avatarThumb))) return "avatarThumb." + t; + if (null != e.avatarMedium && e.hasOwnProperty("avatarMedium") && (t = l.webcast.data.Image.verify(e.avatarMedium))) return "avatarMedium." + t; + if (null != e.avatarLarge && e.hasOwnProperty("avatarLarge") && (t = l.webcast.data.Image.verify(e.avatarLarge))) return "avatarLarge." + t; + return null != e.itemDescription && e.hasOwnProperty("itemDescription") && !a.isString(e.itemDescription) ? "itemDescription: string expected" : null != e.musicId && e.hasOwnProperty("musicId") && !a.isString(e.musicId) ? "musicId: string expected" : null != e.musicTitle && e.hasOwnProperty("musicTitle") && !a.isString(e.musicTitle) ? "musicTitle: string expected" : null != e.musicAuthor && e.hasOwnProperty("musicAuthor") && !a.isString(e.musicAuthor) ? "musicAuthor: string expected" : null != e.musicUrl && e.hasOwnProperty("musicUrl") && !a.isString(e.musicUrl) ? "musicUrl: string expected" : null != e.commentCount && e.hasOwnProperty("commentCount") && !(a.isInteger(e.commentCount) || e.commentCount && a.isInteger(e.commentCount.low) && a.isInteger(e.commentCount.high)) ? "commentCount: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerItemContent) return e; + var t = new l.webcast.im.LinkerItemContent; + if (null != e.itemId && (a.Long ? (t.itemId = a.Long.fromValue(e.itemId)).unsigned = !1 : "string" == typeof e.itemId ? t.itemId = parseInt(e.itemId, 10) : "number" == typeof e.itemId ? t.itemId = e.itemId : "object" == typeof e.itemId && (t.itemId = new a.LongBits(e.itemId.low >>> 0, e.itemId.high >>> 0).toNumber())), null != e.authorId && (a.Long ? (t.authorId = a.Long.fromValue(e.authorId)).unsigned = !1 : "string" == typeof e.authorId ? t.authorId = parseInt(e.authorId, 10) : "number" == typeof e.authorId ? t.authorId = e.authorId : "object" == typeof e.authorId && (t.authorId = new a.LongBits(e.authorId.low >>> 0, e.authorId.high >>> 0).toNumber())), null != e.authorName && (t.authorName = String(e.authorName)), null != e.avatarThumb) + { + if ("object" != typeof e.avatarThumb) throw TypeError(".webcast.im.LinkerItemContent.avatarThumb: object expected"); + t.avatarThumb = l.webcast.data.Image.fromObject(e.avatarThumb) + } + if (null != e.avatarMedium) + { + if ("object" != typeof e.avatarMedium) throw TypeError(".webcast.im.LinkerItemContent.avatarMedium: object expected"); + t.avatarMedium = l.webcast.data.Image.fromObject(e.avatarMedium) + } + if (null != e.avatarLarge) + { + if ("object" != typeof e.avatarLarge) throw TypeError(".webcast.im.LinkerItemContent.avatarLarge: object expected"); + t.avatarLarge = l.webcast.data.Image.fromObject(e.avatarLarge) + } + return null != e.itemDescription && (t.itemDescription = String(e.itemDescription)), null != e.musicId && (t.musicId = String(e.musicId)), null != e.musicTitle && (t.musicTitle = String(e.musicTitle)), null != e.musicAuthor && (t.musicAuthor = String(e.musicAuthor)), null != e.musicUrl && (t.musicUrl = String(e.musicUrl)), null != e.commentCount && (a.Long ? (t.commentCount = a.Long.fromValue(e.commentCount)).unsigned = !1 : "string" == typeof e.commentCount ? t.commentCount = parseInt(e.commentCount, 10) : "number" == typeof e.commentCount ? t.commentCount = e.commentCount : "object" == typeof e.commentCount && (t.commentCount = new a.LongBits(e.commentCount.low >>> 0, e.commentCount.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.itemId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.itemId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.authorId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.authorId = t.longs === String ? "0" : 0; + if (n.authorName = "", n.avatarThumb = null, n.avatarMedium = null, n.avatarLarge = null, n.itemDescription = "", n.musicId = "", n.musicTitle = "", n.musicAuthor = "", n.musicUrl = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.commentCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.commentCount = t.longs === String ? "0" : 0 + } + return null != e.itemId && e.hasOwnProperty("itemId") && ("number" == typeof e.itemId ? n.itemId = t.longs === String ? String(e.itemId) : e.itemId : n.itemId = t.longs === String ? a.Long.prototype.toString.call(e.itemId) : t.longs === Number ? new a.LongBits(e.itemId.low >>> 0, e.itemId.high >>> 0).toNumber() : e.itemId), null != e.authorId && e.hasOwnProperty("authorId") && ("number" == typeof e.authorId ? n.authorId = t.longs === String ? String(e.authorId) : e.authorId : n.authorId = t.longs === String ? a.Long.prototype.toString.call(e.authorId) : t.longs === Number ? new a.LongBits(e.authorId.low >>> 0, e.authorId.high >>> 0).toNumber() : e.authorId), null != e.authorName && e.hasOwnProperty("authorName") && (n.authorName = e.authorName), null != e.avatarThumb && e.hasOwnProperty("avatarThumb") && (n.avatarThumb = l.webcast.data.Image.toObject(e.avatarThumb, t)), null != e.avatarMedium && e.hasOwnProperty("avatarMedium") && (n.avatarMedium = l.webcast.data.Image.toObject(e.avatarMedium, t)), null != e.avatarLarge && e.hasOwnProperty("avatarLarge") && (n.avatarLarge = l.webcast.data.Image.toObject(e.avatarLarge, t)), null != e.itemDescription && e.hasOwnProperty("itemDescription") && (n.itemDescription = e.itemDescription), null != e.musicId && e.hasOwnProperty("musicId") && (n.musicId = e.musicId), null != e.musicTitle && e.hasOwnProperty("musicTitle") && (n.musicTitle = e.musicTitle), null != e.musicAuthor && e.hasOwnProperty("musicAuthor") && (n.musicAuthor = e.musicAuthor), null != e.musicUrl && e.hasOwnProperty("musicUrl") && (n.musicUrl = e.musicUrl), null != e.commentCount && e.hasOwnProperty("commentCount") && ("number" == typeof e.commentCount ? n.commentCount = t.longs === String ? String(e.commentCount) : e.commentCount : n.commentCount = t.longs === String ? a.Long.prototype.toString.call(e.commentCount) : t.longs === Number ? new a.LongBits(e.commentCount.low >>> 0, e.commentCount.high >>> 0).toNumber() : e.commentCount), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerUpdateLinkTypeApplyContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.fromUserId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.toUserId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.linkType = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.fromUserId && Object.hasOwnProperty.call(e, "fromUserId") && t.uint32(8).int64(e.fromUserId), null != e.toUserId && Object.hasOwnProperty.call(e, "toUserId") && t.uint32(16).int64(e.toUserId), null != e.linkType && Object.hasOwnProperty.call(e, "linkType") && t.uint32(24).int32(e.linkType), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerUpdateLinkTypeApplyContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.fromUserId = e.int64(); + break; + case 2: + r.toUserId = e.int64(); + break; + case 3: + r.linkType = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.fromUserId && e.hasOwnProperty("fromUserId") && !(a.isInteger(e.fromUserId) || e.fromUserId && a.isInteger(e.fromUserId.low) && a.isInteger(e.fromUserId.high))) return "fromUserId: integer|Long expected"; + if (null != e.toUserId && e.hasOwnProperty("toUserId") && !(a.isInteger(e.toUserId) || e.toUserId && a.isInteger(e.toUserId.low) && a.isInteger(e.toUserId.high))) return "toUserId: integer|Long expected"; + if (null != e.linkType && e.hasOwnProperty("linkType")) switch (e.linkType) + { + default: + return "linkType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerUpdateLinkTypeApplyContent) return e; + var t = new l.webcast.im.LinkerUpdateLinkTypeApplyContent; + switch (null != e.fromUserId && (a.Long ? (t.fromUserId = a.Long.fromValue(e.fromUserId)).unsigned = !1 : "string" == typeof e.fromUserId ? t.fromUserId = parseInt(e.fromUserId, 10) : "number" == typeof e.fromUserId ? t.fromUserId = e.fromUserId : "object" == typeof e.fromUserId && (t.fromUserId = new a.LongBits(e.fromUserId.low >>> 0, e.fromUserId.high >>> 0).toNumber())), null != e.toUserId && (a.Long ? (t.toUserId = a.Long.fromValue(e.toUserId)).unsigned = !1 : "string" == typeof e.toUserId ? t.toUserId = parseInt(e.toUserId, 10) : "number" == typeof e.toUserId ? t.toUserId = e.toUserId : "object" == typeof e.toUserId && (t.toUserId = new a.LongBits(e.toUserId.low >>> 0, e.toUserId.high >>> 0).toNumber())), e.linkType) + { + case "TYPE_UNKNOWN": + case 0: + t.linkType = 0; + break; + case "TYPE_VIDEO": + case 1: + t.linkType = 1; + break; + case "TYPE_AUDIO": + case 2: + t.linkType = 2; + break; + case "TYPE_VIRTUAL": + case 3: + t.linkType = 3; + break; + case "TYPE_CHORUS": + case 4: + t.linkType = 4 + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.fromUserId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fromUserId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.toUserId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.toUserId = t.longs === String ? "0" : 0; + n.linkType = t.enums === String ? "TYPE_UNKNOWN" : 0 + } + return null != e.fromUserId && e.hasOwnProperty("fromUserId") && ("number" == typeof e.fromUserId ? n.fromUserId = t.longs === String ? String(e.fromUserId) : e.fromUserId : n.fromUserId = t.longs === String ? a.Long.prototype.toString.call(e.fromUserId) : t.longs === Number ? new a.LongBits(e.fromUserId.low >>> 0, e.fromUserId.high >>> 0).toNumber() : e.fromUserId), null != e.toUserId && e.hasOwnProperty("toUserId") && ("number" == typeof e.toUserId ? n.toUserId = t.longs === String ? String(e.toUserId) : e.toUserId : n.toUserId = t.longs === String ? a.Long.prototype.toString.call(e.toUserId) : t.longs === Number ? new a.LongBits(e.toUserId.low >>> 0, e.toUserId.high >>> 0).toNumber() : e.toUserId), null != e.linkType && e.hasOwnProperty("linkType") && (n.linkType = t.enums === String ? l.webcast.data.LinkType[e.linkType] : e.linkType), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerUpdateLinkTypeReplyContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.fromUserId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.toUserId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.replyType = 0, e.prototype.replyPrompts = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.fromUserId && Object.hasOwnProperty.call(e, "fromUserId") && t.uint32(8).int64(e.fromUserId), null != e.toUserId && Object.hasOwnProperty.call(e, "toUserId") && t.uint32(16).int64(e.toUserId), null != e.replyType && Object.hasOwnProperty.call(e, "replyType") && t.uint32(24).int32(e.replyType), null != e.replyPrompts && Object.hasOwnProperty.call(e, "replyPrompts") && t.uint32(34).string(e.replyPrompts), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerUpdateLinkTypeReplyContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.fromUserId = e.int64(); + break; + case 2: + r.toUserId = e.int64(); + break; + case 3: + r.replyType = e.int32(); + break; + case 4: + r.replyPrompts = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.fromUserId && e.hasOwnProperty("fromUserId") && !(a.isInteger(e.fromUserId) || e.fromUserId && a.isInteger(e.fromUserId.low) && a.isInteger(e.fromUserId.high))) return "fromUserId: integer|Long expected"; + if (null != e.toUserId && e.hasOwnProperty("toUserId") && !(a.isInteger(e.toUserId) || e.toUserId && a.isInteger(e.toUserId.low) && a.isInteger(e.toUserId.high))) return "toUserId: integer|Long expected"; + if (null != e.replyType && e.hasOwnProperty("replyType")) switch (e.replyType) + { + default: + return "replyType: enum value expected"; + case 0: + case 1: + case 2: + } + return null != e.replyPrompts && e.hasOwnProperty("replyPrompts") && !a.isString(e.replyPrompts) ? "replyPrompts: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerUpdateLinkTypeReplyContent) return e; + var t = new l.webcast.im.LinkerUpdateLinkTypeReplyContent; + switch (null != e.fromUserId && (a.Long ? (t.fromUserId = a.Long.fromValue(e.fromUserId)).unsigned = !1 : "string" == typeof e.fromUserId ? t.fromUserId = parseInt(e.fromUserId, 10) : "number" == typeof e.fromUserId ? t.fromUserId = e.fromUserId : "object" == typeof e.fromUserId && (t.fromUserId = new a.LongBits(e.fromUserId.low >>> 0, e.fromUserId.high >>> 0).toNumber())), null != e.toUserId && (a.Long ? (t.toUserId = a.Long.fromValue(e.toUserId)).unsigned = !1 : "string" == typeof e.toUserId ? t.toUserId = parseInt(e.toUserId, 10) : "number" == typeof e.toUserId ? t.toUserId = e.toUserId : "object" == typeof e.toUserId && (t.toUserId = new a.LongBits(e.toUserId.low >>> 0, e.toUserId.high >>> 0).toNumber())), e.replyType) + { + case "UpdateLinkTypeReplyType_UNKNOWN": + case 0: + t.replyType = 0; + break; + case "UpdateLinkTypeReplyType_AGREE": + case 1: + t.replyType = 1; + break; + case "UpdateLinkTypeReplyType_REJECT": + case 2: + t.replyType = 2 + } + return null != e.replyPrompts && (t.replyPrompts = String(e.replyPrompts)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.fromUserId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fromUserId = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.toUserId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.toUserId = t.longs === String ? "0" : 0; + n.replyType = t.enums === String ? "UpdateLinkTypeReplyType_UNKNOWN" : 0, n.replyPrompts = "" + } + return null != e.fromUserId && e.hasOwnProperty("fromUserId") && ("number" == typeof e.fromUserId ? n.fromUserId = t.longs === String ? String(e.fromUserId) : e.fromUserId : n.fromUserId = t.longs === String ? a.Long.prototype.toString.call(e.fromUserId) : t.longs === Number ? new a.LongBits(e.fromUserId.low >>> 0, e.fromUserId.high >>> 0).toNumber() : e.fromUserId), null != e.toUserId && e.hasOwnProperty("toUserId") && ("number" == typeof e.toUserId ? n.toUserId = t.longs === String ? String(e.toUserId) : e.toUserId : n.toUserId = t.longs === String ? a.Long.prototype.toString.call(e.toUserId) : t.longs === Number ? new a.LongBits(e.toUserId.low >>> 0, e.toUserId.high >>> 0).toNumber() : e.toUserId), null != e.replyType && e.hasOwnProperty("replyType") && (n.replyType = t.enums === String ? l.webcast.data.UpdateLinkTypeReplyType[e.replyType] : e.replyType), null != e.replyPrompts && e.hasOwnProperty("replyPrompts") && (n.replyPrompts = e.replyPrompts), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerAvatarAuditContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.auditRes = 0, e.prototype.reason = "", e.prototype.reviewId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.auditRes && Object.hasOwnProperty.call(e, "auditRes") && t.uint32(8).int32(e.auditRes), null != e.reason && Object.hasOwnProperty.call(e, "reason") && t.uint32(18).string(e.reason), null != e.reviewId && Object.hasOwnProperty.call(e, "reviewId") && t.uint32(24).int64(e.reviewId), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerAvatarAuditContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.auditRes = e.int32(); + break; + case 2: + r.reason = e.string(); + break; + case 3: + r.reviewId = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.auditRes && e.hasOwnProperty("auditRes")) switch (e.auditRes) + { + default: + return "auditRes: enum value expected"; + case 0: + case 1: + case 2: + } + return null != e.reason && e.hasOwnProperty("reason") && !a.isString(e.reason) ? "reason: string expected" : null != e.reviewId && e.hasOwnProperty("reviewId") && !(a.isInteger(e.reviewId) || e.reviewId && a.isInteger(e.reviewId.low) && a.isInteger(e.reviewId.high)) ? "reviewId: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerAvatarAuditContent) return e; + var t = new l.webcast.im.LinkerAvatarAuditContent; + switch (e.auditRes) + { + case "AUDIT_UNKNOWN": + case 0: + t.auditRes = 0; + break; + case "AUDIT_PASS": + case 1: + t.auditRes = 1; + break; + case "AUDIT_REJECT": + case 2: + t.auditRes = 2 + } + return null != e.reason && (t.reason = String(e.reason)), null != e.reviewId && (a.Long ? (t.reviewId = a.Long.fromValue(e.reviewId)).unsigned = !1 : "string" == typeof e.reviewId ? t.reviewId = parseInt(e.reviewId, 10) : "number" == typeof e.reviewId ? t.reviewId = e.reviewId : "object" == typeof e.reviewId && (t.reviewId = new a.LongBits(e.reviewId.low >>> 0, e.reviewId.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + if (n.auditRes = t.enums === String ? "AUDIT_UNKNOWN" : 0, n.reason = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.reviewId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.reviewId = t.longs === String ? "0" : 0; + return null != e.auditRes && e.hasOwnProperty("auditRes") && (n.auditRes = t.enums === String ? l.webcast.data.AvatarAuditRes[e.auditRes] : e.auditRes), null != e.reason && e.hasOwnProperty("reason") && (n.reason = e.reason), null != e.reviewId && e.hasOwnProperty("reviewId") && ("number" == typeof e.reviewId ? n.reviewId = t.longs === String ? String(e.reviewId) : e.reviewId : n.reviewId = t.longs === String ? a.Long.prototype.toString.call(e.reviewId) : t.longs === Number ? new a.LongBits(e.reviewId.low >>> 0, e.reviewId.high >>> 0).toNumber() : e.reviewId), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerApplyExpiredContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.userId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.userId && Object.hasOwnProperty.call(e, "userId") && t.uint32(8).int64(e.userId), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerApplyExpiredContent; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.userId = e.int64(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.userId && e.hasOwnProperty("userId") && !(a.isInteger(e.userId) || e.userId && a.isInteger(e.userId.low) && a.isInteger(e.userId.high)) ? "userId: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerApplyExpiredContent) return e; + var t = new l.webcast.im.LinkerApplyExpiredContent; + return null != e.userId && (a.Long ? (t.userId = a.Long.fromValue(e.userId)).unsigned = !1 : "string" == typeof e.userId ? t.userId = parseInt(e.userId, 10) : "number" == typeof e.userId ? t.userId = e.userId : "object" == typeof e.userId && (t.userId = new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.userId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.userId = t.longs === String ? "0" : 0; + return null != e.userId && e.hasOwnProperty("userId") && ("number" == typeof e.userId ? n.userId = t.longs === String ? String(e.userId) : e.userId : n.userId = t.longs === String ? a.Long.prototype.toString.call(e.userId) : t.longs === Number ? new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber() : e.userId), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerApplyStrongReminderContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.source = 0, e.prototype.user = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.source && Object.hasOwnProperty.call(e, "source") && t.uint32(8).int32(e.source), null != e.user && Object.hasOwnProperty.call(e, "user") && l.webcast.data.User.encode(e.user, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerApplyStrongReminderContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.source = e.int32(); + break; + case 2: + r.user = l.webcast.data.User.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.source && e.hasOwnProperty("source")) switch (e.source) + { + default: + return "source: enum value expected"; + case 0: + case 1: + case 2: + } + if (null != e.user && e.hasOwnProperty("user")) + { + var t = l.webcast.data.User.verify(e.user); + if (t) return "user." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerApplyStrongReminderContent) return e; + var t = new l.webcast.im.LinkerApplyStrongReminderContent; + switch (e.source) + { + case "Unknown": + case 0: + t.source = 0; + break; + case "Apply": + case 1: + t.source = 1; + break; + case "Leave": + case 2: + t.source = 2 + } + if (null != e.user) + { + if ("object" != typeof e.user) throw TypeError(".webcast.im.LinkerApplyStrongReminderContent.user: object expected"); + t.user = l.webcast.data.User.fromObject(e.user) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.source = t.enums === String ? "Unknown" : 0, n.user = null), null != e.source && e.hasOwnProperty("source") && (n.source = t.enums === String ? l.webcast.im.LinkerApplyStrongReminderContent.TriggerSource[e.source] : e.source), null != e.user && e.hasOwnProperty("user") && (n.user = l.webcast.data.User.toObject(e.user, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.TriggerSource = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "Unknown"] = 0, t[e[1] = "Apply"] = 1, t[e[2] = "Leave"] = 2, t + }(), e + }(), e.LinkerAnchorStreamSwitchContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.useBackupStream = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.useBackupStream && Object.hasOwnProperty.call(e, "useBackupStream") && t.uint32(8).bool(e.useBackupStream), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerAnchorStreamSwitchContent; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.useBackupStream = e.bool(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.useBackupStream && e.hasOwnProperty("useBackupStream") && "boolean" != typeof e.useBackupStream ? "useBackupStream: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerAnchorStreamSwitchContent) return e; + var t = new l.webcast.im.LinkerAnchorStreamSwitchContent; + return null != e.useBackupStream && (t.useBackupStream = Boolean(e.useBackupStream)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.useBackupStream = !1), null != e.useBackupStream && e.hasOwnProperty("useBackupStream") && (n.useBackupStream = e.useBackupStream), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerClickScreenContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.deviceWidth = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.deviceHeight = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.pointX = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.pointY = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.fromUserId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.avatarMedium = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.deviceWidth && Object.hasOwnProperty.call(e, "deviceWidth") && t.uint32(8).int64(e.deviceWidth), null != e.deviceHeight && Object.hasOwnProperty.call(e, "deviceHeight") && t.uint32(16).int64(e.deviceHeight), null != e.pointX && Object.hasOwnProperty.call(e, "pointX") && t.uint32(24).int64(e.pointX), null != e.pointY && Object.hasOwnProperty.call(e, "pointY") && t.uint32(32).int64(e.pointY), null != e.fromUserId && Object.hasOwnProperty.call(e, "fromUserId") && t.uint32(40).int64(e.fromUserId), null != e.avatarMedium && Object.hasOwnProperty.call(e, "avatarMedium") && l.webcast.data.Image.encode(e.avatarMedium, t.uint32(50).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerClickScreenContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.deviceWidth = e.int64(); + break; + case 2: + r.deviceHeight = e.int64(); + break; + case 3: + r.pointX = e.int64(); + break; + case 4: + r.pointY = e.int64(); + break; + case 5: + r.fromUserId = e.int64(); + break; + case 6: + r.avatarMedium = l.webcast.data.Image.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.deviceWidth && e.hasOwnProperty("deviceWidth") && !(a.isInteger(e.deviceWidth) || e.deviceWidth && a.isInteger(e.deviceWidth.low) && a.isInteger(e.deviceWidth.high))) return "deviceWidth: integer|Long expected"; + if (null != e.deviceHeight && e.hasOwnProperty("deviceHeight") && !(a.isInteger(e.deviceHeight) || e.deviceHeight && a.isInteger(e.deviceHeight.low) && a.isInteger(e.deviceHeight.high))) return "deviceHeight: integer|Long expected"; + if (null != e.pointX && e.hasOwnProperty("pointX") && !(a.isInteger(e.pointX) || e.pointX && a.isInteger(e.pointX.low) && a.isInteger(e.pointX.high))) return "pointX: integer|Long expected"; + if (null != e.pointY && e.hasOwnProperty("pointY") && !(a.isInteger(e.pointY) || e.pointY && a.isInteger(e.pointY.low) && a.isInteger(e.pointY.high))) return "pointY: integer|Long expected"; + if (null != e.fromUserId && e.hasOwnProperty("fromUserId") && !(a.isInteger(e.fromUserId) || e.fromUserId && a.isInteger(e.fromUserId.low) && a.isInteger(e.fromUserId.high))) return "fromUserId: integer|Long expected"; + if (null != e.avatarMedium && e.hasOwnProperty("avatarMedium")) + { + var t = l.webcast.data.Image.verify(e.avatarMedium); + if (t) return "avatarMedium." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerClickScreenContent) return e; + var t = new l.webcast.im.LinkerClickScreenContent; + if (null != e.deviceWidth && (a.Long ? (t.deviceWidth = a.Long.fromValue(e.deviceWidth)).unsigned = !1 : "string" == typeof e.deviceWidth ? t.deviceWidth = parseInt(e.deviceWidth, 10) : "number" == typeof e.deviceWidth ? t.deviceWidth = e.deviceWidth : "object" == typeof e.deviceWidth && (t.deviceWidth = new a.LongBits(e.deviceWidth.low >>> 0, e.deviceWidth.high >>> 0).toNumber())), null != e.deviceHeight && (a.Long ? (t.deviceHeight = a.Long.fromValue(e.deviceHeight)).unsigned = !1 : "string" == typeof e.deviceHeight ? t.deviceHeight = parseInt(e.deviceHeight, 10) : "number" == typeof e.deviceHeight ? t.deviceHeight = e.deviceHeight : "object" == typeof e.deviceHeight && (t.deviceHeight = new a.LongBits(e.deviceHeight.low >>> 0, e.deviceHeight.high >>> 0).toNumber())), null != e.pointX && (a.Long ? (t.pointX = a.Long.fromValue(e.pointX)).unsigned = !1 : "string" == typeof e.pointX ? t.pointX = parseInt(e.pointX, 10) : "number" == typeof e.pointX ? t.pointX = e.pointX : "object" == typeof e.pointX && (t.pointX = new a.LongBits(e.pointX.low >>> 0, e.pointX.high >>> 0).toNumber())), null != e.pointY && (a.Long ? (t.pointY = a.Long.fromValue(e.pointY)).unsigned = !1 : "string" == typeof e.pointY ? t.pointY = parseInt(e.pointY, 10) : "number" == typeof e.pointY ? t.pointY = e.pointY : "object" == typeof e.pointY && (t.pointY = new a.LongBits(e.pointY.low >>> 0, e.pointY.high >>> 0).toNumber())), null != e.fromUserId && (a.Long ? (t.fromUserId = a.Long.fromValue(e.fromUserId)).unsigned = !1 : "string" == typeof e.fromUserId ? t.fromUserId = parseInt(e.fromUserId, 10) : "number" == typeof e.fromUserId ? t.fromUserId = e.fromUserId : "object" == typeof e.fromUserId && (t.fromUserId = new a.LongBits(e.fromUserId.low >>> 0, e.fromUserId.high >>> 0).toNumber())), null != e.avatarMedium) + { + if ("object" != typeof e.avatarMedium) throw TypeError(".webcast.im.LinkerClickScreenContent.avatarMedium: object expected"); + t.avatarMedium = l.webcast.data.Image.fromObject(e.avatarMedium) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.deviceWidth = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.deviceWidth = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.deviceHeight = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.deviceHeight = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.pointX = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.pointX = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.pointY = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.pointY = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.fromUserId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.fromUserId = t.longs === String ? "0" : 0; + n.avatarMedium = null + } + return null != e.deviceWidth && e.hasOwnProperty("deviceWidth") && ("number" == typeof e.deviceWidth ? n.deviceWidth = t.longs === String ? String(e.deviceWidth) : e.deviceWidth : n.deviceWidth = t.longs === String ? a.Long.prototype.toString.call(e.deviceWidth) : t.longs === Number ? new a.LongBits(e.deviceWidth.low >>> 0, e.deviceWidth.high >>> 0).toNumber() : e.deviceWidth), null != e.deviceHeight && e.hasOwnProperty("deviceHeight") && ("number" == typeof e.deviceHeight ? n.deviceHeight = t.longs === String ? String(e.deviceHeight) : e.deviceHeight : n.deviceHeight = t.longs === String ? a.Long.prototype.toString.call(e.deviceHeight) : t.longs === Number ? new a.LongBits(e.deviceHeight.low >>> 0, e.deviceHeight.high >>> 0).toNumber() : e.deviceHeight), null != e.pointX && e.hasOwnProperty("pointX") && ("number" == typeof e.pointX ? n.pointX = t.longs === String ? String(e.pointX) : e.pointX : n.pointX = t.longs === String ? a.Long.prototype.toString.call(e.pointX) : t.longs === Number ? new a.LongBits(e.pointX.low >>> 0, e.pointX.high >>> 0).toNumber() : e.pointX), null != e.pointY && e.hasOwnProperty("pointY") && ("number" == typeof e.pointY ? n.pointY = t.longs === String ? String(e.pointY) : e.pointY : n.pointY = t.longs === String ? a.Long.prototype.toString.call(e.pointY) : t.longs === Number ? new a.LongBits(e.pointY.low >>> 0, e.pointY.high >>> 0).toNumber() : e.pointY), null != e.fromUserId && e.hasOwnProperty("fromUserId") && ("number" == typeof e.fromUserId ? n.fromUserId = t.longs === String ? String(e.fromUserId) : e.fromUserId : n.fromUserId = t.longs === String ? a.Long.prototype.toString.call(e.fromUserId) : t.longs === Number ? new a.LongBits(e.fromUserId.low >>> 0, e.fromUserId.high >>> 0).toNumber() : e.fromUserId), null != e.avatarMedium && e.hasOwnProperty("avatarMedium") && (n.avatarMedium = l.webcast.data.Image.toObject(e.avatarMedium, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerFollowStrongGuideContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.fromUser = null, e.prototype.toUserId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.fromUserType = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.fromUser && Object.hasOwnProperty.call(e, "fromUser") && l.webcast.data.User.encode(e.fromUser, t.uint32(10).fork()).ldelim(), null != e.toUserId && Object.hasOwnProperty.call(e, "toUserId") && t.uint32(16).int64(e.toUserId), null != e.fromUserType && Object.hasOwnProperty.call(e, "fromUserType") && t.uint32(24).int32(e.fromUserType), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerFollowStrongGuideContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.fromUser = l.webcast.data.User.decode(e, e.uint32()); + break; + case 2: + r.toUserId = e.int64(); + break; + case 3: + r.fromUserType = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.fromUser && e.hasOwnProperty("fromUser")) + { + var t = l.webcast.data.User.verify(e.fromUser); + if (t) return "fromUser." + t + } + if (null != e.toUserId && e.hasOwnProperty("toUserId") && !(a.isInteger(e.toUserId) || e.toUserId && a.isInteger(e.toUserId.low) && a.isInteger(e.toUserId.high))) return "toUserId: integer|Long expected"; + if (null != e.fromUserType && e.hasOwnProperty("fromUserType")) switch (e.fromUserType) + { + default: + return "fromUserType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerFollowStrongGuideContent) return e; + var t = new l.webcast.im.LinkerFollowStrongGuideContent; + if (null != e.fromUser) + { + if ("object" != typeof e.fromUser) throw TypeError(".webcast.im.LinkerFollowStrongGuideContent.fromUser: object expected"); + t.fromUser = l.webcast.data.User.fromObject(e.fromUser) + } + switch (null != e.toUserId && (a.Long ? (t.toUserId = a.Long.fromValue(e.toUserId)).unsigned = !1 : "string" == typeof e.toUserId ? t.toUserId = parseInt(e.toUserId, 10) : "number" == typeof e.toUserId ? t.toUserId = e.toUserId : "object" == typeof e.toUserId && (t.toUserId = new a.LongBits(e.toUserId.low >>> 0, e.toUserId.high >>> 0).toNumber())), e.fromUserType) + { + case "UnknownUserType": + case 0: + t.fromUserType = 0; + break; + case "Anchor": + case 1: + t.fromUserType = 1; + break; + case "Guest": + case 2: + t.fromUserType = 2; + break; + case "Audience": + case 3: + t.fromUserType = 3 + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.fromUser = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.toUserId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.toUserId = t.longs === String ? "0" : 0; + n.fromUserType = t.enums === String ? "UnknownUserType" : 0 + } + return null != e.fromUser && e.hasOwnProperty("fromUser") && (n.fromUser = l.webcast.data.User.toObject(e.fromUser, t)), null != e.toUserId && e.hasOwnProperty("toUserId") && ("number" == typeof e.toUserId ? n.toUserId = t.longs === String ? String(e.toUserId) : e.toUserId : n.toUserId = t.longs === String ? a.Long.prototype.toString.call(e.toUserId) : t.longs === Number ? new a.LongBits(e.toUserId.low >>> 0, e.toUserId.high >>> 0).toNumber() : e.toUserId), null != e.fromUserType && e.hasOwnProperty("fromUserType") && (n.fromUserType = t.enums === String ? l.webcast.im.FollowUserType[e.fromUserType] : e.fromUserType), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerLockPositionContent = function () + { + function e(e) + { + if (this.lockedPositions = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.lockedPositions = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.lockedPositions && e.lockedPositions.length) + for (var n = 0; n < e.lockedPositions.length; ++n) l.webcast.data.LinkmicPositionItem.encode(e.lockedPositions[n], t.uint32(10).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerLockPositionContent; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.lockedPositions && r.lockedPositions.length || (r.lockedPositions = []), r.lockedPositions.push(l.webcast.data.LinkmicPositionItem.decode(e, e.uint32())); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.lockedPositions && e.hasOwnProperty("lockedPositions")) + { + if (!Array.isArray(e.lockedPositions)) return "lockedPositions: array expected"; + for (var t = 0; t < e.lockedPositions.length; ++t) + { + var n = l.webcast.data.LinkmicPositionItem.verify(e.lockedPositions[t]); + if (n) return "lockedPositions." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerLockPositionContent) return e; + var t = new l.webcast.im.LinkerLockPositionContent; + if (e.lockedPositions) + { + if (!Array.isArray(e.lockedPositions)) throw TypeError(".webcast.im.LinkerLockPositionContent.lockedPositions: array expected"); + t.lockedPositions = []; + for (var n = 0; n < e.lockedPositions.length; ++n) + { + if ("object" != typeof e.lockedPositions[n]) throw TypeError(".webcast.im.LinkerLockPositionContent.lockedPositions: object expected"); + t.lockedPositions[n] = l.webcast.data.LinkmicPositionItem.fromObject(e.lockedPositions[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.lockedPositions = []), e.lockedPositions && e.lockedPositions.length) + { + n.lockedPositions = []; + for (var r = 0; r < e.lockedPositions.length; ++r) n.lockedPositions[r] = l.webcast.data.LinkmicPositionItem.toObject(e.lockedPositions[r], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerShareVideoImContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.imContent = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.imContent && Object.hasOwnProperty.call(e, "imContent") && t.uint32(10).string(e.imContent), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerShareVideoImContent; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.imContent = e.string(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.imContent && e.hasOwnProperty("imContent") && !a.isString(e.imContent) ? "imContent: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerShareVideoImContent) return e; + var t = new l.webcast.im.LinkerShareVideoImContent; + return null != e.imContent && (t.imContent = String(e.imContent)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.imContent = ""), null != e.imContent && e.hasOwnProperty("imContent") && (n.imContent = e.imContent), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerGuestInviteContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.inviteContent = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.inviteContent && Object.hasOwnProperty.call(e, "inviteContent") && l.webcast.data.Text.encode(e.inviteContent, t.uint32(10).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerGuestInviteContent; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.inviteContent = l.webcast.data.Text.decode(e, e.uint32()); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.inviteContent && e.hasOwnProperty("inviteContent")) + { + var t = l.webcast.data.Text.verify(e.inviteContent); + if (t) return "inviteContent." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerGuestInviteContent) return e; + var t = new l.webcast.im.LinkerGuestInviteContent; + if (null != e.inviteContent) + { + if ("object" != typeof e.inviteContent) throw TypeError(".webcast.im.LinkerGuestInviteContent.inviteContent: object expected"); + t.inviteContent = l.webcast.data.Text.fromObject(e.inviteContent) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.inviteContent = null), null != e.inviteContent && e.hasOwnProperty("inviteContent") && (n.inviteContent = l.webcast.data.Text.toObject(e.inviteContent, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerGuestExitCastScreenContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.userId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.userId && Object.hasOwnProperty.call(e, "userId") && t.uint32(8).int64(e.userId), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerGuestExitCastScreenContent; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.userId = e.int64(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.userId && e.hasOwnProperty("userId") && !(a.isInteger(e.userId) || e.userId && a.isInteger(e.userId.low) && a.isInteger(e.userId.high)) ? "userId: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerGuestExitCastScreenContent) return e; + var t = new l.webcast.im.LinkerGuestExitCastScreenContent; + return null != e.userId && (a.Long ? (t.userId = a.Long.fromValue(e.userId)).unsigned = !1 : "string" == typeof e.userId ? t.userId = parseInt(e.userId, 10) : "number" == typeof e.userId ? t.userId = e.userId : "object" == typeof e.userId && (t.userId = new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.userId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.userId = t.longs === String ? "0" : 0; + return null != e.userId && e.hasOwnProperty("userId") && ("number" == typeof e.userId ? n.userId = t.longs === String ? String(e.userId) : e.userId : n.userId = t.longs === String ? a.Long.prototype.toString.call(e.userId) : t.longs === Number ? new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber() : e.userId), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerSwitchSceneContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.switchSceneData = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.switchSceneData && Object.hasOwnProperty.call(e, "switchSceneData") && l.webcast.data.SwitchSceneData.encode(e.switchSceneData, t.uint32(10).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerSwitchSceneContent; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.switchSceneData = l.webcast.data.SwitchSceneData.decode(e, e.uint32()); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.switchSceneData && e.hasOwnProperty("switchSceneData")) + { + var t = l.webcast.data.SwitchSceneData.verify(e.switchSceneData); + if (t) return "switchSceneData." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerSwitchSceneContent) return e; + var t = new l.webcast.im.LinkerSwitchSceneContent; + if (null != e.switchSceneData) + { + if ("object" != typeof e.switchSceneData) throw TypeError(".webcast.im.LinkerSwitchSceneContent.switchSceneData: object expected"); + t.switchSceneData = l.webcast.data.SwitchSceneData.fromObject(e.switchSceneData) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.switchSceneData = null), null != e.switchSceneData && e.hasOwnProperty("switchSceneData") && (n.switchSceneData = l.webcast.data.SwitchSceneData.toObject(e.switchSceneData, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkPhaseEnterNextNotifyContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.roomId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.anchorUser = null, e.prototype.linkUser = null, e.prototype.nextPhase = null, e.prototype.currentPhaseId = 0, e.prototype.currentLinktimeSeconds = 0, e.prototype.phaseConfig = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.roomId && Object.hasOwnProperty.call(e, "roomId") && t.uint32(8).int64(e.roomId), null != e.anchorUser && Object.hasOwnProperty.call(e, "anchorUser") && l.webcast.data.User.encode(e.anchorUser, t.uint32(18).fork()).ldelim(), null != e.linkUser && Object.hasOwnProperty.call(e, "linkUser") && l.webcast.data.User.encode(e.linkUser, t.uint32(26).fork()).ldelim(), null != e.nextPhase && Object.hasOwnProperty.call(e, "nextPhase") && l.webcast.data.LinkPhase.encode(e.nextPhase, t.uint32(34).fork()).ldelim(), null != e.currentPhaseId && Object.hasOwnProperty.call(e, "currentPhaseId") && t.uint32(40).int32(e.currentPhaseId), null != e.currentLinktimeSeconds && Object.hasOwnProperty.call(e, "currentLinktimeSeconds") && t.uint32(48).int32(e.currentLinktimeSeconds), null != e.phaseConfig && Object.hasOwnProperty.call(e, "phaseConfig") && l.webcast.data.LinkPhaseConfig.encode(e.phaseConfig, t.uint32(58).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkPhaseEnterNextNotifyContent; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.roomId = e.int64(); + break; + case 2: + r.anchorUser = l.webcast.data.User.decode(e, e.uint32()); + break; + case 3: + r.linkUser = l.webcast.data.User.decode(e, e.uint32()); + break; + case 4: + r.nextPhase = l.webcast.data.LinkPhase.decode(e, e.uint32()); + break; + case 5: + r.currentPhaseId = e.int32(); + break; + case 6: + r.currentLinktimeSeconds = e.int32(); + break; + case 7: + r.phaseConfig = l.webcast.data.LinkPhaseConfig.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.roomId && e.hasOwnProperty("roomId") && !(a.isInteger(e.roomId) || e.roomId && a.isInteger(e.roomId.low) && a.isInteger(e.roomId.high))) return "roomId: integer|Long expected"; + var t; + if (null != e.anchorUser && e.hasOwnProperty("anchorUser") && (t = l.webcast.data.User.verify(e.anchorUser))) return "anchorUser." + t; + if (null != e.linkUser && e.hasOwnProperty("linkUser") && (t = l.webcast.data.User.verify(e.linkUser))) return "linkUser." + t; + if (null != e.nextPhase && e.hasOwnProperty("nextPhase") && (t = l.webcast.data.LinkPhase.verify(e.nextPhase))) return "nextPhase." + t; + if (null != e.currentPhaseId && e.hasOwnProperty("currentPhaseId") && !a.isInteger(e.currentPhaseId)) return "currentPhaseId: integer expected"; + if (null != e.currentLinktimeSeconds && e.hasOwnProperty("currentLinktimeSeconds") && !a.isInteger(e.currentLinktimeSeconds)) return "currentLinktimeSeconds: integer expected"; + if (null != e.phaseConfig && e.hasOwnProperty("phaseConfig") && (t = l.webcast.data.LinkPhaseConfig.verify(e.phaseConfig))) return "phaseConfig." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkPhaseEnterNextNotifyContent) return e; + var t = new l.webcast.im.LinkPhaseEnterNextNotifyContent; + if (null != e.roomId && (a.Long ? (t.roomId = a.Long.fromValue(e.roomId)).unsigned = !1 : "string" == typeof e.roomId ? t.roomId = parseInt(e.roomId, 10) : "number" == typeof e.roomId ? t.roomId = e.roomId : "object" == typeof e.roomId && (t.roomId = new a.LongBits(e.roomId.low >>> 0, e.roomId.high >>> 0).toNumber())), null != e.anchorUser) + { + if ("object" != typeof e.anchorUser) throw TypeError(".webcast.im.LinkPhaseEnterNextNotifyContent.anchorUser: object expected"); + t.anchorUser = l.webcast.data.User.fromObject(e.anchorUser) + } + if (null != e.linkUser) + { + if ("object" != typeof e.linkUser) throw TypeError(".webcast.im.LinkPhaseEnterNextNotifyContent.linkUser: object expected"); + t.linkUser = l.webcast.data.User.fromObject(e.linkUser) + } + if (null != e.nextPhase) + { + if ("object" != typeof e.nextPhase) throw TypeError(".webcast.im.LinkPhaseEnterNextNotifyContent.nextPhase: object expected"); + t.nextPhase = l.webcast.data.LinkPhase.fromObject(e.nextPhase) + } + if (null != e.currentPhaseId && (t.currentPhaseId = 0 | e.currentPhaseId), null != e.currentLinktimeSeconds && (t.currentLinktimeSeconds = 0 | e.currentLinktimeSeconds), null != e.phaseConfig) + { + if ("object" != typeof e.phaseConfig) throw TypeError(".webcast.im.LinkPhaseEnterNextNotifyContent.phaseConfig: object expected"); + t.phaseConfig = l.webcast.data.LinkPhaseConfig.fromObject(e.phaseConfig) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.roomId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.roomId = t.longs === String ? "0" : 0; + n.anchorUser = null, n.linkUser = null, n.nextPhase = null, n.currentPhaseId = 0, n.currentLinktimeSeconds = 0, n.phaseConfig = null + } + return null != e.roomId && e.hasOwnProperty("roomId") && ("number" == typeof e.roomId ? n.roomId = t.longs === String ? String(e.roomId) : e.roomId : n.roomId = t.longs === String ? a.Long.prototype.toString.call(e.roomId) : t.longs === Number ? new a.LongBits(e.roomId.low >>> 0, e.roomId.high >>> 0).toNumber() : e.roomId), null != e.anchorUser && e.hasOwnProperty("anchorUser") && (n.anchorUser = l.webcast.data.User.toObject(e.anchorUser, t)), null != e.linkUser && e.hasOwnProperty("linkUser") && (n.linkUser = l.webcast.data.User.toObject(e.linkUser, t)), null != e.nextPhase && e.hasOwnProperty("nextPhase") && (n.nextPhase = l.webcast.data.LinkPhase.toObject(e.nextPhase, t)), null != e.currentPhaseId && e.hasOwnProperty("currentPhaseId") && (n.currentPhaseId = e.currentPhaseId), null != e.currentLinktimeSeconds && e.hasOwnProperty("currentLinktimeSeconds") && (n.currentLinktimeSeconds = e.currentLinktimeSeconds), null != e.phaseConfig && e.hasOwnProperty("phaseConfig") && (n.phaseConfig = l.webcast.data.LinkPhaseConfig.toObject(e.phaseConfig, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerChangePlayModeContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.changePlayModeData = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.changePlayModeData && Object.hasOwnProperty.call(e, "changePlayModeData") && l.webcast.data.ChangePlayModeData.encode(e.changePlayModeData, t.uint32(10).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerChangePlayModeContent; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.changePlayModeData = l.webcast.data.ChangePlayModeData.decode(e, e.uint32()); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.changePlayModeData && e.hasOwnProperty("changePlayModeData")) + { + var t = l.webcast.data.ChangePlayModeData.verify(e.changePlayModeData); + if (t) return "changePlayModeData." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerChangePlayModeContent) return e; + var t = new l.webcast.im.LinkerChangePlayModeContent; + if (null != e.changePlayModeData) + { + if ("object" != typeof e.changePlayModeData) throw TypeError(".webcast.im.LinkerChangePlayModeContent.changePlayModeData: object expected"); + t.changePlayModeData = l.webcast.data.ChangePlayModeData.fromObject(e.changePlayModeData) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.changePlayModeData = null), null != e.changePlayModeData && e.hasOwnProperty("changePlayModeData") && (n.changePlayModeData = l.webcast.data.ChangePlayModeData.toObject(e.changePlayModeData, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerLowBalanceForPaidLinkmicContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.toast = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.toast && Object.hasOwnProperty.call(e, "toast") && t.uint32(10).string(e.toast), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerLowBalanceForPaidLinkmicContent; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.toast = e.string(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.toast && e.hasOwnProperty("toast") && !a.isString(e.toast) ? "toast: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerLowBalanceForPaidLinkmicContent) return e; + var t = new l.webcast.im.LinkerLowBalanceForPaidLinkmicContent; + return null != e.toast && (t.toast = String(e.toast)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.toast = ""), null != e.toast && e.hasOwnProperty("toast") && (n.toast = e.toast), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.LinkerDegradeAlertContent = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.degradeContent = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.degradeContent && Object.hasOwnProperty.call(e, "degradeContent") && t.uint32(10).string(e.degradeContent), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.LinkerDegradeAlertContent; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.degradeContent = e.string(); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.degradeContent && e.hasOwnProperty("degradeContent") && !a.isString(e.degradeContent) ? "degradeContent: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.LinkerDegradeAlertContent) return e; + var t = new l.webcast.im.LinkerDegradeAlertContent; + return null != e.degradeContent && (t.degradeContent = String(e.degradeContent)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.degradeContent = ""), null != e.degradeContent && e.hasOwnProperty("degradeContent") && (n.degradeContent = e.degradeContent), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.MemberMessage = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.common = null, e.prototype.user = null, e.prototype.memberCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.operator = null, e.prototype.isSetToAdmin = !1, e.prototype.isTopUser = !1, e.prototype.rankScore = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.topUserNo = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.enterType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.action = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.actionDescription = "", e.prototype.userId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.effectConfig = null, e.prototype.popStr = "", e.prototype.enterEffectConfig = null, e.prototype.backgroundImage = null, e.prototype.backgroundImageV2 = null, e.prototype.anchorDisplayText = null, e.prototype.publicAreaCommon = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.common && Object.hasOwnProperty.call(e, "common") && l.webcast.im.Common.encode(e.common, t.uint32(10).fork()).ldelim(), null != e.user && Object.hasOwnProperty.call(e, "user") && l.webcast.data.User.encode(e.user, t.uint32(18).fork()).ldelim(), null != e.memberCount && Object.hasOwnProperty.call(e, "memberCount") && t.uint32(24).int64(e.memberCount), null != e.operator && Object.hasOwnProperty.call(e, "operator") && l.webcast.data.User.encode(e.operator, t.uint32(34).fork()).ldelim(), null != e.isSetToAdmin && Object.hasOwnProperty.call(e, "isSetToAdmin") && t.uint32(40).bool(e.isSetToAdmin), null != e.isTopUser && Object.hasOwnProperty.call(e, "isTopUser") && t.uint32(48).bool(e.isTopUser), null != e.rankScore && Object.hasOwnProperty.call(e, "rankScore") && t.uint32(56).int64(e.rankScore), null != e.topUserNo && Object.hasOwnProperty.call(e, "topUserNo") && t.uint32(64).int64(e.topUserNo), null != e.enterType && Object.hasOwnProperty.call(e, "enterType") && t.uint32(72).int64(e.enterType), null != e.action && Object.hasOwnProperty.call(e, "action") && t.uint32(80).int64(e.action), null != e.actionDescription && Object.hasOwnProperty.call(e, "actionDescription") && t.uint32(90).string(e.actionDescription), null != e.userId && Object.hasOwnProperty.call(e, "userId") && t.uint32(96).int64(e.userId), null != e.effectConfig && Object.hasOwnProperty.call(e, "effectConfig") && l.webcast.im.MemberMessage.EffectConfig.encode(e.effectConfig, t.uint32(106).fork()).ldelim(), null != e.popStr && Object.hasOwnProperty.call(e, "popStr") && t.uint32(114).string(e.popStr), null != e.enterEffectConfig && Object.hasOwnProperty.call(e, "enterEffectConfig") && l.webcast.im.MemberMessage.EffectConfig.encode(e.enterEffectConfig, t.uint32(122).fork()).ldelim(), null != e.backgroundImage && Object.hasOwnProperty.call(e, "backgroundImage") && l.webcast.data.Image.encode(e.backgroundImage, t.uint32(130).fork()).ldelim(), null != e.backgroundImageV2 && Object.hasOwnProperty.call(e, "backgroundImageV2") && l.webcast.data.Image.encode(e.backgroundImageV2, t.uint32(138).fork()).ldelim(), null != e.anchorDisplayText && Object.hasOwnProperty.call(e, "anchorDisplayText") && l.webcast.data.Text.encode(e.anchorDisplayText, t.uint32(146).fork()).ldelim(), null != e.publicAreaCommon && Object.hasOwnProperty.call(e, "publicAreaCommon") && l.webcast.im.PublicAreaCommon.encode(e.publicAreaCommon, t.uint32(154).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.MemberMessage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.common = l.webcast.im.Common.decode(e, e.uint32()); + break; + case 2: + r.user = l.webcast.data.User.decode(e, e.uint32()); + break; + case 3: + r.memberCount = e.int64(); + break; + case 4: + r.operator = l.webcast.data.User.decode(e, e.uint32()); + break; + case 5: + r.isSetToAdmin = e.bool(); + break; + case 6: + r.isTopUser = e.bool(); + break; + case 7: + r.rankScore = e.int64(); + break; + case 8: + r.topUserNo = e.int64(); + break; + case 9: + r.enterType = e.int64(); + break; + case 10: + r.action = e.int64(); + break; + case 11: + r.actionDescription = e.string(); + break; + case 12: + r.userId = e.int64(); + break; + case 13: + r.effectConfig = l.webcast.im.MemberMessage.EffectConfig.decode(e, e.uint32()); + break; + case 14: + r.popStr = e.string(); + break; + case 15: + r.enterEffectConfig = l.webcast.im.MemberMessage.EffectConfig.decode(e, e.uint32()); + break; + case 16: + r.backgroundImage = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 17: + r.backgroundImageV2 = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 18: + r.anchorDisplayText = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 19: + r.publicAreaCommon = l.webcast.im.PublicAreaCommon.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.common && e.hasOwnProperty("common") && (t = l.webcast.im.Common.verify(e.common))) return "common." + t; + if (null != e.user && e.hasOwnProperty("user") && (t = l.webcast.data.User.verify(e.user))) return "user." + t; + if (null != e.memberCount && e.hasOwnProperty("memberCount") && !(a.isInteger(e.memberCount) || e.memberCount && a.isInteger(e.memberCount.low) && a.isInteger(e.memberCount.high))) return "memberCount: integer|Long expected"; + if (null != e.operator && e.hasOwnProperty("operator") && (t = l.webcast.data.User.verify(e.operator))) return "operator." + t; + if (null != e.isSetToAdmin && e.hasOwnProperty("isSetToAdmin") && "boolean" != typeof e.isSetToAdmin) return "isSetToAdmin: boolean expected"; + if (null != e.isTopUser && e.hasOwnProperty("isTopUser") && "boolean" != typeof e.isTopUser) return "isTopUser: boolean expected"; + if (null != e.rankScore && e.hasOwnProperty("rankScore") && !(a.isInteger(e.rankScore) || e.rankScore && a.isInteger(e.rankScore.low) && a.isInteger(e.rankScore.high))) return "rankScore: integer|Long expected"; + if (null != e.topUserNo && e.hasOwnProperty("topUserNo") && !(a.isInteger(e.topUserNo) || e.topUserNo && a.isInteger(e.topUserNo.low) && a.isInteger(e.topUserNo.high))) return "topUserNo: integer|Long expected"; + if (null != e.enterType && e.hasOwnProperty("enterType") && !(a.isInteger(e.enterType) || e.enterType && a.isInteger(e.enterType.low) && a.isInteger(e.enterType.high))) return "enterType: integer|Long expected"; + if (null != e.action && e.hasOwnProperty("action") && !(a.isInteger(e.action) || e.action && a.isInteger(e.action.low) && a.isInteger(e.action.high))) return "action: integer|Long expected"; + if (null != e.actionDescription && e.hasOwnProperty("actionDescription") && !a.isString(e.actionDescription)) return "actionDescription: string expected"; + if (null != e.userId && e.hasOwnProperty("userId") && !(a.isInteger(e.userId) || e.userId && a.isInteger(e.userId.low) && a.isInteger(e.userId.high))) return "userId: integer|Long expected"; + if (null != e.effectConfig && e.hasOwnProperty("effectConfig") && (t = l.webcast.im.MemberMessage.EffectConfig.verify(e.effectConfig))) return "effectConfig." + t; + if (null != e.popStr && e.hasOwnProperty("popStr") && !a.isString(e.popStr)) return "popStr: string expected"; + if (null != e.enterEffectConfig && e.hasOwnProperty("enterEffectConfig") && (t = l.webcast.im.MemberMessage.EffectConfig.verify(e.enterEffectConfig))) return "enterEffectConfig." + t; + if (null != e.backgroundImage && e.hasOwnProperty("backgroundImage") && (t = l.webcast.data.Image.verify(e.backgroundImage))) return "backgroundImage." + t; + if (null != e.backgroundImageV2 && e.hasOwnProperty("backgroundImageV2") && (t = l.webcast.data.Image.verify(e.backgroundImageV2))) return "backgroundImageV2." + t; + if (null != e.anchorDisplayText && e.hasOwnProperty("anchorDisplayText") && (t = l.webcast.data.Text.verify(e.anchorDisplayText))) return "anchorDisplayText." + t; + if (null != e.publicAreaCommon && e.hasOwnProperty("publicAreaCommon") && (t = l.webcast.im.PublicAreaCommon.verify(e.publicAreaCommon))) return "publicAreaCommon." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.MemberMessage) return e; + var t = new l.webcast.im.MemberMessage; + if (null != e.common) + { + if ("object" != typeof e.common) throw TypeError(".webcast.im.MemberMessage.common: object expected"); + t.common = l.webcast.im.Common.fromObject(e.common) + } + if (null != e.user) + { + if ("object" != typeof e.user) throw TypeError(".webcast.im.MemberMessage.user: object expected"); + t.user = l.webcast.data.User.fromObject(e.user) + } + if (null != e.memberCount && (a.Long ? (t.memberCount = a.Long.fromValue(e.memberCount)).unsigned = !1 : "string" == typeof e.memberCount ? t.memberCount = parseInt(e.memberCount, 10) : "number" == typeof e.memberCount ? t.memberCount = e.memberCount : "object" == typeof e.memberCount && (t.memberCount = new a.LongBits(e.memberCount.low >>> 0, e.memberCount.high >>> 0).toNumber())), null != e.operator) + { + if ("object" != typeof e.operator) throw TypeError(".webcast.im.MemberMessage.operator: object expected"); + t.operator = l.webcast.data.User.fromObject(e.operator) + } + if (null != e.isSetToAdmin && (t.isSetToAdmin = Boolean(e.isSetToAdmin)), null != e.isTopUser && (t.isTopUser = Boolean(e.isTopUser)), null != e.rankScore && (a.Long ? (t.rankScore = a.Long.fromValue(e.rankScore)).unsigned = !1 : "string" == typeof e.rankScore ? t.rankScore = parseInt(e.rankScore, 10) : "number" == typeof e.rankScore ? t.rankScore = e.rankScore : "object" == typeof e.rankScore && (t.rankScore = new a.LongBits(e.rankScore.low >>> 0, e.rankScore.high >>> 0).toNumber())), null != e.topUserNo && (a.Long ? (t.topUserNo = a.Long.fromValue(e.topUserNo)).unsigned = !1 : "string" == typeof e.topUserNo ? t.topUserNo = parseInt(e.topUserNo, 10) : "number" == typeof e.topUserNo ? t.topUserNo = e.topUserNo : "object" == typeof e.topUserNo && (t.topUserNo = new a.LongBits(e.topUserNo.low >>> 0, e.topUserNo.high >>> 0).toNumber())), null != e.enterType && (a.Long ? (t.enterType = a.Long.fromValue(e.enterType)).unsigned = !1 : "string" == typeof e.enterType ? t.enterType = parseInt(e.enterType, 10) : "number" == typeof e.enterType ? t.enterType = e.enterType : "object" == typeof e.enterType && (t.enterType = new a.LongBits(e.enterType.low >>> 0, e.enterType.high >>> 0).toNumber())), null != e.action && (a.Long ? (t.action = a.Long.fromValue(e.action)).unsigned = !1 : "string" == typeof e.action ? t.action = parseInt(e.action, 10) : "number" == typeof e.action ? t.action = e.action : "object" == typeof e.action && (t.action = new a.LongBits(e.action.low >>> 0, e.action.high >>> 0).toNumber())), null != e.actionDescription && (t.actionDescription = String(e.actionDescription)), null != e.userId && (a.Long ? (t.userId = a.Long.fromValue(e.userId)).unsigned = !1 : "string" == typeof e.userId ? t.userId = parseInt(e.userId, 10) : "number" == typeof e.userId ? t.userId = e.userId : "object" == typeof e.userId && (t.userId = new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber())), null != e.effectConfig) + { + if ("object" != typeof e.effectConfig) throw TypeError(".webcast.im.MemberMessage.effectConfig: object expected"); + t.effectConfig = l.webcast.im.MemberMessage.EffectConfig.fromObject(e.effectConfig) + } + if (null != e.popStr && (t.popStr = String(e.popStr)), null != e.enterEffectConfig) + { + if ("object" != typeof e.enterEffectConfig) throw TypeError(".webcast.im.MemberMessage.enterEffectConfig: object expected"); + t.enterEffectConfig = l.webcast.im.MemberMessage.EffectConfig.fromObject(e.enterEffectConfig) + } + if (null != e.backgroundImage) + { + if ("object" != typeof e.backgroundImage) throw TypeError(".webcast.im.MemberMessage.backgroundImage: object expected"); + t.backgroundImage = l.webcast.data.Image.fromObject(e.backgroundImage) + } + if (null != e.backgroundImageV2) + { + if ("object" != typeof e.backgroundImageV2) throw TypeError(".webcast.im.MemberMessage.backgroundImageV2: object expected"); + t.backgroundImageV2 = l.webcast.data.Image.fromObject(e.backgroundImageV2) + } + if (null != e.anchorDisplayText) + { + if ("object" != typeof e.anchorDisplayText) throw TypeError(".webcast.im.MemberMessage.anchorDisplayText: object expected"); + t.anchorDisplayText = l.webcast.data.Text.fromObject(e.anchorDisplayText) + } + if (null != e.publicAreaCommon) + { + if ("object" != typeof e.publicAreaCommon) throw TypeError(".webcast.im.MemberMessage.publicAreaCommon: object expected"); + t.publicAreaCommon = l.webcast.im.PublicAreaCommon.fromObject(e.publicAreaCommon) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.common = null, n.user = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.memberCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.memberCount = t.longs === String ? "0" : 0; + if (n.operator = null, n.isSetToAdmin = !1, n.isTopUser = !1, a.Long) + { + r = new a.Long(0, 0, !1); + n.rankScore = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.rankScore = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.topUserNo = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.topUserNo = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.enterType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.enterType = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.action = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.action = t.longs === String ? "0" : 0; + if (n.actionDescription = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.userId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.userId = t.longs === String ? "0" : 0; + n.effectConfig = null, n.popStr = "", n.enterEffectConfig = null, n.backgroundImage = null, n.backgroundImageV2 = null, n.anchorDisplayText = null, n.publicAreaCommon = null + } + return null != e.common && e.hasOwnProperty("common") && (n.common = l.webcast.im.Common.toObject(e.common, t)), null != e.user && e.hasOwnProperty("user") && (n.user = l.webcast.data.User.toObject(e.user, t)), null != e.memberCount && e.hasOwnProperty("memberCount") && ("number" == typeof e.memberCount ? n.memberCount = t.longs === String ? String(e.memberCount) : e.memberCount : n.memberCount = t.longs === String ? a.Long.prototype.toString.call(e.memberCount) : t.longs === Number ? new a.LongBits(e.memberCount.low >>> 0, e.memberCount.high >>> 0).toNumber() : e.memberCount), null != e.operator && e.hasOwnProperty("operator") && (n.operator = l.webcast.data.User.toObject(e.operator, t)), null != e.isSetToAdmin && e.hasOwnProperty("isSetToAdmin") && (n.isSetToAdmin = e.isSetToAdmin), null != e.isTopUser && e.hasOwnProperty("isTopUser") && (n.isTopUser = e.isTopUser), null != e.rankScore && e.hasOwnProperty("rankScore") && ("number" == typeof e.rankScore ? n.rankScore = t.longs === String ? String(e.rankScore) : e.rankScore : n.rankScore = t.longs === String ? a.Long.prototype.toString.call(e.rankScore) : t.longs === Number ? new a.LongBits(e.rankScore.low >>> 0, e.rankScore.high >>> 0).toNumber() : e.rankScore), null != e.topUserNo && e.hasOwnProperty("topUserNo") && ("number" == typeof e.topUserNo ? n.topUserNo = t.longs === String ? String(e.topUserNo) : e.topUserNo : n.topUserNo = t.longs === String ? a.Long.prototype.toString.call(e.topUserNo) : t.longs === Number ? new a.LongBits(e.topUserNo.low >>> 0, e.topUserNo.high >>> 0).toNumber() : e.topUserNo), null != e.enterType && e.hasOwnProperty("enterType") && ("number" == typeof e.enterType ? n.enterType = t.longs === String ? String(e.enterType) : e.enterType : n.enterType = t.longs === String ? a.Long.prototype.toString.call(e.enterType) : t.longs === Number ? new a.LongBits(e.enterType.low >>> 0, e.enterType.high >>> 0).toNumber() : e.enterType), null != e.action && e.hasOwnProperty("action") && ("number" == typeof e.action ? n.action = t.longs === String ? String(e.action) : e.action : n.action = t.longs === String ? a.Long.prototype.toString.call(e.action) : t.longs === Number ? new a.LongBits(e.action.low >>> 0, e.action.high >>> 0).toNumber() : e.action), null != e.actionDescription && e.hasOwnProperty("actionDescription") && (n.actionDescription = e.actionDescription), null != e.userId && e.hasOwnProperty("userId") && ("number" == typeof e.userId ? n.userId = t.longs === String ? String(e.userId) : e.userId : n.userId = t.longs === String ? a.Long.prototype.toString.call(e.userId) : t.longs === Number ? new a.LongBits(e.userId.low >>> 0, e.userId.high >>> 0).toNumber() : e.userId), null != e.effectConfig && e.hasOwnProperty("effectConfig") && (n.effectConfig = l.webcast.im.MemberMessage.EffectConfig.toObject(e.effectConfig, t)), null != e.popStr && e.hasOwnProperty("popStr") && (n.popStr = e.popStr), null != e.enterEffectConfig && e.hasOwnProperty("enterEffectConfig") && (n.enterEffectConfig = l.webcast.im.MemberMessage.EffectConfig.toObject(e.enterEffectConfig, t)), null != e.backgroundImage && e.hasOwnProperty("backgroundImage") && (n.backgroundImage = l.webcast.data.Image.toObject(e.backgroundImage, t)), null != e.backgroundImageV2 && e.hasOwnProperty("backgroundImageV2") && (n.backgroundImageV2 = l.webcast.data.Image.toObject(e.backgroundImageV2, t)), null != e.anchorDisplayText && e.hasOwnProperty("anchorDisplayText") && (n.anchorDisplayText = l.webcast.data.Text.toObject(e.anchorDisplayText, t)), null != e.publicAreaCommon && e.hasOwnProperty("publicAreaCommon") && (n.publicAreaCommon = l.webcast.im.PublicAreaCommon.toObject(e.publicAreaCommon, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.EffectConfig = function () + { + function e(e) + { + if (this.flexSettingArray = [], this.textFlexSettingArray = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.type = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.icon = null, e.prototype.avatarPos = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.text = null, e.prototype.textIcon = null, e.prototype.stayTime = 0, e.prototype.animAssetId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.badge = null, e.prototype.flexSettingArray = a.emptyArray, e.prototype.textIconOverlay = null, e.prototype.animatedBadge = null, e.prototype.hasSweepLight = !1, e.prototype.textFlexSettingArray = a.emptyArray, e.prototype.centerAnimAssetId = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.type && Object.hasOwnProperty.call(e, "type") && t.uint32(8).int64(e.type), null != e.icon && Object.hasOwnProperty.call(e, "icon") && l.webcast.data.Image.encode(e.icon, t.uint32(18).fork()).ldelim(), null != e.avatarPos && Object.hasOwnProperty.call(e, "avatarPos") && t.uint32(24).int64(e.avatarPos), null != e.text && Object.hasOwnProperty.call(e, "text") && l.webcast.data.Text.encode(e.text, t.uint32(34).fork()).ldelim(), null != e.textIcon && Object.hasOwnProperty.call(e, "textIcon") && l.webcast.data.Image.encode(e.textIcon, t.uint32(42).fork()).ldelim(), null != e.stayTime && Object.hasOwnProperty.call(e, "stayTime") && t.uint32(48).int32(e.stayTime), null != e.animAssetId && Object.hasOwnProperty.call(e, "animAssetId") && t.uint32(56).int64(e.animAssetId), null != e.badge && Object.hasOwnProperty.call(e, "badge") && l.webcast.data.Image.encode(e.badge, t.uint32(66).fork()).ldelim(), null != e.flexSettingArray && e.flexSettingArray.length) + { + t.uint32(74).fork(); + for (var n = 0; n < e.flexSettingArray.length; ++n) t.int64(e.flexSettingArray[n]); + t.ldelim() + } + if (null != e.textIconOverlay && Object.hasOwnProperty.call(e, "textIconOverlay") && l.webcast.data.Image.encode(e.textIconOverlay, t.uint32(82).fork()).ldelim(), null != e.animatedBadge && Object.hasOwnProperty.call(e, "animatedBadge") && l.webcast.data.Image.encode(e.animatedBadge, t.uint32(90).fork()).ldelim(), null != e.hasSweepLight && Object.hasOwnProperty.call(e, "hasSweepLight") && t.uint32(96).bool(e.hasSweepLight), null != e.textFlexSettingArray && e.textFlexSettingArray.length) + { + t.uint32(106).fork(); + for (n = 0; n < e.textFlexSettingArray.length; ++n) t.int64(e.textFlexSettingArray[n]); + t.ldelim() + } + return null != e.centerAnimAssetId && Object.hasOwnProperty.call(e, "centerAnimAssetId") && t.uint32(112).int64(e.centerAnimAssetId), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.MemberMessage.EffectConfig; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.type = e.int64(); + break; + case 2: + r.icon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 3: + r.avatarPos = e.int64(); + break; + case 4: + r.text = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 5: + r.textIcon = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 6: + r.stayTime = e.int32(); + break; + case 7: + r.animAssetId = e.int64(); + break; + case 8: + r.badge = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 9: + if (r.flexSettingArray && r.flexSettingArray.length || (r.flexSettingArray = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.flexSettingArray.push(e.int64()); + else r.flexSettingArray.push(e.int64()); + break; + case 10: + r.textIconOverlay = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 11: + r.animatedBadge = l.webcast.data.Image.decode(e, e.uint32()); + break; + case 12: + r.hasSweepLight = e.bool(); + break; + case 13: + if (r.textFlexSettingArray && r.textFlexSettingArray.length || (r.textFlexSettingArray = []), 2 == (7 & i)) + for (a = e.uint32() + e.pos; e.pos < a;) r.textFlexSettingArray.push(e.int64()); + else r.textFlexSettingArray.push(e.int64()); + break; + case 14: + r.centerAnimAssetId = e.int64(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.type && e.hasOwnProperty("type") && !(a.isInteger(e.type) || e.type && a.isInteger(e.type.low) && a.isInteger(e.type.high))) return "type: integer|Long expected"; + var t; + if (null != e.icon && e.hasOwnProperty("icon") && (t = l.webcast.data.Image.verify(e.icon))) return "icon." + t; + if (null != e.avatarPos && e.hasOwnProperty("avatarPos") && !(a.isInteger(e.avatarPos) || e.avatarPos && a.isInteger(e.avatarPos.low) && a.isInteger(e.avatarPos.high))) return "avatarPos: integer|Long expected"; + if (null != e.text && e.hasOwnProperty("text") && (t = l.webcast.data.Text.verify(e.text))) return "text." + t; + if (null != e.textIcon && e.hasOwnProperty("textIcon") && (t = l.webcast.data.Image.verify(e.textIcon))) return "textIcon." + t; + if (null != e.stayTime && e.hasOwnProperty("stayTime") && !a.isInteger(e.stayTime)) return "stayTime: integer expected"; + if (null != e.animAssetId && e.hasOwnProperty("animAssetId") && !(a.isInteger(e.animAssetId) || e.animAssetId && a.isInteger(e.animAssetId.low) && a.isInteger(e.animAssetId.high))) return "animAssetId: integer|Long expected"; + if (null != e.badge && e.hasOwnProperty("badge") && (t = l.webcast.data.Image.verify(e.badge))) return "badge." + t; + if (null != e.flexSettingArray && e.hasOwnProperty("flexSettingArray")) + { + if (!Array.isArray(e.flexSettingArray)) return "flexSettingArray: array expected"; + for (var n = 0; n < e.flexSettingArray.length; ++n) + if (!(a.isInteger(e.flexSettingArray[n]) || e.flexSettingArray[n] && a.isInteger(e.flexSettingArray[n].low) && a.isInteger(e.flexSettingArray[n].high))) return "flexSettingArray: integer|Long[] expected" + } + if (null != e.textIconOverlay && e.hasOwnProperty("textIconOverlay") && (t = l.webcast.data.Image.verify(e.textIconOverlay))) return "textIconOverlay." + t; + if (null != e.animatedBadge && e.hasOwnProperty("animatedBadge") && (t = l.webcast.data.Image.verify(e.animatedBadge))) return "animatedBadge." + t; + if (null != e.hasSweepLight && e.hasOwnProperty("hasSweepLight") && "boolean" != typeof e.hasSweepLight) return "hasSweepLight: boolean expected"; + if (null != e.textFlexSettingArray && e.hasOwnProperty("textFlexSettingArray")) + { + if (!Array.isArray(e.textFlexSettingArray)) return "textFlexSettingArray: array expected"; + for (n = 0; n < e.textFlexSettingArray.length; ++n) + if (!(a.isInteger(e.textFlexSettingArray[n]) || e.textFlexSettingArray[n] && a.isInteger(e.textFlexSettingArray[n].low) && a.isInteger(e.textFlexSettingArray[n].high))) return "textFlexSettingArray: integer|Long[] expected" + } + return null != e.centerAnimAssetId && e.hasOwnProperty("centerAnimAssetId") && !(a.isInteger(e.centerAnimAssetId) || e.centerAnimAssetId && a.isInteger(e.centerAnimAssetId.low) && a.isInteger(e.centerAnimAssetId.high)) ? "centerAnimAssetId: integer|Long expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.MemberMessage.EffectConfig) return e; + var t = new l.webcast.im.MemberMessage.EffectConfig; + if (null != e.type && (a.Long ? (t.type = a.Long.fromValue(e.type)).unsigned = !1 : "string" == typeof e.type ? t.type = parseInt(e.type, 10) : "number" == typeof e.type ? t.type = e.type : "object" == typeof e.type && (t.type = new a.LongBits(e.type.low >>> 0, e.type.high >>> 0).toNumber())), null != e.icon) + { + if ("object" != typeof e.icon) throw TypeError(".webcast.im.MemberMessage.EffectConfig.icon: object expected"); + t.icon = l.webcast.data.Image.fromObject(e.icon) + } + if (null != e.avatarPos && (a.Long ? (t.avatarPos = a.Long.fromValue(e.avatarPos)).unsigned = !1 : "string" == typeof e.avatarPos ? t.avatarPos = parseInt(e.avatarPos, 10) : "number" == typeof e.avatarPos ? t.avatarPos = e.avatarPos : "object" == typeof e.avatarPos && (t.avatarPos = new a.LongBits(e.avatarPos.low >>> 0, e.avatarPos.high >>> 0).toNumber())), null != e.text) + { + if ("object" != typeof e.text) throw TypeError(".webcast.im.MemberMessage.EffectConfig.text: object expected"); + t.text = l.webcast.data.Text.fromObject(e.text) + } + if (null != e.textIcon) + { + if ("object" != typeof e.textIcon) throw TypeError(".webcast.im.MemberMessage.EffectConfig.textIcon: object expected"); + t.textIcon = l.webcast.data.Image.fromObject(e.textIcon) + } + if (null != e.stayTime && (t.stayTime = 0 | e.stayTime), null != e.animAssetId && (a.Long ? (t.animAssetId = a.Long.fromValue(e.animAssetId)).unsigned = !1 : "string" == typeof e.animAssetId ? t.animAssetId = parseInt(e.animAssetId, 10) : "number" == typeof e.animAssetId ? t.animAssetId = e.animAssetId : "object" == typeof e.animAssetId && (t.animAssetId = new a.LongBits(e.animAssetId.low >>> 0, e.animAssetId.high >>> 0).toNumber())), null != e.badge) + { + if ("object" != typeof e.badge) throw TypeError(".webcast.im.MemberMessage.EffectConfig.badge: object expected"); + t.badge = l.webcast.data.Image.fromObject(e.badge) + } + if (e.flexSettingArray) + { + if (!Array.isArray(e.flexSettingArray)) throw TypeError(".webcast.im.MemberMessage.EffectConfig.flexSettingArray: array expected"); + t.flexSettingArray = []; + for (var n = 0; n < e.flexSettingArray.length; ++n) a.Long ? (t.flexSettingArray[n] = a.Long.fromValue(e.flexSettingArray[n])).unsigned = !1 : "string" == typeof e.flexSettingArray[n] ? t.flexSettingArray[n] = parseInt(e.flexSettingArray[n], 10) : "number" == typeof e.flexSettingArray[n] ? t.flexSettingArray[n] = e.flexSettingArray[n] : "object" == typeof e.flexSettingArray[n] && (t.flexSettingArray[n] = new a.LongBits(e.flexSettingArray[n].low >>> 0, e.flexSettingArray[n].high >>> 0).toNumber()) + } + if (null != e.textIconOverlay) + { + if ("object" != typeof e.textIconOverlay) throw TypeError(".webcast.im.MemberMessage.EffectConfig.textIconOverlay: object expected"); + t.textIconOverlay = l.webcast.data.Image.fromObject(e.textIconOverlay) + } + if (null != e.animatedBadge) + { + if ("object" != typeof e.animatedBadge) throw TypeError(".webcast.im.MemberMessage.EffectConfig.animatedBadge: object expected"); + t.animatedBadge = l.webcast.data.Image.fromObject(e.animatedBadge) + } + if (null != e.hasSweepLight && (t.hasSweepLight = Boolean(e.hasSweepLight)), e.textFlexSettingArray) + { + if (!Array.isArray(e.textFlexSettingArray)) throw TypeError(".webcast.im.MemberMessage.EffectConfig.textFlexSettingArray: array expected"); + t.textFlexSettingArray = []; + for (n = 0; n < e.textFlexSettingArray.length; ++n) a.Long ? (t.textFlexSettingArray[n] = a.Long.fromValue(e.textFlexSettingArray[n])).unsigned = !1 : "string" == typeof e.textFlexSettingArray[n] ? t.textFlexSettingArray[n] = parseInt(e.textFlexSettingArray[n], 10) : "number" == typeof e.textFlexSettingArray[n] ? t.textFlexSettingArray[n] = e.textFlexSettingArray[n] : "object" == typeof e.textFlexSettingArray[n] && (t.textFlexSettingArray[n] = new a.LongBits(e.textFlexSettingArray[n].low >>> 0, e.textFlexSettingArray[n].high >>> 0).toNumber()) + } + return null != e.centerAnimAssetId && (a.Long ? (t.centerAnimAssetId = a.Long.fromValue(e.centerAnimAssetId)).unsigned = !1 : "string" == typeof e.centerAnimAssetId ? t.centerAnimAssetId = parseInt(e.centerAnimAssetId, 10) : "number" == typeof e.centerAnimAssetId ? t.centerAnimAssetId = e.centerAnimAssetId : "object" == typeof e.centerAnimAssetId && (t.centerAnimAssetId = new a.LongBits(e.centerAnimAssetId.low >>> 0, e.centerAnimAssetId.high >>> 0).toNumber())), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.flexSettingArray = [], n.textFlexSettingArray = []), t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.type = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.type = t.longs === String ? "0" : 0; + if (n.icon = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.avatarPos = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.avatarPos = t.longs === String ? "0" : 0; + if (n.text = null, n.textIcon = null, n.stayTime = 0, a.Long) + { + r = new a.Long(0, 0, !1); + n.animAssetId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.animAssetId = t.longs === String ? "0" : 0; + if (n.badge = null, n.textIconOverlay = null, n.animatedBadge = null, n.hasSweepLight = !1, a.Long) + { + r = new a.Long(0, 0, !1); + n.centerAnimAssetId = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.centerAnimAssetId = t.longs === String ? "0" : 0 + } + if (null != e.type && e.hasOwnProperty("type") && ("number" == typeof e.type ? n.type = t.longs === String ? String(e.type) : e.type : n.type = t.longs === String ? a.Long.prototype.toString.call(e.type) : t.longs === Number ? new a.LongBits(e.type.low >>> 0, e.type.high >>> 0).toNumber() : e.type), null != e.icon && e.hasOwnProperty("icon") && (n.icon = l.webcast.data.Image.toObject(e.icon, t)), null != e.avatarPos && e.hasOwnProperty("avatarPos") && ("number" == typeof e.avatarPos ? n.avatarPos = t.longs === String ? String(e.avatarPos) : e.avatarPos : n.avatarPos = t.longs === String ? a.Long.prototype.toString.call(e.avatarPos) : t.longs === Number ? new a.LongBits(e.avatarPos.low >>> 0, e.avatarPos.high >>> 0).toNumber() : e.avatarPos), null != e.text && e.hasOwnProperty("text") && (n.text = l.webcast.data.Text.toObject(e.text, t)), null != e.textIcon && e.hasOwnProperty("textIcon") && (n.textIcon = l.webcast.data.Image.toObject(e.textIcon, t)), null != e.stayTime && e.hasOwnProperty("stayTime") && (n.stayTime = e.stayTime), null != e.animAssetId && e.hasOwnProperty("animAssetId") && ("number" == typeof e.animAssetId ? n.animAssetId = t.longs === String ? String(e.animAssetId) : e.animAssetId : n.animAssetId = t.longs === String ? a.Long.prototype.toString.call(e.animAssetId) : t.longs === Number ? new a.LongBits(e.animAssetId.low >>> 0, e.animAssetId.high >>> 0).toNumber() : e.animAssetId), null != e.badge && e.hasOwnProperty("badge") && (n.badge = l.webcast.data.Image.toObject(e.badge, t)), e.flexSettingArray && e.flexSettingArray.length) + { + n.flexSettingArray = []; + for (var o = 0; o < e.flexSettingArray.length; ++o) "number" == typeof e.flexSettingArray[o] ? n.flexSettingArray[o] = t.longs === String ? String(e.flexSettingArray[o]) : e.flexSettingArray[o] : n.flexSettingArray[o] = t.longs === String ? a.Long.prototype.toString.call(e.flexSettingArray[o]) : t.longs === Number ? new a.LongBits(e.flexSettingArray[o].low >>> 0, e.flexSettingArray[o].high >>> 0).toNumber() : e.flexSettingArray[o] + } + if (null != e.textIconOverlay && e.hasOwnProperty("textIconOverlay") && (n.textIconOverlay = l.webcast.data.Image.toObject(e.textIconOverlay, t)), null != e.animatedBadge && e.hasOwnProperty("animatedBadge") && (n.animatedBadge = l.webcast.data.Image.toObject(e.animatedBadge, t)), null != e.hasSweepLight && e.hasOwnProperty("hasSweepLight") && (n.hasSweepLight = e.hasSweepLight), e.textFlexSettingArray && e.textFlexSettingArray.length) + { + n.textFlexSettingArray = []; + for (o = 0; o < e.textFlexSettingArray.length; ++o) "number" == typeof e.textFlexSettingArray[o] ? n.textFlexSettingArray[o] = t.longs === String ? String(e.textFlexSettingArray[o]) : e.textFlexSettingArray[o] : n.textFlexSettingArray[o] = t.longs === String ? a.Long.prototype.toString.call(e.textFlexSettingArray[o]) : t.longs === Number ? new a.LongBits(e.textFlexSettingArray[o].low >>> 0, e.textFlexSettingArray[o].high >>> 0).toNumber() : e.textFlexSettingArray[o] + } + return null != e.centerAnimAssetId && e.hasOwnProperty("centerAnimAssetId") && ("number" == typeof e.centerAnimAssetId ? n.centerAnimAssetId = t.longs === String ? String(e.centerAnimAssetId) : e.centerAnimAssetId : n.centerAnimAssetId = t.longs === String ? a.Long.prototype.toString.call(e.centerAnimAssetId) : t.longs === Number ? new a.LongBits(e.centerAnimAssetId.low >>> 0, e.centerAnimAssetId.high >>> 0).toNumber() : e.centerAnimAssetId), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.NoticeMessage = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.common = null, e.prototype.content = "", e.prototype.noticeType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.style = "", e.prototype.title = null, e.prototype.violationReason = null, e.prototype.displayText = null, e.prototype.tipsTitle = null, e.prototype.tipsUrl = "", e.prototype.noticeTitle = null, e.prototype.noticeContent = null, e.prototype.noticeTime = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.limitNoticeKey = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.common && Object.hasOwnProperty.call(e, "common") && l.webcast.im.Common.encode(e.common, t.uint32(10).fork()).ldelim(), null != e.content && Object.hasOwnProperty.call(e, "content") && t.uint32(18).string(e.content), null != e.noticeType && Object.hasOwnProperty.call(e, "noticeType") && t.uint32(24).int64(e.noticeType), null != e.style && Object.hasOwnProperty.call(e, "style") && t.uint32(34).string(e.style), null != e.title && Object.hasOwnProperty.call(e, "title") && l.webcast.data.Text.encode(e.title, t.uint32(42).fork()).ldelim(), null != e.violationReason && Object.hasOwnProperty.call(e, "violationReason") && l.webcast.data.Text.encode(e.violationReason, t.uint32(50).fork()).ldelim(), null != e.displayText && Object.hasOwnProperty.call(e, "displayText") && l.webcast.data.Text.encode(e.displayText, t.uint32(58).fork()).ldelim(), null != e.tipsTitle && Object.hasOwnProperty.call(e, "tipsTitle") && l.webcast.data.Text.encode(e.tipsTitle, t.uint32(66).fork()).ldelim(), null != e.tipsUrl && Object.hasOwnProperty.call(e, "tipsUrl") && t.uint32(74).string(e.tipsUrl), null != e.noticeTitle && Object.hasOwnProperty.call(e, "noticeTitle") && l.webcast.data.Text.encode(e.noticeTitle, t.uint32(82).fork()).ldelim(), null != e.noticeContent && Object.hasOwnProperty.call(e, "noticeContent") && l.webcast.data.Text.encode(e.noticeContent, t.uint32(90).fork()).ldelim(), null != e.noticeTime && Object.hasOwnProperty.call(e, "noticeTime") && t.uint32(96).int64(e.noticeTime), null != e.limitNoticeKey && Object.hasOwnProperty.call(e, "limitNoticeKey") && t.uint32(106).string(e.limitNoticeKey), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.NoticeMessage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.common = l.webcast.im.Common.decode(e, e.uint32()); + break; + case 2: + r.content = e.string(); + break; + case 3: + r.noticeType = e.int64(); + break; + case 4: + r.style = e.string(); + break; + case 5: + r.title = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 6: + r.violationReason = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 7: + r.displayText = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 8: + r.tipsTitle = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 9: + r.tipsUrl = e.string(); + break; + case 10: + r.noticeTitle = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 11: + r.noticeContent = l.webcast.data.Text.decode(e, e.uint32()); + break; + case 12: + r.noticeTime = e.int64(); + break; + case 13: + r.limitNoticeKey = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.common && e.hasOwnProperty("common") && (t = l.webcast.im.Common.verify(e.common))) return "common." + t; + if (null != e.content && e.hasOwnProperty("content") && !a.isString(e.content)) return "content: string expected"; + if (null != e.noticeType && e.hasOwnProperty("noticeType") && !(a.isInteger(e.noticeType) || e.noticeType && a.isInteger(e.noticeType.low) && a.isInteger(e.noticeType.high))) return "noticeType: integer|Long expected"; + if (null != e.style && e.hasOwnProperty("style") && !a.isString(e.style)) return "style: string expected"; + if (null != e.title && e.hasOwnProperty("title") && (t = l.webcast.data.Text.verify(e.title))) return "title." + t; + if (null != e.violationReason && e.hasOwnProperty("violationReason") && (t = l.webcast.data.Text.verify(e.violationReason))) return "violationReason." + t; + if (null != e.displayText && e.hasOwnProperty("displayText") && (t = l.webcast.data.Text.verify(e.displayText))) return "displayText." + t; + if (null != e.tipsTitle && e.hasOwnProperty("tipsTitle") && (t = l.webcast.data.Text.verify(e.tipsTitle))) return "tipsTitle." + t; + if (null != e.tipsUrl && e.hasOwnProperty("tipsUrl") && !a.isString(e.tipsUrl)) return "tipsUrl: string expected"; + if (null != e.noticeTitle && e.hasOwnProperty("noticeTitle") && (t = l.webcast.data.Text.verify(e.noticeTitle))) return "noticeTitle." + t; + if (null != e.noticeContent && e.hasOwnProperty("noticeContent") && (t = l.webcast.data.Text.verify(e.noticeContent))) return "noticeContent." + t; + return null != e.noticeTime && e.hasOwnProperty("noticeTime") && !(a.isInteger(e.noticeTime) || e.noticeTime && a.isInteger(e.noticeTime.low) && a.isInteger(e.noticeTime.high)) ? "noticeTime: integer|Long expected" : null != e.limitNoticeKey && e.hasOwnProperty("limitNoticeKey") && !a.isString(e.limitNoticeKey) ? "limitNoticeKey: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.NoticeMessage) return e; + var t = new l.webcast.im.NoticeMessage; + if (null != e.common) + { + if ("object" != typeof e.common) throw TypeError(".webcast.im.NoticeMessage.common: object expected"); + t.common = l.webcast.im.Common.fromObject(e.common) + } + if (null != e.content && (t.content = String(e.content)), null != e.noticeType && (a.Long ? (t.noticeType = a.Long.fromValue(e.noticeType)).unsigned = !1 : "string" == typeof e.noticeType ? t.noticeType = parseInt(e.noticeType, 10) : "number" == typeof e.noticeType ? t.noticeType = e.noticeType : "object" == typeof e.noticeType && (t.noticeType = new a.LongBits(e.noticeType.low >>> 0, e.noticeType.high >>> 0).toNumber())), null != e.style && (t.style = String(e.style)), null != e.title) + { + if ("object" != typeof e.title) throw TypeError(".webcast.im.NoticeMessage.title: object expected"); + t.title = l.webcast.data.Text.fromObject(e.title) + } + if (null != e.violationReason) + { + if ("object" != typeof e.violationReason) throw TypeError(".webcast.im.NoticeMessage.violationReason: object expected"); + t.violationReason = l.webcast.data.Text.fromObject(e.violationReason) + } + if (null != e.displayText) + { + if ("object" != typeof e.displayText) throw TypeError(".webcast.im.NoticeMessage.displayText: object expected"); + t.displayText = l.webcast.data.Text.fromObject(e.displayText) + } + if (null != e.tipsTitle) + { + if ("object" != typeof e.tipsTitle) throw TypeError(".webcast.im.NoticeMessage.tipsTitle: object expected"); + t.tipsTitle = l.webcast.data.Text.fromObject(e.tipsTitle) + } + if (null != e.tipsUrl && (t.tipsUrl = String(e.tipsUrl)), null != e.noticeTitle) + { + if ("object" != typeof e.noticeTitle) throw TypeError(".webcast.im.NoticeMessage.noticeTitle: object expected"); + t.noticeTitle = l.webcast.data.Text.fromObject(e.noticeTitle) + } + if (null != e.noticeContent) + { + if ("object" != typeof e.noticeContent) throw TypeError(".webcast.im.NoticeMessage.noticeContent: object expected"); + t.noticeContent = l.webcast.data.Text.fromObject(e.noticeContent) + } + return null != e.noticeTime && (a.Long ? (t.noticeTime = a.Long.fromValue(e.noticeTime)).unsigned = !1 : "string" == typeof e.noticeTime ? t.noticeTime = parseInt(e.noticeTime, 10) : "number" == typeof e.noticeTime ? t.noticeTime = e.noticeTime : "object" == typeof e.noticeTime && (t.noticeTime = new a.LongBits(e.noticeTime.low >>> 0, e.noticeTime.high >>> 0).toNumber())), null != e.limitNoticeKey && (t.limitNoticeKey = String(e.limitNoticeKey)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.common = null, n.content = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.noticeType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.noticeType = t.longs === String ? "0" : 0; + if (n.style = "", n.title = null, n.violationReason = null, n.displayText = null, n.tipsTitle = null, n.tipsUrl = "", n.noticeTitle = null, n.noticeContent = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.noticeTime = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.noticeTime = t.longs === String ? "0" : 0; + n.limitNoticeKey = "" + } + return null != e.common && e.hasOwnProperty("common") && (n.common = l.webcast.im.Common.toObject(e.common, t)), null != e.content && e.hasOwnProperty("content") && (n.content = e.content), null != e.noticeType && e.hasOwnProperty("noticeType") && ("number" == typeof e.noticeType ? n.noticeType = t.longs === String ? String(e.noticeType) : e.noticeType : n.noticeType = t.longs === String ? a.Long.prototype.toString.call(e.noticeType) : t.longs === Number ? new a.LongBits(e.noticeType.low >>> 0, e.noticeType.high >>> 0).toNumber() : e.noticeType), null != e.style && e.hasOwnProperty("style") && (n.style = e.style), null != e.title && e.hasOwnProperty("title") && (n.title = l.webcast.data.Text.toObject(e.title, t)), null != e.violationReason && e.hasOwnProperty("violationReason") && (n.violationReason = l.webcast.data.Text.toObject(e.violationReason, t)), null != e.displayText && e.hasOwnProperty("displayText") && (n.displayText = l.webcast.data.Text.toObject(e.displayText, t)), null != e.tipsTitle && e.hasOwnProperty("tipsTitle") && (n.tipsTitle = l.webcast.data.Text.toObject(e.tipsTitle, t)), null != e.tipsUrl && e.hasOwnProperty("tipsUrl") && (n.tipsUrl = e.tipsUrl), null != e.noticeTitle && e.hasOwnProperty("noticeTitle") && (n.noticeTitle = l.webcast.data.Text.toObject(e.noticeTitle, t)), null != e.noticeContent && e.hasOwnProperty("noticeContent") && (n.noticeContent = l.webcast.data.Text.toObject(e.noticeContent, t)), null != e.noticeTime && e.hasOwnProperty("noticeTime") && ("number" == typeof e.noticeTime ? n.noticeTime = t.longs === String ? String(e.noticeTime) : e.noticeTime : n.noticeTime = t.longs === String ? a.Long.prototype.toString.call(e.noticeTime) : t.longs === Number ? new a.LongBits(e.noticeTime.low >>> 0, e.noticeTime.high >>> 0).toNumber() : e.noticeTime), null != e.limitNoticeKey && e.hasOwnProperty("limitNoticeKey") && (n.limitNoticeKey = e.limitNoticeKey), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.NotifyMessage = function () + { + function e(e) + { + if (this.flexSetting = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.common = null, e.prototype.schema = "", e.prototype.notifyType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.content = "", e.prototype.user = null, e.prototype.extra = null, e.prototype.notifyClass = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.flexSetting = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.common && Object.hasOwnProperty.call(e, "common") && l.webcast.im.Common.encode(e.common, t.uint32(10).fork()).ldelim(), null != e.schema && Object.hasOwnProperty.call(e, "schema") && t.uint32(18).string(e.schema), null != e.notifyType && Object.hasOwnProperty.call(e, "notifyType") && t.uint32(24).int64(e.notifyType), null != e.content && Object.hasOwnProperty.call(e, "content") && t.uint32(34).string(e.content), null != e.user && Object.hasOwnProperty.call(e, "user") && l.webcast.data.User.encode(e.user, t.uint32(42).fork()).ldelim(), null != e.extra && Object.hasOwnProperty.call(e, "extra") && l.webcast.im.NotifyMessage.Extra.encode(e.extra, t.uint32(50).fork()).ldelim(), null != e.notifyClass && Object.hasOwnProperty.call(e, "notifyClass") && t.uint32(56).int64(e.notifyClass), null != e.flexSetting && e.flexSetting.length) + { + t.uint32(66).fork(); + for (var n = 0; n < e.flexSetting.length; ++n) t.int64(e.flexSetting[n]); + t.ldelim() + } + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.NotifyMessage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.common = l.webcast.im.Common.decode(e, e.uint32()); + break; + case 2: + r.schema = e.string(); + break; + case 3: + r.notifyType = e.int64(); + break; + case 4: + r.content = e.string(); + break; + case 5: + r.user = l.webcast.data.User.decode(e, e.uint32()); + break; + case 6: + r.extra = l.webcast.im.NotifyMessage.Extra.decode(e, e.uint32()); + break; + case 7: + r.notifyClass = e.int64(); + break; + case 8: + if (r.flexSetting && r.flexSetting.length || (r.flexSetting = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.flexSetting.push(e.int64()); + else r.flexSetting.push(e.int64()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.common && e.hasOwnProperty("common") && (t = l.webcast.im.Common.verify(e.common))) return "common." + t; + if (null != e.schema && e.hasOwnProperty("schema") && !a.isString(e.schema)) return "schema: string expected"; + if (null != e.notifyType && e.hasOwnProperty("notifyType") && !(a.isInteger(e.notifyType) || e.notifyType && a.isInteger(e.notifyType.low) && a.isInteger(e.notifyType.high))) return "notifyType: integer|Long expected"; + if (null != e.content && e.hasOwnProperty("content") && !a.isString(e.content)) return "content: string expected"; + if (null != e.user && e.hasOwnProperty("user") && (t = l.webcast.data.User.verify(e.user))) return "user." + t; + if (null != e.extra && e.hasOwnProperty("extra") && (t = l.webcast.im.NotifyMessage.Extra.verify(e.extra))) return "extra." + t; + if (null != e.notifyClass && e.hasOwnProperty("notifyClass") && !(a.isInteger(e.notifyClass) || e.notifyClass && a.isInteger(e.notifyClass.low) && a.isInteger(e.notifyClass.high))) return "notifyClass: integer|Long expected"; + if (null != e.flexSetting && e.hasOwnProperty("flexSetting")) + { + if (!Array.isArray(e.flexSetting)) return "flexSetting: array expected"; + for (var n = 0; n < e.flexSetting.length; ++n) + if (!(a.isInteger(e.flexSetting[n]) || e.flexSetting[n] && a.isInteger(e.flexSetting[n].low) && a.isInteger(e.flexSetting[n].high))) return "flexSetting: integer|Long[] expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.NotifyMessage) return e; + var t = new l.webcast.im.NotifyMessage; + if (null != e.common) + { + if ("object" != typeof e.common) throw TypeError(".webcast.im.NotifyMessage.common: object expected"); + t.common = l.webcast.im.Common.fromObject(e.common) + } + if (null != e.schema && (t.schema = String(e.schema)), null != e.notifyType && (a.Long ? (t.notifyType = a.Long.fromValue(e.notifyType)).unsigned = !1 : "string" == typeof e.notifyType ? t.notifyType = parseInt(e.notifyType, 10) : "number" == typeof e.notifyType ? t.notifyType = e.notifyType : "object" == typeof e.notifyType && (t.notifyType = new a.LongBits(e.notifyType.low >>> 0, e.notifyType.high >>> 0).toNumber())), null != e.content && (t.content = String(e.content)), null != e.user) + { + if ("object" != typeof e.user) throw TypeError(".webcast.im.NotifyMessage.user: object expected"); + t.user = l.webcast.data.User.fromObject(e.user) + } + if (null != e.extra) + { + if ("object" != typeof e.extra) throw TypeError(".webcast.im.NotifyMessage.extra: object expected"); + t.extra = l.webcast.im.NotifyMessage.Extra.fromObject(e.extra) + } + if (null != e.notifyClass && (a.Long ? (t.notifyClass = a.Long.fromValue(e.notifyClass)).unsigned = !1 : "string" == typeof e.notifyClass ? t.notifyClass = parseInt(e.notifyClass, 10) : "number" == typeof e.notifyClass ? t.notifyClass = e.notifyClass : "object" == typeof e.notifyClass && (t.notifyClass = new a.LongBits(e.notifyClass.low >>> 0, e.notifyClass.high >>> 0).toNumber())), e.flexSetting) + { + if (!Array.isArray(e.flexSetting)) throw TypeError(".webcast.im.NotifyMessage.flexSetting: array expected"); + t.flexSetting = []; + for (var n = 0; n < e.flexSetting.length; ++n) a.Long ? (t.flexSetting[n] = a.Long.fromValue(e.flexSetting[n])).unsigned = !1 : "string" == typeof e.flexSetting[n] ? t.flexSetting[n] = parseInt(e.flexSetting[n], 10) : "number" == typeof e.flexSetting[n] ? t.flexSetting[n] = e.flexSetting[n] : "object" == typeof e.flexSetting[n] && (t.flexSetting[n] = new a.LongBits(e.flexSetting[n].low >>> 0, e.flexSetting[n].high >>> 0).toNumber()) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.flexSetting = []), t.defaults) + { + if (n.common = null, n.schema = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.notifyType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.notifyType = t.longs === String ? "0" : 0; + if (n.content = "", n.user = null, n.extra = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.notifyClass = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.notifyClass = t.longs === String ? "0" : 0 + } + if (null != e.common && e.hasOwnProperty("common") && (n.common = l.webcast.im.Common.toObject(e.common, t)), null != e.schema && e.hasOwnProperty("schema") && (n.schema = e.schema), null != e.notifyType && e.hasOwnProperty("notifyType") && ("number" == typeof e.notifyType ? n.notifyType = t.longs === String ? String(e.notifyType) : e.notifyType : n.notifyType = t.longs === String ? a.Long.prototype.toString.call(e.notifyType) : t.longs === Number ? new a.LongBits(e.notifyType.low >>> 0, e.notifyType.high >>> 0).toNumber() : e.notifyType), null != e.content && e.hasOwnProperty("content") && (n.content = e.content), null != e.user && e.hasOwnProperty("user") && (n.user = l.webcast.data.User.toObject(e.user, t)), null != e.extra && e.hasOwnProperty("extra") && (n.extra = l.webcast.im.NotifyMessage.Extra.toObject(e.extra, t)), null != e.notifyClass && e.hasOwnProperty("notifyClass") && ("number" == typeof e.notifyClass ? n.notifyClass = t.longs === String ? String(e.notifyClass) : e.notifyClass : n.notifyClass = t.longs === String ? a.Long.prototype.toString.call(e.notifyClass) : t.longs === Number ? new a.LongBits(e.notifyClass.low >>> 0, e.notifyClass.high >>> 0).toNumber() : e.notifyClass), e.flexSetting && e.flexSetting.length) + { + n.flexSetting = []; + for (var o = 0; o < e.flexSetting.length; ++o) "number" == typeof e.flexSetting[o] ? n.flexSetting[o] = t.longs === String ? String(e.flexSetting[o]) : e.flexSetting[o] : n.flexSetting[o] = t.longs === String ? a.Long.prototype.toString.call(e.flexSetting[o]) : t.longs === Number ? new a.LongBits(e.flexSetting[o].low >>> 0, e.flexSetting[o].high >>> 0).toNumber() : e.flexSetting[o] + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Background = function () + { + function e(e) + { + if (this.urlList = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.width = 0, e.prototype.height = 0, e.prototype.urlList = a.emptyArray, e.prototype.uri = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.width && Object.hasOwnProperty.call(e, "width") && t.uint32(8).int32(e.width), null != e.height && Object.hasOwnProperty.call(e, "height") && t.uint32(16).int32(e.height), null != e.urlList && e.urlList.length) + for (var n = 0; n < e.urlList.length; ++n) t.uint32(26).string(e.urlList[n]); + return null != e.uri && Object.hasOwnProperty.call(e, "uri") && t.uint32(34).string(e.uri), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.NotifyMessage.Background; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.width = e.int32(); + break; + case 2: + r.height = e.int32(); + break; + case 3: + r.urlList && r.urlList.length || (r.urlList = []), r.urlList.push(e.string()); + break; + case 4: + r.uri = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.width && e.hasOwnProperty("width") && !a.isInteger(e.width)) return "width: integer expected"; + if (null != e.height && e.hasOwnProperty("height") && !a.isInteger(e.height)) return "height: integer expected"; + if (null != e.urlList && e.hasOwnProperty("urlList")) + { + if (!Array.isArray(e.urlList)) return "urlList: array expected"; + for (var t = 0; t < e.urlList.length; ++t) + if (!a.isString(e.urlList[t])) return "urlList: string[] expected" + } + return null != e.uri && e.hasOwnProperty("uri") && !a.isString(e.uri) ? "uri: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.NotifyMessage.Background) return e; + var t = new l.webcast.im.NotifyMessage.Background; + if (null != e.width && (t.width = 0 | e.width), null != e.height && (t.height = 0 | e.height), e.urlList) + { + if (!Array.isArray(e.urlList)) throw TypeError(".webcast.im.NotifyMessage.Background.urlList: array expected"); + t.urlList = []; + for (var n = 0; n < e.urlList.length; ++n) t.urlList[n] = String(e.urlList[n]) + } + return null != e.uri && (t.uri = String(e.uri)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.urlList = []), t.defaults && (n.width = 0, n.height = 0, n.uri = ""), null != e.width && e.hasOwnProperty("width") && (n.width = e.width), null != e.height && e.hasOwnProperty("height") && (n.height = e.height), e.urlList && e.urlList.length) + { + n.urlList = []; + for (var r = 0; r < e.urlList.length; ++r) n.urlList[r] = e.urlList[r] + } + return null != e.uri && e.hasOwnProperty("uri") && (n.uri = e.uri), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.Content = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.content = "", e.prototype.needHighLight = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.content && Object.hasOwnProperty.call(e, "content") && t.uint32(10).string(e.content), null != e.needHighLight && Object.hasOwnProperty.call(e, "needHighLight") && t.uint32(16).bool(e.needHighLight), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.NotifyMessage.Content; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.content = e.string(); + break; + case 2: + r.needHighLight = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.content && e.hasOwnProperty("content") && !a.isString(e.content) ? "content: string expected" : null != e.needHighLight && e.hasOwnProperty("needHighLight") && "boolean" != typeof e.needHighLight ? "needHighLight: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.NotifyMessage.Content) return e; + var t = new l.webcast.im.NotifyMessage.Content; + return null != e.content && (t.content = String(e.content)), null != e.needHighLight && (t.needHighLight = Boolean(e.needHighLight)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.content = "", n.needHighLight = !1), null != e.content && e.hasOwnProperty("content") && (n.content = e.content), null != e.needHighLight && e.hasOwnProperty("needHighLight") && (n.needHighLight = e.needHighLight), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ContentList = function () + { + function e(e) + { + if (this.contents = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.contents = a.emptyArray, e.prototype.highLightColor = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.contents && e.contents.length) + for (var n = 0; n < e.contents.length; ++n) l.webcast.im.NotifyMessage.Content.encode(e.contents[n], t.uint32(10).fork()).ldelim(); + return null != e.highLightColor && Object.hasOwnProperty.call(e, "highLightColor") && t.uint32(18).string(e.highLightColor), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.NotifyMessage.ContentList; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.contents && r.contents.length || (r.contents = []), r.contents.push(l.webcast.im.NotifyMessage.Content.decode(e, e.uint32())); + break; + case 2: + r.highLightColor = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.contents && e.hasOwnProperty("contents")) + { + if (!Array.isArray(e.contents)) return "contents: array expected"; + for (var t = 0; t < e.contents.length; ++t) + { + var n = l.webcast.im.NotifyMessage.Content.verify(e.contents[t]); + if (n) return "contents." + n + } + } + return null != e.highLightColor && e.hasOwnProperty("highLightColor") && !a.isString(e.highLightColor) ? "highLightColor: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.NotifyMessage.ContentList) return e; + var t = new l.webcast.im.NotifyMessage.ContentList; + if (e.contents) + { + if (!Array.isArray(e.contents)) throw TypeError(".webcast.im.NotifyMessage.ContentList.contents: array expected"); + t.contents = []; + for (var n = 0; n < e.contents.length; ++n) + { + if ("object" != typeof e.contents[n]) throw TypeError(".webcast.im.NotifyMessage.ContentList.contents: object expected"); + t.contents[n] = l.webcast.im.NotifyMessage.Content.fromObject(e.contents[n]) + } + } + return null != e.highLightColor && (t.highLightColor = String(e.highLightColor)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.contents = []), t.defaults && (n.highLightColor = ""), e.contents && e.contents.length) + { + n.contents = []; + for (var r = 0; r < e.contents.length; ++r) n.contents[r] = l.webcast.im.NotifyMessage.Content.toObject(e.contents[r], t) + } + return null != e.highLightColor && e.hasOwnProperty("highLightColor") && (n.highLightColor = e.highLightColor), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.Extra = function () + { + function e(e) + { + if (this.params = {}, e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.duration = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.background = null, e.prototype.contentList = null, e.prototype.params = a.emptyObject, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.duration && Object.hasOwnProperty.call(e, "duration") && t.uint32(8).int64(e.duration), null != e.background && Object.hasOwnProperty.call(e, "background") && l.webcast.im.NotifyMessage.Background.encode(e.background, t.uint32(18).fork()).ldelim(), null != e.contentList && Object.hasOwnProperty.call(e, "contentList") && l.webcast.im.NotifyMessage.ContentList.encode(e.contentList, t.uint32(26).fork()).ldelim(), null != e.params && Object.hasOwnProperty.call(e, "params")) + for (var n = Object.keys(e.params), r = 0; r < n.length; ++r) t.uint32(42).fork().uint32(10).string(n[r]).uint32(18).string(e.params[n[r]]).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n, r, i = t === undefined ? e.len : e.pos + t, s = new l.webcast.im.NotifyMessage.Extra; e.pos < i;) + { + var c = e.uint32(); + switch (c >>> 3) + { + case 1: + s.duration = e.int64(); + break; + case 2: + s.background = l.webcast.im.NotifyMessage.Background.decode(e, e.uint32()); + break; + case 3: + s.contentList = l.webcast.im.NotifyMessage.ContentList.decode(e, e.uint32()); + break; + case 5: + s.params === a.emptyObject && (s.params = {}); + var u = e.uint32() + e.pos; + for (n = "", r = ""; e.pos < u;) + { + var p = e.uint32(); + switch (p >>> 3) + { + case 1: + n = e.string(); + break; + case 2: + r = e.string(); + break; + default: + e.skipType(7 & p) + } + } + s.params[n] = r; + break; + default: + e.skipType(7 & c) + } + } + return s + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.duration && e.hasOwnProperty("duration") && !(a.isInteger(e.duration) || e.duration && a.isInteger(e.duration.low) && a.isInteger(e.duration.high))) return "duration: integer|Long expected"; + var t; + if (null != e.background && e.hasOwnProperty("background") && (t = l.webcast.im.NotifyMessage.Background.verify(e.background))) return "background." + t; + if (null != e.contentList && e.hasOwnProperty("contentList") && (t = l.webcast.im.NotifyMessage.ContentList.verify(e.contentList))) return "contentList." + t; + if (null != e.params && e.hasOwnProperty("params")) + { + if (!a.isObject(e.params)) return "params: object expected"; + for (var n = Object.keys(e.params), r = 0; r < n.length; ++r) + if (!a.isString(e.params[n[r]])) return "params: string{k:string} expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.NotifyMessage.Extra) return e; + var t = new l.webcast.im.NotifyMessage.Extra; + if (null != e.duration && (a.Long ? (t.duration = a.Long.fromValue(e.duration)).unsigned = !1 : "string" == typeof e.duration ? t.duration = parseInt(e.duration, 10) : "number" == typeof e.duration ? t.duration = e.duration : "object" == typeof e.duration && (t.duration = new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber())), null != e.background) + { + if ("object" != typeof e.background) throw TypeError(".webcast.im.NotifyMessage.Extra.background: object expected"); + t.background = l.webcast.im.NotifyMessage.Background.fromObject(e.background) + } + if (null != e.contentList) + { + if ("object" != typeof e.contentList) throw TypeError(".webcast.im.NotifyMessage.Extra.contentList: object expected"); + t.contentList = l.webcast.im.NotifyMessage.ContentList.fromObject(e.contentList) + } + if (e.params) + { + if ("object" != typeof e.params) throw TypeError(".webcast.im.NotifyMessage.Extra.params: object expected"); + t.params = {}; + for (var n = Object.keys(e.params), r = 0; r < n.length; ++r) t.params[n[r]] = String(e.params[n[r]]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n, r = {}; + if ((t.objects || t.defaults) && (r.params = {}), t.defaults) + { + if (a.Long) + { + var o = new a.Long(0, 0, !1); + r.duration = t.longs === String ? o.toString() : t.longs === Number ? o.toNumber() : o + } + else r.duration = t.longs === String ? "0" : 0; + r.background = null, r.contentList = null + } + if (null != e.duration && e.hasOwnProperty("duration") && ("number" == typeof e.duration ? r.duration = t.longs === String ? String(e.duration) : e.duration : r.duration = t.longs === String ? a.Long.prototype.toString.call(e.duration) : t.longs === Number ? new a.LongBits(e.duration.low >>> 0, e.duration.high >>> 0).toNumber() : e.duration), null != e.background && e.hasOwnProperty("background") && (r.background = l.webcast.im.NotifyMessage.Background.toObject(e.background, t)), null != e.contentList && e.hasOwnProperty("contentList") && (r.contentList = l.webcast.im.NotifyMessage.ContentList.toObject(e.contentList, t)), e.params && (n = Object.keys(e.params)).length) + { + r.params = {}; + for (var i = 0; i < n.length; ++i) r.params[n[i]] = e.params[n[i]] + } + return r + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.RoomMessage = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.common = null, e.prototype.content = "", e.prototype.supprotLandscape = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.common && Object.hasOwnProperty.call(e, "common") && l.webcast.im.Common.encode(e.common, t.uint32(10).fork()).ldelim(), null != e.content && Object.hasOwnProperty.call(e, "content") && t.uint32(18).string(e.content), null != e.supprotLandscape && Object.hasOwnProperty.call(e, "supprotLandscape") && t.uint32(24).bool(e.supprotLandscape), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.RoomMessage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.common = l.webcast.im.Common.decode(e, e.uint32()); + break; + case 2: + r.content = e.string(); + break; + case 3: + r.supprotLandscape = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.common && e.hasOwnProperty("common")) + { + var t = l.webcast.im.Common.verify(e.common); + if (t) return "common." + t + } + return null != e.content && e.hasOwnProperty("content") && !a.isString(e.content) ? "content: string expected" : null != e.supprotLandscape && e.hasOwnProperty("supprotLandscape") && "boolean" != typeof e.supprotLandscape ? "supprotLandscape: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.RoomMessage) return e; + var t = new l.webcast.im.RoomMessage; + if (null != e.common) + { + if ("object" != typeof e.common) throw TypeError(".webcast.im.RoomMessage.common: object expected"); + t.common = l.webcast.im.Common.fromObject(e.common) + } + return null != e.content && (t.content = String(e.content)), null != e.supprotLandscape && (t.supprotLandscape = Boolean(e.supprotLandscape)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.common = null, n.content = "", n.supprotLandscape = !1), null != e.common && e.hasOwnProperty("common") && (n.common = l.webcast.im.Common.toObject(e.common, t)), null != e.content && e.hasOwnProperty("content") && (n.content = e.content), null != e.supprotLandscape && e.hasOwnProperty("supprotLandscape") && (n.supprotLandscape = e.supprotLandscape), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.RoomIntroMessage = function () + { + function e(e) + { + if (this.label = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.common = null, e.prototype.user = null, e.prototype.style = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.intro = "", e.prototype.label = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.common && Object.hasOwnProperty.call(e, "common") && l.webcast.im.Common.encode(e.common, t.uint32(10).fork()).ldelim(), null != e.user && Object.hasOwnProperty.call(e, "user") && l.webcast.data.User.encode(e.user, t.uint32(18).fork()).ldelim(), null != e.style && Object.hasOwnProperty.call(e, "style") && t.uint32(24).int64(e.style), null != e.intro && Object.hasOwnProperty.call(e, "intro") && t.uint32(34).string(e.intro), null != e.label && e.label.length) + for (var n = 0; n < e.label.length; ++n) t.uint32(42).string(e.label[n]); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.RoomIntroMessage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.common = l.webcast.im.Common.decode(e, e.uint32()); + break; + case 2: + r.user = l.webcast.data.User.decode(e, e.uint32()); + break; + case 3: + r.style = e.int64(); + break; + case 4: + r.intro = e.string(); + break; + case 5: + r.label && r.label.length || (r.label = []), r.label.push(e.string()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.common && e.hasOwnProperty("common") && (t = l.webcast.im.Common.verify(e.common))) return "common." + t; + if (null != e.user && e.hasOwnProperty("user") && (t = l.webcast.data.User.verify(e.user))) return "user." + t; + if (null != e.style && e.hasOwnProperty("style") && !(a.isInteger(e.style) || e.style && a.isInteger(e.style.low) && a.isInteger(e.style.high))) return "style: integer|Long expected"; + if (null != e.intro && e.hasOwnProperty("intro") && !a.isString(e.intro)) return "intro: string expected"; + if (null != e.label && e.hasOwnProperty("label")) + { + if (!Array.isArray(e.label)) return "label: array expected"; + for (var n = 0; n < e.label.length; ++n) + if (!a.isString(e.label[n])) return "label: string[] expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.RoomIntroMessage) return e; + var t = new l.webcast.im.RoomIntroMessage; + if (null != e.common) + { + if ("object" != typeof e.common) throw TypeError(".webcast.im.RoomIntroMessage.common: object expected"); + t.common = l.webcast.im.Common.fromObject(e.common) + } + if (null != e.user) + { + if ("object" != typeof e.user) throw TypeError(".webcast.im.RoomIntroMessage.user: object expected"); + t.user = l.webcast.data.User.fromObject(e.user) + } + if (null != e.style && (a.Long ? (t.style = a.Long.fromValue(e.style)).unsigned = !1 : "string" == typeof e.style ? t.style = parseInt(e.style, 10) : "number" == typeof e.style ? t.style = e.style : "object" == typeof e.style && (t.style = new a.LongBits(e.style.low >>> 0, e.style.high >>> 0).toNumber())), null != e.intro && (t.intro = String(e.intro)), e.label) + { + if (!Array.isArray(e.label)) throw TypeError(".webcast.im.RoomIntroMessage.label: array expected"); + t.label = []; + for (var n = 0; n < e.label.length; ++n) t.label[n] = String(e.label[n]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.label = []), t.defaults) + { + if (n.common = null, n.user = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.style = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.style = t.longs === String ? "0" : 0; + n.intro = "" + } + if (null != e.common && e.hasOwnProperty("common") && (n.common = l.webcast.im.Common.toObject(e.common, t)), null != e.user && e.hasOwnProperty("user") && (n.user = l.webcast.data.User.toObject(e.user, t)), null != e.style && e.hasOwnProperty("style") && ("number" == typeof e.style ? n.style = t.longs === String ? String(e.style) : e.style : n.style = t.longs === String ? a.Long.prototype.toString.call(e.style) : t.longs === Number ? new a.LongBits(e.style.low >>> 0, e.style.high >>> 0).toNumber() : e.style), null != e.intro && e.hasOwnProperty("intro") && (n.intro = e.intro), e.label && e.label.length) + { + n.label = []; + for (var o = 0; o < e.label.length; ++o) n.label[o] = e.label[o] + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.RoomUserSeqMessage = function () + { + function e(e) + { + if (this.ranks = [], this.seats = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.common = null, e.prototype.ranks = a.emptyArray, e.prototype.total = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.popStr = "", e.prototype.seats = a.emptyArray, e.prototype.popularity = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.totalUser = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.totalUserStr = "", e.prototype.totalStr = "", e.prototype.onlineUserForAnchor = "", e.prototype.totalPvForAnchor = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.common && Object.hasOwnProperty.call(e, "common") && l.webcast.im.Common.encode(e.common, t.uint32(10).fork()).ldelim(), null != e.ranks && e.ranks.length) + for (var n = 0; n < e.ranks.length; ++n) l.webcast.im.RoomUserSeqMessage.Contributor.encode(e.ranks[n], t.uint32(18).fork()).ldelim(); + if (null != e.total && Object.hasOwnProperty.call(e, "total") && t.uint32(24).int64(e.total), null != e.popStr && Object.hasOwnProperty.call(e, "popStr") && t.uint32(34).string(e.popStr), null != e.seats && e.seats.length) + for (n = 0; n < e.seats.length; ++n) l.webcast.im.RoomUserSeqMessage.Contributor.encode(e.seats[n], t.uint32(42).fork()).ldelim(); + return null != e.popularity && Object.hasOwnProperty.call(e, "popularity") && t.uint32(48).int64(e.popularity), null != e.totalUser && Object.hasOwnProperty.call(e, "totalUser") && t.uint32(56).int64(e.totalUser), null != e.totalUserStr && Object.hasOwnProperty.call(e, "totalUserStr") && t.uint32(66).string(e.totalUserStr), null != e.totalStr && Object.hasOwnProperty.call(e, "totalStr") && t.uint32(74).string(e.totalStr), null != e.onlineUserForAnchor && Object.hasOwnProperty.call(e, "onlineUserForAnchor") && t.uint32(82).string(e.onlineUserForAnchor), null != e.totalPvForAnchor && Object.hasOwnProperty.call(e, "totalPvForAnchor") && t.uint32(90).string(e.totalPvForAnchor), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.RoomUserSeqMessage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.common = l.webcast.im.Common.decode(e, e.uint32()); + break; + case 2: + r.ranks && r.ranks.length || (r.ranks = []), r.ranks.push(l.webcast.im.RoomUserSeqMessage.Contributor.decode(e, e.uint32())); + break; + case 3: + r.total = e.int64(); + break; + case 4: + r.popStr = e.string(); + break; + case 5: + r.seats && r.seats.length || (r.seats = []), r.seats.push(l.webcast.im.RoomUserSeqMessage.Contributor.decode(e, e.uint32())); + break; + case 6: + r.popularity = e.int64(); + break; + case 7: + r.totalUser = e.int64(); + break; + case 8: + r.totalUserStr = e.string(); + break; + case 9: + r.totalStr = e.string(); + break; + case 10: + r.onlineUserForAnchor = e.string(); + break; + case 11: + r.totalPvForAnchor = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.common && e.hasOwnProperty("common") && (n = l.webcast.im.Common.verify(e.common))) return "common." + n; + if (null != e.ranks && e.hasOwnProperty("ranks")) + { + if (!Array.isArray(e.ranks)) return "ranks: array expected"; + for (var t = 0; t < e.ranks.length; ++t) + { + if (n = l.webcast.im.RoomUserSeqMessage.Contributor.verify(e.ranks[t])) return "ranks." + n + } + } + if (null != e.total && e.hasOwnProperty("total") && !(a.isInteger(e.total) || e.total && a.isInteger(e.total.low) && a.isInteger(e.total.high))) return "total: integer|Long expected"; + if (null != e.popStr && e.hasOwnProperty("popStr") && !a.isString(e.popStr)) return "popStr: string expected"; + if (null != e.seats && e.hasOwnProperty("seats")) + { + if (!Array.isArray(e.seats)) return "seats: array expected"; + for (t = 0; t < e.seats.length; ++t) + { + var n; + if (n = l.webcast.im.RoomUserSeqMessage.Contributor.verify(e.seats[t])) return "seats." + n + } + } + return null != e.popularity && e.hasOwnProperty("popularity") && !(a.isInteger(e.popularity) || e.popularity && a.isInteger(e.popularity.low) && a.isInteger(e.popularity.high)) ? "popularity: integer|Long expected" : null != e.totalUser && e.hasOwnProperty("totalUser") && !(a.isInteger(e.totalUser) || e.totalUser && a.isInteger(e.totalUser.low) && a.isInteger(e.totalUser.high)) ? "totalUser: integer|Long expected" : null != e.totalUserStr && e.hasOwnProperty("totalUserStr") && !a.isString(e.totalUserStr) ? "totalUserStr: string expected" : null != e.totalStr && e.hasOwnProperty("totalStr") && !a.isString(e.totalStr) ? "totalStr: string expected" : null != e.onlineUserForAnchor && e.hasOwnProperty("onlineUserForAnchor") && !a.isString(e.onlineUserForAnchor) ? "onlineUserForAnchor: string expected" : null != e.totalPvForAnchor && e.hasOwnProperty("totalPvForAnchor") && !a.isString(e.totalPvForAnchor) ? "totalPvForAnchor: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.RoomUserSeqMessage) return e; + var t = new l.webcast.im.RoomUserSeqMessage; + if (null != e.common) + { + if ("object" != typeof e.common) throw TypeError(".webcast.im.RoomUserSeqMessage.common: object expected"); + t.common = l.webcast.im.Common.fromObject(e.common) + } + if (e.ranks) + { + if (!Array.isArray(e.ranks)) throw TypeError(".webcast.im.RoomUserSeqMessage.ranks: array expected"); + t.ranks = []; + for (var n = 0; n < e.ranks.length; ++n) + { + if ("object" != typeof e.ranks[n]) throw TypeError(".webcast.im.RoomUserSeqMessage.ranks: object expected"); + t.ranks[n] = l.webcast.im.RoomUserSeqMessage.Contributor.fromObject(e.ranks[n]) + } + } + if (null != e.total && (a.Long ? (t.total = a.Long.fromValue(e.total)).unsigned = !1 : "string" == typeof e.total ? t.total = parseInt(e.total, 10) : "number" == typeof e.total ? t.total = e.total : "object" == typeof e.total && (t.total = new a.LongBits(e.total.low >>> 0, e.total.high >>> 0).toNumber())), null != e.popStr && (t.popStr = String(e.popStr)), e.seats) + { + if (!Array.isArray(e.seats)) throw TypeError(".webcast.im.RoomUserSeqMessage.seats: array expected"); + t.seats = []; + for (n = 0; n < e.seats.length; ++n) + { + if ("object" != typeof e.seats[n]) throw TypeError(".webcast.im.RoomUserSeqMessage.seats: object expected"); + t.seats[n] = l.webcast.im.RoomUserSeqMessage.Contributor.fromObject(e.seats[n]) + } + } + return null != e.popularity && (a.Long ? (t.popularity = a.Long.fromValue(e.popularity)).unsigned = !1 : "string" == typeof e.popularity ? t.popularity = parseInt(e.popularity, 10) : "number" == typeof e.popularity ? t.popularity = e.popularity : "object" == typeof e.popularity && (t.popularity = new a.LongBits(e.popularity.low >>> 0, e.popularity.high >>> 0).toNumber())), null != e.totalUser && (a.Long ? (t.totalUser = a.Long.fromValue(e.totalUser)).unsigned = !1 : "string" == typeof e.totalUser ? t.totalUser = parseInt(e.totalUser, 10) : "number" == typeof e.totalUser ? t.totalUser = e.totalUser : "object" == typeof e.totalUser && (t.totalUser = new a.LongBits(e.totalUser.low >>> 0, e.totalUser.high >>> 0).toNumber())), null != e.totalUserStr && (t.totalUserStr = String(e.totalUserStr)), null != e.totalStr && (t.totalStr = String(e.totalStr)), null != e.onlineUserForAnchor && (t.onlineUserForAnchor = String(e.onlineUserForAnchor)), null != e.totalPvForAnchor && (t.totalPvForAnchor = String(e.totalPvForAnchor)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.ranks = [], n.seats = []), t.defaults) + { + if (n.common = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.total = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.total = t.longs === String ? "0" : 0; + if (n.popStr = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.popularity = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.popularity = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.totalUser = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.totalUser = t.longs === String ? "0" : 0; + n.totalUserStr = "", n.totalStr = "", n.onlineUserForAnchor = "", n.totalPvForAnchor = "" + } + if (null != e.common && e.hasOwnProperty("common") && (n.common = l.webcast.im.Common.toObject(e.common, t)), e.ranks && e.ranks.length) + { + n.ranks = []; + for (var o = 0; o < e.ranks.length; ++o) n.ranks[o] = l.webcast.im.RoomUserSeqMessage.Contributor.toObject(e.ranks[o], t) + } + if (null != e.total && e.hasOwnProperty("total") && ("number" == typeof e.total ? n.total = t.longs === String ? String(e.total) : e.total : n.total = t.longs === String ? a.Long.prototype.toString.call(e.total) : t.longs === Number ? new a.LongBits(e.total.low >>> 0, e.total.high >>> 0).toNumber() : e.total), null != e.popStr && e.hasOwnProperty("popStr") && (n.popStr = e.popStr), e.seats && e.seats.length) + { + n.seats = []; + for (o = 0; o < e.seats.length; ++o) n.seats[o] = l.webcast.im.RoomUserSeqMessage.Contributor.toObject(e.seats[o], t) + } + return null != e.popularity && e.hasOwnProperty("popularity") && ("number" == typeof e.popularity ? n.popularity = t.longs === String ? String(e.popularity) : e.popularity : n.popularity = t.longs === String ? a.Long.prototype.toString.call(e.popularity) : t.longs === Number ? new a.LongBits(e.popularity.low >>> 0, e.popularity.high >>> 0).toNumber() : e.popularity), null != e.totalUser && e.hasOwnProperty("totalUser") && ("number" == typeof e.totalUser ? n.totalUser = t.longs === String ? String(e.totalUser) : e.totalUser : n.totalUser = t.longs === String ? a.Long.prototype.toString.call(e.totalUser) : t.longs === Number ? new a.LongBits(e.totalUser.low >>> 0, e.totalUser.high >>> 0).toNumber() : e.totalUser), null != e.totalUserStr && e.hasOwnProperty("totalUserStr") && (n.totalUserStr = e.totalUserStr), null != e.totalStr && e.hasOwnProperty("totalStr") && (n.totalStr = e.totalStr), null != e.onlineUserForAnchor && e.hasOwnProperty("onlineUserForAnchor") && (n.onlineUserForAnchor = e.onlineUserForAnchor), null != e.totalPvForAnchor && e.hasOwnProperty("totalPvForAnchor") && (n.totalPvForAnchor = e.totalPvForAnchor), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Contributor = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.score = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.user = null, e.prototype.rank = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.delta = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.isHidden = !1, e.prototype.scoreDescription = "", e.prototype.exactlyScore = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.score && Object.hasOwnProperty.call(e, "score") && t.uint32(8).int64(e.score), null != e.user && Object.hasOwnProperty.call(e, "user") && l.webcast.data.User.encode(e.user, t.uint32(18).fork()).ldelim(), null != e.rank && Object.hasOwnProperty.call(e, "rank") && t.uint32(24).int64(e.rank), null != e.delta && Object.hasOwnProperty.call(e, "delta") && t.uint32(32).int64(e.delta), null != e.isHidden && Object.hasOwnProperty.call(e, "isHidden") && t.uint32(40).bool(e.isHidden), null != e.scoreDescription && Object.hasOwnProperty.call(e, "scoreDescription") && t.uint32(50).string(e.scoreDescription), null != e.exactlyScore && Object.hasOwnProperty.call(e, "exactlyScore") && t.uint32(58).string(e.exactlyScore), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.RoomUserSeqMessage.Contributor; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.score = e.int64(); + break; + case 2: + r.user = l.webcast.data.User.decode(e, e.uint32()); + break; + case 3: + r.rank = e.int64(); + break; + case 4: + r.delta = e.int64(); + break; + case 5: + r.isHidden = e.bool(); + break; + case 6: + r.scoreDescription = e.string(); + break; + case 7: + r.exactlyScore = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.score && e.hasOwnProperty("score") && !(a.isInteger(e.score) || e.score && a.isInteger(e.score.low) && a.isInteger(e.score.high))) return "score: integer|Long expected"; + if (null != e.user && e.hasOwnProperty("user")) + { + var t = l.webcast.data.User.verify(e.user); + if (t) return "user." + t + } + return null != e.rank && e.hasOwnProperty("rank") && !(a.isInteger(e.rank) || e.rank && a.isInteger(e.rank.low) && a.isInteger(e.rank.high)) ? "rank: integer|Long expected" : null != e.delta && e.hasOwnProperty("delta") && !(a.isInteger(e.delta) || e.delta && a.isInteger(e.delta.low) && a.isInteger(e.delta.high)) ? "delta: integer|Long expected" : null != e.isHidden && e.hasOwnProperty("isHidden") && "boolean" != typeof e.isHidden ? "isHidden: boolean expected" : null != e.scoreDescription && e.hasOwnProperty("scoreDescription") && !a.isString(e.scoreDescription) ? "scoreDescription: string expected" : null != e.exactlyScore && e.hasOwnProperty("exactlyScore") && !a.isString(e.exactlyScore) ? "exactlyScore: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.RoomUserSeqMessage.Contributor) return e; + var t = new l.webcast.im.RoomUserSeqMessage.Contributor; + if (null != e.score && (a.Long ? (t.score = a.Long.fromValue(e.score)).unsigned = !1 : "string" == typeof e.score ? t.score = parseInt(e.score, 10) : "number" == typeof e.score ? t.score = e.score : "object" == typeof e.score && (t.score = new a.LongBits(e.score.low >>> 0, e.score.high >>> 0).toNumber())), null != e.user) + { + if ("object" != typeof e.user) throw TypeError(".webcast.im.RoomUserSeqMessage.Contributor.user: object expected"); + t.user = l.webcast.data.User.fromObject(e.user) + } + return null != e.rank && (a.Long ? (t.rank = a.Long.fromValue(e.rank)).unsigned = !1 : "string" == typeof e.rank ? t.rank = parseInt(e.rank, 10) : "number" == typeof e.rank ? t.rank = e.rank : "object" == typeof e.rank && (t.rank = new a.LongBits(e.rank.low >>> 0, e.rank.high >>> 0).toNumber())), null != e.delta && (a.Long ? (t.delta = a.Long.fromValue(e.delta)).unsigned = !1 : "string" == typeof e.delta ? t.delta = parseInt(e.delta, 10) : "number" == typeof e.delta ? t.delta = e.delta : "object" == typeof e.delta && (t.delta = new a.LongBits(e.delta.low >>> 0, e.delta.high >>> 0).toNumber())), null != e.isHidden && (t.isHidden = Boolean(e.isHidden)), null != e.scoreDescription && (t.scoreDescription = String(e.scoreDescription)), null != e.exactlyScore && (t.exactlyScore = String(e.exactlyScore)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (a.Long) + { + var r = new a.Long(0, 0, !1); + n.score = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.score = t.longs === String ? "0" : 0; + if (n.user = null, a.Long) + { + r = new a.Long(0, 0, !1); + n.rank = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.rank = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.delta = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.delta = t.longs === String ? "0" : 0; + n.isHidden = !1, n.scoreDescription = "", n.exactlyScore = "" + } + return null != e.score && e.hasOwnProperty("score") && ("number" == typeof e.score ? n.score = t.longs === String ? String(e.score) : e.score : n.score = t.longs === String ? a.Long.prototype.toString.call(e.score) : t.longs === Number ? new a.LongBits(e.score.low >>> 0, e.score.high >>> 0).toNumber() : e.score), null != e.user && e.hasOwnProperty("user") && (n.user = l.webcast.data.User.toObject(e.user, t)), null != e.rank && e.hasOwnProperty("rank") && ("number" == typeof e.rank ? n.rank = t.longs === String ? String(e.rank) : e.rank : n.rank = t.longs === String ? a.Long.prototype.toString.call(e.rank) : t.longs === Number ? new a.LongBits(e.rank.low >>> 0, e.rank.high >>> 0).toNumber() : e.rank), null != e.delta && e.hasOwnProperty("delta") && ("number" == typeof e.delta ? n.delta = t.longs === String ? String(e.delta) : e.delta : n.delta = t.longs === String ? a.Long.prototype.toString.call(e.delta) : t.longs === Number ? new a.LongBits(e.delta.low >>> 0, e.delta.high >>> 0).toNumber() : e.delta), null != e.isHidden && e.hasOwnProperty("isHidden") && (n.isHidden = e.isHidden), null != e.scoreDescription && e.hasOwnProperty("scoreDescription") && (n.scoreDescription = e.scoreDescription), null != e.exactlyScore && e.hasOwnProperty("exactlyScore") && (n.exactlyScore = e.exactlyScore), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.VerifyAction = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "UnknowAction"] = 0, t[e[3] = "CloseChat"] = 3, t[e[4] = "OpenChat"] = 4, t[e[5] = "CloseDanmaku"] = 5, t[e[6] = "OpenDanmaku"] = 6, t[e[7] = "CloseGift"] = 7, t[e[8] = "OpenGift"] = 8, t[e[12] = "CloseDigg"] = 12, t[e[13] = "OpenDigg"] = 13, t[e[21] = "ChangeTitle"] = 21, t[e[22] = "ChangeShortTitle"] = 22, t[e[23] = "ChangeIntroduction"] = 23, t[e[24] = "CloseBanner"] = 24, t[e[25] = "OpenBanner"] = 25, t[e[26] = "OpenAudioChat"] = 26, t[e[27] = "CloseAudioCHat"] = 27, t[e[28] = "OpenAudioChatAutoPlay"] = 28, t[e[29] = "CloseAudioChatAutoPly"] = 29, t + }(), e.RoomVerifyMessage = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.common = null, e.prototype.action = 0, e.prototype.content = "", e.prototype.noticeType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.closeRoom = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.common && Object.hasOwnProperty.call(e, "common") && l.webcast.im.Common.encode(e.common, t.uint32(10).fork()).ldelim(), null != e.action && Object.hasOwnProperty.call(e, "action") && t.uint32(16).int32(e.action), null != e.content && Object.hasOwnProperty.call(e, "content") && t.uint32(26).string(e.content), null != e.noticeType && Object.hasOwnProperty.call(e, "noticeType") && t.uint32(32).int64(e.noticeType), null != e.closeRoom && Object.hasOwnProperty.call(e, "closeRoom") && t.uint32(40).bool(e.closeRoom), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.RoomVerifyMessage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.common = l.webcast.im.Common.decode(e, e.uint32()); + break; + case 2: + r.action = e.int32(); + break; + case 3: + r.content = e.string(); + break; + case 4: + r.noticeType = e.int64(); + break; + case 5: + r.closeRoom = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.common && e.hasOwnProperty("common")) + { + var t = l.webcast.im.Common.verify(e.common); + if (t) return "common." + t + } + return null != e.action && e.hasOwnProperty("action") && !a.isInteger(e.action) ? "action: integer expected" : null != e.content && e.hasOwnProperty("content") && !a.isString(e.content) ? "content: string expected" : null != e.noticeType && e.hasOwnProperty("noticeType") && !(a.isInteger(e.noticeType) || e.noticeType && a.isInteger(e.noticeType.low) && a.isInteger(e.noticeType.high)) ? "noticeType: integer|Long expected" : null != e.closeRoom && e.hasOwnProperty("closeRoom") && "boolean" != typeof e.closeRoom ? "closeRoom: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.RoomVerifyMessage) return e; + var t = new l.webcast.im.RoomVerifyMessage; + if (null != e.common) + { + if ("object" != typeof e.common) throw TypeError(".webcast.im.RoomVerifyMessage.common: object expected"); + t.common = l.webcast.im.Common.fromObject(e.common) + } + return null != e.action && (t.action = 0 | e.action), null != e.content && (t.content = String(e.content)), null != e.noticeType && (a.Long ? (t.noticeType = a.Long.fromValue(e.noticeType)).unsigned = !1 : "string" == typeof e.noticeType ? t.noticeType = parseInt(e.noticeType, 10) : "number" == typeof e.noticeType ? t.noticeType = e.noticeType : "object" == typeof e.noticeType && (t.noticeType = new a.LongBits(e.noticeType.low >>> 0, e.noticeType.high >>> 0).toNumber())), null != e.closeRoom && (t.closeRoom = Boolean(e.closeRoom)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.common = null, n.action = 0, n.content = "", a.Long) + { + var r = new a.Long(0, 0, !1); + n.noticeType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.noticeType = t.longs === String ? "0" : 0; + n.closeRoom = !1 + } + return null != e.common && e.hasOwnProperty("common") && (n.common = l.webcast.im.Common.toObject(e.common, t)), null != e.action && e.hasOwnProperty("action") && (n.action = e.action), null != e.content && e.hasOwnProperty("content") && (n.content = e.content), null != e.noticeType && e.hasOwnProperty("noticeType") && ("number" == typeof e.noticeType ? n.noticeType = t.longs === String ? String(e.noticeType) : e.noticeType : n.noticeType = t.longs === String ? a.Long.prototype.toString.call(e.noticeType) : t.longs === Number ? new a.LongBits(e.noticeType.low >>> 0, e.noticeType.high >>> 0).toNumber() : e.noticeType), null != e.closeRoom && e.hasOwnProperty("closeRoom") && (n.closeRoom = e.closeRoom), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.SocialMessage = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.common = null, e.prototype.user = null, e.prototype.shareType = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.action = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.shareTarget = "", e.prototype.followCount = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.publicAreaCommon = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.common && Object.hasOwnProperty.call(e, "common") && l.webcast.im.Common.encode(e.common, t.uint32(10).fork()).ldelim(), null != e.user && Object.hasOwnProperty.call(e, "user") && l.webcast.data.User.encode(e.user, t.uint32(18).fork()).ldelim(), null != e.shareType && Object.hasOwnProperty.call(e, "shareType") && t.uint32(24).int64(e.shareType), null != e.action && Object.hasOwnProperty.call(e, "action") && t.uint32(32).int64(e.action), null != e.shareTarget && Object.hasOwnProperty.call(e, "shareTarget") && t.uint32(42).string(e.shareTarget), null != e.followCount && Object.hasOwnProperty.call(e, "followCount") && t.uint32(48).int64(e.followCount), null != e.publicAreaCommon && Object.hasOwnProperty.call(e, "publicAreaCommon") && l.webcast.im.PublicAreaCommon.encode(e.publicAreaCommon, t.uint32(58).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.webcast.im.SocialMessage; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.common = l.webcast.im.Common.decode(e, e.uint32()); + break; + case 2: + r.user = l.webcast.data.User.decode(e, e.uint32()); + break; + case 3: + r.shareType = e.int64(); + break; + case 4: + r.action = e.int64(); + break; + case 5: + r.shareTarget = e.string(); + break; + case 6: + r.followCount = e.int64(); + break; + case 7: + r.publicAreaCommon = l.webcast.im.PublicAreaCommon.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + var t; + if (null != e.common && e.hasOwnProperty("common") && (t = l.webcast.im.Common.verify(e.common))) return "common." + t; + if (null != e.user && e.hasOwnProperty("user") && (t = l.webcast.data.User.verify(e.user))) return "user." + t; + if (null != e.shareType && e.hasOwnProperty("shareType") && !(a.isInteger(e.shareType) || e.shareType && a.isInteger(e.shareType.low) && a.isInteger(e.shareType.high))) return "shareType: integer|Long expected"; + if (null != e.action && e.hasOwnProperty("action") && !(a.isInteger(e.action) || e.action && a.isInteger(e.action.low) && a.isInteger(e.action.high))) return "action: integer|Long expected"; + if (null != e.shareTarget && e.hasOwnProperty("shareTarget") && !a.isString(e.shareTarget)) return "shareTarget: string expected"; + if (null != e.followCount && e.hasOwnProperty("followCount") && !(a.isInteger(e.followCount) || e.followCount && a.isInteger(e.followCount.low) && a.isInteger(e.followCount.high))) return "followCount: integer|Long expected"; + if (null != e.publicAreaCommon && e.hasOwnProperty("publicAreaCommon") && (t = l.webcast.im.PublicAreaCommon.verify(e.publicAreaCommon))) return "publicAreaCommon." + t; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.webcast.im.SocialMessage) return e; + var t = new l.webcast.im.SocialMessage; + if (null != e.common) + { + if ("object" != typeof e.common) throw TypeError(".webcast.im.SocialMessage.common: object expected"); + t.common = l.webcast.im.Common.fromObject(e.common) + } + if (null != e.user) + { + if ("object" != typeof e.user) throw TypeError(".webcast.im.SocialMessage.user: object expected"); + t.user = l.webcast.data.User.fromObject(e.user) + } + if (null != e.shareType && (a.Long ? (t.shareType = a.Long.fromValue(e.shareType)).unsigned = !1 : "string" == typeof e.shareType ? t.shareType = parseInt(e.shareType, 10) : "number" == typeof e.shareType ? t.shareType = e.shareType : "object" == typeof e.shareType && (t.shareType = new a.LongBits(e.shareType.low >>> 0, e.shareType.high >>> 0).toNumber())), null != e.action && (a.Long ? (t.action = a.Long.fromValue(e.action)).unsigned = !1 : "string" == typeof e.action ? t.action = parseInt(e.action, 10) : "number" == typeof e.action ? t.action = e.action : "object" == typeof e.action && (t.action = new a.LongBits(e.action.low >>> 0, e.action.high >>> 0).toNumber())), null != e.shareTarget && (t.shareTarget = String(e.shareTarget)), null != e.followCount && (a.Long ? (t.followCount = a.Long.fromValue(e.followCount)).unsigned = !1 : "string" == typeof e.followCount ? t.followCount = parseInt(e.followCount, 10) : "number" == typeof e.followCount ? t.followCount = e.followCount : "object" == typeof e.followCount && (t.followCount = new a.LongBits(e.followCount.low >>> 0, e.followCount.high >>> 0).toNumber())), null != e.publicAreaCommon) + { + if ("object" != typeof e.publicAreaCommon) throw TypeError(".webcast.im.SocialMessage.publicAreaCommon: object expected"); + t.publicAreaCommon = l.webcast.im.PublicAreaCommon.fromObject(e.publicAreaCommon) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if (t.defaults) + { + if (n.common = null, n.user = null, a.Long) + { + var r = new a.Long(0, 0, !1); + n.shareType = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.shareType = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.action = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.action = t.longs === String ? "0" : 0; + if (n.shareTarget = "", a.Long) + { + r = new a.Long(0, 0, !1); + n.followCount = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.followCount = t.longs === String ? "0" : 0; + n.publicAreaCommon = null + } + return null != e.common && e.hasOwnProperty("common") && (n.common = l.webcast.im.Common.toObject(e.common, t)), null != e.user && e.hasOwnProperty("user") && (n.user = l.webcast.data.User.toObject(e.user, t)), null != e.shareType && e.hasOwnProperty("shareType") && ("number" == typeof e.shareType ? n.shareType = t.longs === String ? String(e.shareType) : e.shareType : n.shareType = t.longs === String ? a.Long.prototype.toString.call(e.shareType) : t.longs === Number ? new a.LongBits(e.shareType.low >>> 0, e.shareType.high >>> 0).toNumber() : e.shareType), null != e.action && e.hasOwnProperty("action") && ("number" == typeof e.action ? n.action = t.longs === String ? String(e.action) : e.action : n.action = t.longs === String ? a.Long.prototype.toString.call(e.action) : t.longs === Number ? new a.LongBits(e.action.low >>> 0, e.action.high >>> 0).toNumber() : e.action), null != e.shareTarget && e.hasOwnProperty("shareTarget") && (n.shareTarget = e.shareTarget), null != e.followCount && e.hasOwnProperty("followCount") && ("number" == typeof e.followCount ? n.followCount = t.longs === String ? String(e.followCount) : e.followCount : n.followCount = t.longs === String ? a.Long.prototype.toString.call(e.followCount) : t.longs === Number ? new a.LongBits(e.followCount.low >>> 0, e.followCount.high >>> 0).toNumber() : e.followCount), null != e.publicAreaCommon && e.hasOwnProperty("publicAreaCommon") && (n.publicAreaCommon = l.webcast.im.PublicAreaCommon.toObject(e.publicAreaCommon, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.packer = {}, e + })(); + l.google = (() => + { + const e = {}; + return e.protobuf = function () + { + const e = {}; + return e.FileDescriptorSet = function () + { + function e(e) + { + if (this.file = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.file = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.file && e.file.length) + for (var n = 0; n < e.file.length; ++n) l.google.protobuf.FileDescriptorProto.encode(e.file[n], t.uint32(10).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.FileDescriptorSet; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.file && r.file.length || (r.file = []), r.file.push(l.google.protobuf.FileDescriptorProto.decode(e, e.uint32())); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.file && e.hasOwnProperty("file")) + { + if (!Array.isArray(e.file)) return "file: array expected"; + for (var t = 0; t < e.file.length; ++t) + { + var n = l.google.protobuf.FileDescriptorProto.verify(e.file[t]); + if (n) return "file." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.FileDescriptorSet) return e; + var t = new l.google.protobuf.FileDescriptorSet; + if (e.file) + { + if (!Array.isArray(e.file)) throw TypeError(".google.protobuf.FileDescriptorSet.file: array expected"); + t.file = []; + for (var n = 0; n < e.file.length; ++n) + { + if ("object" != typeof e.file[n]) throw TypeError(".google.protobuf.FileDescriptorSet.file: object expected"); + t.file[n] = l.google.protobuf.FileDescriptorProto.fromObject(e.file[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.file = []), e.file && e.file.length) + { + n.file = []; + for (var r = 0; r < e.file.length; ++r) n.file[r] = l.google.protobuf.FileDescriptorProto.toObject(e.file[r], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.FileDescriptorProto = function () + { + function e(e) + { + if (this.dependency = [], this.publicDependency = [], this.weakDependency = [], this.messageType = [], this.enumType = [], this.service = [], this.extension = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.name = "", e.prototype.package = "", e.prototype.dependency = a.emptyArray, e.prototype.publicDependency = a.emptyArray, e.prototype.weakDependency = a.emptyArray, e.prototype.messageType = a.emptyArray, e.prototype.enumType = a.emptyArray, e.prototype.service = a.emptyArray, e.prototype.extension = a.emptyArray, e.prototype.options = null, e.prototype.sourceCodeInfo = null, e.prototype.syntax = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(10).string(e.name), null != e.package && Object.hasOwnProperty.call(e, "package") && t.uint32(18).string(e.package), null != e.dependency && e.dependency.length) + for (var n = 0; n < e.dependency.length; ++n) t.uint32(26).string(e.dependency[n]); + if (null != e.messageType && e.messageType.length) + for (n = 0; n < e.messageType.length; ++n) l.google.protobuf.DescriptorProto.encode(e.messageType[n], t.uint32(34).fork()).ldelim(); + if (null != e.enumType && e.enumType.length) + for (n = 0; n < e.enumType.length; ++n) l.google.protobuf.EnumDescriptorProto.encode(e.enumType[n], t.uint32(42).fork()).ldelim(); + if (null != e.service && e.service.length) + for (n = 0; n < e.service.length; ++n) l.google.protobuf.ServiceDescriptorProto.encode(e.service[n], t.uint32(50).fork()).ldelim(); + if (null != e.extension && e.extension.length) + for (n = 0; n < e.extension.length; ++n) l.google.protobuf.FieldDescriptorProto.encode(e.extension[n], t.uint32(58).fork()).ldelim(); + if (null != e.options && Object.hasOwnProperty.call(e, "options") && l.google.protobuf.FileOptions.encode(e.options, t.uint32(66).fork()).ldelim(), null != e.sourceCodeInfo && Object.hasOwnProperty.call(e, "sourceCodeInfo") && l.google.protobuf.SourceCodeInfo.encode(e.sourceCodeInfo, t.uint32(74).fork()).ldelim(), null != e.publicDependency && e.publicDependency.length) + for (n = 0; n < e.publicDependency.length; ++n) t.uint32(80).int32(e.publicDependency[n]); + if (null != e.weakDependency && e.weakDependency.length) + for (n = 0; n < e.weakDependency.length; ++n) t.uint32(88).int32(e.weakDependency[n]); + return null != e.syntax && Object.hasOwnProperty.call(e, "syntax") && t.uint32(98).string(e.syntax), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.FileDescriptorProto; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.name = e.string(); + break; + case 2: + r.package = e.string(); + break; + case 3: + r.dependency && r.dependency.length || (r.dependency = []), r.dependency.push(e.string()); + break; + case 10: + if (r.publicDependency && r.publicDependency.length || (r.publicDependency = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.publicDependency.push(e.int32()); + else r.publicDependency.push(e.int32()); + break; + case 11: + if (r.weakDependency && r.weakDependency.length || (r.weakDependency = []), 2 == (7 & i)) + for (a = e.uint32() + e.pos; e.pos < a;) r.weakDependency.push(e.int32()); + else r.weakDependency.push(e.int32()); + break; + case 4: + r.messageType && r.messageType.length || (r.messageType = []), r.messageType.push(l.google.protobuf.DescriptorProto.decode(e, e.uint32())); + break; + case 5: + r.enumType && r.enumType.length || (r.enumType = []), r.enumType.push(l.google.protobuf.EnumDescriptorProto.decode(e, e.uint32())); + break; + case 6: + r.service && r.service.length || (r.service = []), r.service.push(l.google.protobuf.ServiceDescriptorProto.decode(e, e.uint32())); + break; + case 7: + r.extension && r.extension.length || (r.extension = []), r.extension.push(l.google.protobuf.FieldDescriptorProto.decode(e, e.uint32())); + break; + case 8: + r.options = l.google.protobuf.FileOptions.decode(e, e.uint32()); + break; + case 9: + r.sourceCodeInfo = l.google.protobuf.SourceCodeInfo.decode(e, e.uint32()); + break; + case 12: + r.syntax = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.name && e.hasOwnProperty("name") && !a.isString(e.name)) return "name: string expected"; + if (null != e.package && e.hasOwnProperty("package") && !a.isString(e.package)) return "package: string expected"; + if (null != e.dependency && e.hasOwnProperty("dependency")) + { + if (!Array.isArray(e.dependency)) return "dependency: array expected"; + for (var t = 0; t < e.dependency.length; ++t) + if (!a.isString(e.dependency[t])) return "dependency: string[] expected" + } + if (null != e.publicDependency && e.hasOwnProperty("publicDependency")) + { + if (!Array.isArray(e.publicDependency)) return "publicDependency: array expected"; + for (t = 0; t < e.publicDependency.length; ++t) + if (!a.isInteger(e.publicDependency[t])) return "publicDependency: integer[] expected" + } + if (null != e.weakDependency && e.hasOwnProperty("weakDependency")) + { + if (!Array.isArray(e.weakDependency)) return "weakDependency: array expected"; + for (t = 0; t < e.weakDependency.length; ++t) + if (!a.isInteger(e.weakDependency[t])) return "weakDependency: integer[] expected" + } + if (null != e.messageType && e.hasOwnProperty("messageType")) + { + if (!Array.isArray(e.messageType)) return "messageType: array expected"; + for (t = 0; t < e.messageType.length; ++t) + { + if (n = l.google.protobuf.DescriptorProto.verify(e.messageType[t])) return "messageType." + n + } + } + if (null != e.enumType && e.hasOwnProperty("enumType")) + { + if (!Array.isArray(e.enumType)) return "enumType: array expected"; + for (t = 0; t < e.enumType.length; ++t) + { + if (n = l.google.protobuf.EnumDescriptorProto.verify(e.enumType[t])) return "enumType." + n + } + } + if (null != e.service && e.hasOwnProperty("service")) + { + if (!Array.isArray(e.service)) return "service: array expected"; + for (t = 0; t < e.service.length; ++t) + { + if (n = l.google.protobuf.ServiceDescriptorProto.verify(e.service[t])) return "service." + n + } + } + if (null != e.extension && e.hasOwnProperty("extension")) + { + if (!Array.isArray(e.extension)) return "extension: array expected"; + for (t = 0; t < e.extension.length; ++t) + { + if (n = l.google.protobuf.FieldDescriptorProto.verify(e.extension[t])) return "extension." + n + } + } + var n; + if (null != e.options && e.hasOwnProperty("options") && (n = l.google.protobuf.FileOptions.verify(e.options))) return "options." + n; + if (null != e.sourceCodeInfo && e.hasOwnProperty("sourceCodeInfo") && (n = l.google.protobuf.SourceCodeInfo.verify(e.sourceCodeInfo))) return "sourceCodeInfo." + n; + return null != e.syntax && e.hasOwnProperty("syntax") && !a.isString(e.syntax) ? "syntax: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.FileDescriptorProto) return e; + var t = new l.google.protobuf.FileDescriptorProto; + if (null != e.name && (t.name = String(e.name)), null != e.package && (t.package = String(e.package)), e.dependency) + { + if (!Array.isArray(e.dependency)) throw TypeError(".google.protobuf.FileDescriptorProto.dependency: array expected"); + t.dependency = []; + for (var n = 0; n < e.dependency.length; ++n) t.dependency[n] = String(e.dependency[n]) + } + if (e.publicDependency) + { + if (!Array.isArray(e.publicDependency)) throw TypeError(".google.protobuf.FileDescriptorProto.publicDependency: array expected"); + t.publicDependency = []; + for (n = 0; n < e.publicDependency.length; ++n) t.publicDependency[n] = 0 | e.publicDependency[n] + } + if (e.weakDependency) + { + if (!Array.isArray(e.weakDependency)) throw TypeError(".google.protobuf.FileDescriptorProto.weakDependency: array expected"); + t.weakDependency = []; + for (n = 0; n < e.weakDependency.length; ++n) t.weakDependency[n] = 0 | e.weakDependency[n] + } + if (e.messageType) + { + if (!Array.isArray(e.messageType)) throw TypeError(".google.protobuf.FileDescriptorProto.messageType: array expected"); + t.messageType = []; + for (n = 0; n < e.messageType.length; ++n) + { + if ("object" != typeof e.messageType[n]) throw TypeError(".google.protobuf.FileDescriptorProto.messageType: object expected"); + t.messageType[n] = l.google.protobuf.DescriptorProto.fromObject(e.messageType[n]) + } + } + if (e.enumType) + { + if (!Array.isArray(e.enumType)) throw TypeError(".google.protobuf.FileDescriptorProto.enumType: array expected"); + t.enumType = []; + for (n = 0; n < e.enumType.length; ++n) + { + if ("object" != typeof e.enumType[n]) throw TypeError(".google.protobuf.FileDescriptorProto.enumType: object expected"); + t.enumType[n] = l.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[n]) + } + } + if (e.service) + { + if (!Array.isArray(e.service)) throw TypeError(".google.protobuf.FileDescriptorProto.service: array expected"); + t.service = []; + for (n = 0; n < e.service.length; ++n) + { + if ("object" != typeof e.service[n]) throw TypeError(".google.protobuf.FileDescriptorProto.service: object expected"); + t.service[n] = l.google.protobuf.ServiceDescriptorProto.fromObject(e.service[n]) + } + } + if (e.extension) + { + if (!Array.isArray(e.extension)) throw TypeError(".google.protobuf.FileDescriptorProto.extension: array expected"); + t.extension = []; + for (n = 0; n < e.extension.length; ++n) + { + if ("object" != typeof e.extension[n]) throw TypeError(".google.protobuf.FileDescriptorProto.extension: object expected"); + t.extension[n] = l.google.protobuf.FieldDescriptorProto.fromObject(e.extension[n]) + } + } + if (null != e.options) + { + if ("object" != typeof e.options) throw TypeError(".google.protobuf.FileDescriptorProto.options: object expected"); + t.options = l.google.protobuf.FileOptions.fromObject(e.options) + } + if (null != e.sourceCodeInfo) + { + if ("object" != typeof e.sourceCodeInfo) throw TypeError(".google.protobuf.FileDescriptorProto.sourceCodeInfo: object expected"); + t.sourceCodeInfo = l.google.protobuf.SourceCodeInfo.fromObject(e.sourceCodeInfo) + } + return null != e.syntax && (t.syntax = String(e.syntax)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.dependency = [], n.messageType = [], n.enumType = [], n.service = [], n.extension = [], n.publicDependency = [], n.weakDependency = []), t.defaults && (n.name = "", n.package = "", n.options = null, n.sourceCodeInfo = null, n.syntax = ""), null != e.name && e.hasOwnProperty("name") && (n.name = e.name), null != e.package && e.hasOwnProperty("package") && (n.package = e.package), e.dependency && e.dependency.length) + { + n.dependency = []; + for (var r = 0; r < e.dependency.length; ++r) n.dependency[r] = e.dependency[r] + } + if (e.messageType && e.messageType.length) + { + n.messageType = []; + for (r = 0; r < e.messageType.length; ++r) n.messageType[r] = l.google.protobuf.DescriptorProto.toObject(e.messageType[r], t) + } + if (e.enumType && e.enumType.length) + { + n.enumType = []; + for (r = 0; r < e.enumType.length; ++r) n.enumType[r] = l.google.protobuf.EnumDescriptorProto.toObject(e.enumType[r], t) + } + if (e.service && e.service.length) + { + n.service = []; + for (r = 0; r < e.service.length; ++r) n.service[r] = l.google.protobuf.ServiceDescriptorProto.toObject(e.service[r], t) + } + if (e.extension && e.extension.length) + { + n.extension = []; + for (r = 0; r < e.extension.length; ++r) n.extension[r] = l.google.protobuf.FieldDescriptorProto.toObject(e.extension[r], t) + } + if (null != e.options && e.hasOwnProperty("options") && (n.options = l.google.protobuf.FileOptions.toObject(e.options, t)), null != e.sourceCodeInfo && e.hasOwnProperty("sourceCodeInfo") && (n.sourceCodeInfo = l.google.protobuf.SourceCodeInfo.toObject(e.sourceCodeInfo, t)), e.publicDependency && e.publicDependency.length) + { + n.publicDependency = []; + for (r = 0; r < e.publicDependency.length; ++r) n.publicDependency[r] = e.publicDependency[r] + } + if (e.weakDependency && e.weakDependency.length) + { + n.weakDependency = []; + for (r = 0; r < e.weakDependency.length; ++r) n.weakDependency[r] = e.weakDependency[r] + } + return null != e.syntax && e.hasOwnProperty("syntax") && (n.syntax = e.syntax), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.DescriptorProto = function () + { + function e(e) + { + if (this.field = [], this.extension = [], this.nestedType = [], this.enumType = [], this.extensionRange = [], this.oneofDecl = [], this.reservedRange = [], this.reservedName = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.name = "", e.prototype.field = a.emptyArray, e.prototype.extension = a.emptyArray, e.prototype.nestedType = a.emptyArray, e.prototype.enumType = a.emptyArray, e.prototype.extensionRange = a.emptyArray, e.prototype.oneofDecl = a.emptyArray, e.prototype.options = null, e.prototype.reservedRange = a.emptyArray, e.prototype.reservedName = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(10).string(e.name), null != e.field && e.field.length) + for (var n = 0; n < e.field.length; ++n) l.google.protobuf.FieldDescriptorProto.encode(e.field[n], t.uint32(18).fork()).ldelim(); + if (null != e.nestedType && e.nestedType.length) + for (n = 0; n < e.nestedType.length; ++n) l.google.protobuf.DescriptorProto.encode(e.nestedType[n], t.uint32(26).fork()).ldelim(); + if (null != e.enumType && e.enumType.length) + for (n = 0; n < e.enumType.length; ++n) l.google.protobuf.EnumDescriptorProto.encode(e.enumType[n], t.uint32(34).fork()).ldelim(); + if (null != e.extensionRange && e.extensionRange.length) + for (n = 0; n < e.extensionRange.length; ++n) l.google.protobuf.DescriptorProto.ExtensionRange.encode(e.extensionRange[n], t.uint32(42).fork()).ldelim(); + if (null != e.extension && e.extension.length) + for (n = 0; n < e.extension.length; ++n) l.google.protobuf.FieldDescriptorProto.encode(e.extension[n], t.uint32(50).fork()).ldelim(); + if (null != e.options && Object.hasOwnProperty.call(e, "options") && l.google.protobuf.MessageOptions.encode(e.options, t.uint32(58).fork()).ldelim(), null != e.oneofDecl && e.oneofDecl.length) + for (n = 0; n < e.oneofDecl.length; ++n) l.google.protobuf.OneofDescriptorProto.encode(e.oneofDecl[n], t.uint32(66).fork()).ldelim(); + if (null != e.reservedRange && e.reservedRange.length) + for (n = 0; n < e.reservedRange.length; ++n) l.google.protobuf.DescriptorProto.ReservedRange.encode(e.reservedRange[n], t.uint32(74).fork()).ldelim(); + if (null != e.reservedName && e.reservedName.length) + for (n = 0; n < e.reservedName.length; ++n) t.uint32(82).string(e.reservedName[n]); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.DescriptorProto; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.name = e.string(); + break; + case 2: + r.field && r.field.length || (r.field = []), r.field.push(l.google.protobuf.FieldDescriptorProto.decode(e, e.uint32())); + break; + case 6: + r.extension && r.extension.length || (r.extension = []), r.extension.push(l.google.protobuf.FieldDescriptorProto.decode(e, e.uint32())); + break; + case 3: + r.nestedType && r.nestedType.length || (r.nestedType = []), r.nestedType.push(l.google.protobuf.DescriptorProto.decode(e, e.uint32())); + break; + case 4: + r.enumType && r.enumType.length || (r.enumType = []), r.enumType.push(l.google.protobuf.EnumDescriptorProto.decode(e, e.uint32())); + break; + case 5: + r.extensionRange && r.extensionRange.length || (r.extensionRange = []), r.extensionRange.push(l.google.protobuf.DescriptorProto.ExtensionRange.decode(e, e.uint32())); + break; + case 8: + r.oneofDecl && r.oneofDecl.length || (r.oneofDecl = []), r.oneofDecl.push(l.google.protobuf.OneofDescriptorProto.decode(e, e.uint32())); + break; + case 7: + r.options = l.google.protobuf.MessageOptions.decode(e, e.uint32()); + break; + case 9: + r.reservedRange && r.reservedRange.length || (r.reservedRange = []), r.reservedRange.push(l.google.protobuf.DescriptorProto.ReservedRange.decode(e, e.uint32())); + break; + case 10: + r.reservedName && r.reservedName.length || (r.reservedName = []), r.reservedName.push(e.string()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.name && e.hasOwnProperty("name") && !a.isString(e.name)) return "name: string expected"; + if (null != e.field && e.hasOwnProperty("field")) + { + if (!Array.isArray(e.field)) return "field: array expected"; + for (var t = 0; t < e.field.length; ++t) + { + if (n = l.google.protobuf.FieldDescriptorProto.verify(e.field[t])) return "field." + n + } + } + if (null != e.extension && e.hasOwnProperty("extension")) + { + if (!Array.isArray(e.extension)) return "extension: array expected"; + for (t = 0; t < e.extension.length; ++t) + { + if (n = l.google.protobuf.FieldDescriptorProto.verify(e.extension[t])) return "extension." + n + } + } + if (null != e.nestedType && e.hasOwnProperty("nestedType")) + { + if (!Array.isArray(e.nestedType)) return "nestedType: array expected"; + for (t = 0; t < e.nestedType.length; ++t) + { + if (n = l.google.protobuf.DescriptorProto.verify(e.nestedType[t])) return "nestedType." + n + } + } + if (null != e.enumType && e.hasOwnProperty("enumType")) + { + if (!Array.isArray(e.enumType)) return "enumType: array expected"; + for (t = 0; t < e.enumType.length; ++t) + { + if (n = l.google.protobuf.EnumDescriptorProto.verify(e.enumType[t])) return "enumType." + n + } + } + if (null != e.extensionRange && e.hasOwnProperty("extensionRange")) + { + if (!Array.isArray(e.extensionRange)) return "extensionRange: array expected"; + for (t = 0; t < e.extensionRange.length; ++t) + { + if (n = l.google.protobuf.DescriptorProto.ExtensionRange.verify(e.extensionRange[t])) return "extensionRange." + n + } + } + if (null != e.oneofDecl && e.hasOwnProperty("oneofDecl")) + { + if (!Array.isArray(e.oneofDecl)) return "oneofDecl: array expected"; + for (t = 0; t < e.oneofDecl.length; ++t) + { + if (n = l.google.protobuf.OneofDescriptorProto.verify(e.oneofDecl[t])) return "oneofDecl." + n + } + } + if (null != e.options && e.hasOwnProperty("options") && (n = l.google.protobuf.MessageOptions.verify(e.options))) return "options." + n; + if (null != e.reservedRange && e.hasOwnProperty("reservedRange")) + { + if (!Array.isArray(e.reservedRange)) return "reservedRange: array expected"; + for (t = 0; t < e.reservedRange.length; ++t) + { + var n; + if (n = l.google.protobuf.DescriptorProto.ReservedRange.verify(e.reservedRange[t])) return "reservedRange." + n + } + } + if (null != e.reservedName && e.hasOwnProperty("reservedName")) + { + if (!Array.isArray(e.reservedName)) return "reservedName: array expected"; + for (t = 0; t < e.reservedName.length; ++t) + if (!a.isString(e.reservedName[t])) return "reservedName: string[] expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.DescriptorProto) return e; + var t = new l.google.protobuf.DescriptorProto; + if (null != e.name && (t.name = String(e.name)), e.field) + { + if (!Array.isArray(e.field)) throw TypeError(".google.protobuf.DescriptorProto.field: array expected"); + t.field = []; + for (var n = 0; n < e.field.length; ++n) + { + if ("object" != typeof e.field[n]) throw TypeError(".google.protobuf.DescriptorProto.field: object expected"); + t.field[n] = l.google.protobuf.FieldDescriptorProto.fromObject(e.field[n]) + } + } + if (e.extension) + { + if (!Array.isArray(e.extension)) throw TypeError(".google.protobuf.DescriptorProto.extension: array expected"); + t.extension = []; + for (n = 0; n < e.extension.length; ++n) + { + if ("object" != typeof e.extension[n]) throw TypeError(".google.protobuf.DescriptorProto.extension: object expected"); + t.extension[n] = l.google.protobuf.FieldDescriptorProto.fromObject(e.extension[n]) + } + } + if (e.nestedType) + { + if (!Array.isArray(e.nestedType)) throw TypeError(".google.protobuf.DescriptorProto.nestedType: array expected"); + t.nestedType = []; + for (n = 0; n < e.nestedType.length; ++n) + { + if ("object" != typeof e.nestedType[n]) throw TypeError(".google.protobuf.DescriptorProto.nestedType: object expected"); + t.nestedType[n] = l.google.protobuf.DescriptorProto.fromObject(e.nestedType[n]) + } + } + if (e.enumType) + { + if (!Array.isArray(e.enumType)) throw TypeError(".google.protobuf.DescriptorProto.enumType: array expected"); + t.enumType = []; + for (n = 0; n < e.enumType.length; ++n) + { + if ("object" != typeof e.enumType[n]) throw TypeError(".google.protobuf.DescriptorProto.enumType: object expected"); + t.enumType[n] = l.google.protobuf.EnumDescriptorProto.fromObject(e.enumType[n]) + } + } + if (e.extensionRange) + { + if (!Array.isArray(e.extensionRange)) throw TypeError(".google.protobuf.DescriptorProto.extensionRange: array expected"); + t.extensionRange = []; + for (n = 0; n < e.extensionRange.length; ++n) + { + if ("object" != typeof e.extensionRange[n]) throw TypeError(".google.protobuf.DescriptorProto.extensionRange: object expected"); + t.extensionRange[n] = l.google.protobuf.DescriptorProto.ExtensionRange.fromObject(e.extensionRange[n]) + } + } + if (e.oneofDecl) + { + if (!Array.isArray(e.oneofDecl)) throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: array expected"); + t.oneofDecl = []; + for (n = 0; n < e.oneofDecl.length; ++n) + { + if ("object" != typeof e.oneofDecl[n]) throw TypeError(".google.protobuf.DescriptorProto.oneofDecl: object expected"); + t.oneofDecl[n] = l.google.protobuf.OneofDescriptorProto.fromObject(e.oneofDecl[n]) + } + } + if (null != e.options) + { + if ("object" != typeof e.options) throw TypeError(".google.protobuf.DescriptorProto.options: object expected"); + t.options = l.google.protobuf.MessageOptions.fromObject(e.options) + } + if (e.reservedRange) + { + if (!Array.isArray(e.reservedRange)) throw TypeError(".google.protobuf.DescriptorProto.reservedRange: array expected"); + t.reservedRange = []; + for (n = 0; n < e.reservedRange.length; ++n) + { + if ("object" != typeof e.reservedRange[n]) throw TypeError(".google.protobuf.DescriptorProto.reservedRange: object expected"); + t.reservedRange[n] = l.google.protobuf.DescriptorProto.ReservedRange.fromObject(e.reservedRange[n]) + } + } + if (e.reservedName) + { + if (!Array.isArray(e.reservedName)) throw TypeError(".google.protobuf.DescriptorProto.reservedName: array expected"); + t.reservedName = []; + for (n = 0; n < e.reservedName.length; ++n) t.reservedName[n] = String(e.reservedName[n]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.field = [], n.nestedType = [], n.enumType = [], n.extensionRange = [], n.extension = [], n.oneofDecl = [], n.reservedRange = [], n.reservedName = []), t.defaults && (n.name = "", n.options = null), null != e.name && e.hasOwnProperty("name") && (n.name = e.name), e.field && e.field.length) + { + n.field = []; + for (var r = 0; r < e.field.length; ++r) n.field[r] = l.google.protobuf.FieldDescriptorProto.toObject(e.field[r], t) + } + if (e.nestedType && e.nestedType.length) + { + n.nestedType = []; + for (r = 0; r < e.nestedType.length; ++r) n.nestedType[r] = l.google.protobuf.DescriptorProto.toObject(e.nestedType[r], t) + } + if (e.enumType && e.enumType.length) + { + n.enumType = []; + for (r = 0; r < e.enumType.length; ++r) n.enumType[r] = l.google.protobuf.EnumDescriptorProto.toObject(e.enumType[r], t) + } + if (e.extensionRange && e.extensionRange.length) + { + n.extensionRange = []; + for (r = 0; r < e.extensionRange.length; ++r) n.extensionRange[r] = l.google.protobuf.DescriptorProto.ExtensionRange.toObject(e.extensionRange[r], t) + } + if (e.extension && e.extension.length) + { + n.extension = []; + for (r = 0; r < e.extension.length; ++r) n.extension[r] = l.google.protobuf.FieldDescriptorProto.toObject(e.extension[r], t) + } + if (null != e.options && e.hasOwnProperty("options") && (n.options = l.google.protobuf.MessageOptions.toObject(e.options, t)), e.oneofDecl && e.oneofDecl.length) + { + n.oneofDecl = []; + for (r = 0; r < e.oneofDecl.length; ++r) n.oneofDecl[r] = l.google.protobuf.OneofDescriptorProto.toObject(e.oneofDecl[r], t) + } + if (e.reservedRange && e.reservedRange.length) + { + n.reservedRange = []; + for (r = 0; r < e.reservedRange.length; ++r) n.reservedRange[r] = l.google.protobuf.DescriptorProto.ReservedRange.toObject(e.reservedRange[r], t) + } + if (e.reservedName && e.reservedName.length) + { + n.reservedName = []; + for (r = 0; r < e.reservedName.length; ++r) n.reservedName[r] = e.reservedName[r] + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.ExtensionRange = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.start = 0, e.prototype.end = 0, e.prototype.options = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.start && Object.hasOwnProperty.call(e, "start") && t.uint32(8).int32(e.start), null != e.end && Object.hasOwnProperty.call(e, "end") && t.uint32(16).int32(e.end), null != e.options && Object.hasOwnProperty.call(e, "options") && l.google.protobuf.ExtensionRangeOptions.encode(e.options, t.uint32(26).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.DescriptorProto.ExtensionRange; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.start = e.int32(); + break; + case 2: + r.end = e.int32(); + break; + case 3: + r.options = l.google.protobuf.ExtensionRangeOptions.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.start && e.hasOwnProperty("start") && !a.isInteger(e.start)) return "start: integer expected"; + if (null != e.end && e.hasOwnProperty("end") && !a.isInteger(e.end)) return "end: integer expected"; + if (null != e.options && e.hasOwnProperty("options")) + { + var t = l.google.protobuf.ExtensionRangeOptions.verify(e.options); + if (t) return "options." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.DescriptorProto.ExtensionRange) return e; + var t = new l.google.protobuf.DescriptorProto.ExtensionRange; + if (null != e.start && (t.start = 0 | e.start), null != e.end && (t.end = 0 | e.end), null != e.options) + { + if ("object" != typeof e.options) throw TypeError(".google.protobuf.DescriptorProto.ExtensionRange.options: object expected"); + t.options = l.google.protobuf.ExtensionRangeOptions.fromObject(e.options) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.start = 0, n.end = 0, n.options = null), null != e.start && e.hasOwnProperty("start") && (n.start = e.start), null != e.end && e.hasOwnProperty("end") && (n.end = e.end), null != e.options && e.hasOwnProperty("options") && (n.options = l.google.protobuf.ExtensionRangeOptions.toObject(e.options, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ReservedRange = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.start = 0, e.prototype.end = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.start && Object.hasOwnProperty.call(e, "start") && t.uint32(8).int32(e.start), null != e.end && Object.hasOwnProperty.call(e, "end") && t.uint32(16).int32(e.end), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.DescriptorProto.ReservedRange; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.start = e.int32(); + break; + case 2: + r.end = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.start && e.hasOwnProperty("start") && !a.isInteger(e.start) ? "start: integer expected" : null != e.end && e.hasOwnProperty("end") && !a.isInteger(e.end) ? "end: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.DescriptorProto.ReservedRange) return e; + var t = new l.google.protobuf.DescriptorProto.ReservedRange; + return null != e.start && (t.start = 0 | e.start), null != e.end && (t.end = 0 | e.end), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.start = 0, n.end = 0), null != e.start && e.hasOwnProperty("start") && (n.start = e.start), null != e.end && e.hasOwnProperty("end") && (n.end = e.end), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.ExtensionRangeOptions = function () + { + function e(e) + { + if (this.uninterpretedOption = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.uninterpretedOption = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.uninterpretedOption && e.uninterpretedOption.length) + for (var n = 0; n < e.uninterpretedOption.length; ++n) l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n], t.uint32(7994).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.ExtensionRangeOptions; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 999) r.uninterpretedOption && r.uninterpretedOption.length || (r.uninterpretedOption = []), r.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e, e.uint32())); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.uninterpretedOption && e.hasOwnProperty("uninterpretedOption")) + { + if (!Array.isArray(e.uninterpretedOption)) return "uninterpretedOption: array expected"; + for (var t = 0; t < e.uninterpretedOption.length; ++t) + { + var n = l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]); + if (n) return "uninterpretedOption." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.ExtensionRangeOptions) return e; + var t = new l.google.protobuf.ExtensionRangeOptions; + if (e.uninterpretedOption) + { + if (!Array.isArray(e.uninterpretedOption)) throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: array expected"); + t.uninterpretedOption = []; + for (var n = 0; n < e.uninterpretedOption.length; ++n) + { + if ("object" != typeof e.uninterpretedOption[n]) throw TypeError(".google.protobuf.ExtensionRangeOptions.uninterpretedOption: object expected"); + t.uninterpretedOption[n] = l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.uninterpretedOption = []), e.uninterpretedOption && e.uninterpretedOption.length) + { + n.uninterpretedOption = []; + for (var r = 0; r < e.uninterpretedOption.length; ++r) n.uninterpretedOption[r] = l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.FieldDescriptorProto = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.name = "", e.prototype.number = 0, e.prototype.label = 1, e.prototype.type = 1, e.prototype.typeName = "", e.prototype.extendee = "", e.prototype.defaultValue = "", e.prototype.oneofIndex = 0, e.prototype.jsonName = "", e.prototype.options = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(10).string(e.name), null != e.extendee && Object.hasOwnProperty.call(e, "extendee") && t.uint32(18).string(e.extendee), null != e.number && Object.hasOwnProperty.call(e, "number") && t.uint32(24).int32(e.number), null != e.label && Object.hasOwnProperty.call(e, "label") && t.uint32(32).int32(e.label), null != e.type && Object.hasOwnProperty.call(e, "type") && t.uint32(40).int32(e.type), null != e.typeName && Object.hasOwnProperty.call(e, "typeName") && t.uint32(50).string(e.typeName), null != e.defaultValue && Object.hasOwnProperty.call(e, "defaultValue") && t.uint32(58).string(e.defaultValue), null != e.options && Object.hasOwnProperty.call(e, "options") && l.google.protobuf.FieldOptions.encode(e.options, t.uint32(66).fork()).ldelim(), null != e.oneofIndex && Object.hasOwnProperty.call(e, "oneofIndex") && t.uint32(72).int32(e.oneofIndex), null != e.jsonName && Object.hasOwnProperty.call(e, "jsonName") && t.uint32(82).string(e.jsonName), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.FieldDescriptorProto; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.name = e.string(); + break; + case 3: + r.number = e.int32(); + break; + case 4: + r.label = e.int32(); + break; + case 5: + r.type = e.int32(); + break; + case 6: + r.typeName = e.string(); + break; + case 2: + r.extendee = e.string(); + break; + case 7: + r.defaultValue = e.string(); + break; + case 9: + r.oneofIndex = e.int32(); + break; + case 10: + r.jsonName = e.string(); + break; + case 8: + r.options = l.google.protobuf.FieldOptions.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.name && e.hasOwnProperty("name") && !a.isString(e.name)) return "name: string expected"; + if (null != e.number && e.hasOwnProperty("number") && !a.isInteger(e.number)) return "number: integer expected"; + if (null != e.label && e.hasOwnProperty("label")) switch (e.label) + { + default: + return "label: enum value expected"; + case 1: + case 2: + case 3: + } + if (null != e.type && e.hasOwnProperty("type")) switch (e.type) + { + default: + return "type: enum value expected"; + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + case 11: + case 12: + case 13: + case 14: + case 15: + case 16: + case 17: + case 18: + } + if (null != e.typeName && e.hasOwnProperty("typeName") && !a.isString(e.typeName)) return "typeName: string expected"; + if (null != e.extendee && e.hasOwnProperty("extendee") && !a.isString(e.extendee)) return "extendee: string expected"; + if (null != e.defaultValue && e.hasOwnProperty("defaultValue") && !a.isString(e.defaultValue)) return "defaultValue: string expected"; + if (null != e.oneofIndex && e.hasOwnProperty("oneofIndex") && !a.isInteger(e.oneofIndex)) return "oneofIndex: integer expected"; + if (null != e.jsonName && e.hasOwnProperty("jsonName") && !a.isString(e.jsonName)) return "jsonName: string expected"; + if (null != e.options && e.hasOwnProperty("options")) + { + var t = l.google.protobuf.FieldOptions.verify(e.options); + if (t) return "options." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.FieldDescriptorProto) return e; + var t = new l.google.protobuf.FieldDescriptorProto; + switch (null != e.name && (t.name = String(e.name)), null != e.number && (t.number = 0 | e.number), e.label) + { + case "LABEL_OPTIONAL": + case 1: + t.label = 1; + break; + case "LABEL_REQUIRED": + case 2: + t.label = 2; + break; + case "LABEL_REPEATED": + case 3: + t.label = 3 + } + switch (e.type) + { + case "TYPE_DOUBLE": + case 1: + t.type = 1; + break; + case "TYPE_FLOAT": + case 2: + t.type = 2; + break; + case "TYPE_INT64": + case 3: + t.type = 3; + break; + case "TYPE_UINT64": + case 4: + t.type = 4; + break; + case "TYPE_INT32": + case 5: + t.type = 5; + break; + case "TYPE_FIXED64": + case 6: + t.type = 6; + break; + case "TYPE_FIXED32": + case 7: + t.type = 7; + break; + case "TYPE_BOOL": + case 8: + t.type = 8; + break; + case "TYPE_STRING": + case 9: + t.type = 9; + break; + case "TYPE_GROUP": + case 10: + t.type = 10; + break; + case "TYPE_MESSAGE": + case 11: + t.type = 11; + break; + case "TYPE_BYTES": + case 12: + t.type = 12; + break; + case "TYPE_UINT32": + case 13: + t.type = 13; + break; + case "TYPE_ENUM": + case 14: + t.type = 14; + break; + case "TYPE_SFIXED32": + case 15: + t.type = 15; + break; + case "TYPE_SFIXED64": + case 16: + t.type = 16; + break; + case "TYPE_SINT32": + case 17: + t.type = 17; + break; + case "TYPE_SINT64": + case 18: + t.type = 18 + } + if (null != e.typeName && (t.typeName = String(e.typeName)), null != e.extendee && (t.extendee = String(e.extendee)), null != e.defaultValue && (t.defaultValue = String(e.defaultValue)), null != e.oneofIndex && (t.oneofIndex = 0 | e.oneofIndex), null != e.jsonName && (t.jsonName = String(e.jsonName)), null != e.options) + { + if ("object" != typeof e.options) throw TypeError(".google.protobuf.FieldDescriptorProto.options: object expected"); + t.options = l.google.protobuf.FieldOptions.fromObject(e.options) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.name = "", n.extendee = "", n.number = 0, n.label = t.enums === String ? "LABEL_OPTIONAL" : 1, n.type = t.enums === String ? "TYPE_DOUBLE" : 1, n.typeName = "", n.defaultValue = "", n.options = null, n.oneofIndex = 0, n.jsonName = ""), null != e.name && e.hasOwnProperty("name") && (n.name = e.name), null != e.extendee && e.hasOwnProperty("extendee") && (n.extendee = e.extendee), null != e.number && e.hasOwnProperty("number") && (n.number = e.number), null != e.label && e.hasOwnProperty("label") && (n.label = t.enums === String ? l.google.protobuf.FieldDescriptorProto.Label[e.label] : e.label), null != e.type && e.hasOwnProperty("type") && (n.type = t.enums === String ? l.google.protobuf.FieldDescriptorProto.Type[e.type] : e.type), null != e.typeName && e.hasOwnProperty("typeName") && (n.typeName = e.typeName), null != e.defaultValue && e.hasOwnProperty("defaultValue") && (n.defaultValue = e.defaultValue), null != e.options && e.hasOwnProperty("options") && (n.options = l.google.protobuf.FieldOptions.toObject(e.options, t)), null != e.oneofIndex && e.hasOwnProperty("oneofIndex") && (n.oneofIndex = e.oneofIndex), null != e.jsonName && e.hasOwnProperty("jsonName") && (n.jsonName = e.jsonName), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Type = function () + { + const e = {}, + t = Object.create(e); + return t[e[1] = "TYPE_DOUBLE"] = 1, t[e[2] = "TYPE_FLOAT"] = 2, t[e[3] = "TYPE_INT64"] = 3, t[e[4] = "TYPE_UINT64"] = 4, t[e[5] = "TYPE_INT32"] = 5, t[e[6] = "TYPE_FIXED64"] = 6, t[e[7] = "TYPE_FIXED32"] = 7, t[e[8] = "TYPE_BOOL"] = 8, t[e[9] = "TYPE_STRING"] = 9, t[e[10] = "TYPE_GROUP"] = 10, t[e[11] = "TYPE_MESSAGE"] = 11, t[e[12] = "TYPE_BYTES"] = 12, t[e[13] = "TYPE_UINT32"] = 13, t[e[14] = "TYPE_ENUM"] = 14, t[e[15] = "TYPE_SFIXED32"] = 15, t[e[16] = "TYPE_SFIXED64"] = 16, t[e[17] = "TYPE_SINT32"] = 17, t[e[18] = "TYPE_SINT64"] = 18, t + }(), e.Label = function () + { + const e = {}, + t = Object.create(e); + return t[e[1] = "LABEL_OPTIONAL"] = 1, t[e[2] = "LABEL_REQUIRED"] = 2, t[e[3] = "LABEL_REPEATED"] = 3, t + }(), e + }(), e.OneofDescriptorProto = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.name = "", e.prototype.options = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(10).string(e.name), null != e.options && Object.hasOwnProperty.call(e, "options") && l.google.protobuf.OneofOptions.encode(e.options, t.uint32(18).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.OneofDescriptorProto; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.name = e.string(); + break; + case 2: + r.options = l.google.protobuf.OneofOptions.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.name && e.hasOwnProperty("name") && !a.isString(e.name)) return "name: string expected"; + if (null != e.options && e.hasOwnProperty("options")) + { + var t = l.google.protobuf.OneofOptions.verify(e.options); + if (t) return "options." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.OneofDescriptorProto) return e; + var t = new l.google.protobuf.OneofDescriptorProto; + if (null != e.name && (t.name = String(e.name)), null != e.options) + { + if ("object" != typeof e.options) throw TypeError(".google.protobuf.OneofDescriptorProto.options: object expected"); + t.options = l.google.protobuf.OneofOptions.fromObject(e.options) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.name = "", n.options = null), null != e.name && e.hasOwnProperty("name") && (n.name = e.name), null != e.options && e.hasOwnProperty("options") && (n.options = l.google.protobuf.OneofOptions.toObject(e.options, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EnumDescriptorProto = function () + { + function e(e) + { + if (this.value = [], this.reservedRange = [], this.reservedName = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.name = "", e.prototype.value = a.emptyArray, e.prototype.options = null, e.prototype.reservedRange = a.emptyArray, e.prototype.reservedName = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(10).string(e.name), null != e.value && e.value.length) + for (var n = 0; n < e.value.length; ++n) l.google.protobuf.EnumValueDescriptorProto.encode(e.value[n], t.uint32(18).fork()).ldelim(); + if (null != e.options && Object.hasOwnProperty.call(e, "options") && l.google.protobuf.EnumOptions.encode(e.options, t.uint32(26).fork()).ldelim(), null != e.reservedRange && e.reservedRange.length) + for (n = 0; n < e.reservedRange.length; ++n) l.google.protobuf.EnumDescriptorProto.EnumReservedRange.encode(e.reservedRange[n], t.uint32(34).fork()).ldelim(); + if (null != e.reservedName && e.reservedName.length) + for (n = 0; n < e.reservedName.length; ++n) t.uint32(42).string(e.reservedName[n]); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.EnumDescriptorProto; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.name = e.string(); + break; + case 2: + r.value && r.value.length || (r.value = []), r.value.push(l.google.protobuf.EnumValueDescriptorProto.decode(e, e.uint32())); + break; + case 3: + r.options = l.google.protobuf.EnumOptions.decode(e, e.uint32()); + break; + case 4: + r.reservedRange && r.reservedRange.length || (r.reservedRange = []), r.reservedRange.push(l.google.protobuf.EnumDescriptorProto.EnumReservedRange.decode(e, e.uint32())); + break; + case 5: + r.reservedName && r.reservedName.length || (r.reservedName = []), r.reservedName.push(e.string()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.name && e.hasOwnProperty("name") && !a.isString(e.name)) return "name: string expected"; + if (null != e.value && e.hasOwnProperty("value")) + { + if (!Array.isArray(e.value)) return "value: array expected"; + for (var t = 0; t < e.value.length; ++t) + { + if (n = l.google.protobuf.EnumValueDescriptorProto.verify(e.value[t])) return "value." + n + } + } + if (null != e.options && e.hasOwnProperty("options") && (n = l.google.protobuf.EnumOptions.verify(e.options))) return "options." + n; + if (null != e.reservedRange && e.hasOwnProperty("reservedRange")) + { + if (!Array.isArray(e.reservedRange)) return "reservedRange: array expected"; + for (t = 0; t < e.reservedRange.length; ++t) + { + var n; + if (n = l.google.protobuf.EnumDescriptorProto.EnumReservedRange.verify(e.reservedRange[t])) return "reservedRange." + n + } + } + if (null != e.reservedName && e.hasOwnProperty("reservedName")) + { + if (!Array.isArray(e.reservedName)) return "reservedName: array expected"; + for (t = 0; t < e.reservedName.length; ++t) + if (!a.isString(e.reservedName[t])) return "reservedName: string[] expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.EnumDescriptorProto) return e; + var t = new l.google.protobuf.EnumDescriptorProto; + if (null != e.name && (t.name = String(e.name)), e.value) + { + if (!Array.isArray(e.value)) throw TypeError(".google.protobuf.EnumDescriptorProto.value: array expected"); + t.value = []; + for (var n = 0; n < e.value.length; ++n) + { + if ("object" != typeof e.value[n]) throw TypeError(".google.protobuf.EnumDescriptorProto.value: object expected"); + t.value[n] = l.google.protobuf.EnumValueDescriptorProto.fromObject(e.value[n]) + } + } + if (null != e.options) + { + if ("object" != typeof e.options) throw TypeError(".google.protobuf.EnumDescriptorProto.options: object expected"); + t.options = l.google.protobuf.EnumOptions.fromObject(e.options) + } + if (e.reservedRange) + { + if (!Array.isArray(e.reservedRange)) throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: array expected"); + t.reservedRange = []; + for (n = 0; n < e.reservedRange.length; ++n) + { + if ("object" != typeof e.reservedRange[n]) throw TypeError(".google.protobuf.EnumDescriptorProto.reservedRange: object expected"); + t.reservedRange[n] = l.google.protobuf.EnumDescriptorProto.EnumReservedRange.fromObject(e.reservedRange[n]) + } + } + if (e.reservedName) + { + if (!Array.isArray(e.reservedName)) throw TypeError(".google.protobuf.EnumDescriptorProto.reservedName: array expected"); + t.reservedName = []; + for (n = 0; n < e.reservedName.length; ++n) t.reservedName[n] = String(e.reservedName[n]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.value = [], n.reservedRange = [], n.reservedName = []), t.defaults && (n.name = "", n.options = null), null != e.name && e.hasOwnProperty("name") && (n.name = e.name), e.value && e.value.length) + { + n.value = []; + for (var r = 0; r < e.value.length; ++r) n.value[r] = l.google.protobuf.EnumValueDescriptorProto.toObject(e.value[r], t) + } + if (null != e.options && e.hasOwnProperty("options") && (n.options = l.google.protobuf.EnumOptions.toObject(e.options, t)), e.reservedRange && e.reservedRange.length) + { + n.reservedRange = []; + for (r = 0; r < e.reservedRange.length; ++r) n.reservedRange[r] = l.google.protobuf.EnumDescriptorProto.EnumReservedRange.toObject(e.reservedRange[r], t) + } + if (e.reservedName && e.reservedName.length) + { + n.reservedName = []; + for (r = 0; r < e.reservedName.length; ++r) n.reservedName[r] = e.reservedName[r] + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.EnumReservedRange = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.start = 0, e.prototype.end = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.start && Object.hasOwnProperty.call(e, "start") && t.uint32(8).int32(e.start), null != e.end && Object.hasOwnProperty.call(e, "end") && t.uint32(16).int32(e.end), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.EnumDescriptorProto.EnumReservedRange; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.start = e.int32(); + break; + case 2: + r.end = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : null != e.start && e.hasOwnProperty("start") && !a.isInteger(e.start) ? "start: integer expected" : null != e.end && e.hasOwnProperty("end") && !a.isInteger(e.end) ? "end: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.EnumDescriptorProto.EnumReservedRange) return e; + var t = new l.google.protobuf.EnumDescriptorProto.EnumReservedRange; + return null != e.start && (t.start = 0 | e.start), null != e.end && (t.end = 0 | e.end), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.start = 0, n.end = 0), null != e.start && e.hasOwnProperty("start") && (n.start = e.start), null != e.end && e.hasOwnProperty("end") && (n.end = e.end), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.EnumValueDescriptorProto = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.name = "", e.prototype.number = 0, e.prototype.options = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(10).string(e.name), null != e.number && Object.hasOwnProperty.call(e, "number") && t.uint32(16).int32(e.number), null != e.options && Object.hasOwnProperty.call(e, "options") && l.google.protobuf.EnumValueOptions.encode(e.options, t.uint32(26).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.EnumValueDescriptorProto; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.name = e.string(); + break; + case 2: + r.number = e.int32(); + break; + case 3: + r.options = l.google.protobuf.EnumValueOptions.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.name && e.hasOwnProperty("name") && !a.isString(e.name)) return "name: string expected"; + if (null != e.number && e.hasOwnProperty("number") && !a.isInteger(e.number)) return "number: integer expected"; + if (null != e.options && e.hasOwnProperty("options")) + { + var t = l.google.protobuf.EnumValueOptions.verify(e.options); + if (t) return "options." + t + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.EnumValueDescriptorProto) return e; + var t = new l.google.protobuf.EnumValueDescriptorProto; + if (null != e.name && (t.name = String(e.name)), null != e.number && (t.number = 0 | e.number), null != e.options) + { + if ("object" != typeof e.options) throw TypeError(".google.protobuf.EnumValueDescriptorProto.options: object expected"); + t.options = l.google.protobuf.EnumValueOptions.fromObject(e.options) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.name = "", n.number = 0, n.options = null), null != e.name && e.hasOwnProperty("name") && (n.name = e.name), null != e.number && e.hasOwnProperty("number") && (n.number = e.number), null != e.options && e.hasOwnProperty("options") && (n.options = l.google.protobuf.EnumValueOptions.toObject(e.options, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ServiceDescriptorProto = function () + { + function e(e) + { + if (this.method = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.name = "", e.prototype.method = a.emptyArray, e.prototype.options = null, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(10).string(e.name), null != e.method && e.method.length) + for (var n = 0; n < e.method.length; ++n) l.google.protobuf.MethodDescriptorProto.encode(e.method[n], t.uint32(18).fork()).ldelim(); + return null != e.options && Object.hasOwnProperty.call(e, "options") && l.google.protobuf.ServiceOptions.encode(e.options, t.uint32(26).fork()).ldelim(), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.ServiceDescriptorProto; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.name = e.string(); + break; + case 2: + r.method && r.method.length || (r.method = []), r.method.push(l.google.protobuf.MethodDescriptorProto.decode(e, e.uint32())); + break; + case 3: + r.options = l.google.protobuf.ServiceOptions.decode(e, e.uint32()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.name && e.hasOwnProperty("name") && !a.isString(e.name)) return "name: string expected"; + if (null != e.method && e.hasOwnProperty("method")) + { + if (!Array.isArray(e.method)) return "method: array expected"; + for (var t = 0; t < e.method.length; ++t) + { + if (n = l.google.protobuf.MethodDescriptorProto.verify(e.method[t])) return "method." + n + } + } + var n; + if (null != e.options && e.hasOwnProperty("options") && (n = l.google.protobuf.ServiceOptions.verify(e.options))) return "options." + n; + return null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.ServiceDescriptorProto) return e; + var t = new l.google.protobuf.ServiceDescriptorProto; + if (null != e.name && (t.name = String(e.name)), e.method) + { + if (!Array.isArray(e.method)) throw TypeError(".google.protobuf.ServiceDescriptorProto.method: array expected"); + t.method = []; + for (var n = 0; n < e.method.length; ++n) + { + if ("object" != typeof e.method[n]) throw TypeError(".google.protobuf.ServiceDescriptorProto.method: object expected"); + t.method[n] = l.google.protobuf.MethodDescriptorProto.fromObject(e.method[n]) + } + } + if (null != e.options) + { + if ("object" != typeof e.options) throw TypeError(".google.protobuf.ServiceDescriptorProto.options: object expected"); + t.options = l.google.protobuf.ServiceOptions.fromObject(e.options) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.method = []), t.defaults && (n.name = "", n.options = null), null != e.name && e.hasOwnProperty("name") && (n.name = e.name), e.method && e.method.length) + { + n.method = []; + for (var r = 0; r < e.method.length; ++r) n.method[r] = l.google.protobuf.MethodDescriptorProto.toObject(e.method[r], t) + } + return null != e.options && e.hasOwnProperty("options") && (n.options = l.google.protobuf.ServiceOptions.toObject(e.options, t)), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.MethodDescriptorProto = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.name = "", e.prototype.inputType = "", e.prototype.outputType = "", e.prototype.options = null, e.prototype.clientStreaming = !1, e.prototype.serverStreaming = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), null != e.name && Object.hasOwnProperty.call(e, "name") && t.uint32(10).string(e.name), null != e.inputType && Object.hasOwnProperty.call(e, "inputType") && t.uint32(18).string(e.inputType), null != e.outputType && Object.hasOwnProperty.call(e, "outputType") && t.uint32(26).string(e.outputType), null != e.options && Object.hasOwnProperty.call(e, "options") && l.google.protobuf.MethodOptions.encode(e.options, t.uint32(34).fork()).ldelim(), null != e.clientStreaming && Object.hasOwnProperty.call(e, "clientStreaming") && t.uint32(40).bool(e.clientStreaming), null != e.serverStreaming && Object.hasOwnProperty.call(e, "serverStreaming") && t.uint32(48).bool(e.serverStreaming), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.MethodDescriptorProto; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.name = e.string(); + break; + case 2: + r.inputType = e.string(); + break; + case 3: + r.outputType = e.string(); + break; + case 4: + r.options = l.google.protobuf.MethodOptions.decode(e, e.uint32()); + break; + case 5: + r.clientStreaming = e.bool(); + break; + case 6: + r.serverStreaming = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.name && e.hasOwnProperty("name") && !a.isString(e.name)) return "name: string expected"; + if (null != e.inputType && e.hasOwnProperty("inputType") && !a.isString(e.inputType)) return "inputType: string expected"; + if (null != e.outputType && e.hasOwnProperty("outputType") && !a.isString(e.outputType)) return "outputType: string expected"; + if (null != e.options && e.hasOwnProperty("options")) + { + var t = l.google.protobuf.MethodOptions.verify(e.options); + if (t) return "options." + t + } + return null != e.clientStreaming && e.hasOwnProperty("clientStreaming") && "boolean" != typeof e.clientStreaming ? "clientStreaming: boolean expected" : null != e.serverStreaming && e.hasOwnProperty("serverStreaming") && "boolean" != typeof e.serverStreaming ? "serverStreaming: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.MethodDescriptorProto) return e; + var t = new l.google.protobuf.MethodDescriptorProto; + if (null != e.name && (t.name = String(e.name)), null != e.inputType && (t.inputType = String(e.inputType)), null != e.outputType && (t.outputType = String(e.outputType)), null != e.options) + { + if ("object" != typeof e.options) throw TypeError(".google.protobuf.MethodDescriptorProto.options: object expected"); + t.options = l.google.protobuf.MethodOptions.fromObject(e.options) + } + return null != e.clientStreaming && (t.clientStreaming = Boolean(e.clientStreaming)), null != e.serverStreaming && (t.serverStreaming = Boolean(e.serverStreaming)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.name = "", n.inputType = "", n.outputType = "", n.options = null, n.clientStreaming = !1, n.serverStreaming = !1), null != e.name && e.hasOwnProperty("name") && (n.name = e.name), null != e.inputType && e.hasOwnProperty("inputType") && (n.inputType = e.inputType), null != e.outputType && e.hasOwnProperty("outputType") && (n.outputType = e.outputType), null != e.options && e.hasOwnProperty("options") && (n.options = l.google.protobuf.MethodOptions.toObject(e.options, t)), null != e.clientStreaming && e.hasOwnProperty("clientStreaming") && (n.clientStreaming = e.clientStreaming), null != e.serverStreaming && e.hasOwnProperty("serverStreaming") && (n.serverStreaming = e.serverStreaming), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.FileOptions = function () + { + function e(e) + { + if (this.uninterpretedOption = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.javaPackage = "", e.prototype.javaOuterClassname = "", e.prototype.javaMultipleFiles = !1, e.prototype.javaGenerateEqualsAndHash = !1, e.prototype.javaStringCheckUtf8 = !1, e.prototype.optimizeFor = 1, e.prototype.goPackage = "", e.prototype.ccGenericServices = !1, e.prototype.javaGenericServices = !1, e.prototype.pyGenericServices = !1, e.prototype.phpGenericServices = !1, e.prototype.deprecated = !1, e.prototype.ccEnableArenas = !1, e.prototype.objcClassPrefix = "", e.prototype.csharpNamespace = "", e.prototype.swiftPrefix = "", e.prototype.phpClassPrefix = "", e.prototype.phpNamespace = "", e.prototype.phpMetadataNamespace = "", e.prototype.rubyPackage = "", e.prototype.uninterpretedOption = a.emptyArray, e.prototype[".webcast.packer.webcastPackerPackage"] = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.javaPackage && Object.hasOwnProperty.call(e, "javaPackage") && t.uint32(10).string(e.javaPackage), null != e.javaOuterClassname && Object.hasOwnProperty.call(e, "javaOuterClassname") && t.uint32(66).string(e.javaOuterClassname), null != e.optimizeFor && Object.hasOwnProperty.call(e, "optimizeFor") && t.uint32(72).int32(e.optimizeFor), null != e.javaMultipleFiles && Object.hasOwnProperty.call(e, "javaMultipleFiles") && t.uint32(80).bool(e.javaMultipleFiles), null != e.goPackage && Object.hasOwnProperty.call(e, "goPackage") && t.uint32(90).string(e.goPackage), null != e.ccGenericServices && Object.hasOwnProperty.call(e, "ccGenericServices") && t.uint32(128).bool(e.ccGenericServices), null != e.javaGenericServices && Object.hasOwnProperty.call(e, "javaGenericServices") && t.uint32(136).bool(e.javaGenericServices), null != e.pyGenericServices && Object.hasOwnProperty.call(e, "pyGenericServices") && t.uint32(144).bool(e.pyGenericServices), null != e.javaGenerateEqualsAndHash && Object.hasOwnProperty.call(e, "javaGenerateEqualsAndHash") && t.uint32(160).bool(e.javaGenerateEqualsAndHash), null != e.deprecated && Object.hasOwnProperty.call(e, "deprecated") && t.uint32(184).bool(e.deprecated), null != e.javaStringCheckUtf8 && Object.hasOwnProperty.call(e, "javaStringCheckUtf8") && t.uint32(216).bool(e.javaStringCheckUtf8), null != e.ccEnableArenas && Object.hasOwnProperty.call(e, "ccEnableArenas") && t.uint32(248).bool(e.ccEnableArenas), null != e.objcClassPrefix && Object.hasOwnProperty.call(e, "objcClassPrefix") && t.uint32(290).string(e.objcClassPrefix), null != e.csharpNamespace && Object.hasOwnProperty.call(e, "csharpNamespace") && t.uint32(298).string(e.csharpNamespace), null != e.swiftPrefix && Object.hasOwnProperty.call(e, "swiftPrefix") && t.uint32(314).string(e.swiftPrefix), null != e.phpClassPrefix && Object.hasOwnProperty.call(e, "phpClassPrefix") && t.uint32(322).string(e.phpClassPrefix), null != e.phpNamespace && Object.hasOwnProperty.call(e, "phpNamespace") && t.uint32(330).string(e.phpNamespace), null != e.phpGenericServices && Object.hasOwnProperty.call(e, "phpGenericServices") && t.uint32(336).bool(e.phpGenericServices), null != e.phpMetadataNamespace && Object.hasOwnProperty.call(e, "phpMetadataNamespace") && t.uint32(354).string(e.phpMetadataNamespace), null != e.rubyPackage && Object.hasOwnProperty.call(e, "rubyPackage") && t.uint32(362).string(e.rubyPackage), null != e.uninterpretedOption && e.uninterpretedOption.length) + for (var n = 0; n < e.uninterpretedOption.length; ++n) l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n], t.uint32(7994).fork()).ldelim(); + return null != e[".webcast.packer.webcastPackerPackage"] && Object.hasOwnProperty.call(e, ".webcast.packer.webcastPackerPackage") && t.uint32(400002).string(e[".webcast.packer.webcastPackerPackage"]), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.FileOptions; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.javaPackage = e.string(); + break; + case 8: + r.javaOuterClassname = e.string(); + break; + case 10: + r.javaMultipleFiles = e.bool(); + break; + case 20: + r.javaGenerateEqualsAndHash = e.bool(); + break; + case 27: + r.javaStringCheckUtf8 = e.bool(); + break; + case 9: + r.optimizeFor = e.int32(); + break; + case 11: + r.goPackage = e.string(); + break; + case 16: + r.ccGenericServices = e.bool(); + break; + case 17: + r.javaGenericServices = e.bool(); + break; + case 18: + r.pyGenericServices = e.bool(); + break; + case 42: + r.phpGenericServices = e.bool(); + break; + case 23: + r.deprecated = e.bool(); + break; + case 31: + r.ccEnableArenas = e.bool(); + break; + case 36: + r.objcClassPrefix = e.string(); + break; + case 37: + r.csharpNamespace = e.string(); + break; + case 39: + r.swiftPrefix = e.string(); + break; + case 40: + r.phpClassPrefix = e.string(); + break; + case 41: + r.phpNamespace = e.string(); + break; + case 44: + r.phpMetadataNamespace = e.string(); + break; + case 45: + r.rubyPackage = e.string(); + break; + case 999: + r.uninterpretedOption && r.uninterpretedOption.length || (r.uninterpretedOption = []), r.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e, e.uint32())); + break; + case 5e4: + r[".webcast.packer.webcastPackerPackage"] = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.javaPackage && e.hasOwnProperty("javaPackage") && !a.isString(e.javaPackage)) return "javaPackage: string expected"; + if (null != e.javaOuterClassname && e.hasOwnProperty("javaOuterClassname") && !a.isString(e.javaOuterClassname)) return "javaOuterClassname: string expected"; + if (null != e.javaMultipleFiles && e.hasOwnProperty("javaMultipleFiles") && "boolean" != typeof e.javaMultipleFiles) return "javaMultipleFiles: boolean expected"; + if (null != e.javaGenerateEqualsAndHash && e.hasOwnProperty("javaGenerateEqualsAndHash") && "boolean" != typeof e.javaGenerateEqualsAndHash) return "javaGenerateEqualsAndHash: boolean expected"; + if (null != e.javaStringCheckUtf8 && e.hasOwnProperty("javaStringCheckUtf8") && "boolean" != typeof e.javaStringCheckUtf8) return "javaStringCheckUtf8: boolean expected"; + if (null != e.optimizeFor && e.hasOwnProperty("optimizeFor")) switch (e.optimizeFor) + { + default: + return "optimizeFor: enum value expected"; + case 1: + case 2: + case 3: + } + if (null != e.goPackage && e.hasOwnProperty("goPackage") && !a.isString(e.goPackage)) return "goPackage: string expected"; + if (null != e.ccGenericServices && e.hasOwnProperty("ccGenericServices") && "boolean" != typeof e.ccGenericServices) return "ccGenericServices: boolean expected"; + if (null != e.javaGenericServices && e.hasOwnProperty("javaGenericServices") && "boolean" != typeof e.javaGenericServices) return "javaGenericServices: boolean expected"; + if (null != e.pyGenericServices && e.hasOwnProperty("pyGenericServices") && "boolean" != typeof e.pyGenericServices) return "pyGenericServices: boolean expected"; + if (null != e.phpGenericServices && e.hasOwnProperty("phpGenericServices") && "boolean" != typeof e.phpGenericServices) return "phpGenericServices: boolean expected"; + if (null != e.deprecated && e.hasOwnProperty("deprecated") && "boolean" != typeof e.deprecated) return "deprecated: boolean expected"; + if (null != e.ccEnableArenas && e.hasOwnProperty("ccEnableArenas") && "boolean" != typeof e.ccEnableArenas) return "ccEnableArenas: boolean expected"; + if (null != e.objcClassPrefix && e.hasOwnProperty("objcClassPrefix") && !a.isString(e.objcClassPrefix)) return "objcClassPrefix: string expected"; + if (null != e.csharpNamespace && e.hasOwnProperty("csharpNamespace") && !a.isString(e.csharpNamespace)) return "csharpNamespace: string expected"; + if (null != e.swiftPrefix && e.hasOwnProperty("swiftPrefix") && !a.isString(e.swiftPrefix)) return "swiftPrefix: string expected"; + if (null != e.phpClassPrefix && e.hasOwnProperty("phpClassPrefix") && !a.isString(e.phpClassPrefix)) return "phpClassPrefix: string expected"; + if (null != e.phpNamespace && e.hasOwnProperty("phpNamespace") && !a.isString(e.phpNamespace)) return "phpNamespace: string expected"; + if (null != e.phpMetadataNamespace && e.hasOwnProperty("phpMetadataNamespace") && !a.isString(e.phpMetadataNamespace)) return "phpMetadataNamespace: string expected"; + if (null != e.rubyPackage && e.hasOwnProperty("rubyPackage") && !a.isString(e.rubyPackage)) return "rubyPackage: string expected"; + if (null != e.uninterpretedOption && e.hasOwnProperty("uninterpretedOption")) + { + if (!Array.isArray(e.uninterpretedOption)) return "uninterpretedOption: array expected"; + for (var t = 0; t < e.uninterpretedOption.length; ++t) + { + var n = l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]); + if (n) return "uninterpretedOption." + n + } + } + return null != e[".webcast.packer.webcastPackerPackage"] && e.hasOwnProperty(".webcast.packer.webcastPackerPackage") && !a.isString(e[".webcast.packer.webcastPackerPackage"]) ? ".webcast.packer.webcastPackerPackage: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.FileOptions) return e; + var t = new l.google.protobuf.FileOptions; + switch (null != e.javaPackage && (t.javaPackage = String(e.javaPackage)), null != e.javaOuterClassname && (t.javaOuterClassname = String(e.javaOuterClassname)), null != e.javaMultipleFiles && (t.javaMultipleFiles = Boolean(e.javaMultipleFiles)), null != e.javaGenerateEqualsAndHash && (t.javaGenerateEqualsAndHash = Boolean(e.javaGenerateEqualsAndHash)), null != e.javaStringCheckUtf8 && (t.javaStringCheckUtf8 = Boolean(e.javaStringCheckUtf8)), e.optimizeFor) + { + case "SPEED": + case 1: + t.optimizeFor = 1; + break; + case "CODE_SIZE": + case 2: + t.optimizeFor = 2; + break; + case "LITE_RUNTIME": + case 3: + t.optimizeFor = 3 + } + if (null != e.goPackage && (t.goPackage = String(e.goPackage)), null != e.ccGenericServices && (t.ccGenericServices = Boolean(e.ccGenericServices)), null != e.javaGenericServices && (t.javaGenericServices = Boolean(e.javaGenericServices)), null != e.pyGenericServices && (t.pyGenericServices = Boolean(e.pyGenericServices)), null != e.phpGenericServices && (t.phpGenericServices = Boolean(e.phpGenericServices)), null != e.deprecated && (t.deprecated = Boolean(e.deprecated)), null != e.ccEnableArenas && (t.ccEnableArenas = Boolean(e.ccEnableArenas)), null != e.objcClassPrefix && (t.objcClassPrefix = String(e.objcClassPrefix)), null != e.csharpNamespace && (t.csharpNamespace = String(e.csharpNamespace)), null != e.swiftPrefix && (t.swiftPrefix = String(e.swiftPrefix)), null != e.phpClassPrefix && (t.phpClassPrefix = String(e.phpClassPrefix)), null != e.phpNamespace && (t.phpNamespace = String(e.phpNamespace)), null != e.phpMetadataNamespace && (t.phpMetadataNamespace = String(e.phpMetadataNamespace)), null != e.rubyPackage && (t.rubyPackage = String(e.rubyPackage)), e.uninterpretedOption) + { + if (!Array.isArray(e.uninterpretedOption)) throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: array expected"); + t.uninterpretedOption = []; + for (var n = 0; n < e.uninterpretedOption.length; ++n) + { + if ("object" != typeof e.uninterpretedOption[n]) throw TypeError(".google.protobuf.FileOptions.uninterpretedOption: object expected"); + t.uninterpretedOption[n] = l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n]) + } + } + return null != e[".webcast.packer.webcastPackerPackage"] && (t[".webcast.packer.webcastPackerPackage"] = String(e[".webcast.packer.webcastPackerPackage"])), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.uninterpretedOption = []), t.defaults && (n.javaPackage = "", n.javaOuterClassname = "", n.optimizeFor = t.enums === String ? "SPEED" : 1, n.javaMultipleFiles = !1, n.goPackage = "", n.ccGenericServices = !1, n.javaGenericServices = !1, n.pyGenericServices = !1, n.javaGenerateEqualsAndHash = !1, n.deprecated = !1, n.javaStringCheckUtf8 = !1, n.ccEnableArenas = !1, n.objcClassPrefix = "", n.csharpNamespace = "", n.swiftPrefix = "", n.phpClassPrefix = "", n.phpNamespace = "", n.phpGenericServices = !1, n.phpMetadataNamespace = "", n.rubyPackage = "", n[".webcast.packer.webcastPackerPackage"] = ""), null != e.javaPackage && e.hasOwnProperty("javaPackage") && (n.javaPackage = e.javaPackage), null != e.javaOuterClassname && e.hasOwnProperty("javaOuterClassname") && (n.javaOuterClassname = e.javaOuterClassname), null != e.optimizeFor && e.hasOwnProperty("optimizeFor") && (n.optimizeFor = t.enums === String ? l.google.protobuf.FileOptions.OptimizeMode[e.optimizeFor] : e.optimizeFor), null != e.javaMultipleFiles && e.hasOwnProperty("javaMultipleFiles") && (n.javaMultipleFiles = e.javaMultipleFiles), null != e.goPackage && e.hasOwnProperty("goPackage") && (n.goPackage = e.goPackage), null != e.ccGenericServices && e.hasOwnProperty("ccGenericServices") && (n.ccGenericServices = e.ccGenericServices), null != e.javaGenericServices && e.hasOwnProperty("javaGenericServices") && (n.javaGenericServices = e.javaGenericServices), null != e.pyGenericServices && e.hasOwnProperty("pyGenericServices") && (n.pyGenericServices = e.pyGenericServices), null != e.javaGenerateEqualsAndHash && e.hasOwnProperty("javaGenerateEqualsAndHash") && (n.javaGenerateEqualsAndHash = e.javaGenerateEqualsAndHash), null != e.deprecated && e.hasOwnProperty("deprecated") && (n.deprecated = e.deprecated), null != e.javaStringCheckUtf8 && e.hasOwnProperty("javaStringCheckUtf8") && (n.javaStringCheckUtf8 = e.javaStringCheckUtf8), null != e.ccEnableArenas && e.hasOwnProperty("ccEnableArenas") && (n.ccEnableArenas = e.ccEnableArenas), null != e.objcClassPrefix && e.hasOwnProperty("objcClassPrefix") && (n.objcClassPrefix = e.objcClassPrefix), null != e.csharpNamespace && e.hasOwnProperty("csharpNamespace") && (n.csharpNamespace = e.csharpNamespace), null != e.swiftPrefix && e.hasOwnProperty("swiftPrefix") && (n.swiftPrefix = e.swiftPrefix), null != e.phpClassPrefix && e.hasOwnProperty("phpClassPrefix") && (n.phpClassPrefix = e.phpClassPrefix), null != e.phpNamespace && e.hasOwnProperty("phpNamespace") && (n.phpNamespace = e.phpNamespace), null != e.phpGenericServices && e.hasOwnProperty("phpGenericServices") && (n.phpGenericServices = e.phpGenericServices), null != e.phpMetadataNamespace && e.hasOwnProperty("phpMetadataNamespace") && (n.phpMetadataNamespace = e.phpMetadataNamespace), null != e.rubyPackage && e.hasOwnProperty("rubyPackage") && (n.rubyPackage = e.rubyPackage), e.uninterpretedOption && e.uninterpretedOption.length) + { + n.uninterpretedOption = []; + for (var r = 0; r < e.uninterpretedOption.length; ++r) n.uninterpretedOption[r] = l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r], t) + } + return null != e[".webcast.packer.webcastPackerPackage"] && e.hasOwnProperty(".webcast.packer.webcastPackerPackage") && (n[".webcast.packer.webcastPackerPackage"] = e[".webcast.packer.webcastPackerPackage"]), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.OptimizeMode = function () + { + const e = {}, + t = Object.create(e); + return t[e[1] = "SPEED"] = 1, t[e[2] = "CODE_SIZE"] = 2, t[e[3] = "LITE_RUNTIME"] = 3, t + }(), e + }(), e.MessageOptions = function () + { + function e(e) + { + if (this.uninterpretedOption = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.messageSetWireFormat = !1, e.prototype.noStandardDescriptorAccessor = !1, e.prototype.deprecated = !1, e.prototype.mapEntry = !1, e.prototype.uninterpretedOption = a.emptyArray, e.prototype[".webcast.packer.webcastPackerRoot"] = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.messageSetWireFormat && Object.hasOwnProperty.call(e, "messageSetWireFormat") && t.uint32(8).bool(e.messageSetWireFormat), null != e.noStandardDescriptorAccessor && Object.hasOwnProperty.call(e, "noStandardDescriptorAccessor") && t.uint32(16).bool(e.noStandardDescriptorAccessor), null != e.deprecated && Object.hasOwnProperty.call(e, "deprecated") && t.uint32(24).bool(e.deprecated), null != e.mapEntry && Object.hasOwnProperty.call(e, "mapEntry") && t.uint32(56).bool(e.mapEntry), null != e.uninterpretedOption && e.uninterpretedOption.length) + for (var n = 0; n < e.uninterpretedOption.length; ++n) l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n], t.uint32(7994).fork()).ldelim(); + return null != e[".webcast.packer.webcastPackerRoot"] && Object.hasOwnProperty.call(e, ".webcast.packer.webcastPackerRoot") && t.uint32(4e5).bool(e[".webcast.packer.webcastPackerRoot"]), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.MessageOptions; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.messageSetWireFormat = e.bool(); + break; + case 2: + r.noStandardDescriptorAccessor = e.bool(); + break; + case 3: + r.deprecated = e.bool(); + break; + case 7: + r.mapEntry = e.bool(); + break; + case 999: + r.uninterpretedOption && r.uninterpretedOption.length || (r.uninterpretedOption = []), r.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e, e.uint32())); + break; + case 5e4: + r[".webcast.packer.webcastPackerRoot"] = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.messageSetWireFormat && e.hasOwnProperty("messageSetWireFormat") && "boolean" != typeof e.messageSetWireFormat) return "messageSetWireFormat: boolean expected"; + if (null != e.noStandardDescriptorAccessor && e.hasOwnProperty("noStandardDescriptorAccessor") && "boolean" != typeof e.noStandardDescriptorAccessor) return "noStandardDescriptorAccessor: boolean expected"; + if (null != e.deprecated && e.hasOwnProperty("deprecated") && "boolean" != typeof e.deprecated) return "deprecated: boolean expected"; + if (null != e.mapEntry && e.hasOwnProperty("mapEntry") && "boolean" != typeof e.mapEntry) return "mapEntry: boolean expected"; + if (null != e.uninterpretedOption && e.hasOwnProperty("uninterpretedOption")) + { + if (!Array.isArray(e.uninterpretedOption)) return "uninterpretedOption: array expected"; + for (var t = 0; t < e.uninterpretedOption.length; ++t) + { + var n = l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]); + if (n) return "uninterpretedOption." + n + } + } + return null != e[".webcast.packer.webcastPackerRoot"] && e.hasOwnProperty(".webcast.packer.webcastPackerRoot") && "boolean" != typeof e[".webcast.packer.webcastPackerRoot"] ? ".webcast.packer.webcastPackerRoot: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.MessageOptions) return e; + var t = new l.google.protobuf.MessageOptions; + if (null != e.messageSetWireFormat && (t.messageSetWireFormat = Boolean(e.messageSetWireFormat)), null != e.noStandardDescriptorAccessor && (t.noStandardDescriptorAccessor = Boolean(e.noStandardDescriptorAccessor)), null != e.deprecated && (t.deprecated = Boolean(e.deprecated)), null != e.mapEntry && (t.mapEntry = Boolean(e.mapEntry)), e.uninterpretedOption) + { + if (!Array.isArray(e.uninterpretedOption)) throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: array expected"); + t.uninterpretedOption = []; + for (var n = 0; n < e.uninterpretedOption.length; ++n) + { + if ("object" != typeof e.uninterpretedOption[n]) throw TypeError(".google.protobuf.MessageOptions.uninterpretedOption: object expected"); + t.uninterpretedOption[n] = l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n]) + } + } + return null != e[".webcast.packer.webcastPackerRoot"] && (t[".webcast.packer.webcastPackerRoot"] = Boolean(e[".webcast.packer.webcastPackerRoot"])), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.uninterpretedOption = []), t.defaults && (n.messageSetWireFormat = !1, n.noStandardDescriptorAccessor = !1, n.deprecated = !1, n.mapEntry = !1, n[".webcast.packer.webcastPackerRoot"] = !1), null != e.messageSetWireFormat && e.hasOwnProperty("messageSetWireFormat") && (n.messageSetWireFormat = e.messageSetWireFormat), null != e.noStandardDescriptorAccessor && e.hasOwnProperty("noStandardDescriptorAccessor") && (n.noStandardDescriptorAccessor = e.noStandardDescriptorAccessor), null != e.deprecated && e.hasOwnProperty("deprecated") && (n.deprecated = e.deprecated), null != e.mapEntry && e.hasOwnProperty("mapEntry") && (n.mapEntry = e.mapEntry), e.uninterpretedOption && e.uninterpretedOption.length) + { + n.uninterpretedOption = []; + for (var r = 0; r < e.uninterpretedOption.length; ++r) n.uninterpretedOption[r] = l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r], t) + } + return null != e[".webcast.packer.webcastPackerRoot"] && e.hasOwnProperty(".webcast.packer.webcastPackerRoot") && (n[".webcast.packer.webcastPackerRoot"] = e[".webcast.packer.webcastPackerRoot"]), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.FieldOptions = function () + { + function e(e) + { + if (this.uninterpretedOption = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.ctype = 0, e.prototype.packed = !1, e.prototype.jstype = 0, e.prototype.lazy = !1, e.prototype.deprecated = !1, e.prototype.weak = !1, e.prototype.uninterpretedOption = a.emptyArray, e.prototype[".webcast.packer.webcastPackerLeaf"] = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.ctype && Object.hasOwnProperty.call(e, "ctype") && t.uint32(8).int32(e.ctype), null != e.packed && Object.hasOwnProperty.call(e, "packed") && t.uint32(16).bool(e.packed), null != e.deprecated && Object.hasOwnProperty.call(e, "deprecated") && t.uint32(24).bool(e.deprecated), null != e.lazy && Object.hasOwnProperty.call(e, "lazy") && t.uint32(40).bool(e.lazy), null != e.jstype && Object.hasOwnProperty.call(e, "jstype") && t.uint32(48).int32(e.jstype), null != e.weak && Object.hasOwnProperty.call(e, "weak") && t.uint32(80).bool(e.weak), null != e.uninterpretedOption && e.uninterpretedOption.length) + for (var n = 0; n < e.uninterpretedOption.length; ++n) l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n], t.uint32(7994).fork()).ldelim(); + return null != e[".webcast.packer.webcastPackerLeaf"] && Object.hasOwnProperty.call(e, ".webcast.packer.webcastPackerLeaf") && t.uint32(4e5).bool(e[".webcast.packer.webcastPackerLeaf"]), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.FieldOptions; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.ctype = e.int32(); + break; + case 2: + r.packed = e.bool(); + break; + case 6: + r.jstype = e.int32(); + break; + case 5: + r.lazy = e.bool(); + break; + case 3: + r.deprecated = e.bool(); + break; + case 10: + r.weak = e.bool(); + break; + case 999: + r.uninterpretedOption && r.uninterpretedOption.length || (r.uninterpretedOption = []), r.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e, e.uint32())); + break; + case 5e4: + r[".webcast.packer.webcastPackerLeaf"] = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.ctype && e.hasOwnProperty("ctype")) switch (e.ctype) + { + default: + return "ctype: enum value expected"; + case 0: + case 1: + case 2: + } + if (null != e.packed && e.hasOwnProperty("packed") && "boolean" != typeof e.packed) return "packed: boolean expected"; + if (null != e.jstype && e.hasOwnProperty("jstype")) switch (e.jstype) + { + default: + return "jstype: enum value expected"; + case 0: + case 1: + case 2: + } + if (null != e.lazy && e.hasOwnProperty("lazy") && "boolean" != typeof e.lazy) return "lazy: boolean expected"; + if (null != e.deprecated && e.hasOwnProperty("deprecated") && "boolean" != typeof e.deprecated) return "deprecated: boolean expected"; + if (null != e.weak && e.hasOwnProperty("weak") && "boolean" != typeof e.weak) return "weak: boolean expected"; + if (null != e.uninterpretedOption && e.hasOwnProperty("uninterpretedOption")) + { + if (!Array.isArray(e.uninterpretedOption)) return "uninterpretedOption: array expected"; + for (var t = 0; t < e.uninterpretedOption.length; ++t) + { + var n = l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]); + if (n) return "uninterpretedOption." + n + } + } + return null != e[".webcast.packer.webcastPackerLeaf"] && e.hasOwnProperty(".webcast.packer.webcastPackerLeaf") && "boolean" != typeof e[".webcast.packer.webcastPackerLeaf"] ? ".webcast.packer.webcastPackerLeaf: boolean expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.FieldOptions) return e; + var t = new l.google.protobuf.FieldOptions; + switch (e.ctype) + { + case "STRING": + case 0: + t.ctype = 0; + break; + case "CORD": + case 1: + t.ctype = 1; + break; + case "STRING_PIECE": + case 2: + t.ctype = 2 + } + switch (null != e.packed && (t.packed = Boolean(e.packed)), e.jstype) + { + case "JS_NORMAL": + case 0: + t.jstype = 0; + break; + case "JS_STRING": + case 1: + t.jstype = 1; + break; + case "JS_NUMBER": + case 2: + t.jstype = 2 + } + if (null != e.lazy && (t.lazy = Boolean(e.lazy)), null != e.deprecated && (t.deprecated = Boolean(e.deprecated)), null != e.weak && (t.weak = Boolean(e.weak)), e.uninterpretedOption) + { + if (!Array.isArray(e.uninterpretedOption)) throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: array expected"); + t.uninterpretedOption = []; + for (var n = 0; n < e.uninterpretedOption.length; ++n) + { + if ("object" != typeof e.uninterpretedOption[n]) throw TypeError(".google.protobuf.FieldOptions.uninterpretedOption: object expected"); + t.uninterpretedOption[n] = l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n]) + } + } + return null != e[".webcast.packer.webcastPackerLeaf"] && (t[".webcast.packer.webcastPackerLeaf"] = Boolean(e[".webcast.packer.webcastPackerLeaf"])), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.uninterpretedOption = []), t.defaults && (n.ctype = t.enums === String ? "STRING" : 0, n.packed = !1, n.deprecated = !1, n.lazy = !1, n.jstype = t.enums === String ? "JS_NORMAL" : 0, n.weak = !1, n[".webcast.packer.webcastPackerLeaf"] = !1), null != e.ctype && e.hasOwnProperty("ctype") && (n.ctype = t.enums === String ? l.google.protobuf.FieldOptions.CType[e.ctype] : e.ctype), null != e.packed && e.hasOwnProperty("packed") && (n.packed = e.packed), null != e.deprecated && e.hasOwnProperty("deprecated") && (n.deprecated = e.deprecated), null != e.lazy && e.hasOwnProperty("lazy") && (n.lazy = e.lazy), null != e.jstype && e.hasOwnProperty("jstype") && (n.jstype = t.enums === String ? l.google.protobuf.FieldOptions.JSType[e.jstype] : e.jstype), null != e.weak && e.hasOwnProperty("weak") && (n.weak = e.weak), e.uninterpretedOption && e.uninterpretedOption.length) + { + n.uninterpretedOption = []; + for (var r = 0; r < e.uninterpretedOption.length; ++r) n.uninterpretedOption[r] = l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r], t) + } + return null != e[".webcast.packer.webcastPackerLeaf"] && e.hasOwnProperty(".webcast.packer.webcastPackerLeaf") && (n[".webcast.packer.webcastPackerLeaf"] = e[".webcast.packer.webcastPackerLeaf"]), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.CType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "STRING"] = 0, t[e[1] = "CORD"] = 1, t[e[2] = "STRING_PIECE"] = 2, t + }(), e.JSType = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "JS_NORMAL"] = 0, t[e[1] = "JS_STRING"] = 1, t[e[2] = "JS_NUMBER"] = 2, t + }(), e + }(), e.OneofOptions = function () + { + function e(e) + { + if (this.uninterpretedOption = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.uninterpretedOption = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.uninterpretedOption && e.uninterpretedOption.length) + for (var n = 0; n < e.uninterpretedOption.length; ++n) l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n], t.uint32(7994).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.OneofOptions; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 999) r.uninterpretedOption && r.uninterpretedOption.length || (r.uninterpretedOption = []), r.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e, e.uint32())); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.uninterpretedOption && e.hasOwnProperty("uninterpretedOption")) + { + if (!Array.isArray(e.uninterpretedOption)) return "uninterpretedOption: array expected"; + for (var t = 0; t < e.uninterpretedOption.length; ++t) + { + var n = l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]); + if (n) return "uninterpretedOption." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.OneofOptions) return e; + var t = new l.google.protobuf.OneofOptions; + if (e.uninterpretedOption) + { + if (!Array.isArray(e.uninterpretedOption)) throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: array expected"); + t.uninterpretedOption = []; + for (var n = 0; n < e.uninterpretedOption.length; ++n) + { + if ("object" != typeof e.uninterpretedOption[n]) throw TypeError(".google.protobuf.OneofOptions.uninterpretedOption: object expected"); + t.uninterpretedOption[n] = l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.uninterpretedOption = []), e.uninterpretedOption && e.uninterpretedOption.length) + { + n.uninterpretedOption = []; + for (var r = 0; r < e.uninterpretedOption.length; ++r) n.uninterpretedOption[r] = l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EnumOptions = function () + { + function e(e) + { + if (this.uninterpretedOption = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.allowAlias = !1, e.prototype.deprecated = !1, e.prototype.uninterpretedOption = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.allowAlias && Object.hasOwnProperty.call(e, "allowAlias") && t.uint32(16).bool(e.allowAlias), null != e.deprecated && Object.hasOwnProperty.call(e, "deprecated") && t.uint32(24).bool(e.deprecated), null != e.uninterpretedOption && e.uninterpretedOption.length) + for (var n = 0; n < e.uninterpretedOption.length; ++n) l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n], t.uint32(7994).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.EnumOptions; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 2: + r.allowAlias = e.bool(); + break; + case 3: + r.deprecated = e.bool(); + break; + case 999: + r.uninterpretedOption && r.uninterpretedOption.length || (r.uninterpretedOption = []), r.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e, e.uint32())); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.allowAlias && e.hasOwnProperty("allowAlias") && "boolean" != typeof e.allowAlias) return "allowAlias: boolean expected"; + if (null != e.deprecated && e.hasOwnProperty("deprecated") && "boolean" != typeof e.deprecated) return "deprecated: boolean expected"; + if (null != e.uninterpretedOption && e.hasOwnProperty("uninterpretedOption")) + { + if (!Array.isArray(e.uninterpretedOption)) return "uninterpretedOption: array expected"; + for (var t = 0; t < e.uninterpretedOption.length; ++t) + { + var n = l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]); + if (n) return "uninterpretedOption." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.EnumOptions) return e; + var t = new l.google.protobuf.EnumOptions; + if (null != e.allowAlias && (t.allowAlias = Boolean(e.allowAlias)), null != e.deprecated && (t.deprecated = Boolean(e.deprecated)), e.uninterpretedOption) + { + if (!Array.isArray(e.uninterpretedOption)) throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: array expected"); + t.uninterpretedOption = []; + for (var n = 0; n < e.uninterpretedOption.length; ++n) + { + if ("object" != typeof e.uninterpretedOption[n]) throw TypeError(".google.protobuf.EnumOptions.uninterpretedOption: object expected"); + t.uninterpretedOption[n] = l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.uninterpretedOption = []), t.defaults && (n.allowAlias = !1, n.deprecated = !1), null != e.allowAlias && e.hasOwnProperty("allowAlias") && (n.allowAlias = e.allowAlias), null != e.deprecated && e.hasOwnProperty("deprecated") && (n.deprecated = e.deprecated), e.uninterpretedOption && e.uninterpretedOption.length) + { + n.uninterpretedOption = []; + for (var r = 0; r < e.uninterpretedOption.length; ++r) n.uninterpretedOption[r] = l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.EnumValueOptions = function () + { + function e(e) + { + if (this.uninterpretedOption = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.deprecated = !1, e.prototype.uninterpretedOption = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.deprecated && Object.hasOwnProperty.call(e, "deprecated") && t.uint32(8).bool(e.deprecated), null != e.uninterpretedOption && e.uninterpretedOption.length) + for (var n = 0; n < e.uninterpretedOption.length; ++n) l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n], t.uint32(7994).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.EnumValueOptions; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.deprecated = e.bool(); + break; + case 999: + r.uninterpretedOption && r.uninterpretedOption.length || (r.uninterpretedOption = []), r.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e, e.uint32())); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.deprecated && e.hasOwnProperty("deprecated") && "boolean" != typeof e.deprecated) return "deprecated: boolean expected"; + if (null != e.uninterpretedOption && e.hasOwnProperty("uninterpretedOption")) + { + if (!Array.isArray(e.uninterpretedOption)) return "uninterpretedOption: array expected"; + for (var t = 0; t < e.uninterpretedOption.length; ++t) + { + var n = l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]); + if (n) return "uninterpretedOption." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.EnumValueOptions) return e; + var t = new l.google.protobuf.EnumValueOptions; + if (null != e.deprecated && (t.deprecated = Boolean(e.deprecated)), e.uninterpretedOption) + { + if (!Array.isArray(e.uninterpretedOption)) throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: array expected"); + t.uninterpretedOption = []; + for (var n = 0; n < e.uninterpretedOption.length; ++n) + { + if ("object" != typeof e.uninterpretedOption[n]) throw TypeError(".google.protobuf.EnumValueOptions.uninterpretedOption: object expected"); + t.uninterpretedOption[n] = l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.uninterpretedOption = []), t.defaults && (n.deprecated = !1), null != e.deprecated && e.hasOwnProperty("deprecated") && (n.deprecated = e.deprecated), e.uninterpretedOption && e.uninterpretedOption.length) + { + n.uninterpretedOption = []; + for (var r = 0; r < e.uninterpretedOption.length; ++r) n.uninterpretedOption[r] = l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.ServiceOptions = function () + { + function e(e) + { + if (this.uninterpretedOption = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.deprecated = !1, e.prototype.uninterpretedOption = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.deprecated && Object.hasOwnProperty.call(e, "deprecated") && t.uint32(264).bool(e.deprecated), null != e.uninterpretedOption && e.uninterpretedOption.length) + for (var n = 0; n < e.uninterpretedOption.length; ++n) l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n], t.uint32(7994).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.ServiceOptions; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 33: + r.deprecated = e.bool(); + break; + case 999: + r.uninterpretedOption && r.uninterpretedOption.length || (r.uninterpretedOption = []), r.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e, e.uint32())); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.deprecated && e.hasOwnProperty("deprecated") && "boolean" != typeof e.deprecated) return "deprecated: boolean expected"; + if (null != e.uninterpretedOption && e.hasOwnProperty("uninterpretedOption")) + { + if (!Array.isArray(e.uninterpretedOption)) return "uninterpretedOption: array expected"; + for (var t = 0; t < e.uninterpretedOption.length; ++t) + { + var n = l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]); + if (n) return "uninterpretedOption." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.ServiceOptions) return e; + var t = new l.google.protobuf.ServiceOptions; + if (null != e.deprecated && (t.deprecated = Boolean(e.deprecated)), e.uninterpretedOption) + { + if (!Array.isArray(e.uninterpretedOption)) throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: array expected"); + t.uninterpretedOption = []; + for (var n = 0; n < e.uninterpretedOption.length; ++n) + { + if ("object" != typeof e.uninterpretedOption[n]) throw TypeError(".google.protobuf.ServiceOptions.uninterpretedOption: object expected"); + t.uninterpretedOption[n] = l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.uninterpretedOption = []), t.defaults && (n.deprecated = !1), null != e.deprecated && e.hasOwnProperty("deprecated") && (n.deprecated = e.deprecated), e.uninterpretedOption && e.uninterpretedOption.length) + { + n.uninterpretedOption = []; + for (var r = 0; r < e.uninterpretedOption.length; ++r) n.uninterpretedOption[r] = l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e.MethodOptions = function () + { + function e(e) + { + if (this.uninterpretedOption = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.deprecated = !1, e.prototype.idempotencyLevel = 0, e.prototype.uninterpretedOption = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.deprecated && Object.hasOwnProperty.call(e, "deprecated") && t.uint32(264).bool(e.deprecated), null != e.idempotencyLevel && Object.hasOwnProperty.call(e, "idempotencyLevel") && t.uint32(272).int32(e.idempotencyLevel), null != e.uninterpretedOption && e.uninterpretedOption.length) + for (var n = 0; n < e.uninterpretedOption.length; ++n) l.google.protobuf.UninterpretedOption.encode(e.uninterpretedOption[n], t.uint32(7994).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.MethodOptions; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 33: + r.deprecated = e.bool(); + break; + case 34: + r.idempotencyLevel = e.int32(); + break; + case 999: + r.uninterpretedOption && r.uninterpretedOption.length || (r.uninterpretedOption = []), r.uninterpretedOption.push(l.google.protobuf.UninterpretedOption.decode(e, e.uint32())); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.deprecated && e.hasOwnProperty("deprecated") && "boolean" != typeof e.deprecated) return "deprecated: boolean expected"; + if (null != e.idempotencyLevel && e.hasOwnProperty("idempotencyLevel")) switch (e.idempotencyLevel) + { + default: + return "idempotencyLevel: enum value expected"; + case 0: + case 1: + case 2: + } + if (null != e.uninterpretedOption && e.hasOwnProperty("uninterpretedOption")) + { + if (!Array.isArray(e.uninterpretedOption)) return "uninterpretedOption: array expected"; + for (var t = 0; t < e.uninterpretedOption.length; ++t) + { + var n = l.google.protobuf.UninterpretedOption.verify(e.uninterpretedOption[t]); + if (n) return "uninterpretedOption." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.MethodOptions) return e; + var t = new l.google.protobuf.MethodOptions; + switch (null != e.deprecated && (t.deprecated = Boolean(e.deprecated)), e.idempotencyLevel) + { + case "IDEMPOTENCY_UNKNOWN": + case 0: + t.idempotencyLevel = 0; + break; + case "NO_SIDE_EFFECTS": + case 1: + t.idempotencyLevel = 1; + break; + case "IDEMPOTENT": + case 2: + t.idempotencyLevel = 2 + } + if (e.uninterpretedOption) + { + if (!Array.isArray(e.uninterpretedOption)) throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: array expected"); + t.uninterpretedOption = []; + for (var n = 0; n < e.uninterpretedOption.length; ++n) + { + if ("object" != typeof e.uninterpretedOption[n]) throw TypeError(".google.protobuf.MethodOptions.uninterpretedOption: object expected"); + t.uninterpretedOption[n] = l.google.protobuf.UninterpretedOption.fromObject(e.uninterpretedOption[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.uninterpretedOption = []), t.defaults && (n.deprecated = !1, n.idempotencyLevel = t.enums === String ? "IDEMPOTENCY_UNKNOWN" : 0), null != e.deprecated && e.hasOwnProperty("deprecated") && (n.deprecated = e.deprecated), null != e.idempotencyLevel && e.hasOwnProperty("idempotencyLevel") && (n.idempotencyLevel = t.enums === String ? l.google.protobuf.MethodOptions.IdempotencyLevel[e.idempotencyLevel] : e.idempotencyLevel), e.uninterpretedOption && e.uninterpretedOption.length) + { + n.uninterpretedOption = []; + for (var r = 0; r < e.uninterpretedOption.length; ++r) n.uninterpretedOption[r] = l.google.protobuf.UninterpretedOption.toObject(e.uninterpretedOption[r], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.IdempotencyLevel = function () + { + const e = {}, + t = Object.create(e); + return t[e[0] = "IDEMPOTENCY_UNKNOWN"] = 0, t[e[1] = "NO_SIDE_EFFECTS"] = 1, t[e[2] = "IDEMPOTENT"] = 2, t + }(), e + }(), e.UninterpretedOption = function () + { + function e(e) + { + if (this.name = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.name = a.emptyArray, e.prototype.identifierValue = "", e.prototype.positiveIntValue = a.Long ? a.Long.fromBits(0, 0, !0) : 0, e.prototype.negativeIntValue = a.Long ? a.Long.fromBits(0, 0, !1) : 0, e.prototype.doubleValue = 0, e.prototype.stringValue = a.newBuffer([]), e.prototype.aggregateValue = "", e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.name && e.name.length) + for (var n = 0; n < e.name.length; ++n) l.google.protobuf.UninterpretedOption.NamePart.encode(e.name[n], t.uint32(18).fork()).ldelim(); + return null != e.identifierValue && Object.hasOwnProperty.call(e, "identifierValue") && t.uint32(26).string(e.identifierValue), null != e.positiveIntValue && Object.hasOwnProperty.call(e, "positiveIntValue") && t.uint32(32).uint64(e.positiveIntValue), null != e.negativeIntValue && Object.hasOwnProperty.call(e, "negativeIntValue") && t.uint32(40).int64(e.negativeIntValue), null != e.doubleValue && Object.hasOwnProperty.call(e, "doubleValue") && t.uint32(49).double(e.doubleValue), null != e.stringValue && Object.hasOwnProperty.call(e, "stringValue") && t.uint32(58).bytes(e.stringValue), null != e.aggregateValue && Object.hasOwnProperty.call(e, "aggregateValue") && t.uint32(66).string(e.aggregateValue), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.UninterpretedOption; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 2: + r.name && r.name.length || (r.name = []), r.name.push(l.google.protobuf.UninterpretedOption.NamePart.decode(e, e.uint32())); + break; + case 3: + r.identifierValue = e.string(); + break; + case 4: + r.positiveIntValue = e.uint64(); + break; + case 5: + r.negativeIntValue = e.int64(); + break; + case 6: + r.doubleValue = e.double(); + break; + case 7: + r.stringValue = e.bytes(); + break; + case 8: + r.aggregateValue = e.string(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.name && e.hasOwnProperty("name")) + { + if (!Array.isArray(e.name)) return "name: array expected"; + for (var t = 0; t < e.name.length; ++t) + { + var n = l.google.protobuf.UninterpretedOption.NamePart.verify(e.name[t]); + if (n) return "name." + n + } + } + return null != e.identifierValue && e.hasOwnProperty("identifierValue") && !a.isString(e.identifierValue) ? "identifierValue: string expected" : null != e.positiveIntValue && e.hasOwnProperty("positiveIntValue") && !(a.isInteger(e.positiveIntValue) || e.positiveIntValue && a.isInteger(e.positiveIntValue.low) && a.isInteger(e.positiveIntValue.high)) ? "positiveIntValue: integer|Long expected" : null != e.negativeIntValue && e.hasOwnProperty("negativeIntValue") && !(a.isInteger(e.negativeIntValue) || e.negativeIntValue && a.isInteger(e.negativeIntValue.low) && a.isInteger(e.negativeIntValue.high)) ? "negativeIntValue: integer|Long expected" : null != e.doubleValue && e.hasOwnProperty("doubleValue") && "number" != typeof e.doubleValue ? "doubleValue: number expected" : null != e.stringValue && e.hasOwnProperty("stringValue") && !(e.stringValue && "number" == typeof e.stringValue.length || a.isString(e.stringValue)) ? "stringValue: buffer expected" : null != e.aggregateValue && e.hasOwnProperty("aggregateValue") && !a.isString(e.aggregateValue) ? "aggregateValue: string expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.UninterpretedOption) return e; + var t = new l.google.protobuf.UninterpretedOption; + if (e.name) + { + if (!Array.isArray(e.name)) throw TypeError(".google.protobuf.UninterpretedOption.name: array expected"); + t.name = []; + for (var n = 0; n < e.name.length; ++n) + { + if ("object" != typeof e.name[n]) throw TypeError(".google.protobuf.UninterpretedOption.name: object expected"); + t.name[n] = l.google.protobuf.UninterpretedOption.NamePart.fromObject(e.name[n]) + } + } + return null != e.identifierValue && (t.identifierValue = String(e.identifierValue)), null != e.positiveIntValue && (a.Long ? (t.positiveIntValue = a.Long.fromValue(e.positiveIntValue)).unsigned = !0 : "string" == typeof e.positiveIntValue ? t.positiveIntValue = parseInt(e.positiveIntValue, 10) : "number" == typeof e.positiveIntValue ? t.positiveIntValue = e.positiveIntValue : "object" == typeof e.positiveIntValue && (t.positiveIntValue = new a.LongBits(e.positiveIntValue.low >>> 0, e.positiveIntValue.high >>> 0).toNumber(!0))), null != e.negativeIntValue && (a.Long ? (t.negativeIntValue = a.Long.fromValue(e.negativeIntValue)).unsigned = !1 : "string" == typeof e.negativeIntValue ? t.negativeIntValue = parseInt(e.negativeIntValue, 10) : "number" == typeof e.negativeIntValue ? t.negativeIntValue = e.negativeIntValue : "object" == typeof e.negativeIntValue && (t.negativeIntValue = new a.LongBits(e.negativeIntValue.low >>> 0, e.negativeIntValue.high >>> 0).toNumber())), null != e.doubleValue && (t.doubleValue = Number(e.doubleValue)), null != e.stringValue && ("string" == typeof e.stringValue ? a.base64.decode(e.stringValue, t.stringValue = a.newBuffer(a.base64.length(e.stringValue)), 0) : e.stringValue.length && (t.stringValue = e.stringValue)), null != e.aggregateValue && (t.aggregateValue = String(e.aggregateValue)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.name = []), t.defaults) + { + if (n.identifierValue = "", a.Long) + { + var r = new a.Long(0, 0, !0); + n.positiveIntValue = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.positiveIntValue = t.longs === String ? "0" : 0; + if (a.Long) + { + r = new a.Long(0, 0, !1); + n.negativeIntValue = t.longs === String ? r.toString() : t.longs === Number ? r.toNumber() : r + } + else n.negativeIntValue = t.longs === String ? "0" : 0; + n.doubleValue = 0, t.bytes === String ? n.stringValue = "" : (n.stringValue = [], t.bytes !== Array && (n.stringValue = a.newBuffer(n.stringValue))), n.aggregateValue = "" + } + if (e.name && e.name.length) + { + n.name = []; + for (var o = 0; o < e.name.length; ++o) n.name[o] = l.google.protobuf.UninterpretedOption.NamePart.toObject(e.name[o], t) + } + return null != e.identifierValue && e.hasOwnProperty("identifierValue") && (n.identifierValue = e.identifierValue), null != e.positiveIntValue && e.hasOwnProperty("positiveIntValue") && ("number" == typeof e.positiveIntValue ? n.positiveIntValue = t.longs === String ? String(e.positiveIntValue) : e.positiveIntValue : n.positiveIntValue = t.longs === String ? a.Long.prototype.toString.call(e.positiveIntValue) : t.longs === Number ? new a.LongBits(e.positiveIntValue.low >>> 0, e.positiveIntValue.high >>> 0).toNumber(!0) : e.positiveIntValue), null != e.negativeIntValue && e.hasOwnProperty("negativeIntValue") && ("number" == typeof e.negativeIntValue ? n.negativeIntValue = t.longs === String ? String(e.negativeIntValue) : e.negativeIntValue : n.negativeIntValue = t.longs === String ? a.Long.prototype.toString.call(e.negativeIntValue) : t.longs === Number ? new a.LongBits(e.negativeIntValue.low >>> 0, e.negativeIntValue.high >>> 0).toNumber() : e.negativeIntValue), null != e.doubleValue && e.hasOwnProperty("doubleValue") && (n.doubleValue = t.json && !isFinite(e.doubleValue) ? String(e.doubleValue) : e.doubleValue), null != e.stringValue && e.hasOwnProperty("stringValue") && (n.stringValue = t.bytes === String ? a.base64.encode(e.stringValue, 0, e.stringValue.length) : t.bytes === Array ? Array.prototype.slice.call(e.stringValue) : e.stringValue), null != e.aggregateValue && e.hasOwnProperty("aggregateValue") && (n.aggregateValue = e.aggregateValue), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.NamePart = function () + { + function e(e) + { + if (e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.namePart = "", e.prototype.isExtension = !1, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + return t || (t = i.create()), t.uint32(10).string(e.namePart), t.uint32(16).bool(e.isExtension), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.UninterpretedOption.NamePart; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + r.namePart = e.string(); + break; + case 2: + r.isExtension = e.bool(); + break; + default: + e.skipType(7 & i) + } + } + if (!r.hasOwnProperty("namePart")) throw a.ProtocolError("missing required 'namePart'", + { + instance: r + }); + if (!r.hasOwnProperty("isExtension")) throw a.ProtocolError("missing required 'isExtension'", + { + instance: r + }); + return r + }, e.verify = function (e) + { + return "object" != typeof e || null === e ? "object expected" : a.isString(e.namePart) ? "boolean" != typeof e.isExtension ? "isExtension: boolean expected" : null : "namePart: string expected" + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.UninterpretedOption.NamePart) return e; + var t = new l.google.protobuf.UninterpretedOption.NamePart; + return null != e.namePart && (t.namePart = String(e.namePart)), null != e.isExtension && (t.isExtension = Boolean(e.isExtension)), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + return t.defaults && (n.namePart = "", n.isExtension = !1), null != e.namePart && e.hasOwnProperty("namePart") && (n.namePart = e.namePart), null != e.isExtension && e.hasOwnProperty("isExtension") && (n.isExtension = e.isExtension), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.SourceCodeInfo = function () + { + function e(e) + { + if (this.location = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.location = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.location && e.location.length) + for (var n = 0; n < e.location.length; ++n) l.google.protobuf.SourceCodeInfo.Location.encode(e.location[n], t.uint32(10).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.SourceCodeInfo; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.location && r.location.length || (r.location = []), r.location.push(l.google.protobuf.SourceCodeInfo.Location.decode(e, e.uint32())); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.location && e.hasOwnProperty("location")) + { + if (!Array.isArray(e.location)) return "location: array expected"; + for (var t = 0; t < e.location.length; ++t) + { + var n = l.google.protobuf.SourceCodeInfo.Location.verify(e.location[t]); + if (n) return "location." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.SourceCodeInfo) return e; + var t = new l.google.protobuf.SourceCodeInfo; + if (e.location) + { + if (!Array.isArray(e.location)) throw TypeError(".google.protobuf.SourceCodeInfo.location: array expected"); + t.location = []; + for (var n = 0; n < e.location.length; ++n) + { + if ("object" != typeof e.location[n]) throw TypeError(".google.protobuf.SourceCodeInfo.location: object expected"); + t.location[n] = l.google.protobuf.SourceCodeInfo.Location.fromObject(e.location[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.location = []), e.location && e.location.length) + { + n.location = []; + for (var r = 0; r < e.location.length; ++r) n.location[r] = l.google.protobuf.SourceCodeInfo.Location.toObject(e.location[r], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Location = function () + { + function e(e) + { + if (this.path = [], this.span = [], this.leadingDetachedComments = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.path = a.emptyArray, e.prototype.span = a.emptyArray, e.prototype.leadingComments = "", e.prototype.trailingComments = "", e.prototype.leadingDetachedComments = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.path && e.path.length) + { + t.uint32(10).fork(); + for (var n = 0; n < e.path.length; ++n) t.int32(e.path[n]); + t.ldelim() + } + if (null != e.span && e.span.length) + { + t.uint32(18).fork(); + for (n = 0; n < e.span.length; ++n) t.int32(e.span[n]); + t.ldelim() + } + if (null != e.leadingComments && Object.hasOwnProperty.call(e, "leadingComments") && t.uint32(26).string(e.leadingComments), null != e.trailingComments && Object.hasOwnProperty.call(e, "trailingComments") && t.uint32(34).string(e.trailingComments), null != e.leadingDetachedComments && e.leadingDetachedComments.length) + for (n = 0; n < e.leadingDetachedComments.length; ++n) t.uint32(50).string(e.leadingDetachedComments[n]); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.SourceCodeInfo.Location; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + if (r.path && r.path.length || (r.path = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.path.push(e.int32()); + else r.path.push(e.int32()); + break; + case 2: + if (r.span && r.span.length || (r.span = []), 2 == (7 & i)) + for (a = e.uint32() + e.pos; e.pos < a;) r.span.push(e.int32()); + else r.span.push(e.int32()); + break; + case 3: + r.leadingComments = e.string(); + break; + case 4: + r.trailingComments = e.string(); + break; + case 6: + r.leadingDetachedComments && r.leadingDetachedComments.length || (r.leadingDetachedComments = []), r.leadingDetachedComments.push(e.string()); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.path && e.hasOwnProperty("path")) + { + if (!Array.isArray(e.path)) return "path: array expected"; + for (var t = 0; t < e.path.length; ++t) + if (!a.isInteger(e.path[t])) return "path: integer[] expected" + } + if (null != e.span && e.hasOwnProperty("span")) + { + if (!Array.isArray(e.span)) return "span: array expected"; + for (t = 0; t < e.span.length; ++t) + if (!a.isInteger(e.span[t])) return "span: integer[] expected" + } + if (null != e.leadingComments && e.hasOwnProperty("leadingComments") && !a.isString(e.leadingComments)) return "leadingComments: string expected"; + if (null != e.trailingComments && e.hasOwnProperty("trailingComments") && !a.isString(e.trailingComments)) return "trailingComments: string expected"; + if (null != e.leadingDetachedComments && e.hasOwnProperty("leadingDetachedComments")) + { + if (!Array.isArray(e.leadingDetachedComments)) return "leadingDetachedComments: array expected"; + for (t = 0; t < e.leadingDetachedComments.length; ++t) + if (!a.isString(e.leadingDetachedComments[t])) return "leadingDetachedComments: string[] expected" + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.SourceCodeInfo.Location) return e; + var t = new l.google.protobuf.SourceCodeInfo.Location; + if (e.path) + { + if (!Array.isArray(e.path)) throw TypeError(".google.protobuf.SourceCodeInfo.Location.path: array expected"); + t.path = []; + for (var n = 0; n < e.path.length; ++n) t.path[n] = 0 | e.path[n] + } + if (e.span) + { + if (!Array.isArray(e.span)) throw TypeError(".google.protobuf.SourceCodeInfo.Location.span: array expected"); + t.span = []; + for (n = 0; n < e.span.length; ++n) t.span[n] = 0 | e.span[n] + } + if (null != e.leadingComments && (t.leadingComments = String(e.leadingComments)), null != e.trailingComments && (t.trailingComments = String(e.trailingComments)), e.leadingDetachedComments) + { + if (!Array.isArray(e.leadingDetachedComments)) throw TypeError(".google.protobuf.SourceCodeInfo.Location.leadingDetachedComments: array expected"); + t.leadingDetachedComments = []; + for (n = 0; n < e.leadingDetachedComments.length; ++n) t.leadingDetachedComments[n] = String(e.leadingDetachedComments[n]) + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.path = [], n.span = [], n.leadingDetachedComments = []), t.defaults && (n.leadingComments = "", n.trailingComments = ""), e.path && e.path.length) + { + n.path = []; + for (var r = 0; r < e.path.length; ++r) n.path[r] = e.path[r] + } + if (e.span && e.span.length) + { + n.span = []; + for (r = 0; r < e.span.length; ++r) n.span[r] = e.span[r] + } + if (null != e.leadingComments && e.hasOwnProperty("leadingComments") && (n.leadingComments = e.leadingComments), null != e.trailingComments && e.hasOwnProperty("trailingComments") && (n.trailingComments = e.trailingComments), e.leadingDetachedComments && e.leadingDetachedComments.length) + { + n.leadingDetachedComments = []; + for (r = 0; r < e.leadingDetachedComments.length; ++r) n.leadingDetachedComments[r] = e.leadingDetachedComments[r] + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e.GeneratedCodeInfo = function () + { + function e(e) + { + if (this.annotation = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.annotation = a.emptyArray, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.annotation && e.annotation.length) + for (var n = 0; n < e.annotation.length; ++n) l.google.protobuf.GeneratedCodeInfo.Annotation.encode(e.annotation[n], t.uint32(10).fork()).ldelim(); + return t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.GeneratedCodeInfo; e.pos < n;) + { + var i = e.uint32(); + if (i >>> 3 == 1) r.annotation && r.annotation.length || (r.annotation = []), r.annotation.push(l.google.protobuf.GeneratedCodeInfo.Annotation.decode(e, e.uint32())); + else e.skipType(7 & i) + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.annotation && e.hasOwnProperty("annotation")) + { + if (!Array.isArray(e.annotation)) return "annotation: array expected"; + for (var t = 0; t < e.annotation.length; ++t) + { + var n = l.google.protobuf.GeneratedCodeInfo.Annotation.verify(e.annotation[t]); + if (n) return "annotation." + n + } + } + return null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.GeneratedCodeInfo) return e; + var t = new l.google.protobuf.GeneratedCodeInfo; + if (e.annotation) + { + if (!Array.isArray(e.annotation)) throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: array expected"); + t.annotation = []; + for (var n = 0; n < e.annotation.length; ++n) + { + if ("object" != typeof e.annotation[n]) throw TypeError(".google.protobuf.GeneratedCodeInfo.annotation: object expected"); + t.annotation[n] = l.google.protobuf.GeneratedCodeInfo.Annotation.fromObject(e.annotation[n]) + } + } + return t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.annotation = []), e.annotation && e.annotation.length) + { + n.annotation = []; + for (var r = 0; r < e.annotation.length; ++r) n.annotation[r] = l.google.protobuf.GeneratedCodeInfo.Annotation.toObject(e.annotation[r], t) + } + return n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e.Annotation = function () + { + function e(e) + { + if (this.path = [], e) + for (var t = Object.keys(e), n = 0; n < t.length; ++n) null != e[t[n]] && (this[t[n]] = e[t[n]]) + } + return e.prototype.path = a.emptyArray, e.prototype.sourceFile = "", e.prototype.begin = 0, e.prototype.end = 0, e.create = function (t) + { + return new e(t) + }, e.encode = function (e, t) + { + if (t || (t = i.create()), null != e.path && e.path.length) + { + t.uint32(10).fork(); + for (var n = 0; n < e.path.length; ++n) t.int32(e.path[n]); + t.ldelim() + } + return null != e.sourceFile && Object.hasOwnProperty.call(e, "sourceFile") && t.uint32(18).string(e.sourceFile), null != e.begin && Object.hasOwnProperty.call(e, "begin") && t.uint32(24).int32(e.begin), null != e.end && Object.hasOwnProperty.call(e, "end") && t.uint32(32).int32(e.end), t + }, e.decode = function (e, t) + { + e instanceof o || (e = o.create(e)); + for (var n = t === undefined ? e.len : e.pos + t, r = new l.google.protobuf.GeneratedCodeInfo.Annotation; e.pos < n;) + { + var i = e.uint32(); + switch (i >>> 3) + { + case 1: + if (r.path && r.path.length || (r.path = []), 2 == (7 & i)) + for (var a = e.uint32() + e.pos; e.pos < a;) r.path.push(e.int32()); + else r.path.push(e.int32()); + break; + case 2: + r.sourceFile = e.string(); + break; + case 3: + r.begin = e.int32(); + break; + case 4: + r.end = e.int32(); + break; + default: + e.skipType(7 & i) + } + } + return r + }, e.verify = function (e) + { + if ("object" != typeof e || null === e) return "object expected"; + if (null != e.path && e.hasOwnProperty("path")) + { + if (!Array.isArray(e.path)) return "path: array expected"; + for (var t = 0; t < e.path.length; ++t) + if (!a.isInteger(e.path[t])) return "path: integer[] expected" + } + return null != e.sourceFile && e.hasOwnProperty("sourceFile") && !a.isString(e.sourceFile) ? "sourceFile: string expected" : null != e.begin && e.hasOwnProperty("begin") && !a.isInteger(e.begin) ? "begin: integer expected" : null != e.end && e.hasOwnProperty("end") && !a.isInteger(e.end) ? "end: integer expected" : null + }, e.fromObject = function (e) + { + if (e instanceof l.google.protobuf.GeneratedCodeInfo.Annotation) return e; + var t = new l.google.protobuf.GeneratedCodeInfo.Annotation; + if (e.path) + { + if (!Array.isArray(e.path)) throw TypeError(".google.protobuf.GeneratedCodeInfo.Annotation.path: array expected"); + t.path = []; + for (var n = 0; n < e.path.length; ++n) t.path[n] = 0 | e.path[n] + } + return null != e.sourceFile && (t.sourceFile = String(e.sourceFile)), null != e.begin && (t.begin = 0 | e.begin), null != e.end && (t.end = 0 | e.end), t + }, e.toObject = function (e, t) + { + t || (t = {}); + var n = {}; + if ((t.arrays || t.defaults) && (n.path = []), t.defaults && (n.sourceFile = "", n.begin = 0, n.end = 0), e.path && e.path.length) + { + n.path = []; + for (var r = 0; r < e.path.length; ++r) n.path[r] = e.path[r] + } + return null != e.sourceFile && e.hasOwnProperty("sourceFile") && (n.sourceFile = e.sourceFile), null != e.begin && e.hasOwnProperty("begin") && (n.begin = e.begin), null != e.end && e.hasOwnProperty("end") && (n.end = e.end), n + }, e.prototype.toJSON = function () + { + return this.constructor.toObject(this, r.util.toJSONOptions) + }, e + }(), e + }(), e + }(), e + })(); + var c = n(14986); + + function u(e, t, n, r, o, i, a) + { + try + { + var l = e[i](a), + s = l.value + } + catch (c) + { + return void n(c) + } + l.done ? t(s) : Promise.resolve(s).then(r, o) + } + + function p(e) + { + return function () + { + var t = this, + n = arguments; + return new Promise((function (r, o) + { + var i = e.apply(t, n); + + function a(e) + { + u(i, r, o, a, l, "next", e) + } + + function l(e) + { + u(i, r, o, a, l, "throw", e) + } + a(undefined) + })) + } + } + r.util.Long = c; + var g = function (e) + { + return e ? c.fromBits(e.low, e.high, e.unsigned).toString() : "0" + }; + r.util.longToHash = g, r.configure(); + var d = (new Map).set("WebcastDiggMessage", "DiggMessage").set("WebcastChatMessage", "ChatMessage").set("WebcastFansclubMessage", "FansclubMessage").set("WebcastScreenChatMessage", "ScreenChatMessage").set("WebcastGiftMessage", "GiftMessage").set("WebcastControlMessage", "ControlMessage").set("WebcastMemberMessage", "MemberMessage").set("WebcastSocialMessage", "SocialMessage").set("WebcastRoomMessage", "RoomMessage").set("WebcastFansclubStatisticsMessage", "FansclubStatisticsMessage").set("PushMessage", "PushMessage").set("WebcastRoomVerifyMessage", "RoomVerifyMessage").set("WebcastNoticeMessage", "NoticeMessage").set("WebcastNobleUpgradeMessage", "NobleUpgradeMessage").set("WebcastImDeleteMessage", "ImDeleteMessage").set("WebcastSunDailyRegionRankMessage", "SunDailyRankMessage").set("WebcastSunDailyRankMessage", "SunDailyRankMessage").set("WebcastRoomUserSeqMessage", "RoomUserSeqMessage").set("WebcastVerificationCodeMessage", "VerificationCodeMessage").set("WebcastLinkMicMethod", "LinkMicMethod").set("WebcastLinkMicBattleMethod", "LinkMicBattle").set("WebcastLinkMicBattleFinishMethod", "LinkMicBattleFinish").set("WebcastRoomNotifyMessage", "NotifyMessage").set("WebcastLinkMicSignalingMethod", "LinkMicSignalingMethod").set("WebcastLotteryEventMessage", "LotteryEventMessage").set("WebcastUploadCoverMessage", "UploadCoverMessage").set("WebcastCategoryChangeMessage", "CategoryChangeMessage").set("WebcastRoomChallengeMessage", "RoomChallengeMessage").set("WebcastLikeMessage", "LikeMessage").set("WebcastLinkMessage", "LinkMessage").set("WebcastLinkMicArmiesMethod", "LinkMicArmies").set("WebcastGameInviteMessage", "GameInviteMessage").set("WebcastQuizStartMessage", "QuizStartMessage").set("WebcastQuizResultMessage", "QuizResultMessage").set("WebcastQuizChangeMessage", "QuizChangeMessage").set("WebcastQuizBeginMessage", "QuizBeginMessage").set("WebcastOChannelAnchorMessage", "OChannelAnchorMessage").set("WebcastOChannelModifyMessage", "OChannelModifyMessage").set("WebcastLinkMicOChannelKickOutMsg", "LinkMicOChannelKickOutMsg").set("WebcastLinkMicOChannelNotifyMsg", "LinkMicOChannelNotifyMsg").set("WebcastRoomIntroMessage", "RoomIntroMessage").set("WebcastGroupShowUserUpdateMessage", "GroupShowUserUpdateMessage"); + + function f(e) + { + return m.apply(this, arguments) + } + + function m() + { + return m = p(regeneratorRuntime.mark((function e(t) + { + var n, r; + return regeneratorRuntime.wrap((function (e) + { + for (;;) switch (e.prev = e.next) + { + case 0: + return n = new Uint8Array(t), (r = s.im.Response.decode(n)).messages.forEach((function (e) + { + var t = e.method, + n = e.payload, + r = d.get(t); + if (r && s.im[r]) + { + var o = s.im[r].decode(n); + e.payload = o, o.common || (o = s.im[t].decode(n), e.payload = o) + } + else try + { + var i = t.replace("Webcast", ""), + a = s.im[i].decode(n); + e.payload = a + } + catch (l) + {} + })), e.abrupt("return", r); + case 4: + case "end": + return e.stop() + } + }), e) + }))), m.apply(this, arguments) + } + var y = function (e, t) + { + var n = function (e) + { + for (var t = (e + "=".repeat((4 - e.length % 4) % 4)).replace(/\-/g, "+").replace(/_/g, "/"), n = window.atob(t), r = new Uint8Array(n.length), o = 0; o < n.length; ++o) r[o] = n.charCodeAt(o); + return r + }(t); + return s.data[e].decode(n) + }, + b = g, + h = function (e) + { + return c.fromBits(e.low, e.high, e.unsigned) + }, + w = f + } + } +]); \ No newline at end of file diff --git a/protobuf/message.proto b/protobuf/message.proto index 6f3c27f..467417e 100644 --- a/protobuf/message.proto +++ b/protobuf/message.proto @@ -419,6 +419,22 @@ message TextPiece{ } message Image{ + repeated string urlList = 1; + string uri = 2; + int64 height = 3; + int64 width = 4; + string avgColor = 5; + int32 imageType = 6; + string openWebUrl = 7; + Content content = 8; + bool isAnimated = 9; + + message Content { + string name = 1; + string fontColor = 2; + int64 level = 3; + string alternativeText = 4; + } } message TextPieceUser{ diff --git a/protobuf/message_pb2.py b/protobuf/message_pb2.py index 239d7bc..79bf420 100644 --- a/protobuf/message_pb2.py +++ b/protobuf/message_pb2.py @@ -19,7 +19,7 @@ DESCRIPTOR = _descriptor.FileDescriptor( syntax='proto3', serialized_options=None, create_key=_descriptor._internal_create_key, - serialized_pb=b'\n\rmessage.proto\"\xa7\x02\n\x08Response\x12\x1a\n\x08messages\x18\x01 \x03(\x0b\x32\x08.Message\x12\x0e\n\x06\x63ursor\x18\x02 \x01(\t\x12\x15\n\rfetchInterval\x18\x03 \x01(\x03\x12\x0b\n\x03now\x18\x04 \x01(\x03\x12\x13\n\x0binternalExt\x18\x05 \x01(\t\x12\x11\n\tfetchType\x18\x06 \x01(\x05\x12/\n\x0brouteParams\x18\x07 \x03(\x0b\x32\x1a.Response.RouteParamsEntry\x12\x19\n\x11heartbeatDuration\x18\x08 \x01(\x03\x12\x0f\n\x07needAck\x18\t \x01(\x08\x12\x12\n\npushServer\x18\n \x01(\t\x1a\x32\n\x10RouteParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"Z\n\x07Message\x12\x0e\n\x06method\x18\x01 \x01(\t\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\x12\r\n\x05msgId\x18\x03 \x01(\x03\x12\x0f\n\x07msgType\x18\x04 \x01(\x05\x12\x0e\n\x06offset\x18\x05 \x01(\x03\"\xc5\x03\n\x12RoomUserSeqMessage\x12\x17\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x07.Common\x12.\n\x05ranks\x18\x02 \x03(\x0b\x32\x1f.RoomUserSeqMessage.Contributor\x12\r\n\x05total\x18\x03 \x01(\x03\x12\x0e\n\x06popStr\x18\x04 \x01(\t\x12.\n\x05seats\x18\x05 \x03(\x0b\x32\x1f.RoomUserSeqMessage.Contributor\x12\x12\n\npopularity\x18\x06 \x01(\x03\x12\x11\n\ttotalUser\x18\x07 \x01(\x03\x12\x14\n\x0ctotalUserStr\x18\x08 \x01(\t\x12\x10\n\x08totalStr\x18\t \x01(\t\x12\x1b\n\x13onlineUserForAnchor\x18\n \x01(\t\x12\x18\n\x10totalPvForAnchor\x18\x0b \x01(\t\x1a\x90\x01\n\x0b\x43ontributor\x12\r\n\x05score\x18\x01 \x01(\x03\x12\x13\n\x04user\x18\x02 \x01(\x0b\x32\x05.User\x12\x0c\n\x04rank\x18\x03 \x01(\x03\x12\r\n\x05\x64\x65lta\x18\x04 \x01(\x03\x12\x10\n\x08isHidden\x18\x05 \x01(\x08\x12\x18\n\x10scoreDescription\x18\x06 \x01(\t\x12\x14\n\x0c\x65xactlyScore\x18\x07 \x01(\t\"\xee\x07\n\x0bGiftMessage\x12\x17\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x07.Common\x12\x0e\n\x06giftId\x18\x02 \x01(\x03\x12\x16\n\x0e\x66\x61nTicketCount\x18\x03 \x01(\x03\x12\x12\n\ngroupCount\x18\x04 \x01(\x03\x12\x13\n\x0brepeatCount\x18\x05 \x01(\x03\x12\x12\n\ncomboCount\x18\x06 \x01(\x03\x12\x13\n\x04user\x18\x07 \x01(\x0b\x32\x05.User\x12\x15\n\x06toUser\x18\x08 \x01(\x0b\x32\x05.User\x12\x11\n\trepeatEnd\x18\t \x01(\x05\x12+\n\ntextEffect\x18\n \x01(\x0b\x32\x17.GiftMessage.TextEffect\x12\x0f\n\x07groupId\x18\x0b \x01(\x03\x12\x17\n\x0fincomeTaskgifts\x18\x0c \x01(\x03\x12\x1a\n\x12roomFanTicketCount\x18\r \x01(\x03\x12!\n\x08priority\x18\x0e \x01(\x0b\x32\x0f.GiftIMPriority\x12\x19\n\x04gift\x18\x0f \x01(\x0b\x32\x0b.GiftStruct\x12\r\n\x05logId\x18\x10 \x01(\t\x12\x10\n\x08sendType\x18\x11 \x01(\x03\x12+\n\x10publicAreaCommon\x18\x12 \x01(\x0b\x32\x11.PublicAreaCommon\x12\x1e\n\x0ftrayDisplayText\x18\x13 \x01(\x0b\x32\x05.Text\x12\x1c\n\x14\x62\x61nnedDisplayEffects\x18\x14 \x01(\x03\x12\x1f\n\x08trayInfo\x18\x15 \x01(\x0b\x32\r.GiftTrayInfo\x12/\n\x12\x61ssetEffectMixInfo\x18\x18 \x01(\x0b\x32\x13.AssetEffectMixInfo\x1a\x92\x03\n\nTextEffect\x12\x30\n\x08portrait\x18\x01 \x01(\x0b\x32\x1e.GiftMessage.TextEffect.Detail\x12\x31\n\tlandscape\x18\x02 \x01(\x0b\x32\x1e.GiftMessage.TextEffect.Detail\x1a\x9e\x02\n\x06\x44\x65tail\x12\x13\n\x04text\x18\x01 \x01(\x0b\x32\x05.Text\x12\x14\n\x0ctextFontSize\x18\x02 \x01(\x05\x12\x1a\n\nbackground\x18\x03 \x01(\x0b\x32\x06.Image\x12\r\n\x05start\x18\x04 \x01(\x05\x12\x10\n\x08\x64uration\x18\x05 \x01(\x05\x12\t\n\x01x\x18\x06 \x01(\x05\x12\t\n\x01y\x18\x07 \x01(\x05\x12\r\n\x05width\x18\x08 \x01(\x05\x12\x0e\n\x06height\x18\t \x01(\x05\x12\x10\n\x08shadowDx\x18\n \x01(\x05\x12\x10\n\x08shadowDy\x18\x0b \x01(\x05\x12\x14\n\x0cshadowRadius\x18\x0c \x01(\x05\x12\x13\n\x0bshadowColor\x18\r \x01(\t\x12\x13\n\x0bstrokeColor\x18\x0e \x01(\t\x12\x13\n\x0bstrokeWidth\x18\x0f \x01(\x05\"v\n\x0bLikeMessage\x12\x17\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x07.Common\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\x12\r\n\x05total\x18\x03 \x01(\x03\x12\r\n\x05\x63olor\x18\x04 \x01(\x03\x12\x13\n\x04user\x18\x05 \x01(\x0b\x32\x05.User\x12\x0c\n\x04icon\x18\x06 \x01(\t\"\x8e\x02\n\x0b\x43hatMessage\x12\x17\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x07.Common\x12\x13\n\x04user\x18\x02 \x01(\x0b\x32\x05.User\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\x17\n\x0fvisibleToSender\x18\x04 \x01(\x08\x12\x1f\n\x0f\x62\x61\x63kgroundImage\x18\x05 \x01(\x0b\x32\x06.Image\x12\x1b\n\x13\x66ullScreenTextColor\x18\x06 \x01(\t\x12!\n\x11\x62\x61\x63kgroundImageV2\x18\x07 \x01(\x0b\x32\x06.Image\x12+\n\x10publicAreaCommon\x18\t \x01(\x0b\x32\x11.PublicAreaCommon\x12\x19\n\tgiftImage\x18\n \x01(\x0b\x32\x06.Image\"\xb7\x01\n\rSocialMessage\x12\x17\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x07.Common\x12\x13\n\x04user\x18\x02 \x01(\x0b\x32\x05.User\x12\x11\n\tshareType\x18\x03 \x01(\x03\x12\x0e\n\x06\x61\x63tion\x18\x04 \x01(\x03\x12\x13\n\x0bshareTarget\x18\x05 \x01(\t\x12\x13\n\x0b\x66ollowCount\x18\x06 \x01(\x03\x12+\n\x10publicAreaCommon\x18\x07 \x01(\x0b\x32\x11.PublicAreaCommon\"\xf5\x06\n\rMemberMessage\x12\x17\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x07.Common\x12\x13\n\x04user\x18\x02 \x01(\x0b\x32\x05.User\x12\x13\n\x0bmemberCount\x18\x03 \x01(\x03\x12\x17\n\x08operator\x18\x04 \x01(\x0b\x32\x05.User\x12\x14\n\x0cisSetToAdmin\x18\x05 \x01(\x08\x12\x11\n\tisTopUser\x18\x06 \x01(\x08\x12\x11\n\trankScore\x18\x07 \x01(\x03\x12\x11\n\ttopUserNo\x18\x08 \x01(\x03\x12\x11\n\tenterType\x18\t \x01(\x03\x12\x0e\n\x06\x61\x63tion\x18\n \x01(\x03\x12\x19\n\x11\x61\x63tionDescription\x18\x0b \x01(\t\x12\x0e\n\x06userId\x18\x0c \x01(\x03\x12\x31\n\x0c\x65\x66\x66\x65\x63tConfig\x18\r \x01(\x0b\x32\x1b.MemberMessage.EffectConfig\x12\x0e\n\x06popStr\x18\x0e \x01(\t\x12\x36\n\x11\x65nterEffectConfig\x18\x0f \x01(\x0b\x32\x1b.MemberMessage.EffectConfig\x12\x1f\n\x0f\x62\x61\x63kgroundImage\x18\x10 \x01(\x0b\x32\x06.Image\x12!\n\x11\x62\x61\x63kgroundImageV2\x18\x11 \x01(\x0b\x32\x06.Image\x12 \n\x11\x61nchorDisplayText\x18\x12 \x01(\x0b\x32\x05.Text\x12+\n\x10publicAreaCommon\x18\x13 \x01(\x0b\x32\x11.PublicAreaCommon\x1a\xdc\x02\n\x0c\x45\x66\x66\x65\x63tConfig\x12\x0c\n\x04type\x18\x01 \x01(\x03\x12\x14\n\x04icon\x18\x02 \x01(\x0b\x32\x06.Image\x12\x11\n\tavatarPos\x18\x03 \x01(\x03\x12\x13\n\x04text\x18\x04 \x01(\x0b\x32\x05.Text\x12\x18\n\x08textIcon\x18\x05 \x01(\x0b\x32\x06.Image\x12\x10\n\x08stayTime\x18\x06 \x01(\x05\x12\x13\n\x0b\x61nimAssetId\x18\x07 \x01(\x03\x12\x15\n\x05\x62\x61\x64ge\x18\x08 \x01(\x0b\x32\x06.Image\x12\x18\n\x10\x66lexSettingArray\x18\t \x03(\x03\x12\x1f\n\x0ftextIconOverlay\x18\n \x01(\x0b\x32\x06.Image\x12\x1d\n\ranimatedBadge\x18\x0b \x01(\x0b\x32\x06.Image\x12\x15\n\rhasSweepLight\x18\x0c \x01(\x08\x12\x1c\n\x14textFlexSettingArray\x18\r \x03(\x03\x12\x19\n\x11\x63\x65nterAnimAssetId\x18\x0e \x01(\x03\"\x83\x03\n\x06\x43ommon\x12\x0e\n\x06method\x18\x01 \x01(\t\x12\r\n\x05msgId\x18\x02 \x01(\x03\x12\x0e\n\x06roomId\x18\x03 \x01(\x03\x12\x12\n\ncreateTime\x18\x04 \x01(\x03\x12\x0f\n\x07monitor\x18\x05 \x01(\x05\x12\x11\n\tisShowMsg\x18\x06 \x01(\x08\x12\x10\n\x08\x64\x65scribe\x18\x07 \x01(\t\x12\x1a\n\x0b\x64isplayText\x18\x08 \x01(\x0b\x32\x05.Text\x12\x10\n\x08\x66oldType\x18\t \x01(\x03\x12\x16\n\x0e\x61nchorFoldType\x18\n \x01(\x03\x12\x15\n\rpriorityScore\x18\x0b \x01(\x03\x12\r\n\x05logId\x18\x0c \x01(\t\x12\x19\n\x11msgProcessFilterK\x18\r \x01(\t\x12\x19\n\x11msgProcessFilterV\x18\x0e \x01(\t\x12\x13\n\x04user\x18\x0f \x01(\x0b\x32\x05.User\x12\x13\n\x04room\x18\x10 \x01(\x0b\x32\x05.Room\x12\x18\n\x10\x61nchorFoldTypeV2\x18\x11 \x01(\x03\x12\x1a\n\x12processAtSeiTimeMs\x18\x12 \x01(\x03\"k\n\x04Text\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x16\n\x0e\x64\x65\x66\x61ultPattern\x18\x02 \x01(\t\x12\"\n\rdefaultFormat\x18\x03 \x01(\x0b\x32\x0b.TextFormat\x12\x1a\n\x06pieces\x18\x04 \x03(\x0b\x32\n.TextPiece\"\xa9\x08\n\x04Room\x12\n\n\x02id\x18\x01 \x01(\x03\x12\r\n\x05idStr\x18\x02 \x01(\t\x12\x0e\n\x06status\x18\x03 \x01(\x03\x12\x13\n\x0bownerUserId\x18\x04 \x01(\x03\x12\r\n\x05title\x18\x05 \x01(\t\x12\x11\n\tuserCount\x18\x06 \x01(\x03\x12\x12\n\ncreateTime\x18\x07 \x01(\x03\x12\x15\n\rlinkmicLayout\x18\x08 \x01(\x03\x12\x12\n\nfinishTime\x18\t \x01(\x03\x12\x19\n\x05\x65xtra\x18\n \x01(\x0b\x32\n.RoomExtra\x12\x17\n\x0f\x64ynamicCoverUri\x18\x0b \x01(\t\x12\x35\n\x10\x64ynamicCoverDict\x18\x0c \x03(\x0b\x32\x1b.Room.DynamicCoverDictEntry\x12\x14\n\x0clastPingTime\x18\r \x01(\x03\x12\x0e\n\x06liveId\x18\x0e \x01(\x03\x12\x16\n\x0estreamProvider\x18\x0f \x01(\x03\x12\x0e\n\x06osType\x18\x10 \x01(\x03\x12\x15\n\rclientVersion\x18\x11 \x01(\x03\x12\x13\n\x0bwithLinkmic\x18\x12 \x01(\x08\x12\x1d\n\x15\x65nableRoomPerspective\x18\x13 \x01(\x08\x12\x15\n\x05\x63over\x18\x14 \x01(\x0b\x32\x06.Image\x12\x1c\n\x0c\x64ynamicCover\x18\x15 \x01(\x0b\x32\x06.Image\x12\x1f\n\x0f\x64ynamicCoverLow\x18\x16 \x01(\x0b\x32\x06.Image\x12\x10\n\x08shareUrl\x18\x17 \x01(\t\x12\x17\n\x0f\x61nchorShareText\x18\x18 \x01(\t\x12\x15\n\ruserShareText\x18\x19 \x01(\t\x12\x10\n\x08streamId\x18\x1a \x01(\x03\x12\x13\n\x0bstreamIdStr\x18\x1b \x01(\t\x12\x1d\n\tstreamUrl\x18\x1c \x01(\x0b\x32\n.StreamUrl\x12\x14\n\x0cmosaicStatus\x18\x1d \x01(\x03\x12\x11\n\tmosaicTip\x18\x1e \x01(\t\x12\x11\n\tcellStyle\x18\x1f \x01(\x03\x12\x19\n\x07linkMic\x18 \x01(\x0b\x32\x08.LinkMic\x12\x15\n\rluckymoneyNum\x18! \x01(\x03\x12\x1d\n\x08\x64\x65\x63oList\x18\" \x03(\x0b\x32\x0b.Decoration\x12\x18\n\x07topFans\x18# \x03(\x0b\x32\x07.TopFan\x12\x19\n\x05stats\x18$ \x01(\x0b\x32\n.RoomStats\x12\x1b\n\x13sunDailyIconContent\x18% \x01(\t\x12\x10\n\x08\x64istance\x18& \x01(\t\x12\x14\n\x0c\x64istanceCity\x18\' \x01(\t\x12\x10\n\x08location\x18( \x01(\t\x12\x14\n\x0crealDistance\x18) \x01(\t\x12\x1d\n\rfeedRoomLabel\x18* \x01(\x0b\x32\x06.Image\x12\x17\n\x0f\x63ommonLabelList\x18+ \x01(\t\x1a\x37\n\x15\x44ynamicCoverDictEntry\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x0b\n\tRoomExtra\"\x0b\n\tRoomStats\"\x0b\n\tStreamUrl\"\t\n\x07LinkMic\"\x0c\n\nDecoration\"\x08\n\x06TopFan\"\xf2\x14\n\x04User\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0f\n\x07shortId\x18\x02 \x01(\x03\x12\x10\n\x08nickname\x18\x03 \x01(\t\x12\x0e\n\x06gender\x18\x04 \x01(\x05\x12\x11\n\tsignature\x18\x05 \x01(\t\x12\r\n\x05level\x18\x06 \x01(\x05\x12\x10\n\x08\x62irthday\x18\x07 \x01(\x03\x12\x11\n\ttelephone\x18\x08 \x01(\t\x12\x1b\n\x0b\x61vatarThumb\x18\t \x01(\x0b\x32\x06.Image\x12\x1c\n\x0c\x61vatarMedium\x18\n \x01(\x0b\x32\x06.Image\x12\x1b\n\x0b\x61vatarLarge\x18\x0b \x01(\x0b\x32\x06.Image\x12\x10\n\x08verified\x18\x0c \x01(\x08\x12\x12\n\nexperience\x18\r \x01(\x05\x12\x0c\n\x04\x63ity\x18\x0e \x01(\t\x12\x0e\n\x06status\x18\x0f \x01(\x05\x12\x12\n\ncreateTime\x18\x10 \x01(\x03\x12\x12\n\nmodifyTime\x18\x11 \x01(\x03\x12\x0e\n\x06secret\x18\x12 \x01(\x05\x12\x16\n\x0eshareQrcodeUri\x18\x13 \x01(\t\x12\x1a\n\x12incomeSharePercent\x18\x14 \x01(\x05\x12\x1e\n\x0e\x62\x61\x64geImageList\x18\x15 \x01(\x0b\x32\x06.Image\x12$\n\nfollowInfo\x18\x16 \x01(\x0b\x32\x10.User.FollowInfo\x12 \n\x08payGrade\x18\x17 \x01(\x0b\x32\x0e.User.PayGrade\x12 \n\x08\x66\x61nsClub\x18\x18 \x01(\x0b\x32\x0e.User.FansClub\x12\x1c\n\x06\x62order\x18\x19 \x01(\x0b\x32\x0c.User.Border\x12\x11\n\tspecialId\x18\x1a \x01(\t\x12\x1c\n\x0c\x61vatarBorder\x18\x1b \x01(\x0b\x32\x06.Image\x12\x15\n\x05medal\x18\x1c \x01(\x0b\x32\x06.Image\x12\x1d\n\rrealTimeIcons\x18\x1d \x03(\x0b\x32\x06.Image\x12 \n\x10newRealTimeIcons\x18\x1e \x03(\x0b\x32\x06.Image\x12\x10\n\x08topVipNo\x18\x1f \x01(\x03\x12 \n\x08userAttr\x18 \x01(\x0b\x32\x0e.User.UserAttr\x12\x1e\n\x07ownRoom\x18! \x01(\x0b\x32\r.User.OwnRoom\x12\x10\n\x08payScore\x18\" \x01(\x03\x12\x13\n\x0bticketCount\x18# \x01(\x03\x12$\n\nanchorInfo\x18$ \x01(\x0b\x32\x10.User.AnchorInfo\x12\x14\n\x0clinkMicStats\x18% \x01(\x05\x12\x11\n\tdisplayId\x18& \x01(\t\x1a\n\n\x08UserAttr\x1a\t\n\x07OwnRoom\x1a\x0c\n\nAnchorInfo\x1ay\n\nFollowInfo\x12\x16\n\x0e\x66ollowingCount\x18\x01 \x01(\x03\x12\x15\n\rfollowerCount\x18\x02 \x01(\x03\x12\x14\n\x0c\x66ollowStatus\x18\x03 \x01(\x03\x12\x12\n\npushStatus\x18\x04 \x01(\x03\x12\x12\n\nremarkName\x18\x05 \x01(\t\x1a\xfd\x03\n\x08\x46\x61nsClub\x12)\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1b.User.FansClub.FansClubData\x12\x32\n\npreferData\x18\x02 \x03(\x0b\x32\x1e.User.FansClub.PreferDataEntry\x1aN\n\x0fPreferDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12*\n\x05value\x18\x02 \x01(\x0b\x32\x1b.User.FansClub.FansClubData:\x02\x38\x01\x1a\xc1\x02\n\x0c\x46\x61nsClubData\x12\x10\n\x08\x63lubName\x18\x01 \x01(\t\x12\r\n\x05level\x18\x02 \x01(\x05\x12\x1a\n\x12userFansClubStatus\x18\x03 \x01(\x05\x12\x34\n\x05\x62\x61\x64ge\x18\x04 \x01(\x0b\x32%.User.FansClub.FansClubData.UserBadge\x12\x18\n\x10\x61vailableGiftIds\x18\x05 \x03(\x03\x12\x10\n\x08\x61nchorId\x18\x06 \x01(\x03\x1a\x91\x01\n\tUserBadge\x12?\n\x05icons\x18\x01 \x03(\x0b\x32\x30.User.FansClub.FansClubData.UserBadge.IconsEntry\x12\r\n\x05title\x18\x02 \x01(\t\x1a\x34\n\nIconsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x15\n\x05value\x18\x02 \x01(\x0b\x32\x06.Image:\x02\x38\x01\x1a\x08\n\x06\x42order\x1a\xc7\x01\n\rGradeBuffInfo\x12\x11\n\tbuffLevel\x18\x01 \x01(\x03\x12\x0e\n\x06status\x18\x02 \x01(\x05\x12\x0f\n\x07\x65ndTime\x18\x03 \x01(\x03\x12\x35\n\tstatsInfo\x18\x04 \x03(\x0b\x32\".User.GradeBuffInfo.StatsInfoEntry\x12\x19\n\tbuffBadge\x18\x05 \x01(\x0b\x32\x06.Image\x1a\x30\n\x0eStatsInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a\xec\x06\n\x08PayGrade\x12\x19\n\x11totalDiamondCount\x18\x01 \x01(\x03\x12\x1b\n\x0b\x64iamondIcon\x18\x02 \x01(\x0b\x32\x06.Image\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x14\n\x04icon\x18\x04 \x01(\x0b\x32\x06.Image\x12\x10\n\x08nextName\x18\x05 \x01(\t\x12\r\n\x05level\x18\x06 \x01(\x03\x12\x18\n\x08nextIcon\x18\x07 \x01(\x0b\x32\x06.Image\x12\x13\n\x0bnextDiamond\x18\x08 \x01(\x03\x12\x12\n\nnowDiamond\x18\t \x01(\x03\x12\x1b\n\x13thisGradeMinDiamond\x18\n \x01(\x03\x12\x1b\n\x13thisGradeMaxDiamond\x18\x0b \x01(\x03\x12\x15\n\rpayDiamondBak\x18\x0c \x01(\x03\x12\x15\n\rgradeDescribe\x18\r \x01(\t\x12/\n\rgradeIconList\x18\x0e \x03(\x0b\x32\x18.User.PayGrade.GradeIcon\x12\x16\n\x0escreenChatType\x18\x0f \x01(\x03\x12\x16\n\x06imIcon\x18\x10 \x01(\x0b\x32\x06.Image\x12\x1f\n\x0fimIconWithLevel\x18\x11 \x01(\x0b\x32\x06.Image\x12\x18\n\x08liveIcon\x18\x12 \x01(\x0b\x32\x06.Image\x12\"\n\x12newImIconWithLevel\x18\x13 \x01(\x0b\x32\x06.Image\x12\x1b\n\x0bnewLiveIcon\x18\x14 \x01(\x0b\x32\x06.Image\x12\x1a\n\x12upgradeNeedConsume\x18\x15 \x01(\x03\x12\x16\n\x0enextPrivileges\x18\x16 \x01(\t\x12\x1a\n\nbackground\x18\x17 \x01(\x0b\x32\x06.Image\x12\x1e\n\x0e\x62\x61\x63kgroundBack\x18\x18 \x01(\x0b\x32\x06.Image\x12\r\n\x05score\x18\x19 \x01(\x03\x12%\n\x08\x62uffInfo\x18\x1a \x01(\x0b\x32\x13.User.GradeBuffInfo\x12\x14\n\x0bgradeBanner\x18\xe9\x07 \x01(\t\x12 \n\x0fprofileDialogBg\x18\xea\x07 \x01(\x0b\x32\x06.Image\x12$\n\x13profileDialogBgBack\x18\xeb\x07 \x01(\x0b\x32\x06.Image\x1aW\n\tGradeIcon\x12\x14\n\x04icon\x18\x01 \x01(\x0b\x32\x06.Image\x12\x13\n\x0biconDiamond\x18\x02 \x01(\x03\x12\r\n\x05level\x18\x03 \x01(\x03\x12\x10\n\x08levelStr\x18\x04 \x01(\t\"\xa5\x01\n\nTextFormat\x12\r\n\x05\x63olor\x18\x01 \x01(\t\x12\x0c\n\x04\x62old\x18\x02 \x01(\x08\x12\x0e\n\x06italic\x18\x03 \x01(\x08\x12\x0e\n\x06weight\x18\x04 \x01(\x05\x12\x13\n\x0bitalicAngle\x18\x05 \x01(\x05\x12\x10\n\x08\x66ontSize\x18\x06 \x01(\x05\x12\x1c\n\x14userHeightLightColor\x18\x07 \x01(\x08\x12\x15\n\ruseRemoteClor\x18\x08 \x01(\x08\"n\n\tTextPiece\x12\x0c\n\x04type\x18\x01 \x01(\x05\x12\x1b\n\x06\x66ormat\x18\x02 \x01(\x0b\x32\x0b.TextFormat\x12\x13\n\x0bstringValue\x18\x0b \x01(\t\x12!\n\tuserValue\x18\x15 \x01(\x0b\x32\x0e.TextPieceUser\"\x07\n\x05Image\"7\n\rTextPieceUser\x12\x13\n\x04user\x18\x01 \x01(\x0b\x32\x05.User\x12\x11\n\twithColon\x18\x02 \x01(\x08\"g\n\x10PublicAreaCommon\x12\x19\n\tuserLabel\x18\x01 \x01(\x0b\x32\x06.Image\x12\x19\n\x11userConsumeInRoom\x18\x02 \x01(\x03\x12\x1d\n\x15userSendGiftCntInRoom\x18\x03 \x01(\x03\"Q\n\x0eGiftIMPriority\x12\x12\n\nqueueSizes\x18\x01 \x03(\x03\x12\x19\n\x11selfQueuePriority\x18\x02 \x01(\x03\x12\x10\n\x08priority\x18\x03 \x01(\x03\"\xb9\x01\n\x0cGiftTrayInfo\x12\x1e\n\x0ftrayDisplayText\x18\x01 \x01(\x0b\x32\x05.Text\x12\x1b\n\x0btrayBaseImg\x18\x02 \x01(\x0b\x32\x06.Image\x12\x1b\n\x0btrayHeadImg\x18\x03 \x01(\x0b\x32\x06.Image\x12\x1c\n\x0ctrayRightImg\x18\x04 \x01(\x0b\x32\x06.Image\x12\x11\n\ttrayLevel\x18\x05 \x01(\x03\x12\x1e\n\x0etrayDynamicImg\x18\x06 \x01(\x0b\x32\x06.Image\"\x84\x0c\n\nGiftStruct\x12\x15\n\x05image\x18\x01 \x01(\x0b\x32\x06.Image\x12\x10\n\x08\x64\x65scribe\x18\x02 \x01(\t\x12\x0e\n\x06notify\x18\x03 \x01(\x08\x12\x10\n\x08\x64uration\x18\x04 \x01(\x03\x12\n\n\x02id\x18\x05 \x01(\x03\x12\x38\n\x0c\x66\x61nsclubInfo\x18\x06 \x01(\x0b\x32\".GiftStruct.GiftStructFansClubInfo\x12\x12\n\nforLinkmic\x18\x07 \x01(\x08\x12\x0e\n\x06\x64oodle\x18\x08 \x01(\x08\x12\x13\n\x0b\x66orFansclub\x18\t \x01(\x08\x12\r\n\x05\x63ombo\x18\n \x01(\x08\x12\x0c\n\x04type\x18\x0b \x01(\x05\x12\x14\n\x0c\x64iamondCount\x18\x0c \x01(\x05\x12\x1a\n\x12isDisplayedOnPanel\x18\r \x01(\x05\x12\x17\n\x0fprimaryEffectId\x18\x0e \x01(\x03\x12\x1d\n\rgiftLabelIcon\x18\x0f \x01(\x0b\x32\x06.Image\x12\x0c\n\x04name\x18\x10 \x01(\t\x12\x0e\n\x06region\x18\x11 \x01(\t\x12\x0e\n\x06manual\x18\x12 \x01(\t\x12\x11\n\tforCustom\x18\x13 \x01(\x08\x12\x37\n\x0especialEffects\x18\x14 \x03(\x0b\x32\x1f.GiftStruct.SpecialEffectsEntry\x12\x14\n\x04icon\x18\x15 \x01(\x0b\x32\x06.Image\x12\x12\n\nactionType\x18\x16 \x01(\x05\x12\x17\n\x0fwatermelonSeeds\x18\x17 \x01(\x05\x12\x12\n\ngoldEffect\x18\x18 \x01(\t\x12!\n\x04subs\x18\x19 \x03(\x0b\x32\x13.LuckyMoneyGiftMeta\x12\x13\n\x0bgoldenBeans\x18\x1a \x01(\x03\x12\x12\n\nhonorLevel\x18\x1b \x01(\x03\x12\x10\n\x08itemType\x18\x1c \x01(\x05\x12\x11\n\tschemeUrl\x18\x1d \x01(\t\x12*\n\rgiftOperation\x18\x1e \x01(\x0b\x32\x13.GiftPanelOperation\x12\x11\n\teventName\x18\x1f \x01(\t\x12\x12\n\nnobleLevel\x18 \x01(\x03\x12\x10\n\x08guideUrl\x18! \x01(\t\x12\x16\n\x0epunishMedicine\x18\" \x01(\x08\x12\x11\n\tforPortal\x18# \x01(\x08\x12\x14\n\x0c\x62usinessText\x18$ \x01(\t\x12\x0f\n\x07\x63nyGift\x18% \x01(\x08\x12\r\n\x05\x61ppId\x18& \x01(\x03\x12\x10\n\x08vipLevel\x18\' \x01(\x03\x12\x0e\n\x06isGray\x18( \x01(\x08\x12\x15\n\rgraySchemeUrl\x18) \x01(\t\x12\x11\n\tgiftScene\x18* \x01(\x03\x12\x1f\n\ngiftBanner\x18+ \x01(\x0b\x32\x0b.GiftBanner\x12\x14\n\x0ctriggerWords\x18, \x03(\t\x12$\n\rgiftBuffInfos\x18- \x03(\x0b\x32\r.GiftBuffInfo\x12\x18\n\x10\x66orFirstRecharge\x18. \x01(\x08\x12%\n\x15\x64ynamicImgForSelected\x18/ \x01(\x0b\x32\x06.Image\x12\x17\n\x0f\x61\x66terSendAction\x18\x30 \x01(\x05\x12\x17\n\x0fgiftOfflineTime\x18\x31 \x01(\x03\x12\x12\n\ntopBarText\x18\x32 \x01(\t\x12\x1e\n\x0etopRightAvatar\x18\x33 \x01(\x0b\x32\x06.Image\x12\x17\n\x0f\x62\x61nnerSchemeUrl\x18\x34 \x01(\t\x12\x10\n\x08isLocked\x18\x35 \x01(\x08\x12\x14\n\x0creqExtraType\x18\x36 \x01(\x03\x12\x10\n\x08\x61ssetIds\x18\x37 \x03(\x03\x12)\n\x0fgiftPreviewInfo\x18\x38 \x01(\x0b\x32\x10.GiftPreviewInfo\x12\x19\n\x07giftTip\x18\x39 \x01(\x0b\x32\x08.GiftTip\x12\x1b\n\x13needSweepLightCount\x18: \x01(\x05\x12!\n\tgroupInfo\x18; \x03(\x0b\x32\x0e.GiftGroupInfo\x1a\x35\n\x13SpecialEffectsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a=\n\x16GiftStructFansClubInfo\x12\x10\n\x08minLevel\x18\x01 \x01(\x05\x12\x11\n\tinsertPos\x18\x02 \x01(\x05\"\x14\n\x12\x41ssetEffectMixInfo\"\x14\n\x12LuckyMoneyGiftMeta\"\x14\n\x12GiftPanelOperation\"\x0c\n\nGiftBanner\"\x0e\n\x0cGiftBuffInfo\"\x11\n\x0fGiftPreviewInfo\"\t\n\x07GiftTip\"\x0f\n\rGiftGroupInfo\"\x14\n\x12\x45\x66\x66\x65\x63tMixImageInfob\x06proto3' + serialized_pb=b'\n\rmessage.proto\"\xa7\x02\n\x08Response\x12\x1a\n\x08messages\x18\x01 \x03(\x0b\x32\x08.Message\x12\x0e\n\x06\x63ursor\x18\x02 \x01(\t\x12\x15\n\rfetchInterval\x18\x03 \x01(\x03\x12\x0b\n\x03now\x18\x04 \x01(\x03\x12\x13\n\x0binternalExt\x18\x05 \x01(\t\x12\x11\n\tfetchType\x18\x06 \x01(\x05\x12/\n\x0brouteParams\x18\x07 \x03(\x0b\x32\x1a.Response.RouteParamsEntry\x12\x19\n\x11heartbeatDuration\x18\x08 \x01(\x03\x12\x0f\n\x07needAck\x18\t \x01(\x08\x12\x12\n\npushServer\x18\n \x01(\t\x1a\x32\n\x10RouteParamsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"Z\n\x07Message\x12\x0e\n\x06method\x18\x01 \x01(\t\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\x12\r\n\x05msgId\x18\x03 \x01(\x03\x12\x0f\n\x07msgType\x18\x04 \x01(\x05\x12\x0e\n\x06offset\x18\x05 \x01(\x03\"\xc5\x03\n\x12RoomUserSeqMessage\x12\x17\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x07.Common\x12.\n\x05ranks\x18\x02 \x03(\x0b\x32\x1f.RoomUserSeqMessage.Contributor\x12\r\n\x05total\x18\x03 \x01(\x03\x12\x0e\n\x06popStr\x18\x04 \x01(\t\x12.\n\x05seats\x18\x05 \x03(\x0b\x32\x1f.RoomUserSeqMessage.Contributor\x12\x12\n\npopularity\x18\x06 \x01(\x03\x12\x11\n\ttotalUser\x18\x07 \x01(\x03\x12\x14\n\x0ctotalUserStr\x18\x08 \x01(\t\x12\x10\n\x08totalStr\x18\t \x01(\t\x12\x1b\n\x13onlineUserForAnchor\x18\n \x01(\t\x12\x18\n\x10totalPvForAnchor\x18\x0b \x01(\t\x1a\x90\x01\n\x0b\x43ontributor\x12\r\n\x05score\x18\x01 \x01(\x03\x12\x13\n\x04user\x18\x02 \x01(\x0b\x32\x05.User\x12\x0c\n\x04rank\x18\x03 \x01(\x03\x12\r\n\x05\x64\x65lta\x18\x04 \x01(\x03\x12\x10\n\x08isHidden\x18\x05 \x01(\x08\x12\x18\n\x10scoreDescription\x18\x06 \x01(\t\x12\x14\n\x0c\x65xactlyScore\x18\x07 \x01(\t\"\xee\x07\n\x0bGiftMessage\x12\x17\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x07.Common\x12\x0e\n\x06giftId\x18\x02 \x01(\x03\x12\x16\n\x0e\x66\x61nTicketCount\x18\x03 \x01(\x03\x12\x12\n\ngroupCount\x18\x04 \x01(\x03\x12\x13\n\x0brepeatCount\x18\x05 \x01(\x03\x12\x12\n\ncomboCount\x18\x06 \x01(\x03\x12\x13\n\x04user\x18\x07 \x01(\x0b\x32\x05.User\x12\x15\n\x06toUser\x18\x08 \x01(\x0b\x32\x05.User\x12\x11\n\trepeatEnd\x18\t \x01(\x05\x12+\n\ntextEffect\x18\n \x01(\x0b\x32\x17.GiftMessage.TextEffect\x12\x0f\n\x07groupId\x18\x0b \x01(\x03\x12\x17\n\x0fincomeTaskgifts\x18\x0c \x01(\x03\x12\x1a\n\x12roomFanTicketCount\x18\r \x01(\x03\x12!\n\x08priority\x18\x0e \x01(\x0b\x32\x0f.GiftIMPriority\x12\x19\n\x04gift\x18\x0f \x01(\x0b\x32\x0b.GiftStruct\x12\r\n\x05logId\x18\x10 \x01(\t\x12\x10\n\x08sendType\x18\x11 \x01(\x03\x12+\n\x10publicAreaCommon\x18\x12 \x01(\x0b\x32\x11.PublicAreaCommon\x12\x1e\n\x0ftrayDisplayText\x18\x13 \x01(\x0b\x32\x05.Text\x12\x1c\n\x14\x62\x61nnedDisplayEffects\x18\x14 \x01(\x03\x12\x1f\n\x08trayInfo\x18\x15 \x01(\x0b\x32\r.GiftTrayInfo\x12/\n\x12\x61ssetEffectMixInfo\x18\x18 \x01(\x0b\x32\x13.AssetEffectMixInfo\x1a\x92\x03\n\nTextEffect\x12\x30\n\x08portrait\x18\x01 \x01(\x0b\x32\x1e.GiftMessage.TextEffect.Detail\x12\x31\n\tlandscape\x18\x02 \x01(\x0b\x32\x1e.GiftMessage.TextEffect.Detail\x1a\x9e\x02\n\x06\x44\x65tail\x12\x13\n\x04text\x18\x01 \x01(\x0b\x32\x05.Text\x12\x14\n\x0ctextFontSize\x18\x02 \x01(\x05\x12\x1a\n\nbackground\x18\x03 \x01(\x0b\x32\x06.Image\x12\r\n\x05start\x18\x04 \x01(\x05\x12\x10\n\x08\x64uration\x18\x05 \x01(\x05\x12\t\n\x01x\x18\x06 \x01(\x05\x12\t\n\x01y\x18\x07 \x01(\x05\x12\r\n\x05width\x18\x08 \x01(\x05\x12\x0e\n\x06height\x18\t \x01(\x05\x12\x10\n\x08shadowDx\x18\n \x01(\x05\x12\x10\n\x08shadowDy\x18\x0b \x01(\x05\x12\x14\n\x0cshadowRadius\x18\x0c \x01(\x05\x12\x13\n\x0bshadowColor\x18\r \x01(\t\x12\x13\n\x0bstrokeColor\x18\x0e \x01(\t\x12\x13\n\x0bstrokeWidth\x18\x0f \x01(\x05\"v\n\x0bLikeMessage\x12\x17\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x07.Common\x12\r\n\x05\x63ount\x18\x02 \x01(\x03\x12\r\n\x05total\x18\x03 \x01(\x03\x12\r\n\x05\x63olor\x18\x04 \x01(\x03\x12\x13\n\x04user\x18\x05 \x01(\x0b\x32\x05.User\x12\x0c\n\x04icon\x18\x06 \x01(\t\"\x8e\x02\n\x0b\x43hatMessage\x12\x17\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x07.Common\x12\x13\n\x04user\x18\x02 \x01(\x0b\x32\x05.User\x12\x0f\n\x07\x63ontent\x18\x03 \x01(\t\x12\x17\n\x0fvisibleToSender\x18\x04 \x01(\x08\x12\x1f\n\x0f\x62\x61\x63kgroundImage\x18\x05 \x01(\x0b\x32\x06.Image\x12\x1b\n\x13\x66ullScreenTextColor\x18\x06 \x01(\t\x12!\n\x11\x62\x61\x63kgroundImageV2\x18\x07 \x01(\x0b\x32\x06.Image\x12+\n\x10publicAreaCommon\x18\t \x01(\x0b\x32\x11.PublicAreaCommon\x12\x19\n\tgiftImage\x18\n \x01(\x0b\x32\x06.Image\"\xb7\x01\n\rSocialMessage\x12\x17\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x07.Common\x12\x13\n\x04user\x18\x02 \x01(\x0b\x32\x05.User\x12\x11\n\tshareType\x18\x03 \x01(\x03\x12\x0e\n\x06\x61\x63tion\x18\x04 \x01(\x03\x12\x13\n\x0bshareTarget\x18\x05 \x01(\t\x12\x13\n\x0b\x66ollowCount\x18\x06 \x01(\x03\x12+\n\x10publicAreaCommon\x18\x07 \x01(\x0b\x32\x11.PublicAreaCommon\"\xf5\x06\n\rMemberMessage\x12\x17\n\x06\x63ommon\x18\x01 \x01(\x0b\x32\x07.Common\x12\x13\n\x04user\x18\x02 \x01(\x0b\x32\x05.User\x12\x13\n\x0bmemberCount\x18\x03 \x01(\x03\x12\x17\n\x08operator\x18\x04 \x01(\x0b\x32\x05.User\x12\x14\n\x0cisSetToAdmin\x18\x05 \x01(\x08\x12\x11\n\tisTopUser\x18\x06 \x01(\x08\x12\x11\n\trankScore\x18\x07 \x01(\x03\x12\x11\n\ttopUserNo\x18\x08 \x01(\x03\x12\x11\n\tenterType\x18\t \x01(\x03\x12\x0e\n\x06\x61\x63tion\x18\n \x01(\x03\x12\x19\n\x11\x61\x63tionDescription\x18\x0b \x01(\t\x12\x0e\n\x06userId\x18\x0c \x01(\x03\x12\x31\n\x0c\x65\x66\x66\x65\x63tConfig\x18\r \x01(\x0b\x32\x1b.MemberMessage.EffectConfig\x12\x0e\n\x06popStr\x18\x0e \x01(\t\x12\x36\n\x11\x65nterEffectConfig\x18\x0f \x01(\x0b\x32\x1b.MemberMessage.EffectConfig\x12\x1f\n\x0f\x62\x61\x63kgroundImage\x18\x10 \x01(\x0b\x32\x06.Image\x12!\n\x11\x62\x61\x63kgroundImageV2\x18\x11 \x01(\x0b\x32\x06.Image\x12 \n\x11\x61nchorDisplayText\x18\x12 \x01(\x0b\x32\x05.Text\x12+\n\x10publicAreaCommon\x18\x13 \x01(\x0b\x32\x11.PublicAreaCommon\x1a\xdc\x02\n\x0c\x45\x66\x66\x65\x63tConfig\x12\x0c\n\x04type\x18\x01 \x01(\x03\x12\x14\n\x04icon\x18\x02 \x01(\x0b\x32\x06.Image\x12\x11\n\tavatarPos\x18\x03 \x01(\x03\x12\x13\n\x04text\x18\x04 \x01(\x0b\x32\x05.Text\x12\x18\n\x08textIcon\x18\x05 \x01(\x0b\x32\x06.Image\x12\x10\n\x08stayTime\x18\x06 \x01(\x05\x12\x13\n\x0b\x61nimAssetId\x18\x07 \x01(\x03\x12\x15\n\x05\x62\x61\x64ge\x18\x08 \x01(\x0b\x32\x06.Image\x12\x18\n\x10\x66lexSettingArray\x18\t \x03(\x03\x12\x1f\n\x0ftextIconOverlay\x18\n \x01(\x0b\x32\x06.Image\x12\x1d\n\ranimatedBadge\x18\x0b \x01(\x0b\x32\x06.Image\x12\x15\n\rhasSweepLight\x18\x0c \x01(\x08\x12\x1c\n\x14textFlexSettingArray\x18\r \x03(\x03\x12\x19\n\x11\x63\x65nterAnimAssetId\x18\x0e \x01(\x03\"\x83\x03\n\x06\x43ommon\x12\x0e\n\x06method\x18\x01 \x01(\t\x12\r\n\x05msgId\x18\x02 \x01(\x03\x12\x0e\n\x06roomId\x18\x03 \x01(\x03\x12\x12\n\ncreateTime\x18\x04 \x01(\x03\x12\x0f\n\x07monitor\x18\x05 \x01(\x05\x12\x11\n\tisShowMsg\x18\x06 \x01(\x08\x12\x10\n\x08\x64\x65scribe\x18\x07 \x01(\t\x12\x1a\n\x0b\x64isplayText\x18\x08 \x01(\x0b\x32\x05.Text\x12\x10\n\x08\x66oldType\x18\t \x01(\x03\x12\x16\n\x0e\x61nchorFoldType\x18\n \x01(\x03\x12\x15\n\rpriorityScore\x18\x0b \x01(\x03\x12\r\n\x05logId\x18\x0c \x01(\t\x12\x19\n\x11msgProcessFilterK\x18\r \x01(\t\x12\x19\n\x11msgProcessFilterV\x18\x0e \x01(\t\x12\x13\n\x04user\x18\x0f \x01(\x0b\x32\x05.User\x12\x13\n\x04room\x18\x10 \x01(\x0b\x32\x05.Room\x12\x18\n\x10\x61nchorFoldTypeV2\x18\x11 \x01(\x03\x12\x1a\n\x12processAtSeiTimeMs\x18\x12 \x01(\x03\"k\n\x04Text\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x16\n\x0e\x64\x65\x66\x61ultPattern\x18\x02 \x01(\t\x12\"\n\rdefaultFormat\x18\x03 \x01(\x0b\x32\x0b.TextFormat\x12\x1a\n\x06pieces\x18\x04 \x03(\x0b\x32\n.TextPiece\"\x92\t\n\x04Room\x12\n\n\x02id\x18\x01 \x01(\x03\x12\r\n\x05idStr\x18\x02 \x01(\t\x12\x0e\n\x06status\x18\x03 \x01(\x03\x12\x13\n\x0bownerUserId\x18\x04 \x01(\x03\x12\r\n\x05title\x18\x05 \x01(\t\x12\x11\n\tuserCount\x18\x06 \x01(\x03\x12\x12\n\ncreateTime\x18\x07 \x01(\x03\x12\x15\n\rlinkmicLayout\x18\x08 \x01(\x03\x12\x12\n\nfinishTime\x18\t \x01(\x03\x12\x19\n\x05\x65xtra\x18\n \x01(\x0b\x32\n.RoomExtra\x12\x17\n\x0f\x64ynamicCoverUri\x18\x0b \x01(\t\x12\x35\n\x10\x64ynamicCoverDict\x18\x0c \x03(\x0b\x32\x1b.Room.DynamicCoverDictEntry\x12\x14\n\x0clastPingTime\x18\r \x01(\x03\x12\x0e\n\x06liveId\x18\x0e \x01(\x03\x12\x16\n\x0estreamProvider\x18\x0f \x01(\x03\x12\x0e\n\x06osType\x18\x10 \x01(\x03\x12\x15\n\rclientVersion\x18\x11 \x01(\x03\x12\x13\n\x0bwithLinkmic\x18\x12 \x01(\x08\x12\x1d\n\x15\x65nableRoomPerspective\x18\x13 \x01(\x08\x12\x15\n\x05\x63over\x18\x14 \x01(\x0b\x32\x06.Image\x12\x1c\n\x0c\x64ynamicCover\x18\x15 \x01(\x0b\x32\x06.Image\x12\x1f\n\x0f\x64ynamicCoverLow\x18\x16 \x01(\x0b\x32\x06.Image\x12\x10\n\x08shareUrl\x18\x17 \x01(\t\x12\x17\n\x0f\x61nchorShareText\x18\x18 \x01(\t\x12\x15\n\ruserShareText\x18\x19 \x01(\t\x12\x10\n\x08streamId\x18\x1a \x01(\x03\x12\x13\n\x0bstreamIdStr\x18\x1b \x01(\t\x12\x1d\n\tstreamUrl\x18\x1c \x01(\x0b\x32\n.StreamUrl\x12\x14\n\x0cmosaicStatus\x18\x1d \x01(\x03\x12\x11\n\tmosaicTip\x18\x1e \x01(\t\x12\x11\n\tcellStyle\x18\x1f \x01(\x03\x12\x19\n\x07linkMic\x18 \x01(\x0b\x32\x08.LinkMic\x12\x15\n\rluckymoneyNum\x18! \x01(\x03\x12\x1d\n\x08\x64\x65\x63oList\x18\" \x03(\x0b\x32\x0b.Decoration\x12\x18\n\x07topFans\x18# \x03(\x0b\x32\x07.TopFan\x12\x19\n\x05stats\x18$ \x01(\x0b\x32\n.RoomStats\x12\x1b\n\x13sunDailyIconContent\x18% \x01(\t\x12\x10\n\x08\x64istance\x18& \x01(\t\x12\x14\n\x0c\x64istanceCity\x18\' \x01(\t\x12\x10\n\x08location\x18( \x01(\t\x12\x14\n\x0crealDistance\x18) \x01(\t\x12\x1d\n\rfeedRoomLabel\x18* \x01(\x0b\x32\x06.Image\x12\x17\n\x0f\x63ommonLabelList\x18+ \x01(\t\x12&\n\x0flivingRoomAttrs\x18, \x01(\x0b\x32\r.RoomUserAttr\x12\x14\n\x0c\x61\x64minUserIds\x18- \x03(\x03\x12\x14\n\x05owner\x18. \x01(\x0b\x32\x05.User\x12\x13\n\x0bprivateInfo\x18/ \x01(\t\x1a\x37\n\x15\x44ynamicCoverDictEntry\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x0b\n\tRoomExtra\"\x0b\n\tRoomStats\"\x0e\n\x0cRoomUserAttr\"\x0b\n\tStreamUrl\"\t\n\x07LinkMic\"\x0c\n\nDecoration\"\x08\n\x06TopFan\"\xf2\x14\n\x04User\x12\n\n\x02id\x18\x01 \x01(\x03\x12\x0f\n\x07shortId\x18\x02 \x01(\x03\x12\x10\n\x08nickname\x18\x03 \x01(\t\x12\x0e\n\x06gender\x18\x04 \x01(\x05\x12\x11\n\tsignature\x18\x05 \x01(\t\x12\r\n\x05level\x18\x06 \x01(\x05\x12\x10\n\x08\x62irthday\x18\x07 \x01(\x03\x12\x11\n\ttelephone\x18\x08 \x01(\t\x12\x1b\n\x0b\x61vatarThumb\x18\t \x01(\x0b\x32\x06.Image\x12\x1c\n\x0c\x61vatarMedium\x18\n \x01(\x0b\x32\x06.Image\x12\x1b\n\x0b\x61vatarLarge\x18\x0b \x01(\x0b\x32\x06.Image\x12\x10\n\x08verified\x18\x0c \x01(\x08\x12\x12\n\nexperience\x18\r \x01(\x05\x12\x0c\n\x04\x63ity\x18\x0e \x01(\t\x12\x0e\n\x06status\x18\x0f \x01(\x05\x12\x12\n\ncreateTime\x18\x10 \x01(\x03\x12\x12\n\nmodifyTime\x18\x11 \x01(\x03\x12\x0e\n\x06secret\x18\x12 \x01(\x05\x12\x16\n\x0eshareQrcodeUri\x18\x13 \x01(\t\x12\x1a\n\x12incomeSharePercent\x18\x14 \x01(\x05\x12\x1e\n\x0e\x62\x61\x64geImageList\x18\x15 \x01(\x0b\x32\x06.Image\x12$\n\nfollowInfo\x18\x16 \x01(\x0b\x32\x10.User.FollowInfo\x12 \n\x08payGrade\x18\x17 \x01(\x0b\x32\x0e.User.PayGrade\x12 \n\x08\x66\x61nsClub\x18\x18 \x01(\x0b\x32\x0e.User.FansClub\x12\x1c\n\x06\x62order\x18\x19 \x01(\x0b\x32\x0c.User.Border\x12\x11\n\tspecialId\x18\x1a \x01(\t\x12\x1c\n\x0c\x61vatarBorder\x18\x1b \x01(\x0b\x32\x06.Image\x12\x15\n\x05medal\x18\x1c \x01(\x0b\x32\x06.Image\x12\x1d\n\rrealTimeIcons\x18\x1d \x03(\x0b\x32\x06.Image\x12 \n\x10newRealTimeIcons\x18\x1e \x03(\x0b\x32\x06.Image\x12\x10\n\x08topVipNo\x18\x1f \x01(\x03\x12 \n\x08userAttr\x18 \x01(\x0b\x32\x0e.User.UserAttr\x12\x1e\n\x07ownRoom\x18! \x01(\x0b\x32\r.User.OwnRoom\x12\x10\n\x08payScore\x18\" \x01(\x03\x12\x13\n\x0bticketCount\x18# \x01(\x03\x12$\n\nanchorInfo\x18$ \x01(\x0b\x32\x10.User.AnchorInfo\x12\x14\n\x0clinkMicStats\x18% \x01(\x05\x12\x11\n\tdisplayId\x18& \x01(\t\x1a\n\n\x08UserAttr\x1a\t\n\x07OwnRoom\x1a\x0c\n\nAnchorInfo\x1ay\n\nFollowInfo\x12\x16\n\x0e\x66ollowingCount\x18\x01 \x01(\x03\x12\x15\n\rfollowerCount\x18\x02 \x01(\x03\x12\x14\n\x0c\x66ollowStatus\x18\x03 \x01(\x03\x12\x12\n\npushStatus\x18\x04 \x01(\x03\x12\x12\n\nremarkName\x18\x05 \x01(\t\x1a\xfd\x03\n\x08\x46\x61nsClub\x12)\n\x04\x64\x61ta\x18\x01 \x01(\x0b\x32\x1b.User.FansClub.FansClubData\x12\x32\n\npreferData\x18\x02 \x03(\x0b\x32\x1e.User.FansClub.PreferDataEntry\x1aN\n\x0fPreferDataEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12*\n\x05value\x18\x02 \x01(\x0b\x32\x1b.User.FansClub.FansClubData:\x02\x38\x01\x1a\xc1\x02\n\x0c\x46\x61nsClubData\x12\x10\n\x08\x63lubName\x18\x01 \x01(\t\x12\r\n\x05level\x18\x02 \x01(\x05\x12\x1a\n\x12userFansClubStatus\x18\x03 \x01(\x05\x12\x34\n\x05\x62\x61\x64ge\x18\x04 \x01(\x0b\x32%.User.FansClub.FansClubData.UserBadge\x12\x18\n\x10\x61vailableGiftIds\x18\x05 \x03(\x03\x12\x10\n\x08\x61nchorId\x18\x06 \x01(\x03\x1a\x91\x01\n\tUserBadge\x12?\n\x05icons\x18\x01 \x03(\x0b\x32\x30.User.FansClub.FansClubData.UserBadge.IconsEntry\x12\r\n\x05title\x18\x02 \x01(\t\x1a\x34\n\nIconsEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12\x15\n\x05value\x18\x02 \x01(\x0b\x32\x06.Image:\x02\x38\x01\x1a\x08\n\x06\x42order\x1a\xc7\x01\n\rGradeBuffInfo\x12\x11\n\tbuffLevel\x18\x01 \x01(\x03\x12\x0e\n\x06status\x18\x02 \x01(\x05\x12\x0f\n\x07\x65ndTime\x18\x03 \x01(\x03\x12\x35\n\tstatsInfo\x18\x04 \x03(\x0b\x32\".User.GradeBuffInfo.StatsInfoEntry\x12\x19\n\tbuffBadge\x18\x05 \x01(\x0b\x32\x06.Image\x1a\x30\n\x0eStatsInfoEntry\x12\x0b\n\x03key\x18\x01 \x01(\x03\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a\xec\x06\n\x08PayGrade\x12\x19\n\x11totalDiamondCount\x18\x01 \x01(\x03\x12\x1b\n\x0b\x64iamondIcon\x18\x02 \x01(\x0b\x32\x06.Image\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x14\n\x04icon\x18\x04 \x01(\x0b\x32\x06.Image\x12\x10\n\x08nextName\x18\x05 \x01(\t\x12\r\n\x05level\x18\x06 \x01(\x03\x12\x18\n\x08nextIcon\x18\x07 \x01(\x0b\x32\x06.Image\x12\x13\n\x0bnextDiamond\x18\x08 \x01(\x03\x12\x12\n\nnowDiamond\x18\t \x01(\x03\x12\x1b\n\x13thisGradeMinDiamond\x18\n \x01(\x03\x12\x1b\n\x13thisGradeMaxDiamond\x18\x0b \x01(\x03\x12\x15\n\rpayDiamondBak\x18\x0c \x01(\x03\x12\x15\n\rgradeDescribe\x18\r \x01(\t\x12/\n\rgradeIconList\x18\x0e \x03(\x0b\x32\x18.User.PayGrade.GradeIcon\x12\x16\n\x0escreenChatType\x18\x0f \x01(\x03\x12\x16\n\x06imIcon\x18\x10 \x01(\x0b\x32\x06.Image\x12\x1f\n\x0fimIconWithLevel\x18\x11 \x01(\x0b\x32\x06.Image\x12\x18\n\x08liveIcon\x18\x12 \x01(\x0b\x32\x06.Image\x12\"\n\x12newImIconWithLevel\x18\x13 \x01(\x0b\x32\x06.Image\x12\x1b\n\x0bnewLiveIcon\x18\x14 \x01(\x0b\x32\x06.Image\x12\x1a\n\x12upgradeNeedConsume\x18\x15 \x01(\x03\x12\x16\n\x0enextPrivileges\x18\x16 \x01(\t\x12\x1a\n\nbackground\x18\x17 \x01(\x0b\x32\x06.Image\x12\x1e\n\x0e\x62\x61\x63kgroundBack\x18\x18 \x01(\x0b\x32\x06.Image\x12\r\n\x05score\x18\x19 \x01(\x03\x12%\n\x08\x62uffInfo\x18\x1a \x01(\x0b\x32\x13.User.GradeBuffInfo\x12\x14\n\x0bgradeBanner\x18\xe9\x07 \x01(\t\x12 \n\x0fprofileDialogBg\x18\xea\x07 \x01(\x0b\x32\x06.Image\x12$\n\x13profileDialogBgBack\x18\xeb\x07 \x01(\x0b\x32\x06.Image\x1aW\n\tGradeIcon\x12\x14\n\x04icon\x18\x01 \x01(\x0b\x32\x06.Image\x12\x13\n\x0biconDiamond\x18\x02 \x01(\x03\x12\r\n\x05level\x18\x03 \x01(\x03\x12\x10\n\x08levelStr\x18\x04 \x01(\t\"\xa5\x01\n\nTextFormat\x12\r\n\x05\x63olor\x18\x01 \x01(\t\x12\x0c\n\x04\x62old\x18\x02 \x01(\x08\x12\x0e\n\x06italic\x18\x03 \x01(\x08\x12\x0e\n\x06weight\x18\x04 \x01(\x05\x12\x13\n\x0bitalicAngle\x18\x05 \x01(\x05\x12\x10\n\x08\x66ontSize\x18\x06 \x01(\x05\x12\x1c\n\x14userHeightLightColor\x18\x07 \x01(\x08\x12\x15\n\ruseRemoteClor\x18\x08 \x01(\x08\"n\n\tTextPiece\x12\x0c\n\x04type\x18\x01 \x01(\x05\x12\x1b\n\x06\x66ormat\x18\x02 \x01(\x0b\x32\x0b.TextFormat\x12\x13\n\x0bstringValue\x18\x0b \x01(\t\x12!\n\tuserValue\x18\x15 \x01(\x0b\x32\x0e.TextPieceUser\"\x86\x02\n\x05Image\x12\x0f\n\x07urlList\x18\x01 \x03(\t\x12\x0b\n\x03uri\x18\x02 \x01(\t\x12\x0e\n\x06height\x18\x03 \x01(\x03\x12\r\n\x05width\x18\x04 \x01(\x03\x12\x10\n\x08\x61vgColor\x18\x05 \x01(\t\x12\x11\n\timageType\x18\x06 \x01(\x05\x12\x12\n\nopenWebUrl\x18\x07 \x01(\t\x12\x1f\n\x07\x63ontent\x18\x08 \x01(\x0b\x32\x0e.Image.Content\x12\x12\n\nisAnimated\x18\t \x01(\x08\x1aR\n\x07\x43ontent\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tfontColor\x18\x02 \x01(\t\x12\r\n\x05level\x18\x03 \x01(\x03\x12\x17\n\x0f\x61lternativeText\x18\x04 \x01(\t\"7\n\rTextPieceUser\x12\x13\n\x04user\x18\x01 \x01(\x0b\x32\x05.User\x12\x11\n\twithColon\x18\x02 \x01(\x08\"g\n\x10PublicAreaCommon\x12\x19\n\tuserLabel\x18\x01 \x01(\x0b\x32\x06.Image\x12\x19\n\x11userConsumeInRoom\x18\x02 \x01(\x03\x12\x1d\n\x15userSendGiftCntInRoom\x18\x03 \x01(\x03\"Q\n\x0eGiftIMPriority\x12\x12\n\nqueueSizes\x18\x01 \x03(\x03\x12\x19\n\x11selfQueuePriority\x18\x02 \x01(\x03\x12\x10\n\x08priority\x18\x03 \x01(\x03\"\xb9\x01\n\x0cGiftTrayInfo\x12\x1e\n\x0ftrayDisplayText\x18\x01 \x01(\x0b\x32\x05.Text\x12\x1b\n\x0btrayBaseImg\x18\x02 \x01(\x0b\x32\x06.Image\x12\x1b\n\x0btrayHeadImg\x18\x03 \x01(\x0b\x32\x06.Image\x12\x1c\n\x0ctrayRightImg\x18\x04 \x01(\x0b\x32\x06.Image\x12\x11\n\ttrayLevel\x18\x05 \x01(\x03\x12\x1e\n\x0etrayDynamicImg\x18\x06 \x01(\x0b\x32\x06.Image\"\x84\x0c\n\nGiftStruct\x12\x15\n\x05image\x18\x01 \x01(\x0b\x32\x06.Image\x12\x10\n\x08\x64\x65scribe\x18\x02 \x01(\t\x12\x0e\n\x06notify\x18\x03 \x01(\x08\x12\x10\n\x08\x64uration\x18\x04 \x01(\x03\x12\n\n\x02id\x18\x05 \x01(\x03\x12\x38\n\x0c\x66\x61nsclubInfo\x18\x06 \x01(\x0b\x32\".GiftStruct.GiftStructFansClubInfo\x12\x12\n\nforLinkmic\x18\x07 \x01(\x08\x12\x0e\n\x06\x64oodle\x18\x08 \x01(\x08\x12\x13\n\x0b\x66orFansclub\x18\t \x01(\x08\x12\r\n\x05\x63ombo\x18\n \x01(\x08\x12\x0c\n\x04type\x18\x0b \x01(\x05\x12\x14\n\x0c\x64iamondCount\x18\x0c \x01(\x05\x12\x1a\n\x12isDisplayedOnPanel\x18\r \x01(\x05\x12\x17\n\x0fprimaryEffectId\x18\x0e \x01(\x03\x12\x1d\n\rgiftLabelIcon\x18\x0f \x01(\x0b\x32\x06.Image\x12\x0c\n\x04name\x18\x10 \x01(\t\x12\x0e\n\x06region\x18\x11 \x01(\t\x12\x0e\n\x06manual\x18\x12 \x01(\t\x12\x11\n\tforCustom\x18\x13 \x01(\x08\x12\x37\n\x0especialEffects\x18\x14 \x03(\x0b\x32\x1f.GiftStruct.SpecialEffectsEntry\x12\x14\n\x04icon\x18\x15 \x01(\x0b\x32\x06.Image\x12\x12\n\nactionType\x18\x16 \x01(\x05\x12\x17\n\x0fwatermelonSeeds\x18\x17 \x01(\x05\x12\x12\n\ngoldEffect\x18\x18 \x01(\t\x12!\n\x04subs\x18\x19 \x03(\x0b\x32\x13.LuckyMoneyGiftMeta\x12\x13\n\x0bgoldenBeans\x18\x1a \x01(\x03\x12\x12\n\nhonorLevel\x18\x1b \x01(\x03\x12\x10\n\x08itemType\x18\x1c \x01(\x05\x12\x11\n\tschemeUrl\x18\x1d \x01(\t\x12*\n\rgiftOperation\x18\x1e \x01(\x0b\x32\x13.GiftPanelOperation\x12\x11\n\teventName\x18\x1f \x01(\t\x12\x12\n\nnobleLevel\x18 \x01(\x03\x12\x10\n\x08guideUrl\x18! \x01(\t\x12\x16\n\x0epunishMedicine\x18\" \x01(\x08\x12\x11\n\tforPortal\x18# \x01(\x08\x12\x14\n\x0c\x62usinessText\x18$ \x01(\t\x12\x0f\n\x07\x63nyGift\x18% \x01(\x08\x12\r\n\x05\x61ppId\x18& \x01(\x03\x12\x10\n\x08vipLevel\x18\' \x01(\x03\x12\x0e\n\x06isGray\x18( \x01(\x08\x12\x15\n\rgraySchemeUrl\x18) \x01(\t\x12\x11\n\tgiftScene\x18* \x01(\x03\x12\x1f\n\ngiftBanner\x18+ \x01(\x0b\x32\x0b.GiftBanner\x12\x14\n\x0ctriggerWords\x18, \x03(\t\x12$\n\rgiftBuffInfos\x18- \x03(\x0b\x32\r.GiftBuffInfo\x12\x18\n\x10\x66orFirstRecharge\x18. \x01(\x08\x12%\n\x15\x64ynamicImgForSelected\x18/ \x01(\x0b\x32\x06.Image\x12\x17\n\x0f\x61\x66terSendAction\x18\x30 \x01(\x05\x12\x17\n\x0fgiftOfflineTime\x18\x31 \x01(\x03\x12\x12\n\ntopBarText\x18\x32 \x01(\t\x12\x1e\n\x0etopRightAvatar\x18\x33 \x01(\x0b\x32\x06.Image\x12\x17\n\x0f\x62\x61nnerSchemeUrl\x18\x34 \x01(\t\x12\x10\n\x08isLocked\x18\x35 \x01(\x08\x12\x14\n\x0creqExtraType\x18\x36 \x01(\x03\x12\x10\n\x08\x61ssetIds\x18\x37 \x03(\x03\x12)\n\x0fgiftPreviewInfo\x18\x38 \x01(\x0b\x32\x10.GiftPreviewInfo\x12\x19\n\x07giftTip\x18\x39 \x01(\x0b\x32\x08.GiftTip\x12\x1b\n\x13needSweepLightCount\x18: \x01(\x05\x12!\n\tgroupInfo\x18; \x03(\x0b\x32\x0e.GiftGroupInfo\x1a\x35\n\x13SpecialEffectsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a=\n\x16GiftStructFansClubInfo\x12\x10\n\x08minLevel\x18\x01 \x01(\x05\x12\x11\n\tinsertPos\x18\x02 \x01(\x05\"\x14\n\x12\x41ssetEffectMixInfo\"\x14\n\x12LuckyMoneyGiftMeta\"\x14\n\x12GiftPanelOperation\"\x0c\n\nGiftBanner\"\x0e\n\x0cGiftBuffInfo\"\x11\n\x0fGiftPreviewInfo\"\t\n\x07GiftTip\"\x0f\n\rGiftGroupInfo\"\x14\n\x12\x45\x66\x66\x65\x63tMixImageInfob\x06proto3' ) @@ -1486,8 +1486,8 @@ _ROOM_DYNAMICCOVERDICTENTRY = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=4849, - serialized_end=4904, + serialized_start=4954, + serialized_end=5009, ) _ROOM = _descriptor.Descriptor( @@ -1799,6 +1799,34 @@ _ROOM = _descriptor.Descriptor( message_type=None, enum_type=None, containing_type=None, is_extension=False, extension_scope=None, serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='livingRoomAttrs', full_name='Room.livingRoomAttrs', index=43, + number=44, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='adminUserIds', full_name='Room.adminUserIds', index=44, + number=45, type=3, cpp_type=2, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='owner', full_name='Room.owner', index=45, + number=46, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='privateInfo', full_name='Room.privateInfo', index=46, + number=47, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -1812,7 +1840,7 @@ _ROOM = _descriptor.Descriptor( oneofs=[ ], serialized_start=3839, - serialized_end=4904, + serialized_end=5009, ) @@ -1836,8 +1864,8 @@ _ROOMEXTRA = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=4906, - serialized_end=4917, + serialized_start=5011, + serialized_end=5022, ) @@ -1861,8 +1889,33 @@ _ROOMSTATS = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=4919, - serialized_end=4930, + serialized_start=5024, + serialized_end=5035, +) + + +_ROOMUSERATTR = _descriptor.Descriptor( + name='RoomUserAttr', + full_name='RoomUserAttr', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + ], + extensions=[ + ], + nested_types=[], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=5037, + serialized_end=5051, ) @@ -1886,8 +1939,8 @@ _STREAMURL = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=4932, - serialized_end=4943, + serialized_start=5053, + serialized_end=5064, ) @@ -1911,8 +1964,8 @@ _LINKMIC = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=4945, - serialized_end=4954, + serialized_start=5066, + serialized_end=5075, ) @@ -1936,8 +1989,8 @@ _DECORATION = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=4956, - serialized_end=4968, + serialized_start=5077, + serialized_end=5089, ) @@ -1961,8 +2014,8 @@ _TOPFAN = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=4970, - serialized_end=4978, + serialized_start=5091, + serialized_end=5099, ) @@ -1986,8 +2039,8 @@ _USER_USERATTR = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=5894, - serialized_end=5904, + serialized_start=6015, + serialized_end=6025, ) _USER_OWNROOM = _descriptor.Descriptor( @@ -2010,8 +2063,8 @@ _USER_OWNROOM = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=5906, - serialized_end=5915, + serialized_start=6027, + serialized_end=6036, ) _USER_ANCHORINFO = _descriptor.Descriptor( @@ -2034,8 +2087,8 @@ _USER_ANCHORINFO = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=5917, - serialized_end=5929, + serialized_start=6038, + serialized_end=6050, ) _USER_FOLLOWINFO = _descriptor.Descriptor( @@ -2093,8 +2146,8 @@ _USER_FOLLOWINFO = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=5931, - serialized_end=6052, + serialized_start=6052, + serialized_end=6173, ) _USER_FANSCLUB_PREFERDATAENTRY = _descriptor.Descriptor( @@ -2131,8 +2184,8 @@ _USER_FANSCLUB_PREFERDATAENTRY = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=6162, - serialized_end=6240, + serialized_start=6283, + serialized_end=6361, ) _USER_FANSCLUB_FANSCLUBDATA_USERBADGE_ICONSENTRY = _descriptor.Descriptor( @@ -2169,8 +2222,8 @@ _USER_FANSCLUB_FANSCLUBDATA_USERBADGE_ICONSENTRY = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=6512, - serialized_end=6564, + serialized_start=6633, + serialized_end=6685, ) _USER_FANSCLUB_FANSCLUBDATA_USERBADGE = _descriptor.Descriptor( @@ -2207,8 +2260,8 @@ _USER_FANSCLUB_FANSCLUBDATA_USERBADGE = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=6419, - serialized_end=6564, + serialized_start=6540, + serialized_end=6685, ) _USER_FANSCLUB_FANSCLUBDATA = _descriptor.Descriptor( @@ -2273,8 +2326,8 @@ _USER_FANSCLUB_FANSCLUBDATA = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=6243, - serialized_end=6564, + serialized_start=6364, + serialized_end=6685, ) _USER_FANSCLUB = _descriptor.Descriptor( @@ -2311,8 +2364,8 @@ _USER_FANSCLUB = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=6055, - serialized_end=6564, + serialized_start=6176, + serialized_end=6685, ) _USER_BORDER = _descriptor.Descriptor( @@ -2335,8 +2388,8 @@ _USER_BORDER = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=6566, - serialized_end=6574, + serialized_start=6687, + serialized_end=6695, ) _USER_GRADEBUFFINFO_STATSINFOENTRY = _descriptor.Descriptor( @@ -2373,8 +2426,8 @@ _USER_GRADEBUFFINFO_STATSINFOENTRY = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=6728, - serialized_end=6776, + serialized_start=6849, + serialized_end=6897, ) _USER_GRADEBUFFINFO = _descriptor.Descriptor( @@ -2432,8 +2485,8 @@ _USER_GRADEBUFFINFO = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=6577, - serialized_end=6776, + serialized_start=6698, + serialized_end=6897, ) _USER_PAYGRADE_GRADEICON = _descriptor.Descriptor( @@ -2484,8 +2537,8 @@ _USER_PAYGRADE_GRADEICON = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=7568, - serialized_end=7655, + serialized_start=7689, + serialized_end=7776, ) _USER_PAYGRADE = _descriptor.Descriptor( @@ -2711,8 +2764,8 @@ _USER_PAYGRADE = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=6779, - serialized_end=7655, + serialized_start=6900, + serialized_end=7776, ) _USER = _descriptor.Descriptor( @@ -3001,8 +3054,8 @@ _USER = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=4981, - serialized_end=7655, + serialized_start=5102, + serialized_end=7776, ) @@ -3082,8 +3135,8 @@ _TEXTFORMAT = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=7658, - serialized_end=7823, + serialized_start=7779, + serialized_end=7944, ) @@ -3135,19 +3188,47 @@ _TEXTPIECE = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=7825, - serialized_end=7935, + serialized_start=7946, + serialized_end=8056, ) -_IMAGE = _descriptor.Descriptor( - name='Image', - full_name='Image', +_IMAGE_CONTENT = _descriptor.Descriptor( + name='Content', + full_name='Image.Content', filename=None, file=DESCRIPTOR, containing_type=None, create_key=_descriptor._internal_create_key, fields=[ + _descriptor.FieldDescriptor( + name='name', full_name='Image.Content.name', index=0, + number=1, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='fontColor', full_name='Image.Content.fontColor', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='level', full_name='Image.Content.level', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='alternativeText', full_name='Image.Content.alternativeText', index=3, + number=4, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), ], extensions=[ ], @@ -3160,8 +3241,95 @@ _IMAGE = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=7937, - serialized_end=7944, + serialized_start=8239, + serialized_end=8321, +) + +_IMAGE = _descriptor.Descriptor( + name='Image', + full_name='Image', + filename=None, + file=DESCRIPTOR, + containing_type=None, + create_key=_descriptor._internal_create_key, + fields=[ + _descriptor.FieldDescriptor( + name='urlList', full_name='Image.urlList', index=0, + number=1, type=9, cpp_type=9, label=3, + has_default_value=False, default_value=[], + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='uri', full_name='Image.uri', index=1, + number=2, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='height', full_name='Image.height', index=2, + number=3, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='width', full_name='Image.width', index=3, + number=4, type=3, cpp_type=2, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='avgColor', full_name='Image.avgColor', index=4, + number=5, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='imageType', full_name='Image.imageType', index=5, + number=6, type=5, cpp_type=1, label=1, + has_default_value=False, default_value=0, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='openWebUrl', full_name='Image.openWebUrl', index=6, + number=7, type=9, cpp_type=9, label=1, + has_default_value=False, default_value=b"".decode('utf-8'), + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='content', full_name='Image.content', index=7, + number=8, type=11, cpp_type=10, label=1, + has_default_value=False, default_value=None, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + _descriptor.FieldDescriptor( + name='isAnimated', full_name='Image.isAnimated', index=8, + number=9, type=8, cpp_type=7, label=1, + has_default_value=False, default_value=False, + message_type=None, enum_type=None, containing_type=None, + is_extension=False, extension_scope=None, + serialized_options=None, file=DESCRIPTOR, create_key=_descriptor._internal_create_key), + ], + extensions=[ + ], + nested_types=[_IMAGE_CONTENT, ], + enum_types=[ + ], + serialized_options=None, + is_extendable=False, + syntax='proto3', + extension_ranges=[], + oneofs=[ + ], + serialized_start=8059, + serialized_end=8321, ) @@ -3199,8 +3367,8 @@ _TEXTPIECEUSER = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=7946, - serialized_end=8001, + serialized_start=8323, + serialized_end=8378, ) @@ -3245,8 +3413,8 @@ _PUBLICAREACOMMON = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=8003, - serialized_end=8106, + serialized_start=8380, + serialized_end=8483, ) @@ -3291,8 +3459,8 @@ _GIFTIMPRIORITY = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=8108, - serialized_end=8189, + serialized_start=8485, + serialized_end=8566, ) @@ -3358,8 +3526,8 @@ _GIFTTRAYINFO = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=8192, - serialized_end=8377, + serialized_start=8569, + serialized_end=8754, ) @@ -3397,8 +3565,8 @@ _GIFTSTRUCT_SPECIALEFFECTSENTRY = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=9804, - serialized_end=9857, + serialized_start=10181, + serialized_end=10234, ) _GIFTSTRUCT_GIFTSTRUCTFANSCLUBINFO = _descriptor.Descriptor( @@ -3435,8 +3603,8 @@ _GIFTSTRUCT_GIFTSTRUCTFANSCLUBINFO = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=9859, - serialized_end=9920, + serialized_start=10236, + serialized_end=10297, ) _GIFTSTRUCT = _descriptor.Descriptor( @@ -3872,8 +4040,8 @@ _GIFTSTRUCT = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=8380, - serialized_end=9920, + serialized_start=8757, + serialized_end=10297, ) @@ -3897,8 +4065,8 @@ _ASSETEFFECTMIXINFO = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=9922, - serialized_end=9942, + serialized_start=10299, + serialized_end=10319, ) @@ -3922,8 +4090,8 @@ _LUCKYMONEYGIFTMETA = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=9944, - serialized_end=9964, + serialized_start=10321, + serialized_end=10341, ) @@ -3947,8 +4115,8 @@ _GIFTPANELOPERATION = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=9966, - serialized_end=9986, + serialized_start=10343, + serialized_end=10363, ) @@ -3972,8 +4140,8 @@ _GIFTBANNER = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=9988, - serialized_end=10000, + serialized_start=10365, + serialized_end=10377, ) @@ -3997,8 +4165,8 @@ _GIFTBUFFINFO = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=10002, - serialized_end=10016, + serialized_start=10379, + serialized_end=10393, ) @@ -4022,8 +4190,8 @@ _GIFTPREVIEWINFO = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=10018, - serialized_end=10035, + serialized_start=10395, + serialized_end=10412, ) @@ -4047,8 +4215,8 @@ _GIFTTIP = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=10037, - serialized_end=10046, + serialized_start=10414, + serialized_end=10423, ) @@ -4072,8 +4240,8 @@ _GIFTGROUPINFO = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=10048, - serialized_end=10063, + serialized_start=10425, + serialized_end=10440, ) @@ -4097,8 +4265,8 @@ _EFFECTMIXIMAGEINFO = _descriptor.Descriptor( extension_ranges=[], oneofs=[ ], - serialized_start=10065, - serialized_end=10085, + serialized_start=10442, + serialized_end=10462, ) _RESPONSE_ROUTEPARAMSENTRY.containing_type = _RESPONSE @@ -4169,6 +4337,8 @@ _ROOM.fields_by_name['decoList'].message_type = _DECORATION _ROOM.fields_by_name['topFans'].message_type = _TOPFAN _ROOM.fields_by_name['stats'].message_type = _ROOMSTATS _ROOM.fields_by_name['feedRoomLabel'].message_type = _IMAGE +_ROOM.fields_by_name['livingRoomAttrs'].message_type = _ROOMUSERATTR +_ROOM.fields_by_name['owner'].message_type = _USER _USER_USERATTR.containing_type = _USER _USER_OWNROOM.containing_type = _USER _USER_ANCHORINFO.containing_type = _USER @@ -4223,6 +4393,8 @@ _USER.fields_by_name['ownRoom'].message_type = _USER_OWNROOM _USER.fields_by_name['anchorInfo'].message_type = _USER_ANCHORINFO _TEXTPIECE.fields_by_name['format'].message_type = _TEXTFORMAT _TEXTPIECE.fields_by_name['userValue'].message_type = _TEXTPIECEUSER +_IMAGE_CONTENT.containing_type = _IMAGE +_IMAGE.fields_by_name['content'].message_type = _IMAGE_CONTENT _TEXTPIECEUSER.fields_by_name['user'].message_type = _USER _PUBLICAREACOMMON.fields_by_name['userLabel'].message_type = _IMAGE _GIFTTRAYINFO.fields_by_name['trayDisplayText'].message_type = _TEXT @@ -4259,6 +4431,7 @@ DESCRIPTOR.message_types_by_name['Text'] = _TEXT DESCRIPTOR.message_types_by_name['Room'] = _ROOM DESCRIPTOR.message_types_by_name['RoomExtra'] = _ROOMEXTRA DESCRIPTOR.message_types_by_name['RoomStats'] = _ROOMSTATS +DESCRIPTOR.message_types_by_name['RoomUserAttr'] = _ROOMUSERATTR DESCRIPTOR.message_types_by_name['StreamUrl'] = _STREAMURL DESCRIPTOR.message_types_by_name['LinkMic'] = _LINKMIC DESCRIPTOR.message_types_by_name['Decoration'] = _DECORATION @@ -4422,6 +4595,13 @@ RoomStats = _reflection.GeneratedProtocolMessageType('RoomStats', (_message.Mess }) _sym_db.RegisterMessage(RoomStats) +RoomUserAttr = _reflection.GeneratedProtocolMessageType('RoomUserAttr', (_message.Message,), { + 'DESCRIPTOR' : _ROOMUSERATTR, + '__module__' : 'message_pb2' + # @@protoc_insertion_point(class_scope:RoomUserAttr) + }) +_sym_db.RegisterMessage(RoomUserAttr) + StreamUrl = _reflection.GeneratedProtocolMessageType('StreamUrl', (_message.Message,), { 'DESCRIPTOR' : _STREAMURL, '__module__' : 'message_pb2' @@ -4584,11 +4764,19 @@ TextPiece = _reflection.GeneratedProtocolMessageType('TextPiece', (_message.Mess _sym_db.RegisterMessage(TextPiece) Image = _reflection.GeneratedProtocolMessageType('Image', (_message.Message,), { + + 'Content' : _reflection.GeneratedProtocolMessageType('Content', (_message.Message,), { + 'DESCRIPTOR' : _IMAGE_CONTENT, + '__module__' : 'message_pb2' + # @@protoc_insertion_point(class_scope:Image.Content) + }) + , 'DESCRIPTOR' : _IMAGE, '__module__' : 'message_pb2' # @@protoc_insertion_point(class_scope:Image) }) _sym_db.RegisterMessage(Image) +_sym_db.RegisterMessage(Image.Content) TextPieceUser = _reflection.GeneratedProtocolMessageType('TextPieceUser', (_message.Message,), { 'DESCRIPTOR' : _TEXTPIECEUSER, diff --git a/requirements.txt b/requirements.txt index befdfb2..ba487b9 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,4 @@ colorama==0.4.4 protobuf==3.19.1 +pymongo==3.12.1 watchdog==2.1.6 diff --git a/scripts/__pycache__/__init__.cpython-39.pyc b/scripts/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..b3a67ec Binary files /dev/null and b/scripts/__pycache__/__init__.cpython-39.pyc differ diff --git a/scripts/__pycache__/watcher.cpython-39.pyc b/scripts/__pycache__/watcher.cpython-39.pyc new file mode 100644 index 0000000..76ee429 Binary files /dev/null and b/scripts/__pycache__/watcher.cpython-39.pyc differ diff --git a/store/__init__.py b/store/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/store/__pycache__/__init__.cpython-39.pyc b/store/__pycache__/__init__.cpython-39.pyc new file mode 100644 index 0000000..a20f5b6 Binary files /dev/null and b/store/__pycache__/__init__.cpython-39.pyc differ diff --git a/store/__pycache__/mongo.cpython-39.pyc b/store/__pycache__/mongo.cpython-39.pyc new file mode 100644 index 0000000..2bf8062 Binary files /dev/null and b/store/__pycache__/mongo.cpython-39.pyc differ diff --git a/store/mongo.py b/store/mongo.py new file mode 100644 index 0000000..000ba84 --- /dev/null +++ b/store/mongo.py @@ -0,0 +1,15 @@ +import pymongo + +class MongoStore: + def __init__(self): + self.client = pymongo.MongoClient("mongodb://localhost:27017/") + self.db = self.client['tiktok'] + + def set_collection(self, collection): + self.collection = self.db[collection] + + def insert_one(self, data): + return self.collection.insert_one(data) + + def insert_many(self, data): + return self.collection.insert_many(data)