Room.cs 38 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: room.proto
  3. #pragma warning disable 1591, 0612, 3021
  4. #region Designer generated code
  5. using pb = global::Google.Protobuf;
  6. using pbc = global::Google.Protobuf.Collections;
  7. using pbr = global::Google.Protobuf.Reflection;
  8. using scg = global::System.Collections.Generic;
  9. namespace Protos {
  10. /// <summary>Holder for reflection information generated from room.proto</summary>
  11. public static partial class RoomReflection {
  12. #region Descriptor
  13. /// <summary>File descriptor for room.proto</summary>
  14. public static pbr::FileDescriptor Descriptor {
  15. get { return descriptor; }
  16. }
  17. private static pbr::FileDescriptor descriptor;
  18. static RoomReflection() {
  19. byte[] descriptorData = global::System.Convert.FromBase64String(
  20. string.Concat(
  21. "Cgpyb29tLnByb3RvEgZwcm90b3MaDnVzZXJpbmZvLnByb3RvGgxyZXN1bHQu",
  22. "cHJvdG8iEwoRUm9vbUNyZWF0ZVJlcXVlc3QiFAoSUm9vbUNyZWF0ZVJlc3Bv",
  23. "bnNlIjMKD1Jvb21Kb2luUmVxdWVzdBIOCgZSb29tSUQYASABKA0SEAoIUm9v",
  24. "bVR5cGUYAiABKAUiUgoQUm9vbUpvaW5SZXNwb25zZRIeCgZSZXN1bHQYASAB",
  25. "KAsyDi5wcm90b3MuUmVzdWx0Eg4KBlJvb21JRBgCIAEoDRIOCgZNQVNURVIY",
  26. "AyABKAgiMgoMUm9vbUpvaW5QdXNoEiIKCFVzZXJJbmZvGAEgASgLMhAucHJv",
  27. "dG9zLlVzZXJJbmZvIhIKEFJvb21MZWF2ZVJlcXVlc3QiMwoRUm9vbUxlYXZl",
  28. "UmVzcG9uc2USHgoGUmVzdWx0GAEgASgLMg4ucHJvdG9zLlJlc3VsdCIfCg1S",
  29. "b29tTGVhdmVQdXNoEg4KBlVzZXJJRBgBIAEoDSIRCg9Sb29tRGlzbWlzc1B1",
  30. "c2giJgoUUm9vbVN3aXRjaE1hc3RlclB1c2gSDgoGVXNlcklEGAEgASgNYgZw",
  31. "cm90bzM="));
  32. descriptor = pbr::FileDescriptor.FromGeneratedCode(descriptorData,
  33. new pbr::FileDescriptor[] { global::Protos.UserinfoReflection.Descriptor, global::Protos.ResultReflection.Descriptor, },
  34. new pbr::GeneratedClrTypeInfo(null, new pbr::GeneratedClrTypeInfo[] {
  35. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RoomCreateRequest), global::Protos.RoomCreateRequest.Parser, null, null, null, null),
  36. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RoomCreateResponse), global::Protos.RoomCreateResponse.Parser, null, null, null, null),
  37. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RoomJoinRequest), global::Protos.RoomJoinRequest.Parser, new[]{ "RoomID", "RoomType" }, null, null, null),
  38. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RoomJoinResponse), global::Protos.RoomJoinResponse.Parser, new[]{ "Result", "RoomID", "MASTER" }, null, null, null),
  39. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RoomJoinPush), global::Protos.RoomJoinPush.Parser, new[]{ "UserInfo" }, null, null, null),
  40. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RoomLeaveRequest), global::Protos.RoomLeaveRequest.Parser, null, null, null, null),
  41. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RoomLeaveResponse), global::Protos.RoomLeaveResponse.Parser, new[]{ "Result" }, null, null, null),
  42. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RoomLeavePush), global::Protos.RoomLeavePush.Parser, new[]{ "UserID" }, null, null, null),
  43. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RoomDismissPush), global::Protos.RoomDismissPush.Parser, null, null, null, null),
  44. new pbr::GeneratedClrTypeInfo(typeof(global::Protos.RoomSwitchMasterPush), global::Protos.RoomSwitchMasterPush.Parser, new[]{ "UserID" }, null, null, null)
  45. }));
  46. }
  47. #endregion
  48. }
  49. #region Messages
  50. public sealed partial class RoomCreateRequest : pb::IMessage<RoomCreateRequest> {
  51. private static readonly pb::MessageParser<RoomCreateRequest> _parser = new pb::MessageParser<RoomCreateRequest>(() => new RoomCreateRequest());
  52. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  53. public static pb::MessageParser<RoomCreateRequest> Parser { get { return _parser; } }
  54. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  55. public static pbr::MessageDescriptor Descriptor {
  56. get { return global::Protos.RoomReflection.Descriptor.MessageTypes[0]; }
  57. }
  58. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  59. pbr::MessageDescriptor pb::IMessage.Descriptor {
  60. get { return Descriptor; }
  61. }
  62. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  63. public RoomCreateRequest() {
  64. OnConstruction();
  65. }
  66. partial void OnConstruction();
  67. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  68. public RoomCreateRequest(RoomCreateRequest other) : this() {
  69. }
  70. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  71. public RoomCreateRequest Clone() {
  72. return new RoomCreateRequest(this);
  73. }
  74. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  75. public override bool Equals(object other) {
  76. return Equals(other as RoomCreateRequest);
  77. }
  78. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  79. public bool Equals(RoomCreateRequest other) {
  80. if (ReferenceEquals(other, null)) {
  81. return false;
  82. }
  83. if (ReferenceEquals(other, this)) {
  84. return true;
  85. }
  86. return true;
  87. }
  88. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  89. public override int GetHashCode() {
  90. int hash = 1;
  91. return hash;
  92. }
  93. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  94. public override string ToString() {
  95. return pb::JsonFormatter.ToDiagnosticString(this);
  96. }
  97. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  98. public void WriteTo(pb::CodedOutputStream output) {
  99. }
  100. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  101. public int CalculateSize() {
  102. int size = 0;
  103. return size;
  104. }
  105. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  106. public void MergeFrom(RoomCreateRequest other) {
  107. if (other == null) {
  108. return;
  109. }
  110. }
  111. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  112. public void MergeFrom(pb::CodedInputStream input) {
  113. uint tag;
  114. while ((tag = input.ReadTag()) != 0) {
  115. switch(tag) {
  116. default:
  117. input.SkipLastField();
  118. break;
  119. }
  120. }
  121. }
  122. }
  123. public sealed partial class RoomCreateResponse : pb::IMessage<RoomCreateResponse> {
  124. private static readonly pb::MessageParser<RoomCreateResponse> _parser = new pb::MessageParser<RoomCreateResponse>(() => new RoomCreateResponse());
  125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  126. public static pb::MessageParser<RoomCreateResponse> Parser { get { return _parser; } }
  127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  128. public static pbr::MessageDescriptor Descriptor {
  129. get { return global::Protos.RoomReflection.Descriptor.MessageTypes[1]; }
  130. }
  131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  132. pbr::MessageDescriptor pb::IMessage.Descriptor {
  133. get { return Descriptor; }
  134. }
  135. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  136. public RoomCreateResponse() {
  137. OnConstruction();
  138. }
  139. partial void OnConstruction();
  140. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  141. public RoomCreateResponse(RoomCreateResponse other) : this() {
  142. }
  143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  144. public RoomCreateResponse Clone() {
  145. return new RoomCreateResponse(this);
  146. }
  147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  148. public override bool Equals(object other) {
  149. return Equals(other as RoomCreateResponse);
  150. }
  151. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  152. public bool Equals(RoomCreateResponse other) {
  153. if (ReferenceEquals(other, null)) {
  154. return false;
  155. }
  156. if (ReferenceEquals(other, this)) {
  157. return true;
  158. }
  159. return true;
  160. }
  161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  162. public override int GetHashCode() {
  163. int hash = 1;
  164. return hash;
  165. }
  166. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  167. public override string ToString() {
  168. return pb::JsonFormatter.ToDiagnosticString(this);
  169. }
  170. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  171. public void WriteTo(pb::CodedOutputStream output) {
  172. }
  173. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  174. public int CalculateSize() {
  175. int size = 0;
  176. return size;
  177. }
  178. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  179. public void MergeFrom(RoomCreateResponse other) {
  180. if (other == null) {
  181. return;
  182. }
  183. }
  184. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  185. public void MergeFrom(pb::CodedInputStream input) {
  186. uint tag;
  187. while ((tag = input.ReadTag()) != 0) {
  188. switch(tag) {
  189. default:
  190. input.SkipLastField();
  191. break;
  192. }
  193. }
  194. }
  195. }
  196. public sealed partial class RoomJoinRequest : pb::IMessage<RoomJoinRequest> {
  197. private static readonly pb::MessageParser<RoomJoinRequest> _parser = new pb::MessageParser<RoomJoinRequest>(() => new RoomJoinRequest());
  198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  199. public static pb::MessageParser<RoomJoinRequest> Parser { get { return _parser; } }
  200. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  201. public static pbr::MessageDescriptor Descriptor {
  202. get { return global::Protos.RoomReflection.Descriptor.MessageTypes[2]; }
  203. }
  204. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  205. pbr::MessageDescriptor pb::IMessage.Descriptor {
  206. get { return Descriptor; }
  207. }
  208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  209. public RoomJoinRequest() {
  210. OnConstruction();
  211. }
  212. partial void OnConstruction();
  213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  214. public RoomJoinRequest(RoomJoinRequest other) : this() {
  215. roomID_ = other.roomID_;
  216. roomType_ = other.roomType_;
  217. }
  218. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  219. public RoomJoinRequest Clone() {
  220. return new RoomJoinRequest(this);
  221. }
  222. /// <summary>Field number for the "RoomID" field.</summary>
  223. public const int RoomIDFieldNumber = 1;
  224. private uint roomID_;
  225. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  226. public uint RoomID {
  227. get { return roomID_; }
  228. set {
  229. roomID_ = value;
  230. }
  231. }
  232. /// <summary>Field number for the "RoomType" field.</summary>
  233. public const int RoomTypeFieldNumber = 2;
  234. private int roomType_;
  235. /// <summary>
  236. /// 0 = 游戏; 1=糖豆人
  237. /// </summary>
  238. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  239. public int RoomType {
  240. get { return roomType_; }
  241. set {
  242. roomType_ = value;
  243. }
  244. }
  245. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  246. public override bool Equals(object other) {
  247. return Equals(other as RoomJoinRequest);
  248. }
  249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  250. public bool Equals(RoomJoinRequest other) {
  251. if (ReferenceEquals(other, null)) {
  252. return false;
  253. }
  254. if (ReferenceEquals(other, this)) {
  255. return true;
  256. }
  257. if (RoomID != other.RoomID) return false;
  258. if (RoomType != other.RoomType) return false;
  259. return true;
  260. }
  261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  262. public override int GetHashCode() {
  263. int hash = 1;
  264. if (RoomID != 0) hash ^= RoomID.GetHashCode();
  265. if (RoomType != 0) hash ^= RoomType.GetHashCode();
  266. return hash;
  267. }
  268. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  269. public override string ToString() {
  270. return pb::JsonFormatter.ToDiagnosticString(this);
  271. }
  272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  273. public void WriteTo(pb::CodedOutputStream output) {
  274. if (RoomID != 0) {
  275. output.WriteRawTag(8);
  276. output.WriteUInt32(RoomID);
  277. }
  278. if (RoomType != 0) {
  279. output.WriteRawTag(16);
  280. output.WriteInt32(RoomType);
  281. }
  282. }
  283. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  284. public int CalculateSize() {
  285. int size = 0;
  286. if (RoomID != 0) {
  287. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RoomID);
  288. }
  289. if (RoomType != 0) {
  290. size += 1 + pb::CodedOutputStream.ComputeInt32Size(RoomType);
  291. }
  292. return size;
  293. }
  294. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  295. public void MergeFrom(RoomJoinRequest other) {
  296. if (other == null) {
  297. return;
  298. }
  299. if (other.RoomID != 0) {
  300. RoomID = other.RoomID;
  301. }
  302. if (other.RoomType != 0) {
  303. RoomType = other.RoomType;
  304. }
  305. }
  306. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  307. public void MergeFrom(pb::CodedInputStream input) {
  308. uint tag;
  309. while ((tag = input.ReadTag()) != 0) {
  310. switch(tag) {
  311. default:
  312. input.SkipLastField();
  313. break;
  314. case 8: {
  315. RoomID = input.ReadUInt32();
  316. break;
  317. }
  318. case 16: {
  319. RoomType = input.ReadInt32();
  320. break;
  321. }
  322. }
  323. }
  324. }
  325. }
  326. public sealed partial class RoomJoinResponse : pb::IMessage<RoomJoinResponse> {
  327. private static readonly pb::MessageParser<RoomJoinResponse> _parser = new pb::MessageParser<RoomJoinResponse>(() => new RoomJoinResponse());
  328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  329. public static pb::MessageParser<RoomJoinResponse> Parser { get { return _parser; } }
  330. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  331. public static pbr::MessageDescriptor Descriptor {
  332. get { return global::Protos.RoomReflection.Descriptor.MessageTypes[3]; }
  333. }
  334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  335. pbr::MessageDescriptor pb::IMessage.Descriptor {
  336. get { return Descriptor; }
  337. }
  338. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  339. public RoomJoinResponse() {
  340. OnConstruction();
  341. }
  342. partial void OnConstruction();
  343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  344. public RoomJoinResponse(RoomJoinResponse other) : this() {
  345. Result = other.result_ != null ? other.Result.Clone() : null;
  346. roomID_ = other.roomID_;
  347. mASTER_ = other.mASTER_;
  348. }
  349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  350. public RoomJoinResponse Clone() {
  351. return new RoomJoinResponse(this);
  352. }
  353. /// <summary>Field number for the "Result" field.</summary>
  354. public const int ResultFieldNumber = 1;
  355. private global::Protos.Result result_;
  356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  357. public global::Protos.Result Result {
  358. get { return result_; }
  359. set {
  360. result_ = value;
  361. }
  362. }
  363. /// <summary>Field number for the "RoomID" field.</summary>
  364. public const int RoomIDFieldNumber = 2;
  365. private uint roomID_;
  366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  367. public uint RoomID {
  368. get { return roomID_; }
  369. set {
  370. roomID_ = value;
  371. }
  372. }
  373. /// <summary>Field number for the "MASTER" field.</summary>
  374. public const int MASTERFieldNumber = 3;
  375. private bool mASTER_;
  376. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  377. public bool MASTER {
  378. get { return mASTER_; }
  379. set {
  380. mASTER_ = value;
  381. }
  382. }
  383. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  384. public override bool Equals(object other) {
  385. return Equals(other as RoomJoinResponse);
  386. }
  387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  388. public bool Equals(RoomJoinResponse other) {
  389. if (ReferenceEquals(other, null)) {
  390. return false;
  391. }
  392. if (ReferenceEquals(other, this)) {
  393. return true;
  394. }
  395. if (!object.Equals(Result, other.Result)) return false;
  396. if (RoomID != other.RoomID) return false;
  397. if (MASTER != other.MASTER) return false;
  398. return true;
  399. }
  400. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  401. public override int GetHashCode() {
  402. int hash = 1;
  403. if (result_ != null) hash ^= Result.GetHashCode();
  404. if (RoomID != 0) hash ^= RoomID.GetHashCode();
  405. if (MASTER != false) hash ^= MASTER.GetHashCode();
  406. return hash;
  407. }
  408. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  409. public override string ToString() {
  410. return pb::JsonFormatter.ToDiagnosticString(this);
  411. }
  412. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  413. public void WriteTo(pb::CodedOutputStream output) {
  414. if (result_ != null) {
  415. output.WriteRawTag(10);
  416. output.WriteMessage(Result);
  417. }
  418. if (RoomID != 0) {
  419. output.WriteRawTag(16);
  420. output.WriteUInt32(RoomID);
  421. }
  422. if (MASTER != false) {
  423. output.WriteRawTag(24);
  424. output.WriteBool(MASTER);
  425. }
  426. }
  427. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  428. public int CalculateSize() {
  429. int size = 0;
  430. if (result_ != null) {
  431. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
  432. }
  433. if (RoomID != 0) {
  434. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(RoomID);
  435. }
  436. if (MASTER != false) {
  437. size += 1 + 1;
  438. }
  439. return size;
  440. }
  441. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  442. public void MergeFrom(RoomJoinResponse other) {
  443. if (other == null) {
  444. return;
  445. }
  446. if (other.result_ != null) {
  447. if (result_ == null) {
  448. result_ = new global::Protos.Result();
  449. }
  450. Result.MergeFrom(other.Result);
  451. }
  452. if (other.RoomID != 0) {
  453. RoomID = other.RoomID;
  454. }
  455. if (other.MASTER != false) {
  456. MASTER = other.MASTER;
  457. }
  458. }
  459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  460. public void MergeFrom(pb::CodedInputStream input) {
  461. uint tag;
  462. while ((tag = input.ReadTag()) != 0) {
  463. switch(tag) {
  464. default:
  465. input.SkipLastField();
  466. break;
  467. case 10: {
  468. if (result_ == null) {
  469. result_ = new global::Protos.Result();
  470. }
  471. input.ReadMessage(result_);
  472. break;
  473. }
  474. case 16: {
  475. RoomID = input.ReadUInt32();
  476. break;
  477. }
  478. case 24: {
  479. MASTER = input.ReadBool();
  480. break;
  481. }
  482. }
  483. }
  484. }
  485. }
  486. public sealed partial class RoomJoinPush : pb::IMessage<RoomJoinPush> {
  487. private static readonly pb::MessageParser<RoomJoinPush> _parser = new pb::MessageParser<RoomJoinPush>(() => new RoomJoinPush());
  488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  489. public static pb::MessageParser<RoomJoinPush> Parser { get { return _parser; } }
  490. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  491. public static pbr::MessageDescriptor Descriptor {
  492. get { return global::Protos.RoomReflection.Descriptor.MessageTypes[4]; }
  493. }
  494. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  495. pbr::MessageDescriptor pb::IMessage.Descriptor {
  496. get { return Descriptor; }
  497. }
  498. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  499. public RoomJoinPush() {
  500. OnConstruction();
  501. }
  502. partial void OnConstruction();
  503. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  504. public RoomJoinPush(RoomJoinPush other) : this() {
  505. UserInfo = other.userInfo_ != null ? other.UserInfo.Clone() : null;
  506. }
  507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  508. public RoomJoinPush Clone() {
  509. return new RoomJoinPush(this);
  510. }
  511. /// <summary>Field number for the "UserInfo" field.</summary>
  512. public const int UserInfoFieldNumber = 1;
  513. private global::Protos.UserInfo userInfo_;
  514. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  515. public global::Protos.UserInfo UserInfo {
  516. get { return userInfo_; }
  517. set {
  518. userInfo_ = value;
  519. }
  520. }
  521. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  522. public override bool Equals(object other) {
  523. return Equals(other as RoomJoinPush);
  524. }
  525. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  526. public bool Equals(RoomJoinPush other) {
  527. if (ReferenceEquals(other, null)) {
  528. return false;
  529. }
  530. if (ReferenceEquals(other, this)) {
  531. return true;
  532. }
  533. if (!object.Equals(UserInfo, other.UserInfo)) return false;
  534. return true;
  535. }
  536. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  537. public override int GetHashCode() {
  538. int hash = 1;
  539. if (userInfo_ != null) hash ^= UserInfo.GetHashCode();
  540. return hash;
  541. }
  542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  543. public override string ToString() {
  544. return pb::JsonFormatter.ToDiagnosticString(this);
  545. }
  546. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  547. public void WriteTo(pb::CodedOutputStream output) {
  548. if (userInfo_ != null) {
  549. output.WriteRawTag(10);
  550. output.WriteMessage(UserInfo);
  551. }
  552. }
  553. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  554. public int CalculateSize() {
  555. int size = 0;
  556. if (userInfo_ != null) {
  557. size += 1 + pb::CodedOutputStream.ComputeMessageSize(UserInfo);
  558. }
  559. return size;
  560. }
  561. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  562. public void MergeFrom(RoomJoinPush other) {
  563. if (other == null) {
  564. return;
  565. }
  566. if (other.userInfo_ != null) {
  567. if (userInfo_ == null) {
  568. userInfo_ = new global::Protos.UserInfo();
  569. }
  570. UserInfo.MergeFrom(other.UserInfo);
  571. }
  572. }
  573. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  574. public void MergeFrom(pb::CodedInputStream input) {
  575. uint tag;
  576. while ((tag = input.ReadTag()) != 0) {
  577. switch(tag) {
  578. default:
  579. input.SkipLastField();
  580. break;
  581. case 10: {
  582. if (userInfo_ == null) {
  583. userInfo_ = new global::Protos.UserInfo();
  584. }
  585. input.ReadMessage(userInfo_);
  586. break;
  587. }
  588. }
  589. }
  590. }
  591. }
  592. public sealed partial class RoomLeaveRequest : pb::IMessage<RoomLeaveRequest> {
  593. private static readonly pb::MessageParser<RoomLeaveRequest> _parser = new pb::MessageParser<RoomLeaveRequest>(() => new RoomLeaveRequest());
  594. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  595. public static pb::MessageParser<RoomLeaveRequest> Parser { get { return _parser; } }
  596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  597. public static pbr::MessageDescriptor Descriptor {
  598. get { return global::Protos.RoomReflection.Descriptor.MessageTypes[5]; }
  599. }
  600. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  601. pbr::MessageDescriptor pb::IMessage.Descriptor {
  602. get { return Descriptor; }
  603. }
  604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  605. public RoomLeaveRequest() {
  606. OnConstruction();
  607. }
  608. partial void OnConstruction();
  609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  610. public RoomLeaveRequest(RoomLeaveRequest other) : this() {
  611. }
  612. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  613. public RoomLeaveRequest Clone() {
  614. return new RoomLeaveRequest(this);
  615. }
  616. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  617. public override bool Equals(object other) {
  618. return Equals(other as RoomLeaveRequest);
  619. }
  620. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  621. public bool Equals(RoomLeaveRequest other) {
  622. if (ReferenceEquals(other, null)) {
  623. return false;
  624. }
  625. if (ReferenceEquals(other, this)) {
  626. return true;
  627. }
  628. return true;
  629. }
  630. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  631. public override int GetHashCode() {
  632. int hash = 1;
  633. return hash;
  634. }
  635. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  636. public override string ToString() {
  637. return pb::JsonFormatter.ToDiagnosticString(this);
  638. }
  639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  640. public void WriteTo(pb::CodedOutputStream output) {
  641. }
  642. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  643. public int CalculateSize() {
  644. int size = 0;
  645. return size;
  646. }
  647. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  648. public void MergeFrom(RoomLeaveRequest other) {
  649. if (other == null) {
  650. return;
  651. }
  652. }
  653. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  654. public void MergeFrom(pb::CodedInputStream input) {
  655. uint tag;
  656. while ((tag = input.ReadTag()) != 0) {
  657. switch(tag) {
  658. default:
  659. input.SkipLastField();
  660. break;
  661. }
  662. }
  663. }
  664. }
  665. public sealed partial class RoomLeaveResponse : pb::IMessage<RoomLeaveResponse> {
  666. private static readonly pb::MessageParser<RoomLeaveResponse> _parser = new pb::MessageParser<RoomLeaveResponse>(() => new RoomLeaveResponse());
  667. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  668. public static pb::MessageParser<RoomLeaveResponse> Parser { get { return _parser; } }
  669. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  670. public static pbr::MessageDescriptor Descriptor {
  671. get { return global::Protos.RoomReflection.Descriptor.MessageTypes[6]; }
  672. }
  673. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  674. pbr::MessageDescriptor pb::IMessage.Descriptor {
  675. get { return Descriptor; }
  676. }
  677. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  678. public RoomLeaveResponse() {
  679. OnConstruction();
  680. }
  681. partial void OnConstruction();
  682. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  683. public RoomLeaveResponse(RoomLeaveResponse other) : this() {
  684. Result = other.result_ != null ? other.Result.Clone() : null;
  685. }
  686. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  687. public RoomLeaveResponse Clone() {
  688. return new RoomLeaveResponse(this);
  689. }
  690. /// <summary>Field number for the "Result" field.</summary>
  691. public const int ResultFieldNumber = 1;
  692. private global::Protos.Result result_;
  693. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  694. public global::Protos.Result Result {
  695. get { return result_; }
  696. set {
  697. result_ = value;
  698. }
  699. }
  700. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  701. public override bool Equals(object other) {
  702. return Equals(other as RoomLeaveResponse);
  703. }
  704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  705. public bool Equals(RoomLeaveResponse other) {
  706. if (ReferenceEquals(other, null)) {
  707. return false;
  708. }
  709. if (ReferenceEquals(other, this)) {
  710. return true;
  711. }
  712. if (!object.Equals(Result, other.Result)) return false;
  713. return true;
  714. }
  715. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  716. public override int GetHashCode() {
  717. int hash = 1;
  718. if (result_ != null) hash ^= Result.GetHashCode();
  719. return hash;
  720. }
  721. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  722. public override string ToString() {
  723. return pb::JsonFormatter.ToDiagnosticString(this);
  724. }
  725. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  726. public void WriteTo(pb::CodedOutputStream output) {
  727. if (result_ != null) {
  728. output.WriteRawTag(10);
  729. output.WriteMessage(Result);
  730. }
  731. }
  732. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  733. public int CalculateSize() {
  734. int size = 0;
  735. if (result_ != null) {
  736. size += 1 + pb::CodedOutputStream.ComputeMessageSize(Result);
  737. }
  738. return size;
  739. }
  740. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  741. public void MergeFrom(RoomLeaveResponse other) {
  742. if (other == null) {
  743. return;
  744. }
  745. if (other.result_ != null) {
  746. if (result_ == null) {
  747. result_ = new global::Protos.Result();
  748. }
  749. Result.MergeFrom(other.Result);
  750. }
  751. }
  752. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  753. public void MergeFrom(pb::CodedInputStream input) {
  754. uint tag;
  755. while ((tag = input.ReadTag()) != 0) {
  756. switch(tag) {
  757. default:
  758. input.SkipLastField();
  759. break;
  760. case 10: {
  761. if (result_ == null) {
  762. result_ = new global::Protos.Result();
  763. }
  764. input.ReadMessage(result_);
  765. break;
  766. }
  767. }
  768. }
  769. }
  770. }
  771. public sealed partial class RoomLeavePush : pb::IMessage<RoomLeavePush> {
  772. private static readonly pb::MessageParser<RoomLeavePush> _parser = new pb::MessageParser<RoomLeavePush>(() => new RoomLeavePush());
  773. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  774. public static pb::MessageParser<RoomLeavePush> Parser { get { return _parser; } }
  775. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  776. public static pbr::MessageDescriptor Descriptor {
  777. get { return global::Protos.RoomReflection.Descriptor.MessageTypes[7]; }
  778. }
  779. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  780. pbr::MessageDescriptor pb::IMessage.Descriptor {
  781. get { return Descriptor; }
  782. }
  783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  784. public RoomLeavePush() {
  785. OnConstruction();
  786. }
  787. partial void OnConstruction();
  788. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  789. public RoomLeavePush(RoomLeavePush other) : this() {
  790. userID_ = other.userID_;
  791. }
  792. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  793. public RoomLeavePush Clone() {
  794. return new RoomLeavePush(this);
  795. }
  796. /// <summary>Field number for the "UserID" field.</summary>
  797. public const int UserIDFieldNumber = 1;
  798. private uint userID_;
  799. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  800. public uint UserID {
  801. get { return userID_; }
  802. set {
  803. userID_ = value;
  804. }
  805. }
  806. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  807. public override bool Equals(object other) {
  808. return Equals(other as RoomLeavePush);
  809. }
  810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  811. public bool Equals(RoomLeavePush other) {
  812. if (ReferenceEquals(other, null)) {
  813. return false;
  814. }
  815. if (ReferenceEquals(other, this)) {
  816. return true;
  817. }
  818. if (UserID != other.UserID) return false;
  819. return true;
  820. }
  821. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  822. public override int GetHashCode() {
  823. int hash = 1;
  824. if (UserID != 0) hash ^= UserID.GetHashCode();
  825. return hash;
  826. }
  827. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  828. public override string ToString() {
  829. return pb::JsonFormatter.ToDiagnosticString(this);
  830. }
  831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  832. public void WriteTo(pb::CodedOutputStream output) {
  833. if (UserID != 0) {
  834. output.WriteRawTag(8);
  835. output.WriteUInt32(UserID);
  836. }
  837. }
  838. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  839. public int CalculateSize() {
  840. int size = 0;
  841. if (UserID != 0) {
  842. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UserID);
  843. }
  844. return size;
  845. }
  846. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  847. public void MergeFrom(RoomLeavePush other) {
  848. if (other == null) {
  849. return;
  850. }
  851. if (other.UserID != 0) {
  852. UserID = other.UserID;
  853. }
  854. }
  855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  856. public void MergeFrom(pb::CodedInputStream input) {
  857. uint tag;
  858. while ((tag = input.ReadTag()) != 0) {
  859. switch(tag) {
  860. default:
  861. input.SkipLastField();
  862. break;
  863. case 8: {
  864. UserID = input.ReadUInt32();
  865. break;
  866. }
  867. }
  868. }
  869. }
  870. }
  871. public sealed partial class RoomDismissPush : pb::IMessage<RoomDismissPush> {
  872. private static readonly pb::MessageParser<RoomDismissPush> _parser = new pb::MessageParser<RoomDismissPush>(() => new RoomDismissPush());
  873. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  874. public static pb::MessageParser<RoomDismissPush> Parser { get { return _parser; } }
  875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  876. public static pbr::MessageDescriptor Descriptor {
  877. get { return global::Protos.RoomReflection.Descriptor.MessageTypes[8]; }
  878. }
  879. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  880. pbr::MessageDescriptor pb::IMessage.Descriptor {
  881. get { return Descriptor; }
  882. }
  883. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  884. public RoomDismissPush() {
  885. OnConstruction();
  886. }
  887. partial void OnConstruction();
  888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  889. public RoomDismissPush(RoomDismissPush other) : this() {
  890. }
  891. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  892. public RoomDismissPush Clone() {
  893. return new RoomDismissPush(this);
  894. }
  895. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  896. public override bool Equals(object other) {
  897. return Equals(other as RoomDismissPush);
  898. }
  899. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  900. public bool Equals(RoomDismissPush other) {
  901. if (ReferenceEquals(other, null)) {
  902. return false;
  903. }
  904. if (ReferenceEquals(other, this)) {
  905. return true;
  906. }
  907. return true;
  908. }
  909. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  910. public override int GetHashCode() {
  911. int hash = 1;
  912. return hash;
  913. }
  914. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  915. public override string ToString() {
  916. return pb::JsonFormatter.ToDiagnosticString(this);
  917. }
  918. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  919. public void WriteTo(pb::CodedOutputStream output) {
  920. }
  921. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  922. public int CalculateSize() {
  923. int size = 0;
  924. return size;
  925. }
  926. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  927. public void MergeFrom(RoomDismissPush other) {
  928. if (other == null) {
  929. return;
  930. }
  931. }
  932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  933. public void MergeFrom(pb::CodedInputStream input) {
  934. uint tag;
  935. while ((tag = input.ReadTag()) != 0) {
  936. switch(tag) {
  937. default:
  938. input.SkipLastField();
  939. break;
  940. }
  941. }
  942. }
  943. }
  944. public sealed partial class RoomSwitchMasterPush : pb::IMessage<RoomSwitchMasterPush> {
  945. private static readonly pb::MessageParser<RoomSwitchMasterPush> _parser = new pb::MessageParser<RoomSwitchMasterPush>(() => new RoomSwitchMasterPush());
  946. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  947. public static pb::MessageParser<RoomSwitchMasterPush> Parser { get { return _parser; } }
  948. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  949. public static pbr::MessageDescriptor Descriptor {
  950. get { return global::Protos.RoomReflection.Descriptor.MessageTypes[9]; }
  951. }
  952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  953. pbr::MessageDescriptor pb::IMessage.Descriptor {
  954. get { return Descriptor; }
  955. }
  956. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  957. public RoomSwitchMasterPush() {
  958. OnConstruction();
  959. }
  960. partial void OnConstruction();
  961. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  962. public RoomSwitchMasterPush(RoomSwitchMasterPush other) : this() {
  963. userID_ = other.userID_;
  964. }
  965. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  966. public RoomSwitchMasterPush Clone() {
  967. return new RoomSwitchMasterPush(this);
  968. }
  969. /// <summary>Field number for the "UserID" field.</summary>
  970. public const int UserIDFieldNumber = 1;
  971. private uint userID_;
  972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  973. public uint UserID {
  974. get { return userID_; }
  975. set {
  976. userID_ = value;
  977. }
  978. }
  979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  980. public override bool Equals(object other) {
  981. return Equals(other as RoomSwitchMasterPush);
  982. }
  983. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  984. public bool Equals(RoomSwitchMasterPush other) {
  985. if (ReferenceEquals(other, null)) {
  986. return false;
  987. }
  988. if (ReferenceEquals(other, this)) {
  989. return true;
  990. }
  991. if (UserID != other.UserID) return false;
  992. return true;
  993. }
  994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  995. public override int GetHashCode() {
  996. int hash = 1;
  997. if (UserID != 0) hash ^= UserID.GetHashCode();
  998. return hash;
  999. }
  1000. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1001. public override string ToString() {
  1002. return pb::JsonFormatter.ToDiagnosticString(this);
  1003. }
  1004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1005. public void WriteTo(pb::CodedOutputStream output) {
  1006. if (UserID != 0) {
  1007. output.WriteRawTag(8);
  1008. output.WriteUInt32(UserID);
  1009. }
  1010. }
  1011. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1012. public int CalculateSize() {
  1013. int size = 0;
  1014. if (UserID != 0) {
  1015. size += 1 + pb::CodedOutputStream.ComputeUInt32Size(UserID);
  1016. }
  1017. return size;
  1018. }
  1019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1020. public void MergeFrom(RoomSwitchMasterPush other) {
  1021. if (other == null) {
  1022. return;
  1023. }
  1024. if (other.UserID != 0) {
  1025. UserID = other.UserID;
  1026. }
  1027. }
  1028. [global::System.Diagnostics.DebuggerNonUserCodeAttribute]
  1029. public void MergeFrom(pb::CodedInputStream input) {
  1030. uint tag;
  1031. while ((tag = input.ReadTag()) != 0) {
  1032. switch(tag) {
  1033. default:
  1034. input.SkipLastField();
  1035. break;
  1036. case 8: {
  1037. UserID = input.ReadUInt32();
  1038. break;
  1039. }
  1040. }
  1041. }
  1042. }
  1043. }
  1044. #endregion
  1045. }
  1046. #endregion Designer generated code