public IAsyncResult send_getLastReadMessageIds(AsyncCallback callback, object state, string chatId) { oprot_.WriteMessageBegin(new TMessage("getLastReadMessageIds", TMessageType.Call, seqid_)); getLastReadMessageIds_args args = new getLastReadMessageIds_args(); args.ChatId = chatId; args.Write(oprot_); oprot_.WriteMessageEnd(); return(oprot_.Transport.BeginFlush(callback, state)); }
public void send_getLastReadMessageIds(string chatId) { oprot_.WriteMessageBegin(new TMessage("getLastReadMessageIds", TMessageType.Call, seqid_)); getLastReadMessageIds_args args = new getLastReadMessageIds_args(); args.ChatId = chatId; args.Write(oprot_); oprot_.WriteMessageEnd(); oprot_.Transport.Flush(); }
public void send_getLastReadMessageIds(string chatId) #endif { oprot_.WriteMessageBegin(new TMessage("getLastReadMessageIds", TMessageType.Call, seqid_)); getLastReadMessageIds_args args = new getLastReadMessageIds_args(); args.ChatId = chatId; args.Write(oprot_); oprot_.WriteMessageEnd(); #if SILVERLIGHT return(oprot_.Transport.BeginFlush(callback, state)); #else oprot_.Transport.Flush(); #endif }
public void getLastReadMessageIds_Process(int seqid, TProtocol iprot, TProtocol oprot) { getLastReadMessageIds_args args = new getLastReadMessageIds_args(); args.Read(iprot); iprot.ReadMessageEnd(); getLastReadMessageIds_result result = new getLastReadMessageIds_result(); try { try { result.Success = iface_.getLastReadMessageIds(args.ChatId); } catch (TalkException e) { result.E = e; } oprot.WriteMessageBegin(new TMessage("getLastReadMessageIds", TMessageType.Reply, seqid)); result.Write(oprot); } catch (TTransportException) { throw; } catch (Exception ex) { Console.Error.WriteLine("Error occurred in processor:"); Console.Error.WriteLine(ex.ToString()); TApplicationException x = new TApplicationException(TApplicationException.ExceptionType.InternalError, " Internal error."); oprot.WriteMessageBegin(new TMessage("getLastReadMessageIds", TMessageType.Exception, seqid)); x.Write(oprot); } oprot.WriteMessageEnd(); oprot.Transport.Flush(); }