public GetAllScenesReturnStruct recv_GetAllScenes() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetAllScenes_result result = new GetAllScenes_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetAllScenes failed: unknown result"); }
public void GetAllScenes_Process(int seqid, TProtocol iprot, TProtocol oprot) { GetAllScenes_args args = new GetAllScenes_args(); args.Read(iprot); iprot.ReadMessageEnd(); GetAllScenes_result result = new GetAllScenes_result(); result.Success = iface_.GetAllScenes(); oprot.WriteMessageBegin(new TMessage("GetAllScenes", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }