public Bool_Int16 recv_SceneGetValueAsShort() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } SceneGetValueAsShort_result result = new SceneGetValueAsShort_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return result.Success; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "SceneGetValueAsShort failed: unknown result"); }
public void SceneGetValueAsShort_Process(int seqid, TProtocol iprot, TProtocol oprot) { SceneGetValueAsShort_args args = new SceneGetValueAsShort_args(); args.Read(iprot); iprot.ReadMessageEnd(); SceneGetValueAsShort_result result = new SceneGetValueAsShort_result(); result.Success = iface_.SceneGetValueAsShort(args._sceneId, args._valueId); oprot.WriteMessageBegin(new TMessage("SceneGetValueAsShort", TMessageType.Reply, seqid)); result.Write(oprot); oprot.WriteMessageEnd(); oprot.Transport.Flush(); }