public List <Question> recv_QueryQuestions() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } QueryQuestions_result result = new QueryQuestions_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "QueryQuestions failed: unknown result"); }
public int recv_add() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } add_result result = new add_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "add failed: unknown result"); }
public void recv_insert() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } insert_result result = new insert_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.e) { throw result.E; } return; }
public List <PositionViewEntity> recv_getAllPositionInfo() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getAllPositionInfo_result result = new getAllPositionInfo_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getAllPositionInfo failed: unknown result"); }
public string recv_getLocationInfoIncremental() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getLocationInfoIncremental_result result = new getLocationInfoIncremental_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getLocationInfoIncremental failed: unknown result"); }
public List <Feature> recv_getFeaturesInRect() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getFeaturesInRect_result result = new getFeaturesInRect_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getFeaturesInRect failed: unknown result"); }
public RestResponse recv_execute() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } var result = new execute_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "execute failed: unknown result"); }
public MMIStandard.MBoolResponse recv_SetBlendingMask() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } SetBlendingMask_result result = new SetBlendingMask_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "SetBlendingMask failed: unknown result"); }
public SendResponse_0 recv_sendSync_0() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } sendSync_0_result result = new sendSync_0_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "sendSync_0 failed: unknown result"); }
public List <BookInfo> recv_GetAllBooks() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetAllBooks_result result = new GetAllBooks_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetAllBooks failed: unknown result"); }
public MMIStandard.MAvatarPostureValues recv_Blend() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } Blend_result result = new Blend_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "Blend failed: unknown result"); }
public List <LogEntry> recv_getMessages() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getMessages_result result = new getMessages_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.Success != null) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getMessages failed: unknown result"); }
public ResultCode recv_Log() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } Log_result result = new Log_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.Success.HasValue) { return(result.Success.Value); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "Log failed: unknown result"); }
public sbyte recv_OfflineQues() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } OfflineQues_result result = new OfflineQues_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "OfflineQues failed: unknown result"); }
public Ruyi.SDK.Speech.SpeechResult recv_Say() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } Say_result result = new Say_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "Say failed: unknown result"); }
public List <string> recv_testCase2() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } testCase2_result result = new testCase2_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "testCase2 failed: unknown result"); }
public TicketStatusDTO recv_cancelTicketExecution() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } cancelTicketExecution_result result = new cancelTicketExecution_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "cancelTicketExecution failed: unknown result"); }
public string recv_GetRecipeData() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetRecipeData_result result = new GetRecipeData_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetRecipeData failed: unknown result"); }
public bool recv_deleteFeature() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } deleteFeature_result result = new deleteFeature_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "deleteFeature failed: unknown result"); }
public Ruyi.SDK.StorageLayer.GetLocalPathResult recv_GetLocalPath() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetLocalPath_result result = new GetLocalPath_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetLocalPath failed: unknown result"); }
public byte[] recv_Revert() { TMessage msg = this.iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(this.iprot_); this.iprot_.ReadMessageEnd(); throw x; } Revert_result result = new Revert_result(); result.Read(this.iprot_); this.iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "Revert failed: unknown result"); }
public string recv_Send() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); logger.LogError(x, "GrantService.recv_Send.Error"); return(null); } Send_result result = new Send_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } logger.LogError(new TApplicationException(TApplicationException.ExceptionType.MissingResult, "Send failed: unknown result"), "Send failed: unknown result"); return(null); }
public object recvMsg(TProtocol iprot, GenericTree genericTree, int seqid_) { TMessage msg = iprot.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot); iprot.ReadMessageEnd(); throw x; } if (msg.SeqID != seqid_) { throw new TApplicationException(TApplicationException.ExceptionType.BadSequenceID, " failed: out of sequence response"); } Dictionary <string, object> result = new Dictionary <string, object>(); List <GenericTree> list = new List <GenericTree>(); if (genericTree != null) { list.Add(genericTree); } read(iprot, list, result); iprot.ReadMessageEnd(); //如果genericTree 是复杂类型则需要去掉Map的第一层 ex: 返回值是{a : {b:1,c:2}} 则真正的返回值应该是{b:1,c:2} //TODO:如果是集合情况也应该是这样处理 if (genericTree != null && !isPrimitiveType(genericTree)) { if (result.Count == 0) { return(null); } object obj = result[genericTree.getName()]; return(obj); } return(result); }
public ExecuteResponse Execute(ExecuteRequest request, Action <ExecuteStream> handleStream) { send_Execute(request); for (; ;) { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } if (msg.Type == StreamMessageType) { ExecuteStream stream = new ExecuteStream(); stream.Read(iprot_); iprot_.ReadMessageEnd(); handleStream(stream); continue; } Execute_result result = new Execute_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } if (result.__isset.ex) { throw result.Ex; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "Execute failed: unknown result"); } }
public bool recv_ping() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } ping_result result = new ping_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } if (result.__isset.e) { throw result.E; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "ping failed: unknown result"); }
public bool recv_CheckAndDeliver() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } CheckAndDeliver_result result = new CheckAndDeliver_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } if (result.__isset.error) { throw result.Error; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "CheckAndDeliver failed: unknown result"); }
public List <Dish> recv_GetTheMenue() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetTheMenue_result result = new GetTheMenue_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } if (result.__isset.error) { throw result.Error; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetTheMenue failed: unknown result"); }
public Ruyi.SDK.UserServiceExternal.UserInfo_Public recv_GetPlayingUserInfo() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } GetPlayingUserInfo_result result = new GetPlayingUserInfo_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } if (result.__isset.error1) { throw result.Error1; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "GetPlayingUserInfo failed: unknown result"); }
public DRPCRequest recv_fetchRequest() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } fetchRequest_result result = new fetchRequest_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } if (result.__isset.aze) { throw result.Aze; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "fetchRequest failed: unknown result"); }
public SnsProfile recv_getSnsMyProfile() { TMessage msg = iprot_.ReadMessageBegin(); if (msg.Type == TMessageType.Exception) { TApplicationException x = TApplicationException.Read(iprot_); iprot_.ReadMessageEnd(); throw x; } getSnsMyProfile_result result = new getSnsMyProfile_result(); result.Read(iprot_); iprot_.ReadMessageEnd(); if (result.__isset.success) { return(result.Success); } if (result.__isset.e) { throw result.E; } throw new TApplicationException(TApplicationException.ExceptionType.MissingResult, "getSnsMyProfile failed: unknown result"); }