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