public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.I64) { Revision = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.I64) { CreatedTime = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.I32) { Type = (OpType)iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.I32) { ReqSeq = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.String) { Checksum = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.I32) { Status = (OpStatus)iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.String) { Param1 = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.String) { Param2 = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 12: if (field.Type == TType.String) { Param3 = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 20: if (field.Type == TType.Struct) { Message = new Message(); Message.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 0: if (field.Type == TType.Struct) { Success = new Message(); Success.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 1: if (field.Type == TType.Struct) { E = new TalkException(); E.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.String) { Id = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.String) { ChannelId = iprot.ReadString(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 5: if (field.Type == TType.I64) { LastSeq = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 6: if (field.Type == TType.I64) { UnreadCount = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 7: if (field.Type == TType.I64) { LastModifiedTime = iprot.ReadI64(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 8: if (field.Type == TType.I32) { Status = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 9: if (field.Type == TType.I32) { MidType = (MIDType)iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 10: if (field.Type == TType.List) { { LastMessages = new List<Message>(); TList _list69 = iprot.ReadListBegin(); for( int _i70 = 0; _i70 < _list69.Count; ++_i70) { Message _elem71 = new Message(); _elem71 = new Message(); _elem71.Read(iprot); LastMessages.Add(_elem71); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 0: if (field.Type == TType.List) { { Success = new List<Message>(); TList _list314 = iprot.ReadListBegin(); for( int _i315 = 0; _i315 < _list314.Count; ++_i315) { Message _elem316 = new Message(); _elem316 = new Message(); _elem316.Read(iprot); Success.Add(_elem316); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 1: if (field.Type == TType.Struct) { E = new TalkException(); E.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.I32) { Seq = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { Message = new Message(); Message.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public IAsyncResult send_trySendMessage(AsyncCallback callback, object state, int seq, Message message)
public void send_trySendMessage(int seq, Message message) #endif { oprot_.WriteMessageBegin(new TMessage("trySendMessage", TMessageType.Call, seqid_)); trySendMessage_args args = new trySendMessage_args(); args.Seq = seq; args.Message = message; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return oprot_.Transport.BeginFlush(callback, state); #else oprot_.Transport.Flush(); #endif }
public IAsyncResult Begin_trySendMessage(AsyncCallback callback, object state, int seq, Message message) { return send_trySendMessage(callback, state, seq, message); }
public Message trySendMessage(int seq, Message message) { #if !SILVERLIGHT send_trySendMessage(seq, message); return recv_trySendMessage(); #else var asyncResult = Begin_trySendMessage(null, null, seq, message); return End_trySendMessage(asyncResult); #endif }
public IAsyncResult send_sendMessageToMyHome(AsyncCallback callback, object state, int seq, Message message)
public IAsyncResult send_sendEvent(AsyncCallback callback, object state, int seq, Message message)
public Message sendEvent(int seq, Message message) { #if !SILVERLIGHT send_sendEvent(seq, message); return recv_sendEvent(); #else var asyncResult = Begin_sendEvent(null, null, seq, message); return End_sendEvent(asyncResult); #endif }
public IAsyncResult Begin_sendEvent(AsyncCallback callback, object state, int seq, Message message) { return send_sendEvent(callback, state, seq, message); }
public ReceiveMessageEventArgs(Message m) { Message = m; }