public string recv_GetSceneLabel() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetSceneLabel_result result = new GetSceneLabel_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetSceneLabel failed: unknown result"); }
public void GetSceneLabel_Process(int seqid, TProtocol iprot, TProtocol oprot) { GetSceneLabel_args args = new GetSceneLabel_args(); args.Read(iprot); iprot.ReadMessageEnd(); GetSceneLabel_result result = new GetSceneLabel_result(); result.Success = iface_.GetSceneLabel(args._sceneId); oprot.WriteMessageBegin(new TMessage("GetSceneLabel", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }